CN114885407A - Method, device and equipment for sending data packet - Google Patents

Method, device and equipment for sending data packet Download PDF

Info

Publication number
CN114885407A
CN114885407A CN202210599896.4A CN202210599896A CN114885407A CN 114885407 A CN114885407 A CN 114885407A CN 202210599896 A CN202210599896 A CN 202210599896A CN 114885407 A CN114885407 A CN 114885407A
Authority
CN
China
Prior art keywords
time
data packet
data
terminal equipment
preamble
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210599896.4A
Other languages
Chinese (zh)
Inventor
宋佳城
万跃敏
胡勋瑜
刘雪锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tanda Technology Co ltd
Original Assignee
Tanda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tanda Technology Co ltd filed Critical Tanda Technology Co ltd
Priority to CN202210599896.4A priority Critical patent/CN114885407A/en
Publication of CN114885407A publication Critical patent/CN114885407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0048Allocation of pilot signals, i.e. of signals known to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0078Timing of allocation
    • H04L5/0082Timing of allocation at predetermined intervals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides a method, a device and equipment for sending a data packet, wherein the method comprises the following steps: acquiring Kth awakening time of the terminal equipment and a monitoring period of the terminal equipment, wherein the Kth awakening time is within the time of a data part of an S data packet sent to the terminal equipment, each data packet comprises a lead code part and a data part, K is a positive integer, and S is a positive integer; and sending S + i data packets to the terminal equipment according to the K-th awakening time and the monitoring period, wherein the K + 1-th awakening time of the terminal equipment is within the time of the lead code part of the S + i data packets, i is more than or equal to 1, and i is an integer. The method provided by the application solves the problem of high power consumption of the terminal node equipment, and shortens the time of the terminal node in a receiving state.

Description

Method, device and equipment for sending data packet
Technical Field
The application belongs to the technical field of internet of things, and particularly relates to a method, a device and equipment for sending a data packet.
Background
In the wireless system of the internet of things, the terminal node equipment has the requirement of low power consumption and the requirement of real-time performance, so that in order to reduce the power consumption of the terminal node equipment, the gateway node sends data to the terminal node equipment in a continuous short packet mode, but if the terminal node wakes up to receive the data in non-lead code time, the lead code cannot be detected, so that the phenomenon of packet loss is caused due to the fact that no data exists in the air.
Therefore, how to ensure that the terminal node device can receive the data packet after the next wake-up after packet loss is an urgent problem to be solved in the current wireless system data packet transmission.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for sending a data packet, and the method, the device and the equipment solve the problem of high power consumption of terminal node equipment and shorten the time of a receiving state of the terminal node by enabling the time of awakening the terminal node equipment for the next time after packet loss to be within the time of a lead code part of the data packet sent by a gateway node.
In a first aspect, an embodiment of the present application provides a method for sending a data packet, where the method includes: acquiring Kth awakening time of the terminal equipment and a monitoring period of the terminal equipment, wherein the Kth awakening time is within the time of a data part of an S data packet sent to the terminal equipment, each data packet comprises a lead code part and a data part, K is a positive integer, and S is a positive integer; and sending an S + i data packet to the terminal equipment according to the Kth awakening time and the monitoring period, wherein the Kth awakening time of the terminal equipment is within the time of the lead code part of the S + i data packet, i is not less than 1, and i is an integer.
According to the data packet sending method provided by the first aspect, after the S data packet sent by the gateway device is lost in the K-th awakening time of the terminal device, the gateway device sends S + i data packets to the terminal device according to the K-th awakening time and the monitoring period of the terminal device, and finally the time of the terminal device when the K +1 data packet is awakened is within the time of the lead code part of the S + i data packets, so that the terminal device can receive the data packet in the next awakening time after the packet is lost, the time of a receiving state of the terminal device is greatly shortened, and the power consumption of the terminal device is further reduced.
In a possible implementation manner of the first aspect, the method further includes: determining the time length occupied by the S + i data packet according to the time length occupied by the lead code part of the S + i data packet and the time length occupied by the data part of the S + i data packet; and 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 manner, how many data packets need to be sent after the gateway node loses a packet to wake up the terminal device the next time can be determined by the time of sending the S + i-th preamble.
In a possible implementation manner of the first aspect, the method further includes: determining the K +1 th awakening time of the terminal equipment according to the Kth awakening time and the monitoring period of the terminal equipment; and determining the time for sending the lead code of the S + i data packet to the terminal equipment according to the K + 1-time awakening time. In the implementation mode, the K +1 th awakening time of the terminal equipment can be determined through the K th awakening time of the terminal equipment and the monitoring period, and then the time for sending the lead code of the S + i data packet to the terminal equipment is adjusted by utilizing the K +1 th awakening time.
In a possible implementation manner of the first aspect, determining, according to the K +1 th wake-up time, a time for sending a preamble of an S + i-th data packet to the terminal device includes: determining the time for sending the first lead code part of the S + i data packet within the K + 1-time awakening time according to the K + 1-time awakening time and the data packet time of the S data packet sent to the terminal equipment; and when the K +1 th wake-up time of the terminal equipment is partially overlapped or not overlapped 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 manner, it is determined whether the first preamble time needs to be adjusted by determining whether the K +1 th wake-up time is within the first preamble time of the S + i th data packet, and when the K +1 th wake-up time of the terminal device overlaps or does not overlap with the time portion of the first preamble, the first preamble time needs to be further adjusted, so that the K +1 th wake-up time is within the first preamble time.
In a possible implementation manner of the first aspect, the method further includes: and when the K +1 th wake-up time of the terminal equipment is within the time of the first preamble part, taking the time of the first preamble part as the time of the preamble part. In this implementation, when the K +1 th wake-up time of the terminal device is within the time of the first preamble portion, the first preamble time does not need to be adjusted.
In a possible implementation manner of the first aspect, the method further includes: and determining the time length occupied by the data part of the S + i-th data packet according to the air transmission time length of the single byte and the data transmission length.
In a second aspect, there is provided a communication device comprising means for performing the steps of the above first aspect or any possible implementation manner of the first aspect.
In a third aspect, a communication device is provided, which includes at least one processor and a memory, the at least one processor being configured to perform the method of the above first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, a communication device is provided, which comprises at least one processor configured to perform the method of the first aspect above or any possible implementation manner of the first aspect, and an interface circuit.
In a fifth aspect, there is provided an apparatus for data packet transmission, the apparatus comprising at least one processor coupled with at least one memory: the at least one processor is configured to execute the computer program or instructions stored in the at least one memory to cause the data packet sending apparatus to perform the method of the above first aspect or any possible implementation manner of the first aspect.
A sixth aspect provides a computer program product comprising a computer program for performing the method of the first aspect or any possible implementation form of the first aspect when executed by a processor.
In a seventh aspect, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed, is adapted to perform the method of the first aspect or any possible implementation manner of the first aspect.
In an eighth aspect, there is provided a chip or an integrated circuit, comprising: a processor configured to invoke and run the computer program from the memory, so that the device on which the chip or the integrated circuit is installed performs the method of the first aspect or any possible implementation manner of the first aspect.
It is understood that the beneficial effects of the second aspect to the eighth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the data packet sending method, after S data packets sent by the gateway device are lost in the K-th awakening time of the terminal device, the gateway device sends S + i data packets to the terminal device according to the K-th awakening time and the monitoring period of the terminal device, and finally the time of the terminal device when the K + 1-th awakening time is within the time of the lead code part of the S + i data packets, so that the terminal device can receive the data packets in the next awakening time after packet loss, the receiving state time of the terminal device is greatly shortened, and the power consumption of the terminal device is further reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 illustrates a schematic view of a listening state of a terminal node device according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a gateway node sending a gateway packet according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a gateway data packet provided by an embodiment of the present application is a continuous short packet;
fig. 4 is a schematic flow chart of a data packet sending method provided by an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a time range for waking up a terminal device after packet loss according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an example that a time range for re-waking after a terminal device loses a packet is not completely within a first preamble time range according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating that a time range for re-waking after a terminal device loses a packet is not completely within a preamble time range according to another embodiment of the present application;
fig. 8 is a schematic diagram illustrating that a time range for re-waking after a terminal device loses a packet is completely within a preamble time range according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a packet transmitting apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram illustrating a packet sending device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
First, before describing the methods and systems provided herein, some of the terms that will be referred to immediately below will need to be described. When the present application refers to the terms "first" or "second" etc. ordinal, it should be understood that they are used for distinguishing purposes only, unless they do express an order in accordance with the context.
The terms "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Unless otherwise indicated, "/" herein generally indicates that the former and latter associated objects are in an "or" relationship, e.g., a/B may represent a or B. The term "and/or" is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the present application, "a plurality" means two or more.
In the data packet sending process based on the wireless system of the internet of things, the terminal node equipment wakes up at intervals to monitor data in the air, enters a receiving mode after detecting data flow, and maintains a short receiving state to receive the data. If the end node device does not detect a data flow, it continues in sleep mode, i.e. the end node device is always in the state "sleep-detect-sleep-detect …", the sleep state cannot receive data, and data can only be received after detecting a data flow in the air. Fig. 1 is a schematic view illustrating a listening state of a terminal node device according to an embodiment of the present application, as shown in fig. 1, the terminal node device wakes up at intervals to listen to whether data is sent over the air.
When the gateway node has a data transmission requirement, the gateway node sends a data packet, and the data packet consists of a preamble part and a data part. The preamble part is mainly used for informing the terminal node that data flow needs to be received in the air, the terminal node considers that data is sent after monitoring the preamble part, then the terminal node enters a receiving state to wait for receiving the data, and when the terminal node is in a dormant state, if the gateway node needs to send the data to the terminal node at the moment, the gateway needs to transmit a data frame which is larger than a monitoring period, and then the data frame can be guaranteed to be reliably delivered to the terminal node. Fig. 2 shows a schematic diagram of a gateway node sending a gateway data packet, as shown in fig. 2, the terminal node device can detect the preamble only when the time of the preamble of the gateway data packet is longer than the listening period of the terminal node device.
Therefore, when the gateway node transmits only one gateway packet, the end node device needs to maintain a reception state greater than or equal to the preamble. For example, when the listening period of the terminal device is 4s, the preamble portion of the gateway data packet transmitted by the gateway node 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 portion to wait for receiving the data portion. It will be appreciated that in some systems, maintaining a receive state for a longer period of time will certainly consume significant power. If the terminal device is woken up by other devices or interference sources while waiting for the receiving state, a part of useless power consumption is increased.
In view of the above problems, a solution in the related art is to send multiple gateway data packets to a gateway node, that is, to shorten the time of a preamble, fig. 3 shows a schematic diagram that the gateway data packets provided in this embodiment of the present application are continuous short packets, and it can be seen from fig. 3 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 time of the preamble of each short packet is significantly reduced. The time required for the end node to maintain the receiving state also becomes less and the power consumption of the end node device is reduced. However, this method has a disadvantage that if the terminal node device wakes up to receive data in the non-preamble time, the terminal node device cannot detect the preamble, and thus considers that there is no data in the air, and then goes to sleep again, thereby causing packet loss.
Then, after the terminal node device wakes up in the non-preamble time to detect packet loss, the optimal time for the next wake-up is just within the preamble time range of the gateway node, so that the terminal node device can receive the data packet in at most two monitoring periods, and the time of the receiving state of the terminal node device can be greatly shortened.
In view of this, an embodiment of the present application provides a data packet sending method, where after an S-th data packet sent by a gateway device is lost at a time when a terminal device wakes up for the K-th time, the gateway device sends S + i data packets to the terminal device according to the K-th wake-up time and a monitoring period of the terminal device, and finally, the time when the terminal device wakes up for the K + 1-th time is within a time of a preamble part of the S + i data packets, so that the terminal device can receive the data packet at a next wake-up time after packet loss, thereby greatly shortening a time of a receiving state of the terminal device and further reducing power consumption of the terminal device.
Next, a data packet sending method provided in an embodiment of the present application is specifically described, and fig. 4 shows a schematic flowchart of the data packet sending method provided in the embodiment of the present application. The execution subject of the method is a gateway device. As shown in fig. 4, the method 400 includes 410 through 440.
And S410, the gateway equipment determines the K +1 th awakening time of the terminal equipment according to the Kth awakening time of the terminal equipment and the monitoring period of the terminal equipment, wherein the Kth awakening time is within the time of the data part of the S data packet sent to the terminal equipment, K is a positive integer, and S is a positive integer.
In this embodiment of the present application, in order to enable the gateway device to just send the preamble part of the data packet when the terminal device wakes up next time after packet loss, it is necessary to determine a time range within which the terminal device wakes up again after packet loss.
And when the terminal equipment is in the time of the data part of the S-th data packet sent to the terminal equipment by the gateway node at the Kth awakening time, indicating that packet loss occurs when the terminal equipment is awakened at the Kth time.
It can be understood that the data packet sent by the gateway node to the terminal device includes a preamble part and a data part, and therefore the time of the sent data packet includes the time of the preamble part and the time of the data part, when the wake-up time of the terminal device is located at the time of the data part of the data packet, the terminal device mistakenly assumes that no data is sent and therefore enters a sleep state.
In some embodiments, the K +1 th wake-up time of the terminal device is the sum of the K-th wake-up time of the terminal device and the listening period of the terminal device.
It should be noted that the listening period may be set according to specific situations, and the embodiment of the present application is not limited.
Exemplarily, fig. 5 shows a time range diagram of waking up after a terminal device loses packet according to an embodiment of the present application. As shown in fig. 5, when the terminal device is in the state of "sleep-detect-sleep-detect …", the detection state is just 1-1.5S, but the gateway device does not send the preamble at this time, or the gateway device is sending the data portion at this time, so that the terminal device cannot detect the preamble, enters the sleep state and causes packet loss, and then the terminal device wakes up for detection in the next listening period, and if the preset listening period is 4S, the time range for waking up after the terminal device loses the packet is 5-5.5S.
And S420, the gateway equipment determines the time for sending the first lead code part of the S + i-th data packet within the K + 1-th awakening time according to the K + 1-th awakening time of the terminal equipment and the data packet time of the S-th data packet sent to the terminal equipment.
In this embodiment of the present application, it is determined whether the K +1 th wake-up time of the terminal device is within the time for the gateway device to send the preamble part of the S + i th data packet, and first, it is required to determine the time for sending the first preamble part of the S + i th data packet within the K +1 th wake-up time.
In addition, i is not less than 1, and i is an integer. In other words, after the S-th data packet sent by the gateway node is lost, it can be ensured that the sent S + 1-th data packet can be received by the terminal device when the terminal device wakes up next time, and certainly, the terminal device can also receive the S + 2-th or S + 3-th data packet sent by the gateway node when the terminal device wakes up next time.
Then, in this embodiment of the present application, the gateway device may calculate, according to the data packet time of the S-th data packet and the K + 1-th wake-up time of the terminal device, the time for the gateway node to send the first preamble part of the S + i-th data packet within the K + 1-th wake-up time of the terminal device.
In some embodiments, the time of the preamble portion of the S-th packet may be set according to specific situations. For example, the preamble portion of the S-th packet may have a time of 0-5S.
In other embodiments, the time of the data portion of the S-th packet may be determined according to the one-byte over-the-air transmission duration and the length of the packet currently to be transmitted.
Then, the data packet time of the S-th data packet is the sum of the time of the preamble portion of the S-th data packet and the time of the data portion of the S-th data packet.
And S430, when the K +1 th wake-up time of the terminal equipment is partially overlapped or not overlapped 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 embodiment of the application, in order to enable the terminal device to receive the preamble sent by the gateway device within the time range of waking up again after packet loss, the time of the first preamble part may be adjusted, so that the time of waking up the terminal device at the K +1 th time is located at the time of the preamble part of the S + i-th data packet sent by the gateway device.
For example, fig. 6 shows an exemplary schematic diagram that the time range of re-waking after the terminal device loses packet is not completely within the first preamble time range, as shown in fig. 5, it is assumed that the time for the gateway device to send the first preamble portion of the S-th data packet is 0 to 5S, and the time for the gateway device to send the data portion of the S-th data packet is 5 to 8S, when the terminal device wakes up at the kth time, that is, wakes up within the time range of 5 to 8S for detection, the preamble is not received, and therefore the terminal device mistakenly assumes that there is no data packet. Therefore, the terminal device continues to enter the sleep state, which eventually causes the terminal device to lose packets. If the listening period of the terminal device is assumed to be 10S, the terminal device wakes up again in the K +1 th wake-up time, i.e. in the time range of 15-18S, and when the terminal device wakes up in the 15-18S, the time range of the first preamble part of the S-th data packet is 16-21S, i.e. the wake-up time of the terminal device is not completely in the time range of the first preamble part, the time of the first preamble part needs to be adjusted. Causing the gateway device to transmit the preamble portion over a range greater than the re-wake-up time period. The preamble may be, for example, 14s-20s in time.
For another example, fig. 7 shows a schematic diagram that a time range for re-waking after a packet loss of another example of the terminal device provided by the embodiment of the present application is not completely within a preamble time range. As shown in fig. 6, it is assumed that the time range of the gateway device sending the first preamble portion of the S-th data packet is 0 to 10S, the time range of the gateway device sending the data portion of the S-th data packet is 10 to 15S, and when the terminal device wakes up for the K-th time, i.e., wakes up within the time range of 10 to 15S for detection, the preamble is not received, so that the terminal device mistakenly assumes that there is no data packet, and therefore, the terminal device continues to enter the sleep state, which finally results in packet loss of the terminal device. If it is assumed that the listening period of the terminal device is 28S, the terminal device wakes up again in the K +1 th wake-up time, i.e. within the time range of 38-43S, and when the terminal device wakes up in 38-43S, the time range of the first preamble part of the S-th data packet is 30-40S, i.e. the wake-up time of the terminal device is not completely within the time range of the first preamble, the time of the first preamble needs to be adjusted. Causing the gateway device to transmit the preamble portion over a range greater than the time period. The preamble may be, for example, 35s-45s in time.
And S440, when the K +1 th wake-up time of the terminal device is within the time of the first preamble part, taking the time of the first preamble part as the time of the preamble part.
In this embodiment of the application, when the K +1 th wake-up time of the terminal device is within the time of the first preamble part, the time of the first preamble part is taken as the time of the preamble part, and the terminal device can receive the preamble sent by the gateway device within the time range of waking up again after packet loss.
For example, fig. 8 shows a schematic diagram that a time range of re-waking after a terminal device loses a packet is completely within a preamble time range according to an embodiment of the present application. As shown in fig. 7, it is assumed that the time for the gateway device to send the first preamble part of the S-th data packet is 0 to 10S, and the time for the gateway device to send the data part of the S-th data packet is 10 to 20S, when the terminal device wakes up for the K-th time, i.e., wakes up within the time range of 10 to 20S for detection, the preamble is not received, so the terminal device mistakenly assumes that there is no data packet, and therefore, the terminal device continues to enter the sleep state, and finally causes the terminal device to lose packets. If the listening period of the terminal device is assumed to be 30S, the terminal device wakes up again in the K +1 th wake-up time, i.e. within the time range of 40-50S, and when the terminal device wakes up in 40-50S, the time of the first preamble part of the S-th data packet is just 40-50S, i.e. the wake-up time of the terminal device is completely within the time range of the preamble, the time of the first preamble does not need to be adjusted.
S450, determining the time length occupied by the S + i data packet according to the time length occupied by the lead code part of the S + i data packet and the time length occupied by the data part of the S + i data packet.
In the embodiment of the present application, the time of the data packet may be determined according to the time of the target preamble and the data part time.
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.
And S460, determining the times of the data packets which can be sent in the monitoring period according to the monitoring period and the time length occupied by the S + i th data packet.
In this embodiment of the present application, the number of times that a data packet can be sent in a listening period may be determined according to the listening period and the time length occupied by the S + i-th data packet.
In some embodiments, the number of times the gateway device sends the data packet in the listening period may be determined by using the following calculation formula:
single listening period count equals listening period/packet time
For example, when the listening period is 100S and the time length of data packets for transmitting the S + i-th data packet is 20S, 5 data packets need to be transmitted in the listening period.
According to the data packet sending method, after S data packets sent by the gateway device are lost in the K-th awakening time of the terminal device, the gateway device sends S + i data packets to the terminal device according to the K-th awakening time and the monitoring period of the terminal device, and finally the time of the terminal device when the K + 1-th awakening time is within the time of the lead code part of the S + i data packets, so that the terminal device can receive the data packets in the next awakening time after packet loss, the receiving state time of the terminal device is greatly shortened, and the power consumption of the terminal device is further reduced.
The above-mentioned packet sending method according to the embodiment of the present application is specifically described with reference to fig. 1 to 8, and the following describes a packet sending device and an apparatus according to the embodiment of the present application.
Fig. 9 is a schematic diagram of a packet sending apparatus according to an embodiment of the present application. The packet transmitting apparatus 900 includes a processing unit 910.
The processing unit 910 is configured to obtain a kth wake-up time of the terminal device and a monitoring period of the terminal device; and sending the (S + i) th data packet to the terminal equipment according to the Kth awakening time and the monitoring period.
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.
The processing unit 910 is further configured to determine a value of i according to the listening period and a time length occupied by the S + i-th data packet.
The processing unit 910 is further configured to determine a K +1 th wake-up time of the terminal device according to the K th wake-up time and the monitoring period of the terminal device.
The processing unit 910 is further configured to determine, according to the K +1 th wake-up time, a time for sending a preamble of an S + i-th data packet to the terminal device.
The processing unit 910 is further configured to determine, 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, a time for sending the first preamble portion of the S + i-th data packet within the K +1 th wake-up time.
The processing unit 910 is further configured to adjust the time of the first preamble part to the time of the preamble part when the K +1 th wake-up time of the terminal device overlaps or does not overlap with the time part of the first preamble part.
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 +1 th wake-up time of the terminal device is within the time of the first preamble part.
The processing unit 910 is further configured to determine a time length occupied by the data portion of the S + i-th data packet according to the single-byte air transmission duration and the data transmission length.
Fig. 10 is a schematic diagram of a packet sending apparatus according to an embodiment of the present application. As shown in fig. 10, the apparatus 1000 for transmitting a data packet according to this embodiment includes: a processor 1010, a memory 1020, and a computer program 1030 stored in said memory 1020 and operable on said processor 1010. The processor 1010, when executing the computer program 1030, implements the steps in the above-described embodiments of the method for transmitting each data packet, such as the steps S410-S460 shown in fig. 4. Alternatively, the processor 1010 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 1030.
Illustratively, the computer program 1030 may be partitioned into one or more modules/units that are stored in the memory 1020 and executed by the processor 1010 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 1030 in the apparatus 1000 for transmitting data packets.
The device 1000 for sending the data packet may be a first terminal device or a second terminal device, or may be a desktop computer, a notebook, a palm computer, a cloud server, or a computing device such as an upper computer. The identifying device of the man overboard may include, but is not limited to, a processor 1010, a memory 1020. Those skilled in the art will appreciate that fig. 10 is merely an example of a packet sending device and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, for example, the packet sending device may also include input output devices, network access devices, buses, etc.
The Processor 1010 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 1020 may be an internal storage unit of the packet transmitting apparatus 1000, such as a hard disk or a memory of the packet transmitting apparatus 1000. The memory 1020 may also be an external storage device of the packet sending device 1000, such as a plug-in hard disk, a memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which is equipped on the packet sending device 1000. Further, the memory 1020 may also include both an internal storage unit and an external storage device of the packet transmission device 1000. The memory 1020 is used for storing the computer programs and other programs and data required by the device to which the data packets are sent. The memory 1020 may also be used to temporarily store data that has been output or is to be output.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for sending a data packet may be implemented.
The embodiment of the present application provides a computer program product, which, when running on a device for sending a data packet, enables the device for sending a data packet to execute a method that can implement the above-mentioned data packet sending.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for data packet transmission, the method comprising:
acquiring Kth awakening time of the terminal equipment and a monitoring period of the terminal equipment, wherein the Kth awakening time is within the time of a data part of an S data packet sent to the terminal equipment, each data packet comprises a lead code part and a data part, K is a positive integer, and S is a positive integer;
and sending an S + i data packet to the terminal equipment according to the Kth awakening time and the monitoring period, wherein the Kth awakening time of the terminal equipment is within the time of a lead code part of the S + i data packet, i is not less than 1, and i is an integer.
2. The method of claim 1, further comprising:
determining the time length occupied by the S + i data packet according to the time length occupied by the lead code part of the S + i data packet and the time length occupied by the data part of the S + i data packet;
and determining the value of i according to the monitoring period and the time length occupied by the S + i-th data packet.
3. The method of claim 2, further comprising:
determining the K +1 th awakening time of the terminal equipment according to the Kth awakening time of the terminal equipment and the monitoring period;
and determining the time for sending the lead code of the S + i-th data packet to the terminal equipment according to the K + 1-time awakening time.
4. The method of claim 3, wherein the determining the time for sending the preamble of the S + i-th data packet to the terminal device according to the K + 1-th wake-up time comprises:
determining the time for sending the first lead code part of the S + i data packet within the K + 1-time awakening time according to the K + 1-time awakening time and the data packet time of the S data packet sent to the terminal equipment;
when the K +1 th wake-up time of the terminal equipment is overlapped with or not overlapped with the time part of the first lead code part, adjusting the time of the first lead code part to be the time of the lead code part.
5. The method of claim 4, further comprising:
and when the K +1 th wake-up time of the terminal equipment is within the time of the first preamble part, taking the time of the first preamble part as the time of the preamble part.
6. The method of claim 1, further comprising:
and determining the time length occupied by the data part of the S + i-th data packet according to the air transmission time length of a single byte and the data transmission length.
7. An apparatus for data packet transmission, characterized in that the apparatus comprises means for performing the steps of the method according to any one of claims 1 to 6.
8. An apparatus for data packet transmission, the apparatus comprising at least one processor coupled with at least one memory:
the at least one processor configured to execute computer programs or instructions stored in the at least one memory to cause the data packet transmission device to perform the method of any of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
10. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is installed performs the method of any one of claims 1 to 6.
CN202210599896.4A 2022-05-27 2022-05-27 Method, device and equipment for sending data packet Pending CN114885407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210599896.4A CN114885407A (en) 2022-05-27 2022-05-27 Method, device and equipment for sending data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210599896.4A CN114885407A (en) 2022-05-27 2022-05-27 Method, device and equipment for sending data packet

Publications (1)

Publication Number Publication Date
CN114885407A true CN114885407A (en) 2022-08-09

Family

ID=82679090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210599896.4A Pending CN114885407A (en) 2022-05-27 2022-05-27 Method, device and equipment for sending data packet

Country Status (1)

Country Link
CN (1) CN114885407A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150458A (en) * 2008-09-12 2011-08-10 高通股份有限公司 Apparatus and methods for controlling an idle mode in a wireless device
CN109041181A (en) * 2018-07-27 2018-12-18 南方科技大学 Wireless communication method, system and gateway equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150458A (en) * 2008-09-12 2011-08-10 高通股份有限公司 Apparatus and methods for controlling an idle mode in a wireless device
CN109041181A (en) * 2018-07-27 2018-12-18 南方科技大学 Wireless communication method, system and gateway equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗艺华;张昱;裴旭明;曹伟;: "无线传感器网络快速节点唤醒方法与系统设计", 计算机工程, no. 12, 15 December 2016 (2016-12-15) *

Similar Documents

Publication Publication Date Title
US10353837B2 (en) Method and apparatus to enable multiple masters to operate in a single master bus architecture
CN109041181B (en) Wireless communication method, system and gateway equipment
CN110290574B (en) Data transmission method, device, equipment, system and storage medium
CN109963325B (en) Positioning method, device and equipment based on base station
CN113163345B (en) Broadcast communication method, system, gateway equipment and electronic price tag
CN111163018B (en) Network equipment and method for reducing transmission delay thereof
CN104753711A (en) Method and device for adjusting resource allocation of network equipment
CN105378650A (en) Method and apparatus for controlling an operating mode of a processing module
CN116955242A (en) Single-bus communication method, storage medium and intelligent terminal
CN106954191B (en) Broadcast transmission method, apparatus and terminal device
CN114885407A (en) Method, device and equipment for sending data packet
CN114510299A (en) Method, device and storage medium for processing artificial intelligence service
US20240098692A1 (en) Method for indicating validity of reference signal transmission occasion, and user equipment
CN112765212B (en) Data processing method and device for transfer equipment
CN114301857A (en) Water meter communication method and device based on Internet of things
CN114828218A (en) Method for determining validity of reference signal transmission opportunity and user equipment
CN112968783A (en) Low-power-consumption processing method and device based on transmitted data
CN201465098U (en) Multi-channel crossed DMA
CN104753830A (en) Baseband chip and data processing method thereof
CN112469111B (en) Wireless communication method and device based on LoRa and gateway equipment
CN113794992B (en) Wireless broadcasting method, device, terminal equipment and storage medium
CN112566082B (en) Data transmission method, device, equipment and medium
CN117033276B (en) Bus communication method, system, electronic device and storage medium
US11979908B2 (en) Method, device, terminal and system for transmitting data
CN113177013B (en) Baud rate-based serial communication method and multi-serial chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination