CN109413626A - Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically - Google Patents
Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically Download PDFInfo
- Publication number
- CN109413626A CN109413626A CN201811168750.4A CN201811168750A CN109413626A CN 109413626 A CN109413626 A CN 109413626A CN 201811168750 A CN201811168750 A CN 201811168750A CN 109413626 A CN109413626 A CN 109413626A
- Authority
- CN
- China
- Prior art keywords
- returning
- white list
- company
- bluetooth
- remote
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/08—Upper layer protocols
- H04W80/12—Application layer protocols, e.g. WAP [Wireless Application Protocol]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of remote Bluetooth devices white list and non-the white list company's of returning compatibility methods automatically, it include: in android system, the characteristics of can accessing and modify the same attribute value of system using bluetooth protocol repertory, that is, c layers and android application layer, that is, java layers, it is system property by the condition setting of switch mode, so as to switch the state of Auto-reconnect, the company's of returning state of Lai Guanli remote Bluetooth devices by the variation for changing attribute value.It improves Android device to support the gang mould formula of returning automatically of bluetooth equipment, optimizes back the use for not influencing other original subscribers while disjunctor is tested, while improving product competitiveness, improve stability.
Description
Technical field
The present invention relates to a kind of bluetooth equipments to return even method, and in particular to a kind of remote Bluetooth devices white list and non-white name
The single automatic company's of returning compatibility method.
Background technique
The intelligent terminal for relatively relying on bluetooth in Android system at present surely belongs to android intelligent sound TV, because of bluetooth
Voice data can be transmitted to television from remote controler end by remote controler, and IR remote controller and RF remote cannot be collected
Voice data.To improve the user experience, need to guarantee the common remote Bluetooth devices such as blue Tooth remote controller keep connection or
It being capable of Hui Lian at once after disconnection, it is seen that the suitable automatic company's of the returning mode of selection seems particularly significant.And conventional Hui Lian is divided into
Two ways, as shown in Fig. 1, including the BLE equipment white list Hui Lian and non-white list Hui Lian of bluetooth applications.The former company's of returning time
Fastly, the content that remote Bluetooth devices disconnect Shi Suofa broadcast packet but is not distinguished.The latter is slow the company's of returning time with respect to the former, but area
The content for dividing remote Bluetooth devices to disconnect Shi Suofa broadcast packet.
Different platform to remote Bluetooth devices automatically the company of returning require it is inconsistent, in order to realize the automatic Hui Lian of remote Bluetooth devices
Intelligent management.Just need for the two kinds of automatic company's of returning modes to be integrated into a system, setting one can allow application layer i.e.
The java layers and bluetooth protocol repertory, that is, C++ layers variable for accessing and changing simultaneously.And it needs to guarantee by with connect under application layer
When order, bluetooth protocol repertory cannot descend connect order to call conenct order to establish connection until receiving application layer;But work as
When being that BLE white list is returned even, upper layer application receives back and is not required to lower connect order when even wrapping, and directly establishes connection by fw.In order to
The switching of both methods dynamic does not influence platform to bluetooth equipment pairing, connection management simultaneously, and the present invention is a set of energy of design
Android system switching it is different automatic return together with when guarantee the method for only one position downloading conenct order.
Summary of the invention
Under android system normal mode, to particular remote bluetooth equipment, the company's of returning mode is optimized automatically, is optimized
It finds that the company's of returning time of the automatic Hui Lian of BLE white list is fast in journey, but the Hui Lian that particular remote bluetooth equipment is sent cannot be distinguished
Packet or pairing packet cause to replace pairing error.BLE white list Auto-reconnect is in the case where being not detected linkey, bluetooth
Protocol stack just can not actively issue sky connect order.And the former automatic company's of returning scheme, Android system end and particular remote are blue
Tooth equipment all saves linkey, such as falls generation to carry out technology, need to guarantee that original subscriber is unaffected.So needing to design one kind
Compatible scheme can by the automatic Hui Lian of the BLE white list and automatic Hui Lian of the non-white list of application layer be integrated into android system after,
Being independent of each other between the two automatic company's of returning modes can free switching.
The present invention is to solve the above-mentioned problems, to provide a kind of remote Bluetooth devices white list and non-white list returns automatically
Even compatibility method.
The present invention is implemented as follows:
Android device bluetooth module start-up course are as follows: after Linux starting, load android system
SystemServer starts Bluetooth system service in Systemserver.Bluetooth system service initialisation bluetooth module, application
Layer bluetooth equipment connection management app services connection management remote Bluetooth devices using Bluetooth system, completes remote bluetooth after booting
The connection of equipment.Remote Bluetooth devices need to switch time gang mould formula automatically and just have to before remote bluetooth returns and is linked to be function.Institute
Two kinds of automatic flow charts for returning gang mould formula need to be sorted out, the place of difference between both comparative analyses realization principle.
The principle that BLE white list is realized is: it is white that bluetooth device address is saved in BLE after remote Bluetooth devices successful connection
In list, if detecting, equipment is disconnected in BLE white list, and bluetooth protocol repertory is just handed down to bluetooth driving one and does not carry ground
The connect order of location, the company of returning wait receive remote Bluetooth devices parse address after wrapping and are directly attached.
And the realization principle of the non-white list Auto-reconnect of application layer is: remote Bluetooth devices issue back after disconnecting even wraps, blue
Tooth protocol stack receives back even wrap after be directly uploaded to application layer, application layer receives back even wrap after parse after, to Bluetooth protocol
Stack issues connect order, after bluetooth protocol repertory receives connect order, is establishing connection with remote equipment.Two kinds automatic
Scheme comparison's figure of Hui Lian is shown in Fig. 1.
Comparison it can be found that by way of two kinds of automatic Hui Lian it is maximum distinguish be issue conenct command position, and
By controlling the position for the order that conenct is issued, the free switching between the scheme of two kinds of automatic Hui Lian just can control.
In android system, system property can be simultaneously by java layers and C, C++ layers access and modification, it is possible to by that will switch
The condition setting of mode is system property, by changing system property value, so that it may simple and quick switching remote equipment
The mode of automatic Hui Lian.Specific implementation is as shown in Figure 2.
The present invention provides a kind of remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically, comprising:
In android system, using bluetooth protocol repertory, that is, c layers and android application layer, that is, java layer can access with
The condition setting of switch mode is system property by the characteristics of same attribute value of modification system, so as to be belonged to by changing
Property value variation switch the state of Auto-reconnect, the company's of returning state of Lai Guanli remote Bluetooth devices.
Specifically:
Firstly, modifying to system property in android system, it sets system property to the switching mould of bluetooth connection
Formula;
Since android system provides system property SystemProperties interface, which is globally shared connect
Mouthful.Can call the set method in SystemProperties interface set a property variable title and corresponding attribute variable
Value, then obtains attribute variable's title and corresponding attribute value by the get method in SystemProperties interface.Belong to
Property name variable can be customized, attribute value can according to complete machine configure remote controller models and pairing successful connection after remote controler
Model is changed to be arranged.This specific setting and change do not have technical difficulty to those skilled in the art,
To be done directly.The remote controler of complete machine configuration is preset in advance into system.
Secondly, initialization switches the attribute value of automatic Hui Lian before starting bluetooth, switch the company's of returning mode of bluetooth, it is then right
Bluetooth module is initialized;
Before bluetooth starting, it can be set property according to the remote controller models that complete machine configures.After bluetooth starting, Bluetooth remote control
, can be by the model of gatt protocol access blue Tooth remote controller equipment after matching successful connection, then basis obtains model value more
Change attribute.
Finally, returning the specific remote bluetooth of company.
The present invention provides a kind of automatic company's of returning modes for android system remote Bluetooth devices to be compatible with,
It can the free switching company's of returning method automatically according to demand under the same environment.Android device is improved to the automatic of bluetooth equipment
It returns gang mould formula to support, optimizes back the use for not influencing other original subscribers while disjunctor is tested, while improving product competitiveness, mention
High stability.
Detailed description of the invention
Fig. 1 is that the realization principle figure of the automatic Hui Lian of remote Bluetooth devices ble white list and the non-white list of application layer return automatically
Realization principle figure even.
Fig. 2 is the experiment that the company of returning switches automatically of the automatic Hui Lian of remote Bluetooth devices ble table name list and the non-white list of application layer
Schematic diagram.
Specific embodiment
The present invention is compatible with primarily directed to the automatic company's of returning mode of android system remote Bluetooth devices, same
It can the free switching company's of returning method automatically according to demand under a environment.Specific embodiment has:
1, it arranges ble white list and returns even process
2, it arranges the non-white list of application layer and returns even process
3, it in android system, can be accessed using bluetooth protocol repertory, that is, c layers and android application layer, that is, java layers
With the same attribute value of modification system.Switch the state of Auto-reconnect by changing the variation of attribute value, to manage long-range indigo plant
The company's of returning state of tooth equipment.
4, before starting bluetooth, initialization switches the attribute value of automatic Hui Lian.Then bluetooth module is initialized.
5, the specific remote bluetooth of company is returned.
Although reference be made herein to invention has been described for explanatory embodiment of the invention, and above-described embodiment is only this hair
Bright preferable embodiment, embodiment of the present invention are not limited by the above embodiments, it should be appreciated that those skilled in the art
Member can be designed that a lot of other modification and implementations, these modifications and implementations will fall in principle disclosed in the present application
Within scope and spirit.
Claims (2)
1. a kind of remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically, characterized by comprising:
In android system, it can access and modify using bluetooth protocol repertory, that is, c layers and android application layer, that is, java layers
The condition setting of switch mode is system property by the characteristics of same attribute value of system, to pass through the change for changing attribute value
Change to switch the state of Auto-reconnect, the company's of returning state of Lai Guanli remote Bluetooth devices.
2. the company's of returning compatibility method, feature exist automatically for remote Bluetooth devices white list and non-white list according to claim 1
In:
Firstly, modifying to the system property in android system, it sets system property to the switching mould of bluetooth connection
Formula;
Secondly, initialization switches the attribute value of automatic Hui Lian before starting bluetooth, switch the company's of returning mode of bluetooth, then to bluetooth
Module is initialized;
Finally, returning the specific remote bluetooth of company.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811168750.4A CN109413626B (en) | 2018-10-08 | 2018-10-08 | Automatic back-connection compatible method for white list and non-white list of remote Bluetooth equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811168750.4A CN109413626B (en) | 2018-10-08 | 2018-10-08 | Automatic back-connection compatible method for white list and non-white list of remote Bluetooth equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109413626A true CN109413626A (en) | 2019-03-01 |
CN109413626B CN109413626B (en) | 2021-06-22 |
Family
ID=65466025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811168750.4A Active CN109413626B (en) | 2018-10-08 | 2018-10-08 | Automatic back-connection compatible method for white list and non-white list of remote Bluetooth equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413626B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381487A (en) * | 2019-07-15 | 2019-10-25 | 珠海市杰理科技股份有限公司 | Bluetooth connecting method and device |
CN114173315A (en) * | 2022-02-14 | 2022-03-11 | 荣耀终端有限公司 | Bluetooth reconnection method and terminal equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105323383A (en) * | 2015-11-17 | 2016-02-10 | 小米科技有限责任公司 | Mobile phone ringing volume adjusting method and device |
US9414426B2 (en) * | 2014-02-10 | 2016-08-09 | Samsung Electronics Co., Ltd. | Method and apparatus for reconnection in short-range wireless communication |
CN107454563A (en) * | 2017-09-08 | 2017-12-08 | 歌尔科技有限公司 | A kind of Bluetooth communication method, device and bluetooth equipment |
-
2018
- 2018-10-08 CN CN201811168750.4A patent/CN109413626B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9414426B2 (en) * | 2014-02-10 | 2016-08-09 | Samsung Electronics Co., Ltd. | Method and apparatus for reconnection in short-range wireless communication |
CN105323383A (en) * | 2015-11-17 | 2016-02-10 | 小米科技有限责任公司 | Mobile phone ringing volume adjusting method and device |
CN107454563A (en) * | 2017-09-08 | 2017-12-08 | 歌尔科技有限公司 | A kind of Bluetooth communication method, device and bluetooth equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381487A (en) * | 2019-07-15 | 2019-10-25 | 珠海市杰理科技股份有限公司 | Bluetooth connecting method and device |
CN110381487B (en) * | 2019-07-15 | 2022-06-21 | 珠海市杰理科技股份有限公司 | Bluetooth connection method and device |
CN114173315A (en) * | 2022-02-14 | 2022-03-11 | 荣耀终端有限公司 | Bluetooth reconnection method and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109413626B (en) | 2021-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102938818B (en) | Household appliance intelligent controlling method based on smart mobile phone | |
US8761739B1 (en) | Dynamically configurable IP based wireless devices and networks | |
CN106341516A (en) | Multipoint connection control method and apparatus, terminal and multipoint bluetooth earphone | |
CN105187907A (en) | Volume control system and control method for smart television | |
CN103518418A (en) | Connecting method between Bluetooth devices and device | |
CN103517110A (en) | Multi-screen interaction communication system and method | |
EP2651176B1 (en) | Method for managing calls and mobile terminal using the same | |
CN105159104B (en) | A kind of intelligent terminal remote controller Internet of Things control system and control method | |
CN105007206A (en) | Method and device for controlling intelligent household electrical appliance and mobile terminal | |
CN105100848A (en) | Intelligent equipment, and intelligent equipment control system and realization method thereof | |
AU2383799A (en) | A method of parameterizing the display on mobile radiocommunications equipment cooperating with a subscriber identity module | |
CN101951368A (en) | Service authority control method, terminal and system based on subnet | |
CN108901077A (en) | Antenna accounting setting method, device, user equipment and storage medium | |
CN109413626A (en) | Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically | |
CN103595949A (en) | Video call transfer method, terminal and system | |
CN102148876A (en) | Access point switching method and device on iOS | |
CN103533007A (en) | Method and storage apparatus for switching data transmission path to transmit data | |
CN103686229A (en) | Method and system for controlling digital television receiving terminals through intelligent terminal | |
CN103052170A (en) | Mobile phone network shared service-based network connection method and mobile phone | |
CN104754674A (en) | Method and system for intelligent mobile terminal to access Wi-Fi accessory equipment and 3G/4G network at same time | |
CN106714084B (en) | The method that Android intelligent equipment quickly connects bluetooth | |
CN101741984A (en) | Theme switching method and device and mobile terminal and background software device | |
JP2012015803A (en) | Communication device, program, and communication method | |
CN106162283A (en) | For the control code sending method of television set, device and television set | |
CN103024011B (en) | A kind of method and system of control MHL playback 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |