A time-division multiple event wireless communication method
By dividing the heartbeat cycle into multiple time slices and further dividing it into uplink, downlink, and heartbeat packet time periods, the wireless communication method solves the problems of low device capacity, easy data congestion, long latency, and high power consumption in wireless communication, thereby improving system capacity and real-time performance.
Patent Information
- Application Number
- CN202311227578.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-22
AI Technical Summary
Existing wireless communication methods suffer from problems such as small device capacity, easy data congestion, data loss due to collisions, long latency, high power consumption, and poor real-time performance of uplink and downlink data.
The wireless communication method employs time-division multiple events (TDM) by dividing the heartbeat cycle into multiple time slices and further dividing each time slice into uplink, downlink, and heartbeat packet time periods. By combining TDM and TDM technologies, it ensures orderly data transmission, reduces data congestion and collisions, and lowers device power consumption through automatic power negotiation and channel negotiation.
It effectively solves the problems of severe data loss, small system capacity, high fault reporting latency and high device power consumption caused by wireless data congestion and collision, improves system capacity and real-time performance, and reduces device power consumption.
Smart Images

Figure CN117295162B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and in particular to a time-division multiple-event wireless communication method. Background Technology
[0002] Currently, the wireless networking and communication methods between sub-devices and main devices in the burglar alarm, industrial control, and IoT industries are mainly divided into the following three types: 1) Short-range communication: using Zigbee, Z-Wave, Bluetooth, Wi-Fi, etc., its advantages are low power consumption, and its disadvantages are weak penetration, poor anti-interference, and short communication distance; 2) Wide-area communication: a) Unlicensed frequency bands: LoRa, Sigfox, etc., its advantages are long communication distance, and its disadvantages are that they are proprietary technologies of foreign companies, requiring self-built base stations, resulting in high costs; b) Licensed frequency bands: NB-IoT, CAT 1, etc., its advantages are long distance and convenient networking, and its disadvantages are that it depends on the operator's network, requires long-term payment of usage fees, and has poor signal and unstable network in some areas; 3) SBU-1G self-organizing network mode: has the characteristics of strong low-frequency penetration, good anti-interference, long effective distance, low power consumption, and low cost.
[0003] Due to its excellent performance and cost advantages, the SUB-1G has become widely used in burglar alarms and industrial internet fields, becoming a mainstream trend. However, the current common communication mechanism involves the sub-devices autonomously and randomly sending jump packets and status data to the master device. The master device processes the received data and sends control data to the sub-devices at random times. Because all devices send data in an unordered and random manner, wireless data is prone to congestion and collisions, causing the following problems: 1) Severe data loss: Wireless data is lost due to congestion and collisions. To reduce data loss, longer and more frequent retransmissions are usually used, but more retransmissions increase the probability of congestion and collisions, creating a vicious cycle; 2) Small system capacity: To reduce data congestion and collisions caused by device communication, the number of connected devices is usually reduced; 3) High fault reporting latency: To reduce data collisions caused by device communication, a reporting mechanism with longer intervals is usually used, resulting in long latency and poor real-time performance when the master device detects faults such as offline or low voltage of sub-devices; 4) High power consumption: Frequent retransmissions by devices cause them to consume power faster, especially for battery-powered devices, where the problem is particularly serious.
[0004] Therefore, it is necessary to provide a time-division multiple-event wireless communication method to solve the problems of small device capacity, easy wireless data blockage, data loss due to collision, long latency, high power consumption, and poor real-time performance of uplink and downlink data in the current industry. Summary of the Invention
[0005] This invention discloses a time-division multiple-event wireless communication method, which relates to a small system, multiple devices, medium and low speed wireless networking and communication method. It is applied to burglar alarms, the Internet of Things and other industrial control fields, and effectively solves the shortcomings of the current industry, such as small device capacity, easy wireless data blockage, loss due to collision, long delay, high power consumption and poor real-time performance of device uplink and downlink data. It can effectively solve the technical problems involved in the background art.
[0006] To achieve the above objectives, the technical solution of the present invention is as follows:
[0007] A time-division multiple-event wireless communication method for communication between a master device and n slave devices includes the following steps:
[0008] S1. Determine the heartbeat period T, which is divided into P time slices, where P ≥ n. Each time slice includes an uplink period, a downlink period, and a heartbeat packet period. The duration of the uplink period is not less than the time required for the sub-device to send an emergency event to the master device, the duration of the downlink period is not less than the time required for the master device to send a downlink event to the sub-device, and the duration of the heartbeat packet period is not less than the time required for the sub-device to send a heartbeat packet to the master device.
[0009] S2. The master device searches for an idle channel and stays on the idle channel, waiting for the sub-device to send a message. If the sub-device is not connected to the master device, it attempts to send synchronization information to the bound master device to establish a connection. After the sub-device connects to the master device, it sends data to the master device during the heartbeat packet period of the time slice allocated by the master device.
[0010] S3. After receiving a message from a sub-device, the master device checks whether the sub-device has been allocated a time slice or whether the time of sending the message deviates from its allocated time slice. If no time slice has been allocated or the time slice has deviated, the master device responds with its allocated time slice, current timestamp, and heartbeat period T. If a time slice has been allocated and the time slice has not deviated, the master device responds normally to the sub-device.
[0011] S4. When an emergency occurs in a sub-device, it waits for the uplink period to arrive and sends information to the master device, competing for the transmission window. If the channel is idle, it sends data; if the competition fails, it waits for the next uplink period to compete again.
[0012] S5. When the master device needs to send downlink control data, it sends downlink data to the sub-device during the downlink period.
[0013] As a preferred improvement of the present invention: the heartbeat period T is related to the battery used by the sub-device, and is calculated as follows:
[0014] The amount of charge C consumed in a single data interaction process E For the emission current i t Multiply by launch time t tAdding the current i waiting for a response d Multiply by the waiting time t d Add the received response current i r Multiply by the response time t r C E = ( i t ×t t ) + ( i d × t d ) + ( i r × t r );
[0015] The amount of charge C consumed during system hibernation s standby current i s Multiply by the designed battery life time t s C s = i s × t s ;
[0016] The maximum number of times a battery can interact, F, is equal to the battery's charge, C. B Multiply by battery voltage V B The product, minus the charge C consumed during system hibernation. s Multiply by the system sleep voltage V S The difference of the products, divided by the charge C consumed in one data interaction process. E Multiplied by the interaction voltage V E The quotient of the product, i.e., F = ((C) B × V B )-(C s × V s ) )÷(C E × V E );
[0017] Based on the battery capacity, estimate the minimum heartbeat cycle time T1=t s If F ÷ F, then T ≥ T1.
[0018] As a preferred improvement of the present invention: the duration of the heartbeat packet period is Q1, and Q1 is equal to the longest heartbeat data transmission time t1. max Add the longest time d1 for waiting to receive a heartbeat response max and the longest time a1 to receive heartbeat response packets. max Multiply by the maximum number of heartbeat retransmissions n1 max That is, Q1 = (t1) max + d1 max + a1 max )×n1 max .
[0019] As a preferred improvement of the present invention: the duration of the uplink time period is Q2, and Q2 is equal to the maximum time t2 for sending one frame of uplink data. max Add the maximum waiting time d2 for receiving uplink data acknowledgments max and the maximum time a2 for receiving uplink data response packets. max Multiply by the maximum number of retransmissions n2 of the above data max That is, Q2 = (t2) max + d2 max + a2 max ) ×n2 max .
[0020] As a preferred improvement of the present invention: the downlink time period is Q3, and Q3 is equal to the maximum time t3 for sending one frame of downlink data. max Add the maximum waiting time d3 for receiving downlink data acknowledgments max and the maximum time a3 for receiving downlink data response packets. max Multiply by the maximum number of retransmissions n3 of the following data. max , that is, Q3= (t3 max + d3 max + a3 max ) × n3 max .
[0021] As a preferred improvement of the present invention: the minimum heartbeat cycle time T2 = n×(Q1+ Q2+ Q3) is estimated based on the time slice duration, then T≥T2.
[0022] As a preferred improvement of the present invention: in step S3, if a time slice has been allocated and there is no deviation, the current timestamp is included in the normal response to the sub-device.
[0023] As a preferred improvement of the present invention, it further includes step S6: if the master device does not receive any data from the same sub-device for a set of L consecutive heartbeat cycles, it considers the sub-device to be offline, and the master device generates an alarm message and sends it to the user after determining that the sub-device is offline.
[0024] As a preferred improvement of the present invention, it further includes step S7: if the sub-device does not receive a reply from the master device for N consecutive times, it considers the master device to be lost, and then sends information to the master device to retry establishing communication with the master device.
[0025] The beneficial effects of this invention are as follows:
[0026] To effectively address the problems of severe data loss, small system capacity, high fault reporting latency, and high device power consumption caused by wireless data congestion and collisions, and to ensure the real-time performance of uplink and downlink data, this invention utilizes the characteristics of periodic heartbeat messages and specific sudden event messages, employing a combination of Time Division Multiple Access (TDMA) and Time Division Multiple Event (TDME) to transform the disordered and random data transmission mechanism into an ordered and predetermined data transmission sequence. This reduces data congestion and collisions, increases system capacity and real-time performance, and, combined with automatic power negotiation and channel negotiation, further reduces device power consumption and improves device battery life. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:
[0028] Figure 1 This is a schematic diagram of the heartbeat cycle structure of the present invention;
[0029] Figure 2 This is a schematic diagram illustrating the networking principle of the present invention;
[0030] Figure 3 This is a flowchart of the main equipment operation of the present invention;
[0031] Figure 4 This is a flowchart of the operation of the sub-device of the present invention;
[0032] Figure 5 This is a flowchart of the emergency event sending process of the present invention. Detailed Implementation
[0033] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0034] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0035] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0036] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0037] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0038] Please see Figure 1 As shown, this invention provides a time-division multiple-event wireless communication method for communication between a master device and n sub-devices, comprising the following steps:
[0039] S1. Determine the heartbeat period T, which is divided into P time slices, where P ≥ n. Each time slice includes an uplink period, a downlink period, and a heartbeat packet period (other periods can be added as needed). The duration of the uplink period is not less than the time required for the sub-device to send an emergency event to the master device, the duration of the downlink period is not less than the time required for the master device to send a downlink event to the sub-device, and the duration of the heartbeat packet period is not less than the time required for the sub-device to send a heartbeat packet to the master device.
[0040] S2. The master device searches for an idle channel and stays on the idle channel, waiting for the sub-device to send a message. If the sub-device is not connected to the master device, it attempts to send synchronization information to the bound master device to establish a connection. After the sub-device connects to the master device, it sends data to the master device during the heartbeat packet period of the time slice allocated by the master device.
[0041] S3. After receiving a message from a sub-device, the master device checks whether the sub-device has been allocated a time slice or whether the time of sending the message deviates from its allocated time slice. If no time slice has been allocated or the time slice has deviated, the master device responds with its allocated time slice, current timestamp, and heartbeat period T. If a time slice has been allocated and the time slice has not deviated, the master device responds normally to the sub-device.
[0042] S4. When an emergency occurs in a sub-device, it waits for the uplink period to arrive and sends information to the master device, competing for the transmission window. If the channel is idle, it sends data; if the competition fails, it waits for the next uplink period to compete again.
[0043] S5. When the master device needs to send downlink control data, it sends downlink data to the sub-device during the downlink period.
[0044] S6. If the master device does not receive any data from the same sub-device for L consecutive heartbeat cycles, it considers the sub-device to be offline. After determining that the sub-device is offline, the master device will generate an alarm message and send it to the user.
[0045] S7. If the sub-device does not receive a reply from the master device for N consecutive times, it assumes that the master device is lost and sends a message to the master device to retry establishing communication.
[0046] Specifically, under the premise of reasonable offline detection time, access capacity, and power consumption of sub-devices, the heartbeat cycle of the sub-devices is divided into P M time slices. Within each M time slice, it is further divided into multiple Q segments based on uplink and downlink event requirements. Each Q segment does not need to be equally divided; instead, it is divided according to the length of the event data packet and the time required for retransmission. A fixed event is sent in each segment, allowing each sub-device to send heartbeat data to the master device according to the time nodes allocated by the master device. In the event of an emergency, the sub-device can compete for the channel to report the event within each uplink event time window. The master device can also issue control events within each downlink event time window. The heartbeat window is exclusive to each sub-device, the uplink window is shared by all sub-devices, and the downlink window is exclusive to the master device. Since the heartbeat window transmission is the most intensive and periodic, time-division multiple access (TDMA) can avoid conflicts. Since the probability of simultaneous occurrence of sudden events is very low, the uplink window is idle most of the time, so the probability of conflict is very low. Moreover, the conflict can be further reduced by channel contention (listening to whether the channel is idle during random time periods; if it is idle, data is sent; if it is busy, the next sending window is waited for). The downlink window is also exclusively used by the master device and will not conflict with other messages.
[0047] In simple terms, this invention divides a heartbeat cycle into P equal-length time slices M, and then further divides each M time slice into multiple event transmission time slices Q. Since the heartbeat packets from sub-devices are the most frequent and periodic, each sub-device sends a heartbeat packet at its fixed time point. Event packets, on the other hand, are sudden, and the probability of multiple devices generating sudden events at the same time is very low. To ensure timely reporting of sudden events, a time point for sending emergency events is interspersed after each heartbeat packet. The same principle applies to the downlink control data of the master device. Therefore, all devices can send different events in an orderly and predetermined manner, effectively reducing and avoiding data congestion and collisions.
[0048] The heartbeat cycle T is determined by two key parameters: 1) Battery capacity, which calculates the maximum number of times devices can interact with data, and then determines the minimum heartbeat cycle time T1 based on the designed battery life; 2) The product of the total number of connected devices n and the time consumed in each M time slice, T2 = n × M. The minimum heartbeat cycle T is the larger of T1 and T2, i.e., Tmin. min = Max( T1, T2).
[0049] The following steps estimate the minimum heartbeat cycle time based on the battery capacity, ignoring the power consumed by battery self-discharge and the power consumed by other tasks. That is, the heartbeat cycle T is related to the battery used by the sub-device, and the calculation method is as follows:
[0050] The amount of charge C consumed in a single data interaction process E For the emission current i t Multiply by launch time t t (seconds), plus the current i waiting for a response. d Multiply by the waiting time t d Add the received response current i r Multiply by the response time t r C E = ( i t × t t ) + ( i d × t d ) + ( i r × t r );
[0051] The amount of charge C consumed during system hibernation s standby current i s Multiply by the designed battery life time t s (If the designed battery lifespan is X years, then t) s = 365X×24×60×60 seconds (ignored here due to the extremely short working time), i.e., C s = is × t s ;
[0052] The maximum number of times a battery can interact, F, is equal to the battery's charge, C. B Multiply by battery voltage V B The product, minus the charge C consumed during system hibernation. s Multiply by the system sleep voltage V S The difference of the products, divided by the charge C consumed in one data interaction process. E Multiplied by the interaction voltage V E The quotient of the product, i.e., F = ((C) B × V B )-(C s × V s ) )÷(C E × V E );
[0053] Based on the battery capacity, estimate the minimum heartbeat cycle time T1=t s If F ÷ F, then T ≥ T1.
[0054] The time t required to transmit one frame of data is equal to the data frame length L divided by the transmission rate R, i.e., t = .
[0055] The following is the minimum heartbeat cycle calculated based on the total number of connected devices, the tolerable uplink latency, and the tolerable downlink latency. Q1, Q2, and Q3 are not necessarily equally divided, but are determined by the longest data length and the maximum number of retransmissions.
[0056] The duration of the heartbeat packet is Q1, which is equal to the longest heartbeat data transmission time t1. max Add the longest time d1 for waiting to receive a heartbeat response max and the longest time a1 to receive heartbeat response packets. max Multiply by the maximum number of heartbeat retransmissions n1 max That is, Q1 = (t1) max + d1 max + a1 max )×n1 max .
[0057] The duration of the uplink period is Q2, which is equal to the maximum time t2 for sending one frame of uplink data. max Add the maximum waiting time d2 for receiving uplink data acknowledgments max and the maximum time a2 for receiving uplink data response packets. max Multiply by the maximum number of retransmissions n2 of the above data max That is, Q2 = (t2) max+ d2 max + a2 max ) × n2 max .
[0058] The downlink time period is Q3, which is equal to the maximum time t3 for sending one frame of downlink data. max Add the maximum waiting time d3 for receiving downlink data acknowledgments max and the maximum time a3 for receiving downlink data response packets. max Multiply by the maximum number of retransmissions n3 of the following data. max , that is, Q3= (t3 max + d3 max + a3 max ) × n3 max .
[0059] The times Q1, Q2, and Q3 obtained above satisfy the maximum tolerable uplink data latency Tu ≥ (Q1 + Q2) and the maximum tolerable downlink data latency T. d ≥ (Q1 + Q2 + Q3), otherwise parameters such as packet length, sending rate, and retransmission count need to be adjusted to meet T. u T d condition.
[0060] Based on the time slice duration, the minimum heartbeat cycle time T2 = n × (Q1 + Q2 + Q3) is estimated, then T ≥ T2.
[0061] Since the system needs to ensure that the battery capacity reaches its designed lifespan and also accommodate the number of connected sub-devices, the heartbeat cycle T needs to satisfy T. min ≥T1 and T min ≥T2, when T>T2, the heartbeat packet period for unallocated time slices of sub-devices is idle. Time slice 1-Time slice P-Time slice 1 forms a cyclical time wheel, repeating continuously. Time slice M multiplied by the total number of devices should be less than or equal to one heartbeat cycle. With each rotation of the time wheel, all sub-devices can complete one heartbeat packet transmission. As one implementation, in step S3, if a time slice has been allocated and there is no deviation, the current timestamp is included during the normal response to the sub-device, allowing the sub-devices to synchronize time and prevent errors.
[0062] Example 1
[0063] Please see Figures 2-5As shown, in order to ensure real-time performance and communication efficiency, it is stipulated that a maximum of k frames of data can be exchanged in each time window. If a response is not received after one transmission, a certain number of retransmissions are required. The channel is released immediately after the interaction is completed. If the master device has no downlink data, it will include the current timestamp in the response frame. The slave device compares the timestamps. If an intolerable error occurs, the master device's timestamp should be synchronized.
[0064] a) The master device searches for an idle channel and stays on the idle channel, waiting for the child device to join the message.
[0065] b) Upon receiving a join message from a sub-device, check whether the sub-device has been allocated a time slice or whether the time of sending the message deviates from its allocated time slice. If no time slice has been allocated or the time slice has deviated, respond with its time slice, current timestamp, and total heartbeat cycle. If a time slice has been allocated and the time slice has not deviated, respond with the current timestamp for fine-tuning the synchronization of the master device's timestamp or other data (such as non-urgent configuration or control data). If the sub-device's time deviation is within the tolerable range, it can be considered to have no deviation. If there is no other data, still send the current master's timestamp to the sub-device for fine-tuning the synchronization timestamp.
[0066] c) If the sub-device is not connected to the host, it will attempt to send synchronization information with the bound host device in each channel contention transmission window (channel contention: listening to whether the channel is idle during a random time period) at the agreed minimum small beat period (which can be calculated according to the battery level). After receiving the allocated time slice, timestamp and transmission period from the host device, it will send data to the host and synchronize and calibrate the timestamp during the specific time period.
[0067] d) If the master device does not receive any data from the same sub-device within a set L consecutive heartbeat cycles, it considers the sub-device offline. If the sub-device does not receive a response from the master device after multiple retransmissions, it considers the master device lost. It then sends data in each channel contention period (listening for channel idleness within random time intervals) at the agreed minimum heartbeat cycle to search for the channel where the master device is located. Upon receiving a response, the sub-device locks onto the current channel and establishes communication with the master device. The master device generates an alarm message and sends it to the user after determining that the sub-device is offline. It should be further noted that any other components used to achieve the above effects should fall within the inventive concept of this invention and should be protected within the scope of this invention.
[0068] e) When an emergency occurs in a sub-device, it waits for a short delay for the uplink time window to arrive and competes for the transmission window. If the channel is idle, it transmits data; if the competition fails, it needs to wait for the next transmission window to compete again.
[0069] f) The host sends downlink control data when the downlink time window arrives.
[0070] Working principle:
[0071] 1) Time Division Multiple Event (TDME) transmission method: This invention uses different time periods to send different events, avoiding data congestion and collisions caused by multiple devices sending multiple events at the same time.
[0072] 2) Transmission method combining TDMA and TDME: This invention cleverly combines time division multiple access (TDMA) with time division multiple events (TDME), dividing the time slice into multiple event time periods. This sorts not only the devices but also the events, avoiding data congestion and collisions among multiple devices and events, and ensuring the real-time performance of data for sudden events.
[0073] 3) Overall technical process: Based on taking into account device access capacity, battery life, data transmission and response time, data retransmission times, channel contention time, maximum tolerable delay for event reporting, and maximum delay for downlink events, this invention rationally allocates time slices and divides them into multiple time periods according to different events. Different events are sent in different time periods, thereby reducing and avoiding congestion and collisions in wireless data to ensure the real-time performance and reliability of the system.
[0074] 4) Timing error elimination: Due to clock errors, timing errors accumulate between sub-devices, causing timestamp offsets, which in turn affect the TDMA and TDME time slices, resulting in data transmission time offsets and collisions. This invention ensures that the timing errors of all sub-devices are kept within a tolerable range by calibrating the timestamps of the sub-devices by the master device.
[0075] 5) Time wheel segmentation method: The invention cleverly uses the heartbeat cycle of the sub-device as a cyclic time wheel. The time slice of each sub-device is located at a fixed node of equal length on the wheel. When the time wheel completes one revolution, all devices send a frame of heartbeat data exactly in their fixed heartbeat cycle.
[0076] 6) Event fragmentation method: In order to improve the real-time performance of event transmission and channel utilization efficiency, the present invention can determine the length of different event time periods based on the data length and retransmission number of different event packets.
[0077] 7) Two-way real-time communication: This invention allocates both uplink and downlink data time periods in each time slice, which can simultaneously ensure the real-time performance of both uplink and downlink data.
[0078] Although embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and embodiments. They can be applied to various fields suitable for the present invention. Other modifications can be easily made by those skilled in the art. Therefore, without departing from the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A time-division multiple-event wireless communication method for communication between a master device and n slave devices, characterized in that, Includes the following steps: S1. Determine the heartbeat period T, which is divided into P time slices, where P ≥ n. Each time slice includes an uplink period, a downlink period, and a heartbeat packet period. The duration of the uplink period is not less than the time required for the sub-device to send an emergency event to the master device, the duration of the downlink period is not less than the time required for the master device to send a downlink event to the sub-device, and the duration of the heartbeat packet period is not less than the time required for the sub-device to send a heartbeat packet to the master device. S2. The master device searches for an idle channel and stays on the idle channel, waiting for the sub-device to send a message. If the sub-device is not connected to the master device, it attempts to send synchronization information to the bound master device to establish a connection. After the sub-device connects to the master device, it sends data to the master device during the heartbeat packet period of the time slice allocated by the master device. S3. After receiving a message from a sub-device, the master device checks whether the sub-device has been allocated a time slice or whether the time of sending the message deviates from its allocated time slice. If no time slice has been allocated or the time slice has deviated, the master device responds with its allocated time slice, current timestamp, and heartbeat period T. If a time slice has been allocated and the time slice has not deviated, the master device responds normally to the sub-device. S4. When an emergency occurs in a sub-device, it waits for the uplink period to arrive and sends information to the master device, competing for the transmission window. If the channel is idle, it sends data; if the competition fails, it waits for the next uplink period to compete again. S5. When the master device needs to send downlink control data, it sends downlink data to the sub-device during the downlink period.
2. The time-division multiple-event wireless communication method according to claim 1, characterized in that, The heartbeat cycle T is related to the battery used by the sub-device, and is calculated as follows: The amount of charge C consumed in a single data interaction process E For the emission current i t Multiply by launch time t t Adding the current i waiting for a response d Multiply by the waiting time t d Add the received response current i r Multiply by the response time t r C E = ( i t × t t )+ ( i d × t d ) + ( i r × t r ); The amount of charge C consumed during system hibernation s standby current i s Multiply by the designed battery life time t s C s = i s × t s ; The maximum number of times a battery can interact, F, is equal to the battery's charge, C. B Multiply by battery voltage V B The product, minus the charge C consumed during system hibernation. s Multiply by the system sleep voltage V S The difference of the products, divided by the charge C consumed in one data interaction process. E Multiplied by the interaction voltage V E The quotient of the product, i.e., F = ((C) B × V B )-(C s × V s ) )÷(C E × V E ); Based on the battery capacity, estimate the minimum heartbeat cycle time T1=t s If F ÷ F, then T ≥ T1.
3. The time-division multiple-event wireless communication method according to claim 1, characterized in that: The duration of the heartbeat packet is Q1, which is equal to the longest heartbeat data transmission time t1. max Add the longest time d1 for waiting to receive a heartbeat response max and the longest time a1 to receive heartbeat response packets. max Multiply by the maximum number of heartbeat retransmissions n1 max That is, Q1 = (t1) max +d1 max + a1 max )×n1 max .
4. The time-division multiple-event wireless communication method according to claim 3, characterized in that: The duration of the uplink period is Q2, which is equal to the maximum time t2 for sending one frame of uplink data. max Add the maximum waiting time d2 for receiving uplink data acknowledgments max and the maximum time a2 for receiving uplink data response packets. max Multiply by the maximum number of retransmissions n2 of the above data max That is, Q2 = (t2) max + d2 max + a2 max ) × n2 max .
5. The time-division multiple-event wireless communication method according to claim 4, characterized in that: The downlink time period is Q3, which is equal to the maximum time t3 for sending one frame of downlink data. max Add the maximum waiting time d3 for receiving downlink data acknowledgments max and the maximum time a3 for receiving downlink data response packets. max Multiply by the maximum number of retransmissions n3 of the following data. max , that is, Q3= (t3 max + d3 max + a3 max ) × n3 max .
6. The time-division multiple-event wireless communication method according to claim 5, characterized in that: Based on the time slice duration, the minimum heartbeat cycle time T2 = n × (Q1 + Q2 + Q3) is estimated, then T ≥ T2.
7. The time-division multiple-event wireless communication method according to claim 1, characterized in that: In step S3, if a time slice has been allocated and there is no deviation, the current timestamp is included during the normal response to the sub-device.
8. The time-division multiple-event wireless communication method according to claim 1, characterized in that: It also includes step S6, where if the master device does not receive any data from the same sub-device for a set of L consecutive heartbeat cycles, it considers the sub-device to be offline, and the master device will generate an alarm message and send it to the user after determining that the sub-device is offline.
9. The time-division multiple-event wireless communication method according to claim 1, characterized in that: It also includes step S7, where if the sub-device does not receive a reply from the master device for N consecutive times, it considers the master device to be lost and sends a message to the master device to retry establishing communication with the master device.
Citation Information
Patent Citations
Satellite cluster self-organization networking method based on master-slave heterogeneous data transmission module
CN102202425A
Bidirectional wireless communication method, device and terminal
CN107181628A
