Method, device and equipment for sending data packet

By adjusting the packet sending time, the terminal device receives the packet within the time of the preamble part when the next wake-up after the packet is lost, solving the problem of packet loss in the wireless system of the Internet of Things and reducing the terminal device's Power consumption.

CN114885407BActive Publication Date: 2024-11-01SHENZHEN TANDA TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210599896.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-11-01
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

In the Internet of Things wireless system, the terminal node device may not detect the preamble when it wakes up in non-preamble time to receive data, resulting in packet loss. The prior art is difficult to effectively solve the problem that the terminal node can wake up next time after packet loss Issue of receiving packets.

Method used

By acquiring the wake-up time and listening cycle of the terminal device, adjusting the transmission time of the data packet, so that the terminal device is in the preamble part of the data packet during the next wake-up after the packet is lost, thereby ensuring that the data packet is received and shortening the reception. and reduce power consumption.

Benefits of technology

It realizes that the terminal device can receive data packets during the next wake-up after packet loss, shortens the time in the receiving state and further reduces the power consumption of the terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885407B_ABST
    Figure CN114885407B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and equipment for sending data packets, the method comprising: obtaining the Kth wake-up time of a terminal device and the listening period of the terminal device, the Kth wake-up time being within the time of the data part of the Sth data packet sent to the terminal device, each data packet comprising a preamble part and a data part, wherein K is a positive integer and S is a positive integer; according to the Kth wake-up time and the listening period, the S+ith data packet is sent to the terminal device, the K+1th wake-up time of the terminal device is within the time of the preamble part of the S+ith data packet, wherein i≥1, i is an integer. The method provided by the present application solves the problem of high power consumption of terminal node devices and shortens the receiving state time of the terminal node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to a method, device and equipment for sending a data packet. Background Art

[0002] In the wireless system of the Internet of Things, terminal node devices have both low power consumption requirements and real-time requirements. Therefore, in order to reduce the power consumption of terminal node devices, the gateway node sends data to the terminal node devices in the form of continuous short packets. However, if the terminal node wakes up to receive data during the non-preamble code time, it will not detect the preamble code, and thus thinks that there is no data in the air, resulting in packet loss.

[0003] Therefore, how to ensure that the terminal node device can receive the data packet after the next wake-up after the packet loss is an urgent problem to be solved in the current wireless system data packet transmission. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus and device for sending data packets, which solves the problem of high power consumption of terminal node devices and shortens the receiving time of the terminal node by ensuring that the next wake-up time of the terminal node device after packet loss is within the time of the leading code part of the data packet sent by the gateway node.

[0005] In a first aspect, an embodiment of the present application provides a method for sending a data packet, the method comprising: obtaining the Kth wake-up time of a terminal device and a listening period of the terminal device, the Kth wake-up time being within the time of the data portion of the Sth data packet sent to the terminal device, each data packet comprising a preamble portion and a data portion, wherein K is a positive integer and S is a positive integer; according to the Kth wake-up time and the listening period, sending the S+ith data packet to the terminal device, the K+1th wake-up time of the terminal device being within the time of the preamble portion of the S+ith data packet, wherein i≥1 and i is an integer.

[0006] The first aspect provides a method for sending data packets. After the Sth data packet sent by the gateway device is lost during the Kth wake-up time of the terminal device, the gateway device sends S+i data packets to the terminal device according to the Kth wake-up time and the listening period of the terminal device, so that the time when the terminal device wakes up for the K+1th time is finally within the time of the leading code part of the S+i data packets, so that the terminal device can receive the data packet during the next wake-up time after the packet loss, thereby greatly shortening the receiving state time of the terminal device and further reducing the power consumption of the terminal device.

[0007] In a possible implementation of the first aspect, the method further includes: determining the time length occupied by the S+i-th data packet according to the time length occupied by the preamble code part of the S+i-th data packet and the time length occupied by the data part of the S+i-th data packet; determining the value of i according to the monitoring period and the time length occupied by the S+i-th data packet. In this implementation, the time for sending the S+i-th preamble code can determine how many data packets the gateway node needs to send after packet loss until the next terminal device wakes up.

[0008] In a possible implementation of the first aspect, the method further includes: determining the K+1th wake-up time of the terminal device according to the Kth wake-up time and the listening period of the terminal device; and determining the time for sending the preamble of the S+ith data packet to the terminal device according to the K+1th wake-up time. In this implementation, the K+1th wake-up time of the terminal device can be determined by the Kth wake-up time and the listening period of the terminal device, and then the K+1th wake-up time is used to adjust the time for sending the preamble of the S+ith data packet to the terminal device.

[0009] In a possible implementation of the first aspect, the time for sending the preamble of the S+i-th data packet to the terminal device is determined according to the K+1-th wake-up time, including: determining the time for sending the first preamble part of the S+i-th data packet within the K+1-th wake-up time according to the K+1-th wake-up time and the data packet time of the S-th data packet sent to the terminal device; when the K+1-th wake-up time of the terminal device partially overlaps or does not overlap with the time of the first preamble part, adjusting the time of the first preamble part to the time of the preamble part. In this implementation, by judging whether the K+1-th wake-up time is within the first preamble time of the S+i-th data packet, it is judged whether the first preamble time needs to be adjusted. When the K+1-th wake-up time of the terminal device partially overlaps or does not overlap with the time of the first preamble part, it is necessary to further adjust the first preamble time so that the K+1-th wake-up time is within the first preamble time.

[0010] In a possible implementation of the first aspect, the method further includes: when the K+1th wake-up time of the terminal device is within the time of the first preamble part, using the time of the first preamble part as the time of the preamble part. In this implementation, when the K+1th wake-up time of the terminal device is within the time of the first preamble part, there is no need to adjust the first preamble time.

[0011] In a possible implementation manner of the first aspect, the method further includes: determining a time length occupied by a data portion of the S+i th data packet according to a single-byte air transmission duration and a data transmission length.

[0012] In a second aspect, a communication device is provided, which includes a unit for executing each step in the above first aspect or any possible implementation manner of the first aspect.

[0013] According to a third aspect, a communication device is provided, comprising at least one processor and a memory, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation manner of the first aspect.

[0014] In a fourth aspect, a communication device is provided, comprising at least one processor and an interface circuit, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation of the first aspect.

[0015] In a fifth aspect, a device for sending a data packet is provided, the device comprising at least one processor, and the at least one processor is coupled to at least one memory: the at least one processor is used to execute a computer program or instruction stored in the at least one memory, so that the data packet sending device executes the method in the above first aspect or any possible implementation of the first aspect.

[0016] According to a sixth aspect, a computer program product is provided. The computer program product comprises a computer program. When the computer program is executed by a processor, the computer program is used to execute the method in the first aspect or any possible implementation manner of the first aspect.

[0017] In a seventh aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed, it is used to execute the method in the first aspect or any possible implementation of the first aspect.

[0018] In an eighth aspect, a chip or integrated circuit is provided, which includes: a processor, used to call and run a computer program from a memory, so that a device equipped with the chip or integrated circuit executes the method in the first aspect or any possible implementation of the first aspect.

[0019] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0020] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0021] The data packet sending method provided by the present application, after the Sth data packet sent by the gateway device is lost during the Kth wake-up time of the terminal device, the gateway device sends S+i data packets to the terminal device according to the Kth wake-up time and the listening period of the terminal device, so that the time when the terminal device wakes up for the K+1th time is finally within the time of the leading code part of the S+i data packets, so that the terminal device can receive the data packet during the next wake-up time after the packet loss, thereby greatly shortening the receiving state time of the terminal device and further reducing the power consumption of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 A schematic diagram of the monitoring state of a terminal node device provided in an embodiment of the present application is shown;

[0024] Figure 2 A schematic diagram showing a gateway node sending a gateway data packet provided by an embodiment of the present application is shown;

[0025] Figure 3 A schematic diagram showing that the gateway data packet provided by the embodiment of the present application is a continuous short packet;

[0026] Figure 4 A schematic flow chart of a method for sending a data packet provided in an embodiment of the present application is shown;

[0027] Figure 5 A schematic diagram showing the time range for waking up a terminal device after packet loss provided by an embodiment of the present application is shown;

[0028] Figure 6 A schematic diagram showing an example in which the time range for a terminal device to wake up again after packet loss provided by an embodiment of the present application is not completely within the time range of the first preamble code;

[0029] Figure 7 A schematic diagram showing another example provided by an embodiment of the present application in which the time range for a terminal device to wake up after packet loss is not completely within the preamble time range;

[0030] Figure 8 A schematic diagram showing that the time range for a terminal device to wake up again after packet loss provided by an embodiment of the present application is completely within the preamble time range;

[0031] Fig. 9A schematic diagram of a data packet sending device provided in an embodiment of the present application is shown;

[0032] Fig.10 A schematic diagram of the structure of a data packet sending device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0033] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0034] First, before introducing the method and system provided by the present application, it is necessary to explain some of the terms that will be mentioned below. When the present application mentions the terms "first" or "second" and other ordinal numbers, unless they do express the meaning of order according to the context, it should be understood that they are only used for distinction.

[0035] The terms "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other implementations or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0036] Unless otherwise specified, the " / " in this document generally indicates that the objects before and after the association are in an "or" relationship. For example, A / B can mean A or B. The term "and / or" is only a description of the association relationship between the objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of this application, "multiple" means two or more.

[0037] In the data packet transmission process based on the wireless system of the Internet of Things, the terminal node device wakes up at regular intervals to monitor the air data. When the terminal node device detects a data stream, it enters the receiving mode and maintains a short receiving state to receive data. If the terminal node device does not detect a data stream, it continues to be in the sleep mode, that is, the terminal device is always in the state of "sleep-detect-sleep-detect...". The sleep state cannot receive data, and can only receive data after detecting a data stream in the air. Figure 1 FIG. 4 shows a schematic diagram of the monitoring state of a terminal node device provided in an embodiment of the present application. Figure 1As shown, the terminal node device wakes up at regular intervals to listen to whether there is data being sent over the air.

[0038] When there is a need for data transmission, the gateway node will send a data packet, which consists of a preamble part and a data part. The main function of the preamble part is to inform the terminal node that there is a data stream in the air that needs to be received. After the terminal node listens to the preamble part, it thinks that there is data being sent, and then enters the receiving state to wait for receiving data. When the terminal node is in the dormant state, if the gateway node needs to send data to the terminal node at this time, the gateway needs to transmit a data frame longer than the listening period to ensure reliable delivery to the terminal node. Figure 2 A schematic diagram showing a gateway node sending a gateway data packet is shown in FIG. Figure 2 As shown, the terminal node device can detect the leading part only when the leading part time of the gateway data packet is greater than the monitoring period of the terminal node device.

[0039] Therefore, when the gateway node sends only one gateway data packet, the terminal node device needs to maintain a receiving state greater than or equal to the preamble. Exemplarily, when the listening period of the terminal device is 4s, the preamble part of the gateway node sending the gateway data packet must be greater than or equal to 4s, and the terminal node also needs to maintain a receiving state of about 4s after listening to the preamble part to wait for the receiving data part. It is understandable that in some systems, maintaining a receiving state for a long time will undoubtedly consume a lot of power. If the terminal device is awakened by other devices or interference sources while waiting for the receiving state, there will be an extra part of useless power consumption.

[0040] In view of the above problems, the solution in the related art is that the gateway node sends multiple gateway data packets, that is, shortens the time of the preamble code. Figure 3 A schematic diagram showing that the gateway data packet provided by the embodiment of the present application is a continuous short packet, from Figure 3 It can be seen that the gateway data packets of the gateway node are in the form of continuous short packets, and it can also be seen that the preamble time of each short packet is significantly reduced. Then the time that the terminal node needs to maintain the receiving state is also reduced, so the power consumption of the terminal node device will also be reduced. However, this method has a disadvantage that if the terminal node device wakes up to receive data during the non-preamble time, it will not detect the preamble, and thus think that there is no data in the air, and then go into sleep again, resulting in packet loss.

[0041] Then, when the terminal node device wakes up to detect packet loss during the non-preamble time, the ideal time to wake up next time is exactly within the preamble time range of the gateway node. In this way, the terminal node device can receive the data packet within two monitoring cycles at most, and the receiving time of the terminal node device can be greatly shortened.

[0042] In view of this, an embodiment of the present application provides a data packet sending method, which mainly includes that after the Sth data packet sent by the gateway device is lost during the Kth wake-up time of the terminal device, the gateway device sends S+i data packets to the terminal device according to the Kth wake-up time and the listening period of the terminal device, so that the time when the terminal device wakes up for the K+1th time is within the time of the preamble code part of the S+i data packets, so that the terminal device can receive the data packet during the next wake-up time after the packet loss, thereby greatly shortening the receiving state time of the terminal device and further reducing the power consumption of the terminal device.

[0043] The following is a detailed description of the data packet sending method provided in the embodiment of the present application. Figure 4 The schematic flow chart of the data packet sending method provided in the embodiment of the present application is shown. The execution subject of the method is a gateway device. Figure 4 As shown, the method 400 includes 410 to 440 .

[0044] S410. The gateway device determines the K+1th wake-up time of the terminal device based on the Kth wake-up time of the terminal device and the listening period of the terminal device. The Kth wake-up time is within the time of the data portion of the Sth data packet sent to the terminal device, where K is a positive integer and S is a positive integer.

[0045] In the embodiment of the present application, in order to ensure that the gateway device just sends the preamble part of the data packet when the terminal device wakes up next time after packet loss, it is necessary to determine the time range for the terminal device to wake up again after packet loss.

[0046] When the K-th wake-up time of the terminal device is within the time of the data portion of the S-th data packet sent by the gateway node to the terminal device, it indicates that packet loss occurs in the K-th wake-up of the terminal device.

[0047] It can be understood that the data packet sent by the gateway node to the terminal device includes a preamble code part and a data part. Therefore, the time of sending the data packet includes the time of the preamble code part and the time of the data part. When the terminal device wake-up time is at the time of the data part of the data packet, the terminal device mistakenly thinks that no data is sent and therefore enters a sleep state.

[0048] In some embodiments, the K+1th wake-up time of the terminal device is the sum of the Kth wake-up time of the terminal device and the monitoring period of the terminal device.

[0049] It should be noted that the monitoring period can be set according to the specific situation and is not limited in the embodiment of the present application.

[0050] For example, Figure 5The following is a schematic diagram showing the time range for waking up a terminal device after packet loss provided by an embodiment of the present application. Figure 5 As shown, when the terminal device is in the state of "sleep-detection-sleep-detection...", the detection state is just 1-1.5S, but the gateway device does not send the preamble code at this time, or the gateway device is sending the data part at this time, so the terminal device cannot detect the preamble code and enters the sleep state, resulting in packet loss. Then the terminal device will wake up again for detection in the next monitoring cycle. Assuming the preset monitoring cycle is 4s, the time range for the terminal device to wake up after packet loss is 5-5.5s.

[0051] S420. The gateway device determines the time to send the first preamble part of the S+i th data packet within the K+1 th wake-up time according to the K+1 th wake-up time of the terminal device and the data packet time of the S th data packet sent to the terminal device.

[0052] In an embodiment of the present application, to determine whether the K+1th wake-up time of the terminal device is within the time when the gateway device sends the preamble code part of the S+ith data packet, it is first necessary to determine the time when the first preamble code part of the S+ith data packet is sent within the K+1th wake-up time.

[0053] It should be noted that i ≥ 1, and i is an integer. In other words, after the Sth data packet sent by the gateway node is lost, it can be guaranteed that the S+1th data packet sent can be received by the terminal device when it wakes up next time. Of course, the terminal device can also receive the S+2th or S+3th data packet sent by the gateway node when it wakes up next time. This application does not limit the number of data packets sent by the gateway device that the terminal device receives.

[0054] Then, in an embodiment of the present application, the gateway device can calculate the time when the gateway node sends the first preamble code part of the S+ith data packet during the K+1th wake-up time of the terminal device based on the data packet time of the Sth data packet and the K+1th wake-up time of the terminal device.

[0055] In some embodiments, the duration of the preamble portion of the Sth data packet can be set according to specific circumstances. For example, the duration of the preamble portion of the Sth data packet is 0-5s.

[0056] In other embodiments, the time of the data portion of the Sth data packet can be determined based on the single-byte air transmission duration and the length of the data packet currently to be transmitted.

[0057] Then, the data packet time of the Sth data packet is the sum of the time of the preamble part of the Sth data packet and the time of the data part of the Sth data packet.

[0058] S430: When the K+1th wake-up time of the terminal device overlaps or does not overlap with the time portion of the first preamble code portion, adjust the time of the first preamble code portion to the time of the preamble code portion.

[0059] In an embodiment of the present application, in order to enable the terminal device to receive the preamble code sent by the gateway device within the time range of waking up again after packet loss, the time of the first preamble code part can be adjusted so that the time when the terminal device wakes up for the K+1th time is within the time of the preamble code part of the S+ith data packet sent by the gateway device.

[0060] For example, Figure 6 A schematic diagram showing an example in which the time range for a terminal device to wake up after packet loss is not completely within the time range of the first preamble code provided by an embodiment of the present application is shown. Figure 5 As shown, assuming that the time for the gateway device to send the first preamble part of the Sth data packet is 0-5s, and the time for the gateway device to send the data part of the Sth data packet is 5-8s, when the terminal device wakes up for the Kth time, that is, when it wakes up for detection within the time range of 5-8s, it will not receive the preamble, so the terminal device mistakenly thinks that there is no data packet. Therefore, the terminal device continues to enter the dormant state, which eventually causes the terminal device to lose packets. If it is assumed that the monitoring cycle of the terminal device is 10s, then the terminal device will wake up again when it wakes up for the K+1th time, that is, within the time range of 15-18s. When the terminal device is awakened at 15-18s, the time range of the first preamble part of the Sth data packet is 16-21s, that is, the wake-up time of the terminal device is not completely within the time range of the first preamble part, then the time of the first preamble part needs to be adjusted. Make the gateway device send the preamble part within a range greater than the time period of the re-awakening. For example, the time of the preamble can be 14s-20s.

[0061] For example, Figure 7 FIG. 2 is a schematic diagram showing another example of a terminal device provided in an embodiment of the present application in which the time range for waking up after packet loss is not completely within the preamble time range. Figure 6As shown, assuming that the time range for the gateway device to send the first preamble part of the Sth data packet is 0-10s, and the time range for the gateway device to send the data part of the Sth data packet is 10-15s, when the terminal device wakes up for the Kth time, that is, wakes up for detection within the time range of 10-15s, it will not receive the preamble, so the terminal device mistakenly thinks that there is no data packet, so the terminal device continues to enter the sleep state, which eventually causes the terminal device to lose packets. If it is assumed that the monitoring cycle of the terminal device is 28s, then the terminal device will wake up again at the K+1th wake-up, that is, within the time range of 38-43s. When the terminal device is awakened at 38-43s, the time range of the first preamble part of the Sth data packet is 30-40s, that is, the wake-up time of the terminal device is not completely within the time range of the first preamble, and the time of the first preamble needs to be adjusted. Make the gateway device send the preamble part within a range greater than this time period. For example, the time of the preamble can be 35s-45s.

[0062] S440: When the K+1th wake-up time of the terminal device is within the time of the first preamble part, the time of the first preamble part is used as the time of the preamble part.

[0063] In an embodiment of the present application, when the K+1th wake-up time of the terminal device is within the time of the first preamble code part, the time of the first preamble code part is used as the time of the preamble code part, then the terminal device can receive the preamble code sent by the gateway device within the time range of waking up again after packet loss.

[0064] For example, Figure 8 The schematic diagram shows that the time range of the terminal device to wake up after packet loss provided by the embodiment of the present application is completely within the preamble time range. Figure 7 As shown, assuming that the time for the gateway device to send the first preamble part of the Sth data packet is 0-10s, and the time for the gateway device to send the data part of the Sth data packet is 10-20s, when the terminal device wakes up for the Kth time, that is, wakes up for detection within the time range of 10-20s, it will not receive the preamble, so the terminal device mistakenly thinks that there is no data packet, so the terminal device continues to enter the sleep state, which eventually causes the terminal device to lose packets. If it is assumed that the monitoring period of the terminal device is 30s, then the terminal device will wake up again at the K+1th wake-up, that is, within the time range of 40-50s. When the terminal device is awakened at 40-50s, the time of the first preamble part of the Sth data packet is exactly 40-50s, that is, the wake-up time of the terminal device is completely within the time range of the preamble, and there is no need to adjust the time of the first preamble.

[0065] S450, determining the time length occupied by the S+i th data packet according to the time length occupied by the preamble part of the S+i th data packet and the time length occupied by the data part of the S+i th data packet.

[0066] In an embodiment of the present application, the time of the data packet can be determined based on the time of the target preamble code and the time of the data part.

[0067] Specifically, the time length occupied by the S+i th data packet is determined according to the sum of the time length occupied by the preamble part of the S+i th data packet and the time length occupied by the data part of the S+i th data packet.

[0068] S460: Determine the number of data packets that can be sent within the monitoring period according to the monitoring period and the time length occupied by the S+i th data packet.

[0069] In an embodiment of the present application, the number of data packets that can be sent within the monitoring period can be determined based on the monitoring period and the time length occupied by the S+ith data packet.

[0070] In some embodiments, the number of times the gateway device sends a data packet during the monitoring period can be determined using the following calculation formula:

[0071] Single monitoring cycle times = monitoring cycle / data packet time

[0072] Exemplarily, when the monitoring period is 100 seconds and the time length for sending the S+ith data packet is 20 seconds, it is necessary to send the data packet five times within the monitoring period.

[0073] The data packet sending method provided by the present application, after the Sth data packet sent by the gateway device is lost during the Kth wake-up time of the terminal device, the gateway device sends S+i data packets to the terminal device according to the Kth wake-up time and the listening period of the terminal device, so that the time when the terminal device wakes up for the K+1th time is finally within the time of the leading code part of the S+i data packets, so that the terminal device can receive the data packet during the next wake-up time after the packet loss, thereby greatly shortening the receiving state time of the terminal device and further reducing the power consumption of the terminal device.

[0074] The above combination Figure 1-Figure 8 The data packet sending method provided in the embodiment of the present application has been specifically introduced. The data packet sending device and equipment provided in the embodiment of the present application are specifically introduced below.

[0075] Fig. 9 9 is a schematic diagram of a data packet sending device provided in an embodiment of the present application. The data packet sending device 900 includes a processing unit 910 .

[0076] The processing unit 910 is used to obtain the Kth wake-up time of the terminal device and the monitoring period of the terminal device; and send the S+ith data packet to the terminal device according to the Kth wake-up time and the monitoring period.

[0077] The processing unit 910 is further configured to determine the time length occupied by the S+i th data packet according to the time length occupied by the preamble portion of the S+i th data packet and the time length occupied by the data portion of the S+i th data packet.

[0078] The processing unit 910 is further configured to determine the value of i according to the monitoring period and the time length occupied by the S+i th data packet.

[0079] The processing unit 910 is further configured to determine a K+1th wake-up time of the terminal device according to the Kth wake-up time and the monitoring period of the terminal device.

[0080] The processing unit 910 is further configured to determine a time for sending a preamble code of an S+i th data packet to the terminal device according to the K+1 th wake-up time.

[0081] The processing unit 910 is also used to determine the time for sending the first preamble code part of the S+ith data packet within the K+1th wake-up time based on the K+1th wake-up time and the data packet time of the Sth data packet sent to the terminal device.

[0082] The processing unit 910 is also used to adjust the time of the first preamble code part to the time of the preamble code part when the K+1th wake-up time of the terminal device overlaps or does not overlap with the time part of the first preamble code part.

[0083] The processing unit 910 is further configured to use the time of the first preamble part as the time of the preamble part when the K+1th wake-up time of the terminal device is within the time of the first preamble part.

[0084] The processing unit 910 is further configured to determine the time length occupied by the data portion of the S+i th data packet according to the single-byte air transmission time length and the data transmission length.

[0085] Fig.10 Schematic diagram of a data packet sending device provided in an embodiment of the present application. Fig.10 As shown, the device 1000 for sending a data packet provided in this embodiment includes: a processor 1010, a memory 1020, and a computer program 1030 stored in the memory 1020 and executable on the processor 1010. When the processor 1010 executes the computer program 1030, the steps in the above-mentioned various data packet sending method embodiments are implemented, such as Figure 4Alternatively, when the processor 1010 executes the computer program 1030, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0086] Exemplarily, the computer program 1030 may be divided into one or more modules / units, which are stored in the memory 1020 and executed by the processor 1010 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 1030 in the device 1000 for sending data packets.

[0087] The device 1000 for sending the data packet may be a first terminal device or a second terminal device, or may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, or a host computer. The device for identifying the person falling into the water may include, but is not limited to, a processor 1010 and a memory 1020. Those skilled in the art will understand that Fig.10 It is only an example of a device for sending data packets and does not constitute a limitation on the device for sending data packets. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the device for sending data packets may also include input and output devices, network access devices, buses, etc.

[0088] The processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0089] The memory 1020 may be an internal storage unit of the device 1000 for sending data packets, such as a hard disk or memory of the device 1000 for sending data packets. The memory 1020 may also be an external storage device of the device 1000 for sending data packets, such as a plug-in hard disk, a memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the device 1000 for sending data packets. Further, the memory 1020 may also include both an internal storage unit of the device 1000 for sending data packets and an external storage device. The memory 1020 is used to store the computer program and other programs and data required by the device for sending data packets. The memory 1020 may also be used to temporarily store data that has been output or is to be output.

[0090] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0091] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for sending a data packet can be implemented.

[0092] An embodiment of the present application provides a computer program product. When the computer program product runs on a device that sends a data packet, the device that sends the data packet executes the method for sending the data packet.

[0093] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0094] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0095] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0096] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or 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.

[0097] 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.

[0098] In addition, each functional unit in each embodiment of the present application 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 software functional units.

[0099] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0100] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for sending a data packet, characterized in that: The method comprises: Acquire the Kth wake-up time of the terminal device and the listening period of the terminal device, wherein the Kth wake-up time is within the time of the data part of the Sth data packet sent to the terminal device, each data packet includes a preamble part and a data part, wherein K is a positive integer and S is a positive integer; Determine the K+1th wake-up time of the terminal device according to the Kth wake-up time of the terminal device and the monitoring period; Determine the time for sending the first preamble part of the S+i th data packet within the K+1 th wake-up time according to the K+1 th wake-up time and the data packet time of the S th data packet sent to the terminal device; When the K+1th wake-up time of the terminal device overlaps or does not overlap with the time portion of the first preamble part, adjusting the time of the first preamble part to the time of the preamble part, so that the K+1th wake-up time of the terminal device is within the time of the preamble part of the S+ith data packet; When the K+1th wake-up time of the terminal device is within the time of the first preamble part, the time of the first preamble part is used as the time of the preamble part; According to the time of the preamble code part, the S+i th data packet is sent to the terminal device, where i≥1 and i is an integer.

2. The method according to claim 1, characterized in that The method further comprises: Determine the time length occupied by the S+i th data packet according to the time length occupied by the preamble part of the S+i th data packet and the time length occupied by the data part of the S+i th data packet; The value of i is determined according to the monitoring period and the time length occupied by the S+i th data packet.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: The time length occupied by the data portion of the S+i th data packet is determined according to the single-byte air transmission time length and the data transmission length.

4. A device for sending a data packet, characterized in that: The device comprises means for performing the steps of the method according to any one of claims 1 to 3.

5. A device for sending data packets, characterized in that: The device comprises at least one processor coupled to at least one memory: The at least one processor is configured to execute a computer program or instruction stored in the at least one memory, so that the data packet sending device executes the method according to any one of claims 1 to 3.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

7. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Communication signal transmission method

    CN102067712A

  • Apparatus and methods for controlling an idle mode in a wireless device

    CN102150458A

  • Wireless communication method, system and gateway device

    CN109041181A

  • Transmitting device, receiving device and transmitter-receiver system in wireless sensor network

    KR1020090106033A

  • Asynchronous low-power multi-channel media access control

    US20110176465A1