CN114679696B - System and method for realizing LoRa gateway MESH - Google Patents

System and method for realizing LoRa gateway MESH Download PDF

Info

Publication number
CN114679696B
CN114679696B CN202210592030.0A CN202210592030A CN114679696B CN 114679696 B CN114679696 B CN 114679696B CN 202210592030 A CN202210592030 A CN 202210592030A CN 114679696 B CN114679696 B CN 114679696B
Authority
CN
China
Prior art keywords
wireless
data
lora
public network
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210592030.0A
Other languages
Chinese (zh)
Other versions
CN114679696A (en
Inventor
朱于乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Ruijie Electronic Technology Co ltd
Original Assignee
Nanjing Ruijie Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Ruijie Electronic Technology Co ltd filed Critical Nanjing Ruijie Electronic Technology Co ltd
Priority to CN202210592030.0A priority Critical patent/CN114679696B/en
Publication of CN114679696A publication Critical patent/CN114679696A/en
Application granted granted Critical
Publication of CN114679696B publication Critical patent/CN114679696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

A system and a method for realizing the MESH of the LoRa gateway relate to the technical field of wireless communication, have reasonable design of system architecture, convenient networking, low power consumption and high efficiency, well solve the problem that remote signals cover an imperfect area, and realize the data acquisition and remote control of the Internet of things of the imperfect area of the signals; according to the method for realizing the MESH of the LoRa gateway, under the condition that the network can not be connected with a public network, the data of the terminal nodes can be transmitted between the gateways according to a planned optimal path, the data can be transmitted to the gateway which can be accessed to the public network for the least times, the data is prevented from being damaged, the problem that the data acquisition and remote control of the Internet of things can be well realized in a remote area with incomplete signal coverage is solved, and the method has good popularization and application values.

Description

System and method for realizing MESH of LoRa gateway
Technical Field
The invention relates to the technical field of wireless communication, in particular to a system and a method for realizing a LoRa gateway MESH.
Background
In the current application scene of the internet of things, sensor node gateways are rapidly networked, a multilayer network topology structure is established, and nodes can also support various sensors. The node that loads temperature and humidity sensor deploys in wisdom farm, can collect environmental data in real time, uploads to the high in the clouds and supplies the managers to look over, and the different sensors of node loading can be used in the middle of the thing networking scene of difference.
Most of the existing network system architecture schemes adopt a star network architecture, an intelligent terminal sends acquired sensor data to a gateway through wireless (LoRa), and the gateway sends the acquired sensor data to a server or a cloud platform through a public network (4G/5G, Ethernet and the like).
The scheme has an obvious problem that in many remote areas, due to the fact that the signal coverage of the public network is not perfect, data of a plurality of terminal nodes cannot be uploaded to the public network server regularly, and accordingly monitoring data of the sensor is lost.
Disclosure of Invention
In order to solve the problem that data of a plurality of terminal nodes can not be uploaded to a public network server regularly due to incomplete public network signal coverage in a plurality of remote areas in the prior art, and accordingly sensor monitoring data is lost, the invention provides a LoRa gateway wireless networking system, and a system and a method for realizing the LoRa gateway MESH. The following technical scheme is adopted:
the LoRa gateway wireless networking system comprises at least two LoRa gateway-based wireless networking units which are in wireless communication connection with each other, wherein each Internet of things wireless networking unit comprises a terminal sensor array, a receiving channel matched with the number of terminal sensors, a combiner, at least one path of radio frequency transmitting front end, a LoRa gateway baseband processing unit, a main processor, a LoRa transceiver, a wireless data transmitting frequency point and a wireless public network gateway, the data output end of the terminal sensor array is in wireless communication connection with the receiving channel, the receiving channel is in communication connection with the combiner, the data output interface of the combiner is in communication connection with the data input interface of the radio frequency transmitting front end, the data transmitting end of the radio frequency transmitting front end is in wireless communication connection with the data interface of the LoRa gateway baseband processing unit, and the data output interface of the LoRa gateway baseband processing unit is in communication connection with the data input interface of the main processor, the main processor is respectively in communication connection with the wireless public network gateway and the LoRa transceiver, the LoRa transceiver is in communication connection with the wireless data sending frequency point, and the wireless data sending frequency point is in wireless communication connection with the adjacent receiving channel.
Through the technical scheme, the terminal sensor array sends the collected sensor data to respective receiving channels, the combiner collects the data and forwards the data to the radio frequency transmitting front end, the radio frequency transmitting front end modulates the data and forwards the data to the LoRa gateway baseband processing unit, the LoRa gateway baseband processing unit digitizes the data and transmits the data to the main processor, the main processor identifies and judges the data and then can be directly connected with a public network server through a wireless public network gateway to upload the data, when the public network server needs to transmit the data downwards, the data can be transmitted to the main processor through the corresponding wireless public network gateway, the main processor identifies the data and transmits the data to the corresponding wireless data transmitting frequency point through the LoRa transceiver after processing the data, and finally the data is transmitted to the corresponding terminal sensor array through the receiving channels matched with the number of the terminal sensors, the system has reasonable structural design, convenient networking, low power consumption and high efficiency, well solves the problem that remote signals cover an imperfect area, and realizes the data acquisition and remote control of the Internet of things in the imperfect signal area.
Optionally, an optimal gateway transmission path planning module based on a microprocessor is further provided, the optimal gateway transmission path planning module includes a microchip for generating a gateway propagation path and a chip information transmission LoRa transceiver for communication with a main processor of each internet of things wireless networking unit, the optimal gateway transmission path planning module is arranged at the center of the geographic position of the LoRa gateway wireless networking system through a support, the microchip is in wireless communication connection with the LoRa transceivers of the internet of things wireless networking units through the chip information transmission LoRa transceivers respectively, the microchip adopts a Cortex-a78AE chip, and the chip information transmission LoRa transceiver adopts an SX126x baseband LoRa chip.
Through the technical scheme, the optimal gateway transmission path planning module based on the microprocessor is designed, and when the wireless public network gateway of the wireless networking unit of the Internet of things where the terminal sensor array is located cannot be connected with the public network server, the microchip generates the optimal gateway transmission path, so that the wireless networking unit of the Internet of things which cannot be connected with the public network server is controlled to realize the fastest and least times of transmission of sensor data to the public network server, and data loss or damage caused by multiple transmission of the sensor data is avoided.
Optionally, the radio frequency transmission front end passes through SPI interface and LoRa gateway baseband processing unit communication connection, and LoRa gateway baseband processing unit's data output interface passes through SPI interface and the data input interface communication connection of master processor, and master processor passes through SPI interface and LoRa transceiver communication connection.
Through the technical scheme, the SPI is a full-duplex, high-speed and synchronous communication bus, and the communication efficiency can be greatly increased by adopting the SPI.
Optionally, the receive channel is an RX antenna.
Through above-mentioned technical scheme, RX antenna low power consumption, easily erect.
Optionally, the wireless data transmission frequency point is a TX antenna.
Through the technical scheme, the TX antenna is low in power consumption and easy to erect.
Optionally, the host processor is an IMX6ULL chip.
Through the technical scheme, the IMX6ULL chip can realize data identification and complete wireless communication with the wireless public network gateway, and is high in efficiency and low in power consumption.
Optionally, the chip of the LoRa gateway baseband processing unit is an SX1302 baseband LoRa chip, the radio frequency transmitting front end is a transmitting unit with an SX1205 baseband LoRa chip as a core, and the LoRa transceiver is a transceiver with an SX126x baseband LoRa chip as a core.
By adopting the technical scheme, the LoRa chip has the advantages of reducing current consumption, simplifying the heat dissipation design of the gateway and reducing the material cost, but can process more flow compared with the prior device.
The method for realizing the MESH of the LoRa gateway by adopting the LoRa gateway wireless networking system comprises the following specific steps:
s1, the receiving channel receives the data sent by the terminal sensor array end, and the data is sent to the radio frequency emission front end for wireless signal demodulation after passing through the combiner;
s2, the demodulated signal is sent to the LoRa gateway baseband processing unit through the SPI interface to be processed into a digital signal;
s3, the LoRa gateway baseband processing unit transmits the digital signal to the main processor through the SPI interface, and when the received data packet is checked to be error-free, the main processor judges that a complete data packet is received, the main processor controls the wireless public network gateway to try to connect with the public network server, and if the connection is successful, the received complete data packet is transmitted to the public network server through the wireless public network gateway, and the data is transmitted to the public network wirelessly;
s4, when the public network server has data to be sent to the terminal sensor array, the public network server finds the wireless public network gateway corresponding to the uplink of the terminal sensor array, and sends the data packet to the corresponding main processor through the wireless public network gateway;
s5, the main processor transmits the digital signal to the LoRa transceiver through the SPI, the LoRa transceiver transmits the digital signal pushed by the main processor to the corresponding terminal sensor array through the wireless data transmission frequency point after wireless modulation, and the terminal sensor array receives the data and analyzes the data;
s6, when the main processor controls the wireless public network gateway to attempt to connect with the public network server in the S3, that is, under the condition that the uplink channel of the gateway is not available, the main processor transmits the result signal of the failure of the gateway to connect with the public network server to the chip information transmission LoRa transceiver in the system center through the LoRa transceiver, the chip information transmission LoRa transceiver transmits the failure information of the wireless public network gateway 9 to connect with the public network server to the microchip, the microchip marks the wireless networking unit of the Internet of things as E, at the moment, the microchip sends an instruction to all LoRa transceivers in the system through the LoRa transceiver, after the instruction is transmitted to the main processor by the LoRa transceiver, all the main processors in the system control the wireless public network gateway to attempt to connect with the public network server once, and the main processor in the position where the connection is successfully attempted transmits the successful information to the micro transceiver through the LoRa transceiver and the chip information transmission LoRa transceiver The miniature chip collects N internet of things wireless networking units which can be successfully connected with the public network server in the system, the internet of things wireless networking unit which is closest to the actual distance of the internet of things wireless networking unit E is marked as Y, the optimal path which is transmitted to the internet of things wireless networking unit Y by the internet of things wireless networking unit E is generated, and then the internet of things wireless networking unit E adopts the optimal path to transmit the data information of the terminal sensor array to the public network server through the internet of things wireless networking unit Y in a bridging mode.
In the S6, the specific steps of sending the data information of the terminal sensor array to the public network server through the internet of things wireless networking unit Y in a bridging manner by the internet of things wireless networking unit E through the optimal path are as follows:
STEP1, numbering the RX antenna receiving frequency points of the receiving channels of the wireless networking units of the internet of things according to RX _ CH0-RX _ CH0N, numbering the sending frequency points of the wireless data sending frequency points of the wireless networking units of the internet of things according to TX _ CH0-TX _ CHN, configuring the wireless data sending frequency points TX _ CHE of the LoRa transceiver of the wireless networking units of the internet of things and the receiving frequency points RX _ CHX of the receiving channels of the wireless networking units X of the internet of things closest to the wireless networking units of the internet of things in the optimal path of the wireless networking units Y of the internet of things by the main processor, and finally transmitting the data of the terminal sensor arrays of the wireless networking units E of the internet of things to the receiving channels of the wireless networking units Y of the internet of things according to the transmission rule;
STEP2, a receiving channel RX _ CHY of the wireless networking unit Y of the Internet of things receives data and caches the data to the local;
STEP3, the wireless public network gateway of thing networking wireless network unit Y's host processor control is connected with public network server, transmits data to public network server.
Optionally, if connection failure between the internet of things wireless networking unit Y and the public network server occurs in STEP3 due to sudden network fluctuation, STEP S6 is repeated until data is transmitted to the public network server.
In summary, the present invention includes at least one of the following beneficial effects:
1. the LoRa gateway wireless networking system can be provided, the system architecture is reasonable in design, the networking is convenient, the power consumption is low, the efficiency is high, the problem that remote signals cover an incomplete area is well solved, and the data acquisition and remote control of the Internet of things in the signal incomplete area are realized;
2. the invention can provide a method for realizing the MESH of the LoRa gateway, under the condition that the public network can not be connected, the data of the terminal nodes can be transmitted among the gateways according to the planned optimal path, the data can be transmitted to the gateway which can be accessed to the public network for the least times, the data damage is avoided, the problem of realizing the data acquisition and remote control of the Internet of things in the remote area with incomplete signal coverage can be well solved, and the method has good popularization and application values.
Drawings
Fig. 1 is a schematic diagram of the electrical device connection principle of the wireless networking system of the LoRa gateway of the present invention;
FIG. 2 is a schematic diagram of the electrical device connection of the wireless networking unit of the Internet of things of the present invention;
description of reference numerals: 1. a terminal sensor array; 2. receiving a channel; 3. a combiner; 4. a radio frequency transmit front end; 5. a LoRa gateway baseband processing unit; 6. a main processor; 7. a LoRa transceiver; 8. a wireless data transmission frequency point; 9. a wireless public network gateway; 10. an SPI interface; 20. a microchip; 21. chip information transmission LoRa transceiver.
Detailed Description
The present invention is described in further detail below with reference to fig. 1-2.
The embodiment of the invention discloses a system and a method for realizing an MESH of an LoRa gateway.
Referring to fig. 1-2, the LoRa gateway wireless networking system includes at least two LoRa gateway based wireless networking units wirelessly connected to each other, where the LoRa gateway based wireless networking units include a terminal sensor array 1, receiving channels 2 matching the number of terminal sensors, a combiner 3, at least one path of radio frequency transmitting front end 4, a LoRa gateway baseband processing unit 5, a main processor 6, a LoRa transceiver 7, a wireless data transmitting frequency point 8, and a wireless public network gateway 9, where a data output end of the terminal sensor array 1 is wirelessly connected to the receiving channels 2, a data output interface of the receiving channels 2 is communicatively connected to the combiner 3, a data input interface of the radio frequency transmitting front end 4 is communicatively connected to a data output interface of the combiner 3, a data transmitting end of the radio frequency transmitting front end 4 is wirelessly connected to a data interface of the LoRa gateway baseband processing unit 5, the data output interface of the loRa gateway baseband processing unit 5 is in communication connection with the data input interface of the main processor 6, the main processor 6 is in communication connection with the wireless public network gateway 9 and the loRa transceiver 7 respectively, the loRa transceiver 7 is in communication connection with the wireless data sending frequency point 8, and the wireless data sending frequency point 8 is in wireless communication connection with the adjacent receiving channel 2.
Through the technical scheme, the terminal sensor array 1 sends the collected sensor data to respective receiving channels 2, the combiner 3 collects the data and forwards the data to the radio frequency transmitting front end 4, the radio frequency transmitting front end 4 modulates the data and forwards the data to the LoRa gateway baseband processing unit 5, the LoRa gateway baseband processing unit 5 digitizes the data and transmits the data to the main processor 6, the main processor 6 identifies and judges the data and then can be directly connected with a public network server through the wireless public network gateway 9 to upload the data, when the public network server needs to transmit the data in a downlink mode, the data can be transmitted to the main processor 6 through the corresponding wireless public network gateway 9, the main processor 6 identifies and processes the data and then transmits the data to the corresponding wireless data sending frequency point 8 through the LoRa transceiver 7, and finally the data is transmitted to the corresponding terminal sensor array 1 through the receiving channels 2 matched with the number of the terminal sensors, the system has reasonable structural design, convenient networking, low power consumption and high efficiency, well solves the problem that remote signals cover an imperfect area, and realizes the data acquisition and remote control of the Internet of things in the imperfect signal area.
Optionally, an optimal gateway transmission path planning module based on a microprocessor is further provided, the optimal gateway transmission path planning module includes a microchip 20 for generating a gateway transmission path and a chip information transmission LoRa transceiver 21 for communication with a main processor of each wireless networking unit of the internet of things, the optimal gateway transmission path planning module is arranged in the center of the geographic position of the wireless networking system of the LoRa gateway through a support, the microchip 20 is in wireless communication connection with the LoRa transceivers 7 of the wireless networking units of the internet of things through the chip information transmission LoRa transceiver 21 respectively, the microchip 20 adopts a Cortex-a78AE chip, and the chip information transmission LoRa transceiver 21 adopts an SX126x baseband LoRa chip.
Through the technical scheme, the effective transmission distance of the LoRa gateway of the SX126x baseband LoRa chip is generally several kilometers, and the optimal gateway transmission path planning module is arranged in the center of the geographic position of the LoRa gateway wireless networking system. Can realize the thing networking circle of radius 3 kilometers or so, satisfy thing networking demand, design the optimal gateway transmission path planning module based on microprocessor, when the wireless public network gateway 9 of the wireless networking unit of thing networking that the reality is located at terminal sensor array 1 can't realize being connected with public network server, microchip 20 generates optimal gateway transmission path, thereby the realization of the thing networking wireless networking unit reality fastest and the minimum number of times that can't connect public network server transmits sensor data to public network server, avoid the data that lead to after sensor data many times transmission to lose or damage.
Optionally, the radio frequency transmission front end 4 is in communication connection with the LoRa gateway baseband processing unit 5 through the SPI interface 10, a data output interface of the LoRa gateway baseband processing unit 5 is in communication connection with a data input interface of the main processor 6 through the SPI interface 10, and the main processor 6 is in communication connection with the LoRa transceiver 7 through the SPI interface 10.
Through the technical scheme, the SPI is a full-duplex, high-speed and synchronous communication bus, and the communication efficiency can be greatly increased by adopting the SPI.
Optionally, the receive channel 2 is an RX antenna.
Through above-mentioned technical scheme, RX antenna low power consumption, easily erect.
Optionally, the wireless data transmission frequency point 8 is a TX antenna.
Through the technical scheme, the TX antenna is low in power consumption and easy to erect.
Optionally, the main processor 6 is an IMX6ULL chip.
Through the technical scheme, the IMX6ULL chip can realize data identification and complete wireless communication with the wireless public network gateway 9, and is high in efficiency and low in power consumption.
Optionally, the chip of the LoRa gateway baseband processing unit 5 is an SX1302 baseband LoRa chip, the rf transmitting front end 4 is a transmitting unit with the SX1205 baseband LoRa chip as a core, and the LoRa transceiver 7 is a transceiver with the SX126x baseband LoRa chip as a core.
By adopting the technical scheme, the LoRa chip has the advantages of reducing current consumption, simplifying the heat dissipation design of the gateway and reducing the material cost, but can process more flow compared with the prior device.
The method for realizing the MESH of the LoRa gateway by adopting the LoRa gateway wireless networking system comprises the following specific steps:
s1, the receiving channel 2 receives data sent by the terminal sensor array 1, and the data is sent to the radio frequency transmitting front end 4 for wireless signal demodulation after passing through the combiner 3;
s2, the demodulated signal is sent to the LoRa gateway baseband processing unit 5 through the SPI interface 10 to be processed into a digital signal;
s3, the LoRa gateway baseband processing unit 5 transmits the digital signal to the main processor 6 through the SPI interface 10, and when the received data packet is checked to be error-free, the main processor 6 judges that a complete data packet is received, the main processor 6 controls the wireless public network gateway 9 to try to connect with the public network server, and if the connection is successful, the received complete data packet is transmitted to the public network server through the wireless public network gateway 9, and the wireless transmission of the data to the public network is completed;
s4, when the public network server has data to be sent to the terminal sensor array 1, the public network server finds the wireless public network gateway 9 corresponding to the uplink of the terminal sensor array 1, and sends the data packet to the corresponding main processor 6 through the wireless public network gateway 9;
s5, the main processor 6 transmits to the LoRa transceiver 7 through the SPI interface 10, the LoRa transceiver 7 transmits the digital signal pushed by the main processor 6 to the corresponding terminal sensor array 1 through the wireless data transmission frequency point 8 after wireless modulation, and the terminal sensor array 1 receives the data and analyzes the data;
s6, when the main processor 6 in the step S3 controls the wireless public network gateway 9 to attempt to connect with the public network server, that is, under the condition that the uplink channel of the gateway is not through, the main processor 6 transmits the result signal of the failure of the gateway to connect with the public network server to the chip information transmission LoRa transceiver 21 in the system center through the LoRa transceiver 7, the chip information transmission LoRa transceiver 21 transmits the failure information of the wireless public network gateway 9 to connect with the public network server to the microchip 20, the microchip 20 marks the wireless networking unit of the Internet of things as E, at this time, the microchip 20 sends an instruction to all the LoRa transceivers 7 in the system through the chip information transmission LoRa transceiver 21, and after the LoRa transceiver 7 transmits the instruction to the main processor 6, all the main processors 6 in the system control the wireless public network gateway 9 to attempt to connect with the public network server, the main processor 6 which tries to connect the position successfully transmits the information successfully connected with the public network server to the microchip 20 through the LoRa transceiver 7 and the chip information transmission LoRa transceiver 21 again, at the moment, the microchip 20 collects N Internet of things wireless networking units which can be successfully connected with the public network server in the system, the Internet of things wireless networking unit which is closest to the actual distance of the Internet of things wireless networking unit E is marked as Y, the optimal path transmitted to the Internet of things wireless networking unit Y by the Internet of things wireless networking unit E is generated, and the Internet of things wireless networking unit E transmits the data information of the terminal sensor array 1 to the public network server through the Internet of things wireless networking unit Y in a bridging mode by adopting the optimal path.
In the S6, the specific steps of sending the data information of the terminal sensor array 1 to the public network server through the internet of things wireless networking unit Y in a bridging manner by the internet of things wireless networking unit E through the optimal path are as follows:
STEP1, numbering the RX antenna receiving frequency points of the receiving channel 2 of the wireless networking unit of the internet of things according to RX _ CH0-RX _ CH0N, numbering the sending frequency points of the wireless data sending frequency points 8 of the wireless networking unit of the internet of things according to TX _ CH0-TX _ CHN, configuring the wireless data sending frequency points TX _ CHE of the LoRa transceiver 7 of the wireless networking unit E of the internet of things by the main processor 6 to be consistent with the receiving frequency points RX _ CHX of the receiving channel 2 of the wireless networking unit X of the internet of things, which is closest to the wireless networking unit E of the internet of things, in the optimal path of the wireless networking unit Y, and finally transmitting the data of the terminal sensor array 1 of the wireless networking unit E of the internet of things to the receiving channel 2 of the wireless networking unit Y of the internet of things according to the transmission rule;
STEP2, a receiving channel 2 receiving channel RX _ CHY of the wireless networking unit Y of the Internet of things receives data and caches the data to the local;
STEP3, the main processor 6 of the wireless networking unit Y of the internet of things controls the wireless public network gateway 9 to connect with the public network server, and transmits data to the public network server.
Optionally, if connection failure between the internet of things wireless networking unit Y and the public network server occurs in STEP3 due to sudden network fluctuation, STEP S6 is repeated until data is transmitted to the public network server.
The implementation principle of the method for realizing the LoRa gateway MESH in the embodiment of the invention is as follows:
a receiving channel 2 of the wireless networking unit of the internet of things receives data sent by a terminal sensor array 1, the data are sent to a radio frequency emission front end 4 through a combiner 3 to be demodulated, the demodulated signals are sent to a LoRa gateway baseband processing unit 5 through an SPI interface 10 to be processed into digital signals, the LoRa gateway baseband processing unit 5 transmits the digital signals to a main processor 6 through the SPI interface 10, when the received data packets are checked to be error-free, a complete data packet is judged to be received, the main processor 6 controls a wireless public network gateway 9 of the wireless networking unit of the internet of things to be connected with a public network server in an attempt mode, and if the connection is successful, the received complete data packet is sent to the public network server through the wireless public network gateway 9 to finish the wireless transmission of the data to the public network;
when the public network server has data to be sent to the terminal sensor array 1, the public network server finds the wireless public network gateway 9 corresponding to the uplink of the terminal sensor array 1, and sends the data packet to the corresponding main processor 6 through the wireless public network gateway 9; the main processor 6 transmits to the LoRa transceiver 7 through the SPI interface 10, the LoRa transceiver 7 transmits the digital signal pushed by the main processor 6 to the corresponding terminal sensor array 1 through the wireless data transmission frequency point 8 after wireless modulation, and the terminal sensor array 1 receives the data and analyzes the data.
When the main processor 6 controls the wireless public network gateway 9 to perform attempted connection with the public network server in failure, that is, under the condition that an uplink channel of the gateway is not communicated, the main processor 6 transmits a result signal of the failure of the gateway in connection with the public network server to the chip information transmission LoRa transceiver 21 in the system center through the LoRa transceiver 7, the chip information transmission LoRa transceiver 21 transmits the failure information of the wireless public network gateway 9 in connection with the public network server to the microchip 20, the microchip 20 marks the wireless networking unit of the internet of things as E, at the moment, the microchip 20 sends an instruction to all LoRa transceivers 7 in the system through the chip information transmission LoRa transceiver 21, after the LoRa transceiver 7 transmits the instruction to the main processor 6, all the main processors 6 in the system control the wireless public network gateway 9 in the position to perform one attempted connection with the public network server, and the main processor 6 in the position where the attempted connection is successful again passes through the LoRa transceiver 7 And the chip information transmission LoRa transceiver 21 transmits to the microchip 20, at this time, the microchip 20 collects N wireless networking units of the internet of things which can be successfully connected with the public network server in the system, when the system is set up with hardware, the specific position information coordinate position, position and distance data of each wireless networking unit of the internet of things are recorded into the microchip 20, at this time, the microchip 20 judges the wireless networking unit of the internet of things which is closest to the actual distance of the wireless networking unit E of the internet of things and marks the wireless networking unit of the internet of things as the wireless networking unit Y of the internet of things, and simultaneously generates an optimal path transmitted from the wireless networking unit E of the internet of things to the wireless networking unit Y of the internet of things, wherein the optimal path satisfies that the wireless networking unit of the internet of things transmits data to each wireless networking unit of the internet of things marked on the optimal path to the wireless networking unit Y of the internet of things through the least times, the wireless networking unit E of the Internet of things sends the data information of the terminal sensor array 1 to the public network server through the wireless networking unit Y of the Internet of things in a bridging mode by adopting an optimal path.
The specific bridging manner is as follows: the RX antenna receiving frequency point of an Internet of things wireless networking unit receiving channel 2 is numbered according to RX _ CH0-RX _ CH0N, the sending frequency point of an Internet of things wireless networking unit wireless data sending frequency point 8 is numbered according to TX _ CH0-TX _ CHN, a main processor 6 of the Internet of things wireless networking unit E configures the wireless data sending frequency point TX _ CHE of a LoRa transceiver 7 of the Internet of things wireless networking unit E to be consistent with the receiving frequency point RX _ CHX of an Internet of things wireless networking unit X receiving channel 2 closest to the Internet of things wireless networking unit E in the optimal path of the Internet of things wireless networking unit Y, the sending frequency point TX _ CHE sends data to the receiving frequency point RX _ CHX, according to the transmission rule, the data of the terminal sensor array 1 of the wireless networking unit E of the Internet of things is finally transmitted to a receiving channel 2 of the wireless networking unit Y of the Internet of things to receive a frequency point RX _ CHY; a receiving channel 2 of the wireless networking unit Y of the Internet of things receives a channel RX _ CHY and caches the channel to the local; and the main processor 6 of the wireless networking unit Y of the Internet of things controls the wireless public network gateway 9 to be connected with the public network server, so that the data packet information of the terminal sensor array 1 is transmitted to the public network server, sudden network fluctuation occurs in some extreme conditions, the connection between the wireless networking unit Y of the Internet of things and the public network server fails, the step S6 is repeated, the corresponding wireless networking unit Y1 capable of being connected with the public network server is found again, and the data are transmitted to the public network server.
The above are all preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (9)

  1. The wireless networking system of the LoRa gateway is characterized in that: the wireless networking unit of the internet of things comprises at least two wireless networking units of the internet of things based on a LoRa gateway, wherein the wireless networking units of the internet of things are in wireless communication connection with each other, the wireless networking units of the internet of things comprise a terminal sensor array (1), receiving channels (2) matched with the number of terminal sensors, a combiner (3), at least one path of radio frequency transmitting front end (4), a LoRa gateway baseband processing unit (5), a main processor (6), a LoRa transceiver (7), a wireless data transmitting frequency point (8), a wireless public network gateway (9) and an optimal gateway transmission path planning module based on a microprocessor, the data output end of the terminal sensor array (1) is in wireless communication connection with the receiving channels (2), the receiving channels (2) are in communication connection with the combiner (3), and the data output interface of the combiner (3) is in communication connection with the data input interface of the radio frequency transmitting front end (4), the data sending end of the radio frequency emission front end (4) is in wireless communication connection with a data interface of an LoRa gateway baseband processing unit (5), a data output interface of the LoRa gateway baseband processing unit (5) is in communication connection with a data input interface of a main processor (6), the main processor (6) is in communication connection with a wireless public network gateway (9) and a LoRa transceiver (7) respectively, the LoRa transceiver (7) is in communication connection with a wireless data sending frequency point (8), the wireless data sending frequency point (8) is in wireless communication connection with an adjacent receiving channel (2), the optimal gateway transmission path planning module comprises a micro chip (20) for generating a gateway transmission path and a chip information transmission LoRa transceiver (21) for communication of the main processor of each Internet of things wireless networking units, and is arranged at the center of the geographic position of the LoRa gateway wireless networking system through a support, microchip (20) pass through chip information transmission loRa transceiver (21) respectively with loRa transceiver (7) wireless communication connection of each thing networking unit.
  2. 2. The LoRa gateway wireless networking system according to claim 1, wherein: the radio frequency transmission front end (4) is in communication connection with the LoRa gateway baseband processing unit (5) through the SPI interface (10), the data output interface of the LoRa gateway baseband processing unit (5) is in communication connection with the data input interface of the main processor (6) through the SPI interface (10), and the main processor (6) is in communication connection with the LoRa transceiver (7) through the SPI interface (10).
  3. 3. The LoRa gateway wireless networking system according to claim 1, wherein: the reception channel (2) is an RX antenna.
  4. 4. The LoRa gateway wireless networking system according to claim 1, wherein: the wireless data transmission frequency point (8) is a TX antenna.
  5. 5. The LoRa gateway wireless networking system according to claim 1, wherein: the main processor (6) is an IMX6ULL chip.
  6. 6. The LoRa gateway wireless networking system according to claim 1, wherein: the chip of the LoRa gateway baseband processing unit (5) is an SX1302 baseband LoRa chip, the radio frequency transmitting front end (4) is a transmitting unit taking the SX1205 baseband LoRa chip as a core, and the LoRa transceiver (7) is a transceiver taking the SX126x baseband LoRa chip as a core.
  7. 7. The method for realizing the MESH of the LoRa gateway by adopting the wireless networking system of the LoRa gateway of any one of claims 1 to 6 is characterized in that: the method comprises the following specific steps:
    s1, a receiving channel (2) receives data sent by a terminal sensor array (1), and the data is sent to a radio frequency emission front end (4) for wireless signal demodulation after passing through a combiner (3);
    s2, the demodulated signal is sent to an LoRa gateway baseband processing unit (5) through an SPI interface (10) to be processed into a digital signal;
    s3, the LoRa gateway baseband processing unit (5) transmits the digital signal to the main processor (6) through the SPI interface (10), and when the received data packet is checked to be error-free, the main processor (6) judges that a complete data packet is received, the main processor (6) controls the wireless public network gateway (9) to try to connect with the public network server, and if the connection is successful, the received complete data packet is transmitted to the public network server through the wireless public network gateway (9), and the wireless transmission of the data to the public network is completed;
    s4, when the public network server has data to be sent to the terminal sensor array (1), the public network server finds the wireless public network gateway (9) corresponding to the uplink of the terminal sensor array (1), and sends the data packet to the corresponding main processor (6) through the wireless public network gateway (9);
    s5, the main processor (6) transmits to an LoRa transceiver (7) through an SPI (serial peripheral interface) interface (10), the LoRa transceiver (7) transmits the digital signals pushed by the main processor (6) to the corresponding terminal sensor array (1) through a wireless data transmission frequency point (8) after wireless modulation, and the terminal sensor array (1) receives the data and analyzes the data;
    s6, when the main processor (6) controls the wireless public network gateway (9) to attempt to connect with the public network server in the S3 failure, the main processor (6) transmits a result signal of the failure of the gateway to connect with the public network server to the chip information transmission LoRa transceiver (21) in the system center through the LoRa transceiver (7), the chip information transmission LoRa transceiver (21) transmits the failure information of the wireless public network gateway (9) to connect with the public network server to the microchip (20), the microchip (20) marks the wireless networking unit of the Internet of things as E, the microchip (20) sends an instruction to all LoRa transceivers (7) in the system through the chip information transmission LoRa transceiver (21), and after the LoRa transceiver (7) transmits the instruction to the main processor (6), all the main processors (6) in the system control the wireless public network gateway (9) to attempt to connect with the public network server once, the main processor (6) which tries to connect the successful position transmits information which is successfully connected with the public network server to the microchip (20) through the LoRa transceiver (7) and the chip information transmission LoRa transceiver (21), the microchip (20) collects N internet of things wireless networking units which can be successfully connected with the public network server in the system, the internet of things wireless networking unit which is closest to the actual distance of the internet of things wireless networking unit E is marked as Y, the optimal path which is transmitted to the internet of things wireless networking unit Y by the internet of things wireless networking unit E is generated, and the internet of things wireless unit E adopts the optimal path to transmit data information of the terminal sensor array (1) to the public network server through the internet of things wireless networking unit Y in a bridging mode.
  8. 8. The method of claim 7, wherein the method comprises: the specific steps of sending the data information of the terminal sensor array (1) to the public network server by the internet of things wireless networking unit E in the S6 in a bridging mode through the internet of things wireless networking unit Y by adopting the optimal path are as follows:
    STEP1, numbering the RX antenna receiving frequency points of the receiving channel (2) of the wireless networking unit of the internet of things according to RX _ CH0-RX _ CH0N, numbering the sending frequency points of the wireless data sending frequency points (8) of the wireless networking unit of the internet of things according to TX _ CH0-TX _ CHN, configuring the receiving frequency points RX _ CHX of the receiving channel (2) of the wireless networking unit of the internet of things, which is closest to the wireless networking unit E of the internet of things, in the optimal path of the wireless networking unit Y by a main processor (6) of the wireless networking unit E of the internet of things, to be consistent with the wireless data sending frequency points TX _ CHE, sending data to the receiving frequency points RX _ CHX by the sending frequency points TX _ CHE, and finally transmitting the data of the terminal sensor array (1) of the wireless networking unit E of the internet of things to the receiving channel (2) of the wireless networking unit Y according to the transmission rule;
    STEP2, a receiving channel (2) of an internet of things wireless networking unit Y receives data information through a receiving channel RX _ CHY, and the data information is cached locally;
    STEP3, the main processor (6) of the wireless networking unit Y of the Internet of things controls the wireless public network gateway (9) to be connected with the public network server, and transmits data to the public network server.
  9. 9. The method of claim 8, wherein the method comprises: if the connection failure of the internet of things wireless networking unit Y and the public network server occurs in STEP3, repeating STEP S6 until the data is transmitted to the public network server.
CN202210592030.0A 2022-05-28 2022-05-28 System and method for realizing LoRa gateway MESH Active CN114679696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210592030.0A CN114679696B (en) 2022-05-28 2022-05-28 System and method for realizing LoRa gateway MESH

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210592030.0A CN114679696B (en) 2022-05-28 2022-05-28 System and method for realizing LoRa gateway MESH

Publications (2)

Publication Number Publication Date
CN114679696A CN114679696A (en) 2022-06-28
CN114679696B true CN114679696B (en) 2022-08-02

Family

ID=82080800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210592030.0A Active CN114679696B (en) 2022-05-28 2022-05-28 System and method for realizing LoRa gateway MESH

Country Status (1)

Country Link
CN (1) CN114679696B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190445A (en) * 2022-09-09 2022-10-14 国网湖北省电力有限公司 Method and system for monitoring real-time information of power gateway

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656827B (en) * 2016-09-30 2021-02-05 深圳市唯传科技有限公司 LoRa base station router and narrow-band internet of things network system based on LoRa base station routing
CN107846340B (en) * 2017-11-17 2023-10-10 南京芯传汇电子科技有限公司 Internet of things application system based on lora star networking
CN109511112A (en) * 2018-12-28 2019-03-22 万能 A kind of gateway for LoRa ad hoc network
CN110474971B (en) * 2019-08-05 2022-06-10 天宸星通(深圳)科技有限公司 Wide-area low-power-consumption Internet of things communication system and transmission method thereof
CN114286202B (en) * 2021-12-14 2022-11-25 浙江瑞银电子有限公司 LoRaWAN system with LoRaWAN Mesh gateway

Also Published As

Publication number Publication date
CN114679696A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN110832919B (en) Method for monitoring control channel by terminal in wireless communication system and terminal using the same
CN107148071B (en) Ubiquitous access method and system based on low-power-consumption wide area network and Mesh fusion
CN101248689B (en) Transfer of Ethernet packets via a CPRI-interface
US11432265B2 (en) Method and device for adjusting transmission parameter by sidelink terminal in NR V2X
CN110224723B (en) Design method of unmanned aerial vehicle-assisted backscatter communication system
US20120170558A1 (en) Method and System for Wireless Access Point Radios Integrated in a Cable
CN103687074A (en) Trunked aircraft communication system
CN108200167A (en) A kind of long-range multipath combination control method of unmanned plane based on high in the clouds
CN208890803U (en) A kind of unmanned plane region group network system
CN114679696B (en) System and method for realizing LoRa gateway MESH
CN108135029A (en) A kind of method, apparatus and system applied to high-speed mobile communications
CN109039437A (en) A kind of unmanned plane region group network system
Tian et al. Self-organising LEO small satellite constellation for 5G MTC and IoT applications
KR20230061416A (en) Method for transmitting second message by first server in wireless communication system and apparatus therefor
EP4106468A1 (en) Operating method for iab node in wireless communication system, and apparatus using same
KR102497179B1 (en) Method and apparatus for operating a communication node in a wireless communication system
CN106028362B (en) Antenna cloud node communication implementation method and system for indoor high-density network
CN114727427A (en) Method for realizing MESH of LoRa gateway
Bomgni et al. Multihop uplink communication approach based on layer clustering in lora networks for emerging iot applications
CN113747451B (en) Base station host, base station system and communication method
CN202488733U (en) Oil field data transmission system
EP3292736A1 (en) A wireless sfp module
CN115088321B (en) Communication method and apparatus for IAB node having a plurality of timings provided therein
CN112187597B (en) Vehicle-mounted ground end data chain based on FlexRay bus
CN108123735A (en) A kind of mobile terminal device for being used to resist high frequency cable waste

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant