Monitoring system based on NB-loT
Through a monitoring system based on NB-loT, combined with a microcontroller, RT-Thread system and MQTT server module, the problems of poor real-time performance and limited data processing capabilities of traditional water quality monitoring methods are solved, and real-time monitoring and abnormality of water quality parameters are realized. The timely detection of the situation ensures the safety and health of the water environment and provides an efficient and intelligent water quality monitoring and control system.
Patent Information
- Application Number
- CN202410581188.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional water quality monitoring methods have problems with poor real-time performance and limited data processing capabilities, making it difficult to achieve efficient and intelligent water quality monitoring and control.
Adopt a monitoring system based on NB-loT, combined with microcontroller module, RT-Thread system module, NB-loT module and MQTT server module to achieve real-time data collection, processing and visual monitoring, and provide efficient and reliable message transmission through the MQTT protocol service, connects sensors and data servers, and monitors equipment status and water quality parameters in real time.
Real-time monitoring of water quality parameters and timely discovery of abnormal conditions are achieved, ensuring the safety and health of the water environment, improving the real-time nature and data processing capabilities of water quality monitoring, and providing an efficient and intelligent water quality monitoring and control system.
Smart Images

Figure FT_1
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and more specifically to a monitoring system based on NB-IoT. Background Art
[0002] With the advancement of science and technology and the development of the Internet, digital transformation has become an important trend in all walks of life. As an important part of digital transformation, the NB-loT detection system provides enterprises and organizations with more efficient and intelligent monitoring and management methods through real-time data collection, transmission and analysis. At present, the application of NB-loT detection systems in the field of industrial production is becoming more and more extensive. By real-time monitoring of the status of production equipment, the operation of production lines and other information, it can optimize production processes, improve production efficiency, reduce production costs, and ensure production safety. Through national propaganda and the improvement of people's awareness of environmental protection, water quality monitoring and control has become an important issue. Traditional water quality monitoring methods have problems such as poor real-time performance and limited data processing capabilities. This invention introduces NB-loT technology, combines real-time operating system and network communication technology, and constructs an efficient and intelligent water quality monitoring and control system. Summary of the invention
[0003] In view of this, the present invention provides a monitoring system based on NB-loT, which can monitor the operating status of the equipment in real time, monitor environmental parameters such as temperature, humidity and water quality parameters such as pH value, dissolved oxygen, turbidity, conductivity, etc.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions: A monitoring system based on NB-loT, including a microcontroller (MCU) module, an RT-Thread system module, a NB-loT module, and an MQTT server module; The microcontroller (MCU) module is used to collect and process various sensor data and send control instructions; The RT-Thread system module is used to implement switching and scheduling between tasks, and can provide the system with a variety of scheduling strategies and priority management methods; The NB-IoT module is used to connect physical devices to the Internet to collect, exchange and execute commands on sensor data in the system; The MQTT server module is used to implement the message publishing and subscription functions of the MQTT protocol, providing efficient and reliable message transmission services for the Internet of Things (NB-loT) system; it is used to collect data from various sensors and data servers, monitor the working status of equipment in real time, summarize data and perform visual monitoring; BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 A system architecture diagram of a monitoring system based on NB-IoT provided by the present invention. DETAILED DESCRIPTION
[0006] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0007] The NB-IoT-based monitoring system described in the present invention is as follows: Figure 1 As shown, the microcontroller (MCU) module includes a serial port module, a water quality sensor module, and an electronic compass module; Furthermore, the serial port module is used for serial port communication between different devices, and for connection with external devices such as sensors to realize data collection and transmission; Furthermore, the water quality sensor module is used to monitor water quality parameters in real time, such as pH value, dissolved oxygen, turbidity, conductivity, etc., so that abnormal water quality can be discovered in time to ensure the safety and health of the water environment; Furthermore, the electronic compass module provides accurate heading information by measuring the strength and direction of the geomagnetic field; it is used for navigation and positioning of ships in this system to determine the direction of travel; the electronic compass module can also achieve fast and accurate data conversion; the electronic compass module has simple and effective user calibration instructions, which is convenient for users to calibrate and set; it also has a zero point correction function, which can further improve the accuracy of direction measurement; Furthermore, the NB-loT module includes receiving and processing data, creating device operation tasks, maintaining connection with the server, obtaining and correcting GPS data, automatic navigation control, obtaining sensor data, and sending data to the MQTT server.
[0008] The MQTT server part in the system of the present invention includes an emqx server, a WeChat applet, and a Huawei cloud, and the NB-loT module is communicatively connected with the emqx server, the WeChat applet, and the Huawei cloud. Example
[0009] Based on the above embodiments, in a specific implementation, a monitoring system based on NB-IoT is as follows: Figure 1 As shown, the following steps are included: When the monitoring system starts working, the system first initializes the serial port module to establish communication with external devices; Further, the water quality sensor module is initialized, including a pH sensor, a TDS sensor, and a turbidity sensor; Further, an ADC (analog-to-digital converter) is initialized to convert the analog signal output by the sensor into a digital signal; Further, an electronic compass module is initialized to determine the position and direction of the device; Furthermore, the RT-Thread real-time operating system is started to initialize and configure system resources; Furthermore, basic tasks are created in the RT-Thread system, including NB-loT_Usart_Task (serial communication task), NB-loT_Init_Task (NB-loT initialization task) and Idel_Task (idle task); Furthermore, a binary semaphore lot_Bin_Semaphore is created in the RT-Thread system for synchronization and communication between tasks; Furthermore, the system performs pre-startup preparations for each device, including the NB-loT_Init_Task task, which is used to start the NB-loT module and establish a connection with the MQTT server; the NB-loT_Usart_Task task, which is used to receive and process the received data from the NB-loT module, including the water quality sensor detection data and the device status information at this time; the Idel_Task task, which is used to maintain a continuous connection with the server to ensure real-time data transmission. Further, the equipment operation program is carried out, and the tasks include the overall control and scheduling task of the equipment Route_Task, the equipment GPS data acquisition and correction task Gps_Task, the equipment sensor data acquisition task Sensors_Processing_Task and the equipment data transmission task lot Pubsh_Task; Furthermore, the system sends the processed data to the MQTT server module through the MQTT protocol, including the emqx server, WeChat applet, and Huawei cloud platform; The embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0010] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A monitoring system based on NB-IoT, It is characterized in that include: Microcontroller (MCU) module, RT-Thread system module, NB-loT module, MQTT server module; The microcontroller (MCU) module is used to collect and process various sensor data and send control instructions; The RT-Thread system module is used to implement switching and scheduling between tasks, and can provide the system with a variety of scheduling strategies and priority management methods; The NB-IoT module is used to connect physical devices to the Internet to collect, exchange and execute commands on sensor data in the system; The MQTT server module is used to implement the message publishing and subscription functions of the MQTT protocol, and provide efficient and reliable message transmission services for the Internet of Things (NB-loT) system; Used to collect data from various sensors and data servers, monitor the working status of equipment in real time, summarize data and perform visual monitoring.
2. According to claim 1, a monitoring system based on NB-IoT, It is characterized in that The microcontroller (MCU) module includes a serial port module, a water quality sensor module, and an electronic compass module; The serial port module is used for serial port communication between different devices, and for connecting with external devices such as sensors to realize data collection and transmission; The water quality sensor module is used to monitor water quality parameters in real time, such as pH value, dissolved oxygen, turbidity, conductivity, etc., so that abnormal water quality can be discovered in time to ensure the safety and health of the water environment; The electronic compass module provides accurate heading information by measuring the strength and direction of the geomagnetic field; it is used for navigation and positioning of ships in this system to determine the direction of travel; the electronic compass module can also achieve fast and accurate data conversion; the electronic compass module has simple and effective user calibration instructions, which is convenient for users to calibrate and set; it also has a pointing zero point correction function, which can further improve the accuracy of direction measurement.
3. According to claim 1, a monitoring system based on NB-IoT, It is characterized in that The NB-loT module includes receiving and processing data, creating device operation tasks, maintaining connection with the server, obtaining and correcting GPS data, automatic navigation control, obtaining sensor data, and sending data to the MQTT server.
4. The NB-loT module according to claim 3, It is characterized in that The MQTT server part includes an emqx server, a WeChat applet, and a Huawei cloud, and the NB-loT module is connected to the emqx server, the WeChat applet, and the Huawei cloud.
