LoRa child node and LoRa communication system and method

By integrating MCU, LoRa communication module, RS485 interface and digital output interface in LoRa subnode, the linkage control of sensing devices and controlled devices is achieved, and the problem of single function of LoRa subnode is solved, and the applicability is expanded. Supports analog input and lithium battery power supply.

CN119324936AInactive Publication Date: 2025-01-17KENTUO (TIANJIN) IND AUTOMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411856047.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-01-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The functions of the LoRa subnode are relatively single and are only suitable for a certain type of sensor acquisition work, and lack compatibility with different types of sensors and control capabilities for controlled devices.

Method used

A LoRa sub-node is designed, including MCU, LoRa communication module, RS485 interface and digital output interface. The sensor data is received through the RS485 interface, processed and transmitted to the LoRa master node. The server issues control instructions according to the conditions, and the MCU passes digital The output interface controls the controlled equipment, realizes linkage control of the sensing equipment and the controlled equipment, and supports analog input interface and lithium battery power supply.

Benefits of technology

The applicability of LoRa subnodes has been expanded, data acquisition and control of controlled devices of different types of sensors is realized, remote wiring resources are saved, the problem of single functions is avoided, and a flexible power supply method is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324936A_ABST
    Figure CN119324936A_ABST
Patent Text Reader

Abstract

The invention provides a LoRa child node and a LoRa communication system and method, and relates to the technical field of communication. The LoRa child node receives collected data of a first sensor through an RS485 interface, a first MCU processes the collected data to obtain target data, and the target data is transmitted to a LoRa main node through a first LoRa communication module, so that the LoRa main node transmits the target data to a server; and when the server determines that the target data meets a preset condition, the server sends a control instruction to the LoRa child node through the LoRa main node, and the first MCU controls the controlled device through the digital quantity output interface based on the control instruction. By implementing the technical scheme provided by the invention, the technical problem that the function of the LoRa child node is relatively single in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a LoRa subnode, a LoRa communication system and a method. Background Art

[0002] Wireless communication plays an increasingly important role in today's society. With the rapid development of Internet of Things technology, the popularization of sensor devices and the increase in application scenarios require an efficient and reliable wireless communication technology to connect these devices. LoRa technology was born to solve this problem.

[0003] LoRa is a low-power wide area network (LPWAN) wireless communication technology designed to connect long-distance sensor devices to realize IoT applications. A major feature of LPWAN technology is that it can achieve long-distance wireless communication in a low-power manner. LoRa technology uses a modulation method called "long-distance low-power spread spectrum technology". LoRa can also be called long-range radio. This technology can provide extremely low power consumption and extremely long communication distance. At present, in long-distance control scenarios, such as long-distance farmland irrigation scenarios, each sensor device or controlled device is separately configured with a LoRa subnode. The LoRa subnode is only suitable for a certain type of sensor. There are also sensors integrated into the LoRa subnode, which limits the use of the LoRa subnode. It can be seen that the functions of the LoRa subnode in the related technology are relatively simple.

[0004] With regard to the technical problem that the functions of LoRa sub-nodes are relatively single in related technologies, no effective solution has been proposed so far. Summary of the invention

[0005] The present application provides a LoRa subnode, a LoRa communication system and a method, so as to at least solve the technical problem that the function of the LoRa subnode in the related art is relatively single.

[0006] In the first aspect, the present application provides a LoRa sub-node, including: a first MCU, a first LoRa communication module, an RS485 interface, and a digital output interface, wherein the first MCU is electrically connected to the first LoRa communication module, the RS485 interface, and the digital output interface; the LoRa sub-node is used to receive the collected data of the first sensor through the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server; when the server determines that the target data meets the preset conditions, the server sends a control instruction to the LoRa sub-node through the LoRa master node, and the first MCU controls the controlled device through the digital output interface based on the control instruction; the LoRa sub-node and the LoRa master node are connected through LoRa communication, and the LoRa master node is connected to the server through communication and adopts Modbus-TCP communication mode.

[0007] By adopting the above technical solution, the LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface. The collected data of the first sensor is received through the RS485 interface, and the collected data of the first sensor is processed by the first MCU to obtain target data. The first MCU transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa master node, so that the first MCU in the LoRa subnode can control the controlled device through the digital output interface according to the control instruction, such as turning the controlled device on or off. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device, that is, a LoRa subnode can achieve the purpose of linkage control of the sensor device and the controlled device, and the LoRa subnode communicates with the LoRa main node through LoRa, which has strong anti-interference ability. The two do not need a wired connection, which can save remote wiring resources and avoid the problem that the LoRa subnode in the related technology is only suitable for the collection work of a certain type of sensor, resulting in relatively single functions. The technical solution solves the technical problem of the relatively single function of the LoRa subnode and achieves the effect of expanding the applicability of the LoRa subnode.

[0008] Optionally, the above-mentioned LoRa subnode also includes: an analog input interface, wherein the analog input interface is used to externally connect a second sensor, and the LoRa subnode is used to receive collected data of the second sensor through the analog input interface, and the target data also includes data obtained by processing the collected data of the second sensor using the first MCU.

[0009] By adopting the above technical solution, the LoRa subnode can also include an analog input interface, which can be used to receive the collected data of the second sensor. For example, it can be suitable for receiving the collected data of the analog sensor. In this way, the LoRa subnode can receive the collected data of different types of sensors and can also control the controlled device, thereby achieving the purpose of further improving the function of the LoRa subnode.

[0010] Optionally, the analog input interface is used to access one of the following analog signals: 0-10V analog, 0-20mA analog; wherein the analog input interface is connected to the first MCU through an analog-to-digital conversion circuit.

[0011] By adopting the above technical solution, the analog input interface can receive 0-10V analog quantity, or the analog input interface can receive 0-20mA analog quantity. The above analog input interface can be connected to the first MCU through an analog-to-digital conversion circuit, that is, the collected analog quantity is converted into a digital quantity and then processed by the first MCU.

[0012] Optionally, the above-mentioned LoRa subnode also includes: a lithium battery and a first power supply interface, wherein the lithium battery is used to power the first MCU and the first LoRa communication module, and the first external power supply charges the lithium battery through the first power supply interface; or, the above-mentioned LoRa subnode also includes: a second power supply interface, wherein the second external power supply powers the LoRa subnode through the second power supply interface.

[0013] By adopting the above technical solution, the LoRa subnode may also include a lithium battery and a first power supply interface. The lithium battery is used to power the first MCU and the first LoRa communication module. The lithium battery can also be charged by the first external power supply through the first power supply interface, that is, LoRa can be powered by a lithium battery, and the lithium battery can also be charged by an external power supply; or, the LoRa subnode only includes a power supply interface, such as the above second power supply interface, and the second external power supply is directly used to power the LoRa subnode through the second power supply interface, that is, the power supply can be directly powered by an external power supply without using a lithium battery. There are multiple options for the power supply mode of the LoRa subnode, which can be flexibly selected according to the needs of actual applications.

[0014] Optionally, the above-mentioned LoRa subnode also includes: a voltage measurement module, wherein the voltage measurement module is electrically connected to the lithium battery, and the voltage measurement module is used to measure the output voltage of the lithium battery to obtain battery voltage data; the voltage measurement module is also electrically connected to the first MCU, and the first MCU is also used to obtain the battery voltage data and send the battery voltage data to the LoRa master node through the first LoRa communication module.

[0015] By adopting the above technical solution, the LoRa subnode may also include a voltage measurement module, which is used to measure the output voltage of the lithium battery. The first MCU can obtain the battery voltage data of the lithium battery and send the battery voltage data to the LoRa master node through the first LoRa communication module. Thus, the purpose of real-time monitoring of the output voltage of the lithium battery in the LoRa subnode can be achieved.

[0016] Optionally, the LoRa subnode further includes: a step-down module, wherein the step-down module is connected between the lithium battery and the first MCU, and is used to step down the output voltage of the lithium battery to a target voltage and supply power to the first MCU.

[0017] By adopting the above technical solution, the LoRa subnode may also include a step-down module, which can step down the output voltage of the lithium battery to obtain a low voltage, and the low voltage can be used to power the first MCU.

[0018] In a second aspect of the present application, a LoRa communication system is also provided, comprising: a LoRa master node, at least one LoRa subnode, and a server, wherein each of the at least one LoRa subnode is connected to the LoRa master node via LoRa communication; each LoRa subnode comprises a first MCU, a first LoRa communication module, an RS485 interface, and a digital output interface, the LoRa subnode is used to receive collected data from a first sensor via the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa master node via the first LoRa communication module, so that the LoRa master node transmits the target data to the server, wherein the LoRa master node is communicatively connected to the server and adopts a Modbus-TCP communication method; when determining that the target data meets a preset condition, the server sends a control instruction to the LoRa subnode via the LoRa master node, and the first MCU controls the controlled device via the digital output interface based on the control instruction.

[0019] By adopting the above technical solution, the LoRa communication system includes a LoRa main node, at least one LoRa sub-node and a server, wherein each LoRa sub-node is connected to the LoRa main node through LoRa communication, and each LoRa sub-node includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface. The collected data of the first sensor is received through the RS485 interface, and the collected data of the first sensor is processed by the first MCU to obtain target data. The first MCU transmits the target data to the LoRa main node through the first LoRa communication module, so that the LoRa main node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa sub-node through the LoRa main node, so that the first MCU in the LoRa sub-node can control the controlled device through the digital output interface according to the control instruction, such as turning the controlled device on or off. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device, that is, a LoRa subnode can achieve the purpose of linkage control of the sensor device and the controlled device, and the LoRa subnode communicates with the LoRa main node through LoRa, which has strong anti-interference ability. The two do not need a wired connection, which can save remote wiring resources. It also avoids the problem that the LoRa subnode in the related technology is only suitable for the collection of a certain type of sensor, resulting in relatively single functions. It also avoids the problem of high cost caused by the use of LoRa gateways in the related technology. The technical solution solves the technical problem of the relatively single function of the LoRa subnode and achieves the effect of expanding the applicability of the LoRa subnode.

[0020] Optionally, the above-mentioned LoRa master node includes a second MCU, a second LoRa communication module, and a network module, wherein the second MCU is electrically connected to the second LoRa communication module and the network module, the LoRa master node communicates with the LoRa sub-node through the second LoRa communication module and obtains target data, and the second MCU is also used to upload the target data to the server through the network module.

[0021] By adopting the above technical solution, the LoRa master node includes a second MCU, a second LoRa communication module, and a network module. The second LoRa communication module is used to perform LoRa communication with each LoRa sub-node to obtain data collected by each LoRa sub-node. The second MCU can transmit the target data to the server through the network module.

[0022] Optionally, the above-mentioned LoRa master node also includes a third power supply interface, wherein a third external power supply supplies power to the second MCU, the second LoRa communication module and the network module through the third power supply interface, and the third external power supply is a 8-28V DC power supply.

[0023] By adopting the above technical solution, the LoRa master node may also include a third power supply interface, and a third external power supply is directly used to power the LoRa master node through the third power supply interface. The power supply voltage range of the external power supply is 8-28VDC, and the wide range power supply can support a variety of power supplies with different voltages to be selected and connected at will.

[0024] In the third aspect of the present application, a LoRa communication method is also provided, including: the LoRa subnode receives the collected data of the first sensor through the RS485 interface, and uses the first MCU to process the collected data of the first sensor to obtain target data, wherein the LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface; the LoRa subnode transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, wherein the LoRa master node is communicatively connected to the server and adopts a Modbus-TCP communication method; the LoRa subnode receives a control instruction, wherein the control instruction is sent to the LoRa subnode by the server through the LoRa master node when it is determined that the target data meets a preset condition, and the LoRa subnode and the LoRa master node are connected through LoRa communication; the first MCU in the LoRa subnode controls the controlled device through the digital output interface based on the control instruction.

[0025] By adopting the above technical solution, the LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface. The LoRa subnode receives the collected data of the first sensor through the RS485 interface, and uses the first MCU to process the collected data of the first sensor to obtain target data. The first MCU in the LoRa subnode transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa master node, so that the first MCU in the LoRa subnode can control the controlled device through the digital output interface according to the control instruction, such as turning the controlled device on or off. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device, that is, a LoRa subnode can achieve the purpose of linkage control of the sensor device and the controlled device, and the LoRa subnode communicates with the LoRa main node through LoRa, which has strong anti-interference ability. The two do not need a wired connection, which can save remote wiring resources and avoid the problem that the LoRa subnode in the related technology is only suitable for the collection work of a certain type of sensor, resulting in relatively single functions. The technical solution solves the technical problem of the relatively single function of the LoRa subnode and achieves the effect of expanding the applicability of the LoRa subnode.

[0026] In a fourth aspect of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, any of the above method steps is implemented.

[0027] In a fifth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the above method steps is performed.

[0028] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. A LoRa subnode can realize the purpose of linkage control of sensing equipment and controlled equipment, and the LoRa subnode and the LoRa main node communicate through LoRa, with strong anti-interference ability, and the two do not need wired connection, which can save remote wiring resources, and also avoid the problem that the LoRa subnode in the related technology is only applicable to the collection work of a certain type of sensor, resulting in a relatively single function, solves the technical problem that the function of the LoRa subnode is relatively single, and achieves the effect of expanding the applicability of the LoRa subnode; 2. The LoRa subnode can also receive the collection data of analog sensors, that is, it can receive the collection data of different types of sensors, and can also control the controlled equipment, so as to further enhance the function of the LoRa subnode; 3. The LoRa subnode can be powered by a lithium battery, and can be charged by an external power supply; or, it can also be directly powered by an external power supply, that is, there are multiple options for the power supply mode of the LoRa subnode, which can be flexibly selected according to the needs of actual applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a structural frame of a LoRa subnode provided in an embodiment of the present application Figure 1 ; Figure 2 This is a structural frame of a LoRa subnode provided in an embodiment of the present application Figure 2 ; Figure 3 This is an architecture diagram of a LoRa communication system provided in an embodiment of the present application; Figure 4 is a flow chart of a LoRa communication method provided in an embodiment of the present application; Figure 5 This is the principle of a LoRa subnode provided in an embodiment of the present application Figure 1 ; Figure 6 This is the principle of a LoRa subnode provided in an embodiment of the present application Figure 2 ; Figure 7 This is the principle of a LoRa subnode provided in an embodiment of the present application Figure 3 ; Figure 8 This is the principle of a LoRa subnode provided in an embodiment of the present application Figure 4 ; Fig. 9 This is an example diagram of the front side of a PCB of a LoRa subnode provided in an embodiment of the present application; Fig.10 This is an example diagram of the back side of a PCB of a LoRa subnode provided in an embodiment of the present application; Fig.11This is an example diagram of the front side of a PCB of another LoRa subnode provided in an embodiment of the present application; Fig.12 This is an example diagram of the back side of the PCB of another LoRa subnode provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0031] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0032] In the description of the embodiments of the present application, the term "plurality" means two or more. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0033] This application provides a LoRa subnode, referring to Figure 1 , Figure 1 This is a structural frame of a LoRa subnode provided in an embodiment of the present application Figure 1 The LoRa subnode includes: a first MCU, a first LoRa communication module, an RS485 interface, and a digital output interface, wherein: The first MCU is electrically connected to the first LoRa communication module, the RS485 interface and the digital output interface; the LoRa subnode is used to receive the collected data of the first sensor through the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server; when the server determines that the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa master node, and the first MCU controls the controlled device through the digital output interface based on the control instruction; the LoRa subnode and the LoRa master node are connected through LoRa communication, and the LoRa master node is connected to the server through communication and adopts Modbus-TCP communication mode.

[0034] In the above embodiment, the LoRa sub-node (or may be called a LoRa slave station) includes a first MCU (micro control unit, or single chip microcomputer), a first LoRa communication module, an RS485 interface and a digital output interface. The collected data of the first sensor is received through the RS485 interface, and the collected data of the first sensor is processed by the first MCU to obtain target data. The first MCU transmits the target data to the LoRa master node (or may be called a LoRa master station) through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa sub-node through the LoRa master node, so that the first MCU in the LoRa sub-node can control the controlled device through the digital output interface according to the control instruction, such as turning the controlled device on or off. The first sensor can be any type of sensor that supports the Modbus-RTU interface. Of course, in addition to receiving the collected data of the first sensor through the RS485 interface, the LoRa subnode can also send instructions or data to the first sensor through the RS485 interface. The first sensor is not limited to a certain type of sensor, and the first sensor can also be multiple sensors. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device. For example, the controlled device is a solenoid valve, or a lighting lamp, or a fan, or a motor, etc. According to different application scenarios, the controlled device can be different types of devices, that is, a LoRa subnode can achieve the purpose of linkage control of the sensor device and the controlled device, and the LoRa subnode communicates with the LoRa main node through LoRa, with strong anti-interference ability, and the two do not need a wired connection, which can achieve the purpose of saving remote wiring resources, and also avoids the problem that the LoRa subnode in the related technology is only applicable to the collection work of a certain type of sensor, resulting in a relatively single function. The embodiment of the present application solves the technical problem that the function of the LoRa subnode is relatively single, and achieves the effect of expanding the applicability of the LoRa subnode.

[0035] In an optional embodiment, the above-mentioned LoRa subnode also includes: an analog input interface, wherein the analog input interface is used to externally connect a second sensor, and the LoRa subnode is used to receive collected data of the second sensor through the analog input interface, and the target data also includes data obtained by processing the collected data of the second sensor using the first MCU.

[0036] In the above embodiment, the LoRa subnode may also include an analog input interface, such as Figure 2As shown, the analog input interface can be used to receive the collected data of the second sensor, for example, it can be suitable for receiving the collected data of the analog sensor. For example, the second sensor is a temperature sensor, or a pressure sensor, and what is collected is analog quantity. In this way, the LoRa sub-node can receive the collected data of different types of sensors, and can also control the controlled device at the same time, thereby achieving the purpose of further improving the function of the LoRa sub-node. At the same time, the LoRa sub-node in the embodiment of the present application can be suitable for a variety of application scenarios.

[0037] In an optional embodiment, the analog input interface is used to access one of the following analog signals: 0-10V analog, 0-20mA analog; wherein the analog input interface is connected to the first MCU through an analog-to-digital conversion circuit.

[0038] In the above embodiment, the analog input interface can receive 0-10V analog quantity, or the analog input interface can receive 0-20mA analog quantity, and the above analog input interface can be connected to the first MCU through the analog-to-digital conversion circuit, that is, the collected analog quantity is converted into digital quantity and then processed by the first MCU. The LoRa subnode receives data collected by various types of sensors through the RS485 interface and the analog input interface, and then the first MCU processes the collected data to obtain the above target data, that is, the above target data includes the data obtained after processing the data collected by each sensor; in actual applications, there can also be multiple LoRa subnodes, each LoRa subnode can adopt the structure of the above LoRa subnode, and each LoRa subnode sends the target data to the LoRa master node.

[0039] In an optional embodiment, the above-mentioned LoRa subnode also includes: a lithium battery and a first power supply interface, wherein the lithium battery is used to power the first MCU and the first LoRa communication module, and the first external power supply charges the lithium battery through the first power supply interface; or, the above-mentioned LoRa subnode also includes: a second power supply interface, wherein the second external power supply powers the LoRa subnode through the second power supply interface.

[0040] In the above embodiment, the LoRa subnode may also include a lithium battery and a first power supply interface, the lithium battery is used to power the first MCU and the first LoRa communication module, and the first external power supply can also be used to charge the lithium battery through the first power supply interface, that is, LoRa can be powered by a lithium battery, and the lithium battery can also be charged by an external power supply; for example, a 12V lithium battery is used for power supply, and when there is no task, it will enter a low-power sleep mode, with a minimum current of only 20uA. If the task is performed uninterruptedly, the fully charged battery can run for at least 24 hours, and if the task is performed every 10 minutes, the fully charged battery can be used for 1 year. The first external power supply can be a 15-28V DC power supply. Of course, in practical applications, the lithium battery can also be replaced as needed; or, the LoRa subnode only includes a power supply interface, such as the above-mentioned second power supply interface, and the second external power supply is directly used to power the LoRa subnode through the second power supply interface, that is, the lithium battery can be directly powered by an external power supply without using a lithium battery, that is, it supports direct use of an external 15-28V DC power supply without a battery. There are many options for the power supply mode of the LoRa subnode, which can be flexibly selected according to the needs of practical applications.

[0041] In an optional embodiment, the above-mentioned LoRa subnode also includes: a voltage measurement module, wherein the voltage measurement module is electrically connected to the lithium battery, and the voltage measurement module is used to measure the output voltage of the lithium battery to obtain battery voltage data; the voltage measurement module is also electrically connected to the first MCU, and the first MCU is also used to obtain the battery voltage data and send the battery voltage data to the LoRa master node through the first LoRa communication module.

[0042] In the above embodiment, the LoRa subnode may also include a voltage measurement module, which is used to measure the output voltage of the lithium battery. The first MCU can obtain the battery voltage data of the lithium battery, for example, the output voltage of the lithium battery is 12V (or 10.8V, or other voltages), and send the battery voltage data to the LoRa master node through the first LoRa communication module. Thus, the purpose of real-time monitoring of the output voltage of the lithium battery in the LoRa subnode can be achieved.

[0043] In an optional embodiment, the LoRa subnode further includes: a buck module, wherein the buck module is connected between the lithium battery and the first MCU, and is used to buck the output voltage of the lithium battery to a target voltage and supply power to the first MCU.

[0044] In the above embodiment, the LoRa subnode may also include a step-down module, which can step down the output voltage of the lithium battery to obtain a low voltage. For example, the output voltage of the lithium battery is stepped down to obtain a low voltage of 3.3V (or 5V, or other voltages), which can be used to power the first MCU.

[0045] This application also provides a LoRa communication system, referring to Figure 3 , Figure 3 : is an architecture diagram of a LoRa communication system provided in an embodiment of the present application, including: a LoRa master node, at least one LoRa subnode, and a server, wherein: Each LoRa subnode in at least one LoRa subnode is connected to the LoRa main node through LoRa communication; each LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface, and a digital output interface. The LoRa subnode is used to receive the collected data of the first sensor through the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa main node through the first LoRa communication module, so that the LoRa main node transmits the target data to the server, wherein the LoRa main node is connected to the server for communication and adopts Modbus-TCP communication mode; when determining that the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa main node, and the first MCU controls the controlled device through the digital output interface based on the control instruction.

[0046] In the above embodiment, the LoRa communication system includes a LoRa master node, at least one LoRa subnode and a server, such as Figure 3As shown, it includes LoRa subnodes 1 to LoRa subnodes N, wherein each LoRa subnode is connected to the LoRa main node through LoRa communication, and each LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface. The collected data of the first sensor is received through the RS485 interface, and the collected data of the first sensor is processed by the first MCU to obtain target data. The first MCU transmits the target data to the LoRa main node through the first LoRa communication module, so that the LoRa main node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa main node, so that the first MCU in the LoRa subnode can control the controlled device through the digital output interface according to the control instruction, such as turning on or off the controlled device. The first sensor can be any type of sensor that supports the Modbus-RTU interface. Of course, in addition to receiving the collected data of the first sensor through the RS485 interface, the LoRa subnode can also send instructions or data to the first sensor through the RS485 interface. The first sensor is not limited to a certain type of sensor, and the first sensor can also be multiple sensors. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device. For example, the controlled device is a solenoid valve, a lighting lamp, a fan, or a motor, etc. According to different application scenarios, the controlled device can be Different types of devices, that is, a LoRa subnode can achieve the purpose of linkage control of sensing devices and controlled devices, and the LoRa subnode and the LoRa main node communicate through LoRa, with strong anti-interference ability, and the two do not need to be connected by wire, which can achieve the purpose of saving remote wiring resources, and also avoid the problem that the LoRa subnode in the related art is only applicable to the collection work of a certain type of sensor, resulting in a relatively single function, and also avoid the problem of high cost caused by the use of LoRa gateways in the related art. The embodiment of the present application solves the technical problem that the function of the LoRa subnode is relatively single, and achieves the effect of expanding the applicability of the LoRa subnode. When the LoRa communication system includes multiple LoRa subnodes, each LoRa subnode can adopt the structure of the LoRa subnode as described above, and each LoRa subnode sends the target data to the LoRa main node, and the LoRa main node summarizes the data transmitted by each LoRa subnode, and then uploads it to the server, and the server analyzes and processes all the data.

[0047] It should be noted that the above-mentioned LoRa sub-node may also include an analog input interface, which can be used to receive collected data from a second sensor, for example, it can be suitable for receiving collected data from an analog sensor. For example, the second sensor is a temperature sensor, or a pressure sensor, which collects analog quantities. In this way, the LoRa sub-node can receive collected data from different types of sensors, and can also control the controlled device, thereby achieving the purpose of further improving the function of the LoRa sub-node. At the same time, the LoRa communication system in the embodiment of the present application can be applicable to a variety of application scenarios.

[0048] In an optional embodiment, the above-mentioned LoRa master node includes a second MCU, a second LoRa communication module, and a network module, wherein the second MCU is electrically connected to the second LoRa communication module and the network module, the LoRa master node communicates with the LoRa sub-node through the second LoRa communication module and obtains target data, and the second MCU is also used to upload the target data to the server through the network module.

[0049] In the above embodiment, the LoRa master node includes a second MCU, a second LoRa communication module, and a network module. Under normal circumstances, the single-chip microcomputer in the LoRa master node (i.e., the above-mentioned second MCU) can be selected to have stronger performance than the first MCU in the LoRa sub-node. The second LoRa communication module is used to perform LoRa communication with each LoRa sub-node to obtain data collected by each LoRa sub-node. The second MCU can transmit the target data to the server through the network module. For example, the network module can be a network port, which communicates with the server based on the Modbus-TCP protocol. Optionally, the network module can also be 4G or WIFI, that is, the LoRa master node can access the Internet through the network module.

[0050] In an optional embodiment, the above-mentioned LoRa master node also includes a third power supply interface, wherein the third external power supply supplies power to the second MCU, the second LoRa communication module and the network module through the third power supply interface, and the third external power supply is a 8-28V DC power supply.

[0051] In the above embodiment, the LoRa master node may also include a third power supply interface, and a third external power supply is directly used to power the LoRa master node through the third power supply interface. The power supply voltage range of the external power supply is 8-28VDC, that is, 8-28VDC can be used to power the LoRa master node. The wide range power supply can support a variety of power supplies with different voltages to be selected for connection.

[0052] In an optional embodiment, the LoRa master node also includes dual network ports and an LED screen, wherein the LoRa master node is connected to the server and the LED screen respectively through the dual network ports, and the LED screen is used to display the connection status of each LoRa subnode.

[0053] In the above embodiment, there are dual network ports in the LoRa master node, one of which is connected to the server, and the other can be connected to an LED screen (such as a touch screen). The connection status of each LoRa sub-node can be displayed through the LED screen. In actual applications, users can query the working status of the LoRa sub-node through the LED screen, or issue instructions to each LoRa sub-node, etc.

[0054] This application also provides a LoRa communication method, referring to Figure 4 , Figure 4 : is a flow chart of a LoRa communication method provided in an embodiment of the present application, comprising the following steps: Step S401, the LoRa subnode receives the collected data of the first sensor through the RS485 interface, and uses the first MCU to process the collected data of the first sensor to obtain target data, wherein the LoRa subnode includes the first MCU, the first LoRa communication module, the RS485 interface and the digital output interface; Step S402, the LoRa subnode transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, wherein the LoRa master node is connected to the server in a Modbus-TCP communication mode; Step S403, the LoRa subnode receives a control instruction, wherein the control instruction is sent by the server to the LoRa subnode through the LoRa master node when it is determined that the target data meets a preset condition, and the LoRa subnode is connected to the LoRa master node through LoRa communication; Step S404: The first MCU in the LoRa subnode controls the controlled device through the digital output interface based on the control instruction.

[0055] Through the above steps, the LoRa subnode includes a first MCU, a first LoRa communication module, an RS485 interface and a digital output interface. The LoRa subnode receives the collected data of the first sensor through the RS485 interface, and uses the first MCU to process the collected data of the first sensor to obtain target data. The first MCU in the LoRa subnode transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, and then the server can analyze the target data. When the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa master node, so that the first MCU in the LoRa subnode can control the controlled device through the digital output interface according to the control instruction, such as turning on or off the controlled device. The first sensor can be any type of sensor that supports the Modbus-RTU interface. Of course, in addition to receiving the collected data of the first sensor through the RS485 interface, the LoRa subnode can also send instructions or data to the first sensor through the RS485 interface. The first sensor is not limited to a certain type of sensor, and the first sensor can also be multiple sensors. The LoRa subnode includes both an RS485 interface for collecting sensor data and a digital output interface for controlling the controlled device. For example, the controlled device is a solenoid valve, or a lighting lamp, or a fan, or a motor, etc. According to different application scenarios, the controlled device can be different types of devices, that is, a LoRa subnode can achieve the purpose of linkage control of the sensor device and the controlled device, and the LoRa subnode communicates with the LoRa main node through LoRa, with strong anti-interference ability, and the two do not need a wired connection, which can achieve the purpose of saving remote wiring resources, and also avoids the problem that the LoRa subnode in the related technology is only applicable to the collection work of a certain type of sensor, resulting in a relatively single function. The embodiment of the present application solves the technical problem that the function of the LoRa subnode is relatively single, and achieves the effect of expanding the applicability of the LoRa subnode. When the LoRa communication system includes multiple LoRa subnodes, each LoRa subnode can communicate with the LoRa master node using the same steps as the above-mentioned LoRa subnodes. Each LoRa subnode sends the target data to the LoRa master node, which summarizes the data transmitted by each LoRa subnode and uploads it to the server, which analyzes and processes all the data.

[0056] It should be noted that the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application will be described in detail below in conjunction with specific embodiments.

[0057] The principle of LoRa technology is to expand the signal to a wideband during transmission to improve the receiving sensitivity while reducing the transmission power. It takes advantage of the spread spectrum technology to make communication more reliable and less susceptible to interference. In addition, LoRa technology also uses an adaptive rate adjustment method to automatically adjust the communication rate according to changes in the channel environment to further improve the communication quality.

[0058] An embodiment of the present application provides a LoRa-based node module (corresponding to the aforementioned LoRa sub-node), and the entire LoRa communication system includes a LoRa master station (equivalent to the aforementioned LoRa master node), a LoRa slave station (equivalent to the aforementioned LoRa sub-node), and a host computer (corresponding to the aforementioned server).

[0059] The control center is the LoRa master station, which can use the STM32F103C8T6 microcontroller (corresponding to the second MCU mentioned above). The advantages are that it has a large number of pins, rich internal resources, and is widely used. The master station and the host computer use Modbus-TCP communication, which has a wide range of applications; it has dual network ports and supports device cascading; it has an LED screen that can display the status of the connected sub-nodes.

[0060] The LoRa master uses an external power supply with a power supply voltage range of 8~28VDC. The wide range power supply can support a variety of power supplies with different voltages to be connected at will.

[0061] The subnode is a LoRa slave station, which can use the STM32G030F6P6 microcontroller (corresponding to the first MCU mentioned above). The advantages are small package, rich internal resources, low price and low power consumption. Each subnode supports the standard Modbus-RTU interface and can be connected to various sensors to collect node information; the subnode can choose 2 digital outputs + 2 analog inputs, or 4 digital outputs. The digital output can control solenoid valves, lighting, fans and other equipment.

[0062] The LoRa slave station is powered by a 12VDC lithium battery. When there is no task, it will enter a low-power sleep mode with a minimum current of only 20uA. If the task is performed continuously, a fully charged battery can run for 24 hours; if a task is performed every 10 minutes, a fully charged battery can be used for 1 year. The battery can be charged through an external 15~28VDC interface, or the battery can be replaced directly. It also supports direct use of an external 15~28VDC interface for power supply without a battery.

[0063] The master station and the slave station communicate through LoRa, which has strong anti-interference ability; there is no need for a wired connection between the two, which can save remote wiring resources and do not need to worry about the wind, sun, rain and other problems of the cable. The LoRa subnode in the embodiment of the present application has a 485 interface, analog quantity acquisition, and digital quantity output at the same time. There is no existing product on the market that has these functions at the same time.

[0064] Combine the following Figure 5 , Figure 6 , Figure 7 and Figure 8 The LoRa subnode in the embodiment of the present application is described. Since the LoRa subnode in this embodiment involves many circuits and components, it is divided into four parts for description. Figure 5-Figure 8 The complete circuit schematic diagram of the LoRa subnode of this embodiment.

[0065] Figure 5 P6 is a 2-pin interface (or plug, or socket), corresponding to the charging interface circuit, which is composed of D1, R1, R3, C1, C2 and C7. The P6 interface can be connected to an external power supply, such as a 15-28V DC power supply; Figure 5 P1 is also a 2-pin interface, which is the interface of the 12V battery and can be connected to the power supply end of the battery (such as a lithium battery). Figure 5 The chip U1 in the middle is a step-down chip. The step-down circuit composed of the external power supply, the U1 chip and the peripheral circuit steps down the external power supply voltage to 12V, which can charge the lithium battery. For example, the external power supply voltage can be 24V. The peripheral circuit of the U1 chip is composed of D2, R5, R7, C3, C9, C10, C13, L1, etc. Figure 5 The two circuits below are used to step down the 12V lithium battery to obtain a lower voltage (such as 3.3V) to provide operating voltage for the microcontroller. Figure 5 The circuit on the left below is used to filter and divide the 12V battery voltage. The circuit is composed of R2, R4, C5, C6 and C8. Figure 5 The right circuit in the lower middle is a step-down circuit composed of the U2 chip and peripheral circuits to obtain a lower voltage, such as 3.3V. The peripheral circuit of the U2 chip is composed of R6, R8, C4, C11, C12, C14, L2, etc.

[0066] Figure 6 It includes the microcontroller U3 and its peripheral circuits. JP1 is the debugging interface, SWCLK is the serial clock line, and SWDIO is the serial data line, which are connected to the microcontroller U3 respectively. The program can be easily burned through the interface JP1. R12, C15, and C16 constitute the 3.3V working voltage peripheral circuit of the microcontroller, and R28 and D12 constitute the indication circuit, that is, when the microcontroller U3 is working, the indicator light D12 will light up; Figure 6 The circuit composed of key1 and R11 is a reserved control circuit and is not necessary. In addition, Figure 6 P2 corresponds to the LoRa communication module L102, which is also connected to the single-chip microcomputer U3. The single-chip microcomputer U3 controls the LoRa communication module L102 to communicate with the LoRa master node. Figure 6The circuit composed of R9 and R10 measures the output voltage of the lithium battery. ADC3 measures the voltage of the lithium battery. It is connected to the microcontroller U3. The microcontroller U3 sends the battery voltage to the LORA master station. The server can obtain the battery power of each LORA slave station. The pins of the LoRa communication module L102 are shown in Table 1.

[0067] Table 1

[0068] In Table 1, P represents a power pin, I represents an input pin, O represents an output pin, and NC represents an unused pin.

[0069] Figure 7 Among them, P3 is RS485 interface, P4 is digital output interface, U4 is RS485 transceiver, U4 and its peripheral circuits constitute RS485 transceiver circuit, single chip computer U3 is connected to P3 interface through this circuit, and communicates with RS485 sensor or actuator, U4's peripheral circuit is composed of R17, R18, R19, R20, R22, C18, D5, D6, D10, F3, F4 and Q2, etc. Figure 7 Among them, F3, F4, and F5 are self-recovery fuses, and D5, D6, and D10 are bidirectional TVS transient suppression diodes. In addition, Figure 7 RLY1 and RLY2 are both relays, pins 1 and 2 are relay coils, pin 3 is the normally closed point, pin 4 is the common terminal, and pin 5 is the normally open point. The peripheral circuit of RLY1 is composed of R23, R25, D7, F1 and Q3, and the peripheral circuit of RLY2 is composed of R24, R26, D8, F2 and Q4. Figure 7 F6 is also a self-recovering fuse. The outputs of the two relay circuits are connected to the P4 interface respectively. Figure 7 YV+ and YV- in.

[0070] Figure 8 P5 is the analog input interface, AIN1 and AIN2 are two analog input signals, among which the circuit corresponding to AIN1 ( Figure 8 The second circuit in the upper row) is a 0-20mA analog input, which converts the analog AIN1 into ADC2 and inputs it to the microcontroller U3. The circuit corresponding to AIN2 ( Figure 8 The first circuit in the upper row is a 0-10V analog input, which converts the analog AIN2 into ADC1 and inputs it into the microcontroller U3. The circuit corresponding to AIN1 is composed of R21, R27, D9, D11 and C19, and the circuit corresponding to AIN2 is composed of R15, R16, D3, D4 and C17. The two analog inputs are connected by the P5 interface respectively. Figure 8 F7 is also a resettable fuse. Figure 8The circuit composed of R13, R14 and Q1 is also the peripheral circuit of the microcontroller U3. Figure 8 S1 is the power switch, VOUT is the output voltage, and its voltage can be switched between 12V and 24V.

[0071] It should be noted that Figure 5-Figure 8 The component parameters in the figure are only used as an example and can be adjusted as needed in actual applications. In addition, those skilled in the art know that Figure 5-Figure 8 The connection relationship between each part of the circuit can be clearly seen according to the pins of the chip and the network labels in the schematic diagram.

[0072] Fig. 9 This is a front view of a PCB of a LoRa subnode provided in an embodiment of the present application. Fig. 9 As shown, Fig. 9 P1 is the interface of 12V battery, P6 is 2-pin interface (or plug, or socket), P6 is charging interface, JP1 is debugging interface, P2 corresponds to LoRa communication module L102, Fig. 9 The blank rectangular area in the middle is used to place the lithium battery, RLY1 and RLY2 are relays, S1 is the power switch, P3 is the RS485 interface, P4 is the digital output interface, and P5 is the analog input interface.

[0073] Fig.10 This is an example diagram of the back side of a PCB of a LoRa subnode provided in an embodiment of the present application. Fig.10 is with Fig. 9 Correspondingly, here are the example pictures of the front and back sides of the same PCB board. Fig.10 Components and principles Figure 5-Figure 8 correspond.

[0074] Above Figure 9-10 The corresponding LoRa subnode (assuming it is subnode one) has 2 digital outputs (2DO) + ​​2 analog inputs (2AI); in actual applications, the LoRa subnode can also use 4 digital outputs (4DO). Assuming that this type of subnode is subnode two (that is, 4 digital outputs), such as Figure 11-Figure 12 As shown, its schematic diagram is similar to the schematic diagram of the above sub-node 1 (refer to Figure 5-Figure 8 ) is similar to Figure 8 The corresponding two analog input circuit parts are replaced with Figure 7 The relay circuit in the two relay circuits is similar, for example, Fig.11 PCB front view and Fig. 9 The difference is that there are two more relays, such as Fig.11 Relay 3 (RLY3) and Relay 4 (RLY4) in Fig.11The P5 interface in Fig. 9 The P5 interface in is different, similarly, Fig.12 The back view of the PCB Fig.10 There are also slight differences, mainly in the circuit part of relays RLY3 and RLY4, which are basically similar to the previous RLY1 and RLY2 relay circuits, so I will not go into details here.

[0075] In the embodiment of the present application, all subnodes are battery-powered and use LoRa technology to communicate wirelessly with the control center. The advantage of this is that no wires are required between the control center and multiple subnodes to achieve two-way data transmission. Subnodes may be connected to various sensors, and different sensors have different output modes. They must also be connected to various control devices, such as solenoid valves, motors, fans, lighting, etc. Therefore, the subnodes in this design support Modbus-RTU protocol, digital output (DO), and analog input (AI). To adapt to a variety of usage scenarios. The control center sends commands to each subnode and collects information through LoRa, and then communicates with the host computer such as PLC through the Modbus-TCP protocol after aggregation.

[0076] Through the embodiments of the present application, LoRa technology is used for communication, which has strong anti-interference ability, saves the cost of wired connection, and does not need to worry about the safety and maintenance of wired connection. The slave station can use an external 15~28VDC power supply without worrying about battery life; it can also be powered by a 12V lithium battery, with low current in sleep mode, good energy saving, strong battery life, and convenient charging or battery replacement. The slave station supports the Modbus-RTU protocol, and can choose 2 digital outputs + 2 analog inputs, or 4 digital outputs, supporting a variety of applications. The master station supports the Modbus-TCP protocol and is equipped with dual network ports and LED display. It supports 8~28VDC wide voltage power supply and supports a variety of applications.

[0077] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0078] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, any one of the method steps described above is executed.

[0079] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0082] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0083] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0084] This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field not recorded in the present disclosure.

Claims

1. A LoRa subnode, characterized in that: include: The first MCU, the first LoRa communication module, the RS485 interface, the digital output interface, wherein: The first MCU is electrically connected to the first LoRa communication module, the RS485 interface and the digital output interface; The LoRa subnode is used to receive the collected data of the first sensor through the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server; When determining that the target data meets the preset conditions, the server sends a control instruction to the LoRa subnode through the LoRa master node, and the first MCU controls the controlled device through the digital output interface based on the control instruction; The LoRa subnode is connected to the LoRa master node via LoRa communication, and the LoRa master node is connected to the server via Modbus-TCP communication.

2. The LoRa subnode according to claim 1, characterized in that: The LoRa subnode also includes: an analog input interface, wherein: The analog input interface is used to externally connect a second sensor, and the LoRa subnode is used to receive collected data of the second sensor through the analog input interface. The target data also includes data obtained by processing the collected data of the second sensor using the first MCU.

3. The LoRa subnode according to claim 2, characterized in that: The analog input interface is used to access one of the following analog signals: 0-10V analog, 0-20mA analog; Wherein, the analog input interface is connected to the first MCU through an analog-to-digital conversion circuit.

4. The LoRa subnode according to claim 1, characterized in that: The LoRa subnode also includes: a lithium battery and a first power supply interface, wherein the lithium battery is used to power the first MCU and the first LoRa communication module, and the first external power supply charges the lithium battery through the first power supply interface; or, The LoRa subnode further includes: a second power supply interface, wherein a second external power supply supplies power to the LoRa subnode through the second power supply interface.

5. The LoRa subnode according to claim 4, characterized in that: The LoRa subnode also includes: a voltage measurement module, wherein: The voltage measurement module is electrically connected to the lithium battery, and is used to measure the output voltage of the lithium battery to obtain battery voltage data; The voltage measurement module is also electrically connected to the first MCU, and the first MCU is also used to obtain the battery voltage data and send the battery voltage data to the LoRa master node through the first LoRa communication module.

6. The LoRa subnode according to claim 4, characterized in that: The LoRa subnode also includes a voltage reduction module, wherein: The step-down module is connected between the lithium battery and the first MCU, and is used to step down the output voltage of the lithium battery to a target voltage and provide power for the first MCU.

7. A LoRa communication system, characterized in that: include: LoRa master node, at least one LoRa subnode, server, where: Each of the at least one LoRa subnode is connected to the LoRa master node via LoRa communication; Each of the LoRa subnodes includes a first MCU, a first LoRa communication module, an RS485 interface, and a digital output interface. The LoRa subnode is used to receive the collected data of the first sensor through the RS485 interface, and use the first MCU to process the collected data of the first sensor to obtain target data, and transmit the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, wherein the LoRa master node is connected to the server in communication and adopts a Modbus-TCP communication mode; When determining that the target data meets the preset conditions, the server sends a control instruction to the LoRa sub-node through the LoRa master node, and the first MCU controls the controlled device through the digital output interface based on the control instruction.

8. The LoRa communication system according to claim 7, characterized in that: The LoRa master node includes a second MCU, a second LoRa communication module, and a network module, wherein: The second MCU is electrically connected to the second LoRa communication module and the network module. The LoRa master node communicates with the LoRa subnode through the second LoRa communication module and obtains the target data. The second MCU is also used to upload the target data to the server through the network module.

9. The system according to claim 8, characterized in that The LoRa master node also includes a third power supply interface, wherein a third external power supply supplies power to the second MCU, the second LoRa communication module and the network module through the third power supply interface, and the third external power supply is a 8-28V DC power supply.

10. A LoRa communication method, characterized in that: include: The LoRa subnode receives the collected data of the first sensor through the RS485 interface, and processes the collected data of the first sensor using the first MCU to obtain target data, wherein the LoRa subnode includes the first MCU, the first LoRa communication module, the RS485 interface and the digital output interface; The LoRa subnode transmits the target data to the LoRa master node through the first LoRa communication module, so that the LoRa master node transmits the target data to the server, wherein the LoRa master node is communicatively connected with the server and adopts a Modbus-TCP communication mode; The LoRa subnode receives a control instruction, wherein the control instruction is sent by the server to the LoRa subnode through the LoRa master node when it is determined that the target data meets a preset condition, and the LoRa subnode is connected to the LoRa master node through LoRa communication; The first MCU in the LoRa subnode controls the controlled device through the digital output interface based on the control instruction.

Citation Information

Patent Citations

  • Communication method and communication device based on NB-IoT and LoRa

    CN108810136A

  • Industrial central air conditioner monitoring system based on LORA

    CN110986301A

  • Wireless Internet of Things transmission system

    CN111918232A

  • Agricultural environment monitoring control method and system based on LoRa

    CN115866446A

  • Instrument acquisition system based on LORA+4G

    CN217935844U