CN108616904B - Wireless frequency point management method and system - Google Patents

Wireless frequency point management method and system Download PDF

Info

Publication number
CN108616904B
CN108616904B CN201611195639.5A CN201611195639A CN108616904B CN 108616904 B CN108616904 B CN 108616904B CN 201611195639 A CN201611195639 A CN 201611195639A CN 108616904 B CN108616904 B CN 108616904B
Authority
CN
China
Prior art keywords
terminal
gateway
network
frequency point
hello message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611195639.5A
Other languages
Chinese (zh)
Other versions
CN108616904A (en
Inventor
肖科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai B Star Technology Co ltd
Original Assignee
Shanghai B Star Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai B Star Technology Co ltd filed Critical Shanghai B Star Technology Co ltd
Priority to CN201611195639.5A priority Critical patent/CN108616904B/en
Publication of CN108616904A publication Critical patent/CN108616904A/en
Application granted granted Critical
Publication of CN108616904B publication Critical patent/CN108616904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA
    • H04W74/0833Random access procedures, e.g. with 4-step access

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless frequency point management method and a wireless frequency point management system, which are applied to a LoRaWAN (Long area network) network and comprise the steps that after a terminal is powered on, one frequency point is randomly selected from each channel group to send out a Hello message; after a network server receives a Hello message through a gateway, a terminal selects a frequency point for sending the Hello message from a channel for receiving the Hello message and sends a network access request message; after receiving a network access response message sent by a network server through an optimal gateway, a terminal accesses the network through the optimal gateway; the optimal gateway is determined by the network server according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and the network environment information corresponding to the terminal is acquired by the network server according to the Hello messages from the terminal received by different gateways. The wireless frequency point management method and the wireless frequency point management system can effectively improve the utilization rate of frequency point resources and reduce the packet loss rate and the error rate of a wireless network.

Description

Wireless frequency point management method and system
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and a system for managing wireless frequency points.
Background
The LoRa is a wireless technology in a Low Power Wide Area Network (LPWAN), has the characteristics of long distance, Low Power consumption, Low speed and Low cost, and is suitable for large-scale deployment. The coverage range of LoRa can be a city or even a country, collected data can be integrated into a public data platform, and projects such as smart cities, smart traffic, smart factories and the like are established; and the data can be used for carrying out later-stage big data mining, and is beneficial to projects such as city management, social public management, industrial internet, development and consultation and the like.
LoRaWAN is a low-power consumption wide area Network specification proposed by the LoRa alliance, and the Network architecture of the LoRaWAN comprises a terminal, a Gateway (Gateway) and a Network Server (NS). When the LoRaWAN network terminal reports data, the terminal sends wireless data to the outside; after receiving the wireless signal, the gateway reports the data to a network server through an Ethernet or a mobile phone operator network (3G or 4G); the network server stores the received data, identifies the type of the reported data packet, and if the data packet needs to be replied, the network server pushes the reply message to the gateway, and the gateway sends the reply message out in a wireless mode. The interactive protocol between the gateway and the network server is a complete TCP/IP protocol, the terminal and the gateway interact in a wireless mode, and a LoRaWAN protocol belonging to an MAC layer is used. In The LoRaWAN specification, two terminal access modes are defined, namely Over-The-Air Activation (OTTA) and manual Activation (ABP). Under the OTAA mode, automatically generating a Network Session Key (NwkSKey) and an Application Session Key (AppSKey) according to a device random number (DevNoce) randomly generated by a terminal and an Application layer random number (AppNoce) randomly generated by a Network server; in the ABP mode, fixed NwkSKey and AppSKey are used. Compared with the two modes, the OTAA has better safety, and the ABP has simpler access and use.
According to the LoRaWAN1.01 standard definition, 470 frequency band uplink frequency points of China area range from 470.3MHz to 489.3MHz, wherein every 200KHz is a frequency point, and one frequency point is corresponding to a working channel. E.g., 470.3MHz per channel, 470.5MHz per channel, etc., for a total of 96 channels. The receiving range of a gateway can only be within the range of continuous 8 channels, so that 96 channels can be divided into 12 channel groups. Therefore, the channel group division is as shown in table 1.
Table 1, start frequency point and stop frequency point of 12 channel groups
Figure BDA0001187380920000011
Figure BDA0001187380920000021
Therefore, the range of channels that can be received by each gateway is one channel group. The terminal and the gateway send and receive messages to and from each other, and are required to work in the same channel group. Assuming that the terminal works in the first channel and the frequency point range is 470.3 to 471.7, when sending data, one frequency point can be randomly selected from the first channel, which can be 470.3MHz, 470.5MHz, 470.7MHz, 470.9MHz, 471.1MHz, 471.3MHz, 471.5MHz or 471.7MHz, respectively.
Since the terminal and the gateway adopt a wireless communication mode and the LoRa adopts a pure ALOHA protocol, the conflict cannot be avoided. The conflict is mainly expressed in that when two or more terminals transmit data at the same frequency point, signals of the two or more terminals interfere with each other and are mutually noisy, so that the signal-to-noise ratio (SNR) obtained by a receiving end is very low, the noise is too large, the normal message reception is influenced, correct message content cannot be obtained, and the evaluation index reflected on a network server is that the packet loss rate is too large. In a certain range, the larger the number of terminals is, the larger the mutual interference is, and the larger the packet loss rate is. The result is obtained according to the verification of the actual environment, and the interference mainly occurs when the same frequency point is used; and the interference between terminals working at two different frequency points, especially different channel groups, is close to zero.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method and a system for managing a wireless frequency point, where a terminal sends a Hello packet to each channel group before sending a network access request, and a network server updates network environment information associated with the terminal under different gateways according to the Hello packet and selects an optimal gateway to complete network access of the terminal, so as to effectively improve a utilization rate of frequency point resources and reduce a packet loss rate and an error rate of a wireless network.
In order to achieve the above objects and other related objects, the present invention provides a wireless frequency point management method, which is applied to a LoRaWAN network, where the LoRaWAN network includes a terminal, a gateway, and a network server; the management method comprises the following steps: after the terminal is powered on, randomly selecting a frequency point in each channel group to send out a Hello message; after a network server receives a Hello message through a gateway, a terminal selects a frequency point for sending the Hello message from a channel for receiving the Hello message and sends a network access request message; after receiving a network access response message sent by a network server through an optimal gateway, a terminal accesses the network through the optimal gateway; the optimal gateway is determined by the network server according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and the network environment information corresponding to the terminal is acquired by the network server according to the Hello messages from the terminal received by different gateways.
In an embodiment of the present invention, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
In an embodiment of the present invention, the network environment information includes received signal strength and signal-to-noise ratio of the Hello packet received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
In addition, the invention also provides a wireless frequency point management method, which is applied to a LoRaWAN network, wherein the LoRaWAN network comprises a terminal, a gateway and a network server;
the management method comprises the following steps:
after the terminal is powered on, randomly selecting a frequency point in each channel group to send out a Hello message;
the network server receives the Hello message through different gateways, and updates the network environment information corresponding to the terminal according to the Hello message received by the different gateways;
the terminal selects a frequency point for sending the Hello message from a channel for receiving the Hello message and sends a network access request message;
the network server receives network access request messages of the terminal through different gateways, determines an optimal gateway according to network environment information corresponding to the terminal and resource occupancy rates of the gateways in a coverage area of the terminal, and sends a network access response message to the terminal through the optimal gateway;
and the terminal accesses the network through the optimal gateway to upload the service data message.
In an embodiment of the present invention, the method further includes: and when the resource occupancy rate of the current optimal gateway reaches a preset critical value, adding a gateway in the new channel group.
In an embodiment of the present invention, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
In an embodiment of the present invention, the network environment information includes received signal strength and signal-to-noise ratio of the Hello packet received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
Meanwhile, the invention also provides a wireless frequency point management system, which is applied to a LoRaWAN network and comprises a terminal, a gateway and a network server;
the terminal is used for randomly selecting one frequency point in each channel group to send out a Hello message after being electrified; after the network server receives the Hello message, selecting a frequency point for sending the Hello message from a channel for receiving the Hello message and sending a network access request message; after receiving a network access response message sent by the network server through the optimal gateway, accessing the network through the optimal gateway;
the gateway is used for transmitting messages between the terminal and the network server;
the network server is used for receiving the Hello message sent by the terminal through the gateway and updating the network environment information corresponding to the terminal according to the Hello message; and receiving a network access request message of the terminal through the gateway, determining an optimal gateway according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and sending a network access response message to the terminal through the optimal gateway.
In an embodiment of the present invention, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
In an embodiment of the present invention, the network environment information includes received signal strength and signal-to-noise ratio of the Hello packet received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
As described above, the wireless frequency point management method and system of the present invention have the following beneficial effects:
(1) the terminal sends a Hello message to each channel group before sending the network access request, and the network server updates a network environment information table associated with the terminal under different gateways according to the Hello message and selects an optimal gateway to complete the network access of the terminal, so that the utilization rate of frequency point resources is effectively improved;
(2) the packet loss rate and the error rate of the wireless network are reduced;
(3) when the network environment of the gateway is supersaturated, a new gateway can be added in a new channel group, thereby ensuring the quality of wireless communication.
Drawings
Fig. 1 is a flowchart illustrating a wireless frequency point management method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a Hello packet according to the present invention;
fig. 3 is a flowchart illustrating a wireless frequency point management method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wireless frequency point management system according to the present invention;
FIG. 5 is a schematic diagram illustrating a sending process of a Hello packet according to the present invention;
fig. 6 is a schematic diagram illustrating a process of sending and responding a network access request message according to the present invention.
Description of the element reference numerals
1 terminal
2 gateway
3 network server
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention.
It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
As shown in table 2, in the LoRaWAN specification, 8 message types are defined. That is, the packet types are limited to the following eight types.
Table 2, 8 message types in the LoRaWAN specification
MType Description of the invention
000 Network-in (Join) request
001 Network in response
010 Uplink non-acknowledgement
011 Downlink non-acknowledgement
100 Uplink acknowledgement
101 Downlink acknowledgement
110 Retention
111 Private definitions
Wherein, the message type character Mtype is represented by 3 bits.
Referring to fig. 1, the wireless frequency point management method of the present invention is applied to a LoRaWAN network including a terminal, a gateway, and a network server.
Specifically, the management method includes the steps of:
step S11, after the terminal is powered on, a frequency point is randomly selected from each channel group to send out a Hello message.
Specifically, the Hello message is defined as a network environment probe message, i.e., for probing a network environment. In the invention, the Hello message is realized by using the private definition message corresponding to the message type 111.
As shown in fig. 2, the length of the content of the Hello packet is 16 bytes, and the first 8 bytes are AppEUI, which indicates the application identifier; the last 8 bytes are DevEUI, indicating the terminal identity.
It should be noted that, the terminal used in the present invention needs to support the full frequency band, and support all channel groups in the full frequency band. For example, in china, a terminal needs to support a 470 frequency band in china and support 12 channel groups in the 470 frequency band. Therefore, after the terminal is powered on, a Hello message is sent to a randomly selected frequency point in each channel in the 12 channel groups.
Preferably, the terminal sends Hello messages to a randomly selected frequency point in each channel group in sequence.
Step S12, after the network server receives the Hello message through the gateway, the terminal selects the frequency point which sends out the Hello message in the channel which receives the Hello message and sends out the network access request message.
The working mode of the gateway is a data transparent transmission mode. No matter what type of wireless message is received, the gateway reports to the network server. Similarly, when receiving the downlink message sent by the network server, the gateway also directly sends the downlink message to the terminal.
It should be noted that, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
Step S13, after receiving the network access response message sent by the network server through the optimal gateway, the terminal accesses the network through the optimal gateway; the optimal gateway is determined by the network server according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and the network environment information corresponding to the terminal is obtained by the network server according to the Hello messages from the terminal received by different gateways.
The network environment information includes Received Signal Strength (RSSI) and signal-to-noise ratio (SNR) of Hello messages received by different gateways. The network environment parameter is used as one of the judgment bases for allowing the terminal to access to which gateway.
After the terminal accesses the network, the terminal starts to send a service data message to the network server through the optimal gateway, and normal periodic service data reporting is carried out. After the terminal successfully accesses the network, the terminal only works in the channel group where the optimal gateway is located.
Specifically, after receiving a Hello packet of a terminal via a gateway, a network server updates network environment information corresponding to the terminal under the gateway according to a terminal identifier in the Hello packet and wireless parameter information of the Hello packet, but does not respond to the Hello packet of the terminal; and after receiving a network access request message sent by the terminal through the gateway, selecting an optimal gateway to respond to the network access request message according to the previously stored network environment information under different gateways and the resource occupancy rates of all the gateways in the coverage area of the terminal, such as CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate. And when the terminal receives the network access response message from the optimal gateway selected by the network server, the terminal works in the channel group where the optimal gateway is located, and then the terminal uploads the service data through the optimal gateway.
Referring to fig. 3, the wireless frequency point management method of the present invention is applied to a LoRaWAN network including a terminal, a gateway, and a network server.
Specifically, the management method includes the steps of:
step S21, after the terminal is powered on, a frequency point is randomly selected from each channel group to send out a Hello message.
Specifically, the Hello message is defined as a network environment probe message, i.e., for probing a network environment. In the invention, the Hello message is realized by using the private definition message corresponding to the message type 111.
As shown in fig. 2, the length of the content of the Hello packet is 16 bytes, and the first 8 bytes are AppEUI, which indicates the application identifier; the last 8 bytes are DevEUI, indicating the terminal identity.
It should be noted that, the terminal used in the present invention needs to support the full frequency band, and support all channel groups in the full frequency band. For example, in china, a terminal needs to support a 470 frequency band in china and support 12 channel groups in the 470 frequency band. Therefore, after the terminal is powered on, a Hello message is sent to a randomly selected frequency point in each channel in the 12 channel groups.
Preferably, the terminal sends Hello messages to a randomly selected frequency point in each channel group in sequence.
Step S22, the network server receives the Hello packet through different gateways, and updates the network environment information corresponding to the terminal according to the Hello packet received by the different gateways.
The network environment information includes Received Signal Strength (RSSI) and signal-to-noise ratio (SNR) of Hello messages received by different gateways. The network environment parameter is used as one of the judgment bases for allowing the terminal to access to which gateway.
The working mode of the gateway is a data transparent transmission mode. No matter what type of wireless message is received, the gateway reports to the network server. Similarly, when receiving the downlink message sent by the network server, the gateway also directly sends the downlink message to the terminal.
It should be noted that, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
Specifically, after receiving a Hello packet of a terminal via a gateway, the network server updates network environment information corresponding to the terminal under the gateway according to a terminal identifier in the Hello packet and wireless parameter information of the Hello packet, but does not respond to the Hello packet of the terminal.
And step S23, the terminal selects the frequency point which sends the Hello message in the channel which receives the Hello message to send a network access request message.
And step S24, after receiving the network access request message of the terminal through different gateways, the network server determines the optimal gateway according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and sends a network access response message to the terminal through the optimal gateway.
Specifically, after receiving a network access request message sent by a terminal, a network server selects an optimal gateway to respond to the network access request message according to previously stored network environment information and resource occupancy rates of gateways in a coverage area of the terminal, such as CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
And step S25, the terminal accesses the network through the optimal gateway to upload the service data message.
Specifically, after the terminal accesses the network, the terminal starts to send a service data message to the network server through the optimal gateway, and normal periodic service data reporting is performed. After the terminal successfully accesses the network, the terminal only works in the channel group where the optimal gateway is located.
Preferably, the method further comprises the following steps: and when the resource occupancy rate of the current optimal gateway reaches a preset critical value, adding a gateway in the new channel group.
As more and more terminals are accessed, the resource occupancy rate of the current optimal gateway is lower and lower. When the resource occupancy reaches a preset critical value, a gateway working in a new channel group needs to be added. After the gateway is added, if a new terminal accesses the network, the network server automatically adjusts the terminal to work in a new channel group without making the original access environment worse and worse, thereby reducing the packet loss rate and the error rate of the wireless network.
Referring to fig. 4, the wireless frequency point management system of the present invention is applied to a LoRaWAN network, and includes a terminal 1, a gateway 2, and a network server 3.
The terminal 1 is used for randomly selecting a frequency point in each channel group to send out a Hello message after being electrified; after the network server receives the Hello message, selecting a frequency point for sending the Hello message from a channel for receiving the Hello message and sending a network access request message; and after receiving the network access response message sent by the network server through the optimal gateway, accessing the network through the optimal gateway.
Specifically, the Hello message is defined as a network environment probe message, i.e., for probing a network environment. In the invention, the Hello message is realized by using the private definition message corresponding to the message type 111.
As shown in fig. 2, the length of the content of the Hello packet is 16 bytes, and the first 8 bytes are AppEUI, which indicates the application identifier; the last 8 bytes are DevEUI, indicating the terminal identity.
It should be noted that, the terminal used in the present invention needs to support the full frequency band, and support all channel groups in the full frequency band. For example, in china, a terminal needs to support a 470 frequency band in china and support 12 channel groups in the 470 frequency band. Therefore, after the terminal is powered on, a Hello message is sent to a randomly selected frequency point in each channel in the 12 channel groups.
Preferably, the terminal sends Hello messages to a randomly selected frequency point in each channel group in sequence.
It should be noted that, if a gateway of a channel group in which a randomly selected frequency point in each channel group is located exists, the gateway receives the Hello packet and forwards the Hello packet to the network server; if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
Specifically, after the terminal accesses the network, the terminal starts to send a service data message to the network server through the optimal gateway, and normal periodic service data reporting is performed. After the terminal successfully accesses the network, the terminal only works in the channel group where the optimal gateway is located.
The gateway 2 is used for transmitting messages between the terminal and the network server.
The working mode of the gateway is a data transparent transmission mode. No matter what type of wireless message is received, the gateway reports to the network server. Similarly, when receiving the downlink message sent by the network server, the gateway also directly sends the downlink message to the terminal.
The network server 3 is used for receiving a Hello message sent by the terminal through the gateway and updating the network environment information corresponding to the terminal according to the Hello message; and receiving a network access request message of the terminal through the gateway, determining an optimal gateway according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and sending a network access response message to the terminal through the optimal gateway.
The network environment information includes Received Signal Strength (RSSI) and signal-to-noise ratio (SNR) of Hello messages received by different gateways. The network environment parameter is used as one of the judgment bases for allowing the terminal to access to which gateway.
Specifically, after receiving a Hello packet of a terminal via a gateway, a network server updates network environment information corresponding to the terminal under the gateway according to a terminal identifier in the Hello packet and wireless parameter information of the Hello packet, but does not respond to the Hello packet of the terminal; and after receiving a network access request message sent by the terminal through the gateway, selecting an optimal gateway to respond to the network access request message according to the previously stored network environment information under different gateways and the resource occupancy rates of all the gateways in the coverage area of the terminal, such as CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate. And when the terminal receives the network access response message from the optimal gateway selected by the network server, the terminal works in the channel group where the optimal gateway is located, and then the terminal uploads the service data through the optimal gateway.
Preferably, the network server is further configured to prompt that a gateway is added to the new channel group when the resource occupancy rate of the current optimal gateway reaches a preset critical value.
As more and more terminals are accessed, the resource occupancy rate of the current optimal gateway is lower and lower. When the resource occupancy reaches a preset critical value, a gateway working in a new channel group needs to be added. After the gateway is added, if a new terminal accesses the network, the network server automatically adjusts the terminal to work in a new channel group without making the original access environment worse and worse, thereby reducing the packet loss rate and the error rate of the wireless network.
The following further describes the wireless frequency point management method according to the present invention by using specific embodiments. This embodiment is implemented for the frequency band 470 in china.
In a network environment, there are gateway a, gateway B, gateway C, gateway D, and gateway E, which operate in different channel groups, and possibly the same channel group. Assume that gateway a operates in the first channel group, gateway B operates in the second channel group, and so on, and gateway E operates in the 5 th channel group. As shown in fig. 5, the terminal randomly selects a frequency point from 12 channel groups, sequentially sends out Hello packets, and forwards the Hello packets to the network server after receiving the Hello packets by the gateway supporting the channel group in which the frequency point is located. If the gateway supporting the frequency point does not exist, the Hello message cannot be received, and no processing is performed.
The gateway server receives the Hello messages reported by the gateways A, B, C, D and E, records the network environment information including Received Signal Strength (RSSI) and signal-to-noise ratio (SNR) when the Hello messages are reported, and stores the parameters into a network environment information table.
And after the terminal finishes sending the Hello message to all the channel groups, selecting the frequency point sending the Hello message from the channels receiving the Hello message in sequence and sending the network access request message. And after receiving the network access request message, the network server selects the optimal gateway and only responds to the network access request message reported from the optimal gateway. The network server comprehensively calculates to obtain an optimal gateway according to the network environment information corresponding to the terminal and the resource occupancy rates of all gateways in the coverage area of the terminal, including the CPU occupancy rate, the memory occupancy rate and the channel capacity occupancy rate, so that the network resource utilization rate is ensured to be kept balanced.
As shown in fig. 6, it is obtained that the gateway B is the optimal gateway according to the current network condition. Therefore, the gateway B sends out a network access response message, and after the terminal receives the network access response message, the terminal accesses the network through the gateway B and begins to report the service data message.
As more and more terminals are accessed, the resource occupancy rate of the current optimal gateway is lower, and when the resource occupancy rate is close to the preset critical value, it is necessary to add a gateway operating in a new channel group, for example, add a gateway F, which operates in the channel group 6. Therefore, if a new terminal is accessed, the terminal can automatically adjust the channel group 6 to work in, and the original access environment is not worse and worse, so that the packet loss rate and the error rate of the wireless network are reduced.
In summary, the terminal of the wireless frequency point management method and system of the present invention sends a Hello packet to each channel group before sending a network access request, and the network server updates the network environment information table associated with the terminal under different gateways according to the Hello packet and selects an optimal gateway to complete the network access of the terminal, thereby effectively improving the utilization rate of frequency point resources; the packet loss rate and the error rate of the wireless network are reduced; when the network environment of the gateway is supersaturated, a new gateway can be added in a new channel group, thereby ensuring the quality of wireless communication. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (7)

1. A wireless frequency point management method is characterized in that: the method is applied to a LoRaWAN network, wherein the LoRaWAN network comprises a terminal, a gateway and a network server;
the management method comprises the following steps:
after the terminal is powered on, randomly selecting a frequency point in each channel group to send out a Hello message;
after a network server receives a Hello message through a gateway, a terminal selects a frequency point for sending the Hello message from a channel for receiving the Hello message and sends a network access request message;
after receiving a network access response message sent by a network server through an optimal gateway, a terminal accesses the network through the optimal gateway; the optimal gateway is determined by the network server according to the network environment information corresponding to the terminal and the resource occupancy rate of each gateway in the coverage area of the terminal, and the network environment information corresponding to the terminal is obtained by the network server according to Hello messages from the terminal received by different gateways;
if the gateway of the channel group where the randomly selected frequency point in each channel group is located exists, the gateway receives the Hello message and forwards the Hello message to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
2. The wireless frequency point management method according to claim 1, wherein: the network environment information comprises received signal strength and signal-to-noise ratio of the Hello message received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
3. A wireless frequency point management method is characterized in that: the method is applied to a LoRaWAN network, wherein the LoRaWAN network comprises a terminal, a gateway and a network server;
the management method comprises the following steps:
after the terminal is powered on, randomly selecting a frequency point in each channel group to send out a Hello message;
the network server receives the Hello message through different gateways, and updates the network environment information corresponding to the terminal according to the Hello message received by the different gateways;
the terminal selects a frequency point for sending the Hello message from a channel for receiving the Hello message and sends a network access request message;
the network server receives network access request messages of the terminal through different gateways, determines an optimal gateway according to network environment information corresponding to the terminal and resource occupancy rates of the gateways in a coverage area of the terminal, and sends a network access response message to the terminal through the optimal gateway;
the terminal accesses the network through the optimal gateway to upload the service data message;
if the gateway of the channel group where the randomly selected frequency point in each channel group is located exists, the gateway receives the Hello message and forwards the Hello message to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
4. The wireless frequency point management method according to claim 3, wherein: further comprising: and when the resource occupancy rate of the current optimal gateway reaches a preset critical value, adding a gateway in the new channel group.
5. The wireless frequency point management method according to claim 3, wherein: the network environment information comprises received signal strength and signal-to-noise ratio of the Hello message received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
6. A wireless frequency point management system is characterized in that: the method is applied to a LoRaWAN network and comprises a terminal, a gateway and a network server;
the terminal is used for randomly selecting one frequency point in each channel group to send out a Hello message after being electrified; after the network server receives the Hello message, selecting a frequency point for sending the Hello message from a channel for receiving the Hello message and sending a network access request message; after receiving a network access response message sent by the network server through the optimal gateway, accessing the network through the optimal gateway;
the gateway is used for transmitting messages between the terminal and the network server;
the network server is used for receiving the Hello message sent by the terminal through the gateway and updating the network environment information corresponding to the terminal according to the Hello message; receiving a network access request message of the terminal through the gateway, determining an optimal gateway according to network environment information corresponding to the terminal and resource occupancy rates of gateways in a coverage area of the terminal, and sending a network access response message to the terminal through the optimal gateway;
if the gateway of the channel group where the randomly selected frequency point in each channel group is located exists, the gateway receives the Hello message and forwards the Hello message to the network server; and if the gateway of the channel group where the randomly selected frequency point in each channel group is located does not exist, the Hello message cannot be received and is not processed.
7. The wireless frequency point management system according to claim 6, wherein: the network environment information comprises received signal strength and signal-to-noise ratio of the Hello message received by different gateways; the resource occupancy rate comprises CPU occupancy rate, memory occupancy rate and channel capacity occupancy rate.
CN201611195639.5A 2016-12-21 2016-12-21 Wireless frequency point management method and system Active CN108616904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611195639.5A CN108616904B (en) 2016-12-21 2016-12-21 Wireless frequency point management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611195639.5A CN108616904B (en) 2016-12-21 2016-12-21 Wireless frequency point management method and system

Publications (2)

Publication Number Publication Date
CN108616904A CN108616904A (en) 2018-10-02
CN108616904B true CN108616904B (en) 2021-07-02

Family

ID=63657865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611195639.5A Active CN108616904B (en) 2016-12-21 2016-12-21 Wireless frequency point management method and system

Country Status (1)

Country Link
CN (1) CN108616904B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412937B (en) * 2018-11-07 2021-01-01 京信通信系统(中国)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN109466590B (en) * 2018-11-13 2019-06-28 中南民族大学 The system and method that train position alarm is realized by the LoRa local area network of three channel builds
CN111465013A (en) * 2019-01-22 2020-07-28 阿里巴巴集团控股有限公司 Communication method of gateway and gateway
FR3095918B1 (en) * 2019-05-07 2021-04-23 Sagemcom Energy & Telecom Sas GATEWAY SELECTION PROCESS
CN110838991B (en) * 2019-11-05 2023-05-16 达闼机器人股份有限公司 Gateway connection method, device, storage medium, electronic equipment and gateway equipment
CN110972222B (en) * 2019-11-26 2021-12-10 武汉慧联无限科技有限公司 Downlink gateway selection method, device and computer storage medium
CN110690953B (en) * 2019-12-06 2020-04-24 武汉慧联无限科技有限公司 Downlink gateway selection method, device and computer storage medium
CN111741515B (en) * 2020-06-18 2022-08-09 大唐半导体科技有限公司 Gateway and terminal ad hoc network data transmission method based on LoRa technology
CN112165353A (en) * 2020-09-24 2021-01-01 天宸星通(深圳)科技有限公司 Satellite Internet of things terminal network access authentication method
CN113518411A (en) * 2021-04-14 2021-10-19 珠海派诺科技股份有限公司 Communication network access connection method of Internet of things equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453412A (en) * 2007-12-04 2009-06-10 华为技术有限公司 Method and apparatus for automatic topology discovery and resource management in PBB network
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN103442424A (en) * 2013-07-30 2013-12-11 鄢春娥 Method and system for synchronizing access node clock of synchronization Mesh network based on channel associated signaling
CN104994066A (en) * 2015-05-22 2015-10-21 杭州华三通信技术有限公司 Network access method and device
CN105357746A (en) * 2015-10-22 2016-02-24 武汉慧联无限科技有限公司 Two-hop wireless network architecture
US9467925B1 (en) * 2016-02-23 2016-10-11 King Fahd University Of Petroleum And Minerals Systems and methods for efficient routing during energy harvesting of wireless sensor networks
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453412A (en) * 2007-12-04 2009-06-10 华为技术有限公司 Method and apparatus for automatic topology discovery and resource management in PBB network
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same
CN103442424A (en) * 2013-07-30 2013-12-11 鄢春娥 Method and system for synchronizing access node clock of synchronization Mesh network based on channel associated signaling
CN104994066A (en) * 2015-05-22 2015-10-21 杭州华三通信技术有限公司 Network access method and device
CN105357746A (en) * 2015-10-22 2016-02-24 武汉慧联无限科技有限公司 Two-hop wireless network architecture
US9467925B1 (en) * 2016-02-23 2016-10-11 King Fahd University Of Petroleum And Minerals Systems and methods for efficient routing during energy harvesting of wireless sensor networks
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa

Also Published As

Publication number Publication date
CN108616904A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN108616904B (en) Wireless frequency point management method and system
US20200053544A1 (en) Beacon Management for Network Assisted Device-to-Device Communication
CN101217785B (en) Radio network, access point and client terminal apparatus of communication architecture
JP6158198B2 (en) System and method for fast initial network link setup
JP6073344B2 (en) System and method for fast initial network link setup
WO2021243580A1 (en) Method and apparatus for transmitting downlink positioning reference signal, and storage medium
JP5792395B2 (en) System and method for fast initial network link setup
JP5976823B2 (en) System and method for fast initial network link setup
US9654443B2 (en) Local device identity allocation for network assisted device-to-device D2D communication
US9386423B2 (en) Apparatus and methods for access identifier based multicast communication
JP6129862B2 (en) System and method for fast initial network link setup
JP2015501601A (en) System and method for fast initial network link setup
JP6430252B2 (en) System and method for fast initial network link setup
CN102625287A (en) Method for downloading mobile phone application software
CN110191440A (en) A kind of the discovery method, apparatus and system of D2D communication
JP2016505229A (en) Communication control method, user equipment, network server, and system
WO2020191586A1 (en) Random access method and device, and storage medium
WO2016074515A1 (en) Network node selection and activation method and apparatus
CN107645781B (en) Communication method, communication device, station and access point of wireless local area network
US20160316395A1 (en) Service query method, apparatus and system, and station
CN106792895B (en) method and equipment for determining size of data packet
CN106792429A (en) User equipment, base station and closely business unicast communication, resource regulating method
WO2014044118A1 (en) Method, apparatus and system for secondary system registering in database
CN110798884B (en) Terminal communication method and device
JP2018098699A (en) Communication control device, communication system, and communication method

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 8896, 315 Emei Road, Hongkou District, Shanghai 200080

Patentee after: SHANGHAI B-STAR TECHNOLOGY CO.,LTD.

Address before: 200336 4th and 8th floors, No.1158 Xiehe Road, Changning District, Changning District, Shanghai

Patentee before: SHANGHAI B-STAR TECHNOLOGY CO.,LTD.