A kind of complicated transparent transmission relaying implementation methods of LoRaWAN
Technical field
The present invention relates to internet of things field, specifically, it is related to a kind of complicated transparent transmission relaying realization sides of LoRaWAN
Method.
Background technology
LoRa is a kind of low-power consumption of Semtech companies proposition, remote technology of Internet of things, is widely used in radio meter register
Deng field.LoRaWAN is using the low-power consumption of LoRa technique constructions, remote-wireless interconnection wide area network.LoRaWAN has benefited from spread spectrum and adjusted
The gain of system and forward error correction, LoRa obtains the communication distance of about 2 times of cellular technologies (mobile phone).
There is following defect in LoRaWAN long-distance transmissions:
1) in built-up complex environment, as the field of the space relative closures such as basement, closing darkroom, sewer
Institute, LoRa signals can not be covered preferably.
2) disposed in LoRaWAN wireless terminal devices under few environment, be these wireless terminal devices deployment gateway words,
More expenses can be spent, increase business burden, and gateway utilization rate is low, the wasting of resources.
The content of the invention
It is an object of the invention to overcome defect present in prior art, there is provided a kind of complicated transparent transmission relayings of LoRaWAN
Implementation method, using on a SX1278 radio frequency chip in Semtech companies using relaying by the way of, receive LoRaWAN without
Data, are then packaged and are sent to gateway by the upstream data of line terminal equipment, then receive the downlink data of gateway, clothes
Business device receives the data for parsing and determining whether after upstream data by relaying, then the downlink data by relaying is added
Enter information of relaying etc. to be packaged, then the data after encapsulation are issued into gateway, relaying is received will after downlink data
The data of FRMPayload parts are sent to wireless terminal device.For more preferable compatible original LoRaWAN networks, reduction pair
The upgrading of original LoRaWAN network equipments, the present invention proposes four kinds of prioritization schemes.
To realize above-mentioned technical purpose and the technique effect, its technical scheme is specially:
A kind of complicated transparent transmission relaying implementation methods of LoRaWAN, comprise the following steps:
Step 1. relaying search LoRaWAN networks, access LoRaWAN Network Captures to corresponding SF and frequency;
Step 2.LoRaWAN wireless terminal devices search for LoRaWAN network failures, finally the work in SF12,471.5MHZ
Make;
Step 3., which is relayed, to be received LoRaWAN wireless terminals in the way of CLASS_C in fixed SF12,471.5MHZ and sets
Standby upstream data;
Step 4. is relayed after the upstream data for receiving LoRaWAN wireless terminal devices, and the information such as the address of oneself are spliced
To data end to end, the data after processing are sent to by gateway with the SF and frequency that are linked into LoRaWAN networks;
Step 5. relaying is sent the data to after gateway, is started 2 seconds with the SF and frequency that are linked into LoRaWAN networks
Reception window;
Step 6. gateway is sent the data to after server, server parsing data, if the address containing relaying in data
Information is then the repeated data transmitted, and server does not do ADR, letter to the LoRaWAN wireless terminal devices by relaying
The MAC instruction such as road frequency and CLASS_B.
Step 7. server is fallen into the information such as relay address to downlink data and encapsulated twice, sends the data to net
Close, gateway sends the data to relaying again.
If step 8. relay reception parses data to after the downlink data of gateway, then with fixed SF12,471.5MHZ
FRMPayload in downlink data is sent to LoRaWAN wireless terminal devices.If relaying is not received by under gateway
Row data then receive time-out.
Relay and run with above-mentioned steps 3,4,5,6,7,8 after step 9..
Further, the LoRaWAN wireless terminal devices search preferential under other SF and frequency during net, fail when searching net
When fixed SF12,471.5MHZ is reused to search net.
Further, signal intensity of the LoRaWAN wireless terminal devices in access network, is periodically searched again
Rope network.
Further, the LoRaWAN wireless terminal devices search preferential under other SF and frequency during net, fail when searching net
When reuse fixed SF, frequency, the SF and frequency can be preferable other Radio Resources in current environment, be not only to exist
On SF12,471.5MHZ.
Further, the relaying is sent the data to after gateway, is started with the SF and frequency that are linked into LoRaWAN networks
The reception window of several seconds seconds, changing time window should be according to LoRa data transmission periods, network delay, speed of response of server
Adjusted Deng scene, not exclusively 2 seconds.
The invention has the advantages that:
1st, relaying of the invention is all transparent to LoRaWAN wireless terminal devices and gateway, is adapted to existing LoRaWAN
Equipment, it is only necessary to which upgrading is carried out to server.
2nd, the relaying in the present invention adapts to the environment of relative closure even without environment such as Ethernets.
3rd, the relay networking in the present invention is simple, and deployment is convenient.
4th, under the mode of operation relayed in the present invention, the data that server results in LoRaWAN wireless device terminals are whole
Individual transfer process, and signal environment, convenient optimization, maintenance in the future.
5th, the relaying in the present invention uses SX1278 radio frequency chips, and complete machine cost is more much lower than gateway.
Brief description of the drawings
Fig. 1 is the data transmission scheme of relaying;
Fig. 2 is the upstream data of relaying and the downlink data frame assumption diagram of server.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and examples
The present invention is further elaborated.
The present invention is connected to the original networks of LoRaWAN by the way of relaying searches net, in fixed SF12,471.5MHZ
The upstream data of middle reception LoRaWAN wireless terminal devices, the SF then obtained after networking and sends data to net in frequency
The downlink data of gateway is closed and obtained, then is set with sending data to LoRaWAN wireless terminals in fixed SF12,471.5MHZ
It is standby.
Relay data transmission flow is as follows:
1. relaying search LoRaWAN networks, access LoRaWAN Network Captures to corresponding SF and frequency;
2.LoRaWAN wireless terminal devices search for LoRaWAN network failures, are finally worked in SF12,471.5MHZ;
3. relaying receives LoRaWAN wireless terminal devices in fixed SF12,471.5MHZ in the way of CLASS_C
Upstream data.
4. relaying is received after the upstream data of LoRaWAN wireless terminal devices, the information such as the address of oneself are spliced to number
According to end to end, the data after processing are sent to by gateway with the SF and frequency that are linked into LoRaWAN networks.
5. relaying is sent the data to after gateway, started 2 seconds with the SF and frequency that are linked into LoRaWAN networks and connect
Receive window.
6. gateway is sent the data to after server, server parsing data, if the address information containing relaying in data
It is then the repeated data transmitted, server does not do ADR, channel frequency to the LoRaWAN wireless terminal devices by relaying
The MAC instruction such as rate and CLASS_B.
7. server is fallen into the information such as relay address to downlink data and encapsulated twice, gateway, net are sent the data to
Pass sends the data to relaying again.
8. if relay reception parses data to after the downlink data of gateway, then with fixed SF12,471.5MHZ will under
FRMPayload in row data is sent to LoRaWAN wireless terminal devices.If relaying is not received by the lower line number of gateway
According to then reception time-out.
9. relaying is run with above-mentioned flow 3,4,5,6,7,8 afterwards.
Because LoRaWAN wireless terminal devices and relaying are required for searching net, it is to avoid LoRaWAN wireless terminals that may be present
Equipment does not have access network and relaying load excessive.The probability of above-mentioned situation is reduced using four kinds of schemes:
1) LoRaWAN wireless terminal devices search preferential under other SF and frequency during net, are reused when searching net failure
Fixed SF12,471.5MHZ searches net.
2) signal intensity of the LoRaWAN wireless terminal devices in access network, periodically re-searches for network.
3) LoRaWAN wireless terminal devices search preferential under other SF and frequency during net, are reused when searching net failure
Fixed SF, frequency, the SF and frequency can be preferable other Radio Resources in current environment, be not only SF12,
471.5MHZ on.
4) relaying is sent the data to after gateway, is started several seconds seconds with the SF and frequency that are linked into LoRaWAN networks
Reception window, changing time window should do according to scenes such as LoRa data transmission periods, network delay, speed of response of server
Adjustment, not exclusively 2 seconds.
The foregoing is only a preferred embodiment of the present invention, protection scope of the present invention not limited to this, any ripe
Those skilled in the art are known in the technical scope of present disclosure, the letter for the technical scheme that can be become apparent to
Altered or equivalence replacement are each fallen within protection scope of the present invention.