CN111417100A - Automatic connection and control method for Bluetooth low-power-consumption equipment - Google Patents

Automatic connection and control method for Bluetooth low-power-consumption equipment Download PDF

Info

Publication number
CN111417100A
CN111417100A CN202010278916.9A CN202010278916A CN111417100A CN 111417100 A CN111417100 A CN 111417100A CN 202010278916 A CN202010278916 A CN 202010278916A CN 111417100 A CN111417100 A CN 111417100A
Authority
CN
China
Prior art keywords
bluetooth
hogp
protocol
bluetooth low
low energy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010278916.9A
Other languages
Chinese (zh)
Inventor
范锐
周殿锋
邱文庆
朱勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Barrot Wireless Co Ltd
Original Assignee
Barrot Wireless 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 Barrot Wireless Co Ltd filed Critical Barrot Wireless Co Ltd
Priority to CN202010278916.9A priority Critical patent/CN111417100A/en
Publication of CN111417100A publication Critical patent/CN111417100A/en
Pending legal-status Critical Current

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
    • 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/0245Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal according to signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • 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

Abstract

The invention discloses a method for automatically connecting and controlling Bluetooth low-power consumption equipment, which belongs to the technical field of Bluetooth wireless communication and comprises a step of adding a HOGP (hyper text gateway protocol), a step of automatically connecting and a step of controlling, wherein when the Bluetooth signal intensity of Bluetooth central equipment is more than or equal to a preset threshold value, the Bluetooth low-power consumption equipment with the HOGP is started, and if the Bluetooth signal intensity is less than the preset threshold value, the Bluetooth low-power consumption equipment with the HOGP is closed, wherein the Bluetooth central equipment is one of a mobile phone, an iPad and a computer, and can still realize automatic connection with B L E equipment without APP and control the functions of B L E equipment such as opening and closing.

Description

Automatic connection and control method for Bluetooth low-power-consumption equipment
Technical Field
The invention relates to the technical field of Bluetooth wireless communication, in particular to an automatic connection and control method for Bluetooth low-power-consumption equipment.
Background
During the process of establishing communication between the Bluetooth device and the mobile phone, the traditional Bluetooth device can display in the setting of the mobile phone and can actively connect back to the mobile phone after being disconnected with the mobile phone, but the power consumption of the traditional Bluetooth is larger, so that Bluetooth low-power devices (Bluetooth L ow Energy, B L E for short) are more and more favored.
In the prior art, if a mobile phone, an iPad or a computer is connected with a B L E device, the B L E device can only start broadcasting to wait for the mobile phone, the iPad or the computer to initiate connection, and cannot be connected back to the mobile phone, the iPad or the computer.
Disclosure of Invention
The invention aims to solve the technical problem of providing an automatic connection and control method of Bluetooth low-power-consumption equipment, which can enable a mobile phone, an iPad or a computer to be automatically connected with B L E equipment without APP and control the functions of B L E equipment such as on-off and the like.
In order to achieve the above object, the first technical solution adopted by the present invention is: a method for automatically connecting and controlling a low-power consumption Bluetooth device comprises the steps of adding a HOGP protocol, and adding the HOGP protocol into the Bluetooth low-power consumption device; automatically connecting, namely, the Bluetooth center equipment and the Bluetooth low-power consumption equipment with the HOGP protocol are connected through Bluetooth, and if the Bluetooth center equipment and the Bluetooth low-power consumption equipment with the HOGP protocol are disconnected or the connection is overtime, the Bluetooth center equipment and the Bluetooth low-power consumption equipment with the HOGP protocol which is disconnected or overtime are re-connected; after connection is successful, the Bluetooth low-power consumption equipment with the HOGP protocol detects the Bluetooth signal intensity of the Bluetooth center equipment in real time, if the Bluetooth signal intensity is greater than or equal to a preset threshold value, the Bluetooth low-power consumption equipment with the HOGP protocol is started, and if the Bluetooth signal intensity is smaller than the preset threshold value, the Bluetooth low-power consumption equipment with the HOGP protocol is stopped; wherein, the bluetooth center equipment is one of cell-phone, iPad and computer.
The second technical scheme adopted by the invention is as follows: a computer readable storage medium storing computer instructions operable to perform a method for automatic connection and control of a bluetooth low energy device in scenario one.
The third technical scheme adopted by the invention is as follows: a computer device comprises a processor and a memory, wherein the memory stores computer instructions, and the processor operates the computer instructions to execute the method for automatically connecting and controlling the Bluetooth low energy device in the first scheme.
The method has the advantages that the HOGP protocol is added in the B L E equipment, the B L E equipment can be automatically searched and connected when the Bluetooth is opened, the connection is overtime or the connection is disconnected by a mobile phone, an iPad or a computer, so that the automatic connection is realized, and after the connection is successful, the B L E equipment judges the distance between the two equipment by detecting the Bluetooth signal intensity of the mobile phone, the iPad or the computer, and controls the automatic opening or closing of the B L E equipment.
Drawings
FIG. 1 is a process diagram of the method for automatic connection and control of a Bluetooth low energy device according to the present invention;
fig. 2 is a schematic timing diagram of an embodiment of a method for automatic connection and control of a bluetooth low energy device according to the present invention.
Detailed Description
In the prior art, each B L E equipment manufacturer has self-defined B L E services, but the self-defined services cannot be directly displayed on a setting-Bluetooth interface of a mobile phone, an iPad or a computer, when a user needs to connect the mobile phone, the iPad or the computer with the B L E equipment, an APP must be installed on the mobile phone, the iPad or the computer and opened to search, and then the B L E equipment is connected, HOGP is a protocol specified by a Bluetooth official party, the B L E equipment with the protocol can be displayed on the setting-Bluetooth interface of the mobile phone, the iPad or the computer, and the APP does not need to be downloaded by the mobile phone, the iPad or the computer.
In order to make the aforementioned features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. The detailed description is merely intended to facilitate an understanding of the invention, and the scope of the invention is not limited to the specific description in the specific embodiments.
Fig. 1 shows an embodiment of a method for automatically connecting and controlling a bluetooth low energy device according to the present invention, in which the method comprises the following steps:
step S101: a hop protocol step is added.
In one embodiment of the invention, the HOGP protocol is added to the B L E device.
The Bluetooth low power consumption (B L E) technology is a low-cost, short-distance, interoperable and robust wireless technology, and works in an unlicensed 2.4GHz ISM radio frequency band, which utilizes an intelligent means to reduce power consumption to the maximum extent.A B L E technology adopts a variable connection time interval, which can be set to be from several milliseconds to several seconds according to specific applications, and meanwhile, a B L E technology adopts a quick connection mode, so that the technology is in a 'non-connection' state in idle, and at the moment, two ends of a link only know each other, a link is opened only when working is necessary, and then the link is closed in the shortest possible time.
In one embodiment of the present invention, the B L E device may be a bluetooth headset, a bluetooth mouse, a bluetooth speaker, a bluetooth MP3, a bluetooth flash drive, a bluetooth adapter, a bluetooth CF card, a bluetooth bracelet, a sports watch, a weight scale, a pedometer, a smart bracelet, a sphygmomanometer, a printer, a bluetooth work card, or the like.
The Bluetooth center device can display B L E devices supporting a Bluetooth technology alliance SIG organization standard protocol in a setup-Bluetooth interface, and the HOGP protocol is one of the standard protocols, so that automatic connection of the Bluetooth center device and the B L E devices is achieved.
Step S102: and (5) automatically connecting.
In the specific embodiment, B L E equipment added with HOGP protocol broadcasts first, namely B L E equipment added with HOGP protocol continuously sends broadcast signals, the broadcast interval is t, each time a broadcast packet is sent, the broadcast packet can be called a broadcast event, B L E equipment added with HOGP protocol continuously sends the broadcast signals to Bluetooth center equipment, at the moment, the Bluetooth center equipment opens Bluetooth in a system-Bluetooth interface, namely opens a radio frequency receiving window and waits for a system search result, if the radio frequency receiving window of the Bluetooth center equipment is successfully matched with a transmitting window sent by broadcasting, the Bluetooth center equipment receives the broadcast signals, and at the moment, B L E equipment added with HOGP protocol appears in a list of the search result.
Since the pairing or binding success is a probabilistic event, the bluetooth center device scanning the B L E device added with the hopp protocol is also a probabilistic event, that is, the bluetooth center device may only need one broadcast event to scan the B L E device added with the hopp protocol, or the bluetooth center device may need several broadcast events or even more to scan the B L E device added with the hopp protocol.
The two devices are paired or bound within a certain time, at the moment, the Bluetooth center device sends a connection request, namely, the B L E device added with the HOGP protocol is clicked in a system-Bluetooth interface, and the Bluetooth center device receives a data packet sent by the B L E device added with the HOGP protocol, which indicates that the two devices are successfully connected.
Step S103: and (5) controlling.
The RSSI is too low, indicating that the signal received by the B L E device is too weak and that the two bluetooth devices may be disconnected at any time.
In the prior art, when a bluetooth center device scans a B L E device added with a hopp protocol, a bottom protocol stack will report an event to an upper layer, and parameters carried by the bottom protocol stack include an RSSI, because the RSSI changes during each connection event, after the two devices are connected, a data link layer LL C of the bluetooth center device sends an RSSI query request, LL C starts a received power integrating circuit (physical layer), and when the circuit finishes working and prepares data, a completion event is sent to the upper layer, and the RSSI can be obtained through the carried parameters.
In the prior art, the estimated distance between two bluetooth devices can be obtained by the following formula: d = 10^ (abs (RSSI) -A)/(10 × n)), wherein: d represents the calculated distance, RSSI represents the received signal strength (negative), a represents the signal strength at 1 meter separation between the transmitting and receiving ends, and n represents the ambient attenuation factor. The A value and the n value can be obtained only by field testing continuously, the environmental attenuation factors of different fields are different, and even the environmental attenuation factors are influenced to a great extent by the obstruction of objects in the same field. However, the default values of the parameters A and n are set at the same site, so that the relative distance between two Bluetooth devices can be roughly calculated.
In the specific embodiment, after the connection is successful, the B L E device with the HOGP protocol detects the bluetooth signal intensity of the bluetooth center device in real time, if the bluetooth signal intensity is greater than or equal to a preset threshold, that is, the distance between the B L E device with the HOGP protocol and the bluetooth center device is less than a preset distance, the B L E device with the HOGP protocol is turned on through parallel input and output PIO level hopping, and if the bluetooth signal intensity is less than the preset threshold, that is, the distance between the B L E device with the HOGP protocol and the bluetooth center device is greater than the preset distance, the B L E device with the HOGP protocol is turned off through parallel input and output PIO level hopping.
By utilizing the step, the automatic switch of the B L E equipment can be controlled by judging the distance between the Bluetooth center equipment and the B L E equipment with the HOGP protocol, the condition that a user forgets to close the B L E equipment is avoided, resources are saved, and meanwhile, the user can timely master the running condition of the B L E equipment.
As shown in FIG. 2, in the prior art, B L E equipment can automatically initiate broadcasting, but the broadcasting cannot be displayed on a Bluetooth interface of a mobile phone, an iPad or a computer, and APP installation and searching are required for the mobile phone, the iPad or the computer.
The various illustrative logics, logical blocks, and modules described in this disclosure as a method for automatic connection and control of bluetooth low energy devices may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the methods for automatic connection and control of bluetooth low energy devices herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The method for automatic connection and control of a bluetooth low energy device of the present invention may be implemented directly in hardware, in a software module executed by a processor, or in a combination of both. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
The above summary is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for automatic connection and control of Bluetooth low energy devices, comprising:
adding a HOGP protocol, namely adding the HOGP protocol into the Bluetooth low-power consumption equipment;
automatically connecting, namely, a Bluetooth center device and the Bluetooth low energy consumption device with the HOGP protocol are connected through Bluetooth, and if the Bluetooth center device is disconnected from or overtime connected with the Bluetooth low energy consumption device with the HOGP protocol, the Bluetooth center device is re-connected with the Bluetooth low energy consumption device with the HOGP protocol, which is disconnected or overtime connected with the Bluetooth low energy consumption device with the HOGP protocol; and
after connection is successful, the Bluetooth low-power consumption equipment with the HOGP protocol detects the Bluetooth signal intensity of the Bluetooth central equipment in real time, if the Bluetooth signal intensity is greater than or equal to a preset threshold value, the Bluetooth low-power consumption equipment with the HOGP protocol is started, and if the Bluetooth signal intensity is smaller than the preset threshold value, the Bluetooth low-power consumption equipment with the HOGP protocol is stopped;
wherein, the Bluetooth center equipment is one of a mobile phone, an iPad and a computer.
2. The method of claim 1, wherein the Bluetooth low energy device having the HOGP protocol is controlled to be turned on or off by parallel input and output level hopping.
3. The method of claim 1, wherein the distance between the bluetooth center device and the bluetooth low energy device having the HOGP protocol is determined according to the bluetooth signal strength.
4. The method of claim 1, wherein the preset threshold is a value obtained according to the condition of the bluetooth low energy device in practical application.
5. The method according to claim 1, wherein a connection process initiates a broadcast for the bluetooth low energy device with the HOGP protocol, then the bluetooth center device opens a bluetooth interface and performs a search operation, and finally the bluetooth center device is paired or bound with the bluetooth low energy device with the HOGP protocol, and the bluetooth center device establishes a connection with the bluetooth low energy device with the HOGP protocol.
6. The method of claim 1, wherein the bluetooth low energy device having the HOGP protocol comprises a bluetooth headset, a bluetooth MP3, a bluetooth flash drive, a bluetooth adapter, a bluetooth CF card, a bluetooth bracelet, a sports watch, a weight scale, a pedometer, a smart bracelet, a sphygmomanometer, a printer, and a bluetooth work card.
7. A computer readable storage medium storing computer instructions, wherein the computer instructions are operable to perform the method of bluetooth low energy device automatic connection and control of any of claims 1-6.
8. A computer device comprising a processor and a memory, the memory storing computer instructions, wherein:
the processor operates the computer instructions to perform the method of bluetooth low energy device automatic connection and control of any of claims 1-6.
CN202010278916.9A 2020-04-10 2020-04-10 Automatic connection and control method for Bluetooth low-power-consumption equipment Pending CN111417100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010278916.9A CN111417100A (en) 2020-04-10 2020-04-10 Automatic connection and control method for Bluetooth low-power-consumption equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010278916.9A CN111417100A (en) 2020-04-10 2020-04-10 Automatic connection and control method for Bluetooth low-power-consumption equipment

Publications (1)

Publication Number Publication Date
CN111417100A true CN111417100A (en) 2020-07-14

Family

ID=71494994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010278916.9A Pending CN111417100A (en) 2020-04-10 2020-04-10 Automatic connection and control method for Bluetooth low-power-consumption equipment

Country Status (1)

Country Link
CN (1) CN111417100A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135284A (en) * 2020-09-29 2020-12-25 北京百瑞互联技术有限公司 BLE-based non-inductive unlocking method and BLE equipment
CN114245481A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, Bluetooth headset and storage medium
CN114710753A (en) * 2022-03-23 2022-07-05 陈双平 Terminal Bluetooth switch control method and device
CN112135284B (en) * 2020-09-29 2024-05-03 北京百瑞互联技术股份有限公司 BLE-based non-inductive unlocking method and BLE equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338402A (en) * 2015-11-04 2016-02-17 北京数码视讯科技股份有限公司 Bluetooth connection method and apparatus
CN105812904A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Bluetooth module control method for playing devices and audio-video playing system
US20180115858A1 (en) * 2016-10-21 2018-04-26 Qualcomm Incorporated Systems and methods for connecting wireless communication devices
CN109270869A (en) * 2018-10-26 2019-01-25 四川爱联科技有限公司 Household electrical appliances automatic closing system and method based on bluetooth signal intensity
CN110366036A (en) * 2019-07-31 2019-10-22 移康智能科技(上海)股份有限公司 A kind of TV automatic switching system based on Bluetooth technology
WO2020024180A1 (en) * 2018-08-01 2020-02-06 华为技术有限公司 Bluetooth communication method, and dual-mode bluetooth terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338402A (en) * 2015-11-04 2016-02-17 北京数码视讯科技股份有限公司 Bluetooth connection method and apparatus
CN105812904A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Bluetooth module control method for playing devices and audio-video playing system
US20180115858A1 (en) * 2016-10-21 2018-04-26 Qualcomm Incorporated Systems and methods for connecting wireless communication devices
WO2020024180A1 (en) * 2018-08-01 2020-02-06 华为技术有限公司 Bluetooth communication method, and dual-mode bluetooth terminal
CN109270869A (en) * 2018-10-26 2019-01-25 四川爱联科技有限公司 Household electrical appliances automatic closing system and method based on bluetooth signal intensity
CN110366036A (en) * 2019-07-31 2019-10-22 移康智能科技(上海)股份有限公司 A kind of TV automatic switching system based on Bluetooth technology

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135284A (en) * 2020-09-29 2020-12-25 北京百瑞互联技术有限公司 BLE-based non-inductive unlocking method and BLE equipment
CN112135284B (en) * 2020-09-29 2024-05-03 北京百瑞互联技术股份有限公司 BLE-based non-inductive unlocking method and BLE equipment
CN114245481A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, Bluetooth headset and storage medium
CN114245481B (en) * 2021-12-27 2023-12-12 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, bluetooth headset and storage medium
CN114710753A (en) * 2022-03-23 2022-07-05 陈双平 Terminal Bluetooth switch control method and device

Similar Documents

Publication Publication Date Title
US8463183B2 (en) Headset charge via short-range RF communication
US8995914B2 (en) Vehicle portable device and information communication system
EP3790325B1 (en) Bluetooth - ultra wideband synchronization
KR101657314B1 (en) System and method for controlling audio using near field communication
WO2014204641A1 (en) Low energy wireless proximity pairing
US8909152B2 (en) Automatic-switching wireless communication system and method
KR20100042048A (en) Bluetooth connection method and apparatus
CN106385666A (en) Bluetooth anti-lost realization method
EP3764706A1 (en) Establishing communication for exchanging ranging information
US20230164868A1 (en) Method for changing rrc state, communication apparatus, and storage medium
KR101798706B1 (en) Application based connectivity event triggering
CN107852762A (en) Manage method, bluetooth master and the device of bluetooth connection
CN111417100A (en) Automatic connection and control method for Bluetooth low-power-consumption equipment
EP2891031B1 (en) Using bluetooth low energy
CN202049533U (en) Attendance system
CN112436985A (en) Network distribution method, device, terminal equipment and storage medium
CN104980882A (en) Method for calling NFC (Near Field Communication) in automatic power-on process of printing equipment and automatic Bluetooth pairing process
CN109379734A (en) Real-time control method, equipment, storage medium and the device of narrowband internet of things equipment
JP2003037865A (en) Radio communication terminal, computer program and transmission method of base station identification number
CN113298985A (en) RSSI-based digital key unlocking terminal positioning method and system
EP2814290A1 (en) Power efficient sensor accessory management through sensor subsystem
CN105487887B (en) Bluetooth starting method and Bluetooth device
US9370030B2 (en) Communication system, communication apparatus, and communication method
CN105763735B (en) User equipment and fast dormancy method
CN111149313A (en) Data transmission method and equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714