Multifunctional LoRa ad hoc network gateway and multifunctional LoRa ad hoc network system
By designing a multi-function LoRa ad hoc network gateway, supporting mobile network and Ethernet connections, remote transmission of upgrade and backup instructions, the problem of single communication method of LoRa gateway is solved, and flexible network selection and efficient remote maintenance are achieved.
Patent Information
- Application Number
- CN202422554408.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2034-10-22
AI Technical Summary
The existing LoRa gateway has a single communication method, and maintenance and upgrades require on-site operation, which is cumbersome and inconvenient.
Design a multi-function LoRa ad hoc network gateway, including communication circuits, LoRa modules, off-chip Flash and master control, supports mobile network and Ethernet connections, remotely transmits backup and upgrade instructions through cloud platform, and uses off-chip Flash to store upgrade files to realize remote backup and firmware upgrade.
Achieve flexible network selection and remote maintenance, reduce on-site operation, and improve maintenance efficiency and convenience.
Smart Images

Figure CN223231196U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of electronic circuits, in particular to a multifunctional LoRa self-organizing network gateway and a multifunctional LoRa self-organizing network system. Background Art
[0002] With the development of IoT technology and the impact of the digital upgrade of agriculture, products based on LoRa's low-power intelligent control and data collection, such as LoRa devices, have seen explosive growth, posing challenges to the functionality of LoRa gateways. Currently, LoRa gateways have a single communication method. Maintenance such as updates or backups requires on-site operations by maintenance personnel, who must use storage devices to carry upgrade files and backup data, a cumbersome process. Utility Model Content
[0003] The present invention provides a multifunctional LoRa self-organizing network gateway and a multifunctional LoRa self-organizing network system to solve at least one problem existing in the related art. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a multifunctional LoRa self-organizing network gateway, comprising:
[0005] Communication circuits, used to connect to the cloud platform, including mobile network circuits and Ethernet circuits;
[0006] LoRa module, used to connect to LoRa devices;
[0007] External Flash, used to store upgrade files;
[0008] A master control, connected to the mobile network circuit, the Ethernet circuit, the LoRa module, and the off-chip Flash, configured to receive a backup instruction or an upgrade instruction from the cloud platform, back up the information of the LoRa device to the off-chip Flash, or perform a firmware upgrade using the upgrade file;
[0009] A power module is connected to the communication circuit, the LoRa module, the off-chip Flash and the main control.
[0010] In one embodiment, the mobile network circuit is a 4G module circuit.
[0011] In one embodiment, the Ethernet circuit includes an RJ45 network port, a W5500 module and an SPI communication circuit; the RJ45 network port is used to connect to the cloud platform and the W5500 module, and the SPI communication circuit is connected to the W5500 module and the main control.
[0012] In one embodiment, the off-chip Flash includes a serial flash memory chip, a first resistor, a second resistor, a third resistor and a first capacitor; one end of the first resistor is connected to the first pin of the serial flash memory chip, the other end of the first resistor is connected to the power module and one end of the second resistor, the other end of the second resistor is connected to the third pin of the serial flash memory chip, the seventh pin of the serial flash memory chip is connected to one end of the third resistor, the other end of the third resistor is connected to the power module and one end of the first capacitor, the other end of the first capacitor is grounded, the fourth pin of the serial flash memory chip is grounded, the eighth pin of the serial flash memory chip is connected to the power module, and the first, second, fifth and sixth pins of the serial flash memory chip are connected to the SPI interface of the master control.
[0013] In one embodiment, the multifunctional LoRa self-organizing network gateway further includes a TF card, and the TF card is connected to the SPI interface of the master control.
[0014] In one embodiment, the multifunctional LoRa self-organizing network gateway further includes a 485 communication circuit, which is connected to the main control and is used to connect to a host computer.
[0015] In one embodiment, the multifunctional LoRa self-organizing network gateway further includes a USB upgrade circuit and a USB debugging circuit, and both the USB upgrade circuit and the USB debugging circuit are connected to the main control.
[0016] In one embodiment, the power module includes a battery, a voltage stabilizing circuit, and a battery detection circuit, the battery is connected to the voltage stabilizing circuit and the battery detection circuit, the voltage stabilizing circuit is connected to the battery detection circuit and the main control, and the battery detection circuit is connected to the main control.
[0017] In one embodiment, the battery detection circuit includes an ESD protection diode, a diode, a second capacitor, a fourth resistor, a fifth resistor and a sixth resistor; one end of the fourth resistor is connected to the main control and one end of the second capacitor, the other end of the fourth resistor is connected to the positive electrode of the diode, one end of the ESD protection diode, one end of the fifth resistor and one end of the sixth resistor, the other end of the second capacitor, the other end of the ESD protection diode and the other end of the fifth resistor are grounded, the negative electrode of the diode is connected to the voltage stabilizing circuit, and the other end of the sixth resistor is connected to the battery.
[0018] In a second aspect, an embodiment of the present application provides a multifunctional LoRa self-organizing network system, including a cloud platform and the multifunctional LoRa self-organizing network gateway.
[0019] The beneficial effects of the above technical solution include at least:
[0020] By setting up the communication circuit, LoRa module, off-chip Flash, power module and main control, the LoRa module is used to connect the LoRa device. The communication circuit includes the mobile network circuit and the Ethernet circuit, both of which can be used to connect to the cloud platform and the main control. Users can choose the specific communication method based on actual needs to meet different network requirements; the off-chip Flash is used to store upgrade files. The backup instructions or upgrade instructions of the cloud platform can be remotely transmitted to the main control through the communication circuit, controlling the main control to back up the information of the LoRa device to the off-chip Flash, or use the upgrade file of the off-chip Flash to upgrade the firmware, realizing remote backup or upgrade, which is very convenient.
[0021] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in this application and should not be construed as limiting the scope of this application.
[0023] Figure 1 This is a schematic diagram of a multifunctional LoRa self-organizing network gateway according to an embodiment of the present application;
[0024] Figure 2 A schematic diagram of a mobile network circuit according to an embodiment of the present application;
[0025] Figure 3 This is a schematic diagram of an Ethernet circuit according to an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of the off-chip Flash in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of the main control and its peripheral circuits according to an embodiment of the present application;
[0028] Figure 6 This is a schematic diagram of a communication circuit according to embodiment 485 of the present application;
[0029] Figure 7 This is a schematic diagram of the USB upgrade circuit and USB debugging circuit according to an embodiment of the present application;
[0030] Figure 8 This is a schematic diagram of the first part of the power module according to an embodiment of the present application;
[0031] Figure 9 This is a schematic diagram of the second part of the power module according to an embodiment of the present application;
[0032] Figure 10 This is a schematic diagram of the second part of the power module according to an embodiment of the present application;
[0033] Figure 11 This is a schematic diagram of the ports involved in each module and circuit of the embodiment of the present application;
[0034] Figure 12 This is a schematic diagram of a battery detection circuit according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the present invention, the following will provide a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present invention.
[0036] The terms "first", "second", "third", etc. in the specification and claims of this application and the drawings are only used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. Reference to "embodiments" in this article means that the specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0037] The present invention will be further explained and illustrated below in conjunction with the accompanying drawings and specific embodiments.
[0038] Reference Figure 1 The embodiment of the present application provides a multifunctional LoRa self-organizing network gateway, including a communication circuit, a LoRa module, an external Flash, a main control, a power module, a TF card, a 485 communication circuit, a USB upgrade circuit and a USB debugging circuit.
[0039] Reference Figure 1 、 Figure 2 and Figure 3In an embodiment of the present application, a communication circuit is used to connect to a cloud platform, and includes a mobile network circuit and an Ethernet circuit. Optionally, the mobile network circuit is a 4G module circuit, and in some embodiments it can be a 5G module circuit; the Ethernet circuit includes an RJ45 network port, a W5500 module, and an SPI communication circuit; the RJ45 network port is used to connect to the cloud platform and the W5500 module, and the SPI communication circuit connects the W5500 module and the main control. Therefore, users may need to flexibly choose local control or network control, and whether the network access type is 4G network, 5G network, or Ethernet to adapt to different environments and needs; and the 4G network card of the 4G module circuit is pluggable and replaceable. Among them, the SPI communication circuit can use an existing circuit.
[0040] Reference Figure 4 In an embodiment of the present application, the off-chip Flash is used to store upgrade files (such as OTA upgrade files) and backup information; the off-chip Flash includes a serial flash memory chip W25Q32JVSSIQ, a first resistor R72, a second resistor R73, a third resistor R74 and a first capacitor C50; one end of the first resistor R72 is connected to the 1st pin of the serial flash memory chip, the other end of the first resistor R72 is connected to the power module and one end of the second resistor R73, the other end of the second resistor R73 is connected to the 3rd pin of the serial flash memory chip, the 7th pin of the serial flash memory chip is connected to one end of the third resistor R74, the other end of the third resistor R74 is connected to the power module and one end of the first capacitor C50, the other end of the first capacitor C50 is grounded, the 4th pin of the serial flash memory chip is grounded, the 8th pin of the serial flash memory chip is connected to the power module, and the 1st, 2nd, 5th and 6th pins of the serial flash memory chip are connected to the SPI interface of the master control.
[0041] Reference Figure 5 , for the main control and its peripheral circuits. In the embodiment of the present application, the main control is connected to the mobile network circuit, Ethernet circuit, LoRa module and off-chip Flash, and is used to receive backup instructions or upgrade instructions from the cloud platform, and correspondingly back up the information of the LoRa device to the off-chip Flash, or use the upgrade file to upgrade the firmware. Among them, when the main control is connected to the cloud platform, it can automatically and regularly synchronize the data, status and other information of the LoRa devices in the network to the cloud platform. Optionally, the main control can be composed of any one or more processor chips including MCU, FPGA, CPLD, DSP, ARM, etc. In the embodiment of the present application, the main control is taken as MCU as an example, and the model is STM32F407VGT6.
[0042] In one implementation, using the 4G network transmission of a 4G module circuit as an example, after the cloud platform issues a command, the command message is transmitted via the 4G network to the 4G module circuit for parsing. The 4G module circuit converts the command message into a TTL level before receiving it. The main control interprets the command and then controls the corresponding operation. After the operation is completed, it is packaged into a response command and outputted as a TTL level to the 4G module circuit via the serial port. After receiving the command, the 4G module circuit returns it to the cloud platform via the 4G network.
[0043] In one embodiment, assuming that Ethernet network transmission is used using an Ethernet circuit, after the cloud platform issues a command, the command message will be transmitted to the RJ45 network port via the Ethernet network, and then transmitted to the W5500 module through the RJ45 network port for parsing, and then transmitted to the main control through the SPI communication circuit. After receiving the signal, the main control parses the command and controls the corresponding operation. After the operation is completed, it is encapsulated into a response command and sent to the W5500 module through the SPI communication circuit. After receiving the command, the W5500 module returns the data to the cloud platform through the RJ45 network port.
[0044] Reference Figure 6 In the embodiment of the present application, the 485 communication circuit is connected to the main control and is used to connect to the host computer. This allows the host computer to perform similar control as the cloud platform, such as sending backup instructions or upgrade instructions, in areas where the cloud platform is not available. In one embodiment, after the host computer issues a command, the command message is converted into a TTL level through the 485 communication circuit and sent to the main control. After receiving the data frame of the command message, the main control parses the command and controls the corresponding operation. After the operation is completed, it is encapsulated into a response command and outputs the TTL level to the 485 communication circuit through the serial port. After receiving the command, the 485 communication circuit returns the data to the host computer through the 485 bus.
[0045] like Figure 1 As shown, in the embodiment of the present application, the LoRa module is used to connect to a LoRa node such as a LoRa device. The LoRa module is pluggable and replaceable, and the LoRa module can be connected to the main control through the LoRa module circuit. When the main control receives a command, such as control (backup or update), query and configuration, it will encapsulate the command frame for interacting with the LoRa node such as the LoRa device according to the private protocol, and then send the TTL level to the LoRa module through the serial port. After receiving the data, the LoRa module modulates it into electromagnetic waves according to the preset frequency band and other information and broadcasts it to the LoRa device. After processing, the LoRa device will also send response data to the main control through the LoRa module. After receiving the electromagnetic wave, the LoRa module demodulates it and converts it into TTL level for processing by the main control.
[0046] like Figure 1As shown, in an embodiment of the present application, the TF card is connected to the SPI interface of the main control, and the log information is stored through the TF card. Optionally, the off-chip Flash and the TF card are connected to the main control through the same SPI bus, and different devices are selected by different chip select pins to enable and control. When it is necessary to store key log information of the system, the main control first controls the chip select pin of the TF to enable, and then performs read and write operations according to the read and write timing of the TF card; when it is necessary to use OTA to upgrade the file, the main control first controls the chip select pin of the off-chip Flash to enable, and then performs read and write operations according to the read and write timing of the off-chip Flash.
[0047] like Figure 7 As shown, in the embodiment of the present application, Figure 7 The USB upgrade circuit on the left side of the middle and Figure 7 The USB debugging circuits on the middle right are connected to the main controller and are configured and upgraded using the USB port.
[0048] like Figure 8 、 Figure 9 、 Figure 10 As shown, in an embodiment of the present application, the power module is connected to the communication circuit, the LoRa module, the off-chip Flash and the main control. Optionally, the power module includes a battery, a voltage stabilizing circuit and a battery detection circuit. The battery is connected to the voltage stabilizing circuit and the battery detection circuit. The voltage stabilizing circuit is connected to the battery detection circuit and the main control, and the battery detection circuit is connected to the main control. In an embodiment of the present application, the power module supports a wide voltage input of 12V to 24V. After the power input, it is converted into 5V and 3.3V voltages by the voltage stabilizing circuit to power peripherals such as the main control, LoRa module, and 4G module circuit. At the same time, the main control will regularly collect the input voltage through the ADC acquisition circuit, convert it into a digital signal through the ADC and upload it to the cloud platform. The ADC acquisition circuit can collect voltage values in the range of 12V to 40V through resistor voltage division.
[0049] like Figure 11 , which is a schematic diagram of ports involved in the aforementioned circuits or modules.
[0050] like Figure 12 As shown, the battery detection circuit includes an ESD protection diode D4, a diode D2, a second capacitor C2, a fourth resistor R3, a fifth resistor R5 and a sixth resistor R6; one end of the fourth resistor R3 is connected to the main control and one end of the second capacitor C2, the other end of the fourth resistor R3 is connected to the positive electrode of the diode D2, one end of the ESD protection diode D4, one end of the fifth resistor R5 and one end of the sixth resistor R6, the other end of the second capacitor C2, the other end of the ESD protection diode and the other end of the fifth resistor R5 are grounded, the negative electrode of the diode D2 is connected to the voltage stabilizing circuit, and the other end of the sixth resistor R6 is connected to the battery to provide 24V voltage.
[0051] An embodiment of the present application further provides a multifunctional LoRa self-organizing network system, including the above-mentioned multifunctional LoRa self-organizing network system, a cloud platform and a host computer.
[0052] Based on the embodiments of the present application, users can flexibly choose the type of network access. If Ethernet is available, Ethernet can be used. If there is no Ethernet, a 4G card can be inserted to use the 4G module circuit to access the network. If neither is available, local control can be performed through the reserved port. It is very flexible. By using a pluggable replacement method, the supplier of the 4G network card and the LoRa module can be flexibly selected. When the device can access the network normally, the master control timing synchronization function can also reduce the query work of the cloud platform. It only needs to monitor the reported data. When new functions are updated or customized, the upgrade file can be stored in the off-chip Flash and remotely upgraded, eliminating the trouble of on-site debugging.
[0053] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the implementation method. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A multifunctional LoRa self-organizing network gateway, characterized in that: include: Communication circuits, used to connect to the cloud platform, including mobile network circuits and Ethernet circuits; LoRa module, used to connect to LoRa devices; External Flash, used to store upgrade files; A master control, connected to the mobile network circuit, the Ethernet circuit, the LoRa module, and the off-chip Flash, configured to receive a backup instruction or an upgrade instruction from the cloud platform, back up the information of the LoRa device to the off-chip Flash, or perform a firmware upgrade using the upgrade file; A power module is connected to the communication circuit, the LoRa module, the off-chip Flash and the main control.
2. The multifunctional LoRa self-organizing network gateway according to claim 1, characterized in that: The mobile network circuit is a 4G module circuit.
3. The multifunctional LoRa self-organizing network gateway according to claim 1, characterized in that: The Ethernet circuit includes an RJ45 network port, a W5500 module and an SPI communication circuit; the RJ45 network port is used to connect to the cloud platform and the W5500 module, and the SPI communication circuit is connected to the W5500 module and the main control.
4. The multifunctional LoRa self-organizing network gateway according to claim 1, characterized in that: The off-chip Flash includes a serial flash memory chip, a first resistor, a second resistor, a third resistor and a first capacitor; one end of the first resistor is connected to the first pin of the serial flash memory chip, the other end of the first resistor is connected to the power module and one end of the second resistor, the other end of the second resistor is connected to the third pin of the serial flash memory chip, the seventh pin of the serial flash memory chip is connected to one end of the third resistor, the other end of the third resistor is connected to the power module and one end of the first capacitor, the other end of the first capacitor is grounded, the fourth pin of the serial flash memory chip is grounded, the eighth pin of the serial flash memory chip is connected to the power module, and the first, second, fifth and sixth pins of the serial flash memory chip are connected to the SPI interface of the master control.
5. The multifunctional LoRa self-organizing network gateway according to any one of claims 1 to 4, characterized in that: The multifunctional LoRa self-organizing network gateway also includes a TF card, and the TF card is connected to the SPI interface of the main control.
6. The multifunctional LoRa self-organizing network gateway according to any one of claims 1 to 4, characterized in that: The multifunctional LoRa self-organizing network gateway also includes a 485 communication circuit, which is connected to the main control and is used to connect to the host computer.
7. The multifunctional LoRa self-organizing network gateway according to any one of claims 1 to 4, characterized in that: The multifunctional LoRa self-organizing network gateway also includes a USB upgrade circuit and a USB debugging circuit, and the USB upgrade circuit and the USB debugging circuit are both connected to the main control.
8. The multifunctional LoRa self-organizing network gateway according to any one of claims 1 to 4, characterized in that: The power module includes a battery, a voltage stabilizing circuit and a battery detection circuit. The battery is connected to the voltage stabilizing circuit and the battery detection circuit. The voltage stabilizing circuit is connected to the battery detection circuit and the main control. The battery detection circuit is connected to the main control.
9. The multifunctional LoRa self-organizing network gateway according to claim 8, characterized in that: The battery detection circuit includes an ESD protection diode, a diode, a second capacitor, a fourth resistor, a fifth resistor and a sixth resistor; one end of the fourth resistor is connected to the main control and one end of the second capacitor, the other end of the fourth resistor is connected to the positive electrode of the diode, one end of the ESD protection diode, one end of the fifth resistor and one end of the sixth resistor, the other end of the second capacitor, the other end of the ESD protection diode and the other end of the fifth resistor are grounded, the negative electrode of the diode is connected to the voltage stabilizing circuit, and the other end of the sixth resistor is connected to the battery.
10. A multifunctional LoRa self-organizing network system, characterized by: It comprises a cloud platform and a multifunctional LoRa self-organizing network gateway as described in any one of claims 1 to 9.