CN105392115A - Automatic Bluetooth reconnection method - Google Patents
Automatic Bluetooth reconnection method Download PDFInfo
- Publication number
- CN105392115A CN105392115A CN201510881704.9A CN201510881704A CN105392115A CN 105392115 A CN105392115 A CN 105392115A CN 201510881704 A CN201510881704 A CN 201510881704A CN 105392115 A CN105392115 A CN 105392115A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- equipment
- state
- described step
- bluetooth equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
-
- 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/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/40—Connection management for selective distribution or broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/02—Details of telephonic subscriber devices including a Bluetooth interface
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides an automatic Bluetooth reconnection method. The method comprises the steps that S1) a main device is internally provided with a reconnection module, and the Bluetooth connection state is monitored in a tracking manner; S2) the Bluetooth connection state is determined; and S3) Bluetooth connection is processed. The step S1 further comprises that S11) the reconnection module is provided Bluetooth state bits; and S12) all the Bluetooth state bits in the reconnection module are traversed at certain time interval. The Bluetooth state bit in the step S11 includes an array value, each array value includes the ID of connected Bluetooth equipment and the connection state value of the Bluetooth equipment, if the Bluetooth equipment is in the connection state, the state value is 1, and if the Bluetooth equipment is in the disconnection state, the state value is 2. The method of the invention can be used to realize automatic reconnection to the Bluetooth equipment in the condition of abnormal disconnection, data connection is smooth, and user experience is improved.
Description
Technical field
The invention belongs to communication of mobile terminal field, especially relate to the method for the automatic Hui Lian of a kind of bluetooth.
Background technology
Along with the rise that intelligence is dressed, bluetooth equipment also gets more and more, but bluetooth equipment can only meet the unobstructed maintenance connection status of connection in certain distance, apart from not in scope, or time signal is slightly weak, just probably bluetooth is caused to disconnect, affect the real-time Transmission of data, when user open app check data time, what information possible does not all obtain, greatly reduce Consumer's Experience, reduce the functional of mobile phone and bluetooth equipment greatly again.
Summary of the invention
In view of this, the present invention is intended to the method proposing the automatic Hui Lian of a kind of bluetooth, to solve the bluetooth connection self-interrupting problem because signal problem causes.
For achieving the above object, technical scheme of the present invention is achieved in that
The main equipment of existing user operation and the bluetooth equipment be connected with main equipment
A method of the automatic Hui Lian of bluetooth, comprises step
S1. main equipment inside is provided with one and returns gang mould block, tracking and monitoring bluetooth connection status;
S2. the connection status of bluetooth is judged;
S3. bluetooth is connected and process.
Further, described step S1 comprises
S11. described returning in gang mould block is provided with bluetooth state position;
S12. return gang mould block and travel through all bluetooth state positions every a time period.
Further, the described bluetooth state position in described step S11 is an array value, the ID comprising the bluetooth equipment of connection in each array value and the state value be connected with this bluetooth equipment, if the connection status of being in, then described state value is 1, if be in off-state, then described state value is 2.
Further, step S2 comprises
If the ergodic discovery bluetooth equipment connection status value S21. in described step S12 is the situation of 0, then returns corresponding bluetooth equipment ID, enter S22;
S22. travel through the instruction module of main equipment according to bluetooth equipment ID, whether there is the instruction about disconnecting with the bluetooth equipment of corresponding bluetooth equipment ID in described set time section, if having, then bluetooth connects and belongs to normal closedown, does not need Hui Lian; If nothing, then bluetooth connects and belongs to abnormal disconnection, enters S3.
Further, described step S3 comprises
S31., in region in scope, main equipment searches for corresponding bluetooth equipment according to bluetooth equipment ID, if search less than, then gone out can join domain for bluetooth equipment, and connection failure, if search, then enters step S32;
S32. the bluetooth equipment in main equipment and described step S31 connects, and bluetooth state value changes 1 into.
Further, described step S32 comprises
S321. main equipment is set up BLE with the bluetooth equipment in described step S31 and is connected;
S322. the bluetooth equipment in main equipment and described step S31 carries out transfer of data.
Further, in described step S12, the time period is 30 seconds.
Relative to prior art, the method for the automatic Hui Lian of bluetooth of the present invention has following advantage:
The method of the automatic Hui Lian of bluetooth of the present invention can when abnormal disconnection, and can also be dynamically connected back bluetooth equipment certainly, ensures the smooth and easy of data cube computation, promotes Consumer's Experience.
Accompanying drawing explanation
The accompanying drawing forming a part of the present invention is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of the automatic Hui Lian of the bluetooth described in the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
As shown in Figure 1, the mobile phone that user uses is connected with the bracelet bluetooth that user uses as main equipment.
The bluetooth module inside of the mobile phone that user uses is provided with one and returns gang mould block, and all bluetooth connection status of tracking and monitoring, are provided with bluetooth state position in described time gang mould block; Return gang mould block and travel through all bluetooth state positions every 30 seconds, judge the state of mobile phone and other connection devices, described bluetooth state position is an array value, the ID comprising the bracelet of connection in each array value and the state value be connected with this bluetooth equipment, if the connection status of being in, then described state value is 1, if be in off-state, then described state value is 2.
If ergodic discovery bracelet connection status value is the situation of 0, then return corresponding bracelet ID, the instruction module of mobile phone is traveled through according to bracelet ID, the instruction disconnected about bracelet whether is there is in 30 seconds, here in order to judge it is that user initiatively closes bluetooth connection, or the bluetooth of closing because of abnormal connects, if having, then bluetooth connects and belongs to normal closedown, does not need Hui Lian; If nothing, then bluetooth connects and belongs to abnormal disconnection, in region in scope, mobile phone searches for corresponding bluetooth equipment according to bracelet ID, if search less than, then gone out can join domain for bluetooth equipment, connection failure, if search, then mobile phone and bracelet are set up BLE and are connected, and carry out transfer of data or continue the connection that stops because of abnormal.If bracelet has moved out the moving range of mobile phone, mobile phone cannot be dynamically connected left-hand seat ring certainly.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (7)
1. a method of the automatic Hui Lian of bluetooth, is characterized in that: comprise step
S1. main equipment inside is provided with one and returns gang mould block, tracking and monitoring bluetooth connection status;
S2. the connection status of bluetooth is judged;
S3. bluetooth is connected and process.
2. the method for the automatic Hui Lian of bluetooth according to claim 1, is characterized in that: described step S1 comprises
S11. described returning in gang mould block is provided with bluetooth state position;
S12. return gang mould block and travel through all bluetooth state positions every a time period.
3. the method for the automatic Hui Lian of bluetooth according to claim 2, it is characterized in that: the described bluetooth state position in described step S11 is an array value, the ID comprising the bluetooth equipment of connection in each array value and the state value be connected with this bluetooth equipment, if the connection status of being in, then described state value is 1, if be in off-state, then described state value is 2.
4. the method for the automatic Hui Lian of bluetooth according to claim 3, is characterized in that: step S2 comprises
If the ergodic discovery bluetooth equipment connection status value S21. in described step S12 is the situation of 0, then returns corresponding bluetooth equipment ID, enter S22;
S22. travel through the instruction module of main equipment according to bluetooth equipment ID, whether there is the instruction about disconnecting with the bluetooth equipment of corresponding bluetooth equipment ID in described set time section, if having, then bluetooth connects and belongs to normal closedown, does not need Hui Lian; If nothing, then bluetooth connects and belongs to abnormal disconnection, enters S3.
5. the method for the automatic Hui Lian of bluetooth according to claim 1, is characterized in that: described step S3 comprises
S31., in region in scope, main equipment searches for corresponding bluetooth equipment according to bluetooth equipment ID, if search less than, then gone out can join domain for bluetooth equipment, and connection failure, if search, then enters step S32;
S32. the bluetooth equipment in main equipment and described step S31 connects, and bluetooth state value changes 1 into.
6. the method for the automatic Hui Lian of bluetooth according to claim 5, is characterized in that: described step S32 comprises
S321. main equipment is set up BLE with the bluetooth equipment in described step S31 and is connected;
S322. the bluetooth equipment in main equipment and described step S31 carries out transfer of data.
7. the method for the automatic Hui Lian of bluetooth according to claim 2, is characterized in that: in described step S12, the time period is 30 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510881704.9A CN105392115A (en) | 2015-12-03 | 2015-12-03 | Automatic Bluetooth reconnection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510881704.9A CN105392115A (en) | 2015-12-03 | 2015-12-03 | Automatic Bluetooth reconnection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105392115A true CN105392115A (en) | 2016-03-09 |
Family
ID=55423860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510881704.9A Pending CN105392115A (en) | 2015-12-03 | 2015-12-03 | Automatic Bluetooth reconnection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105392115A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535096A (en) * | 2016-11-07 | 2017-03-22 | 广东思派康电子科技有限公司 | Bluetooth rapid reconnection method |
CN107422642A (en) * | 2016-05-24 | 2017-12-01 | 佛山市顺德区美的电热电器制造有限公司 | Home appliance and its method unbinded with control terminal, appliance control system |
CN107635290A (en) * | 2017-07-25 | 2018-01-26 | 深圳市文鼎创数据科技有限公司 | Mobile terminal, Bluetooth Key and connection method, storage medium and system |
CN108541080A (en) * | 2018-04-23 | 2018-09-14 | Oppo广东移动通信有限公司 | First electronic equipment and the second electronic equipment carry out the method and Related product of Hui Lian |
CN108933864A (en) * | 2018-06-29 | 2018-12-04 | 努比亚技术有限公司 | Intelligent glasses based reminding method, device and computer readable storage medium |
CN111510902A (en) * | 2020-04-24 | 2020-08-07 | 歌尔科技有限公司 | Bluetooth device and Bluetooth state switching method and device thereof |
CN112839303A (en) * | 2021-04-12 | 2021-05-25 | 荣耀终端有限公司 | Method and related device for device reconnection |
CN113615316A (en) * | 2019-03-25 | 2021-11-05 | 卡西欧计算机株式会社 | Control device, wireless connection control method, and program |
CN113810892A (en) * | 2021-09-26 | 2021-12-17 | 深圳市芯中芯科技有限公司 | Bluetooth automatic reconnection method based on APP |
CN116761196A (en) * | 2023-08-21 | 2023-09-15 | 深圳市华曦达科技股份有限公司 | Recovery method and device for abnormal work of Bluetooth module |
-
2015
- 2015-12-03 CN CN201510881704.9A patent/CN105392115A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107422642A (en) * | 2016-05-24 | 2017-12-01 | 佛山市顺德区美的电热电器制造有限公司 | Home appliance and its method unbinded with control terminal, appliance control system |
CN106535096A (en) * | 2016-11-07 | 2017-03-22 | 广东思派康电子科技有限公司 | Bluetooth rapid reconnection method |
CN107635290A (en) * | 2017-07-25 | 2018-01-26 | 深圳市文鼎创数据科技有限公司 | Mobile terminal, Bluetooth Key and connection method, storage medium and system |
WO2019019921A1 (en) * | 2017-07-25 | 2019-01-31 | 深圳市文鼎创数据科技有限公司 | Mobile terminal, bluetooth key and connection method, storage medium and system |
CN108541080A (en) * | 2018-04-23 | 2018-09-14 | Oppo广东移动通信有限公司 | First electronic equipment and the second electronic equipment carry out the method and Related product of Hui Lian |
CN108541080B (en) * | 2018-04-23 | 2020-09-22 | Oppo广东移动通信有限公司 | Method for realizing loop connection between first electronic equipment and second electronic equipment and related product |
CN108933864A (en) * | 2018-06-29 | 2018-12-04 | 努比亚技术有限公司 | Intelligent glasses based reminding method, device and computer readable storage medium |
CN113615316A (en) * | 2019-03-25 | 2021-11-05 | 卡西欧计算机株式会社 | Control device, wireless connection control method, and program |
CN111510902A (en) * | 2020-04-24 | 2020-08-07 | 歌尔科技有限公司 | Bluetooth device and Bluetooth state switching method and device thereof |
CN111510902B (en) * | 2020-04-24 | 2022-10-28 | 歌尔科技有限公司 | Bluetooth device and Bluetooth state switching method and device thereof |
CN112839303B (en) * | 2021-04-12 | 2021-08-31 | 荣耀终端有限公司 | Method and related device for device reconnection |
CN112839303A (en) * | 2021-04-12 | 2021-05-25 | 荣耀终端有限公司 | Method and related device for device reconnection |
CN113810892A (en) * | 2021-09-26 | 2021-12-17 | 深圳市芯中芯科技有限公司 | Bluetooth automatic reconnection method based on APP |
CN116761196A (en) * | 2023-08-21 | 2023-09-15 | 深圳市华曦达科技股份有限公司 | Recovery method and device for abnormal work of Bluetooth module |
CN116761196B (en) * | 2023-08-21 | 2023-12-22 | 深圳市华曦达科技股份有限公司 | Recovery method and device for abnormal work of Bluetooth module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105392115A (en) | Automatic Bluetooth reconnection method | |
WO2007003848A3 (en) | Communications device and system for implementing a management system remote from devices | |
PH12015502296A1 (en) | A method and system for supporting distributed relay control protocol (drcp) operations upon communication failure | |
WO2014165614A3 (en) | Methods and devices for cell discovery | |
RU2012102074A (en) | MOBILE COMMUNICATION METHOD, MOBILE COMMUNICATION SYSTEM, SUBSCRIBER MANAGEMENT SERVER AND MOBILE COMMUNICATION CENTER | |
WO2015002508A3 (en) | Relay control method for proximity service and device therefor | |
EP3496464A3 (en) | Communication system and method | |
CN104066129A (en) | Network switching method and system | |
CN105635475A (en) | Method and system for associating smart watch with smart phone | |
CN105430596A (en) | Communication method and communication apparatus bases on virtual SIM card | |
WO2011122808A3 (en) | Method for transceiving accessible cell information of a relay node in a wireless communication system, and device for same | |
US20180139655A1 (en) | Management device and management method thereof for cloud radio access network and user equipment | |
AU2017444373A1 (en) | Data transmission method, terminal device and network device | |
AU2012319615A8 (en) | Mobile communication method, mobility management node, packet switch, and mobile station | |
WO2009025353A1 (en) | Relay device, communication system and communication method | |
CN104616452A (en) | System and method for monitoring alarm distance | |
CN103763377B (en) | A kind of distributed emulation time stepping method and the synchronous method of message transmission | |
CN107920348B (en) | Device network state information | |
CN206023818U (en) | Household Internet of Things communicates connection system | |
EP2506605B1 (en) | Service management system and method based on machine to machine | |
CN103313223B (en) | A kind of method for controlling charging in D2D communication | |
CN105141688A (en) | Method and system for interaction of neighboring car owners based on automobile data recorder | |
CN103023542B (en) | A kind of document transmission method of intelligent mobile communication terminal, system | |
CN201904782U (en) | Synchronous digital hierarchy (SDH) optical fiber communication looped network automatic switching device | |
CN106063318A (en) | Method and wireless device for managing probe messages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160309 |