CN106559861B - Bluetooth equipment data transmission method and device - Google Patents
Bluetooth equipment data transmission method and device Download PDFInfo
- Publication number
- CN106559861B CN106559861B CN201510627503.6A CN201510627503A CN106559861B CN 106559861 B CN106559861 B CN 106559861B CN 201510627503 A CN201510627503 A CN 201510627503A CN 106559861 B CN106559861 B CN 106559861B
- Authority
- CN
- China
- Prior art keywords
- equipment
- suspend mode
- data transmission
- data packet
- connection event
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
A kind of bluetooth equipment data transmission method and device, which comprises judge whether be in suspend mode from equipment;When detect it is described be in suspend mode from equipment when, give out a contract for a project the period every M connection event, continuously perform T time and sent to described from equipment from the operation of the reply data packet of equipment transmission described in connection event and monitoring, M, T are positive integer.Using the method and device, time interval resource utilization efficiency can be improved, time interval resource is avoided to waste.
Description
Technical field
The present invention relates to Bluetooth communication field more particularly to a kind of bluetooth equipment data transmission methods and device.
Background technique
For the power consumption for reducing bluetooth equipment, allow in Bluetooth protocol low-power consumption bluetooth (Bluetooth Low Energy,
BLE) suspend mode (sleep) mode is in from equipment (Slave).
When a slave is in the park mode, after the data packet for receiving main equipment (Master) transmission, to main equipment
Corresponding reply data packet is sent, and receives after certain interval of time the data packet of main equipment transmission again, when interval is a length of
Latency × ConnInterval, latency are from the number in the period of giving out a contract for a project of the delay of equipment, based on ConnInterval
The interval of giving out a contract for a project of equipment.
However, when a slave is in the park mode, main equipment still each connection event (Connection Event,
CE) point all sends data packet to from equipment, therefore there are the wastes of time interval resource.
Summary of the invention
The embodiment of the present invention solves the problems, such as it is how to save time interval resource.
To solve the above problems, the embodiment of the present invention provides a kind of bluetooth equipment data transmission method, comprising:
Judge whether be in suspend mode from equipment;
When detect it is described be in suspend mode from equipment when, give out a contract for a project the period every M connection event, continuously perform T times
To the operation for sending connection event and the monitoring reply data packet sent from equipment from equipment, M, T are positive whole
Number.
Optionally, whether the judgement is in suspend mode from equipment, comprising: it is described from equipment to obtain last time reception
The time slot of the data packet of transmission;When between the time slot and current time slots that last time receives the data packet sent from equipment
When duration reaches preset duration, judgement is described to be in suspend mode from equipment.
Optionally, the preset duration is that continuous N number of connection event is given out a contract for a project period corresponding duration, and N is positive integer.
Optionally, the N=10.
Optionally, the bluetooth equipment data transmission method further include: it is in suspend mode from equipment when detecting described,
And receive described after the reply data packet that equipment is sent, rejudge described whether be in suspend mode from equipment.
The embodiment of the invention also provides a kind of bluetooth equipment data transmission devices, comprising:
Judging unit, for judging whether be in suspend mode from equipment;
Control unit, for when detect it is described be in suspend mode from equipment when, give out a contract for a project week every M connection event
Phase continuously performs T times to the behaviour for sending connection event and the monitoring reply data packet sent from equipment from equipment
Make, M, T are positive integer.
Optionally, the judging unit is used for: obtaining the time slot that last time receives the data packet sent from equipment;
When the duration between the time slot and current time slots that last time receives the data packet sent from equipment reaches preset duration,
Suspend mode is in from equipment described in determining.
Optionally, the preset duration is that continuous N number of connection event is given out a contract for a project period corresponding duration, and N is positive integer.
Optionally, the N=10.
Optionally, the judging unit is also used to: be in suspend mode from equipment when detecting described, and described in receiving
After the reply data packet that equipment is sent, rejudge described whether be in suspend mode from equipment.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantage that
When a slave is in the park mode, main equipment is given out a contract for a project period execution T times every M connection event and is sent out to from equipment
Send the operation of connection event, i.e., give out a contract for a project in the period in (T+M) a connection event, wherein M connection event give out a contract for a project the period not to
From equipment send connection event, only T connection event give out a contract for a project the period to from equipment transmission the Connection Time, when so as to save
Gap resource.
Detailed description of the invention
Fig. 1 is the flow chart of one of embodiment of the present invention bluetooth equipment data transmission method;
Fig. 2 is the structural schematic diagram of one of embodiment of the present invention bluetooth equipment data transmission device.
Specific embodiment
Main equipment (Master) is received when being in suspend mode (sleep) mode from equipment according to existing Bluetooth protocol
After the data packet of transmission, corresponding reply data packet is sent to main equipment, and receive main equipment again after certain interval of time
The data packet of transmission, when interval, a length of latency × ConnInterval, latency were giving out a contract for a project the period from the delay of equipment
Number, ConnInterval is that main equipment is given out a contract for a project the period.However, bluetooth low energy device is connecting in certain scenes
When latency parameter value may be larger, while ConnInterval is shorter, when a slave is in the park mode, main equipment frequency
Data packet is sent to from equipment in each connection event point numerously, therefore there are the wastes of time interval resource.
In embodiments of the present invention, when a slave is in the park mode, main equipment is given out a contract for a project the period every M connection event
T times is executed to the operation for sending connection event from equipment, i.e., is given out a contract for a project in the period in (T+M) a connection event, wherein M connection thing
Part gives out a contract for a project the period not to from equipment transmission connection event, only gives out a contract for a project the period to when sending connection from equipment in T connection event
Between, so as to save time interval resource.
It is understandable to enable the above objects, features, and advantages of the embodiment of the present invention to become apparent, it is right with reference to the accompanying drawing
Specific embodiments of the present invention are described in detail.
The embodiment of the invention provides a kind of bluetooth equipment data transmission methods, referring to Fig.1, below by way of specific steps into
Row is described in detail.
Step S101 judges whether be in suspend mode from equipment.
In embodiments of the present invention, when a slave is in the park mode, step S102 can be executed;Otherwise, when from setting
It is standby to be not in suspend mode, for example, when carrying out service interaction with main equipment from equipment, then it can be with end operation process.
In practical applications, can by obtain last time receive from the time slot of the data packet that equipment is sent with it is current when
Interval duration between gap judges whether be in suspend mode from equipment.When being spaced duration less than preset duration, then determine
Suspend mode is currently not yet in from equipment;When duration reaches preset duration when interval, that is, it can determine that and be currently at not from equipment
Sleep mode.
In embodiments of the present invention, main equipment end can send connection thing to from equipment according to preset period timing of giving out a contract for a project
Part.When main equipment detects that continuous N number of period of giving out a contract for a project does not receive from the reply data that equipment is fed back, determine from equipment
In suspend mode.Wherein, N and the product in period of giving out a contract for a project are preset duration.
In practical applications, the value range of N can be set according to the actual situation.In an embodiment of the present invention, N is set
=10, i.e., when not receiving from the reply data that equipment is fed back in main equipment continuous 10 periods of giving out a contract for a project, that is, determine from equipment
In suspend mode.
In an embodiment of the present invention, it is received according to current time corresponding clock count value and the last time from setting
The corresponding clock count value of reply data packet that preparation is sent, to judge whether receiving the corresponding response of a upper connection event
Data packet.
Current time corresponding clock count value is Current_clks, and the last time receives the response sent from equipment
The corresponding clock count value of data packet is last_clks.The difference that Current_clks and last_clks are subtracted each other, and will be obtained
Value is divided by ConnInterval, when obtained quotient is greater than 1, namely when (Current_clks-last_clks)/
When ConnInterval > 1, then determine main equipment it is upper once to opposite equip. send connection event after, do not receive from
The reply data of equipment feedback.
Step S102 gives out a contract for a project the period every M connection event, continuous T time to it is described from equipment send connection event and
Monitor the operation of the reply data packet sent from equipment.
By existing Bluetooth protocol it is found that when a slave is in the park mode, every latency × ConnInterval to
Main equipment sends a reply data packet.But when from suspend mode normal industry is switched to from equipment due to unpredictable
Be engaged in interactive mode, to ensure being normally carried out for service interaction, main equipment can not every latency × ConnInterval just to from
Equipment sends a connection event.
In embodiments of the present invention, when detect be in suspend mode from equipment after, can be sent every M connection event
Period, then continuous T connection event give out a contract for a project the period to from equipment send connection event and monitor whether receive from equipment send out
The reply data packet sent, M, N are positive integer.
That is, latency connection event period of giving out a contract for a project is divided into latency/ (T+M) a period, i.e., each
Period includes that T+M connection event is given out a contract for a project the period, wherein preceding M connection event is given out a contract for a project, the period is not attached the hair of event
It send, is only attached the transmission of event in rear T connection event period of giving out a contract for a project.
For example, latency=100, T=4, M=6, then 100 connection events period of giving out a contract for a project is divided into 100/10=10
A period, each period include that 10 connection events are given out a contract for a project the period, wherein preceding 6 connection events are given out a contract for a project, the period is not attached
The transmission of event is only attached the transmission of event in rear 4 connection events period of giving out a contract for a project.
In embodiments of the present invention, T and M can be set according to actual application scenarios.For example, T=can be set
4, M=6;T=5, M=5 etc. can also be set.
Give out a contract for a project the period to during sending connection event from equipment, when receiving from equipment in continuous T connection event
When the reply data packet of transmission, it is possible to determine that normal service interaction mode currently has been switched to from suspend mode from equipment,
S101 is re-execute the steps to rejudge from whether equipment is in suspend mode.
In existing Bluetooth protocol, main set is not received within latency periods of giving out a contract for a project when detecting from equipment
After the connection event that preparation is sent, it is both needed to monitor whether main equipment sends connection thing in each Connection Time point later from equipment
Part, to ensure the normal work of link.
In the prior art, when a slave is in the park mode, it is received successively every latency × ConnInterval
The connection event data packet that main equipment is sent.And since main equipment can not be known from when equipment can switch to just from suspend mode
Normal business model, therefore, main equipment with preset connection event give out a contract for a project the period timing to from equipment send connection event, with prison
Accept whether equipment initiates business.However, main equipment continually sends data packet to from equipment in each connection event point, lead
Cause the waste of time interval resource.
And in embodiments of the present invention, when a slave is in the park mode, main equipment is given out a contract for a project week every M connection event
Phase executes T times to the operation for sending connection event from equipment, i.e., gives out a contract for a project in the period in (T+M) a connection event, wherein M connection
Event give out a contract for a project the period not to from equipment send connection event, only T connection event give out a contract for a project the period to from equipment send connection
Time, so as to save time interval resource.
For example, T=4, M=6, latency=100, then in the prior art, when a slave is in the park mode, main
Equipment, which receives, once need to send 100 connection events from the reply data that equipment is fed back.And in embodiments of the present invention, when from
When equipment is in suspend mode, main equipment, which receives, successively need to only send 40 connection events from the reply data that equipment is fed back,
Therefore the bluetooth equipment data transmission method provided in the embodiment of the present invention can be effectively saved time interval resource.
In practical applications, saved time interval resource can supply the use of other links.If in total with WIFI
Under the mode deposited, saved time interval resource can be supplied into WIFI and used, the handling capacity of WIFI can be improved.
Referring to Fig. 2, the embodiment of the invention provides a kind of bluetooth equipment data transmission devices 20, comprising: judging unit 201
And control unit 202, in which:
Judging unit 201, for judging whether be in suspend mode from equipment;
Control unit 202, for when detect it is described be in suspend mode from equipment when, give out a contract for a project every M connection event
Period continuously performs T times and sends the reply data packet sent described in connection event and monitoring from equipment from equipment to described
Operation, M, T are positive integer.
In specific implementation, the judging unit 201 can be used for: obtain described in last time reception from equipment transmission
The time slot of data packet;When between the time slot and current time slots that last time receives the data packet sent from equipment when be up to
When to preset duration, determine described to be in suspend mode from equipment.
In specific implementation, the preset duration is that continuous N number of connection event is given out a contract for a project period corresponding duration, and N is positive
Integer.
In specific implementation, the N=10.
In specific implementation, the judging unit 201 can be also used for: be in suspend mode mould from equipment when detecting described
Formula, and receive described after the reply data packet that equipment is sent, rejudge described whether be in suspend mode from equipment.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: ROM, RAM, disk or CD etc..
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 (10)
1. a kind of bluetooth equipment data transmission method characterized by comprising
Judge whether be in suspend mode from equipment;
When detect it is described be in suspend mode from equipment when, give out a contract for a project the period every M connection event, continuously perform T times to institute
It states and sends connection event from equipment and monitor the operation of the reply data packet sent from equipment, M, T are positive integer.
2. bluetooth equipment data transmission method as described in claim 1, which is characterized in that whether the judgement is in from equipment
Suspend mode, comprising:
Obtain the time slot that last time receives the data packet sent from equipment;
When the duration between the time slot and current time slots that last time receives the data packet sent from equipment reaches default
When long, judgement is described to be in suspend mode from equipment.
3. bluetooth equipment data transmission method as claimed in claim 2, which is characterized in that the preset duration is continuous N number of
Connection event is given out a contract for a project period corresponding duration, and N is positive integer.
4. bluetooth equipment data transmission method as claimed in claim 3, which is characterized in that the N=10.
5. bluetooth equipment data transmission method as described in claim 1, which is characterized in that further include: when detect it is described from
Equipment is in suspend mode, and receive it is described after the reply data packet that equipment is sent, rejudge it is described from equipment whether
In suspend mode.
6. a kind of bluetooth equipment data transmission device characterized by comprising
Judging unit, for judging whether be in suspend mode from equipment;
Control unit, for when detect it is described be in suspend mode from equipment when, give out a contract for a project the period every M connection event, company
It is continuous to execute T times to the operation for sending connection event and the monitoring reply data packet sent from equipment from equipment, M, T
It is positive integer.
7. bluetooth equipment data transmission device as claimed in claim 6, which is characterized in that the judging unit is used for: obtaining
Last time receives the time slot of the data packet sent from equipment;When last time receives the data packet sent from equipment
Time slot and current time slots between duration when reaching preset duration, determine described to be in suspend mode from equipment.
8. bluetooth equipment data transmission device as claimed in claim 7, which is characterized in that the preset duration is continuous N number of
Connection event is given out a contract for a project period corresponding duration, and N is positive integer.
9. bluetooth equipment data transmission device as claimed in claim 8, which is characterized in that the N=10.
10. bluetooth equipment data transmission device as claimed in claim 6, which is characterized in that the judging unit is also used to: when
Detect it is described be in suspend mode from equipment, and receive described after the reply data packet of equipment transmission, rejudge institute
It states from whether equipment is in suspend mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510627503.6A CN106559861B (en) | 2015-09-28 | 2015-09-28 | Bluetooth equipment data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510627503.6A CN106559861B (en) | 2015-09-28 | 2015-09-28 | Bluetooth equipment data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106559861A CN106559861A (en) | 2017-04-05 |
CN106559861B true CN106559861B (en) | 2019-11-05 |
Family
ID=58415670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510627503.6A Active CN106559861B (en) | 2015-09-28 | 2015-09-28 | Bluetooth equipment data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106559861B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587666B (en) * | 2018-11-22 | 2022-07-26 | 重庆物奇科技有限公司 | Bluetooth device, system and scheduling method |
CN112437369B (en) * | 2020-07-27 | 2022-03-29 | 珠海市杰理科技股份有限公司 | Audio data transmission method and system, TWS earphone pair, chip and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547939A (en) * | 2010-12-30 | 2012-07-04 | 三星电子株式会社 | Keep-alive packet transmission method and apparatus of mobile terminal |
CN102932757A (en) * | 2012-09-25 | 2013-02-13 | 百度在线网络技术(北京)有限公司 | Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system |
CN103472904A (en) * | 2013-08-30 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method and device for intelligently adjusting multiple timers |
CN104703259A (en) * | 2013-12-10 | 2015-06-10 | 深圳先进技术研究院 | Low-power-consumption sensor node hibernation method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9086323B2 (en) * | 2013-12-19 | 2015-07-21 | Jie Lian | UV dosimetry system for measuring vitamin D production |
-
2015
- 2015-09-28 CN CN201510627503.6A patent/CN106559861B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547939A (en) * | 2010-12-30 | 2012-07-04 | 三星电子株式会社 | Keep-alive packet transmission method and apparatus of mobile terminal |
CN102932757A (en) * | 2012-09-25 | 2013-02-13 | 百度在线网络技术(北京)有限公司 | Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system |
CN103472904A (en) * | 2013-08-30 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method and device for intelligently adjusting multiple timers |
CN104703259A (en) * | 2013-12-10 | 2015-06-10 | 深圳先进技术研究院 | Low-power-consumption sensor node hibernation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106559861A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10091307B2 (en) | Application management method and terminal | |
CN106559735B (en) | Blue-teeth data sending control method and device | |
CN104604323B (en) | Change method, mobile device and the readable storage medium storing program for executing of mobile device communication state | |
CN106559737B (en) | Bluetooth operating mode switching control method and device | |
CN108513342B (en) | Scheduling method of Internet of things terminal, base station and Internet of things terminal | |
EP3286572B1 (en) | Method and system for optimizing execution of user commands in relation to power management | |
WO2013023364A1 (en) | Power control method, base station and terminal equipment | |
EP2666313A1 (en) | Adaptive peer discovery based on non peer discovery transmissions and device density for wi-fi | |
CN108156651B (en) | Switching control method and system between radio silent state and transmission state | |
CN106559861B (en) | Bluetooth equipment data transmission method and device | |
CN104186013B (en) | A kind of data processing equipment and method | |
CN106471747B (en) | Method for node synchronization in frequency hopping wireless networks | |
CN104469902B (en) | The method and device of RRC connection status between a kind of control UE and network side | |
CN106559736B (en) | Bluetooth equipment connects control method and device | |
CN110928586B (en) | APP background keep-alive method and device | |
CN106559811B (en) | Bluetooth data reception control method and device | |
CN102222036A (en) | Automatic testing method and equipment | |
JP2013251739A (en) | Communication device and control method for the same | |
CN102710470B (en) | A kind of M2M communication means and treatment facility | |
TW201347578A (en) | Information transmission method and system, and device with sleeping function | |
CN109274546A (en) | A kind of scheduling method for timer and device | |
CN109413713B (en) | Data reporting method, data receiving method, terminal and server | |
CN103427941A (en) | Method and device for sending data packet and terminal device | |
JP2013190879A (en) | Computer system and system control method | |
EP2963859B1 (en) | Idle scheduling method and home network node |
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 |