CN109618292B - LORA wireless communication method, system, relay method and equipment - Google Patents

LORA wireless communication method, system, relay method and equipment Download PDF

Info

Publication number
CN109618292B
CN109618292B CN201811308081.6A CN201811308081A CN109618292B CN 109618292 B CN109618292 B CN 109618292B CN 201811308081 A CN201811308081 A CN 201811308081A CN 109618292 B CN109618292 B CN 109618292B
Authority
CN
China
Prior art keywords
data acquisition
equipment
slave
broadcast command
command
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
CN201811308081.6A
Other languages
Chinese (zh)
Other versions
CN109618292A (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.)
Zhuhai Pilot Technology Co ltd
Original Assignee
Zhuhai Pilot 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 Zhuhai Pilot Technology Co ltd filed Critical Zhuhai Pilot Technology Co ltd
Priority to CN201811308081.6A priority Critical patent/CN109618292B/en
Publication of CN109618292A publication Critical patent/CN109618292A/en
Application granted granted Critical
Publication of CN109618292B publication Critical patent/CN109618292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • H04B7/15507Relay station based processing for cell extension or control of coverage area

Landscapes

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

Abstract

The invention discloses a LORA wireless communication method, which comprises the following steps: the host broadcasts a data acquisition broadcast command; the slave machine or the relay equipment receives a data acquisition broadcast command sent by the host machine, and records an equipment SN number and a packet sequence number when the slave machine inquires that the slave machine address is the address of the slave machine; the relay equipment records the equipment SN number and the packet serial number in the data acquisition broadcasting command, reduces the survival time by one, and broadcasts the data acquisition broadcasting command when the current channel is idle; the relay equipment receives a data acquisition broadcast command sent by the broadcast of the upper-stage relay equipment, records the equipment SN number and the packet sequence number in the data acquisition broadcast command, and reduces the survival time by one. According to the invention, the relay equipment is arranged, so that the effective communication distance can be prolonged, and a channel collision detection method is adopted, so that channel monitoring is required, a plurality of equipment are prevented from sending the equipment at the same time, and the same frequency interference is avoided; the ID number of the slave machine does not need to be set in the relay equipment, and the access relay equipment is added seamlessly.

Description

LORA wireless communication method, system, relay method and equipment
Technical Field
The invention relates to the technical field of low-power-consumption long-distance wireless communication, in particular to a LORA wireless communication method, a LORA wireless communication system, a LORA wireless communication relay method and LORA wireless communication relay equipment.
Background
The lora (long range) is a wireless communication technology special for long-distance low power consumption, and a modulation mode based on spread spectrum greatly increases the communication distance compared with other communication modes, so that the method can be widely applied to the field of long-distance low-rate internet of things wireless communication in various occasions. Such as automatic meter reading, building automation equipment, wireless security systems, industrial monitoring and control, etc. The device has the characteristics of small volume, low power consumption, long transmission distance, strong anti-interference capability and the like.
However, the conventional solutions have the following drawbacks:
in practical application of LORA wireless communication, a master broadcasts a Modbus protocol format command with a device address to a slave for data acquisition through wireless communication, and the slave corresponding to the device address returns a response data packet. The host continuously broadcasts commands with different equipment addresses in a polling mode and collects data of the remote equipment one by one. The communication of the pure master computer to the slave computer is easy to occur, and the signal attenuation is poor due to factors such as obstacles, distance and the like, so that the communication requirement cannot be met. As shown in fig. 1, the slave a is blocked by an obstacle and cannot communicate with the master, and the slave B is too far away and cannot communicate with the master.
To solve the above problems, relay modules have been made in the industry to extend the communication distance. In the communication process, the acquisition equipment sends the wireless signal to the relay equipment, and the relay equipment forwards the signal to the acquired equipment at a farther position. Because the wireless signal adopts a broadcast mode, when the signal is relayed and forwarded, part of the signal does not need to pass through the relayed acquired equipment, and the response data is possibly sent at the moment, the same frequency interference occurs, so that the wireless signal cannot be correctly received. Although the relay mode can solve the problem of communication distance, the problem of signal receiving error caused by co-channel interference is also brought in.
In another relay mode in the industry, one or more slave device identification numbers to be relayed are configured in a relay module, and a data packet sent by a host includes a destination device identification number, so that the purpose of prolonging the communication distance is achieved. Although this relay system can extend the communication distance, the relay device needs to set the identification number of each slave device that has been relayed in advance, which is inconvenient for the site operation.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide an LORA wireless communication method, which can overcome the problems of co-channel interference, inconvenient field construction, etc.
The second objective of the present invention is to provide an LORA wireless communication system, which can overcome the problems of co-channel interference and inconvenient site construction.
The invention also aims to provide an LORA wireless communication relay method which can overcome the problems of same frequency interference, inconvenient field construction and the like.
The fourth purpose of the present invention is to provide an LORA wireless communication relay device, which can overcome the problems of co-frequency interference and inconvenient site construction.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method of LORA wireless communication, comprising the steps of:
a step of broadcasting commands: the host machine broadcasts a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises slave machine addresses, equipment SN numbers, packet sequence numbers and survival time;
receiving a broadcast command: the slave machine or the relay equipment receives a data acquisition broadcast command sent by the host machine, the slave machine inquires whether the address of the slave machine is the address of the slave machine, and if so, the SN number and the packet sequence number of the equipment in the data acquisition broadcast command are recorded; the relay equipment records the equipment SN number and the packet serial number in the data acquisition broadcasting command, reduces the survival time by one, and broadcasts the data acquisition broadcasting command when the current channel is idle;
a step of forwarding the broadcast command: the method comprises the steps that a relay device receives a data acquisition broadcast command sent by a previous-stage relay device in a broadcast mode, records a device SN number and a packet sequence number in the data acquisition broadcast command, reduces the survival time by one, and broadcasts the data acquisition broadcast command when the survival time is not 0 and a current channel is idle;
responding to the broadcast command step: the slave sends response data to the master or the relay, the relay forwards the response data from the slave to the master, and the response data comprises the slave address.
Further, the initial value of the survival time is the number of stages of the relay equipment needed from the master to the slave.
Further, the data protocol format of the data acquisition broadcast command is FE + ED + DC + device SN + packet sequence number + time to live + original command + CRC + CB.
The second purpose of the invention is realized by adopting the following technical scheme:
a LORA wireless communication system comprises a host, a relay device and a slave, wherein the host is connected with the relay device, and the slave is connected with the relay device or the host;
the host is used for broadcasting a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises a slave address, an equipment SN number, a packet sequence number and a survival time length, and is also used for receiving response data with the slave address;
the slave is used for receiving a data acquisition broadcast command sent by the host, inquiring whether the address of the slave is the address of the slave or not by the slave, if so, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, and sending response data to the host or the relay equipment;
the relay equipment is used for receiving a data acquisition broadcasting command sent by the host, recording an equipment SN number and a packet sequence number in the data acquisition broadcasting command, reducing the survival time by one, and broadcasting the data acquisition broadcasting command when the current channel is idle; the method comprises the steps that a data acquisition broadcasting command sent by the broadcasting of the upper-stage relay equipment is received, an equipment SN number and a packet sequence number in the data acquisition broadcasting command are recorded, the survival time is reduced by one, and the data acquisition broadcasting command is broadcasted when the survival time is not 0 and the current channel is idle; and forwards the response data with the slave address from the slave to the master.
Further, the initial value of the survival time is the number of stages of the relay equipment needed from the master to the slave.
The third purpose of the invention is realized by adopting the following technical scheme:
a relay method for LORA wireless communication comprises the following steps:
receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle;
a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
responding to the broadcast command step: and forwarding response data from the slave to the master, wherein the response data comprises the slave address.
Further, the initial value of the survival time is the number of stages of the relay equipment needed from the master to the slave.
Further, the data protocol format of the data acquisition broadcast command is FE + ED + DC + device SN + packet sequence number + time to live + original command + CRC + CB.
The fourth purpose of the invention is realized by adopting the following technical scheme:
a LORA wireless communication relay device comprising a processor and a memory having a computer readable program stored therein that is executable by the processor, the computer readable program when read by the processor implementing the steps of:
receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle;
a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
responding to the broadcast command step: and forwarding response data from the slave to the master, wherein the response data comprises the slave address.
Further, the initial value of the survival time is the number of stages of the relay equipment needed from the master to the slave.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the relay equipment is arranged, so that the effective communication distance can be prolonged, and a channel collision detection method is adopted, so that each wireless data transmission needs to be monitored, a plurality of equipment are prevented from transmitting the equipment at the same time, and the same frequency interference is avoided; the ID number of the slave machine does not need to be set in the relay equipment, configuration does not need to be added, and the access relay equipment can be added in a seamless mode.
Drawings
Fig. 1 is a schematic diagram of a conventional LORA wireless communication system;
FIG. 2 is a schematic diagram of a LORA wireless communication system of the present invention;
FIG. 3 is a flow chart of a LORA wireless communication method of the present invention;
fig. 4 is a flowchart of a LORA wireless communication relay method according to the present invention.
In the figure: 1. a host; 2. a slave; 3. a relay device.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
among power wireless communication technologies, LORA is a technology that is widely used. However, in practical applications, LORA is prone to be unable to meet communication requirements due to poor signal attenuation caused by obstacles, distances, and other factors.
The present invention provides an LORA wireless communication system including a master, a plurality of slaves, and a plurality of relay devices, and referring to fig. 2, includes a master 1, a slave 2, and a relay device 3. The host 1 is connected with the relay device 3, and the slave 2 is connected with the relay device 3 or the host 1;
the host 1 is used for broadcasting a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises slave addresses, equipment SN numbers, packet sequence numbers and survival durations, and is also used for receiving response data with the slave addresses; the slave machine 2 is used for receiving a data acquisition broadcast command sent by the host machine 1, inquiring whether the address of the slave machine is the address of the slave machine 2 or not by the slave machine 2, if so, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, and sending response data to the host machine 1 or the relay equipment 3; the relay device 3 is used for receiving a data acquisition broadcast command sent by the host 1, recording a device SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the current channel is idle; the data acquisition and broadcasting command broadcast by the upper-stage relay equipment 3 is received, the equipment SN number and the packet sequence number in the data acquisition and broadcasting command are recorded, the survival time is reduced by one, and when the survival time is not 0 and the current channel is idle, the data acquisition and broadcasting command is broadcast; and forwards the response data with the slave address from slave 2 to master 1.
The communication protocol packet of the invention contains the SN number of the device, the serial number of the packet and the time-to-live. The device SN number and the packet sequence number identify the uniqueness of the packet. The device SN number is the ID number of the device from which the data was originally sent, and is unique among all devices. The packet sequence number is automatically incremented each time each device sends out data. The survival time is a fixed value when the equipment sends data, the value is automatically reduced by one when the data is forwarded each time, and when the value of the survival time is 0, the data packet is not forwarded any more, so that the infinite forwarding among relays is avoided.
After the host 1 sends out a data acquisition broadcast command with a slave address, the invention has several conditions.
The first is that the slave 2 corresponding to the slave address is close to the master 1, and direct wireless communication is possible without passing through the relay device 3. And after receiving the data acquisition broadcast command, the slave machine 2 records the SN number and the packet sequence number of the equipment and returns a response command. After receiving the data acquisition broadcast command, the relay device 3 records the device SN number and the packet sequence number in the data packet, temporarily sleeps, monitors whether other communication exists in the current channel, and forwards the data packet when the channel is idle. At this time, after the slave 2 receives the data packet, since the slave 2 has recorded the device SN number and the packet sequence number of the data packet after receiving the data acquisition broadcast command for the first time, the data packet is not processed if the data packet is received again. After receiving the data acquisition broadcast command forwarded by the relay device 3, the host 1 finds that the SN number of the device is local and does not process the SN number. And after receiving the data acquisition broadcast command, the other slave machines 2 find that the address is inconsistent with the slave machine address, namely, the slave machines are not target machines and are not processed.
The second case is that the slave 2 corresponding to the slave address needs to pass through one relay device 3. After the host 1 sends out a data acquisition broadcast command, after the slave machines 2 close to the host 1 receive the data acquisition broadcast command, data without response returns, and after the relay equipment 3 receives the data acquisition broadcast command, the SN number and the packet sequence number of the data packet are recorded, the data packet is temporarily dormant, whether other communication exists in the current channel is monitored, and when the channel is idle, the data packet is forwarded. When the corresponding slave 2 receives the data packet, it returns response data. After receiving the response data, the relay device 3 forwards the response data in the same manner, and the host 1 receives the response data to complete the whole communication process.
The third situation is that the data packet from the host 1 needs to pass through the multi-stage relay device 3 between the host 1 and the target slave 2, the first-stage relay device 3 forwards the data packet from the host 1 to the second-stage relay device 3, and the data packet forwarded by the second-stage relay device 3 can also be received by the first-stage relay device 3, and at this time, the first-stage relay device 3 already records the device SN number and the packet sequence number of the data packet, so that it can be judged that the data has been processed before and is not processed any more. The number of stages of the relay device 3 is determined by the time-to-live of the data packet, the time-to-live is reduced by one every time the data packet is forwarded, and the initial value of the time-to-live is the number of stages of the relay device 3.
The host 1 continuously broadcasts commands with different equipment addresses in a polling mode to acquire data of the slave 2 one by one.
According to the invention, by arranging the relay equipment 3, the effective communication distance can be prolonged, the problem of some isolated points in LORA communication is solved, and a channel conflict detection method is adopted, so that each wireless data is required to be monitored when being transmitted, a plurality of equipment are prevented from transmitting the equipment at the same time, and the same frequency interference is avoided; the ID number of the slave machine does not need to be set in the relay equipment 3, configuration does not need to be added, and the access relay equipment 3 can be added in a seamless mode.
Data protocol format FE + ED + DC + device SN + packet sequence number + time to live + original command + CRC + CB of data acquisition broadcast command, refer to table 1:
serial number Content providing method and apparatus Number of bytes Description of the invention
1 FE 1 Fixed command format
2 ED 1 Fixed command format
3 DC 1 Fixed command format
4 Device SN 4 SN number of relay module
5 Serial number 2 Data packet sequence number
6 Length of life 1 Packet lifetime
7 Original command N The wireless module receives the original command of the host
8 CRC 1 Checksum
9 CB 1 Fixed command format
TABLE 1
Corresponding to the LORA wireless communication system provided by the present invention, the present invention may further provide an LORA wireless communication method, referring to fig. 3, including the following steps;
s101: the host machine broadcasts a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises slave machine addresses, equipment SN numbers, packet sequence numbers and survival time;
s102: the slave machine or the relay equipment receives a data acquisition broadcast command sent by the host machine, the slave machine inquires whether the address of the slave machine is the address of the slave machine, and if so, the SN number and the packet sequence number of the equipment in the data acquisition broadcast command are recorded; the relay equipment records the equipment SN number and the packet serial number in the data acquisition broadcasting command, reduces the survival time by one, and broadcasts the data acquisition broadcasting command when the current channel is idle;
s103: the method comprises the steps that a relay device receives a data acquisition broadcast command sent by a previous-stage relay device in a broadcast mode, records a device SN number and a packet sequence number in the data acquisition broadcast command, reduces the survival time by one, and broadcasts the data acquisition broadcast command when the survival time is not 0 and a current channel is idle;
s104: the slave sends response data to the master or the relay, the relay forwards the response data from the slave to the master, and the response data comprises the slave address.
The initial value of the survival time is the number of stages of the relay equipment needed from the host to the slave.
Correspondingly, the data protocol format of the data acquisition and broadcast command in this embodiment is FE + ED + DC + device SN + packet sequence number + time to live + original command + CRC + CB.
In addition, an embodiment of the present invention further provides a relay method for LORA wireless communication, as shown in fig. 4, including the following steps:
s201: receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle;
s202: a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
s203: responding to the broadcast command step: and forwarding response data from the slave to the master, wherein the response data comprises the slave address.
In the LORA wireless communication relay method, an initial value of a lifetime is the number of stages of relay devices required between a master and a slave. The data protocol format of the data acquisition broadcast command is FE + ED + DC + equipment SN + packet sequence number + time-to-live + original command + CRC + CB.
An embodiment of the present invention further provides a LORA wireless communication relay device, including a processor and a memory, where the memory stores a computer readable program executable by the processor, and when the computer readable program is read and executed by the processor, the following steps are implemented:
receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle;
a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
responding to the broadcast command step: and forwarding response data from the slave to the master, wherein the response data comprises the slave address.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for an internet based form design system, with various interfaces and lines connecting the various parts of an internet based form design system.
The memory may be used to store computer programs and/or modules, and the processor may be configured to implement the various functions of an internet-based form design system by executing or otherwise executing the computer programs and/or modules stored in the memory and by invoking the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
All or part of the flow of the method for implementing the embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and executed by a processor, to implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (4)

1. A method of LORA wireless communication, comprising:
a step of broadcasting commands: the host machine broadcasts a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises slave machine addresses, equipment SN numbers, packet sequence numbers and survival time;
receiving a broadcast command: the slave machine or the relay equipment receives a data acquisition broadcast command sent by the host machine, the slave machine inquires whether the address of the slave machine is the address of the slave machine, and if so, the SN number and the packet sequence number of the equipment in the data acquisition broadcast command are recorded; the relay equipment records the equipment SN number and the packet serial number in the data acquisition broadcasting command, reduces the survival time by one, and broadcasts the data acquisition broadcasting command when the current channel is idle;
a step of forwarding the broadcast command: the method comprises the steps that a relay device receives a data acquisition broadcast command sent by a previous-stage relay device in a broadcast mode, records a device SN number and a packet sequence number in the data acquisition broadcast command, reduces the survival time by one, and broadcasts the data acquisition broadcast command when the survival time is not 0 and a current channel is idle;
responding to the broadcast command step: the slave sends response data to the host or the relay equipment, the relay equipment forwards the response data from the slave to the host, and the response data comprises slave addresses;
the initial value of the survival time is the stage number of the relay equipment required from the host to the slave;
the data protocol format of the data acquisition broadcast command is FE + ED + DC + equipment SN + packet sequence number + time-to-live + original command + CRC + CB.
2. The LORA wireless communication system is characterized by comprising a host, a relay device and a slave, wherein the host is connected with the relay device, and the slave is connected with the relay device or the host;
the host is used for broadcasting a data acquisition broadcast command by adopting a standard ModBus protocol, wherein the data acquisition broadcast command comprises a slave address, an equipment SN number, a packet sequence number and a survival time length, and is also used for receiving response data with the slave address; the data protocol format of the data acquisition broadcast command is FE + ED + DC + equipment SN + packet sequence number + time to live + original command + CRC + CB;
the slave is used for receiving a data acquisition broadcast command sent by the host, inquiring whether the address of the slave is the address of the slave or not by the slave, if so, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, and sending response data to the host or the relay equipment;
the relay equipment is used for receiving a data acquisition broadcasting command sent by the host, recording an equipment SN number and a packet sequence number in the data acquisition broadcasting command, reducing the survival time by one, and broadcasting the data acquisition broadcasting command when the current channel is idle; the method comprises the steps that a data acquisition broadcasting command sent by the broadcasting of the upper-stage relay equipment is received, an equipment SN number and a packet sequence number in the data acquisition broadcasting command are recorded, the survival time is reduced by one, and the data acquisition broadcasting command is broadcasted when the survival time is not 0 and the current channel is idle; and forwarding response data with slave addresses from the slave to the master;
the initial value of the survival time is the number of stages of the relay equipment needed from the host to the slave.
3. A relay method for LORA wireless communication is characterized by comprising the following steps:
receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle;
a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
responding to the broadcast command step: forwarding response data from a slave to a master, wherein the response data comprises a slave address;
the initial value of the survival time is the stage number of the relay equipment required from the host to the slave;
the data protocol format of the data acquisition broadcast command is FE + ED + DC + equipment SN + packet sequence number + time-to-live + original command + CRC + CB.
4. A LORA wireless communication relay device comprising a processor and a memory having a computer readable program stored therein that is executable by the processor, the computer readable program when read by the processor implementing the steps of:
receiving a broadcast command: receiving a data acquisition broadcast command sent by a host, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when a current channel is idle; the data protocol format of the data acquisition broadcast command is FE + ED + DC + equipment SN + packet sequence number + time to live + original command + CRC + CB;
a step of forwarding the broadcast command: receiving a data acquisition broadcast command sent by the upper-stage relay equipment in a broadcast manner, recording an equipment SN number and a packet sequence number in the data acquisition broadcast command, reducing the survival time by one, and broadcasting the data acquisition broadcast command when the survival time is not 0 and the current channel is idle;
responding to the broadcast command step: forwarding response data from a slave to a master, wherein the response data comprises a slave address;
the initial value of the survival time is the number of stages of the relay equipment needed from the host to the slave.
CN201811308081.6A 2018-11-05 2018-11-05 LORA wireless communication method, system, relay method and equipment Active CN109618292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811308081.6A CN109618292B (en) 2018-11-05 2018-11-05 LORA wireless communication method, system, relay method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811308081.6A CN109618292B (en) 2018-11-05 2018-11-05 LORA wireless communication method, system, relay method and equipment

Publications (2)

Publication Number Publication Date
CN109618292A CN109618292A (en) 2019-04-12
CN109618292B true CN109618292B (en) 2022-02-18

Family

ID=66002525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811308081.6A Active CN109618292B (en) 2018-11-05 2018-11-05 LORA wireless communication method, system, relay method and equipment

Country Status (1)

Country Link
CN (1) CN109618292B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166113A (en) * 2019-05-31 2019-08-23 北京工商大学 Communication system and method for disaster area
CN110519778B (en) * 2019-08-23 2023-02-10 武汉慧联无限科技有限公司 Downlink message sending method and device, equipment and medium
CN111082845A (en) * 2019-11-14 2020-04-28 珠海派诺科技股份有限公司 LoRa wireless communication relay method, equipment and storage medium based on pilot frequency communication
CN113141577B (en) * 2020-01-19 2022-03-04 深圳市云海物联科技有限公司 Data transmission method and device and terminal equipment
CN111561961A (en) * 2020-03-17 2020-08-21 中国船舶重工集团公司第七一五研究所 Marine information acquisition system and method for synchronizing additional time information
CN111935755B (en) * 2020-09-04 2024-01-26 中津沛科建设股份有限公司 LoRa wireless relay communication system, method and device
CN112702056B (en) * 2020-12-03 2023-07-21 成都海光集成电路设计有限公司 Integrated circuit, broadcasting method of integrated circuit, relay module and electronic device
CN113099431B (en) * 2021-03-24 2022-05-06 瀚云科技有限公司 Communication method and device based on LoRa channel and LoRa host
CN113347684B (en) * 2021-06-07 2022-06-17 武汉特试特科技股份有限公司 Internet of things communication method and equipment with multi-stage relay networking capability

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977391A (en) * 2010-10-15 2011-02-16 北京邮电大学 Multiple terminal cooperative communication method in cognition wireless network
CN102802126A (en) * 2012-08-16 2012-11-28 杭州家和物联技术有限公司 Data acquisition system and method of wireless sensing network for large-scale mobile signal source
CN202906901U (en) * 2012-08-01 2013-04-24 郑州航天赛世特电子有限公司 Pure-flooding adaptive low-voltage power line carrier communication unit
CN105554839A (en) * 2015-12-07 2016-05-04 重庆邮电大学 Position competition vehicle-mounted self-organizing network multi-hop broadcast method
CN106781360A (en) * 2016-11-25 2017-05-31 瑞斯康微电子(深圳)有限公司 Data transmission method and repeater based on LORA radio communications
CN108184232A (en) * 2018-01-23 2018-06-19 珠海派诺科技股份有限公司 LORA wireless communications relay method, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102306804B1 (en) * 2015-01-21 2021-09-30 삼성전자주식회사 Method and apparatus for reducing power consumption of electronic device
CN107911801A (en) * 2017-10-26 2018-04-13 上海宏力达信息技术股份有限公司 A kind of wireless communication system and method based on LoRa

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977391A (en) * 2010-10-15 2011-02-16 北京邮电大学 Multiple terminal cooperative communication method in cognition wireless network
CN202906901U (en) * 2012-08-01 2013-04-24 郑州航天赛世特电子有限公司 Pure-flooding adaptive low-voltage power line carrier communication unit
CN102802126A (en) * 2012-08-16 2012-11-28 杭州家和物联技术有限公司 Data acquisition system and method of wireless sensing network for large-scale mobile signal source
CN105554839A (en) * 2015-12-07 2016-05-04 重庆邮电大学 Position competition vehicle-mounted self-organizing network multi-hop broadcast method
CN106781360A (en) * 2016-11-25 2017-05-31 瑞斯康微电子(深圳)有限公司 Data transmission method and repeater based on LORA radio communications
CN108184232A (en) * 2018-01-23 2018-06-19 珠海派诺科技股份有限公司 LORA wireless communications relay method, apparatus and system

Also Published As

Publication number Publication date
CN109618292A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109618292B (en) LORA wireless communication method, system, relay method and equipment
CN108184232B (en) LORA wireless communication relay method, device and system
US10827457B2 (en) Paging message transmission method, base station, and user equipment
CN113301511B (en) Node joining method, interphone, system and storage medium
KR101665416B1 (en) Method for establishing association between station and access point, and device
EP1117225A3 (en) Data transmission to and from a mobile terminal in a network
US10333665B2 (en) Method and system for wireless communication between terminals and half-duplex base stations
CN101471761A (en) Multi-carrier communication via sub-carrier groups
CN108401227B (en) Method and system for establishing connectionless mesh network route
CN109121096B (en) Method and apparatus for determining broadcast nodes in a mesh network
CN104918069A (en) Play scene reduction method, system, playing terminal and control terminal
CN110875749A (en) Power determination method, device, terminal and computer readable storage medium
US20230198823A1 (en) Adaptive guard interval calibration
CN111082845A (en) LoRa wireless communication relay method, equipment and storage medium based on pilot frequency communication
JP2020009170A (en) Data collection system and data collection method
US11089592B2 (en) Communication method executed in a long-range wireless network and affording low energy consumption and load management
CN210724793U (en) LoRa wireless communication relay device based on pilot frequency communication
WO2023015507A1 (en) Power saving method and apparatus, device, and readable storage medium
WO2021196963A1 (en) Information synchronization method, terminal, and information synchronization system
EP4145916A1 (en) Method and apparatus for determining frequency domain offset, and communication device and readable storage medium
WO2022001356A1 (en) Method and device for determining symbol type, storage medium and electronic device
CN104536756A (en) Method and device for sending and processing AllJoyn network message
CN113727409A (en) Message transmission method, node and LORA ad hoc network
CN114650509B (en) Method, device and system for bidirectional communication of Bluetooth broadcast
CN111050357B (en) Communication method and device for terminal and base station

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