CN118338260A - Data transmission method and related equipment - Google Patents

Data transmission method and related equipment Download PDF

Info

Publication number
CN118338260A
CN118338260A CN202410593783.2A CN202410593783A CN118338260A CN 118338260 A CN118338260 A CN 118338260A CN 202410593783 A CN202410593783 A CN 202410593783A CN 118338260 A CN118338260 A CN 118338260A
Authority
CN
China
Prior art keywords
gateway
data
transmitting
internet
network
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.)
Pending
Application number
CN202410593783.2A
Other languages
Chinese (zh)
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.)
Shenzhen Rakwireless Technology Co ltd
Original Assignee
Shenzhen Rakwireless Technology Co ltd
Filing date
Publication date
Application filed by Shenzhen Rakwireless Technology Co ltd filed Critical Shenzhen Rakwireless Technology Co ltd
Publication of CN118338260A publication Critical patent/CN118338260A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a data transmission method and related equipment, which can be used in the field of communication. The method comprises the following steps: receiving first data transmitted by first target equipment through a LoRa module, and determining whether a first gateway has the capability of transmitting data through a set network; when the first gateway does not have the capability of transmitting data through the set network, determining a next-hop gateway of the first gateway in each gateway of the gateway system of the Internet of things; and transmitting the first data to the next hop gateway through a LoRa module in the first gateway. In the application, when the gateway cannot transmit data through the mobile network, the Ethernet or the WiFi hot spot network, the data is transmitted to the next-hop gateway through the LoRa module, so that the next-hop gateway transmits the data to the server based on the set network, even if the area where the signal quality is poor is located, the data can be transmitted to the server of the Internet of things through the gateway, the Internet of things platform can be ensured to acquire rich data, and the application effect of the data is improved.

Description

Data transmission method and related equipment
Technical Field
The present application relates to the field of communications, and in particular, to a data transmission method and related devices.
Background
With the development of network technology, the internet of things is gradually rising. The internet of things connects task objects with the internet through the information sensing equipment so as to realize the functions of intelligent identification, positioning, tracking, supervision and the like.
The internet of things is provided with a gateway system, the gateway system can be composed of multiple gateways, data transmitted by the sensors are received through the gateways, and then the data are transmitted to a server of the internet of things.
After the gateway obtains the data of the sensor, the data is transmitted to the server of the Internet of things through the WiFi hot spot network, the mobile network or the Ethernet, so that the gateway can only be arranged in the area of the mobile network, the WiFi hot spot network or the area with the Ethernet for transmitting the data, the Internet of things is limited to collect the data in the area with good signal quality, the data acquired by the Internet of things platform is not abundant enough, and the application effect of the data is poor.
Disclosure of Invention
The application provides a data transmission method and related equipment, which are used for solving the problem of poor application effect of data acquired by the Internet of things.
In a first aspect, the present application provides a data transmission method,
The method is applied to a first gateway, wherein the first gateway is any gateway in all gateways in an Internet of things gateway system, all the gateways of the Internet of things gateway system are provided with LoRa modules, and the data transmission method comprises the following steps:
Receiving first data transmitted by first target equipment through a LoRa module, and determining whether the first gateway has the capability of transmitting the data through a set network, wherein the first target equipment comprises a sensor or any gateway in the gateway system of the Internet of things, and the set network comprises a mobile network, a WiFi hot spot network or an Ethernet;
when the first gateway does not have the capability of transmitting data through a set network, determining a next-hop gateway of the first gateway in each gateway of the gateway system of the Internet of things;
And transmitting the first data to the next-hop gateway through a LoRa module in the first gateway, wherein when the next-hop gateway has the capacity of transmitting the data through a set network, the next-hop gateway transmits the first data to a server through the set network.
In one embodiment, the step of determining whether the first gateway has the capability to transmit data over a set network comprises:
Determining a role of the first gateway in the internet of things gateway system, wherein when the role is a base station of the internet of things gateway system, determining that the first gateway does not have the capability of transmitting data through a set network, and when the role is an access node of the internet of things gateway system, determining that the first gateway has the capability of transmitting data through the set network.
In an embodiment, further comprising:
receiving second data transmitted by second target equipment, wherein the second target equipment is a gateway serving as an access node;
And transmitting the second data to the sensor through a LoRa module in the first gateway.
In an embodiment, further comprising:
Receiving second data transmitted by a previous hop gateway based on a LoRa module or a set network in the previous hop gateway;
And transmitting the second data to the sensor through a LoRa module in the first gateway.
In an embodiment, the step of transmitting the first data to the next hop gateway through a LoRa module in the first gateway includes:
And controlling a LoRa module in the first gateway to adopt a 2.4G frequency band, and transmitting the first data to the next hop gateway.
In an embodiment, the determining whether the first gateway is capable of transmitting data over a network of devices comprises:
acquiring a first identifier carried by the first data;
When the carried first identifier does not comprise the second identifier of the first gateway, determining whether the first gateway has the capability of transmitting data through a network of the equipment;
The step of transmitting the first data to the next hop gateway through the LoRa module in the first gateway includes:
and transmitting the first data carrying the first identifier and the second identifier to the next hop gateway through a LoRa module in the first gateway.
In a second aspect, the present application provides a gateway provided with a LoRa module, the gateway comprising:
The receiving module is used for receiving first data transmitted by first target equipment through the LoRa module and determining whether the first gateway has the capability of transmitting the data through a set network or not, wherein the first target equipment comprises a sensor or any gateway in the gateway system of the Internet of things, and the set network comprises a mobile network, a WiFi hot spot network or an Ethernet;
The determining module is used for determining a next hop gateway of the first gateway in each gateway of the gateway system of the Internet of things when the first gateway does not have the capability of transmitting data through a set network;
And the transmission module is used for transmitting the first data to the next-hop gateway through the LoRa module in the first gateway, wherein when the next-hop gateway has the capacity of transmitting the data through a set network, the next-hop gateway transmits the first data to a server through the set network.
In a third aspect, the present application provides a gateway comprising: the device comprises a LoRa module, a processor and a memory which is in communication connection with the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 6.
In a fourth aspect, the present application provides an internet of things gateway system comprising a plurality of gateways, each of which is provided with a LoRa module, any one of the gateways being adapted to implement the method as claimed in any one of claims 1-6.
In an embodiment, each gateway of the gateway system of the internet of things at least includes one gateway serving as an access node and at least includes one gateway serving as a base station.
In a fifth aspect, the application also provides a computer readable storage medium having stored therein computer executable instructions which when executed by a processor are for carrying out the method as described above.
According to the data transmission method and the related equipment, when the first gateway receives data transmitted by other gateways or sensors, whether the first gateway has the capability of transmitting the data through a mobile network, a WiFi hot spot network or an Ethernet or not is determined, if the first gateway does not have the capability of transmitting the data through the set network, the first gateway transmits the data to the next-hop gateway through the LoRa module of the first gateway, so that the next-hop gateway with the capability of transmitting the data through the set network transmits the data to a server. In the application, when the gateway cannot transmit data through the mobile network, the Ethernet or the WiFi hot spot network, the data is transmitted to the next-hop gateway through the LoRa module, so that the next-hop gateway transmits the data to the server based on the set network, even if the area where the signal quality is poor is located, the data can be transmitted to the server of the Internet of things through the gateway, the Internet of things platform can be ensured to acquire rich data, and the application effect of the data is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of an internet of things gateway system according to the present application;
fig. 2 is a flowchart of a first embodiment of a data transmission method according to the present application;
Fig. 3 is a flowchart of a second embodiment of a data transmission method according to the present application;
Fig. 4 is a flowchart of a third embodiment of a data transmission method according to the present application;
FIG. 5 is a schematic diagram of a virtual module of the gateway of the present application;
fig. 6 is a schematic hardware structure of the gateway according to the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
With the development of network technology, the internet of things is gradually rising. The internet of things connects task objects with the internet through the information sensing equipment so as to realize the functions of intelligent identification, positioning, tracking, supervision and the like.
The internet of things is provided with a gateway system, the gateway system can be composed of multiple gateways, data transmitted by the sensors are received through the gateways, and then the data are transmitted to a server of the internet of things.
The inventor discovers that after the gateway obtains the data of the sensor, the gateway needs to transmit the data to the server of the Internet of things through the WiFi hot spot network, the mobile network or the Ethernet, so that the gateway can only be arranged in the mobile network, the WiFi hot spot network or the area with the Ethernet for transmitting the data, the Internet of things is limited to collect the data in the area with good signal quality, the data acquired by the Internet of things platform is not abundant enough, and the application effect of the data is poor.
The inventor thinks that when the gateway cannot transmit data through the mobile network, the Ethernet or the WiFi hot spot network, the data is transmitted to the next-hop gateway through the LoRa module, so that the next-hop gateway transmits the data to the server based on the set network, even if the area where the signal quality is poor is located, the data can be transmitted to the server of the Internet of things through the gateway, the Internet of things platform can be ensured to acquire rich data, and the application effect of the data is improved.
Referring to fig. 1, fig. 1 is a schematic diagram of an internet of things gateway system according to an embodiment of the present application. As shown in fig. 1, the internet of things gateway system 100 is composed of a plurality of gateways, each of which is provided with a LoRa (Long Range Radio) module. The LoRa module requires lower power consumption for transmitting data and the transmission distance of the data is longer than other wireless means. The LoRa modules of the gateways can perform data transmission according to a LoRa wan (Long RANGE WIDE AREA Network) protocol, and also can perform data transmission according to a private protocol, wherein the private protocol refers to a customized protocol. Different gateways have different roles in the gateway system of the internet of things. For example, part of the gateway serves as an Access Point (AP) of the server 200; part of the gateway acts as a base Station (STA). Each gateway initiates a relay mode, so that the gateway automatically connects with STAs corresponding to the access node, and the STAs having a correspondence relationship automatically connect with each other, for example, STA1 connects with STA2, and STA2 connects with AP1.
The gateway serving as the base station transmits data to the gateway serving as the access node through the LoRa module, the gateway serving as the access node transmits the data to the server, and one access node can receive the data transmitted by one or more base stations. Illustratively, gateway 110 serves as an access node, may be communicatively connected to a server via a mobile network (e.g., 2G, 3G, 4G, 5G, and higher mobile networks) or a WiFi hotspot network, gateway 120 and gateway 130 serve as base stations, and gateway 120 and gateway 130 communicate data via a LoRa module. Gateway 110, gateway 120, gateway 130 may all be communicatively coupled to node 140. The node is the sensor, and the sensor can low-power consumption sensor, for example Sub-G sensor, and the node also is provided with the loRa module, and the sensor carries out data transmission through the loRa module, and the sensor can be temperature sensor, humidity transducer, carbon dioxide sensor etc.. The Sub-G sensor refers to a sensor for data transmission using a frequency band of 1G or less.
Further, the gateway serving as the access node may be disposed in an area with good signal quality, and the gateway serving as the base station may be disposed in an area with poor signal quality. The gateways can be automatically connected by starting a repeat mode (relay mode), so that a plurality of gateways based on the LoRa technology form an Internet of things gateway system. Through the deployment mode, the STA can be ensured to transmit acquired sensor data to a gateway installed in an area with good signal quality, and then the gateway transmits the data to a server of the Internet of things through a mobile network or a WiFi hot spot network. It should be noted that, a part of base stations may be set in an area with good signal quality, so that STAs in the area with good signal quality receive data, and may transmit the data to APs corresponding to the STAs through the LoRa module or the configuration network, and the APs may transmit the data to the server through the configuration network. When the AP receives the data transmitted by the server, the AP transmits the data to the STA through the self LoRa module, and the STA receives the data and transmits the data to the sensor through the self LoRa module.
Further, the LoRa module in the gateway may use a high frequency band or a low frequency band for data transmission, for example, the LoRa module uses a high frequency band of 2.4G for data transmission, or uses a low frequency band of less than 1G for data transmission. The gateway adopts the high frequency band to carry out data transmission, and even if the data volume of the data is large, the data transmission rate can be ensured to be faster. The LoRa module in the gateway adopts a low frequency band to transmit data to the sensor, and adopts a 2.4G frequency band to transmit data to other gateways.
The STA is used as a bridge between the sensor and the AP, specifically, when the Sub-G sensor transmits data to the STA through the LoRa module, the LoRa module in the STA adopts a frequency band of 2.4G to transmit the data to the STA of the next hop, if the STA of the next hop is in a region with good signal quality, the STA of the next hop transmits the data to the AP through a set network or the LoRa module; and if the next-hop STA is in the area with poor signal quality, the next-hop STA continuously transmits the data to the next-hop STA of the STA based on the self LoRa module.
The role of the AP in the gateway system of the internet of things is a central hub. And receiving the data transmitted by the STA through the LoRa module, and forwarding the data to the server through a mobile network, a WiFi hot spot network or an Ethernet.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a data transmission method according to the present application, where the data transmission method includes the following steps:
Step S201, receiving first data transmitted by the first target device through the LoRa module, and determining whether the first gateway has a capability of transmitting data through a set network, where the first target device includes a sensor or any gateway in the gateway system of the internet of things, and the set network includes a mobile network, a WiFi hotspot network or an ethernet.
In this embodiment, the execution body is a first gateway, the first gateway is any gateway in the gateway system of the internet of things, and each gateway in the gateway system of the internet of things is provided with a LoRa module. The specific architecture of the gateway system of the internet of things refers to the above description and will not be described in detail herein.
After the sensor collects data, the data are transmitted to the gateway through the self LoRa module, and the data collected by the sensor are defined as first data. In addition, after the first data is transmitted to the gateway, if the gateway does not have the capability of setting network transmission data, the gateway transmits the first data to the first gateway through the self LoRa module. It may be appreciated that the first gateway receives the first data transmitted by the first target device through the LoRa module, where the first target device includes a sensor or other gateway in the gateway system of the internet of things, and the other gateway is a gateway other than the first gateway.
After the first gateway obtains the first data, it needs to determine whether the first gateway has the capability of transmitting the data through the set network.
In an example, the first gateway stores location information, where the location information includes a mobile network coverage signal strength of a location where the first gateway is located, where the signal strength may be detected before the first gateway is installed or may be detected in real time by the first gateway, if the signal strength is greater than a preset threshold, it may be determined that the signal quality of the location where the first gateway is located is good, and the first gateway may perform data transmission through a set network, that is, the first gateway has a capability of transmitting data through the set network; if the signal strength is smaller than or equal to the preset threshold, the signal quality of the position of the first gateway is poor, and the first gateway does not have the capability of transmitting data through the set network. The set-up network comprises a mobile network, a WiFi hotspot network or an ethernet network.
In another example, a gateway installed in an area with better signal quality is provided with a communication module for setting a network, for example, an LTE (Long Term Evolution ) module, an ethernet communication module, or a wifi module; and the gateway installed in the area with poor signal quality is not provided with a communication module for setting a network, and is only provided with a LoRa module. Therefore, the first gateway obtains the configuration information of the first gateway, and if the configuration information does not include the information of the communication module of the setting network, the first gateway can be determined to not have the capability of transmitting data through the setting network. Otherwise, the configuration information includes information of the communication module of the setting network, and the first gateway is determined to have the capability of transmitting data through the setting network.
In still another example, the gateway is installed as a base station in a poor signal quality area, and the gateway is installed as an access node in a good signal quality area, so that the first gateway can determine whether the first gateway has the capability of setting network transmission data through the role of the gateway system of the internet of things. Specifically, when the role of the first gateway is a base station of the gateway system of the internet of things, it is determined that the first gateway does not have the capability of transmitting data through the set network, and when the role is an access node of the gateway system of the internet of things, it is determined that the first gateway has the capability of transmitting data through the set network.
Step S202, when the first gateway does not have the capability of transmitting data through the set network, determining a next hop gateway of the first gateway in each gateway of the gateway system of the Internet of things.
When the first gateway does not have the capability of transmitting data through the network of the device, the first gateway determines a next-hop gateway in each gateway of the gateway system of the internet of things. The first gateway stores a communication address of a next-hop gateway, and the gateway corresponding to the communication address is the next-hop gateway. The communication address may be one or more, i.e. the next hop gateway is one or more.
Step S203, the first data is transmitted to the next-hop gateway through the LoRa module in the first gateway, wherein when the next-hop gateway has the capability of transmitting the data through the set network, the next-hop gateway transmits the first data to the server through the set network.
After determining the next-hop gateway, the first gateway transmits the first data to the next-hop gateway based on the LoRa module. And if the next-hop gateway has the capacity of transmitting data through the setting network, the next-hop gateway transmits the first data to the server through the setting network. If the next-hop gateway does not have the capability of transmitting data through the set network, the next-hop gateway transmits the first data to other gateways until the first data is transmitted to the gateway with the capability of transmitting data through the set network, and the gateway with the capability of transmitting data through the set network transmits the first data to the server.
In addition, in the process of passing the first Data from the sensor to the server through the gateway, the gateway receiving the first Data needs to encode the first Data, for example, DR (Data Rate), SNR (Signal to Interference plus Noise Ratio ) and RSSI (RECEIVED SIGNAL STRENGTH Indication of received signal strength), and uplink DR and channel.
Further, the server will transmit data to the sensor through the gateway, where the data is defined as second data, i.e. the second data is downstream data, and the first data is upstream data. The first gateway does not have the capability of transmitting data through the set network, and when the first gateway receives second data which is transmitted by the last hop gateway and is used as downlink data, the first gateway transmits the second data to the sensor through the LoRa module.
In this embodiment, when the first gateway receives data transmitted by other gateways or sensors, it determines whether the first gateway has the capability of transmitting data through a mobile network, a WiFi hotspot network, an ethernet network or other set network, and if the first gateway does not have the capability of transmitting data through the set network, the first gateway transmits the data to the next-hop gateway through its LoRa module, so that the next-hop gateway with the capability of transmitting data through the set network transmits the data to the server. In this embodiment, when the gateway cannot perform data transmission through the mobile network, the ethernet or the WiFi hotspot network, the data is transmitted to the next-hop gateway through the LoRa module, so that the next-hop gateway transmits the data to the server based on the set network, even if the area where the signal quality is poor is located, the data can also be transmitted to the server of the internet of things through the gateway, the internet of things platform is ensured to be capable of acquiring rich data, and the effect of applying the data is improved.
In one embodiment, the server transmits data to the sensor via the gateway, the data being defined as second data, i.e. the second data is downstream data and the first data is upstream data. The first gateway receives second data transmitted by the second target device based on the set network. The first gateway is not capable of transmitting data over the provisioning network and the second target device is an access node. And after the first gateway receives the second data, the second data is transmitted to the sensor through the LoRa module.
The first gateway has the capability of transmitting data through a set network, the role of the first gateway is as an access node, and the second target device is as a server. At this time, after the first gateway obtains the second data, the data is transmitted to the STA through the LoRa module, and the STA transmits the second data to the sensor through the LoRa module. In the downstream path (in the path where the server transmits the second data to the sensor), the STA adds downstream metadata (an instruction of the server) to the data to be transmitted (second data) and downstream to the AP to which the STA corresponds, so that the forwarding of the second data can be performed by the correct AP, and the AP can use the correct timing, and in addition, the AP can also perform the transmission of the second data using the desired DR and frequency.
In this embodiment, when the first gateway transmits the second data transmitted by the second target device to the sensor, the server of the internet of things can transmit the data to the sensor.
Referring to fig. 3, fig. 3 is a flowchart illustrating a third embodiment of a data transmission method according to the present application, based on the first embodiment, step S203 includes:
step S301, a LoRa module in a first gateway is controlled to adopt a 2.4G frequency band to transmit first data to a next-hop gateway, wherein when the next-hop gateway has the capability of transmitting data through a set network, the next-hop gateway transmits the first data to a server through the set network.
In this embodiment, the gateway is provided with a low-frequency module, for example, a SUB-G concentrator, that is, the first gateway receives the low-frequency signal through the low-frequency module to obtain the first data.
In order to ensure the transmission rate of the first data, a high-frequency module, such as a 2.4G concentrator, is further disposed in the first gateway. Due to the 2.4G concentrator, the LoRa module in the first gateway can adopt a 2.4G frequency band to transmit first data to the next hop gateway in the form of a LoRa radio frequency signal, and it can be understood that the LoRa module in the sensor adopts a frequency band lower than 1GHz to transmit data, and the LoRa module in the gateway adopts a 2.4GHz frequency band to transmit data.
In this embodiment, the LoRa module in the first gateway adopts the 24G frequency band to transmit the first data to the next hop gateway, so that the first gateway adopts a network with a larger bandwidth to transmit the data, thereby ensuring the data transmission rate.
Referring to fig. 4, fig. 4 is a third embodiment of the data transmission method according to the present application, based on the first or second embodiment, step S201 includes step S401 and step S402, and step S203 includes step S403, which is specifically as follows:
step S401, acquiring a first identifier carried by the first data.
In step S402, when the carried first identifier does not include the second identifier of the first gateway, it is determined whether the first gateway has a capability of transmitting data through a set network, where the first target device includes a sensor or a gateway in the gateway system of the internet of things, and the set network includes a mobile network, a WiFi hotspot network, or an ethernet.
In this embodiment, when the gateway forwards data, the identifier of the gateway is added to the data, and when the gateway receives the data, if the data carries the identifier of the gateway, it can be determined that the gateway forwards the data, and the data does not need to be forwarded again, so that the resources of the gateway can be saved.
In contrast, after the first gateway receives the first data, the first identifier carried by the first data is obtained, and the first identifier forwards the identifier of the gateway of the first data.
When the carried first identifier does not include the second identifier of the first gateway, it may be determined that the first gateway has not forwarded the first data, and thus it is required to determine whether the first gateway has the capability of transmitting the data through the set network, that is, step S202 is performed.
If the carried first identifier comprises the second identifier, the first gateway can be determined to forward the first data, and the first gateway discards the first data.
Step S403, the first data carrying the first identifier and the second identifier is transmitted to the next-hop gateway through the LoRa module in the first gateway, and when the next-hop gateway has the capability of transmitting the data through the set network, the next-hop gateway transmits the first data to the server through the set network.
When the first gateway does not forward the first data and the first gateway does not have the capability of transmitting the data through the set network, the first gateway forwards the first data carrying the first identifier and the second identifier to the next hop gateway through the LoRa module.
In this embodiment, the first gateway adds the identifier of itself and the existing first identifier to the first data, and forwards the first data, so as to avoid the first gateway forwarding the first data again, and save the resources of the first gateway.
The present application also provides a gateway, referring to fig. 5, a gateway 500 includes:
The receiving module 510 is configured to receive first data transmitted by the first target device through the LoRa module, and determine whether the first gateway has a capability of transmitting the data through a set network, where the first target device includes a sensor or any gateway in the gateway system of the internet of things, and the set network includes a mobile network, a WiFi hotspot network, or an ethernet network;
a determining module 520, configured to determine a next-hop gateway of the first gateway in each gateway of the gateway system of the internet of things when the first gateway does not have the capability of transmitting data through the set network;
and the transmission module 530 is configured to transmit the first data to the next-hop gateway through the LoRa module in the first gateway, where when the next-hop gateway has the capability of transmitting the data through the set network, the next-hop gateway transmits the first data to the server through the set network.
In one embodiment, gateway 500 is specifically configured to:
determining a role of the first gateway in the gateway system of the Internet of things, wherein when the role is a base station serving as the gateway system of the Internet of things, the first gateway is determined to have no capability of transmitting data through a set network, and when the role is an access node serving as the gateway system of the Internet of things, the first gateway is determined to have the capability of transmitting data through the set network.
In one embodiment, gateway 500 is specifically configured to:
Receiving second data transmitted by a second target device, wherein the second target device is a gateway serving as an access node;
the second data is transmitted to the sensor via a LoRa module within the first gateway.
In one embodiment, gateway 500 is specifically configured to:
receiving second data transmitted by the previous hop gateway based on a LoRa module or a set network in the previous hop gateway;
the second data is transmitted to the sensor via a LoRa module within the first gateway.
In one embodiment, gateway 500 is specifically configured to:
And controlling a LoRa module in the first gateway to adopt a 2.4G frequency band to transmit the first data to the next hop gateway.
In one embodiment, gateway 500 is specifically configured to:
Acquiring a first identifier carried by first data;
when the carried first identifier does not comprise the second identifier of the first gateway, determining whether the first gateway has the capability of transmitting data through the network of the equipment;
The step of transmitting the first data to the next hop gateway through the LoRa module in the first gateway comprises:
And transmitting the first data carrying the first identifier and the second identifier to the next hop gateway through a LoRa module in the first gateway.
Fig. 6 is a hardware configuration diagram of a gateway shown according to an exemplary embodiment.
The gateway may include: a processor 61, such as a CPU, a memory 62, a transceiver 63 and a LoRa module 64. Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. The memory 62 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Processor 61 may invoke a computer program or computer-executable instructions stored in memory 62 to perform all or part of the steps of the data transmission method described above.
The transceiver 63 is used for receiving information transmitted from the external device and transmitting information to the external device.
The LoRa module 64 is used for data transmission.
The gateway system of the Internet of things comprises a plurality of gateways, each gateway is provided with a LoRa module, and any gateway is used for realizing the data transmission method.
A non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the data transmission method described above.
A computer program product comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform the above-described data transmission method.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. The data transmission method is characterized by being applied to a first gateway, wherein the first gateway is any gateway in all gateways in an Internet of things gateway system, and all the gateways of the Internet of things gateway system are provided with LoRa modules, and the data transmission method comprises the following steps:
Receiving first data transmitted by first target equipment through a LoRa module, and determining whether the first gateway has the capability of transmitting the data through a set network, wherein the first target equipment comprises a sensor or any gateway in the gateway system of the Internet of things, and the set network comprises a mobile network, a WiFi hot spot network or an Ethernet;
when the first gateway does not have the capability of transmitting data through a set network, determining a next-hop gateway of the first gateway in each gateway of the gateway system of the Internet of things;
And transmitting the first data to the next-hop gateway through a LoRa module in the first gateway, wherein when the next-hop gateway has the capacity of transmitting the data through a set network, the next-hop gateway transmits the first data to a server through the set network.
2. The data transmission method according to claim 1, wherein the step of determining whether the first gateway has a capability to transmit data through a set network comprises:
Determining a role of the first gateway in the internet of things gateway system, wherein when the role is a base station of the internet of things gateway system, determining that the first gateway does not have the capability of transmitting data through a set network, and when the role is an access node of the internet of things gateway system, determining that the first gateway has the capability of transmitting data through the set network.
3. The data transmission method according to claim 1, further comprising:
receiving second data transmitted by second target equipment, wherein the second target equipment is a gateway serving as an access node;
And transmitting the second data to the sensor through a LoRa module in the first gateway.
4. The data transmission method according to claim 1, further comprising:
Receiving second data transmitted by a previous hop gateway based on a LoRa module or a set network in the previous hop gateway;
And transmitting the second data to the sensor through a LoRa module in the first gateway.
5. The method of claim 1, wherein the step of transmitting the first data to the next hop gateway via a LoRa module within the first gateway comprises:
And controlling a LoRa module in the first gateway to adopt a 2.4G frequency band, and transmitting the first data to the next hop gateway.
6. The method of any of claims 1-5, wherein determining whether the first gateway is capable of transmitting data over a network of devices comprises:
acquiring a first identifier carried by the first data;
When the carried first identifier does not comprise the second identifier of the first gateway, determining whether the first gateway has the capability of transmitting data through a network of the equipment;
The step of transmitting the first data to the next hop gateway through the LoRa module in the first gateway includes:
and transmitting the first data carrying the first identifier and the second identifier to the next hop gateway through a LoRa module in the first gateway.
7. A gateway, characterized in that it is provided with a LoRa module, comprising:
the receiving module is used for receiving first data transmitted by first target equipment through the LoRa module and determining whether the first gateway has the capability of transmitting the data through a set network or not, wherein the first target equipment comprises a sensor or any gateway in an Internet of things gateway system, and the set network comprises a mobile network, a WiFi hot spot network or an Ethernet;
The determining module is used for determining a next hop gateway of the first gateway in each gateway of the gateway system of the Internet of things when the first gateway does not have the capability of transmitting data through a set network;
And the transmission module is used for transmitting the first data to the next-hop gateway through the LoRa module in the first gateway, wherein when the next-hop gateway has the capacity of transmitting the data through a set network, the next-hop gateway transmits the first data to a server through the set network.
8. A gateway, comprising: the device comprises a LoRa module, a processor and a memory which is in communication connection with the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 6.
9. An internet of things gateway system, characterized in that the internet of things gateway system comprises a plurality of gateways, each gateway being provided with a LoRa module, any one of the gateways being adapted to implement the method according to any one of claims 1-6.
10. The internet of things gateway system of claim 9, wherein each gateway of the internet of things gateway system comprises at least one gateway as an access node and at least one gateway as a base station.
11. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 6.
CN202410593783.2A 2024-05-14 Data transmission method and related equipment Pending CN118338260A (en)

Publications (1)

Publication Number Publication Date
CN118338260A true CN118338260A (en) 2024-07-12

Family

ID=

Similar Documents

Publication Publication Date Title
CN110492913B (en) Signal transmission method and device
CN109479245B (en) Power control method, device, terminal and network equipment
CN111989585A (en) Relative positioning method, terminal, base station, communication device and storage medium
US20160234789A1 (en) Method of controlling transmission power in device-to-device communication and apparatus thereof
CN107431544A (en) Method and apparatus for device-to-device communication
JP2016536903A (en) Adaptive RTS / CTS in high efficiency wireless communication
CN108347766B (en) Paging transmission method under uplink mobility, communication station and communication node
CN114342456B (en) Measurement method, base station, multimode terminal, communication device, and storage medium
JP2023532239A (en) Power control for uplink transmission to multiple TRPs
US11223411B2 (en) Systems and methods for joint beam sweep configuration in 5G networks
KR20080022208A (en) Method and apparatus to transmit and receive data in a wireless communication system having smart antennas
US10425975B1 (en) Method for selecting a device to act as a relay device between a first and a second node based on received signal quality measurements
US20210021534A1 (en) Measuring transmission delay
CN108366418B (en) Node and power control method
US20230059284A1 (en) Facilitating explicit latency mode determination in beam switching
WO2019157997A1 (en) Communication method and device
CN114270892A (en) Method and apparatus for forwarding data between network nodes in a maritime network
CN118338260A (en) Data transmission method and related equipment
US20230379935A1 (en) Information receiving and sending method, device and readable storage medium
CN110996345B (en) Method and device for detecting or reporting field intensity in ad hoc network, computing equipment and storage medium
CN117795819A (en) Power control for charging user equipment and wearable devices
CN116997013A (en) Multi-hop transmission method and communication device
US11317457B1 (en) Use of secondary-node loading as basis to control timing for configuring dual connectivity
US11984939B2 (en) Methods and devices for inter-cell interference estimation
US20210227476A1 (en) Variable-length coding in a noma-based communication system

Legal Events

Date Code Title Description
PB01 Publication