Internet of Things polling communication method
By receiving and processing leading signals and polling messages of central node devices in the Internet of Things polling communication, and determining the allocation data time window based on the time window allocation information, the data failure problem caused by environmental interference in the prior art is solved, and the data is improved Reliability and efficiency of data transmission.
Patent Information
- Application Number
- CN202411577567.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-11
AI Technical Summary
Existing IoT polling communication methods are prone to data failure under environmental interference, affecting communication efficiency and reliability.
The first preamble signal sent by the central node device is received within the first time period of each polling cycle, and if successfully received, a polling message is received within the polling time window, including the polling device range and time window allocation information. According to the time window allocation information and the device number of the terminal node device, the allocation data time window is determined, and the data to be transmitted is sent to the next terminal node device and the central node device within the time window.
Without affecting the polling efficiency and greatly increasing power consumption, the reliability of data transmission is improved and the number of transmission times of data to be transmitted is increased.
Smart Images

Figure CN119421189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an Internet of Things polling communication method. Background Art
[0002] The Internet of Things (IoT) refers to a network concept that connects physical objects to each other. IoT devices are widely used in life and production. IoT communication usually uses narrowband wireless communication technology to achieve data interaction through a central node corresponding to multiple terminal nodes.
[0003] In the prior art, the central node usually polls each terminal node in sequence, that is, each terminal node is polled once in the same polling cycle, so as to maximize the polling efficiency. Under the existing polling method, when environmental interference occurs, causing wireless signal fluctuations, it may cause the central node to fail to receive terminal node data when polling a certain terminal node. Summary of the invention
[0004] The purpose of the present invention is to address the deficiencies in the above-mentioned prior art and provide an Internet of Things polling communication method to solve the problems such as data failure that are prone to occur in the prior art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides an Internet of Things polling communication method, the method being applied to any terminal node device in an Internet of Things communication system, the method comprising:
[0007] Receiving a first pilot signal sent by a central node device within a first pilot time window within a first time period of each polling cycle;
[0008] If the first leading signal is successfully received within the first leading time window, a polling message sent by the central node device is received within the polling time window within the first time period, wherein the polling message includes: a polling device range of each polling cycle, and time window allocation information;
[0009] Determine, according to the time window allocation information and the device number of any terminal node device, an allocation data time window of any terminal node device in a second time period after the first time period;
[0010] If any of the terminal node devices is the first device within the polling device range, then within the allocated data time window, the data to be transmitted of any of the terminal node devices is sent to the next terminal node device and the central node device of the any of the terminal node devices.
[0011] Optionally, the time window allocation information includes: a starting position of a feedback time window, a length of a single data time window, and a number of data transmission times; and determining, according to the time window allocation information and a device number of any terminal node device, an allocated data time window of any terminal node device in a second time period after the first time period, includes:
[0012] The allocated data time window in the second time period is calculated according to the starting position of the feedback time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device.
[0013] Optionally, the time window allocation information further includes: the length of the leading time window; the calculating the allocated data time window in the second time period according to the starting position of the feedback time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device includes:
[0014] Calculate the second leading time window and the allocated data time window in the second time period according to the starting position of the feedback time window, the length of the leading time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device;
[0015] Before sending the data to be transmitted of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window, the method further includes:
[0016] In the second preamble time window, sending a second preamble signal to the next terminal node device and the central node device of any terminal node device;
[0017] The step of sending the to-be-transmitted data of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window includes:
[0018] In the allocated data time window, the data to be transmitted of any terminal node device is sent to the next terminal node device of any terminal node device and the central node device according to the number of data sending times.
[0019] Optionally, the method further comprises:
[0020] If any of the terminal node devices is an intermediate device within the range of the polling device, parsing the data to be transmitted of the previous terminal node device from a data message sent by the previous terminal node device of any of the terminal node devices;
[0021] In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the next terminal node device of any terminal node device and the central node device.
[0022] Optionally, the method further comprises:
[0023] If any of the terminal node devices is the last device within the polling device range, parsing the data to be transmitted of the previous terminal node device from the data message sent by the previous terminal node device of the any of the terminal node devices;
[0024] In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
[0025] Optionally, within the allocated data time window, sending the to-be-transmitted data of any terminal node device and the to-be-transmitted data of the previous terminal node device to the central node device includes:
[0026] In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device;
[0027] In the increase data time window after the allocation data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
[0028] Optionally, the method further comprises:
[0029] If the first preamble signal fails to be received within the first preamble time window, message reception within the polling time window is stopped.
[0030] Optionally, before receiving the first pilot signal sent by the central node device within the first pilot time window within the first time period of each polling cycle, the method further includes:
[0031] Receiving a synchronization message sent by the central node device within a third time period of the target polling cycle;
[0032] Signal synchronization is performed according to the synchronization message.
[0033] Optionally, the receiving a synchronization message sent by the central node device within a third time period of the target polling cycle includes:
[0034] After any of the terminal node devices is turned on and enters a network search state, receiving a synchronization message sent by the central node device within the third time period of each polling cycle;
[0035] or;
[0036] The synchronization message sent by the central node device is received within a third time period of the polling cycle after an interval of a preset number of polling cycles.
[0037] In a second aspect, an embodiment of the present application provides an Internet of Things polling communication method, the method being applied to a central node device in an Internet of Things communication system, the method comprising:
[0038] Sending a first pilot signal to each terminal node device within a polling device range of each polling cycle within a first pilot time window within a first time period of each polling cycle;
[0039] A polling message is continuously sent to each terminal node device multiple times within the polling time window within the first time period, and the polling message includes: a polling device range of each polling cycle and time window allocation information.
[0040] Compared with the prior art, this application has the following beneficial effects:
[0041] The present application provides an Internet of Things polling communication method, the method comprising: receiving a first leading signal sent by a central node device in a first leading time window in a first time period of each polling cycle; if the first leading signal is successfully received in the first leading time window, receiving a polling message sent by the central node device in the polling time window in the first time period, wherein the polling message comprises: a polling device range of each polling cycle, and time window allocation information; determining a data allocation time window of any terminal node device in a second time period after the first time period according to the time window allocation information and the device number of any terminal node device; if any terminal node device is the first device in the polling device range, then in the data allocation time window, sending the data to be transmitted of any terminal node device to the next terminal node device and the central node device of any terminal node device. Thus, without affecting the polling efficiency and significantly increasing the power consumption, the number of transmissions of the data to be transmitted is increased, and the reliability of data transmission is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A schematic diagram of an Internet of Things communication system provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a terminal device provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of a flow chart of an Internet of Things polling communication method provided in an embodiment of the present application;
[0046] Figure 4 A schematic flow chart of a method for calculating a time window of allocated data within a second time period;
[0047] Figure 5 A flowchart of a polling communication method for an intermediate device;
[0048] Figure 6 A flowchart of a polling communication method for a last-position device;
[0049] Figure 7 A flowchart of another method for polling communication of a last-position device;
[0050] Figure 8 A flowchart of a method for polling communication synchronization is provided;
[0051] Fig. 9 A schematic diagram of a flow chart of another Internet of Things polling communication method provided in an embodiment of the present application;
[0052] Fig.10 A schematic diagram of a polling cycle time window provided in an embodiment of the present application;
[0053] Fig.11 A schematic diagram of an Internet of Things polling communication device provided in an embodiment of the present application;
[0054] Fig.12 A schematic diagram of another IoT polling communication device provided in an embodiment of the present application.
[0055] Icon: 100-terminal node device, 200-central node device, 101-processor, 102-transmitter, 103-receiver, 1101-first receiving module, 1102-second receiving module, 1103-determination module, 1104-first sending module, 1201-second sending module, 1202-third sending module. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0057] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0058] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0059] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0060] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0061] Before explaining an Internet of Things polling communication method provided in an embodiment of the present application, an Internet of Things communication system to which the Internet of Things polling communication method is applied is first explained. Figure 1 A schematic diagram of an Internet of Things communication system provided in an embodiment of the present application.
[0062] like Figure 1 As shown, the Internet of Things communication system includes: a terminal node device 100, a central node device 200, a plurality of terminal node devices 100 are communicatively connected to a central node device 200, and a plurality of terminal node devices 100 are also communicatively connected to each other.
[0063] The terminal node device 100 and the central node device 200 may be the same or different terminal devices, and the terminal device is a device having sending, receiving, and processing functions.
[0064] The central node device 200 may send synchronization messages, pilot signals, and polling messages to multiple terminal node devices 100 , and the terminal node devices 100 may send pilot signals and transmit data to the central node device 200 and other terminal node devices 100 .
[0065] Figure 2This is a schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device may be a device with processing, sending, and receiving functions. Figure 2 As shown:
[0066] The terminal device includes: a processor 101, a transmitter 102, and a receiver 103. The processor 101 is connected to the transmitter 102 and the receiver 103 through a bus communication.
[0067] The receiver 103 is used to receive signals sent by other terminal devices and transmit them to the processor 101. The processor 101 is used to execute the method embodiment of the present application. The specific implementation method and technical effect are similar to the following embodiments and are not repeated here. The transmitter 102 is used to send the processing result of the processor 101 to other terminal devices.
[0068] For example, the terminal device may further include a display for displaying relevant data of the terminal device.
[0069] The following is an explanation of an Internet of Things polling communication method provided in an embodiment of the present application through a specific example. Figure 3 The present invention provides a flowchart of an Internet of Things polling communication method, wherein the execution subject of the method is any terminal node device. Figure 3 As shown, the method includes:
[0070] S101: Receive a first pilot signal sent by a central node device within a first pilot time window within a first time period of each polling cycle.
[0071] The preamble signal is a series of signals sent before the data signal is sent. After the preamble signal is sent, the valid data signal is sent. The function of the preamble signal is to remind the processor that the signal to be sent is valid, so pay attention to receiving it to avoid losing the valid signal.
[0072] For example, if the polling period is 1024 ms, the first leading time window may be [0 ms-10 ms].
[0073] S102: If the first preamble signal is successfully received within the first preamble time window, a polling message sent by the central node device is received within the polling time window within the first time period.
[0074] The polling message includes: the polling device range of each polling cycle, and the time window allocation information. For example, the polling device range includes the device number of the polling device, for example, the polling device range is: "1, 2, 3, 4, 5", and the order of the device numbers is pre-set. The terminal node device can determine which device comes first and which device comes later according to the size of the device number.
[0075] If the first leading signal is successfully received within the first leading time window, it means that any terminal node device is ready to receive the polling message, and then receives the polling message sent by the central node device within the polling time window within the first time period.
[0076] For example, if the polling cycle is 1024ms, the polling time window can be [10ms-40ms]. The time for sending and receiving a polling message is 10ms, and three consecutive polling messages are set to be sent within the polling time window to improve the reception success rate of the terminal node device. However, for the terminal node device, after receiving the polling message for the first time, it will no longer accept subsequent polling messages in the current polling cycle to avoid repeated reception and reduce power consumption.
[0077] S103: Determine, according to the time window allocation information and the device number of any terminal node device, an allocation data time window of any terminal node device in a second time period after the first time period.
[0078] Multiple time windows are determined according to the time window allocation information, and then the allocated data time window of each terminal node device is determined according to the device number of the terminal node device in the polling device range of each polling cycle and in the order of the device number.
[0079] The time window allocation rule is: the allocated data time window of the terminal node device with a smaller device number is earlier than the allocated data time window of the terminal node device with a larger device number.
[0080] S104: If any terminal node device is the first device within the polling device range, the data to be transmitted of any terminal node device is sent to the next terminal node device and the central node device of any terminal node device within the allocated data time window.
[0081] If any terminal node device is the first device within the polling device range, the first device has the first allocated data time window, and the first device sends its data to be transmitted to the next terminal node device and the central node device. This allows the central node device to receive the data to be transmitted, the next terminal node device to receive the data to be transmitted, and the next terminal node device to send the received data to be transmitted from the first device to the central node device. Thus, without affecting the polling efficiency and significantly increasing the power consumption, the number of times the data to be transmitted is sent is increased, and the reliability of data transmission is improved.
[0082] In summary, in this embodiment, the first leading signal sent by the central node device is received in the first leading time window in the first time period of each polling cycle; if the first leading signal is successfully received in the first leading time window, the polling message sent by the central node device is received in the polling time window in the first time period, wherein the polling message includes: the polling device range of each polling cycle, and the time window allocation information; according to the time window allocation information and the device number of any terminal node device, the allocated data time window of any terminal node device in the second time period after the first time period is determined; if any terminal node device is the first device in the polling device range, then within the allocated data time window, the data to be transmitted of any terminal node device is sent to the next terminal node device and the central node device of any terminal node device. Thus, without affecting the polling efficiency and significantly increasing the power consumption, the number of times the data to be transmitted is sent is increased, and the reliability of data transmission is improved.
[0083] In the above Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, the time window allocation information includes: the starting position of the feedback time window, the length of a single data time window, and the number of data transmission times.
[0084] The starting position of the feedback time window is the starting time point when the first device sends the data to be transmitted. The length of a single data time window is the time range in which each terminal node device can send the data to be transmitted. The number of data transmissions is the number of times the terminal node device can continuously repeat the transmission of the data to be transmitted within its corresponding time window.
[0085] Determining, in S103, the allocated data time window of any terminal node device in the second time period after the first time period according to the time window allocation information and the device number of any terminal node device, includes:
[0086] The allocated data time window in the second time period is calculated according to the starting position of the feedback time window, the length of a single data time window, the number of data transmissions, and the device number of any terminal node device.
[0087] Multiple time windows are determined based on the starting position of the feedback time window, the length of a single data time window, and the number of data transmissions. Then, based on the device number of the terminal node device in the polling device range of each polling cycle, the allocated data time window for each terminal node device is determined in order of the size of the device number.
[0088] In summary, in this embodiment, the time window allocation information includes: the starting position of the feedback time window, the length of a single data time window, and the number of data transmissions; according to the starting position of the feedback time window, the length of a single data time window, the number of data transmissions, and the device number of any terminal node device, the allocated data time window in the second time period is calculated. Thus, the allocated data time window is accurately determined according to the time window allocation information.
[0089] Based on the above embodiment, the embodiment of the present application further provides a method for calculating a time window for allocating data within a second time period. Figure 4 FIG. 1 is a flow chart of a method for calculating the time window of the allocated data in the second time period. Figure 4 As shown, the time window allocation information also includes: the length of the leading time window; according to the starting position of the feedback time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device, the allocated data time window in the second time period is calculated, including:
[0090] S201. Calculate a second leading time window and an allocated data time window in a second time period according to a starting position of a feedback time window, a leading time window length, a length of a single data time window, the number of data transmissions, and a device number of any terminal node device.
[0091] The calculation method of the second leading time window and the allocated data time window in the second time period is shown in the following formula (1):
[0092] t send =t sta +(id-id sta )×(t pre +t pdsch ×p num )
[0093] Among them, id sta is the first device number, id is the device number of any terminal node device, t sta is the starting position of the feedback time window, t pre is the leading time window length, t pdsch is the length of a single data time window, p num is the number of data transmissions, t send is the starting position of the second leading time window.
[0094] For example, id sta is 1, id is 20, t sta is 41, t pre =10, t pdsch is 10, p num is 1. Then we can calculate t sendis 421, and the second leading time window is calculated as [421ms-430ms], and the allocated data time window is [431ms-440ms].
[0095] Before sending the to-be-transmitted data of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window in S104, the method further includes:
[0096] S202: Send a second preamble signal to the next terminal node device and the central node device of any terminal node device in a second preamble time window.
[0097] The function of sending the second preamble signal is similar to that of sending the first preamble signal, and will not be described in detail here.
[0098] In S104, within the allocated data time window, the data to be transmitted of any terminal node device is sent to the next terminal node device and the central node device of any terminal node device, including:
[0099] S203: within the allocated data time window, according to the number of data transmissions, the data to be transmitted of any terminal node device is sent to the next terminal node device and the central node device of any terminal node device.
[0100] Setting the number of data occurrences can increase the success rate of data sending.
[0101] In summary, in this embodiment, the time window allocation information also includes: the length of the leading time window; according to the starting position of the feedback time window, the length of the leading time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device, the second leading time window and the allocated data time window in the second time period are calculated; in the second leading time window, the second leading signal is sent to the next terminal node device and the central node device of any terminal node device; in the allocated data time window, according to the number of data transmissions, the data to be transmitted of any terminal node device is sent to the next terminal node device and the central node device of any terminal node device. Thus, the allocated data time window is accurately determined according to the time window allocation information.
[0102] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for polling communication of an intermediate device. Figure 5 FIG. 1 is a flow chart of a polling communication method of an intermediate device. Figure 5 As shown, the method also includes:
[0103] S301: If any terminal node device is an intermediate device within the polling device range, parse the data to be transmitted of the previous terminal node device from the data message sent by the previous terminal node device of any terminal node device.
[0104] S302: within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the next terminal node device of any terminal node device and the central node device.
[0105] The data to be transmitted of the current terminal node device and the data to be transmitted of the previous terminal node device are sent together, so that each piece of data to be transmitted can be sent to the central node device twice, thereby improving the reliability of data transmission.
[0106] For example, if the intermediate device is the second ranked device, the data to be transmitted of the current terminal node device and the data to be transmitted of the previous terminal node device are directly merged and sent together. If the intermediate device is the third ranked device or later, the data to be transmitted of the previous terminal node device is first parsed from the data message sent by the previous terminal node device, and then the data to be transmitted of the current terminal node device and the data to be transmitted of the previous terminal node device are merged and sent together.
[0107] In summary, in this embodiment, if any terminal node device is an intermediate device within the polling device range, the data to be transmitted of the previous terminal node device is parsed from the data message sent by the previous terminal node device of any terminal node device; within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the next terminal node device of any terminal node device and the central node device. Thus, the reliability of data transmission is improved.
[0108] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for polling communication of the last device. Figure 6 FIG. 1 is a flow chart of a polling communication method for a last-position device. Figure 6 As shown, the method also includes:
[0109] S401: If any terminal node device is the last device in the polling device range, parse the data to be transmitted of the previous terminal node device from the data message sent by the previous terminal node device of any terminal node device.
[0110] S402: within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
[0111] There is no terminal node device after the last device, so it is only necessary to send the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device to the central node device.
[0112] In summary, in this embodiment, if any terminal node device is the last device in the polling device range, the data to be transmitted of the previous terminal node device is parsed from the data message sent by the previous terminal node device of any terminal node device; within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device. Thus, the reliability of data transmission is improved.
[0113] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides another method for polling communication of the last device. Figure 7 FIG. 2 is a flow chart of another method for polling communication of a last-position device. Figure 7 As shown, in S402, within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device, including:
[0114] S501. Within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
[0115] S502: within the increase data time window after the allocation data time window, the to-be-transmitted data of any terminal node device and the to-be-transmitted data of the previous terminal node device are sent to the central node device.
[0116] There is no terminal node device after the last device, and no terminal node device will retransmit the data to be transmitted by the last device. Therefore, a data transmission time window is added to send the data to be transmitted to the central node device again.
[0117] In summary, in this embodiment, within the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device; within the added data time window after the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device. Thus, the reliability of data transmission is improved.
[0118] exist Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, the method further includes:
[0119] If the first preamble signal reception fails within the first preamble time window, the message reception within the polling time window is stopped.
[0120] If the first leading signal reception fails within the first leading time window, the processor is not ready to receive the received message, which may cause the subsequent polling message reception to fail, and the message reception within the polling time window is stopped, and the message is received again in the next polling cycle.
[0121] In summary, in this embodiment, if the first preamble signal reception fails within the first preamble time window, the message reception within the polling time window is stopped, thereby improving the reliability of data transmission.
[0122] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for polling communication synchronization. Figure 8 FIG. 1 is a flow chart of a method for polling communication synchronization. Figure 8 As shown, before receiving the first pilot signal sent by the central node device within the first pilot time window within the first time period of each polling cycle in S101, the method further includes:
[0123] S601: Receive a synchronization message sent by a central node device within a third time period of a target polling cycle.
[0124] The synchronization message includes: synchronization frame number and frequency hopping rule.
[0125] The terminal node device calculates its own time offset and frequency offset based on the synchronization frame number in the synchronization message, and updates the time offset and frequency offset to the system to achieve synchronization.
[0126] The frequency hopping rule is a field message carried in the synchronization message. The frequency hopping rule is used to describe the frequency configuration of the polling message between the central node device and the terminal node device to reduce the interference of the frequency points.
[0127] S602: Perform signal synchronization according to the synchronization message.
[0128] Signal synchronization is performed with the central node device according to the synchronization frame number and frequency hopping rules to improve data transmission accuracy.
[0129] In summary, in this embodiment, the synchronization message sent by the central node device is received within the third time period of the target polling cycle, and signal synchronization is performed according to the synchronization message, thereby improving data transmission accuracy.
[0130] In the above Figure 8 On the basis of the corresponding embodiment, in another embodiment of the present application, receiving the synchronization message sent by the central node device within the third time period of the target polling cycle in S601 includes:
[0131] After any terminal node device is powered on and enters the network search state, a synchronization message sent by the central node device is received within the third time period of each polling cycle.
[0132] Data synchronization is required every time the computer is turned on.
[0133] or.
[0134] A synchronization message sent by the central node device is received within a third time period of a polling cycle after an interval of a preset number of polling cycles.
[0135] For example, the preset number may be 10, that is, synchronization is performed once every 10 polling cycles.
[0136] For example, if the polling cycle is 1024ms, the third time period may be [1001ms-1024ms]. In the third time period of each polling cycle, it is necessary to determine whether to receive a synchronization message, and the synchronization message is received only in the third time period after every 10 polling cycles.
[0137] In summary, in this embodiment, after any terminal node device is powered on and enters the network search state, the synchronization message sent by the central node device is received in the third time period of each polling cycle; or, the synchronization message sent by the central node device is received in the third time period of the polling cycle after a preset number of polling cycles. Thus, the data transmission accuracy is improved.
[0138] Another Internet of Things polling communication method provided in an embodiment of the present application is explained below through a specific example. Fig. 9 This is a flow chart of another IoT polling communication method provided by the embodiment of the present application, in which the execution subject of the method is a central node device. Fig. 9 As shown, the method is applied to a central node device in an Internet of Things communication system, and the method includes:
[0139] S701: Send a first pilot signal to each terminal node device within a polling device range of each polling cycle within a first pilot time window within a first time period of each polling cycle.
[0140] S702: Send a polling message to each terminal node device multiple times in a polling time window within a first time period.
[0141] The polling message includes: the polling device range for each polling cycle, and time window allocation information.
[0142] Furthermore, data to be transmitted sent by the terminal node device is received within a second time period.
[0143] In summary, in this embodiment, the first leading signal is sent to each terminal node device within the polling device range of each polling cycle in the first leading time window within the first time period of each polling cycle; polling messages are sent to each terminal node device multiple times in succession within the polling time window within the first time period, and the polling message includes: the polling device range of each polling cycle, and the time window allocation information. Thus, without affecting the polling efficiency and significantly increasing the power consumption, the number of transmissions of the data to be transmitted is increased, and the reliability of data transmission is improved.
[0144] In another embodiment of the present application, the embodiment of the present application provides a schematic diagram of a polling cycle time window. Fig.10 A schematic diagram of a polling cycle time window provided in an embodiment of the present application.
[0145] like Fig.10 As shown, the polling cycle is 1024ms, the first leading time window can be [0ms-10ms], the polling time window can be [10ms-40ms], and it is set to send three polling messages continuously within the polling time window. The number of devices in each polling cycle is 48, the second time period is [41ms-1000ms], the second leading time window of the 20th device is [421ms-430ms], the data allocation time window is [431ms-440ms], and the third time period is [1001ms-1024ms].
[0146] The following is a description of an Internet of Things polling communication device and storage medium provided by the present application for execution. The specific implementation process and technical effects are described above and will not be repeated below.
[0147] Fig.11 A schematic diagram of an Internet of Things polling communication device provided in an embodiment of the present application, such as Fig.11 As shown, the device comprises:
[0148] The first receiving module 1101 is configured to receive a first pilot signal sent by a central node device within a first pilot time window within a first time period of each polling cycle.
[0149] The second receiving module 1102 is used to receive a polling message sent by the central node device in a polling time window in a first time period if the first leading signal is successfully received in the first leading time window, wherein the polling message includes: a polling device range for each polling cycle, and time window allocation information.
[0150] The determination module 1103 is used to determine the allocated data time window of any terminal node device in the second time period after the first time period according to the time window allocation information and the device number of any terminal node device.
[0151] The first sending module 1104 is used to send the to-be-transmitted data of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window if any terminal node device is the first device within the polling device range.
[0152] Further, the determination module 1103 is specifically used for time window allocation information including: the starting position of the feedback time window, the length of a single data time window, and the number of data transmissions; based on the starting position of the feedback time window, the length of a single data time window, the number of data transmissions and the device number of any terminal node device, the allocated data time window in the second time period is calculated.
[0153] Furthermore, the determination module 1103 is specifically used for time window allocation information also including: the length of the leading time window; based on the starting position of the feedback time window, the length of the leading time window, the length of a single data time window, the number of data transmissions and the device number of any terminal node device, calculate the second leading time window and the allocated data time window in the second time period.
[0154] Furthermore, the first sending module 1104 is further configured to send a second preamble signal to the next terminal node device and the central node device of any terminal node device in the second preamble time window.
[0155] Furthermore, the first sending module 1104 is also used to send the to-be-transmitted data of any terminal node device to the next terminal node device and the central node device of any terminal node device according to the number of data transmissions within the allocated data time window.
[0156] Furthermore, the determination module 1103 is further configured to parse the to-be-transmitted data of the previous terminal node device from the data message sent by the previous terminal node device of any terminal node device if any terminal node device is an intermediate device within the polling device range.
[0157] Furthermore, the first sending module 1104 is also used to send the to-be-transmitted data of any terminal node device and the to-be-transmitted data of the previous terminal node device to the next terminal node device of any terminal node device and the central node device within the allocated data time window.
[0158] Furthermore, the determination module 1103 is further configured to parse the to-be-transmitted data of the previous terminal node device from the data message sent by the previous terminal node device of any terminal node device if any terminal node device is the last device in the polling device range.
[0159] Furthermore, the first sending module 1104 is further configured to send the to-be-transmitted data of any terminal node device and the to-be-transmitted data of the previous terminal node device to the central node device within the allocated data time window.
[0160] Furthermore, the first sending module 1104 is also used to send the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device to the central node device within the allocated data time window; and to send the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device to the central node device within the increased data time window after the allocated data time window.
[0161] Furthermore, the determination module 1103 is further configured to stop receiving messages within the polling time window if the first preamble signal reception fails within the first preamble time window.
[0162] Furthermore, the first receiving module 1101 is further configured to receive a synchronization message sent by the central node device within a third time period of the target polling cycle; and perform signal synchronization according to the synchronization message.
[0163] Furthermore, the first receiving module 1101 is also used to receive the synchronization message sent by the central node device within the third time period of each polling cycle after any terminal node device is turned on and enters the network search state; or, to receive the synchronization message sent by the central node device within the third time period of the polling cycle after an interval of a preset number of polling cycles.
[0164] Fig.12 A schematic diagram of another IoT polling communication device provided in an embodiment of the present application, such as Fig.12 As shown, the device comprises:
[0165] The second sending module 1201 is used to send a first pilot signal to each terminal node device within a polling device range of each polling cycle in a first pilot time window within a first time period of each polling cycle.
[0166] The third sending module 1202 is used to send polling messages to each terminal node device multiple times in a polling time window within the first time period, and the polling message includes: a polling device range in each polling cycle and time window allocation information.
[0167] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.
[0168] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0170] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0171] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. An Internet of Things polling communication method, characterized in that: The method is applied to any terminal node device in an Internet of Things communication system, and the method comprises: Receiving a first pilot signal sent by a central node device within a first pilot time window within a first time period of each polling cycle; If the first leading signal is successfully received within the first leading time window, a polling message sent by the central node device is received within the polling time window within the first time period, wherein the polling message includes: a polling device range of each polling cycle, and time window allocation information; Determine, according to the time window allocation information and the device number of any terminal node device, an allocation data time window of any terminal node device in a second time period after the first time period; If any of the terminal node devices is the first device within the polling device range, then within the allocated data time window, the data to be transmitted of any of the terminal node devices is sent to the next terminal node device and the central node device of the any of the terminal node devices.
2. The method according to claim 1, characterized in that The time window allocation information includes: the starting position of the feedback time window, the length of a single data time window, and the number of data transmissions; the step of determining, according to the time window allocation information and the device number of any terminal node device, the allocated data time window of any terminal node device in a second time period after the first time period includes: The allocated data time window in the second time period is calculated according to the starting position of the feedback time window, the length of the single data time window, the number of data transmissions and the device number of any terminal node device.
3. The method according to claim 2, characterized in that The time window allocation information further includes: the length of the leading time window; the calculation of the allocated data time window in the second time period according to the starting position of the feedback time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device includes: Calculate the second leading time window and the allocated data time window in the second time period according to the starting position of the feedback time window, the length of the leading time window, the length of the single data time window, the number of data transmissions, and the device number of any terminal node device; Before sending the data to be transmitted of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window, the method further includes: In the second preamble time window, sending a second preamble signal to the next terminal node device and the central node device of any terminal node device; The step of sending the to-be-transmitted data of any terminal node device to the next terminal node device and the central node device of any terminal node device within the allocated data time window includes: In the allocated data time window, the data to be transmitted of any terminal node device is sent to the next terminal node device of any terminal node device and the central node device according to the number of data sending times.
4. The method according to claim 1, characterized in that: The method further comprises: If any of the terminal node devices is an intermediate device within the range of the polling device, parsing the data to be transmitted of the previous terminal node device from a data message sent by the previous terminal node device of any of the terminal node devices; In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the next terminal node device of any terminal node device and the central node device.
5. The method according to claim 1, characterized in that The method further comprises: If any of the terminal node devices is the last device within the polling device range, parsing the data to be transmitted of the previous terminal node device from the data message sent by the previous terminal node device of the any of the terminal node devices; In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
6. The method according to claim 5, characterized in that The step of sending the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device to the central node device within the allocated data time window includes: In the allocated data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device; In the increase data time window after the allocation data time window, the data to be transmitted of any terminal node device and the data to be transmitted of the previous terminal node device are sent to the central node device.
7. The method according to claim 1, characterized in that The method further comprises: If the first preamble signal fails to be received within the first preamble time window, message reception within the polling time window is stopped.
8. The method according to claim 1, characterized in that Before receiving the first leading signal sent by the central node device in the first leading time window in the first time period of each polling cycle, the method further includes: Receiving a synchronization message sent by the central node device within a third time period of the target polling cycle; Signal synchronization is performed according to the synchronization message.
9. The method according to claim 8, characterized in that The receiving a synchronization message sent by the central node device within a third time period of the target polling cycle includes: After any of the terminal node devices is turned on and enters a network search state, receiving a synchronization message sent by the central node device within the third time period of each polling cycle; or, The synchronization message sent by the central node device is received within a third time period of the polling cycle after an interval of a preset number of polling cycles.
10. An Internet of Things polling communication method, characterized in that: The method is applied to a central node device in an Internet of Things communication system, and the method comprises: Sending a first pilot signal to each terminal node device within a polling device range of each polling cycle within a first pilot time window within a first time period of each polling cycle; Continuously multiple times in the polling time window within the first time period to each terminal node device Sending a polling message, the polling message including: the polling device range of each polling cycle, and time window allocation information.
Citation Information
Cited By
Multi-channel communication method and multi-channel communication system
CN121665194A