Data transmission device and data transmission method based on LoRaWAN
By adopting LoRaWAN-based data transmission devices and methods in remote areas, the problem of inability to communicate due to the inability to cover the base station signals of the operator is solved, and large-scale data communication is realized, saving traffic costs and reducing data transmission costs.
Patent Information
- Application Number
- CN202510312656.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-06-20
AI Technical Summary
In remote areas, operator base station signals cannot be fully covered, resulting in the 4G DTU being unable to communicate with base stations normally in the breeding environment and the traffic charge is high.
Using LoRaWAN-based data transmission devices and methods, wireless connection between LoRaWAN transmission devices and LoRaWAN gateways is achieved through long-distance and large-scale data communication, with a large coverage range, and can meet the needs of large-scale Internet of Things applications.
It successfully solved the problem of incommunication caused by the inability to fully cover the operator's base station signals, saved traffic costs, and operated for a long time while powered by a low-power design, reducing data transmission costs.
Smart Images

Figure CN120186574A_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to the technical field of data transmission. More specifically, the present invention relates to a data transmission device and a data transmission method based on LoRaWAN. Background Art
[0002] In the breeding industry, the construction site of the factory is often located in remote areas, where the signal of the operator's base station cannot be covered, and the personnel in the farm area cannot make normal calls with their mobile phones. For the industrial transmission DTU adopting the 4G communication scheme, problems such as data loss and platform offline also occur.
[0003] Currently, in some scenarios, such as the large-scale pig breeding industry, the combined mode of Ethernet + WiFi (wireless network) is adopted for network coverage as the mainstream communication scheme for intelligent equipment. 4G DTU is an Internet of Things device based on 4G communication technology. It uses the TD-LTE or FDD-LTE network to realize the wireless long-distance data transmission between the local serial port data and the network-side server, and is mainly used for remote data acquisition and remote control projects. Through the 4G DTU (Data Transfer Unit), the original serial data of various sensors can be transmitted to the DTU through RS485 / 232, and then converted into 4G network signals for transmission to achieve two-way transparent data transmission.
[0004] However, the current 4G DTU technology has problems of incommunication and high traffic fees caused by the inability to fully cover the operator's base station signals in remote areas. In the livestock industry, the breeding environment is mostly in remote rural areas or mountainous areas far from cities, and 4G DTU often fails to communicate with the base station normally in the breeding environment.
[0005] In view of this, the present invention provides a data transmission device and a data transmission method based on LoRaWAN (Long Range Wide Area Network). It has a large coverage range, can meet the needs of large-scale Internet of Things applications, and can successfully solve the problem of incommunication caused by the inability to fully cover the operator's base station signals. In addition, the LoRaWAN transmission device and the LoRaWAN gateway can communicate using an unlicensed frequency band, thus saving the cost of traffic fees. Further, the LoRaWAN transmission device has low power consumption, so it can still operate for a long time when powered by a battery, thereby effectively reducing the data transmission cost. Summary of the Invention
[0006] In order to solve at least one or more of the above-mentioned technical problems, the present invention proposes a data transmission device and a data transmission method based on LoRaWAN in multiple aspects.
[0007] In a first aspect, the present invention provides a LoRaWAN-based data transmission device, comprising: at least one acquisition device, each of which is configured to obtain corresponding acquisition data; at least one execution device, each of which is configured to perform corresponding operations; a server, which is configured to generate corresponding processing results according to each acquisition data; at least one LoRaWAN transmission device, each of which is respectively connected to at least one acquisition device and at least one execution device through an RS485 line, and is configured to transmit each acquisition data outward and transmit corresponding processing results to each execution device; and a LoRaWAN gateway, which is wirelessly connected to each of the LoRaWAN transmission devices and connected to the server, and is configured to forward the acquisition data of each acquisition device and the processing results corresponding to each acquisition data between each LoRaWAN transmission device and the server.
[0008] In one embodiment, the LoRaWAN transmission device comprises: a communication module, which is electrically connected to the LoRaWAN gateway and is configured to transmit acquisition data and processing results with the LoRaWAN gateway; and a Uart interface circuit, which is respectively electrically connected to the communication module, the acquisition device and the execution device and is configured to transmit the acquisition data from the acquisition device to the communication module and transmit the processing results to the corresponding execution device.
[0009] In one embodiment, the LoRaWAN transmission device further comprises a level conversion circuit, and the communication module and the Uart interface circuit are respectively electrically connected to the level conversion circuit and are configured to perform level conversion to match the levels of the communication module and the Uart interface circuit.
[0010] In one embodiment, the communication module is further configured to generate corresponding working state signals according to its different working states, or generate corresponding connection state signals according to its connection status with the LoRaWAN gateway; the LoRaWAN transmission device further comprises a display module, which is electrically connected to the communication module and is configured to present different display modes according to the working state signals or the connection state signals.
[0011] In one embodiment, the communication module adopts a Fudan Microelectronics FM33LG043+SX1268 chip, the voltage input range of its input module is 8-28V, and its output module is an electrical isolation module to achieve electrical isolation between the input signal and the output signal.
[0012] In one embodiment, the LoRaWAN transmission device is configured to directly transmit the acquisition data of the corresponding acquisition device to the LoRaWAN gateway, or transmit the acquisition data of the corresponding acquisition device after processing to the LoRaWAN gateway.
[0013] In one embodiment, a guide rail bayonet is provided on the housing of the LoRaWAN transmission device for installation on the guide rail inside the electrical box.
[0014] In one embodiment, the LoRaWAN gateway and the server communicate via Ethernet or a 4G network.
[0015] In one embodiment, the acquisition device includes: a data acquisition unit for acquiring data and using it as the acquired data; and / or a controller electrically connected to the corresponding data acquisition unit for processing the data acquired by the data acquisition unit and using the processing result as the acquired data.
[0016] In a second aspect, the present invention further provides a LoRaWAN-based data transmission method, including: each of at least one LoRaWAN transmission device transmitting the acquired data of the corresponding acquisition device to the server through the LoRaWAN gateway; and the server generating corresponding processing results based on the respective acquired data and transmitting them to the corresponding LoRaWAN transmission device through the LoRaWAN gateway, so that the LoRaWAN transmission device transmits them to the corresponding execution device.
[0017] Generally speaking, compared with the prior art by the above technical solution conceived by the present invention, due to the adoption of LoRaWAN technology, the LoRaWAN gateway can communicate with multiple LoRaWAN transmission devices as a relay, and the communication radius of the LoRaWAN gateway is relatively long, so long-distance and large-scale data communication can be achieved between the LoRaWAN gateway and the LoRaWAN transmission devices. Therefore, the signal coverage range is large, which can meet the needs of large-scale Internet of Things applications, and thus can successfully solve the communication problem caused by the inability of the operator's base station signal to cover the whole area. In addition, the LoRaWAN transmission device and the LoRaWAN gateway can communicate using an unlicensed frequency band, thus saving the cost of traffic fees. Further, the LoRaWAN transmission device is a low-power device, so it can still operate for a long time when powered by a battery, thereby effectively reducing the data transmission cost. To sum up, this solution can reduce various costs such as materials, operation and maintenance, and traffic fees, and the cost is far ahead. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the drawings, several embodiments of the present invention are shown in an exemplary rather than restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0019] Figure 1An exemplary principle block diagram of a LoRaWAN-based data transmission device according to an embodiment of the present invention is shown;
[0020] Figure 2 A principle block diagram of a LoRaWAN transmission device according to an embodiment of the present invention is shown;
[0021] Figure 3 A principle block diagram of a LoRaWAN transmission device according to another embodiment of the present invention is shown;
[0022] Figure 4 A circuit diagram of a level conversion circuit between the transmitting end of a Uart interface circuit and the receiving end of a communication module according to an embodiment of the present invention is shown;
[0023] Figure 5 A circuit diagram of a level conversion circuit between the transmitting end of a communication module and the receiving end of a Uart interface circuit according to an embodiment of the present invention is shown;
[0024] Figure 6 A principle block diagram of a LoRaWAN transmission device according to yet another embodiment of the present invention is shown;
[0025] Figure 7 A principle block diagram of a LoRaWAN-based data transmission method according to an embodiment of the present invention is shown. Detailed implementation manners
[0026] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0027] It should be understood that the terms "including" and "comprising" used in the specification and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0028] It should also be understood that the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification and claims of the present invention, unless otherwise clearly specified in the context, the singular forms "a", "an", and "the" are intended to include the plural forms. It should be further understood that the term " / and / " used in the specification and claims of the present invention refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0029] As used in this specification and the claims, the term "if" may be construed contextually as "when" or "once" or "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed contextually to mean "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]".
[0030] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0031] Figure 1 An exemplary schematic block diagram of a LoRaWAN-based data transmission device 100 according to an embodiment of the present invention is shown.
[0032] As shown in the figure, the data transmission device 100 may include at least one acquisition device, at least one execution device, a server 105, at least one LoRaWAN transmission device, and a LoRaWAN gateway 104. At least one acquisition device, each of which is used to obtain corresponding acquisition data; at least one execution device, each of which is used to execute corresponding operations; the server 105, which is used to generate corresponding processing results according to each acquisition data; at least one LoRaWAN transmission device, each of which is respectively connected to at least one acquisition device and at least one execution device through an RS485 line, and is used to transmit each acquisition data outward and transmit the corresponding processing results to each execution device; and the LoRaWAN gateway 104, which is wirelessly connected to each LoRaWAN transmission device and connected to the server, and is used to forward the acquisition data of each acquisition device and the processing results corresponding to each acquisition data between each LoRaWAN transmission device and the server 105.
[0033] In one embodiment, it may include one or more acquisition devices, such as 2, 5, 10, 20, or 50, etc. Figure 1 M acquisition devices are exemplarily shown therein, where M is a positive integer greater than or equal to 2, namely the first acquisition device 1011, the second acquisition device 1012... the Mth acquisition device 1013.
[0034] In one embodiment, the acquisition device may include a data acquisition unit, which is used to acquire data and use it as the acquired data. Based on different application scenarios, the data acquisition unit may include one or more sensors. For example, in the livestock breeding scenario, it may include temperature sensors, humidity sensors, illuminance sensors, ammonia sensors, carbon dioxide sensors, noise sensors, etc. for acquiring environmental parameters. It may also include sensors for monitoring the heart rate and exercise amount of livestock, or intelligent electricity meters or intelligent water meters for acquiring data.
[0035] In another embodiment, the acquisition device may further include a controller, which can be electrically connected to the corresponding data acquisition unit to process the data acquired by the data acquisition unit and use the processing result as the acquired data. The data acquisition unit in this embodiment may be the same as the above-mentioned data acquisition unit, and will not be elaborated here. The controller can process the data acquired by the data acquisition unit, such as format conversion, so that the processed data can meet the requirements of subsequent data transmission and reduce the pressure of subsequent data processing.
[0036] In one embodiment, it may include one or more execution devices, such as 2, 5, 10, 20, or 50, etc. Figure 1 Exemplarily shown in the figure are P execution devices, where P is a positive integer greater than or equal to 2, namely the first execution device 1021, the second execution device 1022... the Pth execution device 1023. The execution device may include a controllable switch, etc. For example, it may be an electromagnetic valve arranged on the water supply pipeline, and the opening degree of the electromagnetic valve on the water supply pipeline is controlled by the acquired water supply information, so as to adjust the water supply for livestock.
[0037] It can be understood that the above-listed acquisition devices and execution devices are merely exemplary rather than restrictive. According to different application scenarios, they may also be other acquisition devices or execution devices, which will not be elaborated here.
[0038] In one embodiment, the server may include a cloud server or a network server.
[0039] In one embodiment, it may include one or more LoRaWAN transmission devices, such as 8, 10, 20, 30, or 50, etc. Figure 1 Exemplarily shown in the figure are N LoRaWAN transmission devices, where N is a positive integer greater than or equal to 2, namely the first LoRaWAN transmission device 1031, the second LoRaWAN transmission device 1032... the Nth LoRaWAN transmission device 1033.
[0040] Different LoRaWAN transmission devices can be connected to different collection devices and execution devices, so as to collect different data and perform different controls. For example, in the livestock breeding field listed above, one LoRaWAN transmission device can be connected to temperature sensors, humidity sensors, illuminance sensors, temperature control switches, humidity control switches and illuminance control switches, so as to realize the control of temperature, humidity and illuminance; another LoRaWAN transmission device can be connected to ammonia sensors, carbon dioxide sensors, noise sensors, ammonia control switches, carbon dioxide control switches and sound control switches, so as to realize the control of ammonia, carbon dioxide and sound; another LoRaWAN transmission device can also be connected to smart meters, smart water meters, electricity consumption control switches and water consumption control switches, so as to realize the control of electricity consumption and water consumption. One LoRaWAN transmission device can be connected to multiple, such as 22 terminal devices (collection devices and execution devices), so as to make it have a wider coverage range.
[0041] For the convenience of disassembly and assembly, in one embodiment, guide rail buckles can be provided on the outer shell of the LoRaWAN transmission device so as to be installed on the guide rail inside the electrical box. It can be understood that other detachable connection methods can also be used to install the LoRaWAN transmission device. For example, a receiving box can be provided inside the electrical box, and the LoRaWAN transmission device can be placed in the receiving box. In addition to the detachable connection method, the LoRaWAN transmission device can also be fixedly connected to the electrical box, such as fixedly installed inside the electrical box, to ensure the firmness of the installation of the LoRaWAN transmission device. In another embodiment, the LoRaWAN transmission device can also be installed on other structures or in other ways other than the above methods, which can be specifically set according to needs and will not be elaborated here.
[0042] In one implementation, the outer shell of the LoRaWAN transmission device can be made of ABS (thermoplastic), which has characteristics such as high strength, good impact resistance, excellent processing performance, good electrical insulation and chemical corrosion resistance, so as to better protect the LoRaWAN transmission device. As an example, the LoRaWAN transmission device can adopt the IP65 protection level and can be potted.
[0043] In one embodiment, the LoRaWAN gateway 104 can communicate with the server 105 through Ethernet or 4G network. In actual use, the LoRaWAN gateway 104 can be deployed at the center of the use area (such as a livestock farm), so as to meet the Internet of Things communication needs within a large range.
[0044] In terms of the data transmission method between the LoRaWAN transmission device and the LoRaWAN gateway 104, the LoRaWAN transmission device can be used to directly transmit the collected data of the corresponding collection device to the LoRaWAN gateway 104, thereby reducing the data processing difficulty of the LoRaWAN transmission device. In another implementation scenario, the LoRaWAN transmission device can also process the collected data of the corresponding collection device and then transmit it to the LoRaWAN gateway 104, so as to meet the data transmission requirements of the LoRaWAN gateway 104 and reduce the difficulty of subsequent data processing.
[0045] The above only describes the structure and working principle when multiple LoRaWAN transmission devices, multiple collection devices, and multiple execution devices are included. It can be understood that when one LoRaWAN transmission device, one collection device, and one execution device are included, the LoRaWAN-based data transmission device can also communicate data in a similar manner as described above, which will not be elaborated here.
[0046] As can be seen from the above description, compared with the 4G technology, since this solution uses the LoRaWAN technology, it can adopt a typical star topology structure, use the LoRaWAN gateway 104 as a relay to communicate with multiple (tens of thousands of) LoRaWAN transmission devices. The communication radius of the LoRaWAN gateway 104 is relatively long (usually up to 1.8 kilometers), so that long-distance and large-scale data communication can be achieved between the LoRaWAN gateway 104 and the LoRaWAN transmission devices. Therefore, the signal coverage range is large, which can meet the needs of large-scale Internet of Things applications, and thus can successfully solve the communication problem caused by the inability of the operator's base station signal to cover the whole area.
[0047] In addition, the LoRaWAN transmission device and the LoRaWAN gateway 104 can communicate using an unlicensed frequency band, thereby saving the cost of traffic fees. Further, the LoRaWAN transmission device is a low-power device, so it can still operate for a long time when powered by a battery, thus effectively reducing the data transmission cost. In summary, this solution can reduce various costs such as materials, operation and maintenance, and traffic fees, and the cost is far ahead.
[0048] It can be seen that because the LoRaWAN communication technology has the characteristics of long distance, low rate, multiple nodes, and easy deployment, this solution can solve the problems of high material costs and troublesome construction of wired Ethernet and WiFi, and can also avoid the communication problem caused by the inability of the 4G signal of the operator's base station to cover the whole area in remote areas.
[0049] In the livestock breeding scenario, taking 200 nodes as the calculation unit as an example, compared with the 4G solution, the cost of the LoRaWAN solution can be reduced by 13,052 yuan. The following uses Table 1 and Table 2 to illustrate the cost difference between the two. Table 1 shows the cost of adopting this solution (LoRaWAN solution), and Table 2 shows the cost of adopting the 4G solution.
[0050] Table 1
[0051]
[0052] Table 2
[0053]
[0054] The overall structure of the LoRaWAN-based data transmission device has been described above. Next, the specific structure of the LoRaWAN transmission device in this solution will be described in combination with specific embodiments.
[0055] Figure 2 The principle block diagram of the LoRaWAN transmission device 200 according to an embodiment of the present invention is shown. In order to show the connection relationship between the LoRaWAN transmission device 200, the acquisition device, the execution device, and the LoRaWAN gateway, the acquisition device 210, the execution device 211, the LoRaWAN gateway 212, and the server 213 are also exemplarily shown in the figure.
[0056] As shown in the figure, the LoRaWAN transmission device 200 may include a communication module 201 and a Uart interface circuit 202. The communication module 201 may be electrically connected to the LoRaWAN gateway 212 and is used for transmitting the acquisition data and the processing result to the LoRaWAN gateway 212. The Uart interface circuit 202 may be electrically connected to the communication module 201, the acquisition device 210, and the execution device 211 respectively, and is used for transmitting the acquisition data from the acquisition device 10 to the communication module 201 and transmitting the processing result to the corresponding execution device 211.
[0057] In one embodiment, the communication module 201 may adopt the Fudan Micro FM33LG043 + SX1268 chip, which may include 44 pins, support the communication frequency band of 410 - 525 MHz, and the transmit power is 22 ± 0.5 dBm @ 470 MHz. The voltage input range of its input module may be 8 - 28V, and its output module may be an electrical isolation module to achieve electrical isolation between the input signal and the output signal. In one embodiment, the transmission rate of the Uart interface circuit 202 may be 1200 bps - 115200 bps, and the operating voltage may be 1.9V - 3.7V. The LoRaWAN transmission device 200 may also include an externally connected LoRa antenna, such as a 5-meter-long one.
[0058] If the power supply voltages required by the Uart interface circuit 202 and the communication module 201 are the same, for example, both use 3.3V power supply, only the TXD (transmission end) of the Uart interface circuit 202 needs to be connected to the RXD (reception end) of the communication module 201, and the RXD (reception end) of the Uart interface circuit 202 needs to be connected to the TXD (transmission end) of the communication module 201, then the two can perform data transmission. However, when the power supply voltages required by the Uart interface circuit 202 and the communication module 201 are different, for example, the communication module 201 uses 5V power supply and the Uart interface circuit 202 uses 3.3V power supply, at this time, the two cannot directly perform data transmission and need to perform level conversion. Next, this solution will be combined with Figure 3 to illustrate the LoRaWAN transmission device with a level conversion circuit.
[0059] Figure 3 The principle block diagram of the LoRaWAN transmission device 300 according to another embodiment of the present invention is shown. In order to show the connection relationship between the LoRaWAN transmission device 300, the LoRaWAN gateway, the acquisition device, and the execution device, the acquisition device 310, the execution device 311, the LoRaWAN gateway 312, and the server 313 are also exemplarily shown in the figure.
[0060] As shown in the figure, the LoRaWAN transmission device 300 may include a communication module 301, a Uart interface circuit 302, and a level conversion circuit 303. The connection relationship and working principle between the communication module 301 and the Uart interface circuit 302, and their connection with the acquisition device 310, the execution device 311, and the LoRaWAN gateway 312 are the same as those in the Figure 2 embodiment shown, and will not be elaborated here.
[0061] In this embodiment, the communication module 301 and the Uart interface circuit 302 can be electrically connected to the level conversion circuit 303 respectively and are used for level conversion to make the levels of the communication module 301 and the Uart interface circuit 302 match.
[0062] Through the level conversion circuit 303, the level conversion from the transmission end of the Uart interface circuit 302 to the reception end of the communication module 301, and the level conversion from the transmission end of the communication module 301 to the reception end of the Uart interface circuit 302 can be realized, so as to ensure the normal serial communication between the Uart interface circuit 302 and the communication module 301 with different power supply voltages.
[0063] The above-mentioned level conversion circuit 303 can be implemented by various circuit structures. Next, this solution will be combined with Figure 4 and Figure 5The level conversion circuit between the transmitting end of the exemplary Uart interface circuit and the receiving end of the communication module, and the specific circuit structure of the level conversion circuit between the transmitting end of the communication module and the receiving end of the Uart interface circuit will be used to illustrate the level conversion circuit.
[0064] Figure 4 The circuit diagram of the level conversion circuit 400 between the transmitting end of the Uart interface circuit and the receiving end of the communication module according to an embodiment of the present invention is shown.
[0065] As shown in the figure, the transmitting end Module_TX of the Uart interface circuit is connected to the receiving end MCU_RX of the communication module. Module_TX is connected to the base of transistor Q1 through resistors R1 and R7. The collector of transistor Q1 is connected to the power supply Module_VDD of the Uart interface circuit through resistor R2, and the emitter of the transistor is grounded. The collector of transistor Q1 is connected to the base of transistor Q2. The collector of transistor Q2 is connected to the power supply MCU_VDD of the communication module through resistor R3, the emitter of the transistor is grounded, and the collector of transistor Q2 is connected to the receiving end MCU_RX of the communication module.
[0066] When Module_TX outputs a high level, after the current limiting by resistor R1, transistor Q1 conducts. After transistor Q1 conducts, the potential of its collector decreases and is approximately 0V (grounded), so that the potential of the base of Q2 connected to the collector of transistor Q1 also becomes low. At this time, transistor Q2 is cut off. At this time, a high level is output to MCU_RX.
[0067] When Module_TX outputs a low level, transistor Q1 is cut off, and the potential of its collector rises to Module_VDD, causing transistor Q2 to conduct. The potential of the collector of transistor Q2 decreases and is approximately 0V, and a low level is output to MCU_RX. Thus, the level conversion from Module_TX to MCU_RX is achieved.
[0068] Figure 5 The circuit diagram of the level conversion circuit 500 between the transmitting end of the communication module and the receiving end of the Uart interface circuit according to an embodiment of the present invention is shown.
[0069] As shown in the figure, the transmitting end MCU_TX of the communication module is connected to the receiving end Module_RX of the Uart interface circuit. MCU_TX is connected to the base of transistor Q3 through resistors R8 and R4. The collector of transistor Q3 is connected to MCU_VDD through resistor R5, and the emitter of transistor Q3 is grounded. The collector of transistor Q3 is connected to the base of transistor Q4. The collector of transistor Q4 is connected to Module_VDD through resistor R6, the emitter of transistor Q4 is grounded, and the collector of transistor Q4 is connected to Module_RX.
[0070] When the MCU_TX outputs a high level, after being limited by the resistor R4, the transistor Q3 conducts. After the transistor Q3 conducts, the potential of its collector decreases and is approximately 0V (grounded), so that the potential of the base of Q4 connected to the collector of the transistor Q3 also becomes low. At this time, the transistor Q4 is cut off. At this time, a high level is output to Module_RX.
[0071] When the MCU_TX outputs a low level, the transistor Q3 is cut off, and the potential of its collector rises to MCU_VDD, causing the transistor Q4 to conduct. The potential of the collector of the transistor Q4 decreases and is approximately 0V, and a low level is output to Module_RX. Thus, the level conversion from MCU_TX to Module_RX is achieved.
[0072] Through the level conversion from Module_TX to MCU_RX and from MCU_TX to Module_RX, this solution can ensure the normal serial communication between the Uart interface circuit and the communication module with different power supply voltages.
[0073] In one embodiment, the above communication module can also be used to generate corresponding working state signals according to its different working states. For example, a first state signal is generated when the power supply is normal, a second state signal is generated when the power supply is abnormal, and a third state signal is generated when data is being transmitted and received. The above communication module can also be used to generate corresponding connection state signals according to its connection status with the LoRaWAN gateway. For example, a fourth state signal is generated when the communication module is searching for a network, and a fifth state signal is generated when it is connected to the network.
[0074] To intuitively understand the working state or connection state of the communication module, corresponding displays can be made according to the different states of the communication module. Below, this solution will be combined with Figure 6 to illustrate the LoRaWAN transmission device provided with a display module.
[0075] Figure 6 The principle block diagram of the LoRaWAN transmission device 600 according to another embodiment of the present invention is shown. To show the connection relationship between the LoRaWAN transmission device 600, the LoRaWAN gateway, the acquisition device, and the execution device, the acquisition device 610, the execution device 611, the LoRaWAN gateway 612, and the server 613 are also exemplarily shown in the figure.
[0076] As shown in the figure, the LoRaWAN transmission device may include a communication module 601, a Uart interface circuit 602, and a display module 603. The connection relationship and working principle between the communication module 601 and the Uart interface circuit 602, as well as their connections to the acquisition device 610, the execution device 611, and the LoRaWAN gateway 612 are the same as those in Figure 2 the embodiment shown therein, and will not be elaborated here.
[0077] In this embodiment, the above display module 603 may be electrically connected to the communication module 601 and is used to present different display modes according to the working state signal or the connection state signal. In one implementation, the display module 603 may include one or more LED lights, which can display different working states of the communication module 601 by being normally lit or in different flashing manners. For example, when the communication module 601 is in the first working state described above, all the LED lights are normally lit; when the communication module 601 is in the second working state described above, all the LED lights are extinguished; when the communication module 601 is in the third working state described above, all the LED lights flash at a normal frequency; when the communication module 601 is in the fourth working state described above, all the LED lights flash quickly; when the communication module 601 is in the fifth working state, all the LED lights flash slowly. In addition to displaying the above working states of the communication module 601, the LED lights can also display the fault types of the communication module 601. For example, when different faults occur in the communication, corresponding displays are made by different LED lights in the LED light group being lit, flashing, or in other ways, which will not be listed one by one here.
[0078] It can be understood that the above display module 603 can also display other working states of the communication module 601, and different working states can be indicated by different display methods of the LED light group, which will not be elaborated here.
[0079] Figure 7 The principle block diagram of a LoRaWAN-based data transmission method 700 according to an embodiment of the present invention is shown.
[0080] As shown in the figure, the data transmission method 700 may include, at step S701, each of at least one LoRaWAN transmission device transmitting the acquisition data of the corresponding acquisition device to the server through the LoRaWAN gateway; at step S702, the server generating corresponding processing results according to the respective acquisition data and transmitting them to the corresponding LoRaWAN transmission device through the LoRaWAN gateway, so that the LoRaWAN transmission device transmits them to the corresponding execution device.
[0081] The LoRaWAN-based data transmission method has been described above in combination with multiple embodiments of the LoRaWAN-based data transmission device, and will not be elaborated here.
[0082] As can be seen from the description of the LoRaWAN-based data transmission device in combination with the embodiments in the foregoing text, since the data transmission method 700 adopts the LoRaWAN technology, it can communicate with multiple (tens of thousands) LoRaWAN transmission devices by using the LoRaWAN gateway as a relay, and the communication radius of the LoRaWAN gateway is relatively long, so that long-distance and large-scale data communication can be achieved between the LoRaWAN gateway and the LoRaWAN transmission devices. Therefore, the coverage range of the signal is large, which can meet the requirements of large-scale Internet of Things applications, and thus can successfully solve the problem of inability to communicate caused by the inability of the operator's base station signal to cover the whole area.
[0083] In addition, the LoRaWAN transmission device and the LoRaWAN gateway can communicate using an unlicensed frequency band, thus saving the cost of traffic fees. Further, the LoRaWAN transmission device is a low-power device, so it can still operate for a long time when powered by a battery, thereby effectively reducing the data transmission cost. In summary, this solution can reduce various costs such as materials, operation and maintenance, and traffic fees, and the cost is far ahead.
[0084] Thus, it can be seen that the LoRaWAN communication technology has the characteristics of long distance, low rate, multiple nodes, and easy deployment, so it can solve the problems of high material cost and troublesome construction of wired Ethernet and WiFi, and can also avoid the problem of inability to communicate caused by the inability of the 4G signal of the operator's base station to cover the whole area in remote areas.
[0085] It should be understood that the terms "first", "second", "third", "fourth", etc. in the claims, the description, and the drawings of the present invention are used to distinguish different objects, rather than to describe a specific order. The terms "comprising" and "including" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0086] Although multiple embodiments of the present invention have been shown and described herein, it is obvious to those skilled in the art that such embodiments are provided only by way of example. Those skilled in the art can think of many changes, alterations, and alternative ways without departing from the spirit and scope of the present invention. It should be understood that various alternative solutions to the embodiments of the present invention described herein can be adopted in the process of practicing the present invention. The appended claims are intended to define the protection scope of the present invention and thus cover equivalents or alternative solutions within the scope of these claims.
Claims
1. A data transmission device based on LoRaWAN, comprising: at least one acquisition device, each of which is used to acquire corresponding acquisition data; at least one execution device, each of which is used to execute a corresponding operation; A server, which is used to generate corresponding processing results according to each collected data; At least one LoRaWAN transmission device, each of which is connected to at least one collection device and at least one execution device via an RS485 line, and is used to transmit each collection data to the outside and transmit the corresponding processing result to each execution device; as well as The LoRaWAN gateway is wirelessly connected to each of the LoRaWAN transmission devices and to the server, and is used to forward the collected data of each collection device and the processing results corresponding to each collected data between each LoRaWAN transmission device and the server.
2. The data transmission device according to claim 1, wherein the LoRaWAN transmission device comprises: A communication module, which is electrically connected to the LoRaWAN gateway and is used to transmit collected data and processing results to the LoRaWAN gateway; as well as The Uart interface circuit is electrically connected to the communication module, the acquisition device and the execution device respectively and is used to transmit the acquisition data from the acquisition device to the communication module and transmit the processing result to the corresponding execution device.
3. The data transmission device according to claim 2, wherein the LoRaWAN transmission device further includes a level conversion circuit, the communication module and the Uart interface circuit are respectively electrically connected to the level conversion circuit and are used to perform level conversion so that the levels of the communication module and the Uart interface circuit match.
4. The data transmission device according to claim 2, wherein the communication module is further used to generate a corresponding working status signal according to its own different working states, or to generate a corresponding connection status signal according to its connection status with the LoRaWAN gateway; The LoRaWAN transmission device also includes a display module, which is electrically connected to the communication module and is used to present different display modes according to the working status signal or the connection status signal.
5. The data transmission device according to any one of claims 2 to 4, wherein the communication module adopts Fudan Micro FM33LG043+SX1268 chip, the voltage input range of its input module is 8-28V, and its output module is an electrical isolation module to achieve electrical isolation between input signals and output signals.
6. The data transmission device according to claim 1, wherein the LoRaWAN transmission device is used to directly transmit the collected data of the corresponding collection device to the LoRaWAN gateway, or to process the collected data of the corresponding collection device and transmit it to the LoRaWAN gateway.
7. The data transmission device according to claim 1, wherein a guide rail bayonet is provided on the housing of the LoRaWAN transmission device so as to be installed on the guide rail inside the electrical box.
8. The data transmission device according to claim 1, wherein the LoRaWAN gateway and the server communicate via Ethernet or 4G network.
9. The data transmission device according to claim 1, wherein the collection device comprises: A data collection unit, which is used to collect data and use it as the collected data; and / or The controller is electrically connected to the corresponding data acquisition unit so as to process the data collected by the data acquisition unit and use the processing result as the collected data.
10. A data transmission method based on LoRaWAN, comprising: Each of the at least one LoRaWAN transmission devices transmits the collected data of the corresponding collection device to the server through the LoRaWAN gateway; as well as The server generates corresponding processing results according to each collected data, and transmits them to the corresponding LoRaWAN transmission device through the LoRaWAN gateway, so that the LoRaWAN transmission device transmits them to the corresponding execution device.