LoRaWAN multichannel-based data transmission method

文档序号:142888 发布日期:2021-10-22 浏览:43次 中文

阅读说明:本技术 一种基于LoRaWAN多通道的数据传输方法 (LoRaWAN multichannel-based data transmission method ) 是由 钟正迪 于 2020-04-16 设计创作,主要内容包括:本发明提供一种基于LoRaWAN多通道的数据传输方法,包括:接收并存储信息;所述信息包括上行信息及下行信息;若为上行信息,判断是否为有效上行信息;是,则转发所述有效上行信息;若为下行信息,辨别下行信息的类型,并对不同类型的所述下行信息进行相应处理。本发明使用统一的LoRaWAN协议,安装方便,布设灵活,也降低了材料成本、工程成本和维护成本;此外,本发明启用转发过滤方法,使本机转发出去不再接收,云平台上不出现多余重复数据,中继器处于正常工作,不会出现死机现象,极大地提高了转发效率。(The invention provides a LoRaWAN multichannel-based data transmission method, which comprises the following steps: receiving and storing information; the information comprises uplink information and downlink information; if the uplink information is valid, judging whether the uplink information is valid; if yes, forwarding the effective uplink information; and if the downlink information is the downlink information, identifying the type of the downlink information, and correspondingly processing the downlink information of different types. The invention uses the unified LoRaWAN protocol, is convenient to install and flexible to arrange, and also reduces the material cost, the engineering cost and the maintenance cost; in addition, the forwarding and filtering method is used, so that the local machine is forwarded and is not received any more, redundant repeated data does not appear on the cloud platform, the repeater works normally, the phenomenon of halt does not occur, and the forwarding efficiency is greatly improved.)

1. A data transmission method based on LoRaWAN multichannel is characterized by comprising the following steps:

receiving and storing information; the information comprises uplink information and downlink information;

if the uplink information is valid, judging whether the uplink information is valid;

if yes, forwarding the effective uplink information;

and if the downlink information is the downlink information, identifying the type of the downlink information, and correspondingly processing the downlink information of different types.

2. The LoRaWAN multichannel-based data transmission method according to claim 1, wherein the judgment criterion of the valid uplink information includes that CRC check of the valid uplink information is correct.

3. The LoRaWAN multichannel-based data transmission method according to claim 2, wherein the criterion for determining the valid uplink information further includes:

performing EUI identification on the information, judging whether the information is the information which is sent by the relay as an uplink, and if not, continuing;

caching and managing forwarded information at regular time, comparing the EUI and the information serial number of the information, judging whether the information is the information just forwarded by the repeater within preset time, and if not, continuing;

and comparing the EUI of the white list, judging whether the EUI is information sent by the relay in the white list as uplink, and if so, continuing.

4. The LoRaWAN multichannel-based data transmission method according to claim 1, wherein the corresponding processing of the different types of downlink information includes:

if the downlink information is the reply to the repeater, the repeater is decrypted and analyzed based on a LoRaWAN protocol, and if the command exists, the command is executed;

otherwise, judging whether the repeater just forwards the information.

5. The LoRaWAN multichannel-based data transmission method according to claim 4, wherein the corresponding processing of the different types of downlink information further includes: if the downlink information is the information just forwarded by the repeater, judging whether the downlink information is overtime; and forwarding without timeout.

6. A LoRaWAN-based multi-channel repeater, comprising:

the gateway module is used for receiving the uplink information and forwarding the downlink information meeting the forwarding condition;

the terminal module is used for receiving the downlink information and forwarding the effective uplink information;

the main controller is used for judging whether the uplink information is effective or not;

judging the type of downlink information, and carrying out corresponding processing on the downlink information of different types; the processing comprises judging whether the downlink information meets forwarding conditions;

and controlling the gateway module and the terminal module.

7. A LoRaWAN-based multichannel repeater according to claim 7, wherein: the gateway module comprises an SX1301 radio frequency unit.

8. A LoRaWAN-based multichannel repeater according to claim 7, wherein: the terminal module comprises an SX1278 radio frequency unit.

Technical Field

The invention relates to the technical field of wireless communication, in particular to a LoRaWAN multichannel-based data transmission method.

Background

LoRa is one of Low Power Wide Area Network (LPWAN) communication technologies, and is an ultra-long distance Low power consumption data transmission technology released by Semtech in 2013. In the past, before LPWAN was generated, there was only a trade-off between long distance and low power consumption, and the emergence of LoRa wireless technology changed the compromise between transmission distance and power consumption, and not only long distance transmission could be realized, but also the advantages of low power consumption and low cost were achieved.

The conventional LoRa gateway mainly returns data to the LoRaWAN network server through networks such as GPRS/3G/4G or a wired backbone network. When a large number of point-complementing sites need to be deployed, extra network operation cost is undoubtedly generated. In addition, when the LoRa gateway is deployed, the problem of signal blind areas such as GPRS/3G/4G and the like can be encountered.

The other type is a LoRa separated type Internet of things relay gateway system, wherein a receiving terminal and a sending terminal are distributed indoors and outdoors and connected through a wired RS 485. The split formula has the following limitations:

1. indoor and outdoor wiring connection is limited in many occasions, and material cost and engineering cost are increased;

2. the indoor and outdoor terminals respectively need independent power supplies, and equipment cost and maintenance cost are increased.

3. The indoor and outdoor signals must be isolated, otherwise the indoor receiving terminal receives the outdoor transmitting terminal signal, resulting in infinite loop transmission; due to the wide coverage of LoRa, complete isolation between indoor and outdoor is difficult.

4. When a plurality of adjacent repeaters need to be arranged, cross transceiving between the repeaters (the receiving end of the repeater A receives the signal sent by the repeater B) causes serious degradation of the system performance.

In addition, the existing LoRa repeater has the following technical problems:

problem 1, relay signal loop reception 1: referring to fig. 1, the terminal module of the repeater (or similar transceiver) transmits upstream as a LoRaWAN terminal, the gateway module of the repeater receives this information,

problem 2, relay signal loop reception 2: referring to fig. 2, a terminal module (or the similar transceiver) of the repeater forwards other LoRaWAN terminal uplink transmissions received by the repeater, and a gateway module (or the similar transceiver) of the repeater receives the information;

problem 3, signal multipath propagation relay backhaul 1: please refer to fig. 3, the uplink transmission signal of the LoRaWAN terminal is received from another repeater;

problem 4, signal multipath propagation relay backhaul 2: please refer to fig. 4, receiving other repeaters to forward other LoRaWAN terminal uplink transmission signals;

problem 5, signal multipath propagation relay backhaul 3: referring to fig. 5, uplink transmission signals forwarded by the repeater are received, where the uplink transmission signals are forwarded by other repeaters;

problem 6, multichannel receiving and multichannel sending of LoRaWAN repeater: referring to fig. 6, the information is easily lost due to unbalance.

Disclosure of Invention

In view of the above drawbacks of the prior art, the present invention provides a data transmission method based on LoRaWAN multiple channels, which is used to solve the problem that the GPRS/3G/4G or wired backbone network in the prior art encounters signal dead zones; and the traditional repeater has no forwarding and filtering functions, so that data are repeatedly forwarded, redundant repeated data appear on the cloud platform, and the repeater enters into a dead loop, so that the problem of dead halt is caused.

To achieve the above and other related objects, the present invention provides a data transmission method based on LoRaWAN multiple channels, including:

receiving and storing information; the information comprises uplink information and downlink information;

if the uplink information is valid, judging whether the uplink information is valid;

if yes, forwarding the effective uplink information;

and if the downlink information is the downlink information, identifying the type of the downlink information, and correspondingly processing the downlink information of different types.

In an embodiment of the present invention, the criterion of the valid uplink information includes that the CRC of the valid uplink information is correct.

In an embodiment of the present invention, the criterion for determining the valid uplink information further includes:

performing EUI identification on the information, judging whether the information is the information which is sent by the relay as an uplink, and if not, continuing;

caching and managing forwarded information at regular time, comparing the EUI and the information serial number of the information, judging whether the information is the information just forwarded by the repeater within preset time, and if not, continuing;

and comparing the EUI of the white list equipment, judging whether the equipment in the white list is used as uplink transmitted information, and if so, continuing.

In an embodiment of the present invention, the correspondingly processing the downlink information of different types includes:

if the downlink information is the reply to the repeater, the repeater is decrypted and analyzed based on a LoRaWAN protocol, and if the command exists, the command is executed;

otherwise, judging whether the repeater just forwards the information.

In an embodiment of the present invention, the correspondingly processing the downlink information of different types further includes: if the downlink information is the information just forwarded by the repeater, judging whether the downlink information is overtime; and forwarding without timeout.

The invention also provides a LoRaWAN-based multichannel repeater, which comprises:

the gateway module is used for receiving the uplink information and forwarding the downlink information meeting the forwarding condition;

the terminal module is used for receiving the downlink information and forwarding the effective uplink information;

the main controller is used for judging whether the uplink information is effective or not; judging the type of downlink information, and carrying out corresponding processing on the downlink information of different types; the processing comprises judging whether the downlink information meets forwarding conditions; and controlling the gateway module and the terminal module.

In an embodiment of the present invention, the gateway module includes an SX1301 radio frequency unit.

In an embodiment of the present invention, the terminal module includes an SX1278 rf unit.

As described above, the LoRaWAN multichannel-based data transmission method uses a unified LoRaWAN protocol, does not use GPRS/3G/4G and wired or wireless broadband connection, is convenient to install and flexible to arrange, and also reduces the material cost, the engineering cost and the maintenance cost; in addition, the LoRaWAN multi-channel repeater is adopted, a forwarding filtering method is started, the local repeater is forwarded and does not receive any more, redundant repeated data do not appear on the cloud platform, the LoRaWAN multi-channel repeater works normally, the phenomenon of crash does not occur, and the forwarding efficiency is greatly improved.

Drawings

Fig. 1 is a schematic diagram of signal trend of problem 1 in the prior art.

Fig. 2 is a schematic diagram of signal trend of problem 2 in the prior art.

Fig. 3 is a signal diagram illustrating problem 3 in the prior art.

Fig. 4 is a signal diagram illustrating problem 4 in the prior art.

FIG. 5 is a signal diagram illustrating problem 5 of the prior art.

FIG. 6 is a signal diagram illustrating problem 6 in the prior art.

Fig. 7 is a flowchart illustrating an overall data transmission method according to a first embodiment of the present invention.

FIG. 8 is a flowchart illustrating the determination of source identification according to the first embodiment of the present invention.

Fig. 9 is a flowchart illustrating a process for processing received downlink information according to a first embodiment of the present invention.

Fig. 10 is a block diagram showing the overall configuration in the second embodiment of the present invention.

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 is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.

It should be noted that the drawings provided in the following embodiments 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.

Referring to fig. 7, a first embodiment of the present invention relates to a data transmission method based on a LoRaWAN multi-channel repeater, including:

receiving and storing information; the information comprises uplink information and downlink information;

if the uplink information is valid, judging whether the uplink information is valid;

if yes, forwarding the effective uplink information;

and if the downlink information is the downlink information, identifying the type of the downlink information, and correspondingly processing the downlink information of different types.

Referring to fig. 8, the determination criterion of the valid uplink information includes that the CRC of the valid uplink information is correct;

the judgment criteria of the effective uplink information further include:

performing EUI identification on the information, judging whether the information is the information which is sent by the relay as an uplink, and if not, continuing;

caching and managing forwarded information at regular time, comparing the EUI and the information serial number of the information, judging whether the information is the information just forwarded by the repeater within preset time, and if not, continuing;

and comparing the EUI of the white list, judging whether the EUI is information sent by the relay in the white list as uplink, and if so, continuing.

Referring to fig. 9, the processing the received downlink information includes:

and judging whether the repeater is replied, if so, decrypting and analyzing based on a LoRaWAN protocol, and executing a command if so.

Otherwise, judging whether the repeater just forwards the information; if yes, judging whether the forwarding condition that the forwarded information is not overtime is met; if yes, the information is sent to the corresponding terminal.

Referring to fig. 10, a second embodiment of the present invention relates to a LoRaWAN-based multichannel repeater, including:

and the gateway module is used for contacting each LoRaWAN terminal, receiving the uplink information and forwarding the downlink information meeting the forwarding condition.

The terminal module is used for receiving the downlink information and forwarding the effective uplink information; and reporting the information of the repeater to an Internet of things management server at regular time.

It should be noted that the relay information includes a forwarding information accumulation number, a heartbeat packet, a device serial number, and a signal strength.

Further, after the repeater sends the information, the repeater waits for a preset time, and no matter whether the information is replied or not, the repeater does not process the information after exceeding the preset time.

The main controller is used for starting and controlling the whole repeater, analyzing, judging and scheduling information; judging whether the uplink information received by the gateway module is effective or not; judging the type of downlink information received by the terminal module, and correspondingly processing the downlink information of different types; the processing comprises judging whether the downlink information meets the forwarding condition; and controlling the gateway module and the terminal module.

In this embodiment, the gateway module adopts an SX1301 radio frequency unit, the terminal module adopts an SX1278 radio frequency unit, and the chip model adopted by the main controller is LPC 1754; in specific applications, users can also use other types of devices according to needs, and details are not repeated here.

In addition, the second embodiment of the invention also comprises a power supply module, wherein the power supply module is provided with an adapter, the input voltage range is 5V-12V direct current voltage, and the power consumption is 2.5W; the entire repeater is supplied with operating voltage.

In summary, the invention provides a data transmission method based on LoRaWAN multiple channels,

1. the unified LoRaWAN protocol is used, the GPRS/3G/4G and wired or wireless broadband connection is not used, the installation is convenient, the layout is flexible, and the material cost, the engineering cost and the maintenance cost are also reduced.

3. And terminal equipment EUI is adopted for identification and filtration, and the relay information is prevented from being forwarded. (against problem 1)

4. By caching the forwarded information at regular time, the forwarded information of the relay can be filtered (aiming at the problem 2), and repeated forwarding or even cyclic forwarding caused by relay forwarding (A-B-A) of adjacent relays can be filtered (aiming at the problem 5); the cached forwarded information is managed at regular time, so that the phenomenon that a certain LoRaWAN terminal repeatedly sends information due to resetting can be effectively avoided.

5. And setting a white list, and filtering information of other LoRaWAN terminals by using the white list to ensure that the centralized resources forward the information of the terminals in the white list. Filtering information uploaded by other non-whitelisted terminals or repeaters (for problem 3); other repeater-forwarded information received (for problem 4) may also be filtered.

6. The gateway module of the repeater receives the FIFO stack and transmits the FIFO stack (aiming at the problem 6) so as to solve the problem that the multichannel receiving of the gateway module is unbalanced with the single-channel transmitting of the terminal module, the forwarding information is not lost as far as possible, and the throughput of the whole system is improved.

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.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:NFC设备检测

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类