CN108235404B - Method and system for realizing wireless network relay - Google Patents

Method and system for realizing wireless network relay Download PDF

Info

Publication number
CN108235404B
CN108235404B CN201611201890.8A CN201611201890A CN108235404B CN 108235404 B CN108235404 B CN 108235404B CN 201611201890 A CN201611201890 A CN 201611201890A CN 108235404 B CN108235404 B CN 108235404B
Authority
CN
China
Prior art keywords
downlink
terminal
receiving
module
time
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
CN201611201890.8A
Other languages
Chinese (zh)
Other versions
CN108235404A (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 CN201611201890.8A priority Critical patent/CN108235404B/en
Publication of CN108235404A publication Critical patent/CN108235404A/en
Application granted granted Critical
Publication of CN108235404B publication Critical patent/CN108235404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

A method and a system for realizing wireless network relay comprise: receiving a terminal access request at a fixed flag frequency point, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal, and establishing network response connection between a repeater and the terminal; receiving the terminal uplink data packet at the flag frequency point and recording the receiving time, sending the terminal uplink data packet to the gateway, waiting for receiving the gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time.

Description

Method and system for realizing wireless network relay
Technical Field
The present invention relates to a method and a system for implementing a wireless network relay, and more particularly, to a method and a system for implementing a wireless network relay.
Background
The relay in the traditional technology is a wireless technology which is applied to LoRa (Low Power Wide Area Network-LPWAN for short) in the method, has the characteristics of long distance, Low Power consumption, Low speed and Low cost, and is suitable for large-scale deployment. The coverage area may be a city or even a country, and the integration of collected data into a common data platform may be implemented. 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, so that the projects such as city management, social public management, industrial internet, development and consultation are facilitated.
The LoRaWAN Network architecture consists of three parts, including a terminal, a Gateway (Gateway) or called a base station, and a Network Server (NS for short). 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 interaction 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 a MAC layer is used. In The LoRaWAN specification, two terminal access modes are defined, which are Over-The-Air Activation (OTAA) and Activation By Personalisation (ABP), respectively. Under the OTAA mode, automatically generating NwkSKey (network Session Key) and ApSKey (application Session Key) according to DevNoce randomly generated by the terminal and AppNoce randomly generated by the network server; in ABP mode, fixed NwkSKey and AppSKey are used. Both modes have the characteristics, the OTAA has better safety, and the ABP has simpler access and use. In the LoRaWAN specification, A, B, C three transmission mechanism operation modes are defined, which we refer to as Class a, Class B, and Class C. In Class a mode, after finishing transmitting one uplink data, the terminal will open RX1 receiving window after waiting for RECEIVE _ DELAY1 time, if no data is received during RX1 receiving window, it will wait for 1 second and then open RX2 receiving window (RECEIVE _ DELAY2), and RECEIVE downlink data by opening two receiving windows after one uplink window, so it is required that the gateway must transmit data when the downlink window is opened, otherwise, it cannot RECEIVE data. In Class a, except for the time when the uplink and downlink windows are opened to transmit or receive data, other times are all in the sleep mode, so that the power consumption can be reduced to the maximum extent. The Class B mode is based on the Class A mode, and reports and sends Beacon messages periodically, so that after receiving the Beacon messages, the gateway can issue data in a corresponding receiving window. The Class C is based on the Class A, and the dormant time period of the terminal is all used for monitoring downlink data, so that a receiving window of the Class C is always opened, and the Class C is no longer low in power consumption in the mode and can only be used for applications with high real-time issuing configuration requirements.
According to LoRaWAN1.01 standard definition, 470 frequency band uplink frequency points of China area are 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., into 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.
The range of channels that can be received by each gateway is a channel group. The terminal and the gateway receive and send messages mutually, the terminal and the gateway are required to work in the same channel group, the terminal is supposed to work in the first channel, the frequency point range is 470.3-471.7, and when data is sent, one frequency point can be randomly selected from the terminal, and the frequency point range can be 470.3MHz, 470.5MHz, 470.7MHz, 470.9MHz, 471.1MHz, 471.3MHz, 471.5MHz and 471.7MHz respectively.
Because the LoRaWAN network terminal reports data in a wireless mode, under certain specific environments, such as basements and ventilation pipelines, wireless signals cannot be transmitted to a gateway due to shielding and interference; or the gateway cannot analyze the received signal after the signal is too weak and the noise is too large, and finally the data reporting fails. In this case, firstly, the wireless transmission power of the terminal and the gateway is increased, or the antenna gain is increased, but the two methods are only limited to the characteristics of the device itself and have certain limitations; secondly, by adding equipment. A gateway can be added in the blind spot area to cover the equipment in the blind spot area, but the network distribution cost is higher in the method; in addition, a relay is added in the blind spot area and is responsible for forwarding the terminal data in the blind spot area. The relay only performs data forwarding of the wireless terminal, and does not need too powerful functions, so the cost is much lower than that of the gateway.
When the relay equipment is realized, several problems mainly exist, firstly, because the normal terminal data reporting frequency point and the spreading factor can be random, but the frequency point and the spreading factor which are continuously received by the relay are fixed, the situation that the relay receiving frequency point is inconsistent with the terminal sending frequency point can occur, the relay does not receive the terminal data, and the relay function is not realized; secondly, when the terminal signal is in a state that the terminal signal may be received by the gateway or may not be received by the gateway, sometimes the network server receives two identical uplink packets in tandem, if the two same uplink packets are processed simultaneously, the two same downlink packets are replied, and thus the terminal receives the two same downlink packets, which may cause an abnormal service logic.
In summary, the prior art has the technical problems of a relay function defect caused by inconsistency of the relay and the terminal sending and receiving frequency points and abnormal data reporting service caused by uncertainty of data received by the network manager.
Disclosure of Invention
In view of the above shortcomings in the prior art, the present invention aims to provide a method and a system for implementing wireless network relay, including:
s1, receiving a terminal access request at a fixed flag frequency point, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal, and establishing network response connection between the repeater and the terminal;
s2, receiving the terminal uplink data packet at the flag frequency point and recording the receiving time, sending the terminal uplink data packet to the gateway, waiting for receiving the gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time.
In an embodiment of the present invention, the step S2 of receiving the uplink terminal packet at the flag frequency point and recording the receiving time, sending the uplink terminal packet to the gateway, waiting for receiving the downlink gateway data, adjusting the sending time of the downlink gateway data according to the extended terminal windowing time, and sending the downlink gateway data to the terminal within the sending time includes:
s21, forwarding the uplink data packet sent by the terminal and receiving the downlink response message;
s22, adjusting the downlink response message time of downlink transmission according to the windowing time of the terminal, so that the downlink response message time is less than the windowing time;
and S23, transmitting the downlink response message according to the downlink response message time.
In an embodiment of the present invention, a wireless network relay system includes: the network access request relay module and the uplink and downlink relay module; the network access request relay module is used for receiving a terminal access request, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal and establishing network response connection between the repeater and the terminal; and the uplink and downlink relay module is connected with the network access request relay module and used for receiving the terminal uplink data packet and recording the receiving time, sending the terminal uplink data packet to the gateway, waiting for receiving the gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time.
In an embodiment of the present invention, the uplink and downlink relay module includes: the system comprises a relay data forwarding module, a downlink transmission time processing module and a downlink transmission module; the relay data forwarding module is used for forwarding an uplink data packet sent by the terminal and receiving a downlink response message; the downlink transmission time processing module is connected with the relay data forwarding module and used for adjusting downlink response message time of downlink transmission according to the windowing time of the terminal when receiving the downlink response message, so that the downlink response message time is less than the windowing time; the downlink transmission module is connected with the downlink transmission time processing module and is used for downlink transmission of the downlink response message according to the downlink response message time.
In an embodiment of the present invention, a data transmission method implemented by a wireless network relay includes:
s1', sending a terminal access request to the repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater, and recording frequency points used for connection;
s2', using flag frequency point to send terminal up data packet, delaying window time of receiving window, receiving down response message in receiving window, and obtaining down data from down response message.
In an embodiment of the present invention, the step S1' of sending the terminal access request to the relay, receiving the gateway response message, and establishing the network response connection between the terminal and the relay includes:
s11' sends the terminal access request;
and S12', recording the frequency point when the access to the network is successful, wherein the frequency point is the flag frequency point of the repeater.
In an embodiment of the present invention, the step S2', sending the terminal uplink packet, delaying the windowing time of the receiving window, receiving the downlink response packet in the receiving window, and obtaining the downlink data from the downlink response packet, includes:
s21' sending uplink data packet at fixed rate by using flag frequency point;
s22' sets the first receiving window and the standby receiving window for receiving the downlink response message;
s23' judges whether the first receiving window receives the downlink response message;
s24' if not, delaying the starting time of the standby receiving window according to the preset logic and the requirement of responding to the message receiving time;
s25', opening a downlink response message receiving window according to the opening time;
s26' uses flag frequency point to receive the downlink response message in the downlink response receiving window;
s27' judges whether the downlink response message is received in the downlink response message receiving window;
s28' acquires the downlink data to finish the process of reporting the service data.
In an embodiment of the present invention, a terminal includes: the terminal network access module and the service data reporting module: the terminal network access module is used for sending a terminal access request to the repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater and recording frequency points used for connection; and the service data reporting module is connected with the service data reporting module and used for sending the terminal uplink data packet by using the flag frequency point, delaying the windowing time of a receiving window, receiving the downlink response message in the receiving window and acquiring the downlink data from the downlink response message.
In an embodiment of the present invention, the terminal network access module includes: the system comprises an access request module, a frequency point recording module and a connection failure module; the access request module is used for sending a terminal access request; the frequency point recording module is connected with the access request module and used for judging that the connection between the terminal and the repeater is successfully established and the network is successfully accessed when the connection is successful and recording the frequency point, wherein the frequency point is a flag frequency point of the repeater; the connection failure module is connected with the access request module and used for judging that the access network fails when the connection is unsuccessful.
In an embodiment of the present invention, the service data reporting module includes: the device comprises a data packet sending module, a receiving window setting module, a first window receiving judgment module, a windowing delay module, a window opening module, a message receiving module, a response judgment module and a downlink data acquisition module; a data packet sending module for sending uplink data packet at fixed rate by using flag frequency point; the receiving window setting module is used for setting a first receiving window and a standby receiving window; the first window receiving and judging module is used for judging whether the first receiving window receives the downlink response message or not; the window-opening delay module is used for delaying the opening time of the standby receiving window according to the preset logic and the receiving time requirement when the first receiving window does not receive the downlink response message; the window opening module is used for opening a downlink response message receiving window according to the opening time; the message receiving module is connected with the window opening module and used for receiving the downlink response message by using the flag frequency point in the downlink response receiving window; the response judging module is connected with the message receiving module and used for judging whether a downlink response message is received in a downlink response message receiving window or not; the downlink data acquisition module is connected with the message receiving module and used for acquiring downlink data and completing the service data reporting process when whether a downlink response message is received in a downlink response message receiving window.
As described above, the method and system for implementing wireless network relay provided by the present invention have the following beneficial effects: the relay equipment can be conveniently deployed, the data transparent transmission of the terminal can be realized only by starting the relay equipment, no specific configuration is needed, and the application and deployment are convenient. The technical problem that the relay function cannot be realized due to the fact that the relay receiving frequency point and the terminal sending frequency point are different caused by the fact that the random terminal data reporting frequency point and the spread spectrum factor, the frequency point continuously received by the relay and the spread spectrum factor are set to be fixed in the relay process in the traditional technology is solved. Meanwhile, the invention replies the technical problem that service logic abnormity is generated by two downlink packets after the network server receives two same uplink packets in front of and behind at the same time.
In conclusion, the invention solves the technical problems of the prior art that the relay function is not consistent with the sending and receiving frequency points of the terminal, and the data reporting service is abnormal due to the uncertainty of the data received by the network manager, and has more convenient deployment and use and strong reliability of the relay function.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a method for implementing a wireless network relay according to the present invention.
Fig. 2 is a diagram illustrating a specific relay forwarding step according to the present invention.
Fig. 3 is a schematic diagram of a wireless network relay system module according to the present invention.
Fig. 4 is a schematic diagram of an uplink and downlink relay module according to the present invention.
Fig. 5 is a schematic diagram illustrating steps of a data transmission method implemented by a wireless network relay according to the present invention.
Fig. 6 is a diagram illustrating relay transmission according to the present invention.
Fig. 7 is a schematic diagram illustrating a transmission frequency point determining step according to the present invention.
Fig. 8 is a schematic diagram illustrating uplink and downlink transmission steps of the terminal according to the present invention.
Fig. 9 is a schematic diagram of a terminal module according to the present invention.
Fig. 10 is a schematic diagram of a terminal network access module according to the present invention.
Fig. 11 is a schematic diagram of a service data reporting module according to the present invention.
Description of the element reference numerals
Wireless network relay system
11 network access request relay module
12 uplink and downlink relay module
121 relay data forwarding module
122 downlink transmission time processing module
123 downlink transmission module
2' a terminal
21' terminal network access module
22' service data reporting module
211' relay data forwarding module
212' downlink transmission time processing module
213' downlink transmission module
221' data packet sending module
222' receiving serial port setting module
223' first window receiving judgment module
224' windowing delay module
225' Window opening Module
226' message receiving module
227' response judging module
228' downlink data acquisition module
Description of step designations
FIGS. 1S 1-S2
FIGS. 2S 21-S23
FIGS. 5S 1 'to S2'
FIGS. 7S 11 'to S12'
FIGS. 8S 21 'to S28'
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure.
Referring to fig. 1 to 11, it should be understood that the structures shown in the drawings attached to the present specification are only used for matching with the contents disclosed in the specification to be known and read by those skilled in the art, and are not used to limit the limit conditions under which the present invention can be implemented, so that the present invention has no essential technical significance. In addition, the terms "upper", "lower", "left", "right", "middle" and "one" used in the present specification are for clarity of description, and are not intended to limit the scope of the present invention, and the relative relationship between the terms and the terms is not to be construed as a scope of the present invention.
Referring to fig. 1, a schematic diagram of steps of a method for implementing a wireless network relay according to the present invention is shown, as shown in fig. 1, the method for implementing a wireless network relay includes:
s1, receiving a terminal access request at a fixed flag frequency point, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal, and establishing network response connection between the repeater and the terminal; specifically, because the frequency points that the RXU continuously receives must be fixed, in the scheme of the present invention, the last frequency point in each channel group is used as the frequency point at which the RXU may work, and these two frequency points are referred to herein as flag frequency points. The 470 frequency bands in china have 12 flag frequency points (channel groups), and the RXU can work at any one of the frequency points. Since the signal in the blind spot area is weak, signal transmission is not necessarily guaranteed with a spreading factor at a higher rate, so RXU uses a fixed Spreading Factor (SF)12, i.e. the lowest rate approach. If the connection fails, a Join request message of a flag frequency point needs to be sent by SF12, and if a Join response message forwarded by a relay can be received, the connection can be successfully accessed, which indicates that the application of the relay to access the network is successful; if the Join response message is not received, it indicates that the Join fails in this round, or the relay device added in the current environment is not connected to the base station.
S2, receiving the terminal uplink data packet at the flag frequency point and recording the receiving time, sending the terminal uplink data packet to the gateway, waiting for receiving the gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time. When the terminal accesses the network, a frequency point is randomly selected from each channel group to send the Join request message, if the connection is successful, the network can directly reach the base station without passing through a repeater. Specifically, after the terminal is successfully accessed, two receiving windows are opened after the uplink data transmission is completed. After the relay transparent transmission data message is adopted, the receiving time of the original RX1 window cannot be ensured, and meanwhile, because the data transmission time cannot be estimated, the RX2 windowing of the terminal cannot be received.
Referring to fig. 2, which is a schematic diagram illustrating a specific relay forwarding step of the present invention, as shown in fig. 2, step S2 is to receive a terminal uplink packet and record a receiving time, send the terminal uplink packet to a gateway, wait to receive gateway downlink data, adjust a sending time of gateway downlink data according to an extended terminal windowing time, and send the gateway downlink data to a terminal within the sending time, including:
s21, forwarding the uplink data packet sent by the terminal and receiving the downlink response message, and relaying and forwarding the downlink response message in the fixed frequency point;
s22, adjusting the time of the downlink response message of downlink transmission according to the windowing time of the terminal, so that the time of the downlink response message is less than the windowing time, after receiving the downlink message, the repeater finely adjusts the downlink response message according to the appointed windowing time to adapt to the adjustment of the windowing time of the terminal, and then sends the downlink message;
and S23, downlink response messages are transmitted according to the downlink response message time, and after the downlink transmission time is finely adjusted, the downlink transmission messages can be received by the terminal within the windowing time of the terminal.
Referring to fig. 3, a schematic diagram of a wireless network relay system module according to the present invention is shown, and as shown in fig. 3, a wireless network relay system 1 includes: a network access request relay module 11 and an uplink and downlink relay module 12; a network access request relay module 11, configured to receive a terminal access request, forward the terminal access request to a gateway, receive gateway response information, send the gateway response information to the terminal, establish a network response connection between the relay and the terminal, and send a Join request to connect to a network according to a network access flow in the method; the repeater forwards the Join request after receiving the Join request; after being processed by the gateway and the network server, replying Join response; the relay receives the Join response and then forwards the Join response; and the terminal receives the Join response and then shows that the network access is completed. The uplink and downlink relay module 12 is connected to the network access request module, and is configured to receive a terminal uplink data packet, record receiving time, send the terminal uplink data packet to the gateway, and wait for receiving gateway downlink data; the relay forwards the uplink data after receiving the data and records the received time stamp; the gateway receives the data and forwards the data to a network server, and returns a data packet according to a normal processing flow; after receiving the downlink message, the repeater finely adjusts the windowing time according to the appointed windowing time so as to adapt to the adjustment of the windowing time of the terminal, and then sends the downlink message; and the terminal receives the downlink message during the period of opening the RX2 window to obtain downlink data, and the service data reporting process is completed.
Referring to fig. 4, a schematic diagram of an uplink and downlink relay module according to the present invention is shown, and as shown in fig. 4, the uplink and downlink relay module 12 includes: a relay data forwarding module 121, a downlink transmission time processing module 122, and a downlink transmission module 123; the relay data forwarding module 121 is configured to forward an uplink data packet sent by the terminal and receive a downlink response message, and start to report data after the terminal receives response information of the network access request message, where the uplink message and the downlink message are forwarded through a relay; the downlink transmission time processing module 122 is connected to the downlink transmission time processing module 121, and is configured to adjust downlink response message time of downlink transmission according to the windowing time of the terminal when receiving the downlink response message, so that the downlink response message time is less than the windowing time, adjust sending time of gateway downlink data according to the extended terminal windowing time, and send the gateway downlink data to the terminal within the sending time. The terminal sends an uplink data packet and opens a receiving window by adding 2 seconds DELAY to the RECEIVE _ DELAY 1; the downlink transmission module 123 is connected to the downlink transmission time processing module 122, and is configured to downlink transmit the downlink response packet according to the downlink response packet time, and the downlink transmission module 123 forwards the response data to the terminal in the windowing state according to the fine-tuned downlink time.
Referring to fig. 5 and fig. 6, a schematic step diagram and a relay transmission timing chart of a data transmission method implemented by a wireless network relay according to the present invention are shown, and as shown in fig. 5 and fig. 6, a data transmission method implemented by a wireless network relay includes:
s1', sending a terminal access request to the repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater, recording frequency points used for connection, and after the terminal successfully joins by using the flag frequency points, knowing that the current connection equipment is the repeater, and sending data by using the flag frequency points consistent with the relay RXU and the fixed rate SF12 when the following service data is reported;
s2', using flag frequency point to send terminal up data packet, delaying window time of receiving window, receiving down response message in receiving window, and obtaining down data from down response message. Let t0 be the time starting point, t1 be the transmission completion time of the data reported by the terminal, t2 be the windowing time of the terminal after receiving _ DELAY1, t3 be the time when RX1 RECEIVEs no data, the terminal turns on RX2, and t4 be the time when the terminal re-enters sleep. The relay timing should start from the end data transmission completion, t1 is the start time of the relay, t1 'is the data transmission time, and since the transmission time of the same data segment is the same at the time of transparent transmission, t1' -t 1-t 1-t 0; t2' is the time when the gateway issues the downlink data, and is also the time when the relay starts to receive the downlink data of the terminal; when there is downstream data, t4' is an unfixed time, because it cannot be predicted what the length of the downstream data the gateway replies to, and therefore cannot calculate what the space time of the data is. If reception at RX2 of the terminal is required, t4' < t3 is required to be satisfied.
Referring to fig. 7, which is a schematic diagram illustrating a transmission frequency point determining step of the present invention, as shown in fig. 7, step S1' includes sending a terminal access request to a repeater, receiving gateway response information, and establishing a network response connection between the terminal and the repeater, where the step includes:
s11', sending a terminal access request, wherein after the terminal sends a Join network access request message and establishes connection with the relay equipment, the terminal acquires the relay equipment;
s12', when the access to the network is successful, recording frequency points, wherein a frequency point is a flag frequency point of the repeater, and a frequency point continuously received by the RXU must be fixed. The 470 frequency bands in china have 12 flag frequency points (channel groups), and the RXU can work at any one of the frequency points. Since the signal in the blind spot region is weak, signal transmission may not be guaranteed with a spreading factor of a higher rate.
Referring to fig. 8, which is a schematic diagram illustrating a terminal uplink and downlink transmission step according to the present invention, as shown in fig. 8, step S2', sending a terminal uplink data packet, delaying a windowing time of a receiving window, receiving a downlink response packet in the receiving window, and obtaining downlink data from the downlink response packet includes:
s21', using flag frequency point to send up data packet at fixed speed, using flag frequency point as fixed frequency point of up and down transmission to determine frequency point of relay device. The terminal uses the fixed frequency point when reporting the service, and is unified with the fixed flag frequency point adopted by the repeater;
s22', setting a first receiving window and a standby receiving window for receiving the downlink response message, after the terminal is successfully accessed, starting two receiving windows after the uplink data is sent, and ensuring the service information in the downlink data packet to be received after the two receiving windows are in front of each other in time sequence;
s23', judging whether the first receiving window receives the downlink response message;
s24 ', if not, delaying the opening time of the standby RECEIVE window according to the preset logic and the request of the RECEIVE time of the response packet, assuming that the transmission time and T are both obtained, and according to the above diagram, T3 ═ T + RECEIVE _ DELAY2, T4 ═ 2T + RECEIVE _ DELAY1, so that the condition of T4' < T3 is that T <1, that is, the request data transmission time is less than 1 second;
s25', the terminal opens the downlink response packet receiving window according to the opening time, and actually, in SF12, the maximum transmission byte defined in the LoRaWAN specification is 52 bytes, and the SF12 time rate is 30 bytes per second, which indicates that the transmission requires 1.5 seconds at most. The use of RX2 directly may not receive packets in some cases;
s26', using flag frequency point to receive downlink response message in downlink response receiving window, because the terminal can obtain access network mode in Join process, namely relay access or base station access, the terminal can clearly distinguish two access modes. In the middle-continuing access, the terminal can prolong the time of RECEIVE _ DELAY1 by 2 seconds;
s27', judging whether receiving the downlink response message in the downlink response message receiving window; the receiving DELAY time corresponding to the terminal on the network server is also the value of RECEIVE _ DELAY1, so the gateway can send to the relay according to the original time point;
s28', acquiring downlink data, and completing the process of reporting service data; and correspondingly prolonging the time for sending the downlink data in reply according to the time reported by the terminal on the relay, and satisfying the condition that the inequality t4' < t3 is satisfied.
Referring to fig. 9, a schematic diagram of a terminal module according to the present invention is shown, and as shown in fig. 9, a terminal 2' includes: the terminal network access module 21 'and the service data reporting module 22': the terminal network access module 21' is used for sending a terminal access request to the repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater, and recording frequency points used for connection; the service data reporting module 22 'is connected to the terminal network access module 21' and configured to send a terminal uplink data packet using a flag frequency point, delay the windowing time of a receiving window, receive a downlink response packet in the receiving window, and obtain downlink data from the downlink response packet.
Referring to fig. 10, a schematic diagram of a terminal network access module according to the present invention is shown, and as shown in fig. 10, the terminal network access module 21' includes: an access request module 211 ', a frequency point recording module 212 ' and a connection failure module 213 '; an access request module 211' for sending a terminal access request; the frequency point recording module 212 ' is used for judging that the connection between the terminal and the repeater is successfully established and the network is successfully accessed and recording the frequency point when the connection is successful, and the frequency point recording module 212 ' is connected with the access request module 211 ', wherein the frequency point is a flag frequency point of the repeater; a connection failure module 213 'for determining that the access to the network fails when the connection is unsuccessful, wherein the connection failure module is connected to the frequency point recording module 212'.
Referring to fig. 11, a schematic diagram of a service data reporting module according to the present invention is shown, as shown in fig. 11, a service data reporting module 22' includes: a data packet sending module 221 ', a receiving window setting module 222', a first window receiving judging module 223 ', a windowing delay module 224', a window opening module 225 ', a message receiving module 226', a response judging module 227 'and a downlink data acquiring module 228'; a packet transmitting module 221' for transmitting an uplink packet at a fixed rate using a flag bin; a receiving window setting module 222 'for setting a first receiving window and a standby receiving window, wherein the receiving window setting module 222 is connected to the data packet sending module 221'; a first window receiving judgment module 223' for judging whether the first receiving window receives the downlink response message; a windowing delay module 224' configured to delay the opening time of the standby receiving window according to a preset logic and a receiving time requirement when the first receiving window does not receive the downlink response packet; a window opening module 225 ' for opening the downlink response message receiving window according to the opening time, the window opening module 225 ' and the windowing delay module 224 '; a message receiving module 226' for receiving the downlink response message using the flag frequency point in the downlink response receiving window; a response determining module 227 ' for determining whether a downlink response packet is received in the downlink response packet receiving window, wherein the corresponding determining module 227 ' is connected to the packet receiving module 226 '; a downlink data obtaining module 228 ' configured to obtain downlink data and complete a service data reporting process when a downlink response message is received in the downlink response message receiving window, where the downlink data obtaining module 228 ' is connected to the message receiving module 226 '.
In summary, the method and system for implementing wireless network relay provided by the present invention have the following beneficial effects: the technical problems that the relay function cannot be realized due to the fact that the relay receiving frequency point is different from the terminal sending frequency point and the service logic is abnormal due to the fact that two downlink packets are replied in the traditional technology are solved. The invention solves the technical problems of the prior art that the relay function is not consistent with the sending and receiving frequency points of the terminal, and the data reporting service is abnormal due to the uncertainty of the data received by the network manager, the deployment and the use are more convenient, and the reliability of the relay function is strong. Receiving a terminal uplink data packet and recording the receiving time, sending the terminal uplink data packet to a gateway, adjusting the sending time of gateway downlink data according to the extended terminal windowing time of the preset logic, and sending the gateway downlink data to the terminal within the sending time. The relay equipment can be conveniently deployed, the data transparent transmission of the terminal can be realized only by opening the relay equipment without specific configuration, and the method has high commercial value and practicability.

Claims (10)

1. A method for implementing wireless network relay is characterized by comprising the following steps:
in a low-power-consumption wide area network, receiving a terminal access request at a fixed flag frequency point, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal, and establishing network response connection between a repeater and the terminal;
and receiving a terminal uplink data packet at the flag frequency point and recording the receiving time, sending the terminal uplink data packet to a gateway, waiting for receiving gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time.
2. The method of claim 1, wherein receiving the uplink terminal data packet at the bang frequency point and recording the receiving time, sending the uplink terminal data packet to the gateway, waiting for receiving the downlink gateway data, adjusting the sending time of the downlink gateway data according to the extended terminal windowing time, and sending the downlink gateway data to the terminal within the sending time comprises:
forwarding an uplink data packet sent by a terminal and receiving a downlink response message;
adjusting the downlink response message time of downlink transmission according to the windowing time of the terminal, so that the downlink response message time is less than the windowing time;
and transmitting the downlink response message in a downlink mode according to the downlink response message time.
3. A wireless network relay system, comprising: the network access request relay module and the uplink and downlink relay module;
the network access request relay module is used for receiving a terminal access request, forwarding the terminal access request to a gateway, receiving gateway response information, sending the gateway response information to the terminal and establishing network response connection between the repeater and the terminal;
the uplink and downlink relay module is used for receiving a terminal uplink data packet and recording the receiving time, sending the terminal uplink data packet to a gateway, waiting for receiving gateway downlink data, adjusting the sending time of the gateway downlink data according to the prolonged terminal windowing time, and sending the gateway downlink data to the terminal within the sending time;
the wireless network is a low-power wide area network.
4. The system of claim 3, wherein the uplink and downlink relay module comprises: the system comprises a relay data forwarding module, a downlink transmission time processing module and a downlink transmission module;
the relay data forwarding module is used for forwarding an uplink data packet sent by the terminal and receiving a downlink response message;
the downlink transmission time processing module is used for adjusting the downlink response message time of downlink transmission according to the windowing time of the terminal when the downlink response message is received, so that the downlink response message time is less than the windowing time;
and the downlink transmission module is used for transmitting the downlink response message in a downlink mode according to the downlink response message time.
5. A data transmission method realized by wireless network relay is characterized by comprising the following steps:
in a low-power-consumption wide area network, sending a terminal access request to a repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater, and recording a frequency point used for connection, wherein the frequency point is a flag frequency point of the repeater;
and sending a terminal uplink data packet by using the flag frequency point, delaying the windowing time of a receiving window, receiving a downlink response message in the receiving window, and acquiring downlink data from the downlink response message.
6. The method of claim 5, wherein sending a terminal access request to the repeater, receiving a gateway response message, and establishing a network response connection between the terminal and the repeater comprises:
sending the terminal access request;
and recording the frequency point when the access network is successful, wherein the frequency point is the flag frequency point of the repeater.
7. The method according to claim 5 or 6, wherein the sending terminal uplink data packet delays a windowing time of a receiving window, receives a downlink response packet in the receiving window, and acquires downlink data from the downlink response packet, and the method comprises:
sending an uplink data packet at a fixed rate by using the flag frequency point;
setting a first receiving window and a standby receiving window for receiving the downlink response message;
judging whether the first receiving window receives the downlink response message or not;
if not, delaying the starting time of the standby receiving window according to the preset logic and the requirement of responding to the message receiving time;
opening the downlink response message receiving window according to the opening time;
receiving a downlink response message by using the flag frequency point in the downlink response receiving window;
judging whether the downlink response message is received in a downlink response message receiving window or not;
and acquiring downlink data and finishing the reporting process of the service data.
8. A low power consumption wide area network terminal, comprising: a terminal network access module and a service data reporting module;
the terminal network access module is used for sending a terminal access request to the repeater, receiving gateway response information, establishing network response connection between the terminal and the repeater, and recording a frequency point used for connection, wherein the frequency point is a flag frequency point of the repeater;
and the service data reporting module is used for sending a terminal uplink data packet by using the flag frequency point, delaying the windowing time of a receiving window, receiving a downlink response message in the receiving window and acquiring downlink data from the downlink response message.
9. The terminal of claim 8, wherein the terminal networking module comprises: the system comprises an access request module, a frequency point recording module and a connection failure module;
the access request module sends the terminal access request;
the frequency point recording module is used for judging that the connection between the terminal and the repeater is successfully established when the connection is successful, accessing the network successfully and recording the frequency point, wherein the frequency point is the flag frequency point of the repeater;
and the connection failure module is used for judging that the access network fails when the connection is unsuccessful.
10. The terminal according to claim 8 or 9, wherein the service data reporting module comprises: the device comprises a data packet sending module, a receiving window setting module, a first window receiving judgment module, a windowing delay module, a window opening module, a message receiving module, a response judgment module and a downlink data acquisition module;
the data packet sending module is used for sending an uplink data packet at a fixed rate by using the flag frequency point;
the receiving window setting module is used for setting a first receiving window and a standby receiving window;
the first window receiving and judging module is used for judging whether the first receiving window receives the downlink response message or not;
the windowing delay module is used for delaying the opening time of the standby receiving window according to the preset logic and the receiving time requirement when the first receiving window does not receive the downlink response message;
the window opening module is used for opening the downlink response message receiving window according to the opening time;
the message receiving module is used for receiving the downlink response message by using the flag frequency point in the downlink response receiving window;
the response judging module is used for judging whether the downlink response message is received in a downlink response message receiving window or not;
the downlink data acquisition module is used for acquiring downlink data when the downlink response message is received in the downlink response message receiving window, and completing the service data reporting process.
CN201611201890.8A 2016-12-22 2016-12-22 Method and system for realizing wireless network relay Active CN108235404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611201890.8A CN108235404B (en) 2016-12-22 2016-12-22 Method and system for realizing wireless network relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611201890.8A CN108235404B (en) 2016-12-22 2016-12-22 Method and system for realizing wireless network relay

Publications (2)

Publication Number Publication Date
CN108235404A CN108235404A (en) 2018-06-29
CN108235404B true CN108235404B (en) 2020-12-25

Family

ID=62657203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611201890.8A Active CN108235404B (en) 2016-12-22 2016-12-22 Method and system for realizing wireless network relay

Country Status (1)

Country Link
CN (1) CN108235404B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356175B (en) * 2018-12-20 2022-11-29 阿里巴巴集团控股有限公司 Data transmission method, device, equipment and storage medium
CN111356212B (en) * 2018-12-20 2022-11-29 阿里巴巴集团控股有限公司 Data transmission method, device, equipment and storage medium
CN111405549B (en) * 2019-01-03 2023-01-31 阿里巴巴集团控股有限公司 Communication method and device of terminal and base station
CN109839882B (en) * 2019-03-14 2023-07-21 无锡市公安局 Intelligent cloud control equipment case system
CN111835626B (en) * 2019-04-23 2023-03-03 深圳长城开发科技股份有限公司 LoRa communication method, loRa server gateway and readable storage medium
CN110049478B (en) * 2019-04-25 2021-11-02 新华三技术有限公司 Message transmission method, device, equipment and machine readable storage medium
CN112087399A (en) * 2019-06-12 2020-12-15 阿里巴巴集团控股有限公司 LoRa data transmission method, device, equipment and storage medium
CN110446227B (en) * 2019-10-08 2020-01-07 武汉慧联无限科技有限公司 Method, device, equipment and medium for controlling opening time of downlink window of terminal
CN110691375B (en) * 2019-12-10 2020-04-17 武汉慧联无限科技有限公司 Selection method, selection device and computer storage medium
CN111414255B (en) * 2020-03-24 2023-05-23 武汉慧联无限科技有限公司 Data issuing control method, device, equipment and computer storage medium
CN113507703B (en) * 2021-07-05 2022-06-24 中国人民解放军国防科技大学 LoRa multi-hop communication method and system for field rescue
CN113676860A (en) * 2021-07-28 2021-11-19 深圳市沃特沃德信息有限公司 Wearable device data transmission method and device based on LoRa and computer device
CN115119216B (en) * 2022-06-24 2024-05-14 深圳友讯达科技股份有限公司 LoRaWAN network communication method and system with constant power supply

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132564A (en) * 2006-08-25 2008-02-27 华为技术有限公司 Base station, relay station, wireless relay communication system and method thereof
CN201369724Y (en) * 2009-02-23 2009-12-23 深圳市尤利尔科技有限公司 Repeater and relay system
CN101754227A (en) * 2008-12-08 2010-06-23 华为技术有限公司 Method and device for frequency allocation of relay system
CN102461009A (en) * 2009-04-21 2012-05-16 安德鲁有限责任公司 System for automatic configuration of mobile communication system
CN104811948A (en) * 2014-01-24 2015-07-29 中国移动通信集团公司 Relay data processing method and apparatus
CN105338429A (en) * 2015-12-10 2016-02-17 南京正泽科技有限公司 Interphone voice frequency signal relay system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874477B2 (en) * 2005-10-04 2014-10-28 Steven Mark Hoffberg Multifactorial optimization system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132564A (en) * 2006-08-25 2008-02-27 华为技术有限公司 Base station, relay station, wireless relay communication system and method thereof
CN101754227A (en) * 2008-12-08 2010-06-23 华为技术有限公司 Method and device for frequency allocation of relay system
CN201369724Y (en) * 2009-02-23 2009-12-23 深圳市尤利尔科技有限公司 Repeater and relay system
CN102461009A (en) * 2009-04-21 2012-05-16 安德鲁有限责任公司 System for automatic configuration of mobile communication system
CN104811948A (en) * 2014-01-24 2015-07-29 中国移动通信集团公司 Relay data processing method and apparatus
CN105338429A (en) * 2015-12-10 2016-02-17 南京正泽科技有限公司 Interphone voice frequency signal relay system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LoRaWAN Specification;N.Sornin(Semtech),et al.;《LoRaWAN Alliance》;20150131;全文 *
基于LoRa的智能抄表系统设计与实现;赵太飞;《智能仪器与传感技术》;20160925;全文 *

Also Published As

Publication number Publication date
CN108235404A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108235404B (en) Method and system for realizing wireless network relay
CN107769834B (en) LoRaWAN Internet of things signal relay method
KR102195643B1 (en) Data transmission methods, devices and systems
US7058431B2 (en) End-to-end delay control method for both suppressing end-to-end delay time to a standard value or less and optimizing power-save operations
US8345587B2 (en) Relay station, base station and method for extending a coverage area of a base station in a radio network
WO2019105291A1 (en) Communication between terminal and base station, and network access method and apparatus for terminal
CN105594293A (en) Device to device (D2D) control information relay
CN112040463B (en) Wireless communication network networking method and system based on LoRa equipment
CN110557184B (en) Communication method and device based on relay equipment and communication method and device between terminal and base station
Sisinni et al. Enhanced flexible LoRaWAN node for industrial IoT
US20160014549A1 (en) Dual Mode RF System
CA2776709A1 (en) Communications system, apparatus and method
JP2015053593A (en) Radio communication system, and multi-hop radio communication method
CN110099452B (en) Communication method and related product
US8290497B2 (en) Mobile station apparatus and cell selecting method
CN111601319A (en) NBIoT-based mobile communication system and method
JP5174799B2 (en) Radio base station system and relay device
US9986412B2 (en) Discovery in a wireless communications system
CN111385869A (en) WiFi beacon receiving chip, terminal and WiFi positioning system
WO2022151275A1 (en) Wireless communication method, terminal device and network device
CN109561396B (en) Data transmission system for robot
JP2012222797A (en) Radio communication device, semiconductor device for communication, and communication method
EP3010261B1 (en) Method of message retransmission and user equipment using the same
CN110838931B (en) Method, apparatus and computer readable medium for automatic configuration in a communication system
CN112105040B (en) Wireless data communication method and system

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

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

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

Address before: 4 / F, 8 / F, 1158 Xiehe Road, Changning District, Shanghai, 200336

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

CP02 Change in the address of a patent holder