Emergency alarm system based on NB-IoT
By adopting an emergency alarm system based on NB-IoT in closed public places, using OneNET platform and LwM2M protocol, rapid alarm information processing in emergencies is achieved, and the traditional system's traffic increases and low-probability events are solved Addressing cost issues improves work efficiency and reduces costs.
Patent Information
- Application Number
- CN202310558074.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional closed public places are difficult to provide fast and effective alarm information processing in emergencies. The solution of traditional administrators being passively waiting for summons is not feasible. Considering the cost of increasing traffic and low-probability events, a flexibility is needed. , a stable and low-cost information system.
An emergency alarm system based on NB-IoT was designed, including the device end, platform end and application end. The device end is an embedded system, the platform end is developed based on OneNET platform, the application end is based on the C/S architecture, and the NB-IoT is used. Low-power wide-area network and LwM2M protocol realize real-time reporting and processing of alarm signals, and have the characteristics of low power consumption, wide coverage and good security.
It realizes the rapid positioning of emergency accidents in closed public places and timely handling them, improving work efficiency and reducing costs, and at the same time it has the characteristics of easy expansion, portability and maintenance.
Smart Images

Figure CN119007405A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to an emergency alarm system based on NB-IoT. Background Art
[0002] For closed public places, safety issues must be considered by their operators. As the flow of people increases, the probability of emergency situations will increase. In emergency situations, accurate and effective emergency alarm information should be provided for rapid processing. The traditional solution of administrators passively waiting for summons is obviously not feasible, and an information system came into being. Since personnel are mobile, it is necessary to provide a fixed and wide-coverage alarm terminal; since emergencies are accidental, it is necessary to provide a stable and long-term operating system; the cost of responding to low-probability events must also be considered. With the development of the Internet of Things and Internet technology, the emergence of this system has become possible.
[0003] Wireless communication is free from the limitations of device location and has greater flexibility and scalability, so it is more widely used in IoT scenarios. Among them, NB-IOT, CoAP and LwM2M protocols are more famous.
[0004] NB-IoT stands for Narrow Band Internet of Things, which is built on cellular networks and is an IoT / data link layer protocol that connects devices to the Internet. It uses low-power wide area network LPWAN technology, which has the advantages of low power consumption, wide coverage, and strong penetration. It also relies on the operator's NB-IoT base station and has good security. Therefore, it has become the best choice for embedded IoT terminal devices to go to the cloud in scenarios where there are requirements for standby time, network connection, etc.
[0005] LwM2M (LightweightM2M) protocol is a lightweight M2M protocol developed by the Open Mobile Alliance (OMA), mainly for IoT applications based on cellular NB-IoT scenarios, focusing on the low power consumption and wide coverage (LPWA) IoT market, and is an emerging technology that can be widely used worldwide. It has the characteristics of wide coverage, multiple connections, low speed, low cost, low power consumption, and excellent architecture. Summary of the invention
[0006] In view of the above problems, the present invention is proposed to provide an emergency alarm system based on NB-IoT that overcomes the above problems or at least partially solves the above problems.
[0007] According to one aspect of the present invention, there is provided an emergency alarm system based on NB-IoT, the alarm system comprising:
[0008] Device side, platform side and application side;
[0009] The device end is an embedded system;
[0010] The platform end is developed based on the OneNET platform and is used to establish a connection between the device end and the application end;
[0011] The application end is developed based on the C / S architecture and serves as the message destination of the OneNET platform to receive and process alarm signals.
[0012] Optionally, the device end includes a parameter configuration module, an alarm signal reporting module, a buzzer control module, an indicator light control module and a battery power detection module;
[0013] The parameter configuration module is used to set and save the local parameters of the device;
[0014] The alarm signal reporting module is used to report the alarm signal or report the request to cancel the alarm signal to the OneNET platform;
[0015] The buzzer control module is used to control the onboard buzzer to emit a sound at a specified frequency to prompt the working status of the NB alarm button;
[0016] The indicator light control module controls the indicator light and is used to respond to the action of pressing the button;
[0017] The battery power detection module realizes a regular battery power detection function according to the detection cycle configured by initialization.
[0018] Optionally, the platform end specifically includes: a device access module, a data transmission module and an application access module;
[0019] The device access module is connected to the device end and is used to realize the association between the physical device and the logical device;
[0020] The application access module is connected to the application end and is used to realize the connection between the application server and the OneNET platform;
[0021] The data transmission module is connected to the device access module and the application access module respectively, and is used to realize data interaction between the alarm button device and the OneNET platform and between the OneNET platform and the application server.
[0022] Optionally, the device access module selects the NB-IoT networking mode and the LwM2M device access protocol on the OneNET Internet of Things platform and completes the creation of the product after filling in the product information, and completes the creation of the logical device after filling in the device information;
[0023] Transplant SDK to physical devices, and after power-on, automatically complete the protocol connection with the platform bootstrap server by sending AT commands to the module;
[0024] A mapping relationship is established between the carried second device information and the logical device on the platform.
[0025] Optionally, the application access module develops a URL verification interface on the application server, calculates MD5 for the request parameters of the OneNET platform, encodes it using Base64, and then calculates it using URLDecoder and compares it with the signature for verification.
[0026] Optionally, the data transmission module calls the interface provided by the OneNET platform to write configuration information to the button; the application server develops a data receiving interface to receive the POST request data initiated by the platform and stores the data in a message queue for buffering, and promptly responds to the platform with an HTTP200 status code to prevent the address from being deemed invalid.
[0027] Optionally, the application end specifically includes: a message storage module, a service processing module and a data transmission module;
[0028] The message storage module is responsible for taking out and storing the messages in the message queue;
[0029] The business processing module is responsible for taking out the messages in the message queue, parsing the messages, determining the message types, and forwarding them to the corresponding monitoring processing center for prompting;
[0030] The data transmission module is responsible for receiving the alarm signal of the OneNET platform and storing it in the message queue for caching; and responding to the OneNET platform with the HTTP 200 status code in a timely manner.
[0031] Optionally, the message types specifically include: alarm message and cancel alarm message.
[0032] Optionally, the device information specifically includes: device name, international mobile equipment identity and international mobile user identity.
[0033] Optionally, the second device information specifically includes: an international mobile equipment identity, an international mobile user identity and an authorization code.
[0034] The present invention provides an emergency alarm system based on NB-IoT, the alarm system includes: a device end, a platform end and an application end; the device end is an embedded system; the platform end is developed based on the OneNET platform and is used to establish a connection between the device end and the application end; the application end is developed based on the C / S architecture and serves as the message destination of the OneNET platform to receive and process alarm signals. It has the advantages of low power consumption, low cost, wide coverage and strong penetration, and relies on the operator's NB-IoT base station, so it has good security.
[0035] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0037] Figure 1 Scenario diagram of an emergency alarm system based on NB-IoT provided in an embodiment of the present invention Figure 1 ;
[0038] Figure 2 Scenario diagram of the NB-IoT-based emergency alarm system provided by the present invention Figure 2 ;
[0039] Figure 3 The device-side button data reporting of the present invention is shown in the following scenario Figure 2 Timing diagram of . DETAILED DESCRIPTION
[0040] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0041] The terms "comprises" and "having" and any variations thereof in the description embodiments, claims and drawings of the present invention are intended to cover non-exclusive inclusions, for example, including a series of steps or units.
[0042] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0043] An emergency alarm system based on NB-IoT, including a device side, a platform side and an application side:
[0044] The device end is an embedded system, including a parameter configuration module, an alarm signal reporting module, a buzzer control module, an indicator light control module, and a battery power detection module. The parameter configuration module is used to set and save the local parameters of the device, including information such as the battery power detection cycle and the buzzer alarm frequency.
[0045] The alarm signal reporting module is used to report the alarm signal or report the request to cancel the alarm signal to the OneNET platform;
[0046] The buzzer control module controls the onboard buzzer and emits a sound at a specified frequency to indicate the working status of the NB alarm button.
[0047] The indicator light control module controls the indicator lights to respond to the action of a button being pressed and to indicate in poor light conditions;
[0048] The battery power detection module implements a regular battery power detection function according to the detection cycle configured by initialization.
[0049] The platform is developed based on the OneNET platform, mainly to establish connections between terminal devices and application servers, including device access module, data transmission module and application access module, including:
[0050] The device access module realizes the association between physical devices and logical devices. On the OneNET IoT platform, select the NB-IoT networking mode, LwM2M device access protocol and fill in the product information to complete the product creation, and fill in the device name, international mobile equipment identity and international mobile user identity and other information to complete the creation of the logical device; transplant the SDK to the physical device, and after powering on, automatically complete the protocol connection with the platform bootstrap server by sending AT commands to the module, and establish a mapping relationship with the logical device on the platform based on the carried international mobile equipment identity and international mobile user identity and authorization code information;
[0051] The application access module realizes the connection between the application server and the OneNET platform. Develop the URL verification interface on the application server, calculate the MD5 of the request parameters of the OneNET platform, encode it using Base64, and then compare it with the signature after calculation through URLDecoder for verification;
[0052] The data transmission module realizes the data interaction between the alarm button device and the OneNET platform and between the OneNET platform and the application server. The interface provided by the OneNET platform is called to write configuration information to the button, such as the button configuration status and power reporting cycle data; the application server develops a data receiving interface to receive the POST request data initiated by the platform and store the data in the message queue for buffering, and promptly responds to the platform with the HTTP200 status code to prevent the address from being considered invalid.
[0053] The application end is developed based on the C / S architecture. As the message destination of the OneNET platform, it receives and processes alarm signals, including message storage module, business processing module and data transmission module, including:
[0054] The message storage module is responsible for taking out the messages in the message queue and storing them persistently for archiving and review;
[0055] The business processing module is responsible for taking out the messages in the message queue, parsing the messages, determining whether the message type is an alarm message or canceling the alarm information, and forwarding it to the corresponding monitoring processing center for alarm prompting or canceling the alarm prompt;
[0056] The data transmission module is mainly responsible for receiving the alarm signals and canceling the alarm signals from the OneNET platform and storing them in the message queue for caching; it promptly responds to the HTTP 200 status code to the OneNET platform to prevent the address from being regarded as an invalid address by the platform.
[0057] like Figure 1 The figure shows one of the application scenarios of the present invention, which requires two servers. The transit server only sends and receives messages of the OneNET platform and forwards them to the business server with a public network IP address. The alarm monitoring center is a system developed by the business server itself, which proves that the system can be easily integrated into a third-party system.
[0058] like Figure 2 Another application scenario of the present invention is shown, which only requires a server with a public network IP, and the server is responsible for the data transmission and reception of the OneNET platform and the business processing of the alarm monitoring center.
[0059] like Figure 3 The present invention is directed to Figure 2 The timing diagram shows the entire process of data flowing through the OneNET platform to the administrator for processing after the user presses the button.
[0060] In the hospital scenario, Figure 1 The implementation steps of the business scenario shown are as follows:
[0061] S1: On the OneNET IoT platform, select NB-IoT networking mode, LwM2M device access protocol and fill in product information to complete product creation. Fill in device name, IMEI (International Mobile Equipment Identity) and IMSI (International Mobile Subscriber Identity) and other information to complete the creation of the button device.
[0062] S2: Port the SDK to the button device. After power-on, send AT commands to the module to automatically complete the protocol connection with the platform bootstrap server, and establish a mapping relationship with the logical device on the platform based on the IMEI, IMSI and Authcode information carried;
[0063] S3: Call the interface provided by the OneNET platform to write configuration information to the button;
[0064] Write the battery power detection cycle and buzzer alarm frequency;
[0065] Enter the public IP or domain name and port of the business server (here is the hospital server) and use Figure 1 For the described scenario, this option must be filled in;
[0066] S4: In the system developed by the hospital server, the IMEI and IMSI of the alarm button are associated with the physical location and the location of the alarm monitoring and processing center;
[0067] S5: The hospital server develops an alarm monitoring center processing system to provide a calling interface for the Tencent Cloud transfer server;
[0068] Select Tencent Cloud as the transit server and develop a URL verification interface to calculate the MD5 of the platform's request parameters and then encode them using Base64. Then, use URLDecoder to calculate and compare them with the signature for verification.
[0069] S6: When an inpatient in a hospital encounters an emergency, he presses the alarm button; or in the case of accidental touch, he long presses to cancel the alarm signal;
[0070] S7: The alarm signal is uploaded to the OneNET IoT platform through the NB-IOT base station;
[0071] S8: OneNET IoT platform transfers the alarm signal to Tencent Cloud server;
[0072] S9: Tencent Cloud server receives the signal and saves it to the message queue. It also forwards the message to the hospital server and replies with HTTP 200 status code to OneNET platform to prevent the address from being identified as an invalid address by OneNET platform.
[0073] S10: The hospital server receives the message and parses the data. Differentiated processing is performed according to different types (periodic reporting of device status, request for help when a button is pressed, and request for cancellation when a button is long pressed);
[0074] S10.1: If the signal type is power detection, update the corresponding device power information and store it persistently;
[0075] S10.2: If the signal type is an alarm, the signal is forwarded to the corresponding monitoring and processing center (here is the hospital nurse station) for prompting, and then handled by relevant personnel;
[0076] S10.3: If the message is an alarm cancellation, it is forwarded to the corresponding monitoring processing center to cancel the corresponding prompt;
[0077] S11: After the relevant personnel have processed the situation, they confirm the alarm signal and the prompt at the monitoring center disappears. This completes the alarm signal processing or cancels the alarm signal processing.
[0078] Beneficial effects: Providing an emergency alarm system based on NB-IoT, which can help managers of closed public places quickly locate the location of emergency accidents and deal with them in a timely manner, while improving work efficiency without adding too much extra cost.
[0079] The NB button used adopts the NB-IoT wireless communication network, which uses the low-power wide area network LPWAN technology, with the advantages of low power consumption, low cost, wide coverage and strong penetration, and relies on the operator's NB-IoT base station, which has good security;
[0080] The NB button used provides two triggering modes: pressing and pulling the rope, which simplifies user interaction and improves fault tolerance;
[0081] Based on the OneNET platform, it is easy to carry out secondary development and integrate into other systems, and has the characteristics of easy expansion, portability and maintainability;
[0082] The system developed based on the C / S architecture can improve the awareness of administrators in closed public places about emergency accidents, help administrators quickly locate accident points, and improve work efficiency.
[0083] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An emergency alarm system based on NB-IoT, characterized in that: The alarm system comprises: Device side, platform side and application side; The device end is an embedded system; The platform end is developed based on the OneNET platform and is used to establish a connection between the device end and the application end; The application end is developed based on the C / S architecture and serves as the message destination of the OneNET platform to receive and process alarm signals.
2. The NB-IoT-based emergency alarm system according to claim 1, characterized in that: The device end includes a parameter configuration module, an alarm signal reporting module, a buzzer control module, an indicator light control module and a battery power detection module; The parameter configuration module is used to set and save the local parameters of the device; The alarm signal reporting module is used to report the alarm signal or report the request to cancel the alarm signal to the OneNET platform; The buzzer control module is used to control the onboard buzzer to emit a sound at a specified frequency to prompt the working status of the NB alarm button; The indicator light control module controls the indicator light and is used to respond to the action of pressing the button; The battery power detection module realizes a regular battery power detection function according to the detection cycle configured by initialization.
3. The NB-IoT-based emergency alarm system according to claim 1, characterized in that: The platform end specifically includes: a device access module, a data transmission module and an application access module; The device access module is connected to the device end and is used to realize the association between the physical device and the logical device; The application access module is connected to the application end and is used to realize the connection between the application server and the OneNET platform; The data transmission module is connected to the device access module and the application access module respectively, and is used to realize data interaction between the alarm button device and the OneNET platform and between the OneNET platform and the application server.
4. The NB-IoT-based emergency alarm system according to claim 3, characterized in that: The device access module selects the NB-IoT networking mode and the LwM2M device access protocol on the OneNET IoT platform and completes the creation of the product after filling in the product information, and completes the creation of the logical device after filling in the device information; Transplant SDK to physical devices, and after power-on, automatically complete the protocol connection with the platform bootstrap server by sending AT commands to the module; A mapping relationship is established between the carried second device information and the logical device on the platform.
5. The NB-IoT-based emergency alarm system according to claim 1, characterized in that: The application access module develops a URL verification interface on the application server, calculates MD5 for the request parameters of the OneNET platform, encodes it using Base64, and compares it with the signature after calculation using URLDecoder for verification.
6. The NB-IoT-based emergency alarm system according to claim 1, characterized in that: The data transmission module calls the interface provided by the OneNET platform to write configuration information to the button; the application server develops a data receiving interface to receive the POST request data initiated by the platform and store the data in a message queue for buffering, and promptly responds to the platform with an HTTP 200 status code to prevent the address from being deemed invalid.
7. The NB-IoT-based emergency alarm system according to claim 1, characterized in that: The application end specifically includes: a message storage module, a service processing module and a data transmission module; The message storage module is responsible for taking out and storing the messages in the message queue; The business processing module is responsible for taking out the messages in the message queue, parsing the messages, determining the message types, and forwarding them to the corresponding monitoring processing center for prompting; The data transmission module is responsible for receiving the alarm signal of the OneNET platform and storing it in the message queue for caching; and responding to the OneNET platform with the HTTP 200 status code in a timely manner.
8. The NB-IoT-based emergency alarm system according to claim 7, characterized in that: The message types specifically include: alarm messages and cancel alarm messages.
9. The NB-IoT-based emergency alarm system according to claim 4, characterized in that: The device information specifically includes: device name, international mobile equipment identity and international mobile subscriber identity.
10. The NB-IoT-based emergency alarm system according to claim 4, characterized in that: The second device information specifically includes: an international mobile equipment identity, an international mobile user identity and an authorization code.
