CN110972097B - Method and equipment for determining data transmission network - Google Patents
Method and equipment for determining data transmission network Download PDFInfo
- Publication number
- CN110972097B CN110972097B CN201911107592.6A CN201911107592A CN110972097B CN 110972097 B CN110972097 B CN 110972097B CN 201911107592 A CN201911107592 A CN 201911107592A CN 110972097 B CN110972097 B CN 110972097B
- Authority
- CN
- China
- Prior art keywords
- network
- zigbee
- data transmission
- lora
- determining
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 184
- 238000000034 method Methods 0.000 title claims abstract description 24
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 claims abstract description 58
- 238000004891 communication Methods 0.000 claims description 87
- 230000003213 activating effect Effects 0.000 claims 1
- 238000006243 chemical reaction Methods 0.000 abstract description 10
- 238000012545 processing Methods 0.000 abstract description 10
- 230000006855 networking Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000013078 crystal Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and equipment for determining a data transmission network, wherein the method is based on starting a current LoRa gateway to establish LoRa network connection, WiFi \ RJ45 network connection and ZigBee network connection, and determines a first data transmission network according to the WiFi \ RJ45 network, and determines a second data transmission network and a third data transmission network according to the LoRa network and the ZigBee network. According to the technical scheme, LoRa network connection, WiFi \ RJ45 network connection and ZigBee network connection are established through the LoRa gateway, so that the problem that the corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected due to the fact that node access between the traditional LoRa terminal side and a personal computer or data processing equipment is complex, the data conversion rate is low and the like is solved, the corresponding data transmission network can be determined quickly and accurately after the different types of networks are connected, and user experience and working efficiency are improved.
Description
Technical Field
The present application relates to the field of internet of things application technologies, and in particular, to a method and a device for determining a data transmission network.
Background
The Long Range Radio (LoRa) is a low power consumption local area network wireless standard, and has the greatest characteristic that the distance of propagation is farther than that of other wireless modes under the same power consumption condition, so that the unification of low power consumption and Long distance is realized, the distance of the low power consumption wireless Radio communication is enlarged by 3-5 times than that of the traditional wireless Radio communication under the same power consumption, and a LoRa gateway is used for connecting a LoRa communication device and the internet.
LoRa communication equipment among the prior art often all is applied to long distance data transmission, need be connected with personal computer or data processing equipment through other interface converter at LoRa data terminal side, because the network type is various, causes the configuration complicacy, and the network protocol is incompatible, and data conversion rate is low, and node access flow is complicated, can't be after connecting the network of different grade type quick accurate the corresponding data transmission network of definite, and then reduced user experience.
Disclosure of Invention
The invention provides a method for determining a data transmission network, which aims to solve the problems that in the prior art, an LoRa data terminal side can only be connected with a personal computer or data processing equipment through other interface converters, the configuration is complex, the network protocol is incompatible, and the corresponding data transmission network cannot be quickly and accurately determined after different types of networks are connected, and the method comprises the following steps:
establishing LoRa network connection, WiFi (Wireless local area network), RJ45(Registered Jack) network connection and ZigBee network connection of the ZigBee protocol based on starting the current LoRa gateway;
determining a first data transmission network according to the WiFi and RJ45 network connection, wherein the first data transmission network is specifically a WiFi network and an RJ45 network;
when the network corresponding to the ZigBee network connection is a multi-channel ZigBee network, determining a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network, wherein the second data transmission network is a data transmission network between the current LoRa gateway and other LoRa gateways;
and when the network corresponding to the ZigBee network connection is a single-channel ZigBee network, determining the single-channel ZigBee network as a third data transmission network.
Preferably, determining a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network further includes:
judging whether the first network transmission quality is lower than a preset threshold value or not;
if so, determining the multi-channel ZigBee network as the second data transmission network;
if not, determining the LoRa network as the second data transmission network;
or the like, or, alternatively,
judging whether the second network transmission quality is lower than the preset threshold value or not;
if yes, determining the LoRa network as the second data transmission network;
and if not, determining the multi-channel ZigBee network as the second data transmission network.
Preferably, before establishing the ZigBee network connection, the method further comprises:
judging whether a network corresponding to the ZigBee network connection is in a multi-channel communication mode;
if so, determining the network corresponding to the ZigBee network connection as the multi-channel ZigBee network;
and if not, determining the network corresponding to the ZigBee network connection as the single-channel ZigBee network.
Preferably, the method for judging whether the network corresponding to the ZigBee network connection is in a multi-channel communication mode specifically comprises the following steps:
determining a network structure of a network corresponding to the ZigBee network connection;
when the network structure is specifically that the current LoRa gateway and the other LoRa gateways are connected through a plurality of ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a multi-channel communication mode;
when the network structure is a single ZigBee communication sensor connected with the current LoRa gateway, the network corresponding to the ZigBee network connection is in a single channel communication mode.
Preferably, before the current LoRa gateway is started to establish the LoRa network connection, the WiFi, the RJ45 network connection, and the ZigBee network connection, the method further includes:
and carrying out power-on reset on the current LoRa gateway so as to initialize the current LoRa gateway.
Correspondingly, the present invention further provides a device for determining a data transmission network, which is applied to a system including at least two LoRa gateways, and includes:
the starting module is used for starting the current LoRa gateway to establish LoRa network connection, WiFi, RJ45 network connection and ZigBee network connection;
the first determining module is used for determining a first data transmission network according to WiFi and RJ45 network connection, wherein the first data transmission network is specifically a WiFi network and an RJ45 network;
a second determining module, configured to determine, when a network corresponding to the ZigBee network connection is a multi-channel ZigBee network, a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network, where the second transmission network is a data transmission network between the current LoRa gateway and another LoRa gateway;
and the third determining module is used for determining the single-channel ZigBee network as a third data transmission network when the network corresponding to the ZigBee network connection is a single-channel ZigBee network.
Preferably, the second determining module is specifically configured to:
judging whether the first network transmission quality is lower than a preset threshold value or not;
if so, determining the multi-channel ZigBee network as the second data transmission network;
if not, determining the LoRa network as the second data transmission network;
or the like, or, alternatively,
judging whether the second network transmission quality is lower than the preset threshold value or not;
if yes, determining the LoRa network as the second data transmission network;
and if not, determining the multi-channel ZigBee network as the second data transmission network.
Preferably, the apparatus further comprises:
the fourth determining module is used for judging whether a network corresponding to the ZigBee network connection is in a multi-channel communication mode;
if so, determining the network corresponding to the ZigBee network connection as the multi-channel ZigBee network;
and if not, determining the network corresponding to the ZigBee network connection as the single-channel ZigBee network.
Preferably, the fourth determining module is further specifically configured to:
determining a network structure of a network corresponding to the ZigBee network connection;
when the network structure is specifically that the current LoRa gateway and the other LoRa gateways are connected through a plurality of ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a multi-channel communication mode;
when the network structure is a single ZigBee communication sensor connected with the current LoRa gateway, the network corresponding to the ZigBee network connection is in a single channel communication mode.
Preferably, the starting module is further specifically configured to:
and carrying out power-on reset on the current LoRa gateway so as to initialize the current LoRa gateway.
Therefore, through applying the technical scheme of this application, establish loRa internet access, wiFi based on starting current loRa gateway, RJ45 internet access and zigBee internet access, according to wiFi, the first data transmission network is confirmed to RJ45 internet access, first data transmission network specifically is wiFi network and RJ45 network, works as when the network that zigBee internet access corresponds is multichannel zigBee network, according to the first network transmission quality that loRa network corresponds with the second network transmission quality that multichannel zigBee network corresponds confirms second data transmission network, second transmission network is data transmission network between current loRa gateway and other loRa gateways, works as when the network that zigBee internet access corresponds is single channel zigBee network, will single channel zigBee network is confirmed to be third data transmission network. According to the technical scheme, LoRa network connection, WiFi, RJ45 network connection and ZigBee network connection are established through the LoRa gateway, the problems that node access between a traditional LoRa terminal side and a personal computer or data processing equipment is complex, data conversion rate is low and the like are solved, configuration and flow between the personal computer or the data processing equipment and the LoRa data terminal side are simplified, and data conversion rate and user experience are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a method for determining a data transmission network according to an embodiment of the present disclosure;
fig. 2 is a schematic networking diagram of a method for determining a data transmission network disclosed in an embodiment in a specific application scenario of the present application;
fig. 3 is a schematic diagram of an internal structure of an LoRa gateway disclosed in a specific application scenario of the embodiment of the present application;
fig. 4 is a schematic diagram illustrating an operation of a method for determining a data transmission network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for determining a data transmission network according to an embodiment of the present application
Detailed Description
As described in the background art, in the prior art, an LoRa data terminal side is often connected to a personal computer or a data processing device through an interface converter, but due to various network types, configuration is complex, network protocols are incompatible, a data conversion rate is low, a node access flow is complex, and a corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected.
Therefore, aiming at the condition that the corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected in the prior art, the application discloses a method for determining the data transmission network, which is used for quickly and accurately determining the corresponding data transmission network after different types of networks are connected. As shown in fig. 1, the method comprises the following steps:
step S101, establishing LoRa network connection, WiFi, RJ45 network connection and ZigBee network connection based on starting the current LoRa gateway.
In order to enable an LoRa terminal side to quickly and accurately determine a corresponding data transmission network, the conventional LoRa gateway is added with three communication modes, namely WiFi, ZigBee and RJ45 wired networks, on a conventional LoRa gateway communication module, wherein WiFi is a wireless local area network technology established in IEEE 802.11 standard, does not need wiring and can not be limited by wiring conditions, ZigBee is a wireless internet protocol for low-speed short-distance transmission, and supports multiple internet topologies, low complexity, quickness, reliability and safety, and RJ45 is one of connectors of an information socket (i.e., a communication outlet) in a wiring system, is also called a network connector and a crystal head, and is a common network connection mode in real life.
In a specific application scenario, a TTL (Transistor-Transistor Logic) communication mode is one of asynchronous serial communication modes, two communication modes, namely, WiFi and ZigBee, can be connected to the current LoRa gateway by using the TTL communication mode, and an RJ wired communication mode can be connected to the local gateway by using a DM9000 ethernet controller. The above connection methods are specifically described, but the types of the connection methods are not limited thereto, and any changes that can be made by those skilled in the art should fall within the scope of the present application.
Further, in order to better use the ZigBee network and determine the second data transmission network, in an embodiment of the present application, it is necessary to determine whether the ZigBee network is in a multi-channel communication mode, specifically, the current LoRa gateway determines according to a network structure of a network to which the ZigBee network is connected, if so, it is determined as the multi-channel ZigBee network, and if not, it is determined as the single-channel ZigBee network.
Fig. 2 is a schematic networking diagram illustrating a method for determining a data transmission network according to an embodiment of the present application, in order to more accurately judge the network structure of the network corresponding to the connection of the ZigBee network, in the preferred embodiment of the present application, when the network structure of the ZigBee network connected to the corresponding network is specifically a network structure connected to the current LoRa gateway and other gateways through a plurality of ZigBee communication sensors, namely, the ZigBee communication sensor connected with the current LoRa gateway is also connected with other ZigBee communication sensors, determining the network corresponding to the ZigBee network connection as a multi-channel communication mode, when the network structure of the network corresponding to the ZigBee network connection is specifically that the current LoRa gateway is connected with a single ZigBee communication sensor, that is, the ZigBee communication sensor connected to the current LoRa gateway is not connected to other ZigBee communication sensors, and the network corresponding to the ZigBee network connection is determined to be in a single-channel communication mode.
Further, in order to prevent a problem that may occur during the operation of the current LoRa gateway, in a preferred embodiment of the present application, the current LoRa gateway resets the device itself after being powered on, and performs self-check and initialization of the device at the same time.
Step S102, determining a first data transmission network according to the WiFi and RJ45 network connection, wherein the first data transmission network is specifically a WiFi network and an RJ45 network.
The WiFi network communication mode can be used for solving the wireless data exchange problem of mobile terminal equipment such as a gateway and a mobile phone, and the RJ45 wired network communication mode can be used for solving the data exchange problem between the gateway and a PC server. The current LoRa gateway firstly determines a first data transmission network according to WiFi network communication and RJ45, and the first data transmission network is used for determining the data transmission network between the current LoRa gateway and mobile terminal equipment such as a mobile phone and a PC server.
It should be noted that the current LoRa gateway is not limited to using WiFi to connect to the mobile terminal device and RJ45 to connect to the PC server, and any variation that one skilled in the art could think of would fall within the scope of the present application.
Step S103, when the network corresponding to the ZigBee network connection is a multi-channel ZigBee network, determining a second data transmission network according to the first network transmission quality corresponding to the LoRa network and the second network transmission quality corresponding to the multi-channel ZigBee network, wherein the second data transmission network is a data transmission network between the current LoRa gateway and other LoRa gateways.
In order to determine the data transmission network more quickly, specifically, when the network corresponding to the ZigBee network connection is a multi-channel ZigBee network, which of the LoRa network and the multi-channel ZigBee network is the second data transmission network is determined by comparing the transmission quality of the first network corresponding to the LoRa network with the transmission quality of the second network corresponding to the multi-channel ZigBee network, where the second data transmission network is used for data transmission between the current LoRa gateway and other LoRa gateways.
It should be noted that the second data transmission network is not fixed, when the ZigBee network is in the multi-channel communication mode, both the LoRa network and the ZigBee network perform real-time network quality monitoring, when the transmission quality of the original second data transmission network decreases to be worse than that of the other LoRa network or the ZigBee network, or when the transmission quality of the LoRa network or the ZigBee network having the worse transmission quality than that of the second data transmission network increases to exceed the second data transmission network, the current LoRa gateway automatically re-determines and uses the second data transmission network, wherein the transmission quality is compared according to the other LoRa network or the ZigBee network, and specifically, the second data transmission network is re-determined to be used when the transmission quality exceeds or lags behind a preset threshold compared to the other LoRa network or the ZigBee network.
In order to determine the second data transmission network more quickly, in a preferred embodiment of the present application, the second data transmission network is determined by determining whether the quality of the first network transmission corresponding to the LoRa network is lower than a preset threshold, when the quality of the first network transmission is lower than the preset threshold, the multi-channel Zigbee network is determined as the second data transmission network, and when the quality of the first network transmission is higher than the preset threshold, the LoRa network is determined as the second data transmission network. The second data transmission network can also be determined by judging whether the transmission quality of the second network is lower than a preset threshold value, when the transmission quality of the second network is lower than the preset threshold value, the LoRa network is determined as the second data transmission network, and when the transmission quality of the second network is higher than the preset threshold value, the multi-channel ZigBee network is determined as the second data transmission network.
And step S104, when the network corresponding to the ZigBee network connection is a single-channel ZigBee network, determining the single-channel ZigBee network as a third data transmission network.
In order to determine the corresponding data transmission network more quickly, when the corresponding network connected with the ZigBee network is a single-channel ZigBee network, the single-channel ZigBee network is directly determined as a third data transmission network.
Through using technical scheme in this application, start current loRa gateway and establish loRa internet access, wiFi, RJ45 internet access and zigBee internet access, according to wiFi, the first data transmission network is confirmed to RJ45 internet access, first data transmission network specifically is wiFi network and RJ45 network, works as when the network that the zigBee internet access corresponds is multichannel zigBee network, according to the first network transmission quality that the loRa network corresponds with the second network transmission quality that multichannel zigBee network corresponds confirms second data transmission network, second transmission network is data transmission network between current loRa gateway and other loRa gateways, works as when the network that the zigBee internet access corresponds is single channel zigBee network, will the single channel zigBee network is confirmed to be third data transmission network. According to the technical scheme, LoRa network connection, WiFi and RJ45 network connection and ZigBee network connection are established through the LoRa gateway, the problem that the corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected due to the fact that nodes between a traditional LoRa terminal side and a personal computer or data processing equipment are complex to access and the data conversion rate is low is solved, and therefore the corresponding data transmission network can be determined quickly and accurately after the different types of networks are connected, and user experience is improved.
In order to further illustrate the technical idea of the present invention, the technical solution of the present invention will now be described with reference to specific application scenarios.
The embodiment of the invention provides a method for determining a data transmission network, which solves the problem that the corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected due to complex node access, low data conversion rate and the like between the traditional LoRa terminal side and a personal computer or data processing equipment through establishing LoRa network connection, WiFi, RJ45 network connection and ZigBee network networking through the current LoRa gateway, so that the corresponding data transmission network can be determined quickly and accurately after different types of networks are connected, and the user experience and the working efficiency are improved.
The method comprises the following steps:
step one, the equipment is electrified and reset, and self-checking and initialization of the equipment are carried out.
At present the loRa gateway mainly comprises MCU main control chip, loRa transceiver module and receiving and dispatching antenna, the wiFi module, the zigBee module, ethernet controller and five major parts of RJ45 communication module, as shown in fig. 3, wherein, MCU is as system main control chip, be used for the executive program, protocol conversion and coordinate each peripheral function module work, the loRa module comprises receiving and dispatching antenna and transceiver module two parts, wherein the major control chip of SX1278 is chooseed for use to the loRa transceiver module, and carry out data communication through SPI bus and major control chip. LoRa transceiver module has two kinds of roles repeater and concentrator, can realize the extension of LoRa network deployment and LoRa network, realizes remote communication, and WiFi, these two kinds of communication modes of ZigBee use TTL communication mode to be connected with gateway MCU, and the wired communication mode of RJ45 is connected with gateway MCU through DM9000 ethernet controller, configures relevant operating parameter through MCU. The WiFi communication mode can be used for solving the problem of wireless data exchange between the gateway and digital equipment such as a mobile phone. The ZigBee communication mode solves the problem of data exchange between the gateway and the traditional ZigBee ad hoc network sensor. RJ45 cable network communication mode solves the data exchange problem between gateway and PC server. And the conversion of various connection protocols at different terminal sides is realized, so that long-distance data transmission is carried out.
In a specific application scenario, after each power-on of the current LoRa gateway, reset, self-test and initialization are automatically performed.
And step two, starting LoRa network connection and WiFi, RJ45 network connection, detecting whether the ZigBee network is configured into a multi-channel communication mode, and starting ZigBee network connection, as shown in FIG. 4.
In a specific application scene, the LoRa gateway in the application is connected with mobile terminals with WiFi functions such as mobile phones through a WiFi communication module to realize networking, is connected with a PC server through RJ45 to realize networking, is connected with a sensor for ZigBee communication through a ZigBee communication module or is connected to the gateway through a ZigBee route to realize networking, and is connected with other gateways through a LoRa communication module or is connected through a ZigBee multi-route wireless communication to realize networking.
Further, before the ZigBee network is established, the MCU main control chip judges whether the network corresponding to the ZigBee network connection is in a multi-channel communication mode or not so as to determine whether the corresponding network is a multi-channel ZigBee network or a single-channel ZigBee network.
And according to whether the network corresponding to the ZigBee network connection is in a multi-channel communication mode or not. The MCU main control chip determines the network structure of the network corresponding to the ZigBee network connection, if the ZigBee communication sensor connected with the current LoRa gateway is also connected with other ZigBee communication sensors, the MCU main control chip determines the network corresponding to the ZigBee network connection as a multi-channel mode, and if the ZigBee communication sensor connected with the current LoRa gateway is not connected with other ZigBee communication sensors, the MCU main control chip determines the network corresponding to the ZigBee network connection as a single-channel mode.
And step three, performing data transmission service on a WiFi and RJ45 network, and performing data transmission service on a ZigBee network if the ZigBee network is not configured in a multi-channel communication mode.
In a specific application scene, the current gateway carries out data transmission through a WiFi network and mobile terminal processing equipment such as a mobile phone, carries out data transmission service through an RJ45 network and a PC terminal, and when the current LoRa gateway MCU master control chip judges that the ZigBee network is in a single-channel mode, the ZigBee network and a traditional ZigBee ad hoc network sensor are directly used for carrying out data transmission.
And step four, when the ZigBee network is configured into a multi-channel communication mode, monitoring and comparing the LoRa network quality and the ZigBee network quality so as to determine which network is used for data transmission.
In a specific application scenario, when the ZigBee network is configured in a multi-channel communication mode, a system MCU main control chip can detect and judge the real-time network transmission quality of the LoRa network and the ZigBee network through a network quality monitoring program or software, when the transmission quality of the LoRa network is superior to that of the ZigBee network, the LoRa network is adopted for data transmission service, and when the transmission quality of the ZigBee network is superior to that of the LoRa network, the ZigBee network is adopted for data transmission.
Further, when carrying out multi-gateway communication, if appear because of the frequency channel that the loRa module used receives full frequency interference, when the communication that causes such as cover is interrupted, signal quality is low, if can dispose and launch zigBee, wiFi or connect through the net twine in communication range, guarantee the reliability of communication. And different module combinations can be started according to the actual situation.
Through applying the technical scheme in this application, establish loRa network connection, wiFi, RJ45 network connection and zigBee network connection based on starting current loRa gateway, and according to wiFi, RJ45 network, loRa network and zigBee network confirm data transmission network. LoRa network connection, WiFi, RJ45 network connection and ZigBee network connection are established through a LoRa gateway, so that the problem that the corresponding data transmission network cannot be determined quickly and accurately after different types of networks are connected due to the fact that node access between a traditional LoRa terminal side and a personal computer or data processing equipment is complex, data conversion rate is low and the like is solved, the corresponding data transmission network can be determined quickly and accurately after the different types of networks are connected, and user experience and working efficiency are improved.
In order to achieve the above technical object, the present invention further provides an apparatus for determining a data transmission network, as shown in fig. 5, including:
a starting module 501, configured to start a current LoRa gateway to establish LoRa network connection, WiFi, RJ45 network connection, and ZigBee network connection;
a first determining module 502, configured to determine a first data transmission network according to WiFi and RJ45 network connections, where the first data transmission network is specifically a WiFi network and an RJ45 network;
a second determining module 503, configured to determine, when a network corresponding to the ZigBee network connection is a multi-channel ZigBee network, a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network, where the second data transmission network is a data transmission network between the current LoRa gateway and another LoRa gateway;
and a third determining module 504, configured to determine the single-channel ZigBee network as a third data transmission network when the network corresponding to the ZigBee network connection is the single-channel ZigBee network.
Preferably, the second determining module 502 is specifically configured to:
determining a second data transmission network according to the first network transmission quality corresponding to the LoRa network and the second network transmission quality corresponding to the multi-channel ZigBee network, specifically:
judging whether the first network transmission quality is lower than a preset threshold value or not;
if so, determining the multi-channel ZigBee network as the second data transmission network;
if not, determining the LoRa network as the second data transmission network;
or the like, or, alternatively,
judging whether the second network transmission quality is lower than the preset threshold value or not;
if yes, determining the LoRa network as the second data transmission network;
and if not, determining the multi-channel ZigBee network as the second data transmission network.
Preferably, the apparatus further comprises:
the fourth determining module is used for judging whether a network corresponding to the ZigBee network connection is in a multi-channel communication mode;
if so, determining the network corresponding to the ZigBee network connection as the multi-channel ZigBee network;
and if not, determining the network corresponding to the ZigBee network connection as the single-channel ZigBee network.
Preferably, the fourth determining module is further specifically configured to:
determining a network structure of a network corresponding to the ZigBee network connection;
when the network structure is specifically that the current LoRa gateway and the other LoRa gateways are connected through a plurality of ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a multi-channel communication mode;
when the network structure is a single ZigBee communication sensor connected with the current LoRa gateway, the network corresponding to the ZigBee network connection is in a single channel communication mode.
Preferably, the starting module 501 is further specifically configured to:
and carrying out power-on reset on the current LoRa gateway so as to initialize the current LoRa gateway.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present invention.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.
Claims (4)
1. A method for determining a data transmission network, applied to a system including at least two LoRa gateways, the method comprising:
establishing LoRa network connection, ZigBee network connection and WiFi, RJ45 network connection based on starting the current LoRa gateway;
ZigBee network connection and WiFi and RJ45 network connection are added to the LoRa gateway;
when the network structure is that a plurality of ZigBee communication sensors are connected with a current LoRa gateway and other LoRa gateways, and a ZigBee communication sensor connected with the current LoRa gateway is also connected with other ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a multi-channel communication mode;
when the network structure is a single ZigBee communication sensor connected with the current LoRa gateway, and the ZigBee communication sensor connected with the current LoRa gateway is not connected with other ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a single-channel communication mode;
judging whether a network corresponding to the ZigBee network connection is in a multi-channel communication mode;
if so, determining the network corresponding to the ZigBee network connection as a multi-channel ZigBee network;
if not, determining the network corresponding to the ZigBee network connection as a single-channel ZigBee network;
determining a first data transmission network according to the WiFi and RJ45 network connection, wherein the first data transmission network is specifically a WiFi network and an RJ45 network;
when the network corresponding to the ZigBee network connection is a multi-channel ZigBee network, determining a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network, specifically:
judging whether the first network transmission quality is lower than a preset threshold value or not;
if so, determining the multi-channel ZigBee network as the second data transmission network;
if not, determining the LoRa network as the second data transmission network;
or the like, or, alternatively,
judging whether the second network transmission quality is lower than the preset threshold value or not;
if yes, determining the LoRa network as the second data transmission network;
if not, determining the multi-channel ZigBee network as the second data transmission network,
the second data transmission network is a data transmission network between the current LoRa gateway and other LoRa gateways;
and when the network corresponding to the ZigBee network connection is a single-channel ZigBee network, determining the single-channel ZigBee network as a third data transmission network.
2. The method of claim 1, wherein prior to establishing the LoRa network connection, WiFi, RJ45 network connection, and ZigBee network connection based on activating the current LoRa gateway, further comprising:
and carrying out power-on reset on the current LoRa gateway so as to initialize the current LoRa gateway.
3. An apparatus for determining a data transmission network, applied to a system including at least two LoRa gateways, comprising:
the starting module is used for establishing LoRa network connection, ZigBee network connection and WiFi, RJ45 network connection based on starting the current LoRa gateway;
ZigBee network connection and WiFi and RJ45 network connection are added to the LoRa gateway;
the first determining module is used for determining a first data transmission network according to WiFi and RJ45 network connection, wherein the first data transmission network is specifically a WiFi network and an RJ45 network;
when the network structure is that a plurality of ZigBee communication sensors are connected with a current LoRa gateway and other LoRa gateways, and a ZigBee communication sensor connected with the current LoRa gateway is also connected with other ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a multi-channel communication mode;
when the network structure is a single ZigBee communication sensor connected with the current LoRa gateway, and the ZigBee communication sensor connected with the current LoRa gateway is not connected with other ZigBee communication sensors, the network corresponding to the ZigBee network connection is in a single-channel communication mode;
the fourth determining module is used for judging whether a network corresponding to the ZigBee network connection is in a multi-channel communication mode;
if so, determining the network corresponding to the ZigBee network connection as a multi-channel ZigBee network;
if not, determining the network corresponding to the ZigBee network connection as a single-channel ZigBee network;
a second determining module, configured to determine, when a network corresponding to the ZigBee network connection is a multi-channel ZigBee network, a second data transmission network according to a first network transmission quality corresponding to the LoRa network and a second network transmission quality corresponding to the multi-channel ZigBee network, specifically:
judging whether the first network transmission quality is lower than a preset threshold value or not;
if so, determining the multi-channel ZigBee network as the second data transmission network;
if not, determining the LoRa network as the second data transmission network;
or the like, or, alternatively,
judging whether the second network transmission quality is lower than the preset threshold value or not;
if yes, determining the LoRa network as the second data transmission network;
if not, determining the multi-channel ZigBee network as the second data transmission network;
the second data transmission network is a data transmission network between the current LoRa gateway and other LoRa gateways;
and the third determining module is used for determining the single-channel ZigBee network as a third data transmission network when the network corresponding to the ZigBee network connection is a single-channel ZigBee network.
4. The device of claim 3, wherein the start module is further specifically configured to:
and carrying out power-on reset on the current LoRa gateway so as to initialize the current LoRa gateway.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911107592.6A CN110972097B (en) | 2019-11-13 | 2019-11-13 | Method and equipment for determining data transmission network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911107592.6A CN110972097B (en) | 2019-11-13 | 2019-11-13 | Method and equipment for determining data transmission network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110972097A CN110972097A (en) | 2020-04-07 |
CN110972097B true CN110972097B (en) | 2022-02-18 |
Family
ID=70030537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911107592.6A Expired - Fee Related CN110972097B (en) | 2019-11-13 | 2019-11-13 | Method and equipment for determining data transmission network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110972097B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112202881B (en) * | 2020-09-29 | 2023-11-03 | 国网信息通信产业集团有限公司 | Internet of things equipment networking system and networking method thereof |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102448202A (en) * | 2011-12-16 | 2012-05-09 | 中国矿业大学 | Multi-protocol multi-interface wireless sensor network gateway |
CN104580370A (en) * | 2014-12-10 | 2015-04-29 | 上海物联网有限公司 | Self-adaptive transmission method and device for multimode gateway for information monitoring system |
CN107027162A (en) * | 2017-06-06 | 2017-08-08 | 福建强闽信息科技有限公司 | A kind of LoRa intelligent gateways and its application method, Internet of things system |
CN107204979A (en) * | 2017-05-25 | 2017-09-26 | 京信通信系统(中国)有限公司 | A kind of information processing method and gateway device |
CN107465608A (en) * | 2017-08-17 | 2017-12-12 | 浙江比弦物联科技有限公司 | Internet of Things Multifunctional gateway based on NB IoT |
CN207184521U (en) * | 2017-08-17 | 2018-04-03 | 浙江比弦物联科技有限公司 | Internet of Things Multifunctional gateway based on NB IoT |
CN108174397A (en) * | 2017-12-08 | 2018-06-15 | 南京邮电大学 | A kind of multiple gateway Synergistic method of task-driven |
CN108667870A (en) * | 2017-03-30 | 2018-10-16 | 华为技术有限公司 | A kind of methods, devices and systems that IoT data report |
CN209120522U (en) * | 2018-09-29 | 2019-07-16 | 福建福日电子股份有限公司 | A kind of Multichannel fusion intelligent lighting wireless communication module |
ES1232674U (en) * | 2018-12-31 | 2019-07-19 | Pino Antonio Mesa | IMPROVED PORTARROLLOS AND SYSTEM FOR THE MANAGEMENT OF REPOSITION (Machine-translation by Google Translate, not legally binding) |
CN110417649A (en) * | 2019-06-10 | 2019-11-05 | 西安图讯信息科技有限公司 | A kind of multiplex roles Intelligent internet of things data gateway |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10530603B2 (en) * | 2017-01-11 | 2020-01-07 | Smartiply, Inc. | Intelligent multi-modal IOT gateway |
-
2019
- 2019-11-13 CN CN201911107592.6A patent/CN110972097B/en not_active Expired - Fee Related
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102448202A (en) * | 2011-12-16 | 2012-05-09 | 中国矿业大学 | Multi-protocol multi-interface wireless sensor network gateway |
CN104580370A (en) * | 2014-12-10 | 2015-04-29 | 上海物联网有限公司 | Self-adaptive transmission method and device for multimode gateway for information monitoring system |
CN108667870A (en) * | 2017-03-30 | 2018-10-16 | 华为技术有限公司 | A kind of methods, devices and systems that IoT data report |
CN107204979A (en) * | 2017-05-25 | 2017-09-26 | 京信通信系统(中国)有限公司 | A kind of information processing method and gateway device |
CN107027162A (en) * | 2017-06-06 | 2017-08-08 | 福建强闽信息科技有限公司 | A kind of LoRa intelligent gateways and its application method, Internet of things system |
CN107465608A (en) * | 2017-08-17 | 2017-12-12 | 浙江比弦物联科技有限公司 | Internet of Things Multifunctional gateway based on NB IoT |
CN207184521U (en) * | 2017-08-17 | 2018-04-03 | 浙江比弦物联科技有限公司 | Internet of Things Multifunctional gateway based on NB IoT |
CN108174397A (en) * | 2017-12-08 | 2018-06-15 | 南京邮电大学 | A kind of multiple gateway Synergistic method of task-driven |
CN209120522U (en) * | 2018-09-29 | 2019-07-16 | 福建福日电子股份有限公司 | A kind of Multichannel fusion intelligent lighting wireless communication module |
ES1232674U (en) * | 2018-12-31 | 2019-07-19 | Pino Antonio Mesa | IMPROVED PORTARROLLOS AND SYSTEM FOR THE MANAGEMENT OF REPOSITION (Machine-translation by Google Translate, not legally binding) |
CN110417649A (en) * | 2019-06-10 | 2019-11-05 | 西安图讯信息科技有限公司 | A kind of multiplex roles Intelligent internet of things data gateway |
Non-Patent Citations (4)
Title |
---|
LoRa Posture Recognition System Based on Multi-Source Information Fusion;Ning Feng;《IEEE》;20190717;全文 * |
一种基于物联网的地震救援辅助系统;张兵;《自然灾害学报》;20140615;全文 * |
基于LoRa的农业大棚无线温湿度监测系统设计与实现;杨祯等;《电子测量技术》;20180608(第11期);全文 * |
物联网融合网关设计与实现;蒋兴权;《中国硕士论文全文数据库》;20190815;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110972097A (en) | 2020-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10681698B2 (en) | Dedicated backhaul for whole home coverage | |
CN108494681B (en) | Multilink data stream transmission method, wireless communication device and storage medium | |
US9332559B2 (en) | Method and channel selector for selecting an operation channel, and wireless network connecting apparatus including the channel selector | |
WO2020038256A1 (en) | Data transmission method and apparatus | |
CN110445511B (en) | Self-adaptive synchronous frequency hopping method and device, wireless AP and communication system | |
CN103067050B (en) | A kind of communication system and method | |
US20040125870A1 (en) | Interconnecting device with built-in power line communication modem | |
CN110913006B (en) | Remote diagnosis method and system | |
US11140215B2 (en) | Claiming network devices for a home network in a distributed Wi-Fi network | |
CN112351448A (en) | WIFI function test method and system and electronic equipment | |
CN107113624B (en) | Method, control equipment and system for configuring frequency points in microwave network | |
CN104469665A (en) | Data processing method and user terminals | |
CN104254114A (en) | Network access method, device and system | |
CN110972097B (en) | Method and equipment for determining data transmission network | |
CN112702748B (en) | Data transmission method and device for hybrid networking | |
EP4038837B1 (en) | Quality of experience measurements for control of wi-fi networks | |
CN107454659A (en) | A kind of terminal identification method, system, terminal device and base station | |
CN108092722B (en) | Circuit of C-RAN multi-path transmission module and control method thereof | |
EP2897299A1 (en) | Improved communication in smart grid networks | |
CN108702171B (en) | USB connection establishing method and device | |
US20230036718A1 (en) | Wi-Fi Communication Method and Electronic Device | |
CN104243534A (en) | Distributed data processing system, distributed data processing method and wireless terminal | |
CN110739987A (en) | Low-voltage power line broadband carrier communication system | |
CN113660734B (en) | Connection method and device of network equipment, network equipment and medium | |
CN111343589A (en) | Communication networking method, sub-node equipment and main node equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220218 |
|
CF01 | Termination of patent right due to non-payment of annual fee |