CN108882345A - Bluetooth equipment and its sleep control method, device, computer readable storage medium - Google Patents

Bluetooth equipment and its sleep control method, device, computer readable storage medium Download PDF

Info

Publication number
CN108882345A
CN108882345A CN201710338032.6A CN201710338032A CN108882345A CN 108882345 A CN108882345 A CN 108882345A CN 201710338032 A CN201710338032 A CN 201710338032A CN 108882345 A CN108882345 A CN 108882345A
Authority
CN
China
Prior art keywords
data packet
sleep
burst interval
bluetooth
bluetooth equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710338032.6A
Other languages
Chinese (zh)
Other versions
CN108882345B (en
Inventor
陈龙
梅锐
马腾飞
秦路芳
马伟
徐前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201710338032.6A priority Critical patent/CN108882345B/en
Publication of CN108882345A publication Critical patent/CN108882345A/en
Application granted granted Critical
Publication of CN108882345B publication Critical patent/CN108882345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0216Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

A kind of bluetooth equipment and its sleep control method, device, computer readable storage medium, the described method comprises the following steps:Determine that burst interval, the burst interval include multiple periods;In a cycle of each burst interval, multiple data packets in the multiple period are sent to receiving device;It determines the residual time length in the burst interval, and the comparison result based on the residual time length Yu the first preset threshold, determines and deep sleep is slept or entered into either shallow.The present invention program can make residual time length of the bluetooth equipment in the burst interval for including multiple periods enter sleep, to have more chances to enter deep sleep, to save more power consumptions.

Description

Bluetooth equipment and its sleep control method, device, computer readable storage medium
Technical field
The present invention relates to field of communication technology, especially a kind of bluetooth equipment and its sleep control method, device, computer Readable storage medium storing program for executing.
Background technique
In existing Bluetooth wireless transmission technology, according to the flow direction of data, bluetooth equipment can be divided into bluetooth transmission It holds (Transmit, TX) and bluetooth receiving end (Receive, RX), wherein transmitting terminal can be mobile phone, plate etc., and receiving end can Think earphone, speaker etc..
No matter it is transmitting terminal or receiving end, may include main equipment (Host) and controller in protocol processes (Controller), and meet the peer layer Principle of Communication of Bluetooth protocol, wherein main equipment and controller all can be independent Chip and the transmitting-receiving for carrying out data packet.Specifically, main equipment periodicity sending data packet is to control in bluetooth transmitting terminal Modulated data packet is sent to the controller of bluetooth receiving end, then the control by receiving end by radio-frequency technique by device, controller Device processed delivers a packet to receiving end main equipment, and then data packet is demodulated and handled by receiving end main equipment.
In each sending cycle, bluetooth equipment only takes up partial time slot and sends data packet, in remaining Um interface timeslot, In order to reduce power consumption, it will usually control bluetooth equipment and sleep.But in existing Bluetooth wireless transmission technology, every Leave that issue time for sleeping of equipment usually shorter in a sending cycle for, so that bluetooth equipment is typically only capable to sleep into either shallow It sleeps, for deep sleep, the power consumption of saving is very limited, causes to be difficult to meet power consumption demand.
In particular with the popularization of bluetooth equipment, advanced audio distribution configuration (Advanced Audio Distribution Profile, A2DP) business applied more and more, and what is sent due to A2DP business is packets of audio data, and file is larger, Cause to leave the time that bluetooth equipment is slept within each period shorter.Such as it is widely applied in Android mobile phone Bluetooth protocol repertory (BlueDroid), the sending cycle of A2DP voice packet is 20ms, wherein when leaving the sleep of bluetooth equipment for Between be only 13ms or so, be insufficient to allow bluetooth equipment after issuing data packet into deep sleep.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of bluetooth equipments and its sleep control method, device, computer can Storage medium is read, residual time length of the bluetooth equipment in the burst interval for including multiple periods can be made to enter sleep, from And there are more chances to enter deep sleep, to save more power consumptions.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of sleep control method of bluetooth equipment, including with Lower step:Determine that burst interval, the burst interval include multiple periods;The first of each burst interval In a period, multiple data packets in the multiple period are sent to receiving device;It determines in the burst interval Residual time length, and the comparison result based on the residual time length Yu the first preset threshold, determine enter either shallow sleep or into Enter deep sleep.
Optionally, the determining burst interval, the burst interval include multiple periods including:Described in determination The size of the spatial cache of receiving device is based on the spatial cache size, determines the period that the burst interval includes Quantity.
Optionally, the data packet includes A2DP data packet and the business data packet in addition to the A2DP data packet, is adopted The quantity in the period that the burst interval includes is determined with following formula:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period;
L1Indicate the size of the prestored information in the period;
L2Indicate the size of the business data packet.
Optionally, the bluetooth equipment includes following one or more:Bluetooth transmitting terminal main equipment, the control of bluetooth transmitting terminal Device and bluetooth receive side controller.
Optionally, the comparison result based on the residual time length Yu the first preset threshold, determine enter either shallow sleep or Include into deep sleep:When the residual time length is more than or equal to the first preset threshold, determine that the bluetooth equipment enters depth Degree sleep;When the residual time length is less than the first preset threshold, determine that the bluetooth equipment enters either shallow sleep.
Optionally, the data packet includes A2DP data packet and business data packet, the first of each burst interval In a period, multiple data packets in the multiple period, which are sent to receiving device, includes:It is opened in each burst interval When the beginning, the transmission priority of the data packet is configured, the transmission priority of the business data packet is lower than the A2DP data packet Transmission priority so that preferentially sending the A2DP data packet in each burst interval.
Optionally, the comparison result based on the residual time length Yu the first preset threshold, determine enter either shallow sleep or Include into deep sleep:In the burst interval, before sending each business data packet, determine in the burst Remaining time in time interval;Less than the second preset threshold and it is more than or equal to first preset threshold when the remaining time When, into deep sleep, and the business data packet is extended down to next burst interval and is sent, described second is default Threshold value is greater than first preset threshold.
Optionally, the business data packet includes following one or more:Play data packet, the broadcasting that control business is sent The data packet that the data packet and volume control business that information display service is sent are sent.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of sleep control device of bluetooth equipment, including:It is prominent Determining module is sent out, is adapted to determine that burst interval, the burst interval include multiple periods;Sending module is suitable for In a cycle of each burst interval, multiple data packets in the multiple period are sent to receiving device;It sleeps Dormancy determining module, the residual time length being adapted to determine that in the burst interval, and it is pre- with first based on the residual time length If the comparison result of threshold value, determines and deep sleep is slept or entered into either shallow.
Optionally, the burst determining module includes:Period determines submodule, is adapted to determine that the caching of the receiving device The size in space is based on the spatial cache size, determines the quantity in the period that the burst interval includes.
Optionally, the data packet includes A2DP data packet and the business data packet in addition to the A2DP data packet, institute State the quantity in the period that the period determines that submodule uses following formula to determine that the burst interval includes:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period;
L1Indicate the size of the prestored information in the period;
L2Indicate the size of the business data packet.
Optionally, the bluetooth equipment includes following one or more:Bluetooth transmitting terminal main equipment, the control of bluetooth transmitting terminal Device and bluetooth receive side controller.
Optionally, the sleep determining module includes:Deep sleep determines submodule, suitable for being greater than when the residual time length When equal to the first preset threshold, determine that the bluetooth equipment enters deep sleep;Either shallow, which is slept, determines submodule, is suitable for when described When residual time length is less than the first preset threshold, determine that the bluetooth equipment enters either shallow sleep.
Optionally, the data packet includes A2DP data packet and business data packet, and the sending module includes:Priority is matched Submodule is set, suitable for configuring the transmission priority of the data packet, the business datum when each burst interval starts The transmission priority of packet is lower than the transmission priority of the A2DP data packet, so that in each burst interval, preferentially Send the A2DP data packet.
Optionally, the sleep determining module includes:Duration determines submodule, is suitable in the burst interval, Before sending each business data packet, the remaining time in the burst interval is determined;Sleep control submodule, is fitted In when the remaining time less than the second preset threshold and be more than or equal to first preset threshold when, into deep sleep, and And the business data packet is extended down to next burst interval and is sent, it is pre- that second preset threshold is greater than described first If threshold value.
Optionally, the business data packet includes following one or more:Play data packet, the broadcasting that control business is sent The data packet that the data packet and volume control business that information display service is sent are sent.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of computer readable storage medium, it is stored thereon with Computer instruction executes the step of the sleep control method of any of the above item bluetooth equipment when computer instruction is run Suddenly.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of bluetooth equipment, including memory and processor, institute The computer instruction for being stored with and capable of being run on memory on the processor is stated, the processor runs the computer and refers to The step of sleep control method of any of the above item bluetooth equipment is executed when enabling.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that:
In embodiments of the present invention, determine that burst interval, the burst interval include multiple periods;Each In a cycle of burst interval, multiple data packets in the multiple period are sent to receiving device;Determine institute The residual time length in burst interval is stated, and the comparison result based on the residual time length Yu the first preset threshold, determined Into either shallow sleep or enter deep sleep.It using the above scheme, can be by configuring the time burst including multiple periods It is spaced, and sends the data packet in multiple periods in a cycle of each burst interval, so that bluetooth equipment exists Residual time length in burst interval enters sleep, compared with the prior art in be only capable of residual time length in signal period into Enter sleep, there are more chances that bluetooth equipment is made to enter deep sleep, to save more power consumptions.
Further, bluetooth equipment may include following one or more:Bluetooth transmitting terminal main equipment, the control of bluetooth transmitting terminal Device and bluetooth receive side controller.So that more bluetooth equipments have an opportunity to enter deep sleep, to save more power consumptions.
Further, data packet includes A2DP data packet and business data packet, in embodiments of the present invention, described in configuring The transmission priority of data packet will check that the remaining time in burst interval is before sending business data packet It is no to be also enough that sending equipment is made to enter deep sleep, and be extended down to the business data packet in the case where remaining time is shorter Next burst interval is sent, thus preferentially ensure the transmission of A2DP data packet and the deep sleep of bluetooth equipment, with Save more power consumptions.
Detailed description of the invention
Fig. 1 be in the prior art it is a kind of send bluetooth data packets schematic diagram of a scenario;
Fig. 2 is a kind of schematic diagram of the application scenarios of the sleep control method of bluetooth equipment in the prior art;
Fig. 3 is a kind of flow chart of the sleep control method of bluetooth equipment in the embodiment of the present invention;
Fig. 4 is a kind of data flow diagram of the sleep control method of bluetooth equipment in the embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of a scenario for sending bluetooth data packets in the embodiment of the present invention;
Fig. 6 is the partial process view of the sleep control method of another bluetooth equipment in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of the sleep control device of bluetooth equipment in the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of specific implementation of sleep determining module 73 in Fig. 7.
Specific embodiment
In existing Bluetooth wireless transmission technology, according to the flow direction of data, bluetooth equipment can be divided into bluetooth transmission End and bluetooth receiving end, and may each comprise main equipment and controller, to be sent by bluetooth transmitting terminal main equipment, bluetooth Side controller, bluetooth receive side controller and bluetooth receiving end main equipment carries out the transmitting-receiving of data packet.
Specifically, Fig. 1 is a kind of schematic diagram of a scenario for sending bluetooth data packets in the prior art, blue in bluetooth transmitting terminal Tooth transmitting terminal main equipment 101 sends data packet 11 to bluetooth and sends side controller 102, and bluetooth sends side controller 102 by penetrating Modulated data packet 12 is sent to the controller of bluetooth receiving end by frequency technology.Wherein, sending cycle is the period 13.Work as transmission Bluetooth data packets be A2DP data packet when, without according to A2DP data packet script time interval transmitting-receiving, as long as receiving end energy It enough receives complete multiple A2DP data packets and is cached, then demodulated and played according to prefixed time interval, Ensure that the music played out is smoothly.
In each sending cycle, issues equipment and only take up partial time slot transmission data packet, in remaining Um interface timeslot, In order to reduce power consumption, it will usually which control issues equipment and enters sleep.
Fig. 2 is a kind of schematic diagram of the application scenarios of the sleep control method of bluetooth equipment in the prior art.It is sent out at one It send in the period 21, bluetooth equipment is controlled in during idle time according to sending step and enters sleep.
It specifically, is 20ms with the sending cycle of A2DP data packet, the bluetooth equipment is that bluetooth transmitting terminal main equipment is Example is described.The bluetooth transmitting terminal main equipment can send side controller transmission in 201 interior coding of period and to bluetooth A2DP data packet, expending duration is about 1.6ms;Enter sleep within the period 202, duration is about 4ms;In the period Side controller is sent by bluetooth in 203 to wake up, receive confirmation reply packet (Numbers Of Completed Packets, NOCP), duration is about 0.5ms;Entering sleep within the period 204, duration is residual time length in the sending cycle, About 13ms.
Further, when the bluetooth equipment is that bluetooth sends side controller, since it needs to receive bluetooth transmitting terminal The A2DP data packet of main equipment is then forwarded to bluetooth and receives side controller, and sends confirmation and reply packet to bluetooth transmitting terminal Main equipment is only capable of in the sending cycle, just can enter sleep, about 13ms in the residual time length after completion above-mentioned steps.
In existing Bluetooth wireless transmission technology, is left in each sending cycle and issue the time that equipment is slept It is too short, it is insufficient to allow bluetooth equipment to enter deep sleep after issuing data packet, so that bluetooth equipment is typically only capable to enter either shallow Sleep, for deep sleep, the power consumption of saving is very limited, it is difficult to meet power consumption demand.
The present inventor has found after study, only sends the data of a cycle within each period in the prior art Packet, so that bluetooth equipment is only capable of residual time length in one cycle and enters sleep, sleep duration is too short.And it is being embodied In, it is not required that each data packet must be sent in current period, it is only necessary to can receive completely data in receiving end It wraps and is cached, to handle on time.Specifically, by taking A2DP data packet as an example, although requirement of the A2DP to real-time It is higher, as long as but receiving end can receive complete multiple A2DP data packets and be cached, then according to it is default when Between interval demodulated and played, ensure that the music played out is smoothly.
In embodiments of the present invention, determine that burst interval, the burst interval include multiple periods;Each In a cycle of burst interval, multiple data packets in the multiple period are sent to receiving device;Determine institute The residual time length in burst interval is stated, and the comparison result based on the residual time length Yu the first preset threshold, determined Into either shallow sleep or enter deep sleep.It using the above scheme, can be by configuring the time burst including multiple periods It is spaced, and sends the data packet in multiple periods in a cycle of each burst interval, so that bluetooth equipment exists Residual time length in burst interval enters sleep, compared with the prior art in be only capable of residual time length in signal period into Enter sleep, there are more chances that bluetooth equipment is made to enter deep sleep, to save more power consumptions.
It is understandable to enable above-mentioned purpose of the invention, feature and beneficial effect to become apparent, with reference to the accompanying drawing to this The specific embodiment of invention is described in detail.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of the sleep control method of bluetooth equipment in the embodiment of the present invention.It is described to sleep Dormancy control method may include step S31 to step S33:
Step S31:Determine that burst interval, the burst interval include multiple periods;
Step S32:In a cycle of each burst interval, by multiple data packets in the multiple period It is sent to receiving device;
Step S33:Determine the residual time length in the burst interval, and pre- with first based on the residual time length If the comparison result of threshold value, determines and deep sleep is slept or entered into either shallow.
In the specific implementation of step S31, determines the burst interval including multiple periods, burst can be directly set The amount of cycles that time interval includes can also be determined the size of the spatial cache of receiving device by modes such as detections, is based on The spatial cache size, determines the quantity in the period that the burst interval includes.
Specifically, the size of the spatial cache of the receiving device can be based on the caching sky of the buffer of bluetooth receiving end Between determine demodulated and handled so that the main equipment of bluetooth receiving end can take out data packet from buffer.
Further, the data packet includes A2DP data packet and the business data packet in addition to the A2DP data packet, The quantity in the period that the burst interval includes can be determined using following formula:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache, can be determined based on the buffer of specific bluetooth receiving end;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period, for example, 20ms;
B × T indicates the bit number of the A2DP data packet in each period, is 328kb/s with predetermined bit rate, and the period is For 20ms, the bit number of the A2DP data packet is 6560bit namely 820byte in each period;
L1Indicate the size of the prestored information in the period, for example, header packet information of A2DP;
L2It indicates the size of the business data packet, can be determined based on specific type of service.
In the specific implementation of step S32, in a cycle of each burst interval, the time burst is sent Data packet in multiple periods that interval includes.
Referring to Fig. 4, Fig. 4 is a kind of data flow diagram of the sleep control method of bluetooth equipment in the embodiment of the present invention.It is described Sleep control method may include step S401 to S405, and each step is specifically described below.
Step S401:Each burst interval 45 beginning (that is, the starting point of burst interval 45 or close At the time of starting point), bluetooth transmitting terminal main equipment 41 wakes up bluetooth and sends side controller 42, data packet to be sent encoded, And multiple data packets in multiple periods that burst interval includes are sent to bluetooth and send side controller 42.
Step S402:Bluetooth sends side controller 42 and sends NOCP to bluetooth transmitting terminal main equipment 41, to acknowledge receipt of State data packet.When bluetooth transmitting terminal main equipment 41 receives NOCP, of short duration it can be waken up, due in the burst interval Still there is residual time length, bluetooth transmitting terminal main equipment 41 will go successively to sleep state.It should be pointed out that in certain form of indigo plant In tooth equipment, bluetooth send side controller 42 can send NOCP, and it is certain can't send, in embodiments of the present invention, for Bluetooth sends whether side controller sends NOCP with no restriction.
Step S403:Bluetooth sends side controller 42 and the multiple data packet is sent to bluetooth reception side controller 43, In the residual time length in the burst interval, the bluetooth, which sends side controller 42, can enter sleep.
Step S404:Bluetooth receives side controller 43 and the multiple data packet is sent to bluetooth receiving end main equipment 44, In the residual time length in the burst interval, the bluetooth, which receives side controller 43, can enter sleep.
Step S405:In the beginning of next burst interval, when bluetooth transmitting terminal main equipment 41 is by next burst Between be spaced the multiple periods for including multiple data packets be sent to bluetooth send side controller 42.
In specific implementation, the bluetooth equipment may include following one or more:Bluetooth transmitting terminal main equipment, bluetooth It sends side controller and bluetooth receives side controller.
The schematic diagram of a scenario of a kind of transmission bluetooth data packets referring to shown in Fig. 5, in bluetooth transmitting terminal, bluetooth transmitting terminal master Equipment 501 sends data packet 51 to bluetooth and sends side controller 502, and bluetooth sends side controller 502 and will be adjusted by radio-frequency technique Data packet 52 after system is sent to the controller of bluetooth receiving end.Wherein, sending cycle is burst interval 53.The bluetooth Transmitting terminal main equipment 501 and bluetooth send side controller 502 without the time interval transmitting-receiving according to data packet script, Ke Yi Multiple data packets in multiple periods that the burst interval includes are sent to next bluetooth by the beginning of burst interval 53 Equipment.
In embodiments of the present invention, more bluetooth equipments can be made to have an opportunity to enter deep sleep, it is more to save Power consumption.
With continued reference to Fig. 3, in the specific implementation of step S33, the residual time length in the burst interval is determined, and And the comparison result based on the residual time length Yu the first preset threshold, it determines and deep sleep packet is slept or entered into either shallow It includes:When the residual time length is more than or equal to the first preset threshold, determine that the bluetooth equipment enters deep sleep;When described surplus When remaining duration is less than the first preset threshold, determine that the bluetooth equipment enters either shallow sleep.
Specifically, first preset threshold can be arranged according to specific bluetooth equipment, unrestricted as one Example, it is numerical value of the 30ms into 50ms that first preset threshold, which can be set,.
In embodiments of the present invention, it can dash forward by configuring the burst interval including multiple periods, and each The data packet that multiple periods are sent in a cycle of time interval is sent out, so that bluetooth equipment is surplus in burst interval Remaining duration enters sleep, compared with the prior art in the residual time length that is only capable of in signal period enter sleep, have more chances So that bluetooth equipment enters deep sleep, to save more power consumptions.
Further, the data packet that the bluetooth equipment is sent includes A2DP data packet and business data packet, each prominent In a cycle for sending out time interval, multiple data packets in the multiple period, which are sent to receiving device, includes:Every When one burst interval starts, the transmission priority of the data packet is configured, the transmission priority of the business data packet is low In the transmission priority of the A2DP data packet, so that preferentially sending the A2DP data in each burst interval Packet.
Wherein, the business data packet may include following one or more:It plays the data packet of control business transmission, broadcast The data packet that the data packet and volume control business for putting information display service transmission are sent.
Specifically, it is described play control business send data packet can for control play next audio file or on During one first audio file, the data packet of transmission;The broadcast information shows that the data packet that business is sent can be to control During bluetooth equipment processed shows the information such as audio file name, size, the data packet of transmission;The volume control business hair The data packet sent can be the data packet of transmission during control bluetooth equipment increaseds or decreases volume.
In embodiments of the present invention, by the way that high transmission priority is arranged for A2DP data packet, in bluetooth equipment processing During stating business, it can be ensured that A2DP data flow is smooth, avoids reducing user experience due to card sound.
It is the partial process view of the sleep control method of another bluetooth equipment in the embodiment of the present invention referring to Fig. 6, Fig. 6. The comparison result based on the residual time length Yu the first preset threshold determines and deep sleep is slept or entered into either shallow It may include step S61 to step S62:
Step S61:In the burst interval, before sending each business data packet, determine in the burst Remaining time in time interval;
Step S62:When the remaining time is less than the second preset threshold and is more than or equal to first preset threshold, into Enter deep sleep, and the business data packet is extended down to next burst interval and is sent, second preset threshold Greater than first preset threshold.
In the specific implementation of step S61, in the burst interval, A2DP data packet, Jin Eryi are sent first According to the transmission priority of configuration, business data packet is sequentially sent, before sending each business data packet, is determined in the burst Remaining time in time interval.
It is less when remaining time in the specific implementation of step S62, when less than the second preset threshold, continue transmission business Data packet would be possible to so that bluetooth equipment can not enter deep sleep in the burst interval, at this time by the business datum Packet is extended down to next burst interval and is sent, and bluetooth equipment enters deep sleep.
Specifically, second preset threshold is greater than first preset threshold, so that sentencing to remaining time It has no progeny, is also enough that bluetooth equipment is made to enter deep sleep.Second preset threshold can be arranged according to specific bluetooth equipment, As a unrestricted example, it is numerical value of the 32ms into 52ms that second preset threshold, which can be set,.
In embodiments of the present invention, by configuring the transmission priority of A2DP data packet and business data packet, whenever transmission Before business data packet, it will check whether the remaining time in burst interval is also enough to make to issue equipment and enter depth and sleep It sleeps, and the business data packet is extended down to next burst interval in the case where remaining time is shorter and is sent, from And preferentially ensure the transmission of A2DP data packet and the deep sleep of bluetooth equipment, to save more power consumptions.
It is a kind of structural schematic diagram of the sleep control device of bluetooth equipment in the embodiment of the present invention referring to Fig. 7, Fig. 7.Institute Stating sleep control device may include burst determining module 71, sending module 72 and sleep determining module 73.
Wherein, the burst determining module 71 is adapted to determine that burst interval, the burst interval include multiple Period;
The sending module 72 will be in the multiple period suitable in a cycle of each burst interval Multiple data packets be sent to receiving device;
The sleep determining module 73, the residual time length being adapted to determine that in the burst interval, and based on described The comparison result of residual time length and the first preset threshold determines and deep sleep is slept or entered into either shallow.
Further, the burst determining module includes determining submodule (not shown) the period, is adapted to determine that the reception The size of the spatial cache of equipment is based on the spatial cache size, determines the number in the period that the burst interval includes Amount.
The data packet includes A2DP data packet and the business data packet in addition to the A2DP data packet, and the period is true The quantity in the period that stator modules use following formula to determine that the burst interval includes:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period;
L1Indicate the size of the prestored information in the period;
L2Indicate the size of the business data packet.
Further, the bluetooth equipment includes following one or more:Bluetooth transmitting terminal main equipment, bluetooth transmitting terminal control Device processed and bluetooth receive side controller.
It is a kind of structural schematic diagram of specific implementation of sleep determining module 73 in Fig. 7 referring to Fig. 8, Fig. 8.The sleep is true Cover half block 73 may include that deep sleep determines that submodule 731 and either shallow sleep determine submodule 732.
Wherein, the deep sleep determines submodule 731, is suitable for being more than or equal to the first preset threshold when the residual time length When, determine that the bluetooth equipment enters deep sleep.
The either shallow, which is slept, determines submodule 732, is suitable for when the residual time length is less than the first preset threshold, determines institute It states bluetooth equipment and enters either shallow sleep.
With continued reference to Fig. 7, the data packet may include A2DP data packet and business data packet, and the sending module 72 can To include:Priority configures submodule (not shown), suitable for configuring the data packet when each burst interval starts Priority is sent, the transmission priority of the business data packet is lower than the transmission priority of the A2DP data packet, so that In each burst interval, the A2DP data packet is preferentially sent.
Further, the sleep determines that mould 73 may include:Duration determines submodule (not shown) and sleep control Module (not shown).
Wherein, the duration determines submodule, is suitable in the burst interval, is sending each business data packet Before, the remaining time in the burst interval is determined;
The sleep control module is suitable for when the remaining time is less than the second preset threshold and more than or equal to described first When preset threshold, into deep sleep, and the business data packet is extended down to next burst interval and is sent, it is described Second preset threshold is greater than first preset threshold.
Further, the business data packet may include following one or more:Play the data that control business is sent Packet, broadcast information show the data packet that the data packet that business is sent and volume control business are sent.
More detailed contents of sleep control device about the bluetooth equipment please refer to above and shown in Fig. 1 to Fig. 6 The associated description of sleep control method about bluetooth equipment, details are not described herein again.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, described The step of computer instruction executes the sleep control method of above-mentioned bluetooth equipment when running.The computer readable storage medium can To be CD, mechanical hard disk, solid state hard disk etc..
The embodiment of the invention also provides a kind of bluetooth equipment, including memory and processor, stored on the memory There is the computer instruction that can be run on the processor, the processor executes above-mentioned indigo plant when running the computer instruction The step of sleep control method of tooth equipment.The bluetooth equipment can be used for the various terminals such as smart phone, tablet computer and set It is standby.
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute Subject to the range of restriction.

Claims (18)

1. a kind of sleep control method of bluetooth equipment, which is characterized in that include the following steps:
Determine that burst interval, the burst interval include multiple periods;
In a cycle of each burst interval, multiple data packets in the multiple period are sent to reception and are set It is standby;
Determine the residual time length in the burst interval, and based on the residual time length compared with the first preset threshold Deep sleep is slept or entered into either shallow as a result, determining.
2. the sleep control method of bluetooth equipment according to claim 1, which is characterized in that between the determining time burst Every the burst interval includes multiple periods including:
It determines the size of the spatial cache of the receiving device, is based on the spatial cache size, determine between the time burst Every comprising period quantity.
3. the sleep control method of bluetooth equipment according to claim 2, which is characterized in that the data packet includes A2DP Data packet and the business data packet in addition to the A2DP data packet determine that the burst interval includes using following formula Period quantity:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period;
L1Indicate the size of the prestored information in the period;
L2Indicate the size of the business data packet.
4. the sleep control method of bluetooth equipment according to claim 1, which is characterized in that the bluetooth equipment include with The next item down is multinomial:Bluetooth transmitting terminal main equipment, bluetooth send side controller and bluetooth receives side controller.
5. the sleep control method of bluetooth equipment according to claim 1, which is characterized in that based on the residual time length with The comparison result of first preset threshold determines that entering either shallow sleeps or include into deep sleep:
When the residual time length is more than or equal to the first preset threshold, determine that the bluetooth equipment enters deep sleep;
When the residual time length is less than the first preset threshold, determine that the bluetooth equipment enters either shallow sleep.
6. the sleep control method of bluetooth equipment according to claim 1, which is characterized in that the data packet includes A2DP Data packet and business data packet, in a cycle of each burst interval, by multiple numbers in the multiple period Being sent to receiving device according to packet includes:
When each burst interval starts, the transmission priority of the data packet, the transmission of the business data packet are configured Priority is lower than the transmission priority of the A2DP data packet, so that in each burst interval, described in preferential transmission A2DP data packet.
7. the sleep control method of bluetooth equipment according to claim 6, which is characterized in that based on the residual time length with The comparison result of first preset threshold determines that entering either shallow sleeps or include into deep sleep:
In the burst interval, before sending each business data packet, determine in the burst interval Remaining time;
When the remaining time is less than the second preset threshold and is more than or equal to first preset threshold, into deep sleep, And the business data packet is extended down to next burst interval to send, second preset threshold is greater than described first Preset threshold.
8. the sleep control method of bluetooth equipment according to claim 6, which is characterized in that the business data packet includes It is one or more below:It plays data packet, broadcast information that control business is sent and shows data packet and volume control that business is sent The data packet that business processed is sent.
9. a kind of sleep control device of bluetooth equipment, which is characterized in that including:
Happen suddenly determining module, is adapted to determine that burst interval, the burst interval include multiple periods;
Sending module, suitable in a cycle of each burst interval, by multiple data in the multiple period Packet is sent to receiving device;
Sleep determining module, the residual time length being adapted to determine that in the burst interval, and based on the residual time length with The comparison result of first preset threshold determines and deep sleep is slept or entered into either shallow.
10. the sleep control device of bluetooth equipment according to claim 9, which is characterized in that the burst determining module Including:
Period determines submodule, is adapted to determine that the size of the spatial cache of the receiving device, is based on the spatial cache size, Determine the quantity in the period that the burst interval includes.
11. the sleep control device of bluetooth equipment according to claim 10, which is characterized in that the data packet includes A2DP data packet and the business data packet in addition to the A2DP data packet, the period determine that submodule is true using following formula The quantity in the period that the fixed burst interval includes:
Wherein, N indicates the quantity in the period that the burst interval includes;
S indicates the size of the spatial cache;
B indicates to transmit the predetermined bit rate of the A2DP data packet;
T indicates the period;
L1Indicate the size of the prestored information in the period;
L2Indicate the size of the business data packet.
12. the sleep control device of bluetooth equipment according to claim 9, which is characterized in that the bluetooth equipment includes It is one or more below:Bluetooth transmitting terminal main equipment, bluetooth send side controller and bluetooth receives side controller.
13. the sleep control device of bluetooth equipment according to claim 9, which is characterized in that the sleep determining module Including:
Deep sleep determines submodule, is suitable for determining the bluetooth when the residual time length is more than or equal to the first preset threshold Equipment enters deep sleep;
Either shallow, which is slept, determines submodule, is suitable for when the residual time length is less than the first preset threshold, determines the bluetooth equipment It sleeps into either shallow.
14. the sleep control device of bluetooth equipment according to claim 9, which is characterized in that the data packet includes A2DP data packet and business data packet, the sending module include:
Priority configures submodule, suitable for configuring the transmission priority of the data packet when each burst interval starts, The transmission priority of the business data packet is lower than the transmission priority of the A2DP data packet, so that in each time burst In interval, the A2DP data packet is preferentially sent.
15. the sleep control device of bluetooth equipment according to claim 14, which is characterized in that the sleep determining module Including:
Duration determines submodule, is suitable in the burst interval, before sending each business data packet, determines in institute State the remaining time in burst interval;
Sleep control submodule is suitable for when the remaining time is less than the second preset threshold and more than or equal to the described first default threshold When value, into deep sleep, and the business data packet is extended down to next burst interval and is sent, described second is pre- If threshold value is greater than first preset threshold.
16. the sleep control device of bluetooth equipment according to claim 14, which is characterized in that the business data packet packet It includes following one or more:It plays data packet, broadcast information that control business is sent and shows data packet and volume that business is sent The data packet that control business is sent.
17. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction Perform claim requires the step of sleep control method of any one of 1 to 8 bluetooth equipment when operation.
18. a kind of bluetooth equipment, including memory and processor, it is stored with and can transports on the processor on the memory Capable computer instruction, which is characterized in that perform claim requirement 1 to 8 is any when the processor runs the computer instruction The step of sleep control method of the item bluetooth equipment.
CN201710338032.6A 2017-05-15 2017-05-15 Bluetooth device, sleep control method and device thereof, and computer-readable storage medium Active CN108882345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710338032.6A CN108882345B (en) 2017-05-15 2017-05-15 Bluetooth device, sleep control method and device thereof, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710338032.6A CN108882345B (en) 2017-05-15 2017-05-15 Bluetooth device, sleep control method and device thereof, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108882345A true CN108882345A (en) 2018-11-23
CN108882345B CN108882345B (en) 2021-05-28

Family

ID=64320395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710338032.6A Active CN108882345B (en) 2017-05-15 2017-05-15 Bluetooth device, sleep control method and device thereof, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108882345B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561491A (en) * 2018-12-11 2019-04-02 深圳市联智物联网科技有限公司 A kind of half-duplex wireless communication system for realizing energy conservation wake-up
CN116055230A (en) * 2023-03-28 2023-05-02 北京博上网络科技有限公司 DPDK sleep time control method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883420A (en) * 2012-10-23 2013-01-16 中国科学院微电子研究所 Transmission scheduling method and device in sleep mode
EP2939463A1 (en) * 2013-01-31 2015-11-04 Apple Inc. Dynamic adaptation of a traffic inactivity timer
CN105307249A (en) * 2015-11-09 2016-02-03 深圳市银河风云网络系统股份有限公司 Wireless transmission system having low power consumption and transmission method thereof
CN106455021A (en) * 2016-10-18 2017-02-22 上海斐讯数据通信技术有限公司 Energy saving method based on data frame aggregation transmission and energy saving device thereof
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883420A (en) * 2012-10-23 2013-01-16 中国科学院微电子研究所 Transmission scheduling method and device in sleep mode
EP2939463A1 (en) * 2013-01-31 2015-11-04 Apple Inc. Dynamic adaptation of a traffic inactivity timer
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
CN105307249A (en) * 2015-11-09 2016-02-03 深圳市银河风云网络系统股份有限公司 Wireless transmission system having low power consumption and transmission method thereof
CN106455021A (en) * 2016-10-18 2017-02-22 上海斐讯数据通信技术有限公司 Energy saving method based on data frame aggregation transmission and energy saving device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561491A (en) * 2018-12-11 2019-04-02 深圳市联智物联网科技有限公司 A kind of half-duplex wireless communication system for realizing energy conservation wake-up
CN116055230A (en) * 2023-03-28 2023-05-02 北京博上网络科技有限公司 DPDK sleep time control method and system
CN116055230B (en) * 2023-03-28 2023-06-09 北京博上网络科技有限公司 DPDK sleep time control method and system

Also Published As

Publication number Publication date
CN108882345B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN105338604B (en) About the terminal of multi-user transmission chance economize on electricity and the communication means of access point
US10986573B2 (en) Bluetooth mesh network gateway and device data communication
CN106101901B (en) A kind of earphone and its method for realizing three-dimensional voice output by near-field communication
CN112929366B (en) Wireless game protocol
CN108738109A (en) A kind of website awakening method and website
US20160360526A1 (en) Simultaneous wireless connections with improved efficiency
WO2021244196A1 (en) Dual-card-based communication method and related device
CN103024131A (en) Bluetooth function control method of mobile terminal and mobile terminal
CN106664655A (en) Out-of-band acknowledgment of wireless communication
CN104869620A (en) Communication method of transmission apparatus and reception apparatus
WO2020237946A1 (en) Bluetooth headset, communication method, system, electronic device, and computer medium
CN109271131B (en) Earphone control method and device, electronic equipment and storage medium
CN106063338A (en) Systems and methods to discover access points (AP) in wireless networks operating in the 60 GHz band
WO2021218842A1 (en) Downlink reception triggering method, terminal and network side device
CN109309948A (en) Communication means, device, site apparatus and the access point apparatus of WLAN
CN108882345A (en) Bluetooth equipment and its sleep control method, device, computer readable storage medium
CN103178921B (en) A kind of AIS system candidate time slot optimum choice method of improvement
CN101547016A (en) Split mobile terminal
US9083643B2 (en) Process of audio data exchanges of information between a central unit and a bluetooth controller
US20100281189A1 (en) Method for enhancing data transmission efficiency
WO2021218855A1 (en) Downlink reception triggering method, and terminal and network side device
CN204180243U (en) It is a kind of that neck hanging type is wireless answers equipment
CN204156936U (en) A kind of acoustic control speech-sound intelligent mobile phone
WO2023051082A1 (en) Data transmission method based on wireless network (wi-fi), and electronic device
US8909304B1 (en) Wireless network with power save mode

Legal Events

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