CN107454563A - A kind of Bluetooth communication method, device and bluetooth equipment - Google Patents
A kind of Bluetooth communication method, device and bluetooth equipment Download PDFInfo
- Publication number
- CN107454563A CN107454563A CN201710807595.5A CN201710807595A CN107454563A CN 107454563 A CN107454563 A CN 107454563A CN 201710807595 A CN201710807595 A CN 201710807595A CN 107454563 A CN107454563 A CN 107454563A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- application layer
- bluetooth equipment
- bluetooth
- communication
- 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
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of Bluetooth communication method, device and bluetooth equipment.Method includes:Bluetooth equipment sends connection to the application layer of mobile terminal and examines request;Judge whether the answer signal that the application layer for receiving mobile terminal returns, if receiving, confirm that the application layer communication of bluetooth equipment and mobile terminal is normal;If not receiving, confirm that the application layer communication of bluetooth equipment and mobile terminal is abnormal;After the application layer communication exception of bluetooth equipment and mobile terminal is confirmed, open command is sent to the underlying protocol stack of bluetooth equipment, so that the bottom of bluetooth equipment and mobile terminal disconnects, and wait the application layer active reconnection bluetooth equipment of standby communication terminal, until the application layer communication of bluetooth equipment and mobile terminal is normal, the present invention not only can detect bluetooth equipment and mobile terminal application layer whether communication abnormality, and cause the application layer of bluetooth equipment and mobile terminal to be in connection status all the time.
Description
Technical field
The present invention relates to communication technical field, and in particular to a kind of Bluetooth communication method, device and bluetooth equipment.
Background technology
In bluetooth equipment and mobile terminal normal interaction process, it should be the application layer progress of bluetooth equipment and mobile terminal
Data communicate.Data when bluetooth equipment and mobile terminal proper communication are moved towards:The application layer of mobile terminal to oneself
Underlying protocol stack sends the underlying protocol stack bluetooth connection bluetooth of the control instruction, then mobile terminal of " bluetooth connection bluetooth equipment "
Equipment, so far, the communication link of " mobile terminal application layer → mobile terminal underlying protocol stack → bluetooth equipment " are established.But
In practical application, once the distance between bluetooth equipment and mobile terminal have exceeded bluetooth connection distance range, then bluetooth equipment
It will be disconnected with mobile terminal.Because mobile terminal possesses Auto-reconnect function, when bluetooth equipment and mobile terminal disconnect
Afterwards, mobile terminal will actively connect bluetooth equipment.But the underlying protocol stack of part mobile terminal do not obtain mobile terminal should
The bluetooth connection sent with layer is instructed with regard to automatic connection of Bluetooth equipment, and the communication link now established is " mobile terminal bottom is assisted
Discuss stack → bluetooth equipment ", and mobile terminal underlying protocol stack can't report itself and bluetooth to the application layer of mobile terminal
The connection status of equipment.When the Bluetooth address that the application layer of mobile terminal is reused before disconnecting goes to call mobile terminal bottom association
Stack bluetooth protocol repertory object is discussed, when request re-establishes bluetooth connection with bluetooth equipment, due to the underlying protocol stack of mobile terminal
Bluetooth connection (the i.e. Bluetooth address of the bluetooth equipment bluetooth with mobile terminal underlying protocol stack has been established with bluetooth equipment
Addresses match), the application layer of mobile terminal will be unable to retrieve the Bluetooth address of bluetooth equipment, cause the application of mobile terminal
Layer can not establish bluetooth connection with bluetooth equipment, and then cause bluetooth equipment can not be communicated with mobile terminal application layer, i.e.,
There is mobile terminal application layer and bluetooth devices abnormal problem.
In the prior art, in order to solve the above problems, the method routinely used is the indigo plant of hand switch machine mobile terminal
Tooth, the operation of this method is relatively complicated, wastes more time during user's hand switch hand set bluetooth, directly affects bluetooth and set
Standby reconnection function, reduces Consumer's Experience.
The content of the invention
The invention provides a kind of Bluetooth communication method, device and bluetooth equipment, to solve existing mobile terminal and indigo plant
After tooth equipment disconnects during reconnection, mobile terminal underlying protocol stack be present and just lead not receiving mobile terminal application layer link order
The problem of mobile terminal application layer is with bluetooth devices exception caused by dynamic connection bluetooth equipment.
According to an aspect of the invention, there is provided a kind of Bluetooth communication method, methods described include:
Bluetooth equipment sends connection to the application layer of mobile terminal and examines request;
Judge whether the answer signal that the application layer for receiving the mobile terminal returns, if receiving the mobile terminal
Application layer return answer signal, then confirm that the application layer communication of the bluetooth equipment and the mobile terminal is normal;If not
The answer signal that the application layer of the mobile terminal returns is received, then confirm the bluetooth equipment and the mobile terminal should
With layer communication abnormality;
After application layer communication exception of the bluetooth equipment with the mobile terminal is confirmed, to the bluetooth equipment
Underlying protocol stack sends open command so that the bottom of the bluetooth equipment and the mobile terminal disconnects, and waits institute
Bluetooth equipment described in the application layer active reconnection of mobile terminal is stated, until the application layer of the bluetooth equipment and the mobile terminal
Communication is normal.
According to another aspect of the present invention, there is provided a kind of Bluetooth communication device, described device include:
Request transmitting unit, request is examined for sending connection to the application layer of mobile terminal;
Judging unit, the answer signal returned for judging whether the application layer for receiving the mobile terminal, if receiving
The answer signal returned to the application layer of the mobile terminal, then confirm the application layer of the bluetooth equipment and the mobile terminal
Communication is normal;If the answer signal that the application layer for not receiving the mobile terminal returns, confirms the bluetooth equipment and institute
The application layer communication for stating mobile terminal is abnormal;
Exception control unit, for confirming the bluetooth equipment and the application layer communication exception of the mobile terminal
Afterwards, open command is sent to the underlying protocol stack of the bluetooth equipment so that the bottom of the bluetooth equipment and the mobile terminal
Layer disconnects;
Reconnection unit is waited, for waiting bluetooth equipment described in the application layer active reconnection of the mobile terminal, until institute
The application layer communication for stating bluetooth equipment and the mobile terminal is normal.
According to another aspect of the present invention, there is provided another Bluetooth communication device, described device include memory and
Processor, the memory storage has can be described by the computer program of the computing device, the computer program
Above-mentioned method and step can be realized during computing device.
According to a further aspect of the invention, there is provided a kind of bluetooth equipment, the bluetooth equipment include above-mentioned bluetooth
Communicator.
The beneficial effects of the invention are as follows:Compared to prior art, the solution of the present invention can not only detect bluetooth equipment with
The application layer of mobile terminal whether communication abnormality, and in communication abnormality, the bluetooth without hand switch machine mobile terminal is
Reconnection is carried out after the application layer disconnection of bluetooth equipment and mobile terminal can be achieved, is the application layer reconnection bluetooth equipment of mobile terminal
Provide guarantee so that the application layer of bluetooth equipment and mobile terminal is in connection status all the time, and then ensures that the two normally enters
Row communication interaction, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of flow chart of Bluetooth communication method of one embodiment of the invention;
Fig. 2 is a kind of particular flow sheet of Bluetooth communication method of one embodiment of the invention;
Fig. 3 is a kind of structural representation of Bluetooth communication device of one embodiment of the invention;
Fig. 4 is the structural representation of another Bluetooth communication device of one embodiment of the invention;
Fig. 5 is a kind of schematic diagram of bluetooth equipment of one embodiment of the invention.
Embodiment
The present invention design concept be:After being disconnected for mobile terminal in the prior art and bluetooth equipment during reconnection, exist
The shifting caused by not receiving mobile terminal application layer link order and just actively connecting bluetooth equipment of mobile terminal underlying protocol stack
The problem of dynamic terminal applies layer is with bluetooth devices exception, inventor expects, bluetooth equipment is sent out to the application layer of mobile terminal
Connection is sent to examine request;Judge whether the answer signal that the application layer for receiving mobile terminal returns, if receiving, confirm blue
Tooth equipment and the application layer communication of mobile terminal are normal;If not receiving, the application layer of bluetooth equipment and mobile terminal is confirmed
Communication abnormality;After the application layer communication exception of bluetooth equipment and mobile terminal is confirmed, to the underlying protocol stack of bluetooth equipment
Send open command so that the bottom of bluetooth equipment and mobile terminal disconnects, and waits the application layer of standby communication terminal actively
Reconnection bluetooth equipment, until the application layer communication of bluetooth equipment and mobile terminal is normal, bluetooth can not only be detected by, which realizing, sets
Whether standby and mobile terminal application layer communication is normal, and in communication abnormality, the bluetooth without hand switch machine mobile terminal
Reconnection is carried out after the application layer disconnection of bluetooth equipment and mobile terminal can be achieved, is the reconnection bluetooth of the application layer of mobile terminal
Equipment provides guarantee so that the application layer of bluetooth equipment and mobile terminal is in connection status all the time, and then ensures the two just
Communication interaction is often carried out, lifts Consumer's Experience.
Embodiment one
Fig. 1 is a kind of flow chart of Bluetooth communication method of one embodiment of the invention, as shown in figure 1,
In step s 110, bluetooth equipment sends connection to the application layer of mobile terminal and examines request.
In the step s 120, the answer signal that the application layer for receiving the mobile terminal returns is judged whether, if receiving
The answer signal returned to the application layer of the mobile terminal, then confirm the application layer of the bluetooth equipment and the mobile terminal
Communication is normal;If the answer signal that the application layer for not receiving the mobile terminal returns, confirms the bluetooth equipment and institute
The application layer communication for stating mobile terminal is abnormal.
In step s 130, after application layer communication exception of the bluetooth equipment with the mobile terminal is confirmed, to
The underlying protocol stack of the bluetooth equipment sends open command so that the bottom of the bluetooth equipment and the mobile terminal disconnects
Connection, and bluetooth equipment described in the application layer active reconnection of the mobile terminal is waited, until the bluetooth equipment and the shifting
The application layer communication of dynamic terminal is normal.
Method as shown in Figure 1, it is known that, bluetooth equipment sends connection verification request to the application layer of mobile terminal, judges
Whether answer signal that the application layer of mobile terminal return is received, if the response letter that the application layer for receiving mobile terminal returns
Number, then confirm that the application layer communication of bluetooth equipment and mobile terminal is normal;What if the application layer for not receiving mobile terminal returned
Answer signal, then confirm that the application layer communication of bluetooth equipment and mobile terminal is abnormal;Confirming bluetooth equipment and mobile terminal
After application layer communication exception, control the application layer of wearable device to send open command to the underlying protocol stack of bluetooth equipment, make
The bottom for obtaining bluetooth equipment and mobile terminal disconnects, and waits the application layer active reconnection bluetooth equipment of standby communication terminal, directly
Application layer communication to bluetooth equipment and mobile terminal is normal, compared in the prior art when bluetooth equipment and mobile terminal should
The bluetooth that machine mobile terminal can only be operated with manual switches during with layer communication abnormality causes the application layer of bluetooth equipment and mobile terminal
Disconnect carry out reconnection compare, realize can not only detect bluetooth equipment whether communicated with the application layer of mobile terminal it is different
Often, and in communication abnormality, the bluetooth without hand switch machine mobile terminal is that bluetooth equipment and mobile terminal can be achieved
Application layer disconnect after carry out reconnection, provide guarantee for the application layer reconnection bluetooth equipment of mobile terminal so that bluetooth equipment and
The application layer of mobile terminal is in connection status all the time, and then ensures that the application layer of mobile terminal is normally carried out leading to bluetooth equipment
Letter interaction, improves Consumer's Experience.
Become apparent from order that obtaining technical scheme, be explained for a specific example below.Fig. 2
It is a kind of particular flow sheet of Bluetooth communication method of one embodiment of the invention, as shown in Fig. 2
S201, bluetooth equipment send connection verification request to the application layer of mobile terminal.
S202, judge whether bluetooth equipment receives the answer signal of mobile terminal application layer return, if bluetooth equipment connects
The answer signal of mobile terminal application layer return is received, performs step S203;If bluetooth equipment does not receive mobile terminal application
The answer signal that layer returns, perform step S205.
S203, confirm that the application layer communication of bluetooth equipment and mobile terminal is normal, and perform step S204.
S204, bluetooth equipment continue to send to the application layer of mobile terminal according to preset interval time (such as 2 minutes) to be connected
Inspection request is connect, and performs step S202, continues to judge the response whether bluetooth equipment receives the return of mobile terminal application layer
Signal.It should be noted that in the case where the application layer of bluetooth equipment and mobile terminal keeps normal connection, between default
Connection verification request is sent to the application layer of mobile terminal every the time, ensure that bluetooth equipment is located all the time with mobile terminal application layer
In the state of connection so that bluetooth equipment is normally carried out data interaction with mobile terminal application layer, and then lifts Consumer's Experience.And
And connection verification request is sent to mobile terminal application layer always compared to bluetooth equipment, reduce the power consumption of bluetooth equipment.
S205, judge that bluetooth equipment does not receive whether time of answer signal that the application layer of mobile terminal returns exceedes
Time preset value (such as 3 seconds)If not less than time preset value, step S206 is performed;If exceeding time preset value, perform
Step S207.
S206, bluetooth equipment continue waiting for receiving the answer signal that mobile terminal application layer returns.
S207, bluetooth equipment send connection to the application layer of mobile terminal and examine request again, and perform step S208.
S208, accumulative bluetooth equipment send connection and examine the counting of request once.
S209, judge whether cumulative number exceedes number preset value (such as 5 times)If exceeding number preset value, perform
Step S210;If not less than number preset value, step S206 is performed.
S210, confirm that the application layer communication of bluetooth equipment and mobile terminal is abnormal.
S211, the application layer of bluetooth equipment send to the underlying protocol stack of bluetooth equipment and disconnect instruction.Need to illustrate
, technical scheme by step S205-S209 prevented erroneous judgement bluetooth equipment and mobile terminal application layer
Through disconnecting, maloperation is reduced, helps further to lift Consumer's Experience.
S212, etc. standby communication terminal application layer active reconnection bluetooth equipment.
S213, judge bluetooth equipment whether the application layer successful connection with mobile terminalIf so, then perform step S204;
If it is not, then perform step S210.Ensure that the application layer of mobile terminal can succeed reconnection bluetooth equipment, and blue in success reconnection
After tooth equipment, it ensure that the application layer of bluetooth equipment and mobile terminal is in the state connected so that the application layer of mobile terminal
Communication interaction is normally carried out with bluetooth equipment.
Embodiment two
Fig. 3 is a kind of structural representation of Bluetooth communication device of one embodiment of the invention, as shown in figure 3, the indigo plant
The device of tooth equipment and communication of mobile terminal includes:
Request transmitting unit 310, request is examined for sending connection to the application layer of mobile terminal;
Judging unit 320, the answer signal returned for judging whether the application layer for receiving the mobile terminal, if connecing
The answer signal that the application layer of the mobile terminal returns is received, then confirms the application of the bluetooth equipment and the mobile terminal
Layer communication is normal;If do not receive the mobile terminal application layer return answer signal, confirm the bluetooth equipment with
The application layer communication of the mobile terminal is abnormal;
Exception control unit 330, for abnormal in the application layer communication for confirming the bluetooth equipment and the mobile terminal
Afterwards, open command is sent to the underlying protocol stack of the bluetooth equipment so that the bluetooth equipment and the mobile terminal
Bottom disconnects;
Reconnection unit 340 is waited, for waiting bluetooth equipment described in the application layer active reconnection of the mobile terminal, until
The application layer communication of the bluetooth equipment and the mobile terminal is normal.
In one embodiment of the invention, the request transmitting unit 310, specifically for according to preset interval time to
The application layer of the mobile terminal sends connection and examines request.It should be noted that in the application of bluetooth equipment and mobile terminal
In the case that layer keeps normal connection, connection verification request is sent to the application layer of mobile terminal according to preset interval time, is protected
Bluetooth equipment and state of the mobile terminal application layer all the time in connection are demonstrate,proved so that bluetooth equipment and mobile terminal application layer are just
Data interaction is often carried out, and then lifts Consumer's Experience.And send and connect to mobile terminal application layer always compared to bluetooth equipment
Verification request is connect, reduces the power consumption of bluetooth equipment.
In one embodiment of the invention, the judging unit 320, specifically for judging that the bluetooth equipment does not receive
Whether the time to the answer signal exceedes time preset value, if not less than time preset value, continues waiting for described in reception
Answer signal;If exceeding time preset value, connection is sent again to the application layer of the mobile terminal and examines request, and is added up
Count once;Judge whether the number of stored count exceedes number preset value, if exceeding number preset value, confirm the bluetooth
Equipment and the application layer communication of the mobile terminal are abnormal, if not less than number preset value, continue through request transmitting unit
310 send connection to the application layer of the mobile terminal examines request, it is therefore prevented that the application of erroneous judgement bluetooth equipment and mobile terminal
Layer is already off, reduces maloperation, helps further to lift Consumer's Experience.
In one embodiment of the invention, the wait reconnection unit 340, specifically for judging that the bluetooth equipment is
The no and mobile terminal application layer successful connection, if so, then sending connection to the application layer of the mobile terminal examines request;
If it is not, then send open command to the underlying protocol stack of the bluetooth equipment.Ensure that the application layer of mobile terminal can succeed
Reconnection bluetooth equipment, and after success reconnection bluetooth equipment, ensure that the application layer of bluetooth equipment and mobile terminal is in connection
State so that the application layer of mobile terminal is normally carried out communication interaction with bluetooth equipment.
It should be noted that the course of work of the Bluetooth communication device shown in Fig. 3 is led to the bluetooth shown in Fig. 1 or Fig. 2
Each embodiment of letter method to realize that step corresponds to identical, identical part repeats no more.
Embodiment three
Fig. 4 is the structural representation of another Bluetooth communication device of one embodiment of the invention, as shown in figure 4, bluetooth
The device 400 of equipment and communication of mobile terminal includes memory 420 and processor 410, between memory 420 and processor 410
Communicated and connected by internal bus 430, the memory 420 is stored with the computer journey that can be performed by the processor 410
Sequence, the computer program can realize the method and step as shown in Fig. 1 or Fig. 2 when being performed by the processor 410.
In various embodiments, memory 420 can be internal memory or nonvolatile memory.It is wherein non-volatile to deposit
Reservoir can be:Memory driver (such as hard disk drive), solid state hard disc, any kind of storage dish (such as CD, DVD),
Either similar storage medium or combinations thereof.Internal memory can be:RAM (Radom Access Memory, arbitrary access
Memory), volatile memory, nonvolatile memory, flash memory.Further, nonvolatile memory and internal memory can as machine
Storage medium is read, the computer program 421 of the Bluetooth communication performed by processor 410 can be stored thereon.
It should be noted that the course of work of claimed Bluetooth communication device 400 and Fig. 1 or figure in the present embodiment
Each embodiment of method shown in 2 to realize that step corresponds to identical, identical part repeats no more.
Example IV
Fig. 5 is a kind of schematic diagram of bluetooth equipment of one embodiment of the invention, as shown in figure 5, bluetooth equipment 500 includes
Bluetooth communication device 300 as shown in Figure 3 or Bluetooth communication device 400 as shown in Figure 4.
Bluetooth equipment can be wearable device, wear display device, virtual implementing helmet, intelligent watch, Intelligent bracelet,
Body-sensing clothing, intelligent glasses etc..
It should be noted that the course of work of claimed bluetooth equipment 500 and Fig. 1 or Fig. 2 institutes in the present embodiment
Each embodiment for the method shown to realize that step corresponds to identical, identical part repeats no more.
In summary, compared to prior art, the solution of the present invention can not only detect bluetooth equipment and mobile terminal
Application layer whether communication abnormality, and in communication abnormality, bluetooth can be achieved in the bluetooth without hand switch machine mobile terminal
Equipment and the application layer of mobile terminal carry out reconnection after disconnecting, and guarantor is provided for the application layer reconnection bluetooth equipment of mobile terminal
Card so that the application layer of bluetooth equipment and mobile terminal is in connection status all the time, and then ensures that the two is normally carried out communication and handed over
Mutually, Consumer's Experience is improved.
Presently preferred embodiments of the present invention is these are only, is not intended to limit the scope of the present invention.It is all in this hair
Any modification, equivalent substitution and improvements made within bright spirit and principle etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of Bluetooth communication method, it is characterised in that methods described includes:
Bluetooth equipment sends connection to the application layer of mobile terminal and examines request;
Judge whether the answer signal that the application layer for receiving the mobile terminal returns, if receiving answering for the mobile terminal
The answer signal returned with layer, then confirm that the application layer communication of the bluetooth equipment and the mobile terminal is normal;If do not receive
The answer signal returned to the application layer of the mobile terminal, then confirm the application layer of the bluetooth equipment and the mobile terminal
Communication abnormality;
After application layer communication exception of the bluetooth equipment with the mobile terminal is confirmed, to the bottom of the bluetooth equipment
Protocol stack sends open command so that the bottom of the bluetooth equipment and the mobile terminal disconnects, and waits the shifting
Bluetooth equipment described in the application layer active reconnection of dynamic terminal, until the application layer communication of the bluetooth equipment and the mobile terminal
Normally.
2. the method as described in claim 1, it is characterised in that confirming the application of the bluetooth equipment and the mobile terminal
After layer communication is normal, methods described also includes:
Continue to send connection inspection request to the application layer of the mobile terminal according to preset interval time, and judge whether to receive
The answer signal returned to the application layer of the mobile terminal.
3. the method as described in claim 1, it is characterised in that if the application layer for not receiving the mobile terminal returns
Answer signal, then confirm the application layer communication of the bluetooth equipment and the mobile terminal includes extremely:
Judge that the bluetooth equipment does not receive whether time of the answer signal exceedes time preset value, if not less than the time
Preset value, then continue waiting for receiving the answer signal;If exceeding time preset value, to the mobile terminal application layer again
It is secondary to send connection inspection request, and stored count is once;Judge whether the number of stored count exceedes number preset value, if exceeding
Number preset value, then confirm that the application layer communication of the bluetooth equipment and the mobile terminal is abnormal, if being preset not less than number
Value, then continue to send connection inspection request to the application layer of the mobile terminal.
4. the method as described in claim 1, it is characterised in that the application layer active reconnection institute for waiting the mobile terminal
Bluetooth equipment is stated, until the bluetooth equipment normally includes with the mobile terminal application layer communication:
Judge the bluetooth equipment whether with the mobile terminal application layer successful connection, if so, then to the mobile terminal
Application layer sends connection and examines request;If it is not, then send open command to the underlying protocol stack of the bluetooth equipment.
5. a kind of Bluetooth communication device, it is characterised in that described device includes:
Request transmitting unit, request is examined for sending connection to the application layer of mobile terminal;
Judging unit, the answer signal returned for judging whether the application layer for receiving the mobile terminal, if receiving institute
The answer signal that the application layer of mobile terminal returns is stated, then confirms the application layer communication of the bluetooth equipment and the mobile terminal
Normally;If the answer signal that the application layer for not receiving the mobile terminal returns, confirms the bluetooth equipment and the shifting
The application layer communication of dynamic terminal is abnormal;
Exception control unit, for after the application layer communication exception of the bluetooth equipment with the mobile terminal is confirmed, to
The underlying protocol stack of the bluetooth equipment sends open command so that the bottom of the bluetooth equipment and the mobile terminal disconnects
Connection;
Reconnection unit is waited, for waiting bluetooth equipment described in the application layer active reconnection of the mobile terminal, until the indigo plant
Tooth equipment and the application layer communication of the mobile terminal are normal.
6. device as claimed in claim 5, it is characterised in that the request transmitting unit, specifically for according to predetermined interval
Time sends connection to the application layer of the mobile terminal and examines request.
7. device as claimed in claim 6, it is characterised in that the judging unit, specifically for judging the bluetooth equipment
Whether the time for not receiving the answer signal exceedes time preset value, if not less than time preset value, continues waiting for connecing
Receive the answer signal;If exceeding time preset value, connection is sent again to the application layer of the mobile terminal and examines request,
And stored count is once;Judge whether the number of stored count exceedes number preset value, if exceeding number preset value, confirm institute
It is abnormal to state the application layer communication of bluetooth equipment and the mobile terminal, if not less than number preset value, continues through described ask
Ask transmitting element to send connection to the application layer of the mobile terminal and examine request.
8. device as claimed in claim 7, it is characterised in that the wait reconnection unit, specifically for judging the bluetooth
Equipment whether with the mobile terminal application layer successful connection, if so, then to the mobile terminal application layer send connection inspection
Test request;If it is not, then send open command to the underlying protocol stack of the bluetooth equipment.
9. a kind of Bluetooth communication device, it is characterised in that described device includes memory and processor, and the memory storage has
Right can be realized by the computer program of the computing device, the computer program during computing device
It is required that the method and step described in any one of 1-4.
10. a kind of bluetooth equipment, it is characterised in that the bluetooth equipment includes the indigo plant as described in claim 5-8 any one
Tooth communicator or Bluetooth communication device as claimed in claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710807595.5A CN107454563B (en) | 2017-09-08 | 2017-09-08 | Bluetooth communication method and device and Bluetooth equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710807595.5A CN107454563B (en) | 2017-09-08 | 2017-09-08 | Bluetooth communication method and device and Bluetooth equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107454563A true CN107454563A (en) | 2017-12-08 |
CN107454563B CN107454563B (en) | 2020-08-28 |
Family
ID=60496071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710807595.5A Active CN107454563B (en) | 2017-09-08 | 2017-09-08 | Bluetooth communication method and device and Bluetooth equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107454563B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108184225A (en) * | 2017-12-29 | 2018-06-19 | 飞天诚信科技股份有限公司 | Cancel the method and intelligent terminal of bluetooth connection in a kind of Bluetooth connection process in real time |
CN108271277A (en) * | 2017-12-29 | 2018-07-10 | 深圳真时科技有限公司 | A kind of communication connecting method and device |
CN108804358A (en) * | 2018-04-24 | 2018-11-13 | 周文升 | A method of using the connectionless channel transparent transmission I/O port states of bluetooth L2CAP |
CN109413626A (en) * | 2018-10-08 | 2019-03-01 | 四川长虹电器股份有限公司 | Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically |
CN111132098A (en) * | 2018-10-31 | 2020-05-08 | 阿尔卑斯通信器件技术(上海)有限公司 | Communicator, central communication device and blue tooth communication system |
CN112084159A (en) * | 2020-07-28 | 2020-12-15 | 重庆攸亮科技股份有限公司 | File synchronization system and method based on Bluetooth communication |
CN112737739A (en) * | 2020-12-25 | 2021-04-30 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN112965358A (en) * | 2019-11-28 | 2021-06-15 | Oppo广东移动通信有限公司 | Wearable device, control method, and computer-readable storage medium |
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN114245483A (en) * | 2021-12-23 | 2022-03-25 | 广州思德医疗科技有限公司 | Communication monitoring reconnection method and system for gastrointestinal endoscopy capsule |
CN114253143A (en) * | 2020-09-24 | 2022-03-29 | 深圳绿米联创科技有限公司 | Load device control method, device and system, electronic device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103518418A (en) * | 2012-09-27 | 2014-01-15 | 华为终端有限公司 | Connecting method between Bluetooth devices and device |
CN104469658A (en) * | 2014-11-10 | 2015-03-25 | 福建联迪商用设备有限公司 | Method and device for improving compatibility between POS machine and mobile terminal Bluetooth part |
US20150131471A1 (en) * | 2010-12-14 | 2015-05-14 | At&T Intellectual Property I, L.P. | Intelligent mobility application profiling tool |
CN105392110A (en) * | 2015-11-25 | 2016-03-09 | 广东欧珀移动通信有限公司 | Bluetooth connection reminding method and system for mobile terminal |
CN105636004A (en) * | 2015-12-25 | 2016-06-01 | 惠州Tcl移动通信有限公司 | Bluetooth automatic reconnection method and system based on low power consumption Bluetooth |
CN106303907A (en) * | 2015-05-28 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Bluetooth communication method and bluetooth communication device |
CN106535090A (en) * | 2016-10-11 | 2017-03-22 | 歌尔科技有限公司 | Pairing method for Bluetooth device and intelligent device and Bluetooth device |
CN106535096A (en) * | 2016-11-07 | 2017-03-22 | 广东思派康电子科技有限公司 | Bluetooth rapid reconnection method |
-
2017
- 2017-09-08 CN CN201710807595.5A patent/CN107454563B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150131471A1 (en) * | 2010-12-14 | 2015-05-14 | At&T Intellectual Property I, L.P. | Intelligent mobility application profiling tool |
CN103518418A (en) * | 2012-09-27 | 2014-01-15 | 华为终端有限公司 | Connecting method between Bluetooth devices and device |
CN104469658A (en) * | 2014-11-10 | 2015-03-25 | 福建联迪商用设备有限公司 | Method and device for improving compatibility between POS machine and mobile terminal Bluetooth part |
CN106303907A (en) * | 2015-05-28 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Bluetooth communication method and bluetooth communication device |
CN105392110A (en) * | 2015-11-25 | 2016-03-09 | 广东欧珀移动通信有限公司 | Bluetooth connection reminding method and system for mobile terminal |
CN105636004A (en) * | 2015-12-25 | 2016-06-01 | 惠州Tcl移动通信有限公司 | Bluetooth automatic reconnection method and system based on low power consumption Bluetooth |
CN106535090A (en) * | 2016-10-11 | 2017-03-22 | 歌尔科技有限公司 | Pairing method for Bluetooth device and intelligent device and Bluetooth device |
CN106535096A (en) * | 2016-11-07 | 2017-03-22 | 广东思派康电子科技有限公司 | Bluetooth rapid reconnection method |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108271277A (en) * | 2017-12-29 | 2018-07-10 | 深圳真时科技有限公司 | A kind of communication connecting method and device |
CN108184225A (en) * | 2017-12-29 | 2018-06-19 | 飞天诚信科技股份有限公司 | Cancel the method and intelligent terminal of bluetooth connection in a kind of Bluetooth connection process in real time |
CN108804358A (en) * | 2018-04-24 | 2018-11-13 | 周文升 | A method of using the connectionless channel transparent transmission I/O port states of bluetooth L2CAP |
CN109413626B (en) * | 2018-10-08 | 2021-06-22 | 四川长虹电器股份有限公司 | Automatic back-connection compatible method for white list and non-white list of remote Bluetooth equipment |
CN109413626A (en) * | 2018-10-08 | 2019-03-01 | 四川长虹电器股份有限公司 | Remote Bluetooth devices white list and non-the white list company's of returning compatibility method automatically |
CN111132098A (en) * | 2018-10-31 | 2020-05-08 | 阿尔卑斯通信器件技术(上海)有限公司 | Communicator, central communication device and blue tooth communication system |
CN111132098B (en) * | 2018-10-31 | 2023-11-28 | 阿尔卑斯通信器件技术(上海)有限公司 | Communicator, central communication device and Bluetooth communication system |
CN112965358A (en) * | 2019-11-28 | 2021-06-15 | Oppo广东移动通信有限公司 | Wearable device, control method, and computer-readable storage medium |
CN112084159A (en) * | 2020-07-28 | 2020-12-15 | 重庆攸亮科技股份有限公司 | File synchronization system and method based on Bluetooth communication |
CN112084159B (en) * | 2020-07-28 | 2023-02-21 | 重庆攸亮科技股份有限公司 | File synchronization system and method based on Bluetooth communication |
CN114253143A (en) * | 2020-09-24 | 2022-03-29 | 深圳绿米联创科技有限公司 | Load device control method, device and system, electronic device and storage medium |
CN112737739A (en) * | 2020-12-25 | 2021-04-30 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN112737739B (en) * | 2020-12-25 | 2022-08-23 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN114245483A (en) * | 2021-12-23 | 2022-03-25 | 广州思德医疗科技有限公司 | Communication monitoring reconnection method and system for gastrointestinal endoscopy capsule |
CN114245483B (en) * | 2021-12-23 | 2023-12-12 | 广州思德医疗科技有限公司 | Communication monitoring reconnection method and system for gastroenteroscope capsule |
Also Published As
Publication number | Publication date |
---|---|
CN107454563B (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107454563A (en) | A kind of Bluetooth communication method, device and bluetooth equipment | |
US8042743B2 (en) | IC card comprising a main device and an additional device | |
US9722971B2 (en) | Method for routing within a mobile terminal emulating a contactless payment card | |
CN104869043B (en) | A kind of method and terminal for establishing VPN connection | |
CN102662897B (en) | Mobile terminal and data interaction method between mobile terminals | |
CN109756864A (en) | A kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and readable storage medium storing program for executing | |
CN215897719U (en) | SIM card switching device and electronic equipment | |
CN107533530A (en) | Electronic device method and the electronic equipment for supporting this method | |
CN102938783A (en) | Socket processing method and device and Web server | |
CN104660780B (en) | Electronic equipment and its control method | |
WO2024094068A1 (en) | Communication connection control method, vehicle-mounted device, communication system and storage medium | |
CN105592572A (en) | Bluetooth connection control method and terminal | |
CN109542812A (en) | Data communication control method, device and terminal device | |
CN106488429A (en) | The processing method and processing device of client identification module SIM | |
JP2019216511A (en) | Control system and program | |
CN101883176A (en) | Expansion card processing method, device and mobile terminal | |
CN104486753A (en) | Message control method | |
CN107911538A (en) | A kind of call handling method, mobile terminal and storage medium | |
CN104123261B (en) | A kind of electronic equipment and information transferring method | |
CN105224484B (en) | The method and apparatus that multiplex roles application is realized in ID authentication device | |
CN109862553B (en) | Terminal and communication method | |
CN108307542B (en) | Method and device for realizing reconnection of Bluetooth peripheral equipment by intelligent television during Bluetooth adapter replacement | |
CN108694145A (en) | Pci-e interface control system | |
CN111328155B (en) | Data transmission method, device, storage medium and electronic equipment | |
EP3815348B1 (en) | Electronic device and method for synchronizing call logs |
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 |