Anti-collision method for transmitting and receiving intensive narrow-band wireless remote communication

文档序号:196790 发布日期:2021-11-02 浏览:30次 中文

阅读说明:本技术 一种收发密集型窄带无线远距离通信的防冲突方法 (Anti-collision method for transmitting and receiving intensive narrow-band wireless remote communication ) 是由 赵林 周长军 隋超 杨辉 于 2021-07-07 设计创作,主要内容包括:一种收发密集型窄带无线远距离通信的防冲突方法,其特征在于,包括以下方法:步骤一、设置节点设备的周期性时钟;步骤二、所述周期性时钟到时执行开启信道激活检测;步骤三、判断信道状态是否为激活;步骤四、判断是否为同步指令;步骤五、产生一个随机数作为本轮发送序号;步骤六、计算节点设备的信道激活检测时间;步骤七、更新周期定时器,返回步骤一;本发明通过设置周期性时钟,分时进行信道激活检测,并对信道状态进行判断再发送数据,能够使无线远距离通信系统中,多节点密集型设备有序发送数据,提高信道利用率,避免冲突丢包,在少数节点需要发送时仍能有较高的时效性。(An anti-collision method for transmitting and receiving intensive narrow-band wireless long-distance communication is characterized by comprising the following steps: step one, setting a periodic clock of node equipment; step two, when the periodic clock arrives, the activation detection of the starting channel is executed; step three, judging whether the channel state is activated; step four, judging whether the command is a synchronous command; generating a random number as a sending sequence number of the current round; sixthly, calculating the channel activation detection time of the node equipment; step seven, updating the periodic timer and returning to the step one; the invention sets the periodic clock, carries out channel activation detection in a time-sharing way, judges the channel state and sends data, can ensure that multi-node intensive equipment in a wireless remote communication system sends data in order, improves the utilization rate of the channel, avoids conflict and packet loss, and still has higher timeliness when a few nodes need to send.)

1. An anti-collision method for transmitting and receiving intensive narrow-band wireless long-distance communication is characterized by comprising the following steps:

firstly, setting a periodic clock of node equipment;

step two, the periodic clock reaches the set point time, and the node equipment executes the activation detection of the starting channel;

step three, judging the channel state:

3-1: if the channel is detected to be not activated, judging whether data is sent, if so, starting to send the data by the node equipment, and ending the communication;

3-2: if the channel is detected to be activated, the node equipment starts to receive data, and the fourth step is carried out;

step four, judging whether the command is a synchronous command:

4-1: if the data is not the synchronous instruction, the node equipment starts to process the received data, the data processing is finished, and the communication is finished;

4-2: if the synchronous instruction is received, adjusting the time reference, and performing the step five;

generating a random number as a sending sequence number of the current round;

sixthly, calculating the channel activation detection time of the node equipment;

and step seven, updating the periodic timer and returning to the step one.

2. The anti-collision method for transceiving intensive narrowband wireless telecommunication according to claim 1, wherein the periodic clock Tsyn is N × Tint, where N is a random number generated by a node device and Tint is a time interval between two node devices.

3. The anti-collision method for transceiving intensive narrowband wireless telecommunication according to claim 2, wherein Tint > Tcad +2 x Tdev, wherein Tcad is a channel activation detection time, and Tdev is a maximum error of a node device in a periodic clock.

4. The anti-collision method for transceiving intensive narrowband wireless long-distance communication according to claim 3, wherein Tcad is 1.85 x (SF +32)/BW, BW is bandwidth, and SF is power N of two.

5. The anti-collision method for transceiving intensive narrowband wireless telecommunication according to claim 1, wherein the synchronization command is a synchronization signal periodically transmitted by the gateway, and the node receives the synchronization signal and generates the random number N based on the synchronization signal.

6. The anti-collision method for transceiving intensive narrowband wireless telecommunication according to claim 1, wherein the adjusting time reference is adjusting a time interval Tint of two node devices.

7. An anti-collision method for transceiving intensive narrowband wireless telecommunication according to claim 1, characterized in that the periodic timer is a time allowed for extended channel activation detection between two node devices.

8. A transceiving communication device comprising a memory and a processor; the memory for storing a computer program; the processor, when executing the computer program, is configured to implement an anti-collision method for transceiving intensive narrowband wireless telecommunication according to any of claims 1-7.

9. A readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, implements an anti-collision method for transceiving intensive narrowband wireless telecommunication according to any of claims 1-7.

Technical Field

The invention relates to the field of wireless communication, in particular to an anti-collision method for transmitting and receiving intensive narrow-band wireless long-distance communication.

Background

At the present stage, point-to-point communication structures or star network structures are mostly adopted for narrow-band communication; in point-to-point communication, master-slave response mode communication is mostly adopted, generally, master equipment waits for slave equipment to respond to data after sending a query instruction, and the slave equipment responds to the data after receiving the query instruction sent by the master equipment; the star network structure comprises a gateway device and a plurality of node devices, wherein the gateway device is a master device, the plurality of node devices are all slave devices, the gateway device waits for the node devices to respond to data after sending a query instruction, the node devices respond to data after receiving the query instruction sent by the gateway device, or the node devices send data to the gateway device first and then wait for the gateway device to send the data; when a point-to-point communication structure or a star network structure is adopted for communication, the slave devices cannot actively send data, and if the master device or the slave device or the multi-node device simultaneously send data, data loss is caused, and anti-collision measures are avoided.

Time-sharing transmission is an anti-collision method, but simple time-sharing transmission can cause low channel utilization rate and poor timeliness, a channel is a precious resource in a low-power consumption long-distance wireless communication system, and especially under a transceiving intensive communication scene, the waste of channel resources is unacceptable. For example, counting one frame of data by each node requires 1S of time, the system capacity is 100, the device with the sequence number 1 starts channel detection at the 1 st S after the time reference, and the device with the sequence number 2 starts channel activation detection at the 2 nd S after the time reference. The device with sequence number 3 starts channel detection … … at time reference 3S and so on. At this time, if only the 100 th device needs to transmit data, the 100 th device needs to start transmission in 100 th second, and the maximum delay time of the system is 100S.

Therefore, the problems of poor timeliness, low channel utilization rate and easy burst and packet loss when a plurality of node devices transmit and receive densely need to be solved.

Disclosure of Invention

The technical problem to be solved by the invention is to provide an anti-collision method for transmitting and receiving intensive narrow-band wireless long-distance communication, which can effectively solve the problems provided in the background technology.

In order to solve the problems, the technical scheme adopted by the invention is as follows: an anti-collision method for transmitting and receiving intensive narrow-band wireless long-distance communication comprises the following steps:

firstly, setting a periodic clock of node equipment;

step two, when the periodic clock arrives, the node equipment executes the activation detection of the opening channel;

step three, judging the channel state:

3-1: if the channel is not activated, judging whether data are sent or not, if so, starting to send the data by the node equipment, and ending the process;

3-2: if the channel is detected to be activated, the node equipment starts to receive data, and the fourth step is carried out;

step four, judging whether the command is a synchronous command:

4-1: if the data is not the synchronous instruction, the node equipment starts to process the received data, and the data processing completion process is finished;

4-2: if the synchronous instruction is received, adjusting the time reference, and performing the step five;

generating a random number as a sending sequence number of the current round;

sixthly, calculating the channel activation detection time of the node equipment;

and step seven, updating the periodic timer and returning to the step one.

Preferably, the periodic clock Tsyn = N × Tint, where N is a random number generated by the node device, and Tint is a time interval between two node devices.

Preferably, Tint is greater than Tcad +2 × Tdev, Tcad is channel activation detection time, and Tdev is a maximum error of the node device in a periodic clock.

Preferably, Tcad =1.85 × (SF +32)/BW, where BW is a bandwidth and SF is an N-th power of two.

Preferably, the synchronization instruction is a synchronization signal periodically issued by the gateway, and the node receives the synchronization signal and then uses the synchronization signal as a time reference to generate the random number N.

Preferably, the time reference is the time interval Tint between two node devices.

Preferably, the period timer is a time allowed for extended channel activation detection between two node devices.

In addition, a transceiving communication device comprising a memory and a processor; the memory for storing a computer program; the processor is configured to implement an anti-collision method for transceiving intensive narrowband wireless long-distance communication as described above when executing the computer program.

It also relates to a readable storage medium, preferably a storage medium having stored thereon a computer program which, when being executed by a processor, carries out an anti-collision method of transceiving intensive narrowband wireless telecommunication as described above.

Compared with the prior art, the invention provides an anti-collision method for transmitting and receiving intensive narrow-band wireless remote communication, which has the following beneficial effects:

the invention sets the periodic clock, carries out channel activation detection in a time-sharing way, judges the channel state and sends data, can ensure that multi-node intensive equipment in a wireless remote communication system sends data in order, improves the utilization rate of the channel, avoids conflict and packet loss, and still has higher timeliness when a few nodes need to send.

Drawings

Fig. 1 is a schematic flow chart of an anti-collision method according to the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.

Referring to fig. 1, the present invention provides an anti-collision method for transceiving intensive narrowband wireless long-distance communication, comprising the steps of:

when the node equipment needs to send data, the following steps are firstly carried out;

firstly, setting a periodic clock of node equipment;

the periodic clock is set to avoid that when a plurality of node devices start channel activation detection at the same time and detect that a plurality of channels are in an inactivated state at the same time, data transmission is started at the same time immediately to generate conflict;

step two, when the periodic clock arrives, the node equipment executes the activation detection of the opening channel;

when the periodic clock arrives, each node device starts channel activation detection, so that each node device can sequentially execute the start channel activation detection according to the time sequence;

step three, judging the channel state:

3-1: if the channel is detected to be not activated, judging whether data is sent or not, if so, starting to send the data by the node equipment, and ending the process after the data is sent;

3-2: if the channel is detected to be activated, delaying the sending of the data, switching to a receiving mode, and starting to receive the data by the node equipment to perform the fourth step;

step four, judging whether the received data is a synchronous instruction:

4-1: if the data is not the synchronous instruction, the node equipment starts to process the received data, and the process is ended after the data processing is finished;

4-2: if the synchronous instruction is received, adjusting the time reference, and performing the step five;

generating a random number as a sending sequence number of the current round;

sixthly, calculating the channel activation detection time of the node equipment;

and step seven, updating the periodic timer and returning to the step one.

Preferably, the periodic clock Tsyn = N × Tint, where N is a random number generated by the node device, and Tint is a time interval between two node devices.

Preferably, Tint is greater than Tcad +2 × Tdev, Tcad is channel activation detection time, and Tdev is a maximum error of the node device in a periodic clock.

Preferably, Tcad =1.85 × (SF +32)/BW, BW is a BandWidth (BandWidth), SF is an N-th power of two, and SF represents a Spreading Factor (Spreading Factor).

Preferably, the synchronization instruction is a synchronization signal periodically issued by the gateway, and the node receives the synchronization signal and then uses the synchronization signal as a time reference to generate the random number N.

Preferably, the time reference is the time interval Tint between two node devices.

Preferably, the period timer is a time allowed for extended channel activation detection between two node devices.

Wherein, the transmission time Tpayload = Ts × n (payoadsymmbnb):

ts is the transmission time of one symbol, Ts =1/Rs = SF/BW,

rs is a symbol transmission rate, Rs = Rc/SF = BW/SF,

the Rc is a transmission rate of chips, Rc = BW = | BW | chips/s,

a complete sweep signal (sweep signal) can be called a symbol, and a symbol is divided into N power units, wherein the unit is chips (chips) to represent N data bits, and SF is a spreading factor;

data transmission rate DR or Rb: DR = Rb = SF × Rs × CR = SF × (BW/SF) × CR;

the specific meanings of the symbols in the formula are as follows:

PL represents the number of bytes of the payload;

SF denotes a spreading factor;

when a header is used, H = 0; without a header, H = 1;

DE =1 when the LowDataRateOptimize bit is set to 1; otherwise DE = 0;

CR represents the coding rate and ranges from 1 to 4.

In addition, a transceiving communication device comprising a memory and a processor; the memory for storing a computer program; the processor is configured to implement an anti-collision method for transceiving intensive narrowband wireless long-distance communication as described above when executing the computer program.

And to a readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out an anti-collision method of transceiving intensive narrowband wireless telecommunication as described above.

As a specific embodiment of the present invention:

taking a communication system with SF =10 and BW =125K as an example, Tcad =15.63ms can be obtained according to the formula Tcad =1.85 × (SF + 32)/BW. If the synchronization period is 1 minute and the communication system clock error is 10/1000000, then Tdev =0.6 ms; where interval is taken to be Tint =20ms, with Tint > Tcad +2 × Tdev, Tcad +2 × Tdev = 16.8. The communication capacity is designed to be 100 node devices, the period timer is set to be 2S, the node devices synchronize the time reference Tint immediately after receiving the synchronization instruction and generate respective sending serial numbers, according to the periodic clock Tsyn = N × Tint, the device with the serial number of 1 starts channel detection at the 20 th ms after the time reference Tint, the device with the serial number of 2 starts channel activation detection at the 40 th ms after the time reference Tint, the device with the serial number of 3 starts channel detection at the 60 th ms after the time reference Tint, … … and so on;

the period timer is used to control the sending opportunity, and depends on the amount of concurrency, for example, the channel detection time of each node is set to 20ms, and the amount of concurrency is 100, then 2s can arrange 20ms of each node device;

at this time, if the node device needs to send data at the same time, the channel of the device No. 1 is not activated after the channel detection, and starts to send data. The channel is necessarily in an activated state when the channel activation detection of the device No. 2 is carried out, the device No. 2 delays 2S to start the channel activation detection again, the data is sent when the channel is not activated through the circular detection, and the other nodes are the same, so that the conflict can be effectively avoided;

the channel activation detection is used for detecting whether a channel is occupied, the channel is in an inactivated state when no equipment transmits data, and the channel is in an activated state when the equipment processes a transmission state; for example, node 1 starts transmission 20ms after the time reference, the transmission lasts for a certain time, the duration depends on the length of the transmitted data, the time is generally at least several hundred milliseconds, if the duration is 500ms, the channel 20-520 ms after the time reference is in an active state, and the node 2 device is inevitably in an active state when detecting the channel state 40ms after the time reference.

If there are only 1 node device to send data, e.g. device number 100. The No. 100 device starts channel activation detection in 2000ms after the time reference Tint, the channel is in an inactivated state at the moment, data is sent, the longest delay of the node device is 2S, and compared with the traditional time-sharing sending, the system timeliness is improved.

The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种移动边缘计算中用户移动场景下的协同任务调度方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!