WO2019191996A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2019191996A1
WO2019191996A1 PCT/CN2018/082051 CN2018082051W WO2019191996A1 WO 2019191996 A1 WO2019191996 A1 WO 2019191996A1 CN 2018082051 W CN2018082051 W CN 2018082051W WO 2019191996 A1 WO2019191996 A1 WO 2019191996A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission period
data
transmission
data packet
message
Prior art date
Application number
PCT/CN2018/082051
Other languages
French (fr)
Chinese (zh)
Inventor
赵朋
刘华章
马汉卿
方平
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/082051 priority Critical patent/WO2019191996A1/en
Priority to CN201880060395.0A priority patent/CN111149313B/en
Publication of WO2019191996A1 publication Critical patent/WO2019191996A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/02Arrangements for detecting or preventing errors in the information received by diversity reception
    • H04L1/04Arrangements for detecting or preventing errors in the information received by diversity reception using frequency diversity

Definitions

  • the embodiments of the present invention relate to the field of terminals, and in particular, to a data transmission method and device.
  • Bluetooth technology is a radio technology that supports short-range communication between devices and operates in the 2.4 GHz wireless band available worldwide. With the continuous development of communication technology, the application of Bluetooth technology has become more and more extensive. For example, in recent years, Bluetooth Low Energy (BLE) technology has been widely used in mobile phones, notebook computers, wearable devices, smart homes and the like.
  • BLE Bluetooth Low Energy
  • connection event interval (hereinafter referred to as interval) and the slave device latency (connection Slave Latency, hereinafter referred to as Latency) are defined.
  • the interval determines the time interval between two connection events. Latency determines the number of consecutive connection events that the slave device is not allowed to listen to.
  • a point at which a connection event starts can be called an anchor point.
  • the master device can send a data packet from the anchor point to the slave device, and the slave device can listen to the data packet sent by the master device at the anchor point to implement data interaction between the devices. .
  • By setting the two parameters of interval and Latency you can reduce the power consumption of the device when transmitting data using the Bluetooth protocol.
  • the Bluetooth protocol for data transmission not only should the power consumption of the device be saved as much as possible, but also how to increase the rate of data transmission.
  • the data transmission rate can be increased by dynamically adjusting the interval and/or Latency.
  • the adjustment of interval and / or Latency can be initiated by the master device or by the slave device. For example, taking the adjustment of the slave-initiated interval as an example, and assuming that the master device and the slave device initially negotiate a configuration, the interval is 48.75 ms and the Latency is 0.
  • the slave device can send a Connection Parameter Update request to the master device.
  • the master device After receiving the connection parameter update request, the master device sends a connection update indication (LL_CONNECTION_UPDATE_REQ) message to the slave device to instruct the slave device to adjust the data transmission rate, and sends a connection parameter update response (Connection Parameter Update response) to the slave device.
  • LL_CONNECTION_UPDATE_REQ connection update indication
  • connection parameter update response Connection Parameter Update response
  • the current Bluetooth 4.0 protocol stipulates that the shortest time point at which the adjusted rate takes effect should be no less than 6 intervals from the time point when the connection update indication message is sent (here, the interval before adjustment), that is, the connection update indication After the six intervals after the message is sent, the data can be transmitted between the devices at high speed. Moreover, in order to save power consumption of the device, after the data transmission is completed, the above steps are also required to reversely adjust the data transmission rate, that is, the interval is adjusted from 12.5 ms to a low speed (for example, 48.75 ms). If there are subsequent data transmission requirements, the above process needs to be repeated again.
  • the embodiment of the present invention provides a data transmission method and device, which solves the problem that data cannot be quickly transmitted to the opposite end, and the power consumption of the device is wasted.
  • a first aspect of the present application provides a data transmission method, which may be applied to a first device, where the first device can send multiple data packets to a second device in one transmission cycle, and the data transmission method may include: The first device sends a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be at least one time continuous with the first transmission period. The transmission cycle is monitored.
  • the first device sends a data packet carrying the indication flag to the second device in the first transmission period, where the indication flag is used to indicate whether the second device needs to be in the first transmission period. At least one transmission cycle that is continuous in time is monitored. In this way, by carrying an indication flag indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in the transmission period, the first device is consecutive in time with the transmission period.
  • the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and compared with the current.
  • the data transmission method may further include: the first device sending the first message to the second device, where The first message is used to indicate that the first device supports the first feature, the first feature is a feature that supports carrying an indication flag in the data packet to indicate whether the transmission period needs to be monitored; and the first device receives the second component from the second device.
  • the second message is used to indicate that the second device supports the first feature.
  • the first device when the first device communicates with the second device by using the Bluetooth protocol, since the second device monitors each transmission cycle when the latency of the slave device is 0, The first device may use the data transmission method provided by the embodiment of the present application to indicate whether the second device needs to monitor the next transmission cycle of the current transmission period, so as to implement fast data transmission to the pair. The purpose of the end.
  • a second aspect of the embodiments of the present application provides a data transmission method, where the method can be applied to a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the foregoing data transmission method
  • the method may include: receiving, by the second device, a data packet from the first device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be consecutive in time with the first transmission period. At least one transmission period is monitored; when the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is temporally continuous with the first transmission period, the second device monitors and the first transmission period is in time At least one transmission cycle in succession.
  • the data transmission method provided by the embodiment of the present application, by carrying an indication flag for indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in the transmission period, so that the first device is in the
  • the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, so as to quickly transmit the data to the peer end.
  • Purpose, and the method of data transmission by dynamically adjusting the interval and/or Latency compared to the prior art saves power consumption of the device.
  • the data transmission method may further include: when the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is consecutive in time with the first transmission period, the second The device determines the second transmission period and listens for the second transmission period. In this way, when it is determined that it is not necessary to monitor at least one transmission period that is temporally continuous with the first transmission period, the second device may determine the next transmission period that needs to be monitored, and enter a sleep state until the next transmission that needs to be monitored. The arrival of the cycle time saves the power consumption of the device.
  • the data transmission method may further include: the second device receiving the first message from the first device, where the first message is used to indicate that the first device supports the first feature, the first feature To support the feature that the indication flag is carried in the data packet to indicate whether the transmission period needs to be monitored, the second device sends a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  • a third aspect of the present application provides a data transmission method, which may be applied to a first device, where the first device can send multiple data packets to a second device in one transmission cycle, and the data transmission method may include: When the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first data packet to the second device in the first transmission period; wherein, in the first transmission period There is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period and the first transmission period are consecutive in time.
  • the data transmission method when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first message to the second device in the first transmission period.
  • the data packet carries an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period. There is no data transmission after the first data packet in the first transmission period, that is, the first data packet is the last data packet in the first transmission period, and the second transmission period is continuous with the first transmission period in time.
  • the second device can timely monitor the time-continuous transmission period with the transmission period, thereby enabling the first device to quickly transmit data to the second device, and dynamically adjusting the interval and/or compared to the prior art. Latency's method of data transmission saves power consumption of the device.
  • the first device when the number of data packets that the first device can send to the second device in one transmission period is determined, the first device sends the first device to the second device in the first transmission period.
  • the data transmission method may further include: the first device sends a first message to the second device, where the first message is used to negotiate with the second device that the first device can send to the second device in one transmission cycle.
  • the number of data packets; the first device receives a second message from the second device, the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission cycle.
  • a fourth aspect of the present application provides a data transmission method, where the method can be applied to a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the data transmission method can include : when the number of data packets that the first device can send to the second device is determined in one transmission period, the second device receives the first data packet from the first device in the first transmission period; There is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period and the first transmission period are continuous in time; The second device listens for the second transmission cycle.
  • the data transmission method provided by the embodiment of the present application indicates that the transmission period is continuous in time with the transmission period by using the MD in the last data packet transmitted in the transmission period when the number of transmission and reception times is determined. There is data transmission, so that the second device can timely monitor the transmission cycle with the transmission cycle in time, so that the first device can quickly transmit the data to the second device, and compared with the prior art
  • the method of dynamically adjusting the interval and/or Latency for data transmission saves power consumption of the device.
  • the second device when the number of data packets that the first device can send to the second device is determined in one transmission cycle, the second device receives the first packet from the first device in the first transmission cycle.
  • the data transmission method may further include: the second device receiving the first message from the first device, where the first message is used to negotiate with the second device, where the first device can send to the second device in one transmission cycle The number of data packets; the second device sends a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  • a fifth aspect of the present application provides a data receiving method, which may be applied to a second device, where the second device is capable of receiving a plurality of data packets in one transmission cycle, and the data receiving method may include: a second device pair All the transmission periods are monitored; the second device receives the Header portion of the data packet at the reception timing of the currently monitored transmission period; when the value of the length field in the Header portion is not 0, the second device determines that there is data in the reception timing.
  • the second device When the value of the MD field in the Header part is 0, the second device enters the sleep state after receiving the data in the receiving occasion, and when the value of the MD field in the Header part is 1, the second device Continue to monitor the current listening transmission period until the value of the MD field in the header portion of the received data packet is 0; when the value of the length field in the Header portion is 0, and the value of the MD field in the Header portion is 0, the second device enters a sleep state. When the value of the MD field in the Header part is 1, the second device continues to listen to the currently monitored transmission period until the received According to the MD field value in the packet header part is zero. When the data packet is not received in the above reception timing, the second device enters a sleep state.
  • the second device monitors all the transmission periods, so that the first device can quickly transmit the data to the second device. And when the second device monitors the current transmission period, determining whether there is data transmission in the receiving occasion according to the value of the length field in the header portion of the data packet in the receiving occasion of the current transmission period, and only determining the receiving When there is data transmission in the timing, the data part of the data packet is received at the receiving timing, and the length field in the Header part has a value of 0, and when the value of the MD field in the Header part is 0, the sleep state is entered. , saving power consumption of the device.
  • the receiving occasion is the first receiving occasion in the currently monitored transmission period.
  • a sixth aspect of the present application provides a data receiving method, which may be applied to a second device, where the second device is capable of receiving a plurality of data packets in one transmission cycle, and the data receiving method may include: the second device according to the second device Whether there is data transmission in the first transmission period, determining whether it is necessary to monitor the second transmission period; the first transmission period and the second transmission period are consecutive in time. Wherein, when there is data transmission in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second transmission period does not need to be monitored. .
  • the second device when the second device has data transmission in the current transmission period, it predicts that there is data transmission in the next transmission period of the current transmission period, and monitors the next transmission period of the current transmission period. When there is no data transmission in the current transmission period, there is no data transmission in the next transmission period of the current transmission period, and the next transmission period of the current transmission period is not monitored, which not only enables the first device to quickly transmit data to the first transmission period.
  • the purpose of the two devices but also saves the power consumption of the device.
  • a seventh aspect of the present application provides a first device, which is capable of transmitting a plurality of data packets to a second device in a transmission cycle, where the first device may include: a sending unit, configured to be in the first transmission The data packet is sent to the second device in the period, and the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period.
  • the sending unit is further configured to send, to the second device, a first message, where the first message is used to indicate that the first device supports the first feature, and the first feature is configured to be carried in the data packet.
  • An indicator to indicate whether a transmission period monitoring is required.
  • the first device may further include: a receiving unit, configured to receive a second message from the second device, where the second message is used to indicate that the second device supports the first feature.
  • the first device when the first device communicates with the second device by using the Bluetooth protocol, the first device further includes: a determining unit, configured to determine that the connection Slave Latency is not 0.
  • An eighth aspect of the present application provides a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the second device can include: a receiving unit, configured to be in the first Receiving, in the transmission period, a data packet from the first device, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period; And a unit, configured to: when the indication indicator is used to indicate that the second device needs to monitor at least one transmission period that is consecutive in time with the first transmission period, monitor at least one transmission period that is consecutive with the first transmission period in time.
  • the foregoing second device may further include: a determining unit, configured to: when the indication flag is used to indicate that the second device does not need to perform at least one transmission period that is temporally continuous with the first transmission period During the monitoring, the second transmission period is determined; the listening unit is also used to monitor the second transmission period.
  • a determining unit configured to: when the indication flag is used to indicate that the second device does not need to perform at least one transmission period that is temporally continuous with the first transmission period During the monitoring, the second transmission period is determined; the listening unit is also used to monitor the second transmission period.
  • the receiving unit is further configured to receive a first message from the first device, where the first message is used to indicate that the first device supports the first feature, where the first feature is supported in the data.
  • the packet carries an indication flag to indicate whether it is necessary to monitor the transmission period.
  • the foregoing second device may further include: a sending unit, configured to send a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  • a sending unit configured to send a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  • a first device is provided, where the first device is capable of transmitting a plurality of data packets to a second device in a transmission period
  • the first device may include: a sending unit, configured to be in a transmission cycle When the number of data packets that the first device can send to the second device is determined, the first data packet is sent to the second device in the first transmission period; wherein, there is no data after the first data packet in the first transmission period. Transmitting; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; and the second transmission period is continuous with the first transmission period in time.
  • the sending unit is further configured to send, to the second device, a first message, where the first message is used to negotiate with the second device, where the first device can send to the second device in one transmission cycle.
  • the number of packets is further configured to send, to the second device, a first message, where the first message is used to negotiate with the second device, where the first device can send to the second device in one transmission cycle. The number of packets.
  • the first device may further include: a receiving unit, configured to receive a second message from the second device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period .
  • a tenth aspect of the present application provides a second device, which is capable of receiving a plurality of data packets sent by a first device in one transmission cycle, and the second device may include: a receiving unit, configured to transmit in one transmission Receiving, when the number of data packets that the first device can send to the second device in the period, receiving the first data packet from the first device in the first transmission period; and having no data after the first data packet in the first transmission period Transmitting; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is continuous with the first transmission period in time; and the monitoring unit is configured to monitor the foregoing The second transmission period.
  • a receiving unit configured to transmit in one transmission Receiving, when the number of data packets that the first device can send to the second device in the period, receiving the first data packet from the first device in the first transmission period; and having no data after the first data packet in the first transmission period Transmitting; the first data packet includes an MD, the MD is used to
  • the receiving unit is further configured to receive a first message from the first device, where the first message is used to negotiate with the second device, where the first device can be used to the second device in one transmission cycle. The number of packets sent.
  • the foregoing second device may further include: a sending unit, configured to send, to the first device, a second message, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  • a sending unit configured to send, to the first device, a second message, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  • An eleventh aspect of the present application provides a second device, which is capable of receiving multiple data packets in one transmission cycle, and the second device may include: a monitoring unit, configured to monitor all transmission periods a receiving unit, configured to receive a header header portion of the data packet in a receiving timing of the currently monitored transmission period; and a determining unit, configured to determine, when the value of the length field in the header portion is not 0, determining that there is data transmission in the receiving timing, And the control unit is configured to control, when the value of the MD field in the header part is 0, to control the second device to enter a sleep state after receiving the data in the receiving timing, and the monitoring unit is further configured to use the value of the MD field in the header portion.
  • the control unit When it is 1, it continues to listen to the current listening transmission period until the value of the MD field in the header portion of the received data packet is 0; the control unit is also used to determine the length field in the header portion is 0, and the header When the value of the MD field in the part is 0, the second device is controlled to enter the sleep state, and the listening unit is further used to continue monitoring when the value of the MD field in the header portion is 1. Monitor current transmission period, the MD field value in the header portion of the packet until the receiver is 0; the control unit is further configured to, when a packet is not received in the receiving time, the control device enters the second sleep state.
  • the foregoing receiving occasion is the first receiving occasion in the currently monitored transmission period.
  • the twelfth aspect of the present application provides a second device, which is capable of receiving a plurality of data packets in one transmission cycle, and the second device may include: a determining unit, configured to determine whether according to the first transmission period There is data transmission to determine whether it is necessary to monitor the second transmission period; the first transmission period and the second transmission period are continuous in time.
  • the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second device is not required.
  • the transmission cycle is monitored.
  • a thirteenth aspect of the present application provides a first device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the first aspect or the first aspect A data transmission method according to any of the possible implementations.
  • the processor is configured to control the communication bus to send a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be paired with the first
  • the transmission period is monitored for at least one transmission period that is continuous in time.
  • the processor is further configured to control the communication bus to send a first message to the second device, where the first message is used to indicate that the first device supports the first feature, and the first feature is supported by
  • the data packet carries an indication flag to indicate whether the transmission period needs to be monitored.
  • the communication bus is further configured to receive a second message from the second device, where the second message is used to indicate that the second device supports the first feature.
  • the processor when the first device uses the Bluetooth protocol to communicate with the second device, the processor is further configured to determine that the connection Slave Latency is not 0.
  • a second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the second or second aspect A data transmission method according to any of the possible implementations.
  • the processor is configured to control the communication bus to receive a data packet from the first device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be A transmission period is monitored by at least one transmission period that is consecutive in time; the processor is further configured to: when the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is consecutive with the first transmission period in time At least one transmission period that is consecutive in time with the first transmission period is monitored.
  • the foregoing processor is further configured to: when the indicator is used to indicate that the second device does not need to monitor at least one transmission period that is consecutive in time with the first transmission period, determine the second The transmission period monitors the second transmission period.
  • the processor is further configured to control the communication bus to receive a first message from the first device, where the first message is used to indicate that the first device supports the first feature, the first feature To support the feature that the indication flag is carried in the data packet to indicate whether the transmission period needs to be monitored, the second message is sent to the first device, where the second message is used to indicate that the second device supports the first feature.
  • a fifteenth aspect of the present application provides a first device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the third or third aspect A data transmission method according to any of the possible implementations.
  • the processor is configured to: when the number of data packets that the first device can send to the second device in one transmission cycle is determined, send the first data to the second device in the first transmission period. a packet; wherein, in the first transmission period, there is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is The first transmission period is continuous in time.
  • the processor is further configured to control the communication bus to send a first message to the second device, where the first message is used to negotiate with the second device, where the first device can The number of packets sent by the second device.
  • the processor is further configured to control the communication bus to receive a second message from the second device, the second message being used to confirm the number of data packets that the first device can send to the second device in one transmission cycle.
  • a second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the fourth or fourth aspect A data transmission method according to any of the possible implementations.
  • the processor is configured to: when the number of data packets that the first device can send to the second device in one transmission cycle is determined, receive the first data from the first device in the first transmission period. a packet; there is no data transmission after the first data packet in the first transmission period; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is The first transmission period is continuous in time; the processor is further configured to monitor the second transmission period.
  • the processor is further configured to control the communication bus to receive a first message from the first device, where the first message is used to negotiate with the second device, where the first device can be in one transmission cycle. The number of packets sent to the second device.
  • the processor is further configured to control the communication bus to send a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  • a seventeenth aspect of the present application provides a second device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the fifth or fifth aspect A data receiving method according to any of the possible implementations.
  • the processor is configured to monitor all transmission periods; and the processor is further configured to control the header of the communication bus to receive a header in a receiving timing of a currently monitored transmission period; the processor, When the value of the length field in the header portion is not 0, it is determined that there is data transmission in the receiving occasion, and when the value of the MD field in the header portion is 0, the second device is controlled after the data reception is completed in the receiving timing.
  • the processor is also used for When the value of the length field in the header part is 0, and the value of the MD field in the header part is 0, the second device is controlled to enter a sleep state, and when the value of the MD field in the header part is 1, the continuation is continued. Listens to the current listening transmission period until the value of the MD field in the header portion of the received packet is 0.
  • the processor is further configured to control the second device to enter a sleep state when the data packet is not received in the receiving occasion.
  • the foregoing receiving occasion is the first receiving occasion in the currently monitored transmission period.
  • a second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the data of the sixth aspect Receiving method.
  • the processor is configured to determine whether to monitor the second transmission period according to whether there is data transmission in the first transmission period; the first transmission period and the second transmission period are consecutive in time.
  • the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second device is not required.
  • the transmission cycle is monitored.
  • a seventeenth aspect of the present application provides a computer storage medium comprising computer instructions that, when executed on a first device, cause the first device to perform a possible implementation as in the first aspect or the first aspect A data transmission method according to any one of the third aspect or the third aspect of the invention.
  • a nineteenth aspect of the present application provides a computer storage medium comprising computer instructions that, when executed on a second device, cause the second device to perform a possible implementation as in the second aspect or the second aspect
  • the method, or the data transmission method of any of the fourth aspect or the possible implementation of the fourth aspect, or the second device, the second device or the fifth aspect or the fifth aspect The data receiving method of any one of them.
  • a computer program product when the computer program product is run on a computer, causing the computer to perform a possible implementation of the first aspect or the first aspect, or the third aspect or the third A data transmission method according to any of the possible implementations of the invention.
  • a twenty-first aspect of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to perform a possible implementation of the second aspect or the second aspect, or the fourth aspect or The data transmission method of any one of the possible implementations of the fourth aspect, or the computer, the data receiving method of the fifth aspect or the fifth aspect or the data receiving method according to any one of the sixth aspects.
  • a chip system may include: one or more processors, a memory, a communication bus; the memory is configured to store one or more computer instructions, the one or more The processor is coupled to the memory via the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory to cause the chip system to perform the first aspect or the A possible implementation of the aspect, or the data transmission method of any of the third aspect or the possible implementation of the third aspect.
  • a chip system may include: one or more processors, a memory, a communication bus; the memory is configured to store one or more computer instructions, the one or more The processor is coupled to the memory via the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory to cause the chip system to perform the second aspect or the A possible implementation of the second aspect, or the data transmission method of any of the fourth aspect or the possible implementation of the fourth aspect, or the second device for performing the fifth aspect or the fifth aspect of the claim The data receiving method of any one of the sixth aspect.
  • a communication system comprising: the first device as described in the seventh aspect or the possible implementation of the seventh aspect, and the eighth aspect or the eighth A second device as described in a possible implementation of the aspect.
  • the communication system may comprise: the first device as described in the ninth aspect or the possible implementation of the ninth aspect, and the second device as described in the tenth aspect or the possible implementation manner of the tenth aspect .
  • 1 is a timing diagram of transmitting data according to an embodiment of the present application.
  • FIG. 2 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure.
  • FIG. 3 is a simplified schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a mobile phone according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a header of a data packet according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic timing diagram of another transmission data according to an embodiment of the present application.
  • FIG. 12 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a first device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of another first device according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a second device according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of another second device according to an embodiment of the present disclosure.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, “multiple” means two or more unless otherwise stated.
  • the words “exemplary” or “such as” are used to mean an example, illustration, or illustration. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words “exemplary” or “such as” is intended to present the concepts in a particular manner.
  • the present application can be applied to wireless communication protocols such as wireless fidelity (Wi-Fi) protocol, Bluetooth protocol, ZigBee protocol, and Near Field Communication (NFC) protocol.
  • Wi-Fi wireless fidelity
  • Bluetooth protocol in order to save power consumption of devices, data transmission is performed between devices with a certain transmission period (such as a connection event interval in the Bluetooth protocol).
  • the Bluetooth protocol is taken as an example for description.
  • the example in the embodiment of the present application is described by taking the Bluetooth 4.0 protocol as an example, but the embodiment of the present application is also applicable to other versions of the Bluetooth protocol, for example, the Bluetooth 4.1 protocol, the Bluetooth 4.2 protocol, and the like.
  • Connection events are usually separated by a connection event interval and do not overlap.
  • a point at which a connection event starts can be called an anchor point.
  • the master device can send a data packet from the anchor point to the slave device, and the slave device can listen to the data packet sent by the master device at the anchor point to implement data interaction between the devices.
  • the Bluetooth protocol stipulates that both devices can send and receive multiple times in one connection event, such as 4-6 times in a connection event, the only qualification condition is that the master device only needs to ensure that before the next connection event begins.
  • the current connection event can be closed at the time of T_IFS (eg 150us). Both devices may not perform data transmission and reception in the above connection event.
  • connection event interval which is simply referred to as the interval: it determines the time interval between two connection events.
  • connection event interval is the above transmission period.
  • the master device and the slave device From the anchor point of the connection event to the event shutdown, the master device and the slave device perform 4 times of transmission (TX) / 4 times of reception (RX). After the event is turned off, the master device and the slave device can enter the sleep state to save the device. Power consumption.
  • Latency which defines the number of consecutive connection events in which the slave device does not need to be constantly listening, ie, Latency determines the continuous connection event that allows the slave device to not listen. quantity.
  • the value of Latency can be an integer from 0 to (connSupervisionTimeout/(interval*2)-1) and should be less than 500.
  • the connSupervisionTimeout indicates the connection supervision timeout, that is, the maximum time interval between two data packets. If the time interval between two data packets received is greater than the value defined by connSupervisionTimeout, the current chain can be considered. The road has been disconnected.
  • the slave device can start listening at the anchor point of the connection event 1, and enter the sleep state after the event of the connection event 1 is closed, in the connection.
  • Event 2 - Connection event 5 does not listen, and starts listening at the anchor point of connection event 6, that is, the slave device wakes up from sleep state every 300ms to listen, so that when the master device starts from the anchor point of connection event 1 and connection event 6,
  • the slave can start listening at the anchor of connection event 1 and connection event 6 to receive the packet sent by the master.
  • the embodiment of the present application provides a data transmission method, where the basic principle is: the first device sends a carrying indication to the second device in the first transmission period.
  • a data packet of the flag, the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period.
  • the first device is continuously continuous with the transmission period in time.
  • the second device can determine that the monitoring needs to be continued according to the indication flag, and then receive the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and comparing
  • the prior art method of data transmission by dynamically adjusting interval and/or Latency saves power consumption of the device.
  • the system architecture may include: a master device 301 and a slave device 302.
  • the master device 301 and the slave device 302 all refer to devices that support the above wireless communication protocol, such as the Bluetooth protocol.
  • the master device 301 and the slave device 302 can establish a connection using the above-described wireless communication protocol to implement short-range communication.
  • the party that actively initiates the connection request may be referred to as a master device, and the party that passively receives the connection request may be referred to as a slave device.
  • the main device 301 can be a desktop type, a laptop, a tablet computer, a handheld computer, a mobile phone, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, an individual.
  • PDA Personal Digital Assistant
  • television VR device, AR device, wearable device, smart watch, keyboard, vehicle, vehicle tool, etc.
  • the main device 301 is a mobile phone as an example.
  • the slave device 302 can be a desktop, a laptop, a tablet, a handheld computer, a mobile phone, a laptop, an Ultra-mobile Personal Computer (UMPC), a netbook, and a cellular phone, personal digital. Assistant (Personal Digital Assistant, PDA), TV, VR device, AR device, wearable device, smart glasses, smart watch, keyboard, stereo, printer, smart home device, vehicle, car tool, inkcase, earphone, bracelet, etc. Wait.
  • the smart home device can be a water dispenser, an air conditioner, a refrigerator, and the like.
  • the slave device 302 in FIG. 3 is exemplified by a smart watch.
  • the first device may be the foregoing master device 301, and the second device is the slave device 302.
  • the first device is the foregoing slave device 302
  • the second device is the master device 301.
  • FIG. 4 is introduced by the master device 301 and/or the slave device 302 provided by the embodiments of the present application.
  • the mobile phone shown in FIG. 4 is merely an example and does not constitute a limitation on the mobile phone, and the mobile phone may have more or less components than those shown in the figure, and may be combined. Two or more components, or may have different component configurations.
  • the various components shown in FIG. 4 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile phone may specifically include: a processor 401, a radio frequency (RF) circuit 402, a memory 403, a touch screen 404, a Bluetooth device 405, one or more sensors 406, and a wireless fidelity (WI).
  • RF radio frequency
  • WI wireless fidelity
  • -FI means 407, positioning means 408, audio circuit 409, peripheral interface 410, and power supply system 411. These components can communicate over one or more communication buses or signal lines (not shown in Figure 4).
  • the processor 401 is a control center of the mobile phone, and connects various parts of the mobile phone by using various interfaces and lines, by running or executing an application (Application, App) stored in the memory 403, and calling data and instructions stored in the memory 403. , perform various functions of the mobile phone and process data.
  • the processor 401 can include one or more processing units; the processor 401 can also integrate an application processor and a modem processor; wherein the application processor primarily processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.
  • the processor 401 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd.
  • the processor 401 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the radio frequency circuit 402 can be used to receive and transmit wireless signals during transmission or reception of information or calls. Specifically, the radio frequency circuit 402 can process the downlink data of the base station and then process the data to the processor 401. In addition, the data related to the uplink is sent to the base station.
  • radio frequency circuit 402 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency circuit 402 can also communicate with other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
  • the memory 403 is used to store applications and data, and the processor 401 executes various functions of the mobile phone and data processing by running applications and data stored in the memory 403.
  • the memory 403 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at the time (such as audio data, phone book, etc.).
  • the memory 403 may include a high speed random access memory, and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
  • the memory 403 can store various operating systems, such as those developed by Apple. Operating system, developed by Google Inc. Operating system, etc.
  • Touch screen 404 can include touch-sensitive surface 404-1 and display 404-2.
  • the touch-sensitive surface 404-1 eg, a touch panel
  • the touch-sensitive surface 404-1 can capture a touch event on or near the user of the mobile phone (eg, the user uses a finger, a stylus, or the like on the touch-sensitive surface 404-1 or The operation in the vicinity of the touch-sensitive surface 404-1) and the collected touch information is transmitted to other devices such as the processor 401.
  • the touch event of the user in the vicinity of the touch-sensitive surface 404-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touchpad in order to select, move or drag a target (eg, an icon, etc.) And only the user is located near the electronic device in order to perform the desired function.
  • a target eg, an icon, etc.
  • the touch-sensitive surface 404-1 capable of floating touch can be realized by capacitive, infrared light, ultrasonic, or the like.
  • the touch sensitive surface 404-1 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the touch information into contact coordinates, and then Sended to the processor 401, the touch controller can also receive and execute the instructions sent by the processor 401.
  • the touch sensitive surface 404-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • a display (also referred to as display screen) 404-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone.
  • the display 404-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touch sensitive surface 404-1 can be overlaid on the display 404-2, and when the touch sensitive surface 404-1 detects a touch event on or near it, is transmitted to the processor 401 to determine the type of touch event, followed by the processor 401 can provide a corresponding visual output on display 404-2 depending on the type of touch event.
  • touch-sensitive surface 404-1 and display screen 404-2 are implemented as two separate components to implement the input and output functions of the handset, in some embodiments, touch-sensitive surface 404-1 can be utilized. It is integrated with the display 404-2 to implement the input and output functions of the mobile phone.
  • the touch screen 404 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch-sensitive surface (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application.
  • the touch-sensitive surface 404-1 can be overlaid on the display 404-2, and the size of the touch-sensitive surface 404-1 is greater than the size of the display 404-2 such that the display 404- 2 is completely covered under the touch-sensitive surface 404-1, or the touch-sensitive surface 404-1 may be disposed on the front side of the mobile phone in the form of a full-board, that is, the user's touch on the front of the mobile phone can be sensed by the mobile phone, so that Achieve a full touch experience on the front of the phone.
  • the touch-sensitive surface 404-1 is disposed on the front side of the mobile phone in the form of a full-board
  • the display screen 404-2 can also be disposed on the front side of the mobile phone in the form of a full-board, so that the front side of the mobile phone can be realized. Borderless structure.
  • the mobile phone may also have a fingerprint recognition function.
  • the fingerprint reader 412 can be configured on the back of the handset (eg, below the rear camera) or on the front side of the handset (eg, below the touch screen 404).
  • the fingerprint recognition function can also be implemented by configuring the fingerprint identifier 412 in the touch screen 404, that is, the fingerprint identifier 412 can be integrated with the touch screen 404 to implement the fingerprint recognition function of the mobile phone.
  • the fingerprint identifier 412 can be configured in the touch screen 404, can be part of the touch screen 404, or can be otherwise configured in the touch screen 404.
  • the fingerprint identifier 412 can also be implemented as a full-board fingerprint reader, and thus the touch screen 404 can be viewed as a panel that can be fingerprinted at any location.
  • the fingerprint identifier 412 can send the collected fingerprint to the processor 401 for the processor 401 to process the fingerprint (eg, fingerprint verification, etc.).
  • the main component of the fingerprint identifier 412 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
  • the mobile phone may also include a Bluetooth device 405 for enabling data exchange between the mobile phone and other short-range electronic devices (eg, the second device 302, such as a mobile phone, smart watch, etc.).
  • the Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
  • the handset may also include at least one type of sensor 406, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display of the touch screen 404 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone moves to the ear.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the WI-FI device 407 is configured to provide the mobile phone with network access complying with the WI-FI related standard protocol, and the mobile phone can access the WI-FI access point through the WI-FI device 407, thereby helping the user to send and receive emails and browse the webpage. And access to streaming media, etc., it provides users with wireless broadband Internet access.
  • the WI-FI device 407 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other electronic devices.
  • the positioning device 408 is configured to provide a geographic location for the mobile phone. It can be understood that the positioning device 408 can be specifically a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system. After receiving the geographical location sent by the positioning system, the positioning device 408 sends the information to the processor 401 for processing, or sends it to the memory 403 for storage. In some other embodiments, the positioning device 408 can be an Assisted Global Positioning System (AGPS) receiver, and the AGPS is an operation mode for performing GPS positioning with certain assistance, which can be utilized.
  • AGPS Assisted Global Positioning System
  • the signal of the base station allows the mobile phone to be positioned faster; in the AGPS system, the positioning device 408 can obtain positioning assistance by communicating with an auxiliary positioning server (such as a mobile phone positioning server).
  • the AGPS system assists the positioning device 408 in performing the ranging and positioning services by acting as an auxiliary server, in which case the auxiliary positioning server provides positioning by communicating with an electronic device such as a positioning device 408 (ie, a GPS receiver) of the mobile device via a wireless communication network. assist.
  • the positioning device 408 can also be a WI-FI access point based positioning technology.
  • each WI-FI access point has a globally unique MAC address
  • the electronic device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on, so that the WI can be obtained.
  • the electronic device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each WI-FI interface is retrieved by the location server.
  • the geographic location of the entry point combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the electronic device and sends it to the location device 408 of the electronic device.
  • Audio circuitry 409, speaker 413, microphone 414 can provide an audio interface between the user and the handset.
  • the audio circuit 409 can transmit the converted electrical data of the received audio data to the speaker 413, and convert it into a sound signal output by the speaker 413; on the other hand, the microphone 414 converts the collected sound signal into an electrical signal, and the audio circuit 409 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 402 for transmission to, for example, another mobile phone, or the audio data is output to the memory 403 for further processing.
  • Peripheral interface 410 for providing various interfaces to external input/output devices (eg, keyboard, mouse, external display, external memory, subscriber identity module card, etc.). For example, it is connected to the mouse through a universal serial bus interface, and is connected to a Subscriber Identity Module (SIM) card provided by a telecommunications carrier through a metal contact on the card slot of the subscriber identity module.
  • SIM Subscriber Identity Module
  • Peripheral interface 410 can be used to couple the external input/output peripherals described above to processor 401 and memory 403.
  • the mobile phone may further include a power supply device 411 (such as a battery and a power management chip) for supplying power to various components, and the battery may be logically connected to the processor 401 through the power management chip, thereby managing charging, discharging, power consumption management, etc. through the power supply device 411.
  • a power supply device 411 such as a battery and a power management chip
  • the battery may be logically connected to the processor 401 through the power management chip, thereby managing charging, discharging, power consumption management, etc. through the power supply device 411.
  • the mobile phone may further include a camera (front camera and/or rear camera), a flash, a micro projection device, an NFC device, and the like, and details are not described herein.
  • a camera front camera and/or rear camera
  • a flash may further include a camera (front camera and/or rear camera), a flash, a micro projection device, an NFC device, and the like, and details are not described herein.
  • FIG. 5 is a schematic flowchart diagram of a data transmission method according to an embodiment of the present application. The method is applied to the communication between the first device and the second device, wherein the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle. As shown in FIG. 5, the method may include the following steps: S501-S504.
  • the first device sends a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be consecutive in time with the first transmission period. At least one transmission cycle is monitored.
  • the above indication flag may be included in a header of a data packet.
  • the data transmission is performed by using the Bluetooth protocol between the first device and the second device.
  • the indication flag may be represented by NCOMDD (Next Connection Event More Data), as shown in FIG. Schematic diagram of the header.
  • the header of the data packet includes: a Logical Link Identifier (LLID) field, a Next Expected Sequence Number (NESN) field, and a Sequence Number (Sequence Number, SN) field, More Data (MD) field, NCMMD field, Reserve (RFU), and Length field.
  • LLID Logical Link Identifier
  • NESN Next Expected Sequence Number
  • SN Sequence Number
  • MD More Data
  • NCMMD field More Data
  • RNU Reserve
  • Length field Length field.
  • the NCEMD field is a new field in the application, and the other fields are standard fields existing in the Bluetooth protocol. For detailed descriptions of other fields, refer to the Bluetooth protocol, which is not described herein.
  • the NCMMD field is used to indicate whether the second device needs to monitor at least one transmission period that is consecutive in time with the current transmission period.
  • the length of the NCEMD field is related to the number of transmission cycles that need to indicate whether the second device needs to be monitored.
  • the number of transmission periods that need to be instructed to be monitored by the second device is 1, that is, the first device needs to indicate whether the second device needs to monitor the next transmission period that is consecutive in time with the current transmission period.
  • the length of the NCMMD field may be 1 bit. For example, if the NCMMD field is 1, it indicates that the second device needs to monitor the next transmission period that is consecutive with the current transmission period. The NCMMD field is 0, indicating The second device does not need to listen to the next transmission cycle that is contiguous with the current transmission cycle.
  • the number of transmission periods that need to be instructed to be monitored by the second device is 2, that is, the first device needs to indicate whether the second device needs to monitor two transmission periods that are consecutive in time with the current transmission period.
  • the length of the NCMMD field can be 2 bits.
  • the NCMMD field is 11, indicating that the second device needs to listen to the next transmission cycle that is consecutive with the current transmission cycle and the next transmission cycle.
  • the NCEMD field is 10, indicating that the second device needs to monitor the next transmission period that is consecutive with the current transmission period, and does not need to monitor the next transmission period.
  • the NCMMD field is 00, indicating that the second device does not need to be current and current.
  • the next transmission period of the transmission cycle that is continuous in time and the next transmission cycle are monitored.
  • the indication flag is included in the header of the data packet as an example. In a specific implementation, the indication flag may also be included in other locations in the data packet.
  • the application examples are not specifically limited.
  • the length of the indication mark is not specifically limited in the embodiment of the present application.
  • the first device in the first transmission period, may carry an indication flag in the transmitted data packet, to indicate whether the second device needs to be at least temporally continuous with the first transmission period.
  • a transmission cycle is monitored.
  • the second device in a case where the first device transmits data in at least one transmission period that is continuous with the first transmission period in time, the second device can determine that the monitoring needs to be continued according to the indication flag, thereby being able to receive the information in time.
  • Data transmitted by a device in a case where the first device transmits data in at least one transmission period that is continuous with the first transmission period in time.
  • the data transmission between the first device and the second device by using the Bluetooth protocol is taken as an example.
  • the foregoing transmission period is referred to as a connection event interval in the Bluetooth protocol, and is simply referred to as interval.
  • interval 60ms
  • FIG. 7 (FIG. 7 is a timing diagram of the transmission data shown from the perspective of the transmitting device, that is, the first device), when the first device has a data transmission requirement, and it is assumed that the data needs to be divided into 7 data packets.
  • the first device can start data transmission in interval 1.
  • the first device can send up to 4 times of data in one connection event, the first device can start the first TX, the second TX, the third TX, and the anchor point of the connection event 1 corresponding to the interval 1 At the fourth TX, the data packet 1, the data packet 2, the data packet 3, and the data packet 4 are respectively transmitted.
  • the interval 1 is an interval that the second device needs to monitor according to the interval and the Latency
  • the second device does not monitor the interval 2 according to the provisions of the existing Bluetooth protocol.
  • the first device in order to ensure that the data of the first device can be transmitted to the second device in time, the first device may carry the indication flag in the data packet sent in the interval 1, and the indication flag is used at this time.
  • the first device may carry the indication flag in all data packets sent in the interval 1, that is, the data packet 1, the data packet 2, the data packet 3, and the data packet 4, or may be only in the interval 1.
  • the last transmitted packet, that is, the packet 4 carries the indication flag to save information overhead.
  • the first device carries an NCMMD field of value 1 in the header of the data packet 4 transmitted in the interval 1 to indicate that the second device needs to listen to the interval 2.
  • the first device may send the remaining data packets, that is, the data packet 5 and the data packet 6, respectively, at the first TX, the second TX, and the third TX starting from the anchor point of the connection event 2 corresponding to the interval 2.
  • the foregoing sending the data packet in the interval may specifically refer to the connection corresponding to the interval.
  • the packet is sent in the event.
  • the foregoing monitoring the interval may specifically refer to monitoring the connection event corresponding to the interval.
  • the foregoing sending a data packet in the interval 1 may specifically mean that the data packet is sent in the connection event 1 corresponding to the interval 1.
  • the monitoring of the interval 2 may be performed by monitoring the connection event 2 corresponding to the interval 2.
  • the second device receives the data packet from the first device in the first transmission period.
  • the second device may listen to the interval 1 to receive a data packet that the first device starts transmitting at the anchor point of the connection event 1 corresponding to the interval 1.
  • the second device After the second device receives the data packet sent by the first device in the first transmission period, it may determine, according to the indication flag included in the received data packet, whether at least one transmission period that is temporally consecutive with the first transmission period is needed. Monitor.
  • the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is consecutive in time with the first transmission period
  • the second device pairs the at least one transmission that is consecutive in time with the first transmission period. The cycle is monitored.
  • the second device may consider that the first device is in time with the first transmission period Data transmission is performed in at least one consecutive transmission period, and at this time, the second device can monitor at least one transmission period that is temporally continuous with the first transmission period. For example, in conjunction with the example shown in FIG. 7, the second device may listen to the interval 2 to receive a data packet that the first device starts transmitting at the anchor point of the connection event 2 corresponding to the interval 2.
  • the first device may carry the indication in the data packet sent in the current transmission period.
  • the second device does not need to indicate the at least one transmission period that is consecutive in time with the current transmission period, so that the second device can enter the sleep state after receiving the completion data in the current transmission period, and can be configured according to the configuration.
  • the relevant parameters such as the interval and the Latency parameters in the Bluetooth protocol, determine the next transmission period that needs to be monitored, and then monitor the determined transmission period. For example, in conjunction with the example shown in FIG.
  • the second device may enter a sleep state, and since the first device has completely transmitted the data in the interval 2, That is, the indication flag included in the data packet in the connection event 2 corresponding to the interval 2 is used to indicate that the second device does not need to monitor the time interval 3 consecutively with the interval 2, so the second device can according to the data in the connection event 2.
  • the time point wakes up from sleep and listens to interval 6.
  • the second device when the indication flag is used to indicate that the second device does not need to monitor for some or some intervals, the second device may also monitor the intervals. That is, in the case that the indication flag is used to indicate that the second device does not need to monitor the interval, the second device may determine whether the interval needs to be monitored according to the configuration of the second device. There are no specific restrictions here.
  • the second device determines the second transmission period, and monitors the second transmission period.
  • the second device may determine, according to the configured related parameters, the next one that needs to be monitored.
  • the transmission period that is, the second transmission period, and the second transmission period is monitored. It should be noted that the specific implementation of determining the second transmission period may refer to the related description in S503, and the embodiments of the present application are not described in detail herein.
  • the method may further include the following steps: S505-S506.
  • the first device sends a first message to the second device, where the first message is used to indicate that the first device supports the first feature.
  • the first feature is to support the feature of carrying an indication flag in the data packet to indicate whether the transmission period needs to be monitored.
  • the second device sends a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  • the first message may be a logical link control protocol feature request (LLCP Feature Request), and the second message may be For the logical link control protocol feature response (LLCP Feature Response).
  • LLCP Feature Request logical link control protocol feature request
  • LLCP Feature Response For the logical link control protocol feature response
  • the first device may send a LLCCP Feature Request to the second device, and carry the LLC feature in the LLCP Feature Request when the first device supports the first feature.
  • the first characteristic is to indicate that the first device supports the first characteristic.
  • the second device After receiving the LLCP Feature Request, the second device replies to the first device with the first feature, and when the second device supports the first feature, the second device carries the first feature to indicate that the second device supports the first characteristic. After the first device and the second device obtain the feature list supported by the other party, if both the first feature is supported, the first device and the second device start the first feature. If one party does not support the first feature, the two devices can ignore the indicator carried in the data packet when interacting, and determine the transmission period to be monitored according to the existing protocol. Alternatively, if one party does not support the first feature, the two devices may not carry the indication flag when interacting, but determine the transmission period that needs to be monitored according to the existing protocol.
  • the first device sends a data packet carrying the indication flag to the second device in the first transmission period, where the indication flag is used to indicate whether the second device needs to be in the first transmission period. At least one transmission cycle that is continuous in time is monitored. In this way, by carrying an indication flag indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in a transmission period, the first device is continuously continuous with the transmission period in time.
  • the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and comparing
  • the prior art saves power consumption of the device by dynamically adjusting the interval and/or Latency for data transmission.
  • FIG. 9 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present application.
  • the method is applied to the communication between the first device and the second device, wherein the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle.
  • the method may include the following steps: S901-S903.
  • the first device when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first data packet to the second device in the first transmission period; There is no data transmission after the first data packet, the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period, and the second transmission period and the first transmission period are in time. continuous.
  • the second device receives the first data packet from the first device in the first transmission period.
  • the second device monitors the second transmission period.
  • the MD field included in the header of the data packet is used to indicate whether there is still another data to be transmitted among the same connection event.
  • There will be no next data to be transmitted in the connection event ie the packet is the last packet of the connection event corresponding to the current transmission cycle.
  • the MD included in the other data packets except the last data packet of the connection event corresponding to the current transmission period is 1, and the last one of the connection events corresponding to the current transmission period.
  • the MD contained in the data packet is 0.
  • the first device may reuse the MD in the prior art, and set the MD included in the first data packet to 1, which is used to indicate The current transmission cycle will have data transmission during the second consecutive transmission cycle.
  • the first data packet is the last data packet of the current transmission period.
  • the second device receives the first data packet, when there is no data transmission after the first data packet in the current transmission period, that is, the first data packet is the last data packet of the current transmission period (in the current transmission cycle)
  • the first device and the second device end the connection event corresponding to the current transmission period.
  • the first device sets the MD in packet 4 to 1 to indicate that the first device will have data transmissions in interval 2 so that the second device can listen to interval 2.
  • the Header of the transmitted data packet does not include the NCMMD field shown in FIG. 6, but is included in the Header according to the provisions of the existing Bluetooth protocol.
  • the LLID field, the NESN field, the SN field, the MD field, the RFU, and the Length field may be used.
  • the method may further include the following steps: S904-S905.
  • the first device sends a first message to the second device, where the first message is used to negotiate, with the second device, the number of data packets that the first device can send to the second device in one transmission period.
  • the second device sends a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  • the first message may be a LLCP Feature Request
  • the second message may be a LLCP Feature Response, that is, the first device and the second device may pass the LLCP Feature Request and after establishing the physical layer connection.
  • the LLCP Feature Response negotiates the number of packets that the first device can send to the second device in one transmission cycle.
  • the foregoing sending the data packet in the transmission period may specifically mean that the transmission period corresponds to The packet is sent in the connection event.
  • the number of times of transmission and reception in the above transmission period may specifically refer to the number of times of connection and reception of the connection event corresponding to the transmission period.
  • the number of data packets that can be transmitted in the transmission cycle may specifically refer to the number of data packets that can be transmitted in the connection event corresponding to the transmission cycle.
  • the data transmission method when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first message to the second device in the first transmission period.
  • the data packet carries an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period. There is no data transmission after the first data packet in the first transmission period, that is, the first data packet is the last data packet in the first transmission period, and the second transmission period is continuous with the first transmission period in time.
  • the second device can timely monitor the time-continuous transmission period with the transmission period, thereby enabling the first device to quickly transmit data to the second device, and dynamically adjusting the interval and/or compared to the prior art. Latency's method of data transmission saves power consumption of the device.
  • the connection event corresponding to the interval is monitored. Therefore, in the embodiment of the present application, when using the data transmission methods shown in FIG. 5 and FIG. 8 and FIG. 9 and FIG. 10 of the embodiment of the present application, the first device may first determine the Latency. If the value of the value is 0, if the Latency is not equal to 0, the data transmission method provided by the embodiment of the present application may be used for data transmission.
  • the transmission rate may be adjusted between the first device and the second device by using a method in the prior art, such as a scheme for adjusting interval and/or Latency initiated by the device.
  • a scheme for adjusting interval and/or Latency initiated by the master device that is, the mechanism for transmitting data between the devices by using the above method, and the mechanism for adjusting the transmission rate between the devices in the prior art can coexist. The two will have no effect.
  • Another embodiment of the present application provides a data receiving method, which is applied to a process in which a first device communicates with a second device, where the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle.
  • the method may include the following process: when the first device has data to transmit, if all data transmission cannot be completed in one transmission cycle, the first device may perform data transmission in consecutive multiple transmission cycles.
  • the second device in order to receive the data sent by the first device as soon as possible, the second device can monitor all transmission periods. Moreover, in order to save power consumption of the device, when the second device monitors the current transmission period, the second device may first receive the Header portion of the data packet in the receiving occasion (such as RX) of the current transmission period, and according to the length field in the Header portion. The value is used to determine if there is data transmission in the receiving occasion. The length field can be used to indicate whether there is data transmission in the current receiving occasion. When the value of the length field is not 0, the second device may determine that there is data transmission in the current receiving occasion, and at this time, the data portion of the data packet may be received at the current receiving occasion.
  • the receiving occasion such as RX
  • the second device may determine that there is no data transmission in the current receiving occasion. The second device may further determine, according to the value of the MD field in the header part, whether there is still another data to be transmitted. If the value of the MD field in the Header part is 0, the second device may end the current connection event and enter the sleep state. status. If the value of the MD field in the Header part is 1, the second device may continue to listen to the current transmission period until the value of the MD field in the header portion of the received data packet is zero. In some embodiments of the present application, if the second device does not receive any packet in the receiving timing of the current transmission period, the second device may enter a dormant state, and the second device does not receive any packet, specifically, the second device. The device does not hear any Bluetooth signals.
  • the foregoing receiving occasion may be the first receiving occasion in the current transmission period.
  • the data transmission between the first device and the second device using the Bluetooth protocol is taken as an example.
  • the second device may not monitor the connection event corresponding to the connection event corresponding to the interval 2 to the interval 5.
  • the second device in order to complete the data transmission as soon as possible, the second device may be the connection event corresponding to the interval 2, the connection event 3 corresponding to the interval 3, the connection event 4 corresponding to the interval 4, and the interval 5 Connection event 5 is listening.
  • the second device Taking the second device to listen to the connection event 2 corresponding to the interval 2 as an example.
  • the second device starts from the anchor point of the connection event 2 corresponding to the interval 2, and when the first RX is monitored, the Header portion of the data packet can be received in the first RX, and can be received according to the first RX.
  • the value of the length field in the header portion of the packet determines whether there is data transmission in the first RX. If the second device determines that the length field in the header portion of the data packet received in the first RX is not 0 (not shown in FIG. 11), the second device may determine that there is data in the first RX. Transmit and receive data transmitted in the first RX.
  • the second device may determine, according to the value of the MD field in the Header part of the data packet received in the first RX, whether there is another data transmission in the connection event 2, when it is determined that there is a next data transmission, The second device can listen to the second RX until the value of the MD field in the header portion of the received data packet is zero. When it is determined that there is no next data transmission, the second device can enter a sleep state after the data reception in the first RX is completed.
  • the second device may also determine whether there is data transmission in the second RX according to the value of the MD field in the Header part of the data packet received in the first RX, but The second RX listens, and when listening to the second RX, determines whether there is data transmission in the second RX according to the value of the length field in the Header portion of the received packet in the second RX.
  • the second device may determine that there is no data transmission in the first RX. Moreover, the second device may close the current connection event and enter a sleep state (as shown in FIG. 11) when determining that the value of the MD field in the header portion of the data packet received in the first RX is 0. When the value of the MD field in the header portion of the received packet in the first RX is 1, the second device may continue to listen to the second RX until the MD field in the header portion of the received packet is taken. The value is 0.
  • the above method may be used to determine the reception in the transmission period. Whether there is data transmission at the timing or not, the method in the existing Bluetooth protocol can also be used to determine whether there is data transmission in the receiving occasion, which is not limited in this embodiment of the present application.
  • Another embodiment of the present application further provides another data receiving method, which is applied to a process in which a first device communicates with a second device, where the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle.
  • the second device may determine whether to monitor the next transmission period of the current transmission period according to whether there is data transmission in the current transmission period. For example, if there is data transmission in the current transmission cycle, the second device will listen to the next transmission cycle of the current transmission cycle, and when there is no data transmission in the current transmission cycle, the second device can consider the next transmission of the current transmission cycle.
  • the transmission period monitors the determined transmission period. For example, as shown in FIG. 12 (FIG. 12 is a timing diagram of transmission data shown from the perspective of a receiving device), data transmission using a Bluetooth protocol between the first device and the second device is taken as an example.
  • FIG. 12 FIG. 12 is a timing diagram of transmission data shown from the perspective of a receiving device
  • data transmission using a Bluetooth protocol between the first device and the second device is taken as an example.
  • the second device monitors the connection event 1 corresponding to the interval 1, it is determined that there is data transmission in the connection event 1 corresponding to the interval 1.
  • the second device may have data transmission according to the connection event 1 corresponding to the interval 1.
  • connection event 2 corresponding to the interval 2 may also have data transmission.
  • the second device monitors the connection event 2 corresponding to the interval 2. In this way, when the first device performs data transmission in the connection event 2 corresponding to the interval 2, the second device can receive the data transmitted by the first device in time, and achieve the purpose of quickly transmitting the data to the opposite end.
  • the second device may refer to the transmission of the data packet whose length field of the header part is not 0, that is, the second device only receives the data length not 0.
  • the next transmission period of the current transmission period is monitored; or, the second device may receive the data packet in the current transmission period (including the value of the length field of the header portion of the data packet). If the value is 0 or not 0, the second device will listen to the next transmission period of the current transmission period, and the actual implementation may be selected according to the requirements, which is not specifically limited in this embodiment.
  • the specific implementation may be that there is data transmission at the first RX in the connection event 1 corresponding to the interval 1, and it can be considered that there is data transmission in the current transmission period, and it is determined that the next transmission period for the current transmission period is required. Listening; or, there is data transmission at the last RX in connection event 1 corresponding to interval 1, it is considered that there is data transmission in the current transmission period, and it is determined that the next transmission period of the current transmission period needs to be monitored; or If there is data transmission at any RX in the connection event 1 corresponding to the interval 1, it is considered that there is data transmission in the current transmission period, and it is determined that the next transmission period of the current transmission period needs to be monitored, which are specific implementation aspects.
  • the embodiment of the present application is not limited herein.
  • the foregoing method embodiments may also be combined with each other to achieve the purpose of quickly transmitting data to the peer end.
  • the embodiment shown in FIG. 9 can be combined with the embodiment corresponding to FIG. 12, and when the number of data packets that the first device can send to the second device is determined in one transmission cycle, the second device is only determined.
  • the last receiving occasion of the current transmission period such as RX
  • the next transmission period of the current transmission period is monitored, and the MD included in the data packet is no longer judged whether it needs to be under the current transmission period.
  • a transmission cycle is monitored.
  • the first device and the second device include corresponding hardware structures and/or software modules for performing respective functions.
  • the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
  • the embodiment of the present application further provides a first device and a second device that implement the foregoing method embodiments.
  • the first device and the second device may be divided into functional modules.
  • each function may be divided into Functional modules can also integrate two or more functions into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 13 is a schematic diagram showing a possible structure of the first device 1300 involved in the foregoing embodiment, where the first device 1300 may include: a sending unit 1301.
  • the sending unit 1301 is configured to support the first device 1300 to perform S501, S505, S901, S904 and/or other processes for the techniques described herein in the foregoing method embodiments.
  • the first device 1300 may further include: a receiving unit 1302 and a determining unit 1303.
  • the receiving unit 1302 is configured to support the first device 1300 to perform the receiving operation in the foregoing method embodiments and/or other processes for the techniques described herein.
  • the determining unit 1303 is configured to support the electronic device to perform the determining operation in the above method embodiment and/or other processes for the techniques described herein.
  • the first device 1300 includes, but is not limited to, the unit modules enumerated above.
  • the first device 1300 may further include a display unit or the like for displaying content.
  • the specific functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples.
  • the application examples are not described herein.
  • FIG. 14 shows a possible structural diagram of the first device 1400 involved in the above embodiment.
  • the first device 1400 includes a processing module 1401, a storage module 1402, and a communication module 1403.
  • the processing module 1401 is configured to control and manage the actions of the first device 1400.
  • the storage module 1402 is configured to save program codes and data of the first device 1400.
  • the communication module 1403 is configured to support communication between the first device 1400 and other network entities to implement data interaction, Internet access, and the like of the first device.
  • the processing module 1401 can be a processor or a controller.
  • the communication module 1403 may be a transceiver, an RF circuit, a communication interface, or the like.
  • the storage module 1402 can be a memory.
  • the first device 1400 can also include a display module and an input module, which can be a screen or a display.
  • the input module can be a touch screen, a voice input device, or a fingerprint sensor.
  • the processing module 1401 is a processor
  • the communication module 1403 is an RF circuit
  • the storage module 1402 is a memory
  • the display module is a touch screen
  • the first device 1400 provided by the embodiment of the present application may be the mobile phone shown in FIG. 4 .
  • the communication module 1403 may include not only an RF circuit but also a WI-FI module, an NFC module, and a Bluetooth module. Communication modules such as RF circuits, NFC modules, WI-FI modules, and Bluetooth modules can be collectively referred to as communication interfaces.
  • the above processor, RF circuit, touch screen and memory can be coupled together by a bus.
  • FIG. 15 is a schematic diagram showing a possible structure of the second device 1500 involved in the foregoing embodiment.
  • the second device 1500 may include: a receiving unit 1501 and a monitoring device.
  • the receiving unit 1501 is configured to support the second device 1500 to perform S502, S902, and/or other processes for the techniques described herein in the foregoing method embodiments.
  • the monitoring unit 1502 is configured to support the second device 1500 to perform the operations of listening to the second transmission period in S503, S504 in the foregoing method embodiment, S903, and/or other processes for the techniques described herein.
  • the second device 1500 may further include: a determining unit 1503, a sending unit 1504, and a control unit 1505.
  • the determining unit 1503 is configured to support the second device 1500 to perform the operations of determining the second transmission period in S504 and/or other processes for the techniques described herein in the foregoing method embodiments.
  • the sending unit 1504 is configured to support the second device 1500 to perform S506, S905, and/or other processes for the techniques described herein in the foregoing method embodiments.
  • the control unit 1505 is configured to support the second device 1500 to perform the control operations in the above method embodiments and/or other processes for the techniques described herein.
  • the second device 1500 includes, but is not limited to, the unit modules enumerated above.
  • the second device 1500 may further include a display unit or the like for displaying content.
  • the specific functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples.
  • the application examples are not described herein.
  • FIG. 16 shows a possible structural diagram of the second device 1600 involved in the above embodiment.
  • the second device 1600 includes a processing module 1601, a storage module 1602, and a communication module 1603.
  • the processing module 1601 is configured to control and manage the actions of the second device 1600.
  • the storage module 1602 is configured to save program codes and data of the second device 1600.
  • the communication module 1603 is configured to support communication between the second device 1600 and other network entities to implement data interaction, Internet access, and the like of the second device.
  • the processing module 1601 can be a processor or a controller.
  • the communication module 1603 can be a transceiver, an RF circuit or a communication interface, or the like.
  • the storage module 1602 can be a memory.
  • the first device 1600 can also include a display module and an input module, which can be a screen or a display.
  • the input module can be a touch screen, a voice input device, or a fingerprint sensor.
  • the communication module 1603 may include not only an RF circuit but also a WI-FI module, an NFC module, and a Bluetooth module.
  • Communication modules such as RF circuits, NFC modules, WI-FI modules, and Bluetooth modules can be collectively referred to as communication interfaces.
  • the above processor, RF circuit, touch screen and memory can be coupled together by a bus.
  • Still other embodiments of the present application provide another computer storage medium comprising computer instructions that, when executed on a second device, cause the second device to perform as shown in FIG. 5, FIG. 8, FIG. 9, or FIG.
  • the related method steps in any of the figures implement the data transmission method in the above embodiments.
  • a chip system which may include: one or more processors, a memory, a communication bus; the memory is used to store one or more computer instructions, and the one or more processors and The memory is connected by the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory, so that the chip system executes as shown in FIG. 5, FIG. 8, FIG. Or the related method steps in any of the figures of FIG. 10 implement the data transmission method in the above embodiment.
  • the chip system can be an integrated circuit IC or an on-chip system SOC.
  • the integrated circuit may be a general-purpose integrated circuit, a field programmable gate array FPGA, or an application specific integrated circuit ASIC.
  • the first device, the second device, the computer storage medium, the computer program product, or the chip system provided by the embodiments of the present application are all used to perform the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to. The beneficial effects in the corresponding methods provided above are not described herein again.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the embodiments 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 integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the medium includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in the various embodiments of the present application.
  • the foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

An embodiment of the present application relates to the field of terminals, and disclosed thereby are a data transmission method and device, which solve the problem wherein data cannot be quickly transmitted to a peer end and the power consumption of a device is wasted. A specific solution is applied to a first device: the first device may send multiple data packets to a second device during one transmission cycle, the first device sending data packets to the second device during a first transmission cycle; the data packets comprise an indicator, and the indicator is used to indicate whether the second device needs to monitor at least one transmission cycle that is temporally continuous with the first transmission cycle.

Description

一种数据传输方法及设备Data transmission method and device 技术领域Technical field
本申请实施例涉及终端领域,尤其涉及一种数据传输方法及设备。The embodiments of the present invention relate to the field of terminals, and in particular, to a data transmission method and device.
背景技术Background technique
蓝牙(Bluetooth)技术是一种支持设备之间短距离通信的无线电技术,工作在全球可用的2.4GHz无线波段。随着通信技术的不断发展,蓝牙技术的应用越来越广泛,比如,近年来低功耗蓝牙(Bluetooth Low Energy,BLE)技术已广泛应用于手机、笔记本电脑、穿戴设备、智能家居等设备。Bluetooth technology is a radio technology that supports short-range communication between devices and operates in the 2.4 GHz wireless band available worldwide. With the continuous development of communication technology, the application of Bluetooth technology has become more and more extensive. For example, in recent years, Bluetooth Low Energy (BLE) technology has been widely used in mobile phones, notebook computers, wearable devices, smart homes and the like.
在现有蓝牙协议中,定义了连接事件间隔(connection event interval,后续简称为interval)和从设备潜伏期(connection Slave Latency,后续简称为Latency)这两个参数。interval决定了两个连接事件(connection event)之间的时间间隔,Latency决定了允许从设备不进行监听的连续连接事件的数量。一个连接事件开始的点可以称为锚点,主设备可以从锚点开始发送数据包给从设备,从设备可以对主设备在锚点发出的数据包进行监听,以实现设备之间的数据交互。通过设定interval和Latency这两个参数,可以降低采用蓝牙协议进行数据传输时设备的功耗。但采用蓝牙协议进行数据传输时,不仅要尽可能的节省设备的功耗,还需考虑如何提高数据传输的速率。In the existing Bluetooth protocol, the connection event interval (hereinafter referred to as interval) and the slave device latency (connection Slave Latency, hereinafter referred to as Latency) are defined. The interval determines the time interval between two connection events. Latency determines the number of consecutive connection events that the slave device is not allowed to listen to. A point at which a connection event starts can be called an anchor point. The master device can send a data packet from the anchor point to the slave device, and the slave device can listen to the data packet sent by the master device at the anchor point to implement data interaction between the devices. . By setting the two parameters of interval and Latency, you can reduce the power consumption of the device when transmitting data using the Bluetooth protocol. However, when using the Bluetooth protocol for data transmission, not only should the power consumption of the device be saved as much as possible, but also how to increase the rate of data transmission.
在现有技术中,可以通过动态调整interval和/或Latency来提高数据传输速率。interval和/或Latency的调整可以由主设备发起,也可以由从设备发起。举例来说,以从设备发起interval的调整为例,并假设主设备和从设备初始协商的配置中,interval为48.75ms,Latency为0。按照现有蓝牙4.0协议的规定:在主设备与从设备建立连接之后,当需要调整数据传输速率时,从设备可以向主设备发送连接参数更新请求(Connection Parameter Update request)。主设备接收到连接参数更新请求后,向从设备发送连接更新指示(LL_CONNECTION_UPDATE_REQ)报文,以指示从设备进行数据传输速率的调整,并向从设备发送连接参数更新响应(Connection Parameter Update response)。如通过执行上述步骤,interval由48.75ms调整为12.5ms,即数据传输速率由低速调整为高速。由于上述消息仅在连接事件中才能进行传输,因此,主设备与从设备之间一般需要花费3个interval才能完成数据传输速率的调整。且现有蓝牙4.0协议中规定,调整后的速率生效的最短时间点应该距离连接更新指示报文发出的时间点不少于6个interval(此处指调整前的interval),即在连接更新指示报文发出后的6个interval后,设备之间才可以采用高速进行数据的传输。并且,为了节省设备功耗,在数据传输完成后,还需要重复上述步骤对数据传输速率进行反向调整,即将interval由12.5ms调整为低速(如48.75ms)。若后续又有数据传输需求,则需再次重复上述过程。In the prior art, the data transmission rate can be increased by dynamically adjusting the interval and/or Latency. The adjustment of interval and / or Latency can be initiated by the master device or by the slave device. For example, taking the adjustment of the slave-initiated interval as an example, and assuming that the master device and the slave device initially negotiate a configuration, the interval is 48.75 ms and the Latency is 0. According to the existing Bluetooth 4.0 protocol: After the master device establishes a connection with the slave device, when the data transmission rate needs to be adjusted, the slave device can send a Connection Parameter Update request to the master device. After receiving the connection parameter update request, the master device sends a connection update indication (LL_CONNECTION_UPDATE_REQ) message to the slave device to instruct the slave device to adjust the data transmission rate, and sends a connection parameter update response (Connection Parameter Update response) to the slave device. By performing the above steps, the interval is adjusted from 48.75ms to 12.5ms, that is, the data transmission rate is adjusted from low speed to high speed. Since the above message can only be transmitted in the connection event, it usually takes 3 intervals between the master device and the slave device to complete the data transmission rate adjustment. And the current Bluetooth 4.0 protocol stipulates that the shortest time point at which the adjusted rate takes effect should be no less than 6 intervals from the time point when the connection update indication message is sent (here, the interval before adjustment), that is, the connection update indication After the six intervals after the message is sent, the data can be transmitted between the devices at high speed. Moreover, in order to save power consumption of the device, after the data transmission is completed, the above steps are also required to reversely adjust the data transmission rate, that is, the interval is adjusted from 12.5 ms to a low speed (for example, 48.75 ms). If there are subsequent data transmission requirements, the above process needs to be repeated again.
综上可以得到的是,现有技术通过动态调整interval和/或Latency来提高数据传输速率的方案中,一般需要花费至少9个interval才能真正进入到高速模式进行数据的传输,这会导致数据无法快速传输,且还浪费了设备的功耗,特别是在需传输的数据量 不大的情况下问题尤为突出。并且,在数据传输完成后,又要消耗时间和功耗将数据传输速率由高速调整为低速,这也会浪费设备的功耗。In summary, in the prior art, by dynamically adjusting the interval and/or Latency to increase the data transmission rate, it usually takes at least 9 intervals to actually enter the high-speed mode for data transmission, which may result in data failure. Fast transmission, and also wasted power consumption of the device, especially in the case of a small amount of data to be transmitted. Moreover, after the data transmission is completed, it takes time and power consumption to adjust the data transmission rate from high speed to low speed, which also wastes the power consumption of the device.
发明内容Summary of the invention
本申请实施例提供一种数据传输方法及设备,解决了数据无法快速传输到对端,且浪费设备功耗的问题。The embodiment of the present invention provides a data transmission method and device, which solves the problem that data cannot be quickly transmitted to the opposite end, and the power consumption of the device is wasted.
为达到上述目的,本申请采用如下技术方案:To achieve the above objectives, the present application adopts the following technical solutions:
本申请的第一方面,提供一种数据传输方法,该方法可以应用于第一设备,该第一设备在一个传输周期中能够向第二设备发送多个数据包,上述数据传输方法可以包括:第一设备在第一传输周期中向第二设备发送数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与上述第一传输周期在时间上连续的至少一个传输周期进行监听。A first aspect of the present application provides a data transmission method, which may be applied to a first device, where the first device can send multiple data packets to a second device in one transmission cycle, and the data transmission method may include: The first device sends a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be at least one time continuous with the first transmission period. The transmission cycle is monitored.
本申请实施例提供的数据传输方法,第一设备在第一传输周期中向第二设备发送携带指示标志的数据包,该指示标志用于指示第二设备是否需要对与该第一传输周期在时间上连续的至少一个传输周期进行监听。这样,通过在传输周期中携带用于指示第二设备是否需要对与该传输周期在时间上连续的至少一个传输周期进行监听的指示标志,使得第一设备在与该传输周期在时间上连续的至少一个传输周期中进行数据传输时,第二设备根据指示标志确定需要继续进行监听,进而及时接收到第一设备传输的数据,达到了将数据快速传输到对端的目的,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。In the data transmission method provided by the embodiment of the present application, the first device sends a data packet carrying the indication flag to the second device in the first transmission period, where the indication flag is used to indicate whether the second device needs to be in the first transmission period. At least one transmission cycle that is continuous in time is monitored. In this way, by carrying an indication flag indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in the transmission period, the first device is consecutive in time with the transmission period. When data transmission is performed in at least one transmission period, the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and compared with the current There are techniques to reduce the power consumption of a device by dynamically adjusting the interval and/or Latency for data transmission.
在一种可能的实现方式中,在上述第一设备在第一传输周期中向第二设备发送数据包之前,上述数据传输方法还可以包括:第一设备向第二设备发送第一消息,该第一消息用于指示第一设备支持第一特性,该第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性;第一设备接收来自第二设备的第二消息,第二消息用于指示第二设备支持第一特性。In a possible implementation, before the sending, by the first device, the data packet to the second device in the first transmission period, the data transmission method may further include: the first device sending the first message to the second device, where The first message is used to indicate that the first device supports the first feature, the first feature is a feature that supports carrying an indication flag in the data packet to indicate whether the transmission period needs to be monitored; and the first device receives the second component from the second device. The second message is used to indicate that the second device supports the first feature.
在另一种可能的实现方式中,当第一设备采用蓝牙协议与第二设备进行通信时,由于在从设备潜伏期为0的情况下,第二设备会对每个传输周期进行监听,因此,第一设备可以在确定从设备潜伏期不为0时,采用本申请实施例提供的数据传输方法来指示第二设备是否需要对当前传输周期的下一个传输周期进行监听,以实现数据快速传输到对端的目的。In another possible implementation manner, when the first device communicates with the second device by using the Bluetooth protocol, since the second device monitors each transmission cycle when the latency of the slave device is 0, The first device may use the data transmission method provided by the embodiment of the present application to indicate whether the second device needs to monitor the next transmission cycle of the current transmission period, so as to implement fast data transmission to the pair. The purpose of the end.
本申请实施例的第二方面,提供一种数据传输方法,该方法可以应用于第二设备,该第二设备在一个传输周期中能够接收第一设备发送的多个数据包,上述数据传输方法可以包括:第二设备在第一传输周期中接收来自第一设备的数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听;当上述指示标志用于指示第二设备需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备监听与第一传输周期在时间上连续的至少一个传输周期。A second aspect of the embodiments of the present application provides a data transmission method, where the method can be applied to a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the foregoing data transmission method The method may include: receiving, by the second device, a data packet from the first device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be consecutive in time with the first transmission period. At least one transmission period is monitored; when the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is temporally continuous with the first transmission period, the second device monitors and the first transmission period is in time At least one transmission cycle in succession.
本申请实施例提供的数据传输方法,通过在传输周期中携带用于指示第二设备是否需要对与该传输周期在时间上连续的至少一个传输周期进行监听的指示标志,使得第一设备在与该传输周期在时间上连续的至少一个传输周期中进行数据传输时,第二 设备根据指示标志确定需要继续进行监听,进而及时接收到第一设备传输的数据,达到了将数据快速传输到对端的目的,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。The data transmission method provided by the embodiment of the present application, by carrying an indication flag for indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in the transmission period, so that the first device is in the When the data transmission is performed in at least one transmission period that is continuous in time, the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, so as to quickly transmit the data to the peer end. Purpose, and the method of data transmission by dynamically adjusting the interval and/or Latency compared to the prior art saves power consumption of the device.
在一种可能的实现方式中,上述数据传输方法还可以包括:当上述指示标志用于指示第二设备不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备确定第二传输周期,并监听第二传输周期。这样,在确定不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备可以确定下一个需要监听的传输周期,并进入休眠状态,直到下一个需要监听的传输周期的时刻到达,节省了设备的功耗。In a possible implementation, the data transmission method may further include: when the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is consecutive in time with the first transmission period, the second The device determines the second transmission period and listens for the second transmission period. In this way, when it is determined that it is not necessary to monitor at least one transmission period that is temporally continuous with the first transmission period, the second device may determine the next transmission period that needs to be monitored, and enter a sleep state until the next transmission that needs to be monitored. The arrival of the cycle time saves the power consumption of the device.
在另一种可能的实现方式中,上述数据传输方法还可以包括:第二设备接收来自第一设备的第一消息,该第一消息用于指示第一设备支持第一特性,该第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性;第二设备向第一设备发送第二消息,该第二消息用于指示第二设备支持上述第一特性。In another possible implementation, the data transmission method may further include: the second device receiving the first message from the first device, where the first message is used to indicate that the first device supports the first feature, the first feature To support the feature that the indication flag is carried in the data packet to indicate whether the transmission period needs to be monitored, the second device sends a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
本申请的第三方面,提供一种数据传输方法,该方法可以应用于第一设备,该第一设备在一个传输周期中能够向第二设备发送多个数据包,该数据传输方法可以包括:在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第一设备在第一传输周期中向第二设备发送第一数据包;其中,在第一传输周期中在第一数据包后没有数据传输;上述第一数据包包括MD,MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续。A third aspect of the present application provides a data transmission method, which may be applied to a first device, where the first device can send multiple data packets to a second device in one transmission cycle, and the data transmission method may include: When the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first data packet to the second device in the first transmission period; wherein, in the first transmission period There is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period and the first transmission period are consecutive in time.
本申请实施例提供的数据传输方法,在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第一设备在第一传输周期中向第二设备发送的第一数据包中携带MD,所述MD用于指示第一设备在第二传输周期中会有数据传输。在第一传输周期中在第一数据包后没有数据传输,即第一数据包是第一传输周期中的最后一个数据包,第二传输周期与所述第一传输周期在时间上连续。这样,在一传输周期收发次数确定的情况下,通过使用该传输周期中传输的最后一个数据包中的MD,来指示在与该传输周期在时间上连续的传输周期中有数据传输,使得第二设备能够及时对与该传输周期在时间上连续的传输周期进行监听,进而使得第一设备能够快速的将数据传输到第二设备,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。The data transmission method provided by the embodiment of the present application, when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first message to the second device in the first transmission period. The data packet carries an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period. There is no data transmission after the first data packet in the first transmission period, that is, the first data packet is the last data packet in the first transmission period, and the second transmission period is continuous with the first transmission period in time. Thus, in the case where the number of transmission and reception times of the transmission cycle is determined, by using the MD in the last data packet transmitted in the transmission cycle, it is indicated that there is data transmission in the transmission cycle that is continuous with the transmission cycle in time, so that The second device can timely monitor the time-continuous transmission period with the transmission period, thereby enabling the first device to quickly transmit data to the second device, and dynamically adjusting the interval and/or compared to the prior art. Latency's method of data transmission saves power consumption of the device.
在一种可能的实现方式中,在上述在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第一设备在第一传输周期中向第二设备发送第一数据包之前,上述数据传输方法还可以包括:第一设备向第二设备发送第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数;第一设备接收来自第二设备的第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。In a possible implementation manner, when the number of data packets that the first device can send to the second device in one transmission period is determined, the first device sends the first device to the second device in the first transmission period. Before the data packet, the data transmission method may further include: the first device sends a first message to the second device, where the first message is used to negotiate with the second device that the first device can send to the second device in one transmission cycle. The number of data packets; the first device receives a second message from the second device, the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission cycle.
本申请的第四方面,提供一种数据传输方法,该方法可以应用于第二设备,该第二设备在一个传输周期中能够接收第一设备发送的多个数据包,该数据传输方法可以包括:在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第二设备在第一传输周期接收来自第一设备的第一数据包;在第一传输周期中在第一数据 包后没有数据传输;上述第一数据包包括MD,MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续;第二设备监听第二传输周期。A fourth aspect of the present application provides a data transmission method, where the method can be applied to a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the data transmission method can include : when the number of data packets that the first device can send to the second device is determined in one transmission period, the second device receives the first data packet from the first device in the first transmission period; There is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period and the first transmission period are continuous in time; The second device listens for the second transmission cycle.
本申请实施例提供的数据传输方法,在传输周期收发次数确定的情况下,通过使用该传输周期中传输的最后一个数据包中的MD,来指示在与该传输周期在时间上连续的传输周期中有数据传输,使得第二设备能够及时对与该传输周期在时间上连续的传输周期进行监听,进而使得第一设备能够快速的将数据传输到第二设备,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。The data transmission method provided by the embodiment of the present application indicates that the transmission period is continuous in time with the transmission period by using the MD in the last data packet transmitted in the transmission period when the number of transmission and reception times is determined. There is data transmission, so that the second device can timely monitor the transmission cycle with the transmission cycle in time, so that the first device can quickly transmit the data to the second device, and compared with the prior art The method of dynamically adjusting the interval and/or Latency for data transmission saves power consumption of the device.
在一种可能的实现方式中,在上述在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第二设备在第一传输周期接收来自第一设备发送第一数据包之前,上述数据传输方法还可以包括:第二设备接收来自第一设备的第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数;第二设备向第一设备发送第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。In a possible implementation manner, when the number of data packets that the first device can send to the second device is determined in one transmission cycle, the second device receives the first packet from the first device in the first transmission cycle. Before the data packet, the data transmission method may further include: the second device receiving the first message from the first device, where the first message is used to negotiate with the second device, where the first device can send to the second device in one transmission cycle The number of data packets; the second device sends a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
本申请的第五方面,提供一种数据接收方法,该方法可以应用于第二设备,该第二设备在一个传输周期中能够接收多个数据包,该数据接收方法可以包括:第二设备对所有的传输周期进行监听;第二设备在当前监听的传输周期的接收时机中接收数据包的Header部分;当Header部分中长度字段的取值不为0时,第二设备确定接收时机中有数据传输,且当Header部分中的MD字段的取值为0时,第二设备在上述接收时机中完成数据接收后进入休眠状态,当Header部分中的MD字段的取值为1时,第二设备继续监听上述当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;当Header部分中的长度字段的取值为0,且Header部分中的MD字段的取值为0时,第二设备进入休眠状态,当Header部分中的MD字段的取值为1时,第二设备继续监听当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0。当在上述接收时机中未接收到数据包时,第二设备进入休眠状态。A fifth aspect of the present application provides a data receiving method, which may be applied to a second device, where the second device is capable of receiving a plurality of data packets in one transmission cycle, and the data receiving method may include: a second device pair All the transmission periods are monitored; the second device receives the Header portion of the data packet at the reception timing of the currently monitored transmission period; when the value of the length field in the Header portion is not 0, the second device determines that there is data in the reception timing. When the value of the MD field in the Header part is 0, the second device enters the sleep state after receiving the data in the receiving occasion, and when the value of the MD field in the Header part is 1, the second device Continue to monitor the current listening transmission period until the value of the MD field in the header portion of the received data packet is 0; when the value of the length field in the Header portion is 0, and the value of the MD field in the Header portion is 0, the second device enters a sleep state. When the value of the MD field in the Header part is 1, the second device continues to listen to the currently monitored transmission period until the received According to the MD field value in the packet header part is zero. When the data packet is not received in the above reception timing, the second device enters a sleep state.
本申请实施例提供的数据接收方法,第二设备通过对所有的传输周期进行监听,以使得第一设备能够快速的将数据传输到第二设备。且第二设备在对当前传输周期进行监听时,通过根据当前传输周期的接收时机中数据包的Header部分中长度字段的取值,来确定该接收时机中是否有数据传输,只有在确定该接收时机中有数据传输时,在该接收时机中接收数据包的数据部分,而在Header部分中的长度字段的取值为0,且Header部分中的MD字段的取值为0时,进入休眠状态,节省了设备的功耗。In the data receiving method provided by the embodiment of the present application, the second device monitors all the transmission periods, so that the first device can quickly transmit the data to the second device. And when the second device monitors the current transmission period, determining whether there is data transmission in the receiving occasion according to the value of the length field in the header portion of the data packet in the receiving occasion of the current transmission period, and only determining the receiving When there is data transmission in the timing, the data part of the data packet is received at the receiving timing, and the length field in the Header part has a value of 0, and when the value of the MD field in the Header part is 0, the sleep state is entered. , saving power consumption of the device.
在一种可能的实现方式中,上述接收时机为上述当前监听的传输周期中的第一个接收时机。In a possible implementation manner, the receiving occasion is the first receiving occasion in the currently monitored transmission period.
本申请的第六方面,提供一种数据接收方法,该方法可以应用于第二设备,该第二设备在一个传输周期中能够接收多个数据包,该数据接收方法可以包括:第二设备根据第一传输周期中是否有数据传输,确定是否需要对第二传输周期进行监听;第一传输周期与第二传输周期在时间上连续。其中,当第一传输周期中有数据传输时,第二设备确定需要对第二传输周期进行监听;当第一传输周期中没有数据传输时,第二 设备确定不需要对第二传输周期进行监听。A sixth aspect of the present application provides a data receiving method, which may be applied to a second device, where the second device is capable of receiving a plurality of data packets in one transmission cycle, and the data receiving method may include: the second device according to the second device Whether there is data transmission in the first transmission period, determining whether it is necessary to monitor the second transmission period; the first transmission period and the second transmission period are consecutive in time. Wherein, when there is data transmission in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second transmission period does not need to be monitored. .
本申请实施例提供的数据接收方法,第二设备在当前传输周期中有数据传输时,预测当前传输周期的下一个传输周期中有数据传输,并对当前传输周期的下一个传输周期进行监听,在当前传输周期中没有数据传输时,预测当前传输周期的下一个传输周期中没有数据传输,并不对当前传输周期的下一个传输周期进行监听,不仅能达到第一设备快速的将数据传输到第二设备的目的,而且,还可以节省设备的功耗。In the data receiving method provided by the embodiment of the present application, when the second device has data transmission in the current transmission period, it predicts that there is data transmission in the next transmission period of the current transmission period, and monitors the next transmission period of the current transmission period. When there is no data transmission in the current transmission period, there is no data transmission in the next transmission period of the current transmission period, and the next transmission period of the current transmission period is not monitored, which not only enables the first device to quickly transmit data to the first transmission period. The purpose of the two devices, but also saves the power consumption of the device.
本申请的第七方面,提供一种第一设备,该第一设备在一个传输周期中能够向第二设备发送多个数据包,该第一设备可以包括:发送单元,用于在第一传输周期中向第二设备发送数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听。A seventh aspect of the present application provides a first device, which is capable of transmitting a plurality of data packets to a second device in a transmission cycle, where the first device may include: a sending unit, configured to be in the first transmission The data packet is sent to the second device in the period, and the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period.
在一种可能的实现方式中,上述发送单元,还用于向第二设备发送第一消息,该第一消息用于指示第一设备支持第一特性,第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性。In a possible implementation, the sending unit is further configured to send, to the second device, a first message, where the first message is used to indicate that the first device supports the first feature, and the first feature is configured to be carried in the data packet. An indicator to indicate whether a transmission period monitoring is required.
上述第一设备还可以包括:接收单元,用于接收来自第二设备的第二消息,该第二消息用于指示第二设备支持上述第一特性。The first device may further include: a receiving unit, configured to receive a second message from the second device, where the second message is used to indicate that the second device supports the first feature.
在另一种可能的实现方式中,当第一设备采用蓝牙协议与第二设备进行通信时,上述第一设备还包括:确定单元,用于确定connection Slave Latency不为0。In another possible implementation, when the first device communicates with the second device by using the Bluetooth protocol, the first device further includes: a determining unit, configured to determine that the connection Slave Latency is not 0.
本申请的第八方面,提供一种第二设备,该第二设备在一个传输周期中能够接收第一设备发送的多个数据包,该第二设备可以包括:接收单元,用于在第一传输周期中接收来自第一设备的数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听;监听单元,用于当上述指示标志用于指示第二设备需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,监听与第一传输周期在时间上连续的至少一个传输周期。An eighth aspect of the present application provides a second device, where the second device can receive multiple data packets sent by the first device in one transmission cycle, and the second device can include: a receiving unit, configured to be in the first Receiving, in the transmission period, a data packet from the first device, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period; And a unit, configured to: when the indication indicator is used to indicate that the second device needs to monitor at least one transmission period that is consecutive in time with the first transmission period, monitor at least one transmission period that is consecutive with the first transmission period in time.
在一种可能的实现方式中,上述第二设备还可以包括:确定单元,用于当上述指示标志用于指示第二设备不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,确定第二传输周期;监听单元,还用于监听第二传输周期。In a possible implementation, the foregoing second device may further include: a determining unit, configured to: when the indication flag is used to indicate that the second device does not need to perform at least one transmission period that is temporally continuous with the first transmission period During the monitoring, the second transmission period is determined; the listening unit is also used to monitor the second transmission period.
在另一种可能的实现方式中,上述接收单元,还用于接收来自第一设备的第一消息,该第一消息用于指示第一设备支持第一特性,该第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性。In another possible implementation, the receiving unit is further configured to receive a first message from the first device, where the first message is used to indicate that the first device supports the first feature, where the first feature is supported in the data. The packet carries an indication flag to indicate whether it is necessary to monitor the transmission period.
上述第二设备还可以包括:发送单元,用于向第一设备发送第二消息,第二消息用于指示第二设备支持第一特性。The foregoing second device may further include: a sending unit, configured to send a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
本申请的九方面,提供一种第一设备,该第一设备在一个传输周期中能够向第二设备发送多个数据包,该第一设备可以包括:发送单元,用于在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,在第一传输周期中向第二设备发送第一数据包;其中,在第一传输周期中在第一数据包后没有数据传输;第一数据包包括MD,MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续。In a nine aspect of the present application, a first device is provided, where the first device is capable of transmitting a plurality of data packets to a second device in a transmission period, where the first device may include: a sending unit, configured to be in a transmission cycle When the number of data packets that the first device can send to the second device is determined, the first data packet is sent to the second device in the first transmission period; wherein, there is no data after the first data packet in the first transmission period. Transmitting; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; and the second transmission period is continuous with the first transmission period in time.
在一种可能的实现方式中,上述发送单元,还用于向第二设备发送第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据 包的个数。In a possible implementation manner, the sending unit is further configured to send, to the second device, a first message, where the first message is used to negotiate with the second device, where the first device can send to the second device in one transmission cycle. The number of packets.
上述第一设备还可以包括:接收单元,用于接收来自第二设备的第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。The first device may further include: a receiving unit, configured to receive a second message from the second device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period .
本申请的第十方面,提供一种第二设备,该第二设备在一个传输周期中能够接收第一设备发送的多个数据包,该第二设备可以包括:接收单元,用于在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,在第一传输周期接收来自第一设备的第一数据包;在第一传输周期中在第一数据包后没有数据传输;上述第一数据包包括MD,该MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续;监听单元,用于监听上述第二传输周期。A tenth aspect of the present application provides a second device, which is capable of receiving a plurality of data packets sent by a first device in one transmission cycle, and the second device may include: a receiving unit, configured to transmit in one transmission Receiving, when the number of data packets that the first device can send to the second device in the period, receiving the first data packet from the first device in the first transmission period; and having no data after the first data packet in the first transmission period Transmitting; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is continuous with the first transmission period in time; and the monitoring unit is configured to monitor the foregoing The second transmission period.
在一种可能的实现方式中,上述接收单元,还用于接收来自第一设备的第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数。In a possible implementation, the receiving unit is further configured to receive a first message from the first device, where the first message is used to negotiate with the second device, where the first device can be used to the second device in one transmission cycle. The number of packets sent.
上述第二设备还可以包括:发送单元,用于向第一设备发送第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。The foregoing second device may further include: a sending unit, configured to send, to the first device, a second message, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
本申请的第十一方面,提供一种第二设备,该第二设备在一个传输周期中能够接收多个数据包,该第二设备可以包括:监听单元,用于对所有的传输周期进行监听;接收单元,用于在当前监听的传输周期的接收时机中接收数据包的头Header部分;确定单元,用于当头部分中长度字段的取值不为0时,确定接收时机中有数据传输,且控制单元,用于当头部分中的MD字段的取值为0时,在接收时机中完成数据接收后控制第二设备进入休眠状态,监听单元,还用于当头部分中的MD字段的取值为1时,继续监听当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;;控制单元,还用于当头部分中的长度字段的取值为0,且头部分中的更多数据MD字段的取值为0时,控制第二设备进入休眠状态,监听单元,还用于当头部分中的MD字段的取值为1时,继续监听当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;控制单元,还用于当在接收时机中未接收到数据包时,控制第二设备进入休眠状态。An eleventh aspect of the present application provides a second device, which is capable of receiving multiple data packets in one transmission cycle, and the second device may include: a monitoring unit, configured to monitor all transmission periods a receiving unit, configured to receive a header header portion of the data packet in a receiving timing of the currently monitored transmission period; and a determining unit, configured to determine, when the value of the length field in the header portion is not 0, determining that there is data transmission in the receiving timing, And the control unit is configured to control, when the value of the MD field in the header part is 0, to control the second device to enter a sleep state after receiving the data in the receiving timing, and the monitoring unit is further configured to use the value of the MD field in the header portion. When it is 1, it continues to listen to the current listening transmission period until the value of the MD field in the header portion of the received data packet is 0; the control unit is also used to determine the length field in the header portion is 0, and the header When the value of the MD field in the part is 0, the second device is controlled to enter the sleep state, and the listening unit is further used to continue monitoring when the value of the MD field in the header portion is 1. Monitor current transmission period, the MD field value in the header portion of the packet until the receiver is 0; the control unit is further configured to, when a packet is not received in the receiving time, the control device enters the second sleep state.
在一种可能的实现方式中,上述接收时机为当前监听的传输周期中的第一个接收时机。In a possible implementation manner, the foregoing receiving occasion is the first receiving occasion in the currently monitored transmission period.
本申请的第十二方面,提供一种第二设备,该第二设备在一个传输周期中能够接收多个数据包,该第二设备可以包括:确定单元,用于根据第一传输周期中是否有数据传输,确定是否需要对第二传输周期进行监听;第一传输周期与第二传输周期在时间上连续。其中,当上述第一传输周期中有数据传输时,第二设备确定需要对上述第二传输周期进行监听;当上述第一传输周期中没有数据传输时,第二设备确定不需要对上述第二传输周期进行监听。The twelfth aspect of the present application provides a second device, which is capable of receiving a plurality of data packets in one transmission cycle, and the second device may include: a determining unit, configured to determine whether according to the first transmission period There is data transmission to determine whether it is necessary to monitor the second transmission period; the first transmission period and the second transmission period are continuous in time. When the data transmission is performed in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second device is not required. The transmission cycle is monitored.
本申请的第十三方面,提供一种第一设备,该第一设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第一方面或第一方面的可能的实现方式中任一项所述的数据传输方法。A thirteenth aspect of the present application provides a first device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the first aspect or the first aspect A data transmission method according to any of the possible implementations.
具体的,上述处理器,用于控制上述通信总线在第一传输周期中向第二设备发送数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听。Specifically, the processor is configured to control the communication bus to send a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be paired with the first The transmission period is monitored for at least one transmission period that is continuous in time.
在一种可能的实现方式中,上述处理器,还用于控制上述通信总线向第二设备发送第一消息,该第一消息用于指示第一设备支持第一特性,第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性。上述通信总线,还用于接收来自第二设备的第二消息,该第二消息用于指示第二设备支持上述第一特性。In a possible implementation, the processor is further configured to control the communication bus to send a first message to the second device, where the first message is used to indicate that the first device supports the first feature, and the first feature is supported by The data packet carries an indication flag to indicate whether the transmission period needs to be monitored. The communication bus is further configured to receive a second message from the second device, where the second message is used to indicate that the second device supports the first feature.
在另一种可能的实现方式中,当第一设备采用蓝牙协议与第二设备进行通信时,上述处理器,还用于确定connection Slave Latency不为0。In another possible implementation, when the first device uses the Bluetooth protocol to communicate with the second device, the processor is further configured to determine that the connection Slave Latency is not 0.
本申请的第十四方面,提供一种第二设备,该第二设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第二方面或第二方面的可能的实现方式中任一项所述的数据传输方法。In a fourteenth aspect of the present application, a second device is provided, the second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the second or second aspect A data transmission method according to any of the possible implementations.
具体的,上述处理器,用于控制上述通信总线在第一传输周期中接收来自第一设备的数据包,该数据包中包括指示标志,该指示标志用于指示第二设备是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听;上述处理器,还用于当上述指示标志用于指示第二设备需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,监听与第一传输周期在时间上连续的至少一个传输周期。Specifically, the processor is configured to control the communication bus to receive a data packet from the first device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be A transmission period is monitored by at least one transmission period that is consecutive in time; the processor is further configured to: when the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is consecutive with the first transmission period in time At least one transmission period that is consecutive in time with the first transmission period is monitored.
在一种可能的实现方式中,上述处理器,还用于当上述指示标志用于指示第二设备不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,确定第二传输周期,监听第二传输周期。In a possible implementation, the foregoing processor is further configured to: when the indicator is used to indicate that the second device does not need to monitor at least one transmission period that is consecutive in time with the first transmission period, determine the second The transmission period monitors the second transmission period.
在另一种可能的实现方式中,上述处理器,还用于控制上述通信总线接收来自第一设备的第一消息,该第一消息用于指示第一设备支持第一特性,该第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性,向第一设备发送第二消息,第二消息用于指示第二设备支持第一特性。In another possible implementation, the processor is further configured to control the communication bus to receive a first message from the first device, where the first message is used to indicate that the first device supports the first feature, the first feature To support the feature that the indication flag is carried in the data packet to indicate whether the transmission period needs to be monitored, the second message is sent to the first device, where the second message is used to indicate that the second device supports the first feature.
本申请的第十五方面,提供一种第一设备,该第一设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第三方面或第三方面的可能的实现方式中任一项所述的数据传输方法。A fifteenth aspect of the present application provides a first device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the third or third aspect A data transmission method according to any of the possible implementations.
具体的,上述处理器,用于控制上述通信总线在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,在第一传输周期中向第二设备发送第一数据包;其中,在第一传输周期中在第一数据包后没有数据传输;第一数据包包括MD,MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续。Specifically, the processor is configured to: when the number of data packets that the first device can send to the second device in one transmission cycle is determined, send the first data to the second device in the first transmission period. a packet; wherein, in the first transmission period, there is no data transmission after the first data packet; the first data packet includes an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is The first transmission period is continuous in time.
在一种可能的实现方式中,上述处理器,还用于控制上述通信总线向第二设备发送第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数。上述处理器,还用于控制上述通信总线接收来自第二设备 的第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。In a possible implementation, the processor is further configured to control the communication bus to send a first message to the second device, where the first message is used to negotiate with the second device, where the first device can The number of packets sent by the second device. The processor is further configured to control the communication bus to receive a second message from the second device, the second message being used to confirm the number of data packets that the first device can send to the second device in one transmission cycle.
本申请的第十六方面,提供一种第二设备,该第二设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第四方面或第四方面的可能的实现方式中任一项所述的数据传输方法。In a sixteenth aspect of the present application, a second device is provided, the second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the fourth or fourth aspect A data transmission method according to any of the possible implementations.
具体的,上述处理器,用于控制上述通信总线在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,在第一传输周期接收来自第一设备的第一数据包;在第一传输周期中在第一数据包后没有数据传输;上述第一数据包包括MD,该MD用于指示第一设备在第二传输周期中会有数据传输;第二传输周期与第一传输周期在时间上连续;上述处理器,还用于监听上述第二传输周期。Specifically, the processor is configured to: when the number of data packets that the first device can send to the second device in one transmission cycle is determined, receive the first data from the first device in the first transmission period. a packet; there is no data transmission after the first data packet in the first transmission period; the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period; the second transmission period is The first transmission period is continuous in time; the processor is further configured to monitor the second transmission period.
在一种可能的实现方式中,上述处理器,还用于控制上述通信总线接收来自第一设备的第一消息,该第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数。上述处理器,还用于控制上述通信总线向第一设备发送第二消息,该第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。In a possible implementation, the processor is further configured to control the communication bus to receive a first message from the first device, where the first message is used to negotiate with the second device, where the first device can be in one transmission cycle. The number of packets sent to the second device. The processor is further configured to control the communication bus to send a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
本申请的第十七方面,提供一种第二设备,该第二设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第五方面或第五方面的可能的实现方式中任一项所述的数据接收方法。A seventeenth aspect of the present application provides a second device, which may include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the fifth or fifth aspect A data receiving method according to any of the possible implementations.
具体的,上述处理器,用于对所有的传输周期进行监听;上述处理器,还用于控制上述通信总线在当前监听的传输周期的接收时机中接收数据包的头Header部分;上述处理器,还用于当头部分中长度字段的取值不为0时,确定接收时机中有数据传输,且当头部分中的MD字段的取值为0时,在接收时机中完成数据接收后控制第二设备进入休眠状态,当头部分中的MD字段的取值为1时,继续监听当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;所述处理器,还用于当头部分中的长度字段的取值为0,且头部分中的MD字段的取值为0时,控制第二设备进入休眠状态,当头部分中的所述MD字段的取值为1时,继续监听当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0。所述处理器,还用于当在接收时机中未接收到数据包时,控制第二设备进入休眠状态。Specifically, the processor is configured to monitor all transmission periods; and the processor is further configured to control the header of the communication bus to receive a header in a receiving timing of a currently monitored transmission period; the processor, When the value of the length field in the header portion is not 0, it is determined that there is data transmission in the receiving occasion, and when the value of the MD field in the header portion is 0, the second device is controlled after the data reception is completed in the receiving timing. Entering the sleep state, when the value of the MD field in the header part is 1, continuing to listen to the currently listening transmission period until the value of the MD field in the header portion of the received data packet is 0; the processor is also used for When the value of the length field in the header part is 0, and the value of the MD field in the header part is 0, the second device is controlled to enter a sleep state, and when the value of the MD field in the header part is 1, the continuation is continued. Listens to the current listening transmission period until the value of the MD field in the header portion of the received packet is 0. The processor is further configured to control the second device to enter a sleep state when the data packet is not received in the receiving occasion.
在一种可能的实现方式中,上述接收时机为当前监听的传输周期中的第一个接收时机。In a possible implementation manner, the foregoing receiving occasion is the first receiving occasion in the currently monitored transmission period.
本申请的第十六方面,提供一种第二设备,该第二设备可以包括:一个或多个处理器以及存储器;该一个或多个处理器以及该存储器通过一个或多个通信总线连接;该存储器中存储有一个或多个计算机指令,上述一个或多个计算机指令被配置为被上述一个或多个处理器执行;上述一个或多个计算机指令用于执行如第六方面所述的数据接收方法。In a sixteenth aspect of the present application, a second device is provided, the second device can include: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; One or more computer instructions are stored in the memory, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the data of the sixth aspect Receiving method.
具体的,上述处理器,用于根据第一传输周期中是否有数据传输,确定是否需要对第二传输周期进行监听;第一传输周期与第二传输周期在时间上连续。其中,当上述第一传输周期中有数据传输时,第二设备确定需要对上述第二传输周期进行监听;当上述第一传输周期中没有数据传输时,第二设备确定不需要对上述第二传输周期进行监听。Specifically, the processor is configured to determine whether to monitor the second transmission period according to whether there is data transmission in the first transmission period; the first transmission period and the second transmission period are consecutive in time. When the data transmission is performed in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device determines that the second device is not required. The transmission cycle is monitored.
本申请的第十七方面,提供一种计算机存储介质,其包括计算机指令,当该计算机指令在第一设备上运行时,使得该第一设备执行如第一方面或第一方面的可能的实现方式,或第三方面或第三方面的可能的实现方式中任一项所述的数据传输方法。A seventeenth aspect of the present application provides a computer storage medium comprising computer instructions that, when executed on a first device, cause the first device to perform a possible implementation as in the first aspect or the first aspect A data transmission method according to any one of the third aspect or the third aspect of the invention.
本申请的第十九方面,提供一种计算机存储介质,其包括计算机指令,当该计算机指令在第二设备上运行时,使得该第二设备执行如第二方面或第二方面的可能的实现方式,或第四方面或第四方面的可能的实现方式中任一项的数据传输方法,或者,使得第二设备执行如权利要求第五方面或第五方面的可能的实现方式或第六方面中任一项的数据接收方法。A nineteenth aspect of the present application provides a computer storage medium comprising computer instructions that, when executed on a second device, cause the second device to perform a possible implementation as in the second aspect or the second aspect The method, or the data transmission method of any of the fourth aspect or the possible implementation of the fourth aspect, or the second device, the second device or the fifth aspect or the fifth aspect The data receiving method of any one of them.
本申请的第二十方面,提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如第一方面或第一方面的可能的实现方式,或第三方面或第三方面的可能的实现方式中任一项所述的数据传输方法。In a twentieth aspect of the present application, there is provided a computer program product, when the computer program product is run on a computer, causing the computer to perform a possible implementation of the first aspect or the first aspect, or the third aspect or the third A data transmission method according to any of the possible implementations of the invention.
本申请的第二十一方面,提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如第二方面或第二方面的可能的实现方式,或第四方面或第四方面的可能的实现方式中任一项的数据传输方法,或者,使得计算机执行如权利要求第五方面或第五方面的可能的实现方式或第六方面中任一项的数据接收方法。A twenty-first aspect of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to perform a possible implementation of the second aspect or the second aspect, or the fourth aspect or The data transmission method of any one of the possible implementations of the fourth aspect, or the computer, the data receiving method of the fifth aspect or the fifth aspect or the data receiving method according to any one of the sixth aspects.
本申请的第二十二方面,提供一种芯片系统,该芯片系统可以包括:一个或多个处理器,存储器,通信总线;上述存储器用于存储一个或多个计算机指令,上述一个或多个处理器与上述存储器通过上述通信总线连接,当上述芯片系统运行时,上述一个或多个处理器执行上述存储器存储的上述一个或多个计算机指令,以使上述芯片系统执行如第一方面或第一方面的可能的实现方式,或第三方面或第三方面的可能的实现方式中任一项所述的数据传输方法。In a twenty-second aspect of the present application, a chip system is provided, the chip system may include: one or more processors, a memory, a communication bus; the memory is configured to store one or more computer instructions, the one or more The processor is coupled to the memory via the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory to cause the chip system to perform the first aspect or the A possible implementation of the aspect, or the data transmission method of any of the third aspect or the possible implementation of the third aspect.
本申请的第二十三方面,提供一种芯片系统,该芯片系统可以包括:一个或多个处理器,存储器,通信总线;上述存储器用于存储一个或多个计算机指令,上述一个或多个处理器与上述存储器通过上述通信总线连接,当上述芯片系统运行时,上述一个或多个处理器执行上述存储器存储的上述一个或多个计算机指令,以使上述芯片系统执行如第二方面或第二方面的可能的实现方式,或第四方面或第四方面的可能的实现方式中任一项的数据传输方法,或者,使得第二设备执行如权利要求第五方面或第五方面的可能的实现方式或第六方面中任一项的数据接收方法。In a twenty-third aspect of the present application, a chip system is provided, the chip system may include: one or more processors, a memory, a communication bus; the memory is configured to store one or more computer instructions, the one or more The processor is coupled to the memory via the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory to cause the chip system to perform the second aspect or the A possible implementation of the second aspect, or the data transmission method of any of the fourth aspect or the possible implementation of the fourth aspect, or the second device for performing the fifth aspect or the fifth aspect of the claim The data receiving method of any one of the sixth aspect.
本申请的第二十四方面,提供一种通信系统,该通信系统可以包括:如第七方面或第七方面的可能的实现方式中所述的第一设备,以及如第八方面或第八方面的可能的实现方式中所述的第二设备。或者,该通信系统可以包括:如第九方面或第九方面的可能的实现方式中所述的第一设备,以及如第十方面或第十方面的可能的实现方式中所述的第二设备。In a twenty-fourth aspect of the present application, there is provided a communication system, the communication system comprising: the first device as described in the seventh aspect or the possible implementation of the seventh aspect, and the eighth aspect or the eighth A second device as described in a possible implementation of the aspect. Alternatively, the communication system may comprise: the first device as described in the ninth aspect or the possible implementation of the ninth aspect, and the second device as described in the tenth aspect or the possible implementation manner of the tenth aspect .
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并 不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。The description of the technical features, technical solutions, advantages, or similar language in this application is not intended to imply all features and advantages in any single embodiment. Rather, it is to be understood that a description of a feature or benefit is meant to include a particular technical feature, technical solution, or benefit in at least one embodiment. Therefore, descriptions of technical features, technical solutions, or advantageous effects in the present specification are not necessarily referring to the same embodiments. Further, the technical features, technical solutions, and advantageous effects described in the embodiment can also be combined in any suitable manner. Those skilled in the art will appreciate that embodiments may be implemented without one or more specific technical features, technical solutions, or advantages of the specific embodiments. In other embodiments, additional technical features and benefits may also be identified in a particular embodiment that does not embody all embodiments.
附图说明DRAWINGS
图1为本申请实施例提供的一种传输数据的时序示意图;1 is a timing diagram of transmitting data according to an embodiment of the present application;
图2为本申请实施例提供的另一种传输数据的时序示意图;FIG. 2 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure;
图3为本申请实施例提供的一种系统架构的简化示意图;3 is a simplified schematic diagram of a system architecture provided by an embodiment of the present application;
图4为本申请实施例提供的一种手机的组成示意图;4 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
图5为本申请实施例提供的一种数据传输方法的流程示意图;FIG. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
图6为本申请实施例提供的一种数据包的头结构示意图;FIG. 6 is a schematic structural diagram of a header of a data packet according to an embodiment of the present disclosure;
图7为本申请实施例提供的另一种传输数据的时序示意图;FIG. 7 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure;
图8为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 8 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure;
图9为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 9 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure;
图10为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 10 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present disclosure;
图11为本申请实施例提供的另一种传输数据的时序示意图;FIG. 11 is a schematic timing diagram of another transmission data according to an embodiment of the present application;
图12为本申请实施例提供的另一种传输数据的时序示意图;FIG. 12 is a schematic timing diagram of another transmission data according to an embodiment of the present disclosure;
图13为本申请实施例提供的一种第一设备的结构示意图;FIG. 13 is a schematic structural diagram of a first device according to an embodiment of the present disclosure;
图14为本申请实施例提供的另一种第一设备的结构示意图;FIG. 14 is a schematic structural diagram of another first device according to an embodiment of the present disclosure;
图15为本申请实施例提供的一种第二设备的结构示意图;FIG. 15 is a schematic structural diagram of a second device according to an embodiment of the present disclosure;
图16为本申请实施例提供的另一种第二设备的结构示意图。FIG. 16 is a schematic structural diagram of another second device according to an embodiment of the present disclosure.
具体实施方式detailed description
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, "multiple" means two or more unless otherwise stated.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, the words "exemplary" or "such as" are used to mean an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words "exemplary" or "such as" is intended to present the concepts in a particular manner.
首先需要说明的是,本申请能够应用于无线保真(wireless fidelity,Wi-Fi)协议、蓝牙(Bluetooth)协议、ZigBee协议、近距离无线通信(Near Field Communication,NFC)协议等无线通信协议中,在此并不做具体限制。在这些无线通信协议中,为了节省设备的功耗,设备之间是以一定的传输周期(如在蓝牙协议中称为连接事件间隔)为间隔进行数据传输的。在本申请以下实施例中,为了便于描述,以蓝牙协议为例进行说明。另外,本申请实施例中的示例是以蓝牙4.0协议为例进行说明的,但本申请 实施例同样适用于其他版本的蓝牙协议,比如,蓝牙4.1协议、蓝牙4.2协议等。First, it should be noted that the present application can be applied to wireless communication protocols such as wireless fidelity (Wi-Fi) protocol, Bluetooth protocol, ZigBee protocol, and Near Field Communication (NFC) protocol. There are no specific restrictions here. In these wireless communication protocols, in order to save power consumption of devices, data transmission is performed between devices with a certain transmission period (such as a connection event interval in the Bluetooth protocol). In the following embodiments of the present application, for convenience of description, the Bluetooth protocol is taken as an example for description. In addition, the example in the embodiment of the present application is described by taking the Bluetooth 4.0 protocol as an example, but the embodiment of the present application is also applicable to other versions of the Bluetooth protocol, for example, the Bluetooth 4.1 protocol, the Bluetooth 4.2 protocol, and the like.
为了方便清楚地理解下述各实施例,首先给出蓝牙协议中相关技术的简要介绍:In order to facilitate a clear understanding of the following embodiments, a brief introduction of related technologies in the Bluetooth protocol is first given:
连接事件(connection event):连接事件通常以连接事件间隔(connection event interval)为间隔,且不会重叠。一个连接事件开始的点可以称为锚点,主设备可以从锚点开始发送数据包给从设备,从设备可以对主设备在锚点发出的数据包进行监听,以实现设备之间的数据交互。并且,蓝牙协议中规定,双方设备可以在一个连接事件里进行多次收发,如在一个连接事件中进行4-6次收发,唯一的限定条件是,主设备仅需确保在下一个连接事件开始之前的T_IFS(如150us)的时间点上将当前的连接事件关闭即可。双方设备在上述连接事件中也可以不进行数据收发。Connection event: Connection events are usually separated by a connection event interval and do not overlap. A point at which a connection event starts can be called an anchor point. The master device can send a data packet from the anchor point to the slave device, and the slave device can listen to the data packet sent by the master device at the anchor point to implement data interaction between the devices. . Moreover, the Bluetooth protocol stipulates that both devices can send and receive multiple times in one connection event, such as 4-6 times in a connection event, the only qualification condition is that the master device only needs to ensure that before the next connection event begins. The current connection event can be closed at the time of T_IFS (eg 150us). Both devices may not perform data transmission and reception in the above connection event.
连接事件间隔(connection event interval),后续简称为间隔(interval):其决定了两个连接事件(connection event)之间的时间间隔。其中,在蓝牙协议中,连接事件间隔即为上述传输周期。The connection event interval, which is simply referred to as the interval: it determines the time interval between two connection events. Wherein, in the Bluetooth protocol, the connection event interval is the above transmission period.
例如,结合图1可以看到的是,连接事件之间的间隔为60ms,即interval=60ms。从连接事件的锚点开始到事件关闭,主设备与从设备之间进行4次发送(TX)/4次接收(RX),事件关闭后,主设备和从设备可进入休眠状态,以节省设备功耗。For example, as can be seen in conjunction with Figure 1, the interval between connection events is 60 ms, ie interval = 60 ms. From the anchor point of the connection event to the event shutdown, the master device and the slave device perform 4 times of transmission (TX) / 4 times of reception (RX). After the event is turned off, the master device and the slave device can enter the sleep state to save the device. Power consumption.
从设备潜伏期(connection Slave Latency),后续简称为Latency:其定义了连续连接事件的数量,在这些连续连接事件中从设备不需要一直监听,即Latency决定了允许从设备不进行监听的连续连接事件的数量。Latency的取值可以是0到(connSupervisionTimeout/(interval*2)-1)范围内的一个整数,且应该小于500。其中,connSupervisionTimeout表示连接监督超时时间(Connection supervision timeout),即收到两个数据包之间的最大时间间隔,如果收到的两个数据包的时间间隔大于connSupervisionTimeout定义的数值,则可以认为当前链路已经断开了。Connection Slave Latency, hereinafter referred to as Latency: which defines the number of consecutive connection events in which the slave device does not need to be constantly listening, ie, Latency determines the continuous connection event that allows the slave device to not listen. quantity. The value of Latency can be an integer from 0 to (connSupervisionTimeout/(interval*2)-1) and should be less than 500. The connSupervisionTimeout indicates the connection supervision timeout, that is, the maximum time interval between two data packets. If the time interval between two data packets received is greater than the value defined by connSupervisionTimeout, the current chain can be considered. The road has been disconnected.
当Latency的取值为0时,表示允许从设备不进行监听的连续连接事件的数量为0,即从设备需要在每个连接事件的锚点开始监听。例如,结合图1,以interval=60ms为例,当Latency=0时,从设备可以在每个连接事件的锚点开始监听,即每60ms从休眠状态醒来一次进行监听,这样,当主设备从每个连接事件的锚点开始发送数据包时,从设备便可以接收主设备发送的数据包。当Latency的取值不为0,如Latency=4时,表示允许从设备不进行监听的连续连接事件的数量为4,即从设备可以每5个连接事件监听一次。例如,如图2所示,以interval=60ms为例,当Latency=4时,从设备可以在连接事件1的锚点开始监听,并在连接事件1的事件关闭后进行入休眠状态,在连接事件2-连接事件5不进行监听,在连接事件6的锚点开始监听,即从设备每300ms从休眠状态醒来一次进行监听,这样,当主设备从连接事件1和连接事件6的锚点开始发送数据包时,从设备便可以在连接事件1和连接事件6的锚点开始监听,以接收主设备发送的数据包。When the value of Latency is 0, it means that the number of consecutive connection events that the slave device is not listening to is 0, that is, the slave device needs to start listening at the anchor point of each connection event. For example, in conjunction with FIG. 1, taking interval=60ms as an example, when Latency=0, the slave device can start listening at the anchor point of each connection event, that is, wake up from sleep state every 60ms, so that when the master device When the anchor point of each connection event starts to send a data packet, the slave device can receive the data packet sent by the master device. When the value of Latency is not 0, such as Latency=4, the number of consecutive connection events that allow the slave device to not listen is 4, that is, the slave device can listen every 5 connection events. For example, as shown in FIG. 2, taking interval=60ms as an example, when the Latency=4, the slave device can start listening at the anchor point of the connection event 1, and enter the sleep state after the event of the connection event 1 is closed, in the connection. Event 2 - Connection event 5 does not listen, and starts listening at the anchor point of connection event 6, that is, the slave device wakes up from sleep state every 300ms to listen, so that when the master device starts from the anchor point of connection event 1 and connection event 6, When sending a packet, the slave can start listening at the anchor of connection event 1 and connection event 6 to receive the packet sent by the master.
可以看到的是,当Latency不等于0时,显然数据是无法快速传输到对端的,会导致响应时间比较长,使用体验不好。而若采用现有技术中动态调整interval和/或Latency的方案来提高数据传输速率,则会由于调整过程自身花费比较多的时间,仍达不到数据快速传输到对端的目的,且浪费了设备的功耗。It can be seen that when the Latency is not equal to 0, it is obvious that the data cannot be quickly transmitted to the peer end, which results in a long response time and a poor user experience. However, if the scheme of dynamically adjusting the interval and/or Latency is used in the prior art to increase the data transmission rate, the adjustment process itself takes a relatively long time, and the data cannot be quickly transmitted to the peer end, and the device is wasted. Power consumption.
为了解决数据无法快速传输到对端,且浪费设备功耗的问题,本申请实施例提供 一种数据传输方法,其基本原理是:第一设备在第一传输周期中向第二设备发送携带指示标志的数据包,该指示标志用于指示第二设备是否需要对与该第一传输周期在时间上连续的至少一个传输周期进行监听。这样,通过在一传输周期中携带用于指示第二设备是否需要对与该传输周期在时间上连续的至少一个传输周期进行监听的指示标志,使得第一设备在与该传输周期在时间上连续的至少一个传输周期中进行数据传输时,第二设备能够根据指示标志确定需要继续进行监听,进而及时接收到第一设备传输的数据,达到了将数据快速传输到对端的目的,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。In order to solve the problem that the data cannot be quickly transmitted to the peer end, and the power consumption of the device is wasted, the embodiment of the present application provides a data transmission method, where the basic principle is: the first device sends a carrying indication to the second device in the first transmission period. A data packet of the flag, the indication flag is used to indicate whether the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period. In this way, by carrying an indication flag indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in a transmission period, the first device is continuously continuous with the transmission period in time. When data transmission is performed in at least one transmission period, the second device can determine that the monitoring needs to be continued according to the indication flag, and then receive the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and comparing The prior art method of data transmission by dynamically adjusting interval and/or Latency saves power consumption of the device.
下面将结合附图对本申请实施例的实施方式进行详细描述。Embodiments of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图3示出的是可以应用本申请实施例的系统架构的简化示意图。如图3所示,该系统架构可以包括:主设备301和从设备302。3 is a simplified schematic diagram of a system architecture to which embodiments of the present application may be applied. As shown in FIG. 3, the system architecture may include: a master device 301 and a slave device 302.
其中,上述主设备301,从设备302均是指支持上述无线通信协议,如蓝牙协议的设备。主设备301与从设备302可以采用上述无线通信协议建立连接,以实现短距离通信。在采用上述无线通信协议进行连接时,主动发起连接请求的一方可以称为主设备,被动接收连接请求的一方可以称为从设备。The master device 301 and the slave device 302 all refer to devices that support the above wireless communication protocol, such as the Bluetooth protocol. The master device 301 and the slave device 302 can establish a connection using the above-described wireless communication protocol to implement short-range communication. When the connection is made using the above wireless communication protocol, the party that actively initiates the connection request may be referred to as a master device, and the party that passively receives the connection request may be referred to as a slave device.
在具体实现中,该主设备301可以是桌面型、膝上型、平板电脑、手持计算机、手机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、电视机、VR设备、AR设备、可穿戴设备、智能手表、键盘、车辆、车载工具等等。作为一种示例,图3中以主设备301是手机为例示出。In a specific implementation, the main device 301 can be a desktop type, a laptop, a tablet computer, a handheld computer, a mobile phone, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, an individual. Personal Digital Assistant (PDA), television, VR device, AR device, wearable device, smart watch, keyboard, vehicle, vehicle tool, etc. As an example, in FIG. 3, the main device 301 is a mobile phone as an example.
在具体实现中,从设备302可以是桌面型、膝上型、平板电脑、手持计算机、手机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、电视机、VR设备、AR设备、可穿戴设备、智能眼镜、智能手表、键盘、音响、打印机、智能家居设备、车辆、车载工具、inkcase、耳机、手环等等。智能家居设备可以是饮水机、空调、冰箱等等。作为一种示例,图3中从设备302是智能手表为例示出。In a specific implementation, the slave device 302 can be a desktop, a laptop, a tablet, a handheld computer, a mobile phone, a laptop, an Ultra-mobile Personal Computer (UMPC), a netbook, and a cellular phone, personal digital. Assistant (Personal Digital Assistant, PDA), TV, VR device, AR device, wearable device, smart glasses, smart watch, keyboard, stereo, printer, smart home device, vehicle, car tool, inkcase, earphone, bracelet, etc. Wait. The smart home device can be a water dispenser, an air conditioner, a refrigerator, and the like. As an example, the slave device 302 in FIG. 3 is exemplified by a smart watch.
需要说明的是,本申请实施例中所述第一设备可以为上述主设备301,所述第二设备为上述从设备302。或者,所述第一设备为上述从设备302,所述第二设备为上述主设备301。It should be noted that, in the embodiment of the present application, the first device may be the foregoing master device 301, and the second device is the slave device 302. Alternatively, the first device is the foregoing slave device 302, and the second device is the master device 301.
当主设备301和/或从设备302为手机时,请参考图4,本申请实施例对本申请实施例提供的主设备301和/或从设备302进行介绍。其中,本领域技术人员可以理解,图4所示的手机仅仅是一个范例,并不构成对手机的限定,并且手机可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图4中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。When the master device 301 and/or the slave device 302 are mobile phones, please refer to FIG. 4, which is introduced by the master device 301 and/or the slave device 302 provided by the embodiments of the present application. It should be understood by those skilled in the art that the mobile phone shown in FIG. 4 is merely an example and does not constitute a limitation on the mobile phone, and the mobile phone may have more or less components than those shown in the figure, and may be combined. Two or more components, or may have different component configurations. The various components shown in FIG. 4 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
如图4所示,手机具体可以包括:处理器401、射频(Radio Frequency,RF)电路402、存储器403、触摸屏404、蓝牙装置405、一个或多个传感器406、无线保真(Wireless Fidelity,WI-FI)装置407、定位装置408、音频电路409、外设接口410以及电源系统411等部件。这些部件可通过一根或多根通信总线或信号线(图4中未 示出)进行通信。As shown in FIG. 4, the mobile phone may specifically include: a processor 401, a radio frequency (RF) circuit 402, a memory 403, a touch screen 404, a Bluetooth device 405, one or more sensors 406, and a wireless fidelity (WI). -FI) means 407, positioning means 408, audio circuit 409, peripheral interface 410, and power supply system 411. These components can communicate over one or more communication buses or signal lines (not shown in Figure 4).
下面结合图4对手机的各个部件进行具体的介绍:The following describes the various components of the mobile phone in conjunction with Figure 4:
处理器401是手机的控制中心,利用各种接口和线路连接手机的各个部分,通过运行或执行存储在存储器403内的应用程序(Application,App),以及调用存储在存储器403内的数据和指令,执行手机的各种功能和处理数据。在一些实施例中,处理器401可包括一个或多个处理单元;处理器401还可以集成应用处理器和调制解调处理器;其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。举例来说,处理器401可以是华为技术有限公司制造的麒麟960芯片。在本申请一些实施例中,上述处理器401还可以包括指纹验证芯片,用于对采集到的指纹进行验证。The processor 401 is a control center of the mobile phone, and connects various parts of the mobile phone by using various interfaces and lines, by running or executing an application (Application, App) stored in the memory 403, and calling data and instructions stored in the memory 403. , perform various functions of the mobile phone and process data. In some embodiments, the processor 401 can include one or more processing units; the processor 401 can also integrate an application processor and a modem processor; wherein the application processor primarily processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401. For example, the processor 401 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd. In some embodiments of the present application, the processor 401 may further include a fingerprint verification chip for verifying the collected fingerprint.
射频电路402可用于在收发信息或通话过程中,无线信号的接收和发送。具体地,射频电路402可以将基站的下行数据接收后,给处理器401处理;另外,将涉及上行的数据发送给基站。通常,射频电路402包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路402还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。The radio frequency circuit 402 can be used to receive and transmit wireless signals during transmission or reception of information or calls. Specifically, the radio frequency circuit 402 can process the downlink data of the base station and then process the data to the processor 401. In addition, the data related to the uplink is sent to the base station. Generally, radio frequency circuit 402 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency circuit 402 can also communicate with other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
存储器403用于存储应用程序以及数据,处理器401通过运行存储在存储器403的应用程序以及数据,执行手机的各种功能以及数据处理。存储器403主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用手机时所创建的数据(比如音频数据、电话本等)。此外,存储器403可以包括高速随机存取存储器,还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器403可以存储各种操作系统,例如苹果公司所开发的
Figure PCTCN2018082051-appb-000001
操作系统,谷歌公司所开发的
Figure PCTCN2018082051-appb-000002
操作系统等。
The memory 403 is used to store applications and data, and the processor 401 executes various functions of the mobile phone and data processing by running applications and data stored in the memory 403. The memory 403 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at the time (such as audio data, phone book, etc.). Further, the memory 403 may include a high speed random access memory, and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device. The memory 403 can store various operating systems, such as those developed by Apple.
Figure PCTCN2018082051-appb-000001
Operating system, developed by Google Inc.
Figure PCTCN2018082051-appb-000002
Operating system, etc.
触摸屏404可以包括触敏表面404-1和显示器404-2。其中,触敏表面404-1(例如触控面板)可采集手机的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触敏表面404-1上或在触敏表面404-1附近的操作),并将采集到的触摸信息发送给其他器件例如处理器401。其中,用户在触敏表面404-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于电子设备附近以便执行所想要的功能。在悬浮触控的应用场景下,术语“触摸”、“接触”等不会暗示用于直接接触触摸屏,而是在其附近或接近的接触。能够进行悬浮触控的触敏表面404-1可以采用电容式、红外光感以及超声波等实现。触敏表面404-1可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器401,触摸控制器还可以接收处理器401发送的指令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类 型来实现触敏表面404-1。显示器(也称为显示屏)404-2可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器404-2。触敏表面404-1可以覆盖在显示器404-2之上,当触敏表面404-1检测到在其上或附近的触摸事件后,传送给处理器401以确定触摸事件的类型,随后处理器401可以根据触摸事件的类型在显示器404-2上提供相应的视觉输出。虽然在图4中,触敏表面404-1与显示屏404-2是作为两个独立的部件来实现手机的输入和输出功能,但是在某些实施例中,可以将触敏表面404-1与显示屏404-2集成而实现手机的输入和输出功能。可以理解的是,触摸屏404是由多层材料堆叠而成,本申请实施例中只展示出了触敏表面(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,在本申请其他一些实施例中,触敏表面404-1可以覆盖在显示器404-2之上,并且触敏表面404-1的尺寸大于显示屏404-2的尺寸,使得显示屏404-2全部覆盖在触敏表面404-1下面,或者,上述触敏表面404-1可以以全面板的形式配置在手机的正面,也即用户在手机正面的触摸均能被手机感知,这样就可以实现手机正面的全触控体验。在其他一些实施例中,触敏表面404-1以全面板的形式配置在手机的正面,显示屏404-2也可以以全面板的形式配置在手机的正面,这样在手机的正面就能够实现无边框的结构。 Touch screen 404 can include touch-sensitive surface 404-1 and display 404-2. Wherein, the touch-sensitive surface 404-1 (eg, a touch panel) can capture a touch event on or near the user of the mobile phone (eg, the user uses a finger, a stylus, or the like on the touch-sensitive surface 404-1 or The operation in the vicinity of the touch-sensitive surface 404-1) and the collected touch information is transmitted to other devices such as the processor 401. The touch event of the user in the vicinity of the touch-sensitive surface 404-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touchpad in order to select, move or drag a target (eg, an icon, etc.) And only the user is located near the electronic device in order to perform the desired function. In the context of a floating touch application, the terms "touch", "contact", and the like do not imply a direct contact with the touch screen, but rather a proximity or proximity contact. The touch-sensitive surface 404-1 capable of floating touch can be realized by capacitive, infrared light, ultrasonic, or the like. The touch sensitive surface 404-1 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the touch information into contact coordinates, and then Sended to the processor 401, the touch controller can also receive and execute the instructions sent by the processor 401. In addition, the touch sensitive surface 404-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. A display (also referred to as display screen) 404-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone. The display 404-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touch sensitive surface 404-1 can be overlaid on the display 404-2, and when the touch sensitive surface 404-1 detects a touch event on or near it, is transmitted to the processor 401 to determine the type of touch event, followed by the processor 401 can provide a corresponding visual output on display 404-2 depending on the type of touch event. Although in FIG. 4, touch-sensitive surface 404-1 and display screen 404-2 are implemented as two separate components to implement the input and output functions of the handset, in some embodiments, touch-sensitive surface 404-1 can be utilized. It is integrated with the display 404-2 to implement the input and output functions of the mobile phone. It can be understood that the touch screen 404 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch-sensitive surface (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. Additionally, in some other embodiments of the present application, the touch-sensitive surface 404-1 can be overlaid on the display 404-2, and the size of the touch-sensitive surface 404-1 is greater than the size of the display 404-2 such that the display 404- 2 is completely covered under the touch-sensitive surface 404-1, or the touch-sensitive surface 404-1 may be disposed on the front side of the mobile phone in the form of a full-board, that is, the user's touch on the front of the mobile phone can be sensed by the mobile phone, so that Achieve a full touch experience on the front of the phone. In some other embodiments, the touch-sensitive surface 404-1 is disposed on the front side of the mobile phone in the form of a full-board, and the display screen 404-2 can also be disposed on the front side of the mobile phone in the form of a full-board, so that the front side of the mobile phone can be realized. Borderless structure.
在本申请各个实施例中,手机还可以具有指纹识别功能。例如,可以在手机的背面(例如后置摄像头的下方)配置指纹识别器412,或者在手机的正面(例如触摸屏404的下方)配置指纹识别器412。另外,也可以通过在触摸屏404中配置指纹识别器412来实现指纹识别功能,即指纹识别器412可以与触摸屏404集成在一起来实现手机的指纹识别功能。在这种情况下,该指纹识别器412可以配置在触摸屏404中,可以是触摸屏404的一部分,也可以以其他方式配置在触摸屏404中。另外,该指纹识别器412还可以被实现为全面板指纹识别器,因此,可以把触摸屏404看成是任何位置都可以进行指纹采集的一个面板。该指纹识别器412可以将采集到的指纹发送给处理器401,以便处理器401对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹识别器412的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。In various embodiments of the present application, the mobile phone may also have a fingerprint recognition function. For example, the fingerprint reader 412 can be configured on the back of the handset (eg, below the rear camera) or on the front side of the handset (eg, below the touch screen 404). In addition, the fingerprint recognition function can also be implemented by configuring the fingerprint identifier 412 in the touch screen 404, that is, the fingerprint identifier 412 can be integrated with the touch screen 404 to implement the fingerprint recognition function of the mobile phone. In this case, the fingerprint identifier 412 can be configured in the touch screen 404, can be part of the touch screen 404, or can be otherwise configured in the touch screen 404. Additionally, the fingerprint identifier 412 can also be implemented as a full-board fingerprint reader, and thus the touch screen 404 can be viewed as a panel that can be fingerprinted at any location. The fingerprint identifier 412 can send the collected fingerprint to the processor 401 for the processor 401 to process the fingerprint (eg, fingerprint verification, etc.). The main component of the fingerprint identifier 412 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
另外,关于本申请实施例中在触摸屏中集成指纹采集器件的具体技术方案,可以参见美国专利与商标局公告的申请号为US 2015/0036065A1,名称为“在电子设备中的指纹传感器”的专利申请,其全部控件通过引用结合在本申请各个实施例中。In addition, for a specific technical solution for integrating the fingerprint collection device in the touch screen in the embodiment of the present application, reference may be made to the patent of the US Patent Application No. US 2015/0036065A1, entitled "Fingerprint Sensor in Electronic Equipment". The application, all of its controls are incorporated by reference in the various embodiments of the present application.
手机还可以包括蓝牙装置405,用于实现手机与其他短距离的电子设备(例如第二设备302,如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。The mobile phone may also include a Bluetooth device 405 for enabling data exchange between the mobile phone and other short-range electronic devices (eg, the second device 302, such as a mobile phone, smart watch, etc.). The Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
手机还可以包括至少一种传感器406,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏404的显示器的亮度,接近传感器可在手机移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比 如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 406, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display of the touch screen 404 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone moves to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
WI-FI装置407,用于为手机提供遵循WI-FI相关标准协议的网络接入,手机可以通过WI-FI装置407接入到WI-FI接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该WI-FI装置407也可以作为WI-FI无线接入点,可以为其他电子设备提供WI-FI网络接入。The WI-FI device 407 is configured to provide the mobile phone with network access complying with the WI-FI related standard protocol, and the mobile phone can access the WI-FI access point through the WI-FI device 407, thereby helping the user to send and receive emails and browse the webpage. And access to streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the WI-FI device 407 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other electronic devices.
定位装置408,用于为手机提供地理位置。可以理解的是,该定位装置408具体可以是全球定位系统(Global Positioning System,GPS)、北斗卫星导航系统等定位系统的接收器。定位装置408在接收到上述定位系统发送的地理位置后,将该信息发送给处理器401处理,或者发送给存储器403保存。在另外的一些实施例中,该定位装置408可以是辅助全球卫星定位系统(Assisted Global Positioning System,AGPS)的接收器,AGPS是一种在一定辅助配合下进行GPS定位的运行方式,它可以利用基站的信号,配合GPS卫星信号,可以让手机定位的速度更快;在AGPS系统中,该定位装置408可通过与辅助定位服务器(例如手机定位服务器)的通信而获得定位辅助。AGPS系统通过作为辅助服务器来协助定位装置408完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与电子设备例如手机的定位装置408(即GPS接收器)通信而提供定位协助。在另外的一些实施例中,该定位装置408也可以是基于WI-FI接入点的定位技术。由于每一个WI-FI接入点都有一个全球唯一的MAC地址,电子设备在开启WI-FI的情况下即可扫描并收集周围的WI-FI接入点的广播信号,因此可以获取到WI-FI接入点广播出来的MAC地址;电子设备将这些能够标示WI-FI接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个WI-FI接入点的地理位置,并结合WI-FI广播信号的强弱程度,计算出该电子设备的地理位置并发送到该电子设备的定位装置408中。The positioning device 408 is configured to provide a geographic location for the mobile phone. It can be understood that the positioning device 408 can be specifically a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system. After receiving the geographical location sent by the positioning system, the positioning device 408 sends the information to the processor 401 for processing, or sends it to the memory 403 for storage. In some other embodiments, the positioning device 408 can be an Assisted Global Positioning System (AGPS) receiver, and the AGPS is an operation mode for performing GPS positioning with certain assistance, which can be utilized. The signal of the base station, in conjunction with the GPS satellite signal, allows the mobile phone to be positioned faster; in the AGPS system, the positioning device 408 can obtain positioning assistance by communicating with an auxiliary positioning server (such as a mobile phone positioning server). The AGPS system assists the positioning device 408 in performing the ranging and positioning services by acting as an auxiliary server, in which case the auxiliary positioning server provides positioning by communicating with an electronic device such as a positioning device 408 (ie, a GPS receiver) of the mobile device via a wireless communication network. assist. In still other embodiments, the positioning device 408 can also be a WI-FI access point based positioning technology. Since each WI-FI access point has a globally unique MAC address, the electronic device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on, so that the WI can be obtained. - the MAC address broadcasted by the FI access point; the electronic device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each WI-FI interface is retrieved by the location server. The geographic location of the entry point, combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the electronic device and sends it to the location device 408 of the electronic device.
音频电路409、扬声器413、麦克风414可提供用户与手机之间的音频接口。音频电路409可将接收到的音频数据转换后的电信号,传输到扬声器413,由扬声器413转换为声音信号输出;另一方面,麦克风414将收集的声音信号转换为电信号,由音频电路409接收后转换为音频数据,再将音频数据输出至RF电路402以发送给比如另一手机,或者将音频数据输出至存储器403以便进一步处理。 Audio circuitry 409, speaker 413, microphone 414 can provide an audio interface between the user and the handset. The audio circuit 409 can transmit the converted electrical data of the received audio data to the speaker 413, and convert it into a sound signal output by the speaker 413; on the other hand, the microphone 414 converts the collected sound signal into an electrical signal, and the audio circuit 409 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 402 for transmission to, for example, another mobile phone, or the audio data is output to the memory 403 for further processing.
外设接口410,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块(Subscriber Identity Module,SIM)卡连接。外设接口410可以被用来将上述外部的输入/输出外围设备耦接到处理器401和存储器403。 Peripheral interface 410 for providing various interfaces to external input/output devices (eg, keyboard, mouse, external display, external memory, subscriber identity module card, etc.). For example, it is connected to the mouse through a universal serial bus interface, and is connected to a Subscriber Identity Module (SIM) card provided by a telecommunications carrier through a metal contact on the card slot of the subscriber identity module. Peripheral interface 410 can be used to couple the external input/output peripherals described above to processor 401 and memory 403.
手机还可以包括给各个部件供电的电源装置411(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器401逻辑相连,从而通过电源装置411实现管理充电、放电、以及功耗管理等功能。The mobile phone may further include a power supply device 411 (such as a battery and a power management chip) for supplying power to various components, and the battery may be logically connected to the processor 401 through the power management chip, thereby managing charging, discharging, power consumption management, etc. through the power supply device 411. Features.
尽管图4未示出,手机还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、NFC装置等,在此不再赘述。Although not shown in FIG. 4, the mobile phone may further include a camera (front camera and/or rear camera), a flash, a micro projection device, an NFC device, and the like, and details are not described herein.
图5为本申请实施例提供的一种数据传输方法的流程示意图。应用于第一设备与第二设备通信的过程中,其中,第一设备和第二设备在一个传输周期中可以进行多次收发。如图5所示,该方法可以包括以下步骤:S501-S504。FIG. 5 is a schematic flowchart diagram of a data transmission method according to an embodiment of the present application. The method is applied to the communication between the first device and the second device, wherein the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle. As shown in FIG. 5, the method may include the following steps: S501-S504.
S501、第一设备在第一传输周期中向第二设备发送数据包,该数据包中包括指示标志,所述指示标志用于指示第二设备是否需要对与该第一传输周期在时间上连续的至少一个传输周期进行监听。S501: The first device sends a data packet to the second device in the first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be consecutive in time with the first transmission period. At least one transmission cycle is monitored.
其中,上述指示标志可以包含在数据包的头(Header)中。Wherein, the above indication flag may be included in a header of a data packet.
示例性的,以第一设备与第二设备之间采用蓝牙协议进行数据传输为例,可以用NCEMD(Next Connection Event More Data)表示所述指示标志,如图6所示为增加指示标志后的Header的结构示意图。For example, the data transmission is performed by using the Bluetooth protocol between the first device and the second device. The indication flag may be represented by NCOMDD (Next Connection Event More Data), as shown in FIG. Schematic diagram of the header.
由图6可知,该数据包的Header中包含有:逻辑链路标识符(Logical Link Identifier,LLID)字段、下一个预期的序列号(Next Expected Sequence Number,NESN)字段、序列号(Sequence Number,SN)字段、更多的数据(More Data,MD)字段、NCEMD字段、保留(Reserve,RFU)以及长度(Length)字段。其中,NCEMD字段为本申请新增的一个字段,其它字段均为蓝牙协议中已有的标准字段,其他字段的详细描述可参考蓝牙协议,本申请实施例在此不予赘述。As can be seen from FIG. 6, the header of the data packet includes: a Logical Link Identifier (LLID) field, a Next Expected Sequence Number (NESN) field, and a Sequence Number (Sequence Number, SN) field, More Data (MD) field, NCMMD field, Reserve (RFU), and Length field. The NCEMD field is a new field in the application, and the other fields are standard fields existing in the Bluetooth protocol. For detailed descriptions of other fields, refer to the Bluetooth protocol, which is not described herein.
在本申请实施例中,NCEMD字段,用于指示第二设备是否需要对与当前传输周期在时间上连续的至少一个传输周期进行监听。NCEMD字段的长度与需要指示的是否需要第二设备进行监听的传输周期的个数相关。In the embodiment of the present application, the NCMMD field is used to indicate whether the second device needs to monitor at least one transmission period that is consecutive in time with the current transmission period. The length of the NCEMD field is related to the number of transmission cycles that need to indicate whether the second device needs to be monitored.
例如,以需要指示的是否需要第二设备进行监听的传输周期的个数为1,即第一设备需要指示第二设备是否需要对与当前传输周期在时间上连续的下一个传输周期进行监听为例,NCEMD字段的长度可以为1比特(bit),如,NCEMD字段为1,表示第二设备需要对与当前传输周期的在时间上连续的下一个传输周期进行监听,NCEMD字段为0,表示第二设备不需要对与当前传输周期的在时间上连续的下一个传输周期进行监听。For example, the number of transmission periods that need to be instructed to be monitored by the second device is 1, that is, the first device needs to indicate whether the second device needs to monitor the next transmission period that is consecutive in time with the current transmission period. For example, the length of the NCMMD field may be 1 bit. For example, if the NCMMD field is 1, it indicates that the second device needs to monitor the next transmission period that is consecutive with the current transmission period. The NCMMD field is 0, indicating The second device does not need to listen to the next transmission cycle that is contiguous with the current transmission cycle.
再例如,以需要指示的是否需要第二设备进行监听的传输周期的个数为2,即第一设备需要指示第二设备是否需要对与当前传输周期在时间上连续的两个传输周期进行监听为例,NCEMD字段的长度可以为2bit,如,NCEMD字段为11,表示第二设备需要对与当前传输周期的在时间上连续的下一个传输周期以及下下一个传输周期进行监听,NCEMD字段为10,表示第二设备需要对与当前传输周期的在时间上连续的下一个传输周期进行监听,不需要对下下一个传输周期进行监听,NCEMD字段为00,表示第二设备不需要对与当前传输周期的在时间上连续的下一个传输周期以及下下一个传输周期进行监听。For example, the number of transmission periods that need to be instructed to be monitored by the second device is 2, that is, the first device needs to indicate whether the second device needs to monitor two transmission periods that are consecutive in time with the current transmission period. For example, the length of the NCMMD field can be 2 bits. For example, the NCMMD field is 11, indicating that the second device needs to listen to the next transmission cycle that is consecutive with the current transmission cycle and the next transmission cycle. The NCEMD field is 10, indicating that the second device needs to monitor the next transmission period that is consecutive with the current transmission period, and does not need to monitor the next transmission period. The NCMMD field is 00, indicating that the second device does not need to be current and current. The next transmission period of the transmission cycle that is continuous in time and the next transmission cycle are monitored.
需要说明的是,在本申请实施例中,仅是以上述指示标志包含在数据包的Header中为例进行说明的,在具体实现中,指示标志还可以包含在数据包中的其他位置,本申请实施例并不做具体限制。且,本申请实施例中对指示标志的长度也不进行具体限制。It should be noted that, in the embodiment of the present application, only the above indication flag is included in the header of the data packet as an example. In a specific implementation, the indication flag may also be included in other locations in the data packet. The application examples are not specifically limited. Moreover, the length of the indication mark is not specifically limited in the embodiment of the present application.
在本申请的实施例中,在第一传输周期中,第一设备可以在传输的数据包中携带一指示标志,用来指示第二设备是否需要对与第一传输周期在时间上连续的至少一个 传输周期进行监听。这样,在第一设备在与第一传输周期在时间上连续的至少一个传输周期中传输了数据的情况下,第二设备根据指示标志便能确定需要继续进行监听,进而能够及时的接收到第一设备传输的数据。In an embodiment of the present application, in the first transmission period, the first device may carry an indication flag in the transmitted data packet, to indicate whether the second device needs to be at least temporally continuous with the first transmission period. A transmission cycle is monitored. In this way, in a case where the first device transmits data in at least one transmission period that is continuous with the first transmission period in time, the second device can determine that the monitoring needs to be continued according to the indication flag, thereby being able to receive the information in time. Data transmitted by a device.
示例性的,以第一设备与第二设备之间采用蓝牙协议进行数据传输为例进行说明。其中,上述传输周期在蓝牙协议中称为连接事件间隔,简称为interval(间隔)。假设第一设备与第二设备协商的配置中,interval=60ms,Latency=4,并假设在一个连接事件中,第一设备最多可以进行4次收发。参见图7所示(图7是从发送设备,即第一设备的角度示出的传输数据的时序示意图),当第一设备有数据传输需求,且假设该数据需要分为7个数据包进行传输时,第一设备可以在间隔1中开始数据传输。由于第一设备在一个连接事件中最多可以发送4次数据,因此,第一设备可以在间隔1对应的连接事件1的锚点开始的第一个TX、第二个TX、第三个TX以及第四个TX处,分别发送数据包1、数据包2、数据包3以及数据包4。另外,由于Latency=4,并假设间隔1为根据interval和Latency确定出的第二设备需要监听的间隔,因此若按照现有蓝牙协议的规定,第二设备不会对间隔2进行监听。在本申请实施例中,为了能够确保第一设备的数据能够及时的传输到的第二设备,第一设备可以在间隔1中发送的数据包中携带指示标志,且该指示标志此时用于指示第二设备需要对间隔2进行监听。在具体实现中,第一设备可以在间隔1中发送的所有数据包,即数据包1、数据包2、数据包3以及数据包4中均携带该指示标志,也可以仅在该间隔1中的最后一个发送的数据包,即数据包4中携带该指示标志,以节省信息的开销。例如,结合图6所示的示例,第一设备在间隔1中发送的数据包4的Header中携带取值为1的NCEMD字段,以指示第二设备需要对间隔2进行监听。另外,第一设备可以在间隔2对应的连接事件2的锚点开始的第一个TX、第二个TX以及第三个TX处,分别发送剩余的数据包,即数据包5、数据包6和数据包7。Exemplarily, the data transmission between the first device and the second device by using the Bluetooth protocol is taken as an example. The foregoing transmission period is referred to as a connection event interval in the Bluetooth protocol, and is simply referred to as interval. Assuming that the first device negotiates with the second device, interval=60ms, Latency=4, and assumes that the first device can transmit and receive at most four times in one connection event. Referring to FIG. 7 (FIG. 7 is a timing diagram of the transmission data shown from the perspective of the transmitting device, that is, the first device), when the first device has a data transmission requirement, and it is assumed that the data needs to be divided into 7 data packets. At the time of transmission, the first device can start data transmission in interval 1. Since the first device can send up to 4 times of data in one connection event, the first device can start the first TX, the second TX, the third TX, and the anchor point of the connection event 1 corresponding to the interval 1 At the fourth TX, the data packet 1, the data packet 2, the data packet 3, and the data packet 4 are respectively transmitted. In addition, since Latency=4, and the interval 1 is an interval that the second device needs to monitor according to the interval and the Latency, the second device does not monitor the interval 2 according to the provisions of the existing Bluetooth protocol. In the embodiment of the present application, in order to ensure that the data of the first device can be transmitted to the second device in time, the first device may carry the indication flag in the data packet sent in the interval 1, and the indication flag is used at this time. Indicates that the second device needs to listen to interval 2. In a specific implementation, the first device may carry the indication flag in all data packets sent in the interval 1, that is, the data packet 1, the data packet 2, the data packet 3, and the data packet 4, or may be only in the interval 1. The last transmitted packet, that is, the packet 4 carries the indication flag to save information overhead. For example, in conjunction with the example shown in FIG. 6, the first device carries an NCMMD field of value 1 in the header of the data packet 4 transmitted in the interval 1 to indicate that the second device needs to listen to the interval 2. In addition, the first device may send the remaining data packets, that is, the data packet 5 and the data packet 6, respectively, at the first TX, the second TX, and the third TX starting from the anchor point of the connection event 2 corresponding to the interval 2. And packet 7.
需要说明的是,在本申请实施例中,在第一设备与第二设备之间采用蓝牙协议进行数据传输的情况下,上述在间隔中发送数据包,具体可以是指,在间隔对应的连接事件中发送数据包。上述对间隔进行监听,具体可以是指,对间隔对应的连接事件进行监听。例如,上述在间隔1中发送数据包,具体可以指在间隔1对应的连接事件1中发送数据包。上述对间隔2进行监听,具体可以指对间隔2对应的连接事件2进行监听。It should be noted that, in the embodiment of the present application, in the case that the data transmission is performed by using the Bluetooth protocol between the first device and the second device, the foregoing sending the data packet in the interval may specifically refer to the connection corresponding to the interval. The packet is sent in the event. The foregoing monitoring the interval may specifically refer to monitoring the connection event corresponding to the interval. For example, the foregoing sending a data packet in the interval 1 may specifically mean that the data packet is sent in the connection event 1 corresponding to the interval 1. The monitoring of the interval 2 may be performed by monitoring the connection event 2 corresponding to the interval 2.
S502、第二设备在第一传输周期中接收来自第一设备的数据包。S502. The second device receives the data packet from the first device in the first transmission period.
结合图7所示的示例,第二设备可以对间隔1进行监听,以接收第一设备在间隔1对应的连接事件1的锚点开始发送的数据包。In conjunction with the example shown in FIG. 7, the second device may listen to the interval 1 to receive a data packet that the first device starts transmitting at the anchor point of the connection event 1 corresponding to the interval 1.
在第二设备接收到第一设备在第一传输周期中发送的数据包后,可以根据接收到的数据包中包含指示标志确定是否需要对与第一传输周期在时间上连续的至少一个传输周期进行监听。After the second device receives the data packet sent by the first device in the first transmission period, it may determine, according to the indication flag included in the received data packet, whether at least one transmission period that is temporally consecutive with the first transmission period is needed. Monitor.
S503、当所述指示标志用于指示第二设备需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备对与第一传输周期在时间上连续的至少一个传输周期进行监听。S503. When the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is consecutive in time with the first transmission period, the second device pairs the at least one transmission that is consecutive in time with the first transmission period. The cycle is monitored.
当第二设备确定出指示标志用于指示第二设备需要对与第一传输周期在时间上连 续的至少一个传输周期进行监听时,第二设备可以认为第一设备在与第一传输周期在时间上连续的至少一个传输周期中会进行数据传输,此时,第二设备可以对与第一传输周期在时间上连续的至少一个传输周期进行监听。例如,结合图7所示的示例,第二设备可以对间隔2进行监听,以接收第一设备在间隔2对应的连接事件2的锚点开始发送的数据包。When the second device determines that the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period, the second device may consider that the first device is in time with the first transmission period Data transmission is performed in at least one consecutive transmission period, and at this time, the second device can monitor at least one transmission period that is temporally continuous with the first transmission period. For example, in conjunction with the example shown in FIG. 7, the second device may listen to the interval 2 to receive a data packet that the first device starts transmitting at the anchor point of the connection event 2 corresponding to the interval 2.
需要说明的是,在本申请的一些实施例中,若第一设备在当前传输周期中将需要传输的数据传输完成,则第一设备可以在当前传输周期中发送的数据包中携带用于指示第二设备不需要对与当前传输周期在时间上连续的至少一个传输周期进行监听的指示标志,这样,第二设备便可以在当前传输周期中接收完成数据后,进入休眠状态,并可以根据配置的相关参数,如在蓝牙协议中的interval和Latency这两个参数,确定出的下一个需要监听的传输周期,进而对确定出的传输周期进行监听。例如,结合图7所示的示例,第二设备在接收完成间隔2对应的连接事件2中的数据包后,可以进入休眠状态,并由于第一设备在间隔2中已将数据全部传输完成,即间隔2对应的连接事件2中的数据包中包含的指示标志用于指示第二设备不需要对与间隔2在时间上连续的间隔3进行监听,因此第二设备可以根据连接事件2中数据包包含的指示标志确定不需要对间隔3进行监听,并根据interval=60ms和Latency=4确定出不需要对间隔4和间隔5进行监听,需要对间隔6进行监听,第二设备可以在对应的时间点从休眠状态醒来对间隔6进行监听。另外,在本申请实施例中,在指示标志用于指示第二设备不需要对某个或某些间隔进行监听的情况下,第二设备也可以对这些间隔进行监听。也就是说,在指示标志用于指示第二设备不需要对某个或某些间隔进行监听的情况下,第二设备可以根据自身的配置来决定是否需要对这些间隔进行监听,本申请实施例在此并不做具体限制。It should be noted that, in some embodiments of the present application, if the first device needs to transmit the data to be transmitted in the current transmission period, the first device may carry the indication in the data packet sent in the current transmission period. The second device does not need to indicate the at least one transmission period that is consecutive in time with the current transmission period, so that the second device can enter the sleep state after receiving the completion data in the current transmission period, and can be configured according to the configuration. The relevant parameters, such as the interval and the Latency parameters in the Bluetooth protocol, determine the next transmission period that needs to be monitored, and then monitor the determined transmission period. For example, in conjunction with the example shown in FIG. 7, after receiving the data packet in the connection event 2 corresponding to the interval 2, the second device may enter a sleep state, and since the first device has completely transmitted the data in the interval 2, That is, the indication flag included in the data packet in the connection event 2 corresponding to the interval 2 is used to indicate that the second device does not need to monitor the time interval 3 consecutively with the interval 2, so the second device can according to the data in the connection event 2. The indication flag included in the packet determines that the interval 3 is not required to be monitored, and according to the interval=60ms and the Latency=4, it is determined that the interval 4 and the interval 5 do not need to be monitored, and the interval 6 needs to be monitored, and the second device can be corresponding. The time point wakes up from sleep and listens to interval 6. In addition, in the embodiment of the present application, when the indication flag is used to indicate that the second device does not need to monitor for some or some intervals, the second device may also monitor the intervals. That is, in the case that the indication flag is used to indicate that the second device does not need to monitor the interval, the second device may determine whether the interval needs to be monitored according to the configuration of the second device. There are no specific restrictions here.
S504、当所述指示标志用于指示第二设备不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备确定第二传输周期,并监听第二传输周期。S504. When the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is temporally consecutive with the first transmission period, the second device determines the second transmission period, and monitors the second transmission period.
当第二设备确定出指示标志用于指示第二设备不需要对与第一传输周期在时间上连续的至少一个传输周期进行监听时,第二设备可以根据配置的相关参数确定下一个需要监听的传输周期,即第二传输周期,并对第二传输周期进行监听。需要说明的是,确定第二传输周期的具体实现可以参考S503中的相关描述,本申请实施例在此不再详细赘述。When the second device determines that the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is temporally consecutive with the first transmission period, the second device may determine, according to the configured related parameters, the next one that needs to be monitored. The transmission period, that is, the second transmission period, and the second transmission period is monitored. It should be noted that the specific implementation of determining the second transmission period may refer to the related description in S503, and the embodiments of the present application are not described in detail herein.
在本申请的另一实施例中,如图8所示,在第一设备在第一传输周期中向第二设备发送数据包之前,该方法还可以包括以下步骤:S505-S506。In another embodiment of the present application, as shown in FIG. 8, before the first device sends a data packet to the second device in the first transmission period, the method may further include the following steps: S505-S506.
S505、第一设备向第二设备发送第一消息,第一消息用于指示第一设备支持第一特性。第一特性为支持在数据包中携带指示标志以指示是否需要对传输周期进行监听的特性。S505. The first device sends a first message to the second device, where the first message is used to indicate that the first device supports the first feature. The first feature is to support the feature of carrying an indication flag in the data packet to indicate whether the transmission period needs to be monitored.
S506、第二设备向第一设备发送第二消息,第二消息用于指示第二设备支持第一特性。S506. The second device sends a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
作为一种示例,以第一设备与第二设备之间采用蓝牙协议进行数据传输为例进行说明,上述第一消息可以为逻辑链路控制协议特性请求(LLCP Feature Request),上述第二消息可以为逻辑链路控制协议特性响应(LLCP Feature Response)。示例性的, 在第一设备与第二设备建立了物理层连接之后,第一设备可以向第二设备发送LLCP Feature Request,并在第一设备支持第一特性时,在该LLCP Feature Request中携带该第一特性,以指示第一设备支持第一特性。第二设备接收到LLCP Feature Request后,向第一设备回复LLCP Feature Response,同样在第二设备支持第一特性时,在该LLCP Feature Response中携带该第一特性,以指示第二设备支持第一特性。第一设备和第二设备得到对方支持的特性列表后,若双方都支持第一特性,则第一设备和第二设备均启动该第一特性。如果有一方不支持该第一特性,则双方设备在交互时,可以忽略数据包中携带的指示标志,而是按照现有的协议规定,确定需要监听的传输周期。或者,如果有一方不支持该第一特性,则双方设备在交互时,可以不携带指示标志,而是按照现有的协议规定,确定需要监听的传输周期。As an example, the data transmission between the first device and the second device by using the Bluetooth protocol is used as an example. The first message may be a logical link control protocol feature request (LLCP Feature Request), and the second message may be For the logical link control protocol feature response (LLCP Feature Response). Exemplarily, after the first device establishes a physical layer connection with the second device, the first device may send a LLCCP Feature Request to the second device, and carry the LLC feature in the LLCP Feature Request when the first device supports the first feature. The first characteristic is to indicate that the first device supports the first characteristic. After receiving the LLCP Feature Request, the second device replies to the first device with the first feature, and when the second device supports the first feature, the second device carries the first feature to indicate that the second device supports the first characteristic. After the first device and the second device obtain the feature list supported by the other party, if both the first feature is supported, the first device and the second device start the first feature. If one party does not support the first feature, the two devices can ignore the indicator carried in the data packet when interacting, and determine the transmission period to be monitored according to the existing protocol. Alternatively, if one party does not support the first feature, the two devices may not carry the indication flag when interacting, but determine the transmission period that needs to be monitored according to the existing protocol.
本申请实施例提供的数据传输方法,第一设备在第一传输周期中向第二设备发送携带指示标志的数据包,该指示标志用于指示第二设备是否需要对与该第一传输周期在时间上连续的至少一个传输周期进行监听。这样,通过在一传输周期中携带用于指示第二设备是否需要对与该传输周期在时间上连续的至少一个传输周期进行监听的指示标志,使得第一设备在与该传输周期在时间上连续的至少一个传输周期中进行数据传输时,第二设备根据指示标志确定需要继续进行监听,进而及时接收到第一设备传输的数据,达到了将数据快速传输到对端的目的,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。In the data transmission method provided by the embodiment of the present application, the first device sends a data packet carrying the indication flag to the second device in the first transmission period, where the indication flag is used to indicate whether the second device needs to be in the first transmission period. At least one transmission cycle that is continuous in time is monitored. In this way, by carrying an indication flag indicating whether the second device needs to monitor at least one transmission period that is temporally continuous with the transmission period in a transmission period, the first device is continuously continuous with the transmission period in time. When data transmission is performed in at least one transmission period, the second device determines that the monitoring needs to be continued according to the indication flag, and then receives the data transmitted by the first device in time, thereby achieving the purpose of quickly transmitting the data to the opposite end, and comparing The prior art saves power consumption of the device by dynamically adjusting the interval and/or Latency for data transmission.
图9为本申请实施例提供的另一种数据传输方法的流程示意图。应用于第一设备与第二设备通信的过程中,其中,第一设备和第二设备在一个传输周期中可以进行多次收发。如图9所示,该方法可以包括以下步骤:S901-S903。FIG. 9 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present application. The method is applied to the communication between the first device and the second device, wherein the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle. As shown in FIG. 9, the method may include the following steps: S901-S903.
S901、在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第一设备在第一传输周期中向第二设备发送第一数据包;在上述第一传输周期中在第一数据包后没有数据传输,第一数据包包括MD,MD用于指示第一设备在第二传输周期中会有数据传输,第二传输周期与所述第一传输周期在时间上连续。S901, when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first data packet to the second device in the first transmission period; There is no data transmission after the first data packet, the first data packet includes an MD, the MD is used to indicate that the first device has data transmission in the second transmission period, and the second transmission period and the first transmission period are in time. continuous.
S902、第二设备在第一传输周期接收来自第一设备的第一数据包。S902. The second device receives the first data packet from the first device in the first transmission period.
S903、第二设备监听第二传输周期。S903. The second device monitors the second transmission period.
示例性的,按照现有蓝牙协议的规定,数据包的Header包含的MD字段用于指示同一个连接事件当中,是否还有下一个数据要传输。例如MD=1表示同一个连接事件当中还有下一个数据要传输,即在该数据包之后,在当前传输周期对应的连接事件中还有下一个数据包要传输,MD=0表示在同一个连接事件中不会有下一个数据要传输,即该数据包是当前传输周期对应的连接事件的最后一个数据包。可以简单的理解为,按照现有蓝牙协议的规定,当前传输周期对应的连接事件的除最后一个数据包外的其他数据包中包含的MD均为1,当前传输周期对应的连接事件的最后一个数据包所包含的MD为0,这样定义的原因是一个传输周期对应的连接事件中的收发次数是未知的。在本申请实施例中,当一个传输周期中的收发次数是确定的时,第一设备可以重用现有技术中的MD,将第一数据包中包含的MD设置为1,其用来指示与当前传输周期在时间上连续的第二传输周期将会有数据传输。其中,当前传输周期中在所述第一数据包后没有数据传输,即第一数据包是当前传输周期的最后一个数据包。这样, 在第二设备接收到第一数据包后,当在当前传输周期中在该第一数据包后没有数据传输,即第一数据包是当前传输周期的最后一个数据包(在当前传输周期的收发次数是确定的时,双方设备能够确定当前传输的数据包是否是当前传输周期的最后一个数据包)的情况下,若第二设备确定出该第一数据包中的MD=1时,便可以确认与当前传输周期在时间上连续的传输周期中会有数据传输,即确认需要继续对第二传输周期进行监听。另外,第一设备和第二设备在第一数据包解析完成后,结束当前传输周期对应的连接事件。Exemplarily, according to the provisions of the existing Bluetooth protocol, the MD field included in the header of the data packet is used to indicate whether there is still another data to be transmitted among the same connection event. For example, MD=1 means that there is still another data to be transmitted among the same connection event, that is, after the data packet, there is another data packet to be transmitted in the connection event corresponding to the current transmission period, and MD=0 means that it is in the same There will be no next data to be transmitted in the connection event, ie the packet is the last packet of the connection event corresponding to the current transmission cycle. It can be simply understood that, according to the provisions of the existing Bluetooth protocol, the MD included in the other data packets except the last data packet of the connection event corresponding to the current transmission period is 1, and the last one of the connection events corresponding to the current transmission period. The MD contained in the data packet is 0. The reason for this definition is that the number of transmissions and receptions in the connection event corresponding to one transmission cycle is unknown. In the embodiment of the present application, when the number of times of sending and receiving in one transmission cycle is determined, the first device may reuse the MD in the prior art, and set the MD included in the first data packet to 1, which is used to indicate The current transmission cycle will have data transmission during the second consecutive transmission cycle. There is no data transmission after the first data packet in the current transmission period, that is, the first data packet is the last data packet of the current transmission period. In this way, after the second device receives the first data packet, when there is no data transmission after the first data packet in the current transmission period, that is, the first data packet is the last data packet of the current transmission period (in the current transmission cycle) When the number of times of sending and receiving is determined, if the two devices can determine whether the currently transmitted data packet is the last data packet of the current transmission period, if the second device determines that MD=1 in the first data packet, It can be confirmed that there will be data transmission in the continuous transmission period with the current transmission period, that is, it is confirmed that the second transmission period needs to be monitored. In addition, after the first data packet is parsed, the first device and the second device end the connection event corresponding to the current transmission period.
例如,结合图7所示的示例,第一设备将数据包4中的MD设置为1,以指示第一设备在间隔2中将会有数据传输,以便第二设备对间隔2进行监听。需要说明的是,在采用图9所示的实施例进行数据传输时,传输的数据包的Header中不包括图6中所示的NCEMD字段,而是按照现有蓝牙协议的规定,Header中包括LLID字段、NESN字段、SN字段、MD字段、RFU以及Length字段即可。For example, in conjunction with the example shown in FIG. 7, the first device sets the MD in packet 4 to 1 to indicate that the first device will have data transmissions in interval 2 so that the second device can listen to interval 2. It should be noted that, when the data transmission is performed by using the embodiment shown in FIG. 9, the Header of the transmitted data packet does not include the NCMMD field shown in FIG. 6, but is included in the Header according to the provisions of the existing Bluetooth protocol. The LLID field, the NESN field, the SN field, the MD field, the RFU, and the Length field may be used.
在本申请的另一实施例中,如图10所示,在第一设备在第一传输周期中向第二设备发送第一数据包之前,该方法还可以包括以下步骤:S904-S905。In another embodiment of the present application, as shown in FIG. 10, before the first device sends the first data packet to the second device in the first transmission period, the method may further include the following steps: S904-S905.
S904、第一设备向第二设备发送第一消息,第一消息用于与第二设备协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数。S904. The first device sends a first message to the second device, where the first message is used to negotiate, with the second device, the number of data packets that the first device can send to the second device in one transmission period.
S905、第二设备向第一设备发送第二消息,第二消息用于确认在一个传输周期中第一设备能够向第二设备发送的数据包的个数。S905. The second device sends a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
作为一种示例,上述第一消息可以为LLCP Feature Request,上述第二消息可以为LLCP Feature Response,也就是说,第一设备和第二设备在建立了物理层连接之后,可以通过LLCP Feature Request和LLCP Feature Response来协商在一个传输周期中第一设备能够向第二设备发送的数据包的个数。As an example, the first message may be a LLCP Feature Request, and the second message may be a LLCP Feature Response, that is, the first device and the second device may pass the LLCP Feature Request and after establishing the physical layer connection. The LLCP Feature Response negotiates the number of packets that the first device can send to the second device in one transmission cycle.
需要说明的是,在本申请实施例中,在第一设备与第二设备之间采用蓝牙协议进行数据传输的情况下,上述在传输周期中发送数据包,具体可以是指,在传输周期对应的连接事件中发送数据包。上述传输周期中的收发次数,具体可以是指,传输周期对应的连接事件的收发次数。上述在传输周期中能够发送的数据包的个数,具体可以指在传输周期对应的连接事件中能够发送的数据包的个数。It should be noted that, in the embodiment of the present application, in the case that the data transmission is performed by using the Bluetooth protocol between the first device and the second device, the foregoing sending the data packet in the transmission period may specifically mean that the transmission period corresponds to The packet is sent in the connection event. The number of times of transmission and reception in the above transmission period may specifically refer to the number of times of connection and reception of the connection event corresponding to the transmission period. The number of data packets that can be transmitted in the transmission cycle may specifically refer to the number of data packets that can be transmitted in the connection event corresponding to the transmission cycle.
本申请实施例提供的数据传输方法,在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第一设备在第一传输周期中向第二设备发送的第一数据包中携带MD,所述MD用于指示第一设备在第二传输周期中会有数据传输。在第一传输周期中在第一数据包后没有数据传输,即第一数据包是第一传输周期中的最后一个数据包,第二传输周期与所述第一传输周期在时间上连续。这样,在一传输周期收发次数确定的情况下,通过使用该传输周期中传输的最后一个数据包中的MD,来指示在与该传输周期在时间上连续的传输周期中有数据传输,使得第二设备能够及时对与该传输周期在时间上连续的传输周期进行监听,进而使得第一设备能够快速的将数据传输到第二设备,并且,相较于现有技术通过动态调整interval和/或Latency进行数据传输的方法节省了设备的功耗。The data transmission method provided by the embodiment of the present application, when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device sends the first message to the second device in the first transmission period. The data packet carries an MD, and the MD is used to indicate that the first device has data transmission in the second transmission period. There is no data transmission after the first data packet in the first transmission period, that is, the first data packet is the last data packet in the first transmission period, and the second transmission period is continuous with the first transmission period in time. Thus, in the case where the number of transmission and reception times of the transmission cycle is determined, by using the MD in the last data packet transmitted in the transmission cycle, it is indicated that there is data transmission in the transmission cycle that is continuous with the transmission cycle in time, so that The second device can timely monitor the time-continuous transmission period with the transmission period, thereby enabling the first device to quickly transmit data to the second device, and dynamically adjusting the interval and/or compared to the prior art. Latency's method of data transmission saves power consumption of the device.
另外,需要说明的是,当第一设备与第二设备之间采用蓝牙协议进行数据传输的情况下,由于根据现有蓝牙协议的规定,在Latency=0时第二设备会对每个连接事件 间隔对应的连接事件进行监听,因此,在本申请实施例中,在采用本申请实施例图5和图8,以及图9和图10所示的数据传输方法时,第一设备可以先确定Latency的取值是否为0,若Latency不等于0,则可以采用本申请实施例提供的数据传输方法进行数据传输。并且,设备之间采用上述方法进行数据传输时,第一设备和第二设备之间还可以采用现有技术中方法对传输速率进行调整,如由从设备发起的调整interval和/或Latency的方案,或者由主设备发起的调整interval和/或Latency的方案,也就是说,设备之间采用上述方法进行数据传输的机制,与现有技术中设备之间对传输速率进行调整的机制可以共存,两者不会有任何影响。In addition, it should be noted that when the first device and the second device use the Bluetooth protocol for data transmission, the second device will each connection event when the Latency=0 according to the existing Bluetooth protocol. The connection event corresponding to the interval is monitored. Therefore, in the embodiment of the present application, when using the data transmission methods shown in FIG. 5 and FIG. 8 and FIG. 9 and FIG. 10 of the embodiment of the present application, the first device may first determine the Latency. If the value of the value is 0, if the Latency is not equal to 0, the data transmission method provided by the embodiment of the present application may be used for data transmission. Moreover, when data transmission is performed between the devices by using the foregoing method, the transmission rate may be adjusted between the first device and the second device by using a method in the prior art, such as a scheme for adjusting interval and/or Latency initiated by the device. Or the scheme for adjusting the interval and/or the Latency initiated by the master device, that is, the mechanism for transmitting data between the devices by using the above method, and the mechanism for adjusting the transmission rate between the devices in the prior art can coexist. The two will have no effect.
本申请另一实施例提供一种数据接收方法,应用于第一设备与第二设备通信的过程中,其中,第一设备和第二设备在一个传输周期中可以进行多次收发。该方法可以包括以下过程:当第一设备有数据需要传输时,若一个传输周期中不能将所有数据传输完成,第一设备可以在连续的多个传输周期中进行数据传输。Another embodiment of the present application provides a data receiving method, which is applied to a process in which a first device communicates with a second device, where the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle. The method may include the following process: when the first device has data to transmit, if all data transmission cannot be completed in one transmission cycle, the first device may perform data transmission in consecutive multiple transmission cycles.
对于第二设备而言,为了能够尽快的接收到第一设备发送的数据,第二设备可以对所有的传输周期进行监听。并且,为了节省设备的功耗,第二设备在对当前传输周期进行监听时,可以在当前传输周期的接收时机(如RX)中先接收数据包的Header部分,并根据Header部分中长度字段的取值,来确定该接收时机中是否有数据传输。其中,长度字段可以用于指示当前接收时机中是否有数据传输。当长度字段的取值不为0时,第二设备可以确定当前接收时机中有数据传输,此时可以在当前接收时机中接收数据包的数据部分。当长度字段的取值为0时,第二设备可以确定当前接收时机中没有数据传输。第二设备还可以根据头部分中MD字段的取值,确定是否还有下一个数据要传输,如果Header部分中MD字段的取值为0,则第二设备可以结束当前连接事件,并进入休眠状态。如果Header部分中的MD字段的取值为1,第二设备可以继续监听所述当前传输周期,直到接收的数据包的头部分中MD字段的取值为0。在本申请一些实施例中,若第二设备在当前传输周期的接收时机中未接收到任何报文,第二设备可进入休眠状态,第二设备未接收到任何报文,具体可以是第二设备没有监听到任何蓝牙信号。For the second device, in order to receive the data sent by the first device as soon as possible, the second device can monitor all transmission periods. Moreover, in order to save power consumption of the device, when the second device monitors the current transmission period, the second device may first receive the Header portion of the data packet in the receiving occasion (such as RX) of the current transmission period, and according to the length field in the Header portion. The value is used to determine if there is data transmission in the receiving occasion. The length field can be used to indicate whether there is data transmission in the current receiving occasion. When the value of the length field is not 0, the second device may determine that there is data transmission in the current receiving occasion, and at this time, the data portion of the data packet may be received at the current receiving occasion. When the value of the length field is 0, the second device may determine that there is no data transmission in the current receiving occasion. The second device may further determine, according to the value of the MD field in the header part, whether there is still another data to be transmitted. If the value of the MD field in the Header part is 0, the second device may end the current connection event and enter the sleep state. status. If the value of the MD field in the Header part is 1, the second device may continue to listen to the current transmission period until the value of the MD field in the header portion of the received data packet is zero. In some embodiments of the present application, if the second device does not receive any packet in the receiving timing of the current transmission period, the second device may enter a dormant state, and the second device does not receive any packet, specifically, the second device. The device does not hear any Bluetooth signals.
在一种可能的实现方式中,上述接收时机可以为当前传输周期中的第一个接收时机。In a possible implementation manner, the foregoing receiving occasion may be the first receiving occasion in the current transmission period.
举例来说,以第一设备与第二设备之间采用蓝牙协议进行数据传输为例。如图11所示(图11是从接收设备的角度示出的传输数据的时序示意图),假设第一设备与第二设备协商的初始配置中interval=60ms,Latency=4,那么按照现有蓝牙协议的规定,第二设备可以不对间隔2对应的连接事件~间隔5对应的连接事件进行监听。而在本申请实施例中,为了能够尽快的完成数据传输,第二设备可以为对间隔2对应的连接事件2、间隔3对应的连接事件3、间隔4对应的连接事件4以及间隔5对应的连接事件5都进行监听。For example, the data transmission between the first device and the second device using the Bluetooth protocol is taken as an example. As shown in FIG. 11 (FIG. 11 is a timing diagram of transmission data shown from the perspective of the receiving device), assuming that the initial configuration negotiated by the first device with the second device is interval=60 ms, Latency=4, then according to the existing Bluetooth. According to the protocol, the second device may not monitor the connection event corresponding to the connection event corresponding to the interval 2 to the interval 5. In the embodiment of the present application, in order to complete the data transmission as soon as possible, the second device may be the connection event corresponding to the interval 2, the connection event 3 corresponding to the interval 3, the connection event 4 corresponding to the interval 4, and the interval 5 Connection event 5 is listening.
以第二设备对间隔2对应的连接事件2进行监听为例。第二设备从间隔2对应的连接事件2的锚点开始,对第一个RX进行监听时,可以在第一个RX中接收数据包的Header部分,并可以根据第一个RX中接收到的数据包的Header部分中长度字段的取值确定第一个RX中是否有数据传输。若第二设备确定出第一个RX中接收到的 数据包的Header部分中长度字段的不为0(图11中未示出),此时,第二设备可以确定第一个RX中有数据传输,并可以接收第一个RX中传输的数据。另外,第二设备可以根据第一个RX中接收到的数据包的Header部分中MD字段的取值,确定连接事件2中是否还有下一个数据传输,当确定出有下一个数据传输时,第二设备可以对第二个RX进行监听,直到接收的数据包的头部分中MD字段的取值为0。当确定出没有下一个数据传输时,第二设备可以在第一个RX中的数据接收完成后进入休眠状态。当然,在另一些实施例中,第二设备也可以不根据第一个RX中接收到的数据包的Header部分中MD字段的取值来确定第二个RX中是否有数据传输,而是对第二个RX进行监听,并在对第二个RX进行监听时,根据第二个RX中接收数据包的Header部分中长度字段的取值来确定第二个RX中是否有数据传输。Taking the second device to listen to the connection event 2 corresponding to the interval 2 as an example. The second device starts from the anchor point of the connection event 2 corresponding to the interval 2, and when the first RX is monitored, the Header portion of the data packet can be received in the first RX, and can be received according to the first RX. The value of the length field in the header portion of the packet determines whether there is data transmission in the first RX. If the second device determines that the length field in the header portion of the data packet received in the first RX is not 0 (not shown in FIG. 11), the second device may determine that there is data in the first RX. Transmit and receive data transmitted in the first RX. In addition, the second device may determine, according to the value of the MD field in the Header part of the data packet received in the first RX, whether there is another data transmission in the connection event 2, when it is determined that there is a next data transmission, The second device can listen to the second RX until the value of the MD field in the header portion of the received data packet is zero. When it is determined that there is no next data transmission, the second device can enter a sleep state after the data reception in the first RX is completed. Of course, in other embodiments, the second device may also determine whether there is data transmission in the second RX according to the value of the MD field in the Header part of the data packet received in the first RX, but The second RX listens, and when listening to the second RX, determines whether there is data transmission in the second RX according to the value of the length field in the Header portion of the received packet in the second RX.
若第二设备确定出第一个RX中接收到的数据包的Header部分中长度字段的取值为0,此时,第二设备可以确定第一个RX中没有数据传输。并且,第二设备可以在确定第一个RX中接收到的数据包的Header部分中MD字段的取值为0时,关闭当前连接事件,并进入休眠状态(如图11中所示)。当第一个RX中接收到的数据包的Header部分中MD字段的取值为1时,第二设备可以继续对第二个RX进行监听,直到接收的数据包的头部分中MD字段的取值为0。If the second device determines that the value of the length field in the header portion of the data packet received in the first RX is 0, the second device may determine that there is no data transmission in the first RX. Moreover, the second device may close the current connection event and enter a sleep state (as shown in FIG. 11) when determining that the value of the MD field in the header portion of the data packet received in the first RX is 0. When the value of the MD field in the header portion of the received packet in the first RX is 1, the second device may continue to listen to the second RX until the MD field in the header portion of the received packet is taken. The value is 0.
需要说明的是,对于根据配置的相关参数,如在蓝牙协议中的interval和Latency确定出的需要监听的传输周期,例如图11中所示的间隔1,可以采用上述方法确定传输周期中的接收时机是否有数据传输,也可以采用现有蓝牙协议中的方法确定接收时机中是否有数据传输,本申请实施例对此不做限制。It should be noted that, for the relevant parameters according to the configuration, such as the transmission period determined by the interval and the Latency in the Bluetooth protocol, such as the interval 1 shown in FIG. 11, the above method may be used to determine the reception in the transmission period. Whether there is data transmission at the timing or not, the method in the existing Bluetooth protocol can also be used to determine whether there is data transmission in the receiving occasion, which is not limited in this embodiment of the present application.
本申请另一实施例还提供另一种数据接收方法,应用于第一设备与第二设备通信的过程中,其中,第一设备和第二设备在一个传输周期中可以进行多次收发。在该方法中,第二设备可以根据当前传输周期中是否有数据传输,来确定是否对当前传输周期的下一个传输周期进行监听。例如,当前传输周期中有数据传输,第二设备便会对当前传输周期的下一个传输周期进行监听,而当前传输周期中没有数据传输时,第二设备便可以认为当前传输周期的下一个传输周期中也没有数据传输,其可以不对当前传输周期的下一个传输周期进行监听,而是根据配置的相关参数,如在蓝牙协议中的interval和Latency这两个参数,确定出的下一个需要监听的传输周期,进而对确定出的传输周期进行监听。举例来说,如图12所示(图12是从接收设备的角度示出的传输数据的时序示意图),以第一设备与第二设备之间采用蓝牙协议进行数据传输为例。第二设备在间隔1对应的连接事件1进行监听时,确定出间隔1对应的连接事件1中有数据传输。第二设备可以根据间隔1对应的连接事件1中有数据传输,预测出间隔2对应的连接事件2中也可能有数据传输,此时第二设备便对间隔2对应的连接事件2进行监听。这样,在第一设备在间隔2对应的连接事件2中进行了数据传输时,第二设备便能及时接收到第一设备传输的数据,达到了将数据快速传输到对端的目的。Another embodiment of the present application further provides another data receiving method, which is applied to a process in which a first device communicates with a second device, where the first device and the second device can perform multiple times of transmitting and receiving in one transmission cycle. In the method, the second device may determine whether to monitor the next transmission period of the current transmission period according to whether there is data transmission in the current transmission period. For example, if there is data transmission in the current transmission cycle, the second device will listen to the next transmission cycle of the current transmission cycle, and when there is no data transmission in the current transmission cycle, the second device can consider the next transmission of the current transmission cycle. There is no data transmission in the cycle, which can not monitor the next transmission cycle of the current transmission cycle, but according to the relevant parameters of the configuration, such as the interval and the Latency parameters in the Bluetooth protocol, the next need to be monitored. The transmission period, in turn, monitors the determined transmission period. For example, as shown in FIG. 12 (FIG. 12 is a timing diagram of transmission data shown from the perspective of a receiving device), data transmission using a Bluetooth protocol between the first device and the second device is taken as an example. When the second device monitors the connection event 1 corresponding to the interval 1, it is determined that there is data transmission in the connection event 1 corresponding to the interval 1. The second device may have data transmission according to the connection event 1 corresponding to the interval 1. It is predicted that the connection event 2 corresponding to the interval 2 may also have data transmission. At this time, the second device monitors the connection event 2 corresponding to the interval 2. In this way, when the first device performs data transmission in the connection event 2 corresponding to the interval 2, the second device can receive the data transmitted by the first device in time, and achieve the purpose of quickly transmitting the data to the opposite end.
需要说明的是,在当前传输周期中有数据传输,在具体实现中可以是指Header部分的长度字段取值不为0的数据包的传输,即第二设备只有接收到数据长度不为0的数据包时,才进行会对当前传输周期的下一个传输周期进行监听;或者,还可以是第二设备只要在当前传输周期中接收到数据包(包括数据包的Header部分的长度字段的 取值为0或不为0),第二设备就会对当前传输周期的下一个传输周期进行监听,实际实现中可以根据需求进行选择,本申请实施例在此不做具体限定。例如,具体实现可以是,在间隔1对应的连接事件1中的第一个RX处有数据传输,就可以认为在当前传输周期中有数据传输,并且确定需要对当前传输周期的下一个传输周期进行监听;或者,在间隔1对应的连接事件1中的最后一个RX处有数据传输,就认为在当前传输周期中有数据传输,并且确定需要对当前传输周期的下一个传输周期进行监听;或者,在间隔1对应的连接事件1中的任何RX处有数据传输,就认为在当前传输周期中有数据传输,并且确定需要对当前传输周期的下一个传输周期进行监听,这些都属于具体实现方面的选择,本申请实施例在此不做限定。It should be noted that there is data transmission in the current transmission period, and in the specific implementation, it may refer to the transmission of the data packet whose length field of the header part is not 0, that is, the second device only receives the data length not 0. When the data packet is received, the next transmission period of the current transmission period is monitored; or, the second device may receive the data packet in the current transmission period (including the value of the length field of the header portion of the data packet). If the value is 0 or not 0, the second device will listen to the next transmission period of the current transmission period, and the actual implementation may be selected according to the requirements, which is not specifically limited in this embodiment. For example, the specific implementation may be that there is data transmission at the first RX in the connection event 1 corresponding to the interval 1, and it can be considered that there is data transmission in the current transmission period, and it is determined that the next transmission period for the current transmission period is required. Listening; or, there is data transmission at the last RX in connection event 1 corresponding to interval 1, it is considered that there is data transmission in the current transmission period, and it is determined that the next transmission period of the current transmission period needs to be monitored; or If there is data transmission at any RX in the connection event 1 corresponding to the interval 1, it is considered that there is data transmission in the current transmission period, and it is determined that the next transmission period of the current transmission period needs to be monitored, which are specific implementation aspects. The embodiment of the present application is not limited herein.
需要说明的是,在本申请实施例中,上述方法实施例也可以相互结合,以达到将数据快速传输到对端的目的。例如,可以将图9所示的实施例与图12对应的实施例结合起来,在一个传输周期中第一设备能够向第二设备发送的数据包的个数确定时,第二设备只有在确定当前传输周期的最后一个接收时机(如RX)上面有数据传输时,才对当前传输周期的下一个传输周期进行监听,而不再根据数据包包括的MD来判断是否需要对当前传输周期的下一个传输周期进行监听。It should be noted that, in the embodiment of the present application, the foregoing method embodiments may also be combined with each other to achieve the purpose of quickly transmitting data to the peer end. For example, the embodiment shown in FIG. 9 can be combined with the embodiment corresponding to FIG. 12, and when the number of data packets that the first device can send to the second device is determined in one transmission cycle, the second device is only determined. When there is data transmission on the last receiving occasion of the current transmission period (such as RX), the next transmission period of the current transmission period is monitored, and the MD included in the data packet is no longer judged whether it needs to be under the current transmission period. A transmission cycle is monitored.
可以理解的是,上述第一设备、第二设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to implement the above functions, the first device and the second device include corresponding hardware structures and/or software modules for performing respective functions. Those skilled in the art will readily appreciate that the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
本申请实施例还提供一种实现上述各方法实施例的第一设备以及第二设备,具体的,可以对该第一设备以及第二设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application further provides a first device and a second device that implement the foregoing method embodiments. Specifically, the first device and the second device may be divided into functional modules. For example, each function may be divided into Functional modules can also integrate two or more functions into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图13示出了上述实施例中所涉及的第一设备1300的一种可能的结构示意图,该第一设备1300可以包括:发送单元1301。FIG. 13 is a schematic diagram showing a possible structure of the first device 1300 involved in the foregoing embodiment, where the first device 1300 may include: a sending unit 1301.
发送单元1301,用于支持第一设备1300执行上述方法实施例中的S501、S505、S901、S904和/或用于本文所描述的技术的其它过程。The sending unit 1301 is configured to support the first device 1300 to perform S501, S505, S901, S904 and/or other processes for the techniques described herein in the foregoing method embodiments.
在本申请实施例中,进一步的,如图13所示,该第一设备1300还可以包括:接收单元1302、确定单元1303。In the embodiment of the present application, further, as shown in FIG. 13 , the first device 1300 may further include: a receiving unit 1302 and a determining unit 1303.
其中,接收单元1302,用于支持第一设备1300执行上述方法实施例中的接收操作和/或用于本文所描述的技术的其它过程。The receiving unit 1302 is configured to support the first device 1300 to perform the receiving operation in the foregoing method embodiments and/or other processes for the techniques described herein.
确定单元1303,用于支持电子设备执行上述方法实施例中的确定操作和/或用于本文所描述的技术的其它过程。The determining unit 1303 is configured to support the electronic device to perform the determining operation in the above method embodiment and/or other processes for the techniques described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
当然,第一设备1300包括但不限于上述所列举的单元模块,例如,第一设备1300还可以包括用于显示内容的显示单元等。并且,上述功能单元的具体所能够实现的功能也包括但不限于上述实例所述的方法步骤对应的功能,第一设备1300的其他单元的详细描述可以参考其所对应方法步骤的详细描述,本申请实施例这里不予赘述。Of course, the first device 1300 includes, but is not limited to, the unit modules enumerated above. For example, the first device 1300 may further include a display unit or the like for displaying content. The specific functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples. For detailed descriptions of other units of the first device 1300, reference may be made to the detailed description of the corresponding method steps. The application examples are not described herein.
在采用集成的单元的情况下,图14示出了上述实施例中所涉及的第一设备1400的一种可能的结构示意图。该第一设备1400包括:处理模块1401、存储模块1402和通信模块1403。处理模块1401用于对第一设备1400的动作进行控制管理。存储模块1402,用于保存第一设备1400的程序代码和数据。通信模块1403用于支持第一设备1400与其他网络实体的通信,以实现第一设备的数据交互,Internet访问等功能。In the case of employing an integrated unit, FIG. 14 shows a possible structural diagram of the first device 1400 involved in the above embodiment. The first device 1400 includes a processing module 1401, a storage module 1402, and a communication module 1403. The processing module 1401 is configured to control and manage the actions of the first device 1400. The storage module 1402 is configured to save program codes and data of the first device 1400. The communication module 1403 is configured to support communication between the first device 1400 and other network entities to implement data interaction, Internet access, and the like of the first device.
其中,处理模块1401可以是处理器或控制器。通信模块1403可以是收发器、RF电路或通信接口等。存储模块1402可以是存储器。第一设备1400还可以包括显示模块和输入模块,显示模块可以是屏幕或显示器。输入模块可以是触摸屏,语音输入装置,或指纹传感器等。The processing module 1401 can be a processor or a controller. The communication module 1403 may be a transceiver, an RF circuit, a communication interface, or the like. The storage module 1402 can be a memory. The first device 1400 can also include a display module and an input module, which can be a screen or a display. The input module can be a touch screen, a voice input device, or a fingerprint sensor.
当处理模块1401为处理器,通信模块1403为RF电路,存储模块1402为存储器,显示模块为触摸屏时,本申请实施例所提供的第一设备1400可以为图4所示的手机。其中,上述通信模块1403不仅可以包括RF电路,还可以包括WI-FI模块、NFC模块和蓝牙模块。RF电路、NFC模块、WI-FI模块和蓝牙模块等通信模块可以统称为通信接口。其中,上述处理器、RF电路、触摸屏和存储器可以通过总线耦合在一起。When the processing module 1401 is a processor, the communication module 1403 is an RF circuit, the storage module 1402 is a memory, and the display module is a touch screen, the first device 1400 provided by the embodiment of the present application may be the mobile phone shown in FIG. 4 . The communication module 1403 may include not only an RF circuit but also a WI-FI module, an NFC module, and a Bluetooth module. Communication modules such as RF circuits, NFC modules, WI-FI modules, and Bluetooth modules can be collectively referred to as communication interfaces. Wherein, the above processor, RF circuit, touch screen and memory can be coupled together by a bus.
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中所涉及的第二设备1500的一种可能的结构示意图,该第二设备1500可以包括:接收单元1501和监听单元1502。FIG. 15 is a schematic diagram showing a possible structure of the second device 1500 involved in the foregoing embodiment. The second device 1500 may include: a receiving unit 1501 and a monitoring device. Unit 1502.
接收单元1501,用于支持第二设备1500执行上述方法实施例中的S502、S902和/或用于本文所描述的技术的其它过程。The receiving unit 1501 is configured to support the second device 1500 to perform S502, S902, and/or other processes for the techniques described herein in the foregoing method embodiments.
监听单元1502,用于支持第二设备1500执行上述方法实施例中的S503、S504中监听第二传输周期的操作、S903和/或用于本文所描述的技术的其它过程。The monitoring unit 1502 is configured to support the second device 1500 to perform the operations of listening to the second transmission period in S503, S504 in the foregoing method embodiment, S903, and/or other processes for the techniques described herein.
在本申请实施例中,进一步的,如图15所示,该第二设备1500还可以包括:确定单元1503、发送单元1504、控制单元1505。In the embodiment of the present application, further, as shown in FIG. 15, the second device 1500 may further include: a determining unit 1503, a sending unit 1504, and a control unit 1505.
其中,确定单元1503,用于支持第二设备1500执行上述方法实施例中的、S504中确定第二传输周期的操作和/或用于本文所描述的技术的其它过程。The determining unit 1503 is configured to support the second device 1500 to perform the operations of determining the second transmission period in S504 and/or other processes for the techniques described herein in the foregoing method embodiments.
发送单元1504,用于支持第二设备1500执行上述方法实施例中的S506、S905和/或用于本文所描述的技术的其它过程。The sending unit 1504 is configured to support the second device 1500 to perform S506, S905, and/or other processes for the techniques described herein in the foregoing method embodiments.
控制单元1505,用于支持第二设备1500执行上述方法实施例中的控制操作和/或用于本文所描述的技术的其它过程。The control unit 1505 is configured to support the second device 1500 to perform the control operations in the above method embodiments and/or other processes for the techniques described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
当然,第二设备1500包括但不限于上述所列举的单元模块,例如,第二设备1500还可以包括用于显示内容的显示单元等。并且,上述功能单元的具体所能够实现的功 能也包括但不限于上述实例所述的方法步骤对应的功能,第二设备1500的其他单元的详细描述可以参考其所对应方法步骤的详细描述,本申请实施例这里不予赘述。Of course, the second device 1500 includes, but is not limited to, the unit modules enumerated above. For example, the second device 1500 may further include a display unit or the like for displaying content. The specific functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples. For detailed descriptions of other units of the second device 1500, reference may be made to the detailed description of the corresponding method steps. The application examples are not described herein.
在采用集成的单元的情况下,图16示出了上述实施例中所涉及的第二设备1600的一种可能的结构示意图。该第二设备1600包括:处理模块1601、存储模块1602和通信模块1603。处理模块1601用于对第二设备1600的动作进行控制管理。存储模块1602,用于保存第二设备1600的程序代码和数据。通信模块1603用于支持第二设备1600与其他网络实体的通信,以实现第二设备的数据交互,Internet访问等功能。In the case of employing an integrated unit, FIG. 16 shows a possible structural diagram of the second device 1600 involved in the above embodiment. The second device 1600 includes a processing module 1601, a storage module 1602, and a communication module 1603. The processing module 1601 is configured to control and manage the actions of the second device 1600. The storage module 1602 is configured to save program codes and data of the second device 1600. The communication module 1603 is configured to support communication between the second device 1600 and other network entities to implement data interaction, Internet access, and the like of the second device.
其中,处理模块1601可以是处理器或控制器。通信模块1603可以是收发器、RF电路或通信接口等。存储模块1602可以是存储器。第一设备1600还可以包括显示模块和输入模块,显示模块可以是屏幕或显示器。输入模块可以是触摸屏,语音输入装置,或指纹传感器等。The processing module 1601 can be a processor or a controller. The communication module 1603 can be a transceiver, an RF circuit or a communication interface, or the like. The storage module 1602 can be a memory. The first device 1600 can also include a display module and an input module, which can be a screen or a display. The input module can be a touch screen, a voice input device, or a fingerprint sensor.
其中,上述通信模块1603不仅可以包括RF电路,还可以包括WI-FI模块、NFC模块和蓝牙模块。RF电路、NFC模块、WI-FI模块和蓝牙模块等通信模块可以统称为通信接口。其中,上述处理器、RF电路、触摸屏和存储器可以通过总线耦合在一起。The communication module 1603 may include not only an RF circuit but also a WI-FI module, an NFC module, and a Bluetooth module. Communication modules such as RF circuits, NFC modules, WI-FI modules, and Bluetooth modules can be collectively referred to as communication interfaces. Wherein, the above processor, RF circuit, touch screen and memory can be coupled together by a bus.
本申请另外一些实施例还提供一种计算机存储介质,其包括计算机指令,当该计算机指令在第一设备上运行时,使得该第一设备执行如图5、图8、图9或图10中任一附图中的相关方法步骤实现上述实施例中的数据传输方法。Further embodiments of the present application also provide a computer storage medium comprising computer instructions that, when executed on a first device, cause the first device to perform as in Figure 5, Figure 8, Figure 9, or Figure 10. The associated method steps in any of the figures implement the data transfer method of the above embodiments.
本申请另外一些实施例还提供另一种计算机存储介质,其包括计算机指令,当该计算机指令在第二设备上运行时,使得该第二设备执行如图5、图8、图9或图10中任一附图中的相关方法步骤实现上述实施例中的数据传输方法。Still other embodiments of the present application provide another computer storage medium comprising computer instructions that, when executed on a second device, cause the second device to perform as shown in FIG. 5, FIG. 8, FIG. 9, or FIG. The related method steps in any of the figures implement the data transmission method in the above embodiments.
本申请另外一些实施例提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如图5、图8、图9或图10中任一附图中的相关方法步骤实现上述实施例中的数据传输方法。Further embodiments of the present application provide a computer program product, when the computer program product is run on a computer, causing the computer to perform the relevant method steps in any of Figures 5, 8, 9, or 10. The data transmission method in the above embodiment.
本申请另外一些实施例提供一种芯片系统,该芯片系统可以包括:一个或多个处理器,存储器,通信总线;上述存储器用于存储一个或多个计算机指令,上述一个或多个处理器与上述存储器通过上述通信总线连接,当上述芯片系统运行时,上述一个或多个处理器执行上述存储器存储的上述一个或多个计算机指令,以使上述芯片系统执行如图5、图8、图9或图10中任一附图中的相关方法步骤实现上述实施例中的数据传输方法。该芯片系统可以是一个集成电路IC,也可以是一个片上系统SOC。其中集成电路可以是通用集成电路,也可以是一个现场可编程门阵列FPGA,也可以是一个专用集成电路ASIC。Further embodiments of the present application provide a chip system, which may include: one or more processors, a memory, a communication bus; the memory is used to store one or more computer instructions, and the one or more processors and The memory is connected by the communication bus, and when the chip system is in operation, the one or more processors execute the one or more computer instructions stored in the memory, so that the chip system executes as shown in FIG. 5, FIG. 8, FIG. Or the related method steps in any of the figures of FIG. 10 implement the data transmission method in the above embodiment. The chip system can be an integrated circuit IC or an on-chip system SOC. The integrated circuit may be a general-purpose integrated circuit, a field programmable gate array FPGA, or an application specific integrated circuit ASIC.
其中,本申请实施例提供的第一设备、第二设备、计算机存储介质、计算机程序产品或芯片系统均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The first device, the second device, the computer storage medium, the computer program product, or the chip system provided by the embodiments of the present application are all used to perform the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to. The beneficial effects in the corresponding methods provided above are not described herein again.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is illustrated. In practical applications, the above functions can be allocated according to needs. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the embodiments of the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the embodiments 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 integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. The medium includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the embodiments of the present application, but the scope of protection of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered. Within the scope of protection of the application examples. Therefore, the scope of protection of the embodiments of the present application is subject to the scope of protection of the claims.

Claims (34)

  1. 一种数据传输方法,其特征在于,所述方法应用于第一设备,所述第一设备在一个传输周期中能够向第二设备发送多个数据包,所述方法包括:A data transmission method is characterized in that the method is applied to a first device, and the first device is capable of transmitting a plurality of data packets to a second device in one transmission cycle, the method comprising:
    所述第一设备在第一传输周期中向所述第二设备发送数据包,所述数据包中包括指示标志,所述指示标志用于指示所述第二设备是否需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听。The first device sends a data packet to the second device in a first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be paired with the first The transmission period is monitored for at least one transmission period that is continuous in time.
  2. 根据权利要求1所述的方法,其特征在于,在所述第一设备在第一传输周期中向所述第二设备发送数据包之前,还包括:The method according to claim 1, wherein before the sending, by the first device, the data packet to the second device in the first transmission period, the method further includes:
    所述第一设备向所述第二设备发送第一消息,所述第一消息用于指示所述第一设备支持第一特性,所述第一特性为支持在数据包中携带所述指示标志以指示是否需要对传输周期进行监听的特性;The first device sends a first message to the second device, where the first message is used to indicate that the first device supports the first feature, and the first feature is to support carrying the indication flag in the data packet. A feature that indicates whether a transmission cycle needs to be monitored;
    所述第一设备接收来自所述第二设备的第二消息,所述第二消息用于指示所述第二设备支持所述第一特性。The first device receives a second message from the second device, and the second message is used to indicate that the second device supports the first feature.
  3. 根据权利要求1或2所述的方法,其特征在于,当所述第一设备采用蓝牙协议与所述第二设备进行通信时,所述方法还包括:The method according to claim 1 or 2, wherein when the first device communicates with the second device by using a Bluetooth protocol, the method further includes:
    所述第一设备确定从设备潜伏期connection Slave Latency不为0。The first device determines that the slave device latency connection Slave Latency is not zero.
  4. 一种数据传输方法,其特征在于,所述方法应用于第二设备,所述第二设备在一个传输周期中能够接收第一设备发送的多个数据包,所述方法包括:A data transmission method, wherein the method is applied to a second device, and the second device is capable of receiving a plurality of data packets sent by the first device in a transmission cycle, where the method includes:
    所述第二设备在第一传输周期中接收来自所述第一设备的数据包,所述数据包中包括指示标志,所述指示标志用于指示所述第二设备是否需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听;Receiving, by the second device, a data packet from the first device in a first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to A transmission period is monitored by at least one transmission period that is continuous in time;
    当所述指示标志用于指示所述第二设备需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听时,所述第二设备监听与所述第一传输周期在时间上连续的至少一个传输周期。When the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is temporally consecutive with the first transmission period, the second device monitors and the first transmission period at time At least one transmission cycle in succession.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    当所述指示标志用于指示所述第二设备不需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听时,所述第二设备确定第二传输周期,并监听所述第二传输周期。When the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is temporally consecutive with the first transmission period, the second device determines the second transmission period, and monitors the The second transmission period is described.
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, wherein the method further comprises:
    所述第二设备接收来自所述第一设备的第一消息,所述第一消息用于指示所述第一设备支持第一特性,所述第一特性为支持在数据包中携带所述指示标志以指示是否需要对传输周期进行监听的特性;The second device receives a first message from the first device, where the first message is used to indicate that the first device supports a first feature, and the first feature is to support carrying the indication in a data packet. A flag to indicate whether it is necessary to monitor the transmission period;
    所述第二设备向所述第一设备发送第二消息,所述第二消息用于指示所述第二设备支持所述第一特性。The second device sends a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  7. 一种数据传输方法,其特征在于,所述方法应用于第一设备,所述第一设备在一个传输周期中能够向第二设备发送多个数据包,所述方法包括:A data transmission method is characterized in that the method is applied to a first device, and the first device is capable of transmitting a plurality of data packets to a second device in one transmission cycle, the method comprising:
    在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,所述第一设备在第一传输周期中向所述第二设备发送第一数据包;When the number of data packets that the first device can send to the second device is determined in a transmission period, the first device sends the first data packet to the second device in the first transmission period;
    其中,在所述第一传输周期中在所述第一数据包后没有数据传输;所述第一数据 包包括更多数据MD,所述MD用于指示所述第一设备在第二传输周期中会有数据传输;所述第二传输周期与所述第一传输周期在时间上连续。The data packet has no data transmission after the first data packet in the first transmission period; the first data packet includes more data MD, and the MD is used to indicate that the first device is in the second transmission period. There is a data transmission; the second transmission period is continuous with the first transmission period in time.
  8. 根据权利要求7所述的方法,其特征在于,在所述在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,所述第一设备在第一传输周期中向所述第二设备发送第一数据包之前,还包括:The method according to claim 7, wherein when the number of data packets that the first device can send to the second device is determined in one transmission period, the first device is in the first Before sending the first data packet to the second device in a transmission period, the method further includes:
    所述第一设备向所述第二设备发送第一消息,所述第一消息用于与所述第二设备协商在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数;The first device sends a first message to the second device, where the first message is used to negotiate, with the second device, data that the first device can send to the second device in one transmission period. The number of packages;
    所述第一设备接收来自所述第二设备的第二消息,所述第二消息用于确认在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数。The first device receives a second message from the second device, and the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  9. 一种数据传输方法,其特征在于,所述方法应用于第二设备,所述第二设备在一个传输周期中能够接收第一设备发送的多个数据包,所述方法包括:A data transmission method, wherein the method is applied to a second device, and the second device is capable of receiving a plurality of data packets sent by the first device in a transmission cycle, where the method includes:
    在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,所述第二设备在第一传输周期接收来自所述第一设备的第一数据包;在所述第一传输周期中在所述第一数据包后没有数据传输;所述第一数据包包括更多数据MD,所述MD用于指示所述第一设备在第二传输周期中会有数据传输;所述第二传输周期与所述第一传输周期在时间上连续;When the number of data packets that the first device can send to the second device is determined in one transmission period, the second device receives the first data packet from the first device in the first transmission period; No data transmission after the first data packet in the first transmission period; the first data packet includes more data MD, the MD is used to indicate that the first device will be in the second transmission cycle Data transmission; the second transmission period and the first transmission period are continuous in time;
    所述第二设备监听所述第二传输周期。The second device listens to the second transmission period.
  10. 根据权利要求9所述的方法,其特征在于,在所述在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,所述第二设备在第一传输周期接收来自所述第一设备发送第一数据包之前,还包括:The method according to claim 9, wherein when the number of data packets that the first device can send to the second device is determined in one transmission cycle, the second device is in the Before receiving, by the first device, the first data packet is sent by the first device, the method further includes:
    所述第二设备接收来自所述第一设备的第一消息,所述第一消息用于与所述第二设备协商在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数;The second device receives a first message from the first device, where the first message is used to negotiate with the second device that the first device can send to the second device in one transmission cycle. The number of packets;
    所述第二设备向所述第一设备发送第二消息,所述第二消息用于确认在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数。The second device sends a second message to the first device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  11. 一种数据接收方法,其特征在于,所述方法应用于第二设备,所述第二设备在一个传输周期中能够接收多个数据包,所述方法包括:A data receiving method, wherein the method is applied to a second device, and the second device is capable of receiving a plurality of data packets in one transmission cycle, the method comprising:
    所述第二设备对所有的传输周期进行监听;The second device monitors all transmission periods;
    所述第二设备在当前监听的传输周期的接收时机中接收数据包的头Header部分;Receiving, by the second device, a header header portion of the data packet in a receiving occasion of a currently monitored transmission period;
    当所述头部分中长度字段的取值不为0时,所述第二设备确定所述接收时机中有数据传输;且当所述头部分中的更多数据MD字段的取值为0时,所述第二设备在所述接收时机中完成数据接收后进入休眠状态,当所述头部分中的所述MD字段的取值为1时,所述第二设备继续监听所述当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;When the value of the length field in the header portion is not 0, the second device determines that there is data transmission in the receiving occasion; and when the value of the more data MD field in the header portion is 0 The second device enters a dormant state after receiving the data in the receiving occasion, and when the value of the MD field in the header portion is 1, the second device continues to listen to the currently monitored The transmission period until the value of the MD field in the header portion of the received data packet is 0;
    当所述头部分中的长度字段的取值为0,且所述头部分中的所述MD字段的取值为0时,所述第二设备进入休眠状态;当所述头部分中的所述MD字段的取值为1时,所述第二设备继续监听所述当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;When the value of the length field in the header portion is 0, and the value of the MD field in the header portion is 0, the second device enters a sleep state; when the header portion When the value of the MD field is 1, the second device continues to listen to the currently monitored transmission period until the value of the MD field in the header portion of the received data packet is 0;
    当在所述接收时机中未接收到数据包时,所述第二设备进入休眠状态。When the data packet is not received in the receiving opportunity, the second device enters a sleep state.
  12. 根据权利要求11所述的方法,其特征在于,所述接收时机为所述当前监听的 传输周期中的第一个接收时机。The method of claim 11 wherein said receiving opportunity is a first one of said currently listening transmission periods.
  13. 一种数据接收方法,其特征在于,所述方法应用于第二设备,所述第二设备在一个传输周期中能够接收多个数据包,所述方法包括:A data receiving method, wherein the method is applied to a second device, and the second device is capable of receiving a plurality of data packets in one transmission cycle, the method comprising:
    所述第二设备根据第一传输周期中是否有数据传输,确定是否需要对第二传输周期进行监听;所述第一传输周期与所述第二传输周期在时间上连续;Determining, by the second device, whether to monitor the second transmission period according to whether there is data transmission in the first transmission period; the first transmission period and the second transmission period are consecutive in time;
    其中,当所述第一传输周期中有数据传输时,所述第二设备确定需要对所述第二传输周期进行监听;当所述第一传输周期中没有数据传输时,所述第二设备确定不需要对所述第二传输周期进行监听。When the data transmission is performed in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device It is determined that the second transmission period does not need to be monitored.
  14. 一种第一设备,其特征在于,所述第一设备在一个传输周期中能够向第二设备发送多个数据包,所述第一设备包括:A first device, wherein the first device is capable of transmitting a plurality of data packets to a second device in a transmission period, where the first device includes:
    发送单元,用于在第一传输周期中向所述第二设备发送数据包,所述数据包中包括指示标志,所述指示标志用于指示所述第二设备是否需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听。a sending unit, configured to send a data packet to the second device in a first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be paired with the first The transmission period is monitored for at least one transmission period that is continuous in time.
  15. 根据权利要求14所述的第一设备,其特征在于,The first device according to claim 14, wherein
    所述发送单元,还用于向所述第二设备发送第一消息,所述第一消息用于指示所述第一设备支持第一特性,所述第一特性为支持在数据包中携带所述指示标志以指示是否需要对传输周期进行监听的特性;The sending unit is further configured to send a first message to the second device, where the first message is used to indicate that the first device supports a first feature, and the first feature is to support carrying in a data packet. Denoting a flag to indicate whether a transmission period needs to be monitored;
    所述第一设备还包括:The first device further includes:
    接收单元,用于接收来自所述第二设备的第二消息,所述第二消息用于指示所述第二设备支持所述第一特性。a receiving unit, configured to receive a second message from the second device, where the second message is used to indicate that the second device supports the first feature.
  16. 根据权利要求14或15所述的第一设备,其特征在于,当所述第一设备采用蓝牙协议与所述第二设备进行通信时,所述第一设备还包括:The first device according to claim 14 or 15, wherein when the first device communicates with the second device by using a Bluetooth protocol, the first device further includes:
    确定单元,用于确定从设备潜伏期connection Slave Latency不为0。A determining unit for determining that the slave latency connection Slave Latency is not zero.
  17. 一种第二设备,其特征在于,所述第二设备在一个传输周期中能够接收第一设备发送的多个数据包,所述第二设备包括:A second device, wherein the second device is capable of receiving a plurality of data packets sent by the first device in a transmission period, where the second device includes:
    接收单元,用于在第一传输周期中接收来自所述第一设备的数据包,所述数据包中包括指示标志,所述指示标志用于指示所述第二设备是否需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听;a receiving unit, configured to receive a data packet from the first device in a first transmission period, where the data packet includes an indication flag, where the indication flag is used to indicate whether the second device needs to be A transmission period is monitored by at least one transmission period that is continuous in time;
    监听单元,用于当所述指示标志用于指示所述第二设备需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听时,监听与所述第一传输周期在时间上连续的至少一个传输周期。a monitoring unit, configured to: when the indication flag is used to indicate that the second device needs to monitor at least one transmission period that is consecutive in time with the first transmission period, the monitoring and the first transmission period are in time At least one transmission cycle in succession.
  18. 根据权利要求17所述的第二设备,其特征在于,所述第二设备还包括:The second device according to claim 17, wherein the second device further comprises:
    确定单元,用于当所述指示标志用于指示所述第二设备不需要对与所述第一传输周期在时间上连续的至少一个传输周期进行监听时,确定第二传输周期;a determining unit, configured to determine a second transmission period when the indication flag is used to indicate that the second device does not need to monitor at least one transmission period that is consecutive in time with the first transmission period;
    所述监听单元,还用于监听所述第二传输周期。The monitoring unit is further configured to monitor the second transmission period.
  19. 根据权利要求17或18所述的第二设备,其特征在于,A second device according to claim 17 or 18, wherein
    所述接收单元,还用于接收来自所述第一设备的第一消息,所述第一消息用于指示所述第一设备支持第一特性,所述第一特性为支持在数据包中携带所述指示标志以指示是否需要对传输周期进行监听的特性;The receiving unit is further configured to receive a first message from the first device, where the first message is used to indicate that the first device supports a first feature, and the first feature is supported to be carried in a data packet. The indication flag is a characteristic indicating whether a transmission period needs to be monitored;
    所述第二设备还包括:The second device further includes:
    发送单元,用于向所述第一设备发送第二消息,所述第二消息用于指示所述第二设备支持所述第一特性。And a sending unit, configured to send a second message to the first device, where the second message is used to indicate that the second device supports the first feature.
  20. 一种第一设备,其特征在于,所述第一设备在一个传输周期中能够向第二设备发送多个数据包,所述第一设备包括:A first device, wherein the first device is capable of transmitting a plurality of data packets to a second device in a transmission period, where the first device includes:
    发送单元,用于在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,在第一传输周期中向所述第二设备发送第一数据包;a sending unit, configured to send the first data packet to the second device in the first transmission period when the number of data packets that the first device can send to the second device is determined in one transmission period;
    其中,在所述第一传输周期中在所述第一数据包后没有数据传输;所述第一数据包包括更多数据MD,所述MD用于指示所述第一设备在第二传输周期中会有数据传输;所述第二传输周期与所述第一传输周期在时间上连续。The data packet has no data transmission after the first data packet in the first transmission period; the first data packet includes more data MD, and the MD is used to indicate that the first device is in the second transmission period. There is a data transmission; the second transmission period is continuous with the first transmission period in time.
  21. 根据权利要求20所述的第一设备,其特征在于,A first device according to claim 20, wherein
    所述发送单元,还用于向所述第二设备发送第一消息,所述第一消息用于与所述第二设备协商在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数;The sending unit is further configured to send, to the second device, a first message, where the first message is used to negotiate with the second device, where the first device can be sent to the second device in one transmission cycle. The number of packets sent;
    所述第一设备还包括:The first device further includes:
    接收单元,用于接收来自所述第二设备的第二消息,所述第二消息用于确认在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数。And a receiving unit, configured to receive a second message from the second device, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  22. 一种第二设备,其特征在于,所述第二设备在一个传输周期中能够接收第一设备发送的多个数据包,所述第二设备包括:A second device, wherein the second device is capable of receiving a plurality of data packets sent by the first device in a transmission period, where the second device includes:
    接收单元,用于在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数确定时,在第一传输周期接收来自所述第一设备的第一数据包;在所述第一传输周期中在所述第一数据包后没有数据传输;所述第一数据包包括更多数据MD,所述MD用于指示所述第一设备在第二传输周期中会有数据传输;所述第二传输周期与所述第一传输周期在时间上连续;a receiving unit, configured to receive a first data packet from the first device in a first transmission period when the number of data packets that the first device can send to the second device is determined in one transmission period; No data transmission after the first data packet in the first transmission period; the first data packet includes more data MD, the MD is used to indicate that the first device will be in the second transmission cycle Data transmission; the second transmission period and the first transmission period are continuous in time;
    监听单元,用于监听所述第二传输周期。And a monitoring unit, configured to monitor the second transmission period.
  23. 根据权利要求22所述的第二设备,其特征在于,A second device according to claim 22, wherein
    所述接收单元,还用于接收来自所述第一设备的第一消息,所述第一消息用于与所述第二设备协商在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数;The receiving unit is further configured to receive a first message from the first device, where the first message is used to negotiate with the second device, where the first device can be in the second The number of packets sent by the device;
    所述第二设备还包括:The second device further includes:
    发送单元,用于向所述第一设备发送第二消息,所述第二消息用于确认在一个传输周期中所述第一设备能够向所述第二设备发送的数据包的个数。And a sending unit, configured to send, to the first device, a second message, where the second message is used to confirm the number of data packets that the first device can send to the second device in one transmission period.
  24. 一种第二设备,其特征在于,所述第二设备在一个传输周期中能够接收多个数据包,所述第二设备包括:A second device, wherein the second device is capable of receiving a plurality of data packets in one transmission cycle, the second device comprising:
    监听单元,用于对所有的传输周期进行监听;a monitoring unit for monitoring all transmission periods;
    接收单元,用于在当前监听的传输周期的接收时机中接收数据包的头Header部分;a receiving unit, configured to receive a header header portion of the data packet in a receiving occasion of a currently monitored transmission period;
    确定单元,用于当所述头部分中长度字段的取值不为0时,确定所述接收时机中有数据传输;且控制单元,用于当所述头部分中的更多数据MD字段的取值为0时,在所述接收时机中完成数据接收后控制所述第二设备进入休眠状态,所述监听单元, 还用于当所述头部分中的所述MD字段的取值为1时,继续监听所述当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;a determining unit, configured to: when the value of the length field in the header portion is not 0, determine that there is data transmission in the receiving occasion; and the control unit is configured to use more data in the header portion of the MD field When the value is 0, the second device is controlled to enter a sleep state after the data reception is completed in the receiving timing, and the monitoring unit is further configured to: when the MD field in the header portion is 1 At the same time, continue to monitor the current listening transmission period until the value of the MD field in the header portion of the received data packet is 0;
    所述控制单元,还用于当所述头部分中的长度字段的取值为0,且所述头部分中的所述MD字段的取值为0时,控制所述第二设备进入休眠状态;所述监听单元,还用于当所述头部分中的所述MD字段的取值为1时,继续监听所述当前监听的传输周期,直到接收的数据包的头部分中MD字段的取值为0;The control unit is further configured to: when the value of the length field in the header portion is 0, and the value of the MD field in the header portion is 0, control the second device to enter a sleep state. The listening unit is further configured to continue to listen to the current listening transmission period when the value of the MD field in the header portion is 1, until the MD field in the header portion of the received data packet is taken The value is 0;
    控制单元,还用于当在所述接收时机中未接收到数据包时,控制所述第二设备进入休眠状态。The control unit is further configured to control the second device to enter a sleep state when the data packet is not received in the receiving opportunity.
  25. 根据权利要求24所述的第二设备,其特征在于,所述接收时机为所述当前监听的传输周期中的第一个接收时机。The second device according to claim 24, wherein said receiving opportunity is a first receiving occasion of said currently listening transmission period.
  26. 一种第二设备,其特征在于,所述第二设备在一个传输周期中能够接收多个数据包,所述第二设备包括:A second device, wherein the second device is capable of receiving a plurality of data packets in one transmission cycle, the second device comprising:
    确定单元,用于根据第一传输周期中是否有数据传输,确定是否需要对第二传输周期进行监听;所述第一传输周期与所述第二传输周期在时间上连续;a determining unit, configured to determine, according to whether there is data transmission in the first transmission period, whether to monitor the second transmission period; the first transmission period and the second transmission period are consecutive in time;
    其中,当所述第一传输周期中有数据传输时,所述第二设备确定需要对所述第二传输周期进行监听;当所述第一传输周期中没有数据传输时,所述第二设备确定不需要对所述第二传输周期进行监听。When the data transmission is performed in the first transmission period, the second device determines that the second transmission period needs to be monitored; when there is no data transmission in the first transmission period, the second device It is determined that the second transmission period does not need to be monitored.
  27. 一种第一设备,其特征在于,所述第一设备包括:一个或多个处理器以及存储器;所述一个或多个处理器以及所述存储器通过一个或多个通信总线连接;所述存储器中存储有一个或多个计算机指令,所述一个或多个计算机指令被配置为被所述一个或多个处理器执行;所述一个或多个计算机指令用于执行如权利要求1-3或7-8中任一项所述的数据传输方法。A first device, comprising: one or more processors and a memory; the one or more processors and the memory being connected by one or more communication buses; the memory One or more computer instructions are stored, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing the claims 1-3 or The data transmission method according to any one of items 7-8.
  28. 一种第二设备,其特征在于,所述第二设备包括:一个或多个处理器以及存储器;所述一个或多个处理器以及所述存储器通过一个或多个通信总线连接;所述存储器中存储有一个或多个计算机指令,所述一个或多个计算机指令被配置为被所述一个或多个处理器执行;所述一个或多个计算机指令用于执行如权利要求4-6或9-10中任一项所述的数据传输方法,或者,所述指令用于执行如权利要求11-12或13中任一项所述的数据接收方法。A second device, comprising: one or more processors and a memory; the one or more processors and the memory are connected by one or more communication buses; the memory One or more computer instructions are stored, the one or more computer instructions being configured to be executed by the one or more processors; the one or more computer instructions for performing as in claim 4-6 The data transmission method according to any one of claims 9 to 10, wherein the instruction is used to execute the data receiving method according to any one of claims 11 to 12 or 13.
  29. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在第一设备上运行时,使得所述第一设备执行如权利要求1-3或7-8中任一项所述的数据传输方法。A computer storage medium, comprising computer instructions, when said computer instructions are run on a first device, causing said first device to perform said one of claims 1-3 or 7-8 Data transfer method.
  30. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在第二设备上运行时,使得所述第二设备执行如权利要求4-6或9-10中任一项所述的数据传输方法,或者,使得所述第二设备执行如权利要求11-12或13中任一项所述的数据接收方法。A computer storage medium, comprising computer instructions, when said computer instructions are run on a second device, causing said second device to perform said one of claims 4-6 or 9-10 The data transmission method, or the second device is caused to perform the data receiving method according to any one of claims 11-12 or 13.
  31. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-3或7-8中任一项所述的数据传输方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is caused to perform the data transmission method according to any one of claims 1-3 or 7-8.
  32. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求4-6或9-10中任一项所述的数据传输方法,或者, 执行如权利要求11-12或13中任一项所述的数据接收方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is caused to perform the data transmission method according to any one of claims 4-6 or 9-10, or A data receiving method according to any one of claims 11-12 or 13.
  33. 一种芯片系统,其特征在于,所述芯片系统,包括:一个或多个处理器,存储器,通信总线;所述存储器用于存储一个或多个计算机指令,所述一个或多个处理器与存储器通过所述通信总线连接,当所述芯片系统运行时,所述一个或多个处理器执行所述存储器存储的所述一个或多个计算机指令,以使所述芯片系统执行如权利要求1-3或7-8中任一项所述的数据传输方法。A chip system, comprising: one or more processors, a memory, a communication bus; the memory for storing one or more computer instructions, the one or more processors and The memory is coupled by the communication bus, the one or more processors executing the one or more computer instructions stored by the memory to cause the chip system to perform as claimed in claim 1 The data transmission method of any one of -3 or 7-8.
  34. 一种芯片系统,其特征在于,所述芯片系统,包括:一个或多个处理器,存储器,通信总线;所述存储器用于存储一个或多个计算机指令,所述一个或多个处理器与存储器通过所述通信总线连接,当所述芯片系统运行时,所述一个或多个处理器执行所述存储器存储的所述一个或多个计算机指令,以使所述芯片系统执行如权利要求4-6或9-10中任一项所述的数据传输方法,或者,执行如权利要求11-12或13中任一项所述的数据接收方法。A chip system, comprising: one or more processors, a memory, a communication bus; the memory for storing one or more computer instructions, the one or more processors and The memory is coupled by the communication bus, the one or more processors executing the one or more computer instructions stored by the memory to cause the chip system to perform as claimed in claim 4 The data transmission method according to any one of claims 1-6, wherein the data transmission method according to any one of claims 11 to 12 or 13 is performed.
PCT/CN2018/082051 2018-04-04 2018-04-04 Data transmission method and device WO2019191996A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/082051 WO2019191996A1 (en) 2018-04-04 2018-04-04 Data transmission method and device
CN201880060395.0A CN111149313B (en) 2018-04-04 2018-04-04 Data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/082051 WO2019191996A1 (en) 2018-04-04 2018-04-04 Data transmission method and device

Publications (1)

Publication Number Publication Date
WO2019191996A1 true WO2019191996A1 (en) 2019-10-10

Family

ID=68099820

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082051 WO2019191996A1 (en) 2018-04-04 2018-04-04 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN111149313B (en)
WO (1) WO2019191996A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023272444A1 (en) * 2021-06-28 2023-01-05 华为技术有限公司 Communication method and communication apparatus therefor

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4202707A4 (en) * 2020-09-17 2023-08-23 Huawei Technologies Co., Ltd. Communication method and apparatus employing inter-integrated circuit
CN113783758B (en) * 2021-11-11 2022-04-15 荣耀终端有限公司 Method for configuring monitoring period and corresponding electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104247321A (en) * 2011-10-25 2014-12-24 苹果公司 Data transfer using the bluetooth low energy standard
CN104615016A (en) * 2014-12-08 2015-05-13 广东欧珀移动通信有限公司 Low-power-consumption Bluetooth technology based host control method and device
CN106157021A (en) * 2015-04-28 2016-11-23 中兴通讯股份有限公司 Payment processing method and processing device
US20170041737A1 (en) * 2006-03-08 2017-02-09 Speed Demon Inc. Safe driving monitoring system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015069093A1 (en) * 2013-11-11 2015-05-14 엘지전자(주) Method and apparatus for bluetooth connection
US9820135B2 (en) * 2014-12-22 2017-11-14 Google Inc. Systems and methods for reducing connection latency
US9503969B1 (en) * 2015-08-25 2016-11-22 Afero, Inc. Apparatus and method for a dynamic scan interval for a wireless device
CN107809756B (en) * 2017-10-25 2020-05-19 深圳芯之联科技有限公司 Bluetooth controller, module, terminal, system and Bluetooth connection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170041737A1 (en) * 2006-03-08 2017-02-09 Speed Demon Inc. Safe driving monitoring system
CN104247321A (en) * 2011-10-25 2014-12-24 苹果公司 Data transfer using the bluetooth low energy standard
CN104615016A (en) * 2014-12-08 2015-05-13 广东欧珀移动通信有限公司 Low-power-consumption Bluetooth technology based host control method and device
CN106157021A (en) * 2015-04-28 2016-11-23 中兴通讯股份有限公司 Payment processing method and processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023272444A1 (en) * 2021-06-28 2023-01-05 华为技术有限公司 Communication method and communication apparatus therefor

Also Published As

Publication number Publication date
CN111149313B (en) 2021-05-18
CN111149313A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN110622123B (en) Display method and device
JP6467526B2 (en) Communication message transmission method and wearable device
EP3624404B1 (en) Method and device for establishing wireless communication connection
EP3742845A1 (en) Cell processing method, terminal device, and network device
WO2021023061A1 (en) Quasi-co-location qcl information determination method, configuration method and related device
WO2020140725A1 (en) Positioning method and terminal
US11089539B2 (en) Data processing method, terminal, and base station
CN110475364A (en) A kind of method of reseptance and terminal of aperiodic track reference signal
WO2020155949A9 (en) User positioning method, network elements, system, and storage medium
WO2021179966A1 (en) Signal transmission method, information indication method, and communication device
WO2019191996A1 (en) Data transmission method and device
US20210105651A1 (en) Measurement gap processing method, terminal, and network node
WO2020063240A1 (en) Channel access method, configuration method, terminal and network side device
CN110662277A (en) Power saving management method, graphical user interface and terminal
CN107439024A (en) Call processing method, user equipment and storage medium
WO2022218196A1 (en) Transmission power control method and related device
WO2020029723A1 (en) Positioning method, related device, and computer readable storage medium
CN111448825B (en) Transmission control method and equipment
CN108476441A (en) Cell switching method and terminal device
WO2021218857A1 (en) Transmission method and device for aperiodic positioning report
WO2018033031A1 (en) Positioning method and device
WO2021000778A1 (en) Uplink transmission discarding method, uplink transmission discarding configuration method and related device
EP3962223A1 (en) Random access method and terminal
WO2018201391A1 (en) Timing method for synchronization signal block, and related product
WO2020199919A1 (en) Reporting method, configuration method, terminal, and network device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18913707

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18913707

Country of ref document: EP

Kind code of ref document: A1