CN113115284B - Data transmission method of Bluetooth system - Google Patents

Data transmission method of Bluetooth system Download PDF

Info

Publication number
CN113115284B
CN113115284B CN202110252628.0A CN202110252628A CN113115284B CN 113115284 B CN113115284 B CN 113115284B CN 202110252628 A CN202110252628 A CN 202110252628A CN 113115284 B CN113115284 B CN 113115284B
Authority
CN
China
Prior art keywords
parameter
slave device
state
equal
connection
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
Application number
CN202110252628.0A
Other languages
Chinese (zh)
Other versions
CN113115284A (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.)
Chengdu Sydtek Microelectronics Co ltd
Original Assignee
Chengdu Sydtek Microelectronics 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 Chengdu Sydtek Microelectronics Co ltd filed Critical Chengdu Sydtek Microelectronics Co ltd
Priority to CN202110252628.0A priority Critical patent/CN113115284B/en
Publication of CN113115284A publication Critical patent/CN113115284A/en
Application granted granted Critical
Publication of CN113115284B publication Critical patent/CN113115284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/26Resource reservation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • 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
    • 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)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a data transmission method of a Bluetooth system, and relates to the technical field of low-power-consumption Bluetooth systems. The method comprises the following steps: the master device sends a data packet to the slave device through the connection link, the slave device receives the data packet, and records the current connection event count; the master device and the slave device negotiate to preset the value of a first parameter, and the slave device enters a state of skipping continuous connection events according to the first parameter; when the state of the connection link needs to be updated, the master device sends a second parameter to the slave device, and the slave device records the second parameter; the slave device judges whether the current connection event count is equal to the second parameter: if the current connection event count is not equal to the second parameter, setting a third parameter, and enabling the slave equipment to enter a state of skipping continuous connection events according to the third parameter until the current connection event count is equal to the second parameter; and if the connection link state is equal to the skip connection event state, the skip connection event state is exited, and the connection link state is updated. The invention reduces the system power consumption by using the third parameter to skip consecutive connection events.

Description

Data transmission method of Bluetooth system
Technical Field
The invention relates to the technical field of a low-power-consumption Bluetooth system, in particular to a data transmission method of a Bluetooth system.
Background
In a BLE (Bluetooth Low Energy) system, devices at both ends of a connection link are called a master and a slave.
In the connected state, the master device controls the timing of the connection event. The master and slave will maintain a connection event at a fixed interval. Every time the connection event starts, the master device sends a packet first, the slave device waits for receiving the packet sent by the master device, and the slave device needs to respond to one packet after receiving the packet sent by the master device.
There is a parameter Latency in the connection link, and the meaning of the parameter Latency is that the slave device can skip how many connection events and then respond to the master device, that is, skip consecutive connection events. The slave device can delay responding to the master device by setting the value of the parameter Latency, so that the system operation power consumption is reduced, and the value of the parameter Latency is obtained by the negotiation between the master device and the slave device.
When the master device needs to update the link connection state, a parameter instance is sent to the slave device to inform the slave device of an update time point, in order to ensure that the slave device can receive the parameter instance before the update time point, the value of the parameter instance is usually greater than the value of the parameter latency, and the slave device exits from the parameter latency after receiving the parameter instance until the update time point arrives.
In this case, when the slave device receives the parameter instance, the farther from the update time point, the longer the waiting time is, and the slave device will continuously keep responding to the master device during the waiting time, which may greatly increase the operating power consumption of the BLE system.
Disclosure of Invention
The invention mainly aims to provide a data transmission method of a Bluetooth system, aiming at reducing the running power consumption of the Bluetooth system.
In order to achieve the above object, the present invention provides a data transmission method of a bluetooth system, comprising the following steps:
the method comprises the steps that a master device sends a data packet to a slave device through a connection link, and the slave device receives the data packet and records current connection event count;
the master device and the slave device negotiate a preset value of a first parameter, and the slave device enters a state of skipping continuous connection events according to the first parameter;
when the state of a connection link needs to be updated, the master device sends a second parameter to the slave device, and the slave device records the second parameter;
the slave device judges whether the current connection event count is equal to the second parameter:
if the current connection event count is not equal to the second parameter, setting a third parameter, and enabling the slave equipment to enter a state of skipping continuous connection events according to the third parameter until the current connection event count is equal to the second parameter;
and if the connection state is equal to the skip-continuous connection event state, the slave equipment exits the skip-continuous connection event state and updates the connection link state.
Preferably, the setting of the third parameter includes:
and setting a third parameter according to the current connection event count, the second parameter and the number of reserved continuous events.
Preferably, the third parameter is equal to the second parameter minus the current connection event count and the number of reserved consecutive events.
Preferably, the number of reserved consecutive events is an integer greater than or equal to 1.
Preferably, the number of reserved consecutive events is equal to 1.
Preferably, if the current connection event count is not equal to the second parameter, setting a third parameter further includes:
if the value of the third parameter is larger than the value of the first parameter, making the value of the third parameter equal to the value of the first parameter;
if the value of the third parameter is less than zero, making the third parameter equal to zero;
and if the value of the third parameter is larger than zero and smaller than the first parameter, the slave equipment enters a state of skipping continuous connection events according to the third parameter.
Preferably, the first parameter is a parameter latency, and the first parameter is used for delaying the slave device from responding to the master device;
the second parameter is a parameter instant, and the second parameter is used for enabling the master device to inform the slave device of a link update time point.
According to the technical scheme, the third parameter is set by judging whether the current connection event count is equal to the second parameter, the slave equipment uses the third parameter to skip continuous connection events, updating time points cannot be missed, and meanwhile, the number of the connection events can be skipped to the maximum extent to reduce the system power consumption.
Drawings
FIG. 1 is a timing diagram of connection events between a master device and a slave device;
FIG. 2 is a schematic flow chart of a data transmission method of the Bluetooth system of the present invention;
FIG. 3 is a timing diagram of a slave device skipping successive connection events according to a first parameter;
FIG. 4 is a timing diagram illustrating a connection event at a point in time when a slave device waits for an update after receiving a second parameter;
FIG. 5 is a timing diagram illustrating the slave device skipping consecutive connection events using a third parameter according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The invention is further described below with reference to the accompanying drawings.
As shown in fig. 1, in the bluetooth low energy system, both end devices of a connection link are called a master device M and a slave device S. In the connected state, the master M will control the timing of the connection event. The master M and the slave S maintain the connection event at a preset fixed interval. Each time a connection event starts, the master M first sends a packet, the slave S waits to receive the packet sent by the master M, and the slave S needs to respond to one packet after receiving the packet sent by the master M. Each time the connection event is completed, the connection event count is incremented by 1, and both the master M and the slave S update the connection event count simultaneously.
An embodiment of the present invention provides a data transmission method for a bluetooth system, as shown in fig. 2, including the following steps:
the method comprises the steps that a master device M sends a data packet to a slave device S through a connection link, and the slave device S receives the data packet and records current connection event count; the master device M and the slave device S negotiate a preset value of a first parameter, and the slave device S enters a state of skipping continuous connection events according to the first parameter.
In an embodiment, the first parameter is a parameter latency, and the first parameter is used for the slave device S to delay responding to the master device M.
Specifically, as shown in fig. 3, the power consumption of the slave device S is mainly concentrated on the receive packet and the response packet in each connection event, and consecutive connection events are skipped according to the first parameter, so that the power consumption can be greatly reduced. The value range of the first parameter is 0 to 499, the first parameter being equal to 0 indicates that each connection event of the slave device S needs to be responded, and the first parameter being n indicates that the slave device S responds to the master device M after skipping n connection events.
When the state of a connection link needs to be updated, the master device M sends a second parameter to the slave device S, and the slave device S records the second parameter;
in some embodiments, the second parameter is an instant parameter, and the second parameter is used for the master device M to inform the slave device S of the link update time point.
Specifically, the master device M may frequently update the connection link status according to the actual usage environment. As shown in fig. 4, when the master device M needs to update the connection link state, a second parameter is sent to the slave device S to notify the slave device S of an update time point, in order to ensure that the slave device S can receive the second parameter before the update time point, the second parameter is usually greater than the first parameter, and the slave device S exits from skipping a continuous connection event state after receiving the second parameter until the update time point arrives. The second parameter is a future connection event count value.
After the slave device S receives the second parameter and a period of time before the update time point arrives, the slave device S determines whether the current connection event count is equal to the second parameter:
as shown in fig. 5, if they are not equal, setting a third parameter according to the current connection event count, the second parameter and the number of reserved consecutive events, where the third parameter is equal to the number obtained by subtracting the current connection event count and the number of reserved consecutive events from the second parameter, and the slave device S enters a state of skipping consecutive connection events according to the third parameter until the current connection event count is equal to the second parameter;
and if the connection state is equal to the skip-continuous connection event state, the slave device S exits the skip-continuous connection event state and updates the connection link state.
Specifically, as shown in fig. 5, the slave device S does not directly exit the state of skipping the consecutive connection events within a period of time before the update time point arrives after receiving the second parameter, but calculates a new parameter latency, that is, a third parameter, and the slave device S continues skipping the consecutive connection events until the update time point using the third parameter. After the link state is updated synchronously at the updating time point, the slave device S enters a state of skipping continuous connection events by using the first parameter according to the link state, and the third parameter is not used any more. And when the state of the connection link needs to be updated again, recalculating a new third parameter for use.
In some embodiments, the number of reserved consecutive events is an integer greater than or equal to 1.
In a preferred embodiment, the number of reserved consecutive events is equal to 1.
In a specific embodiment, if the current connection event count is not equal to the second parameter, setting a third parameter further includes:
if the value of the third parameter is larger than the value of the first parameter, making the value of the third parameter equal to the value of the first parameter;
if the value of the third parameter is less than zero, making the third parameter equal to zero;
and if the value of the third parameter is greater than zero and smaller than the first parameter, the slave device S enters a state of skipping continuous connection events according to the third parameter.
In the embodiment of the present invention, the calculation manner of the third parameter can ensure that the calculated third parameter is optimized, and after the slave device S uses the third parameter to skip consecutive connection events, the update time point is not missed, and the number of connection events to be skipped can be maximized to reduce the power consumption of the system.
In a specific embodiment, taking the application of bluetooth low energy remote controller as an example (not limited to this application), when the power consumption needs to be reduced as much as possible when no key is pressed, and when the response is to be made as soon as possible during operation, in this scenario, the typical parameter is configured to be 7.5ms apart from the connection event, the first parameter is set to 134, the slave device S responds to the master device M once in about 1S, when the master device M updates the connection link status once every 30S, the preset number of reserved consecutive events is equal to 1, and the third parameter is smaller than or equal to the first parameter, in this case, the third parameter may be 0 to 134.
When the method of this embodiment is not used, the minimum number of connection events responded by the slave device S is 30, the maximum number of connection events is 30+134=164, and the average value is 97 in 30S; when the method of the embodiment is adopted, the minimum number of the connection events responded by the slave device S is 30 and the maximum number is 31 within 30S; therefore, in the application, the power consumption is reduced by about 70% compared with the prior art when the method of the embodiment of the invention is adopted.
It should be understood that the above is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent flow transformations made by the present specification and drawings, or applied directly or indirectly to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. A data transmission method of a Bluetooth system is characterized by comprising the following steps:
the method comprises the steps that a master device sends a data packet to a slave device through a connection link, and the slave device receives the data packet and records current connection event count;
the master device and the slave device negotiate a preset value of a first parameter, and the slave device enters a state of skipping continuous connection events according to the first parameter;
when the state of a connection link needs to be updated, the master device sends a second parameter to the slave device, and the slave device records the second parameter;
the slave device judges whether the current connection event count is equal to the second parameter:
if the current connection event count is not equal to the second parameter, setting a third parameter according to the current connection event count, the second parameter and the number of reserved continuous events, wherein the third parameter is equal to the number obtained by subtracting the current connection event count and the number of reserved continuous events from the second parameter, and the slave device enters a state of skipping continuous connection events according to the third parameter until the current connection event count is equal to the second parameter;
and if the connection state is equal to the skip-continuous connection event state, the slave equipment exits the skip-continuous connection event state and updates the connection link state.
2. The data transmission method of the bluetooth system, according to claim 1, wherein the number of reserved consecutive events is an integer of 1 or more.
3. The data transmission method of the bluetooth system according to claim 2, wherein the number of reserved consecutive events is equal to 1.
4. The method of claim 1, wherein if the current connection event count is not equal to the second parameter, setting a third parameter further comprises:
if the value of the third parameter is larger than the value of the first parameter, making the value of the third parameter equal to the value of the first parameter;
if the value of the third parameter is less than zero, making the third parameter equal to zero;
and if the value of the third parameter is larger than zero and smaller than the first parameter, the slave equipment enters a state of skipping continuous connection events according to the third parameter.
5. The data transmission method of claim 1, wherein the first parameter is a parameter latency, and the first parameter is used for the slave device to delay responding to the master device;
the second parameter is a parameter instant, and the second parameter is used for enabling the master device to inform the slave device of a link update time point.
CN202110252628.0A 2021-03-09 2021-03-09 Data transmission method of Bluetooth system Active CN113115284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110252628.0A CN113115284B (en) 2021-03-09 2021-03-09 Data transmission method of Bluetooth system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110252628.0A CN113115284B (en) 2021-03-09 2021-03-09 Data transmission method of Bluetooth system

Publications (2)

Publication Number Publication Date
CN113115284A CN113115284A (en) 2021-07-13
CN113115284B true CN113115284B (en) 2023-03-10

Family

ID=76710706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110252628.0A Active CN113115284B (en) 2021-03-09 2021-03-09 Data transmission method of Bluetooth system

Country Status (1)

Country Link
CN (1) CN113115284B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013179982A1 (en) * 2012-05-30 2013-12-05 日本電気株式会社 Information processing system, information processing method, information processing device, mobile terminal, and method and program for controlling mobile terminal
CN105451369A (en) * 2015-12-04 2016-03-30 小米科技有限责任公司 Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN105575089A (en) * 2015-12-21 2016-05-11 小米科技有限责任公司 Remote control method, device, apparatus and system
CN106060772A (en) * 2016-08-10 2016-10-26 乐视控股(北京)有限公司 Method and device for configuring WIFI parameter
CN110892748A (en) * 2019-10-14 2020-03-17 深圳市汇顶科技股份有限公司 Link processing method, device and storage medium
CN110913382A (en) * 2019-12-30 2020-03-24 上海登芯微电子科技有限公司 Communication network system capable of automatically adjusting transmitting power based on Bluetooth mesh
CN111491284A (en) * 2020-06-28 2020-08-04 深圳市中科蓝讯科技股份有限公司 Bluetooth B L E time delay optimization method, equipment and storage medium
CN112367647A (en) * 2020-09-27 2021-02-12 浙江三维万易联科技有限公司 Bluetooth connection parameter updating method and device, Bluetooth system and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8155055B2 (en) * 2007-09-14 2012-04-10 Sony Ericsson Mobile Communications Ab Automatic re-connection of a previously lost connection in a frequency hopping communication system
US9712266B2 (en) * 2013-05-21 2017-07-18 Apple Inc. Synchronization of multi-channel audio communicated over bluetooth low energy
US10397868B2 (en) * 2015-07-31 2019-08-27 Nintendo Co., Ltd. Wireless system, wireless device, non-transitory computer-readable storage medium having stored therein communication program, and communication method
CN106255047A (en) * 2016-09-20 2016-12-21 广东乐心医疗电子股份有限公司 Communication method of low-power-consumption Bluetooth self-adaptive intelligent mobile terminal
CN107277120B (en) * 2017-06-05 2019-12-17 广州视源电子科技股份有限公司 configuration file management method and device, and service configuration method and system
EP3474512B1 (en) * 2017-10-20 2022-08-24 Google LLC Controlling dual-mode bluetooth low energy multimedia devices
CN107844331B (en) * 2017-11-23 2021-01-01 腾讯科技(成都)有限公司 Method, device and equipment for generating boot configuration file
KR20210017327A (en) * 2019-08-07 2021-02-17 삼성전자주식회사 Apparatus and method for fast communication between mast and slave

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013179982A1 (en) * 2012-05-30 2013-12-05 日本電気株式会社 Information processing system, information processing method, information processing device, mobile terminal, and method and program for controlling mobile terminal
CN105451369A (en) * 2015-12-04 2016-03-30 小米科技有限责任公司 Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN105575089A (en) * 2015-12-21 2016-05-11 小米科技有限责任公司 Remote control method, device, apparatus and system
CN106060772A (en) * 2016-08-10 2016-10-26 乐视控股(北京)有限公司 Method and device for configuring WIFI parameter
CN110892748A (en) * 2019-10-14 2020-03-17 深圳市汇顶科技股份有限公司 Link processing method, device and storage medium
CN110913382A (en) * 2019-12-30 2020-03-24 上海登芯微电子科技有限公司 Communication network system capable of automatically adjusting transmitting power based on Bluetooth mesh
CN111491284A (en) * 2020-06-28 2020-08-04 深圳市中科蓝讯科技股份有限公司 Bluetooth B L E time delay optimization method, equipment and storage medium
CN112367647A (en) * 2020-09-27 2021-02-12 浙江三维万易联科技有限公司 Bluetooth connection parameter updating method and device, Bluetooth system and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Wireless sensor network survey;Jennifer Yick;《ScienceDirect》;20080822;全文 *
低功耗蓝牙4.2协议栈应用层设计与实现;王盼;《中国优秀硕士学位论文全文数据库》;20190515;全文 *
低功耗蓝牙BLE之连接事件、连接参数和更新方法;枫之星雨;《百度》;20160504;全文 *

Also Published As

Publication number Publication date
CN113115284A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN107465588B (en) State control method and device of multi-channel bus network and network management system
US9860684B2 (en) Dual-mode device and method for achieving the simultaneous communication therein
KR101370910B1 (en) Method for controlling power saving mode of UE in the mobile communication system
KR100922984B1 (en) Apparatus and method for controls slotted mode each systems using one sleep controller in hybrid mode terminal of mobile communication system
CN111328058B (en) Bluetooth Mesh low-power-consumption node dynamic awakening method
US7551592B2 (en) Power management method for creating deliver opportunities in a wireless communication system
EP2563039B1 (en) Device control system
US9300559B2 (en) Message processing method of gateway
CN113645155B (en) Intelligent radio arbiter with timing predictability based conflict resolution
CN109314630B (en) Link processing method, device and storage medium
CN112165413B (en) Equipment state reporting method and device and electronic device
CN112887946B (en) BLE equipment control method and device
CN113115284B (en) Data transmission method of Bluetooth system
CN107027161B (en) Method, access point and station for data transmission in wireless local area network
JP3911218B2 (en) Wireless communication method
CN107820277B (en) Parent node device for wireless network, terminal device and data transmission method thereof
CN110892748A (en) Link processing method, device and storage medium
JP2016225791A (en) On-vehicle network system
CN113905075B (en) Control system and method for cloud robot in 5G environment
CN107783824B (en) Method for controlling intelligent household equipment and server device
CN102013940A (en) Method and device for controlling length of random message
JP6491998B2 (en) Switching timing adjustment method and communication apparatus
EP4125295A1 (en) Time synchronization in wireless networks
EP4358636A1 (en) Link maintenance method, apparatus, and system, terminal, and readable storage medium
KR20080027734A (en) Method to operate control sleep mode in a communication system

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