CN107135463A - A kind of Bluetooth connecting method and device - Google Patents
A kind of Bluetooth connecting method and device Download PDFInfo
- Publication number
- CN107135463A CN107135463A CN201710212203.0A CN201710212203A CN107135463A CN 107135463 A CN107135463 A CN 107135463A CN 201710212203 A CN201710212203 A CN 201710212203A CN 107135463 A CN107135463 A CN 107135463A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth connection
- protocol
- classical
- power consumption
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
This application discloses a kind of method of bluetooth connection, including:Send Bluetooth connection request;Slave unit answer signal is received, low-power consumption bluetooth connection is set up;According to command function signal behavior Bluetooth protocol, bluetooth connection is set up by Bluetooth protocol, bluetooth channel is selected;Receive or send data.The application also discloses a kind of device of bluetooth connection simultaneously.Intelligent watch and smart mobile phone are attached by way of low-power consumption bluetooth and classical bluetooth combination, and are adopted using intelligent watch as central equipment, and smart mobile phone is connected for the connected mode of ancillary equipment;By low-power consumption bluetooth, smart mobile phone can control wrist-watch to change dial plate, dial plate thumbnail, PUSH message are obtained from wrist-watch to wrist-watch;By classical bluetooth from the synchronous contact person of wrist-watch, phone is taken using wrist-watch;Solve existing intelligent watch and the incomplete problem of smart mobile phone co-ordination.
Description
Technical field
The application is related to bluetooth applications field, and in particular to a kind of Bluetooth connecting method.The application is related to a kind of indigo plant simultaneously
Tooth attachment means.
Background technology
With the development of science and technology, Intelligent worn device is increasingly liked by people.Intelligent watch is represented as great
Property, the higher intelligent and portable equipment of utilization rate, application scenarios increasingly enrich, and possess monitoring sleep, monitor heart rate, sitting and carry
Wake up, run and remember the functions such as step, remote photographic, music, video recording, compass.Intelligent watch product just in the market comes
See, intelligent watch is generally divided into health data monitoring and intelligent all can experience the two major classes.Health data monitoring class is generally gathered around
There is the monitoring function in terms of heart rate, meter step and calorie consumption;And the wrist-watch that all can intelligently experience class then compares emphasis wrist
On application experience, such as Apple Watch just play iPhone the second screen this role, alleviate well
IPhone continuation of the journey problem.
In actual use, intelligent watch is needed to connect smart mobile phone, and data interaction is carried out with smart mobile phone, and realize more just
Prompt function.At present, intelligent watch connects smart mobile phone by bluetooth 4.0, and bluetooth 4.0 is the upgraded version of bluetooth 3.0, more blue
The more power saving of the version of tooth 3.0, cost are low, 3 milliseconds of low latencies, overlength effectively connect distance, AES-128 encryptions etc..
Intelligent watch and the traditional connected mode of smart mobile phone are that, using smart mobile phone as main equipment, intelligent watch is from setting
It is standby, the connection of low-power consumption bluetooth is first set up, communications protocol is then sequentially connected, such intelligent watch is the auxiliary of smart mobile phone
Equipment, in the case where needing that intelligent watch is used alone, it is impossible to substitute smart mobile phone work completely.
The content of the invention
The application provides a kind of method of bluetooth connection, endless to solve existing intelligent watch and smart mobile phone co-ordination
Kind the problem of.The application provides a kind of device of bluetooth connection in addition.
The application provides a kind of method of bluetooth connection.
Optionally, the low-power consumption bluetooth connection uses GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, CAP connections
Preceding data broadcasting protocols, the Data Transport Protocol after GATT connections.
Optionally, the reception slave unit answer signal, sets up low-power consumption bluetooth connection, uses bluetooth ANCS sending out notice
Agreement.
Optionally, the reception slave unit answer signal, sets up low-power consumption bluetooth connection, including:
Slave unit answer signal is received, low-power consumption bluetooth connection is set up;
Successful connection message is returned to, the message includes registration ANCS sending out notice agreements.
Optionally, the slave unit receives the successful connection message, registers ANCS sending out notice agreements.
Optionally, it is described according to command function signal behavior Bluetooth protocol, including:The synchronous contact persons of the PBAP of classical bluetooth
Agreement;The HFP of classical bluetooth takes telephone protocol.
Optionally, it is described that bluetooth connection is set up by Bluetooth protocol according to command function signal behavior Bluetooth protocol, selection
Bluetooth channel, including:
Classical bluetooth connection signal is received, example is created by the synchronous contact person's agreements of PBAP;
Set up the synchronous contact person's passages of PBAP of classical bluetooth.
Optionally, it is described that bluetooth connection is set up by Bluetooth protocol according to command function signal behavior Bluetooth protocol, selection
Bluetooth channel, including:
Classical bluetooth connection signal is received, taking telephone protocol by HFP creates example;
The HFP for setting up classical bluetooth takes telephone channel;
Add monitoring task.
Optionally, including:The low-power consumption bluetooth is disconnected, then disconnects the HFP and takes telephone channel.
The application also provides a kind of device of bluetooth connection, including:
Transmitting element, Bluetooth connection request is sent for main equipment;
Receiving unit, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection;
Classical bluetooth selecting unit, for according to command function signal behavior Bluetooth protocol, setting up blue by Bluetooth protocol
Tooth is connected, and selects bluetooth channel;
Transmission unit, for receiving or sending data.
Wherein, the main equipment is intelligent watch;The slave unit is smart mobile phone.
Optionally, the low-power consumption bluetooth connection uses GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, CAP connections
Preceding data broadcasting protocols, the Data Transport Protocol after GATT connections.
Optionally, the receiving unit, including:Use bluetooth ANCS sending out notice agreements.
Optionally, the receiving unit, including:
Low-power consumption unit, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection;
Message returning unit, for returning to successful connection message, the message includes registration ANCS sending out notice agreements.
Optionally, the slave unit, including:Registering unit, for receiving the successful connection message, registration ANCS is pushed
Notification protocol.
Optionally, the classical bluetooth selecting unit, according to command function signal behavior Bluetooth protocol, including:It is classical blue
The synchronous contact person's agreements of the PBAP of tooth;The HFP of classical bluetooth takes telephone protocol.
Optionally, the classical bluetooth selecting unit, according to command function signal behavior Bluetooth protocol, including:
PBAP units are received, for receiving classical bluetooth connection signal, example is created by the synchronous contact person's agreements of PBAP;
PBAP channel units are set up, the synchronous contact person's passages of the PBAP for setting up classical bluetooth.
Optionally, it is described that bluetooth connection is set up by Bluetooth protocol according to command function signal behavior Bluetooth protocol, selection
Bluetooth channel, including:
HFP units are received, for receiving classical bluetooth connection signal, telephone protocol is taken by HFP and creates example;
HFP channel units are set up, the HFP for setting up classical bluetooth takes telephone channel;
Monitoring unit, for adding monitoring task.
Optionally, including:Switching units are controlled, for disconnecting the low-power consumption bluetooth, then the HFP is disconnected and takes phone
Passage.
Compared with prior art, the application has advantages below:
Intelligent watch and smart mobile phone are attached by way of low-power consumption bluetooth and classical bluetooth combination, and use hand
Table is central equipment, and mobile phone is connected for the connected mode of ancillary equipment;By low-power consumption bluetooth, smart mobile phone can control hand
Table changes dial plate, dial plate thumbnail, PUSH message is obtained from wrist-watch to wrist-watch;By classical bluetooth from the synchronous contact person of wrist-watch, from
Wrist-watch takes phone;Solve existing intelligent watch and the incomplete problem of smart mobile phone co-ordination.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram for bluetooth connection that the application first embodiment is provided.
Fig. 2 is a kind of method schematic diagram for bluetooth connection that the application first embodiment is provided.
Fig. 3 is a kind of schematic device for bluetooth connection that the application second embodiment is provided.
Embodiment
Many details are elaborated in the following description to fully understand the application.But the application can be with
Much it is different from other manner described here to implement, those skilled in the art can be in the situation without prejudice to the application intension
Under do similar popularization, therefore the application is not limited by following public specific implementation.
This application provides a kind of method of bluetooth connection, intelligent watch is set to replace smart mobile phone in some better offs
Work.Fig. 1 is refer to, is a kind of method flow diagram for bluetooth connection that the application first embodiment is provided.The following is to the party
Method is to be described in detail, and Android intelligent watch and ios system smart mobile phones are used in illustration, and example is to use
Carry out the description of householder method, this method can be used in qualified all smart machine connections, and this method is not done specifically
Limit.
Step S101:Send Bluetooth connection request.
Current smart machine, especially intelligent watch, smart mobile phone all provide bluetooth connection function, for same step number
According to, realize control function etc.;When needing to carry out bluetooth connection, main equipment initiates BlueTooth request signal, to be connected for notifying
Slave unit.
Bluetooth (Bluetooth) is a kind of wireless technology standard, and fixing equipment, mobile device and building people domain can be achieved
Short-range data between net is exchanged (using the UHF radio waves of 2.4-2.485GHz ISM band);Bluetooth can connect multiple
Equipment, overcomes the problem of data syn-chronization.Bluetooth is the home control network communication protocol of a standard, the transceiver based on devices with low cost
Chip, transmission range is near, low-power consumption.
What is mainly applied at present is the standard of bluetooth 4.0, and bluetooth 4.0 is integrated by three kinds of specifications, including conventional Bluetooth skill
Art, high speed technology and low power consuming technology, maximum difference is exactly low-power consumption compared with 3.0 versions.
Bluetooth master at most can be with seven in a piconet (a temporary computer network using Bluetooth technology)
Individual device talk, certain not all equipment can reach this maximum.The main equipment that turns into of synchronous base is provided, it is main
Equipment is searched, and initiates pairing;Main equipment can also can be exchanged into by protocol conversion role, slave unit between equipment;For example,
If a headphone initiates connection request to mobile phone, it, as the promoter of connection, is exactly main equipment naturally, but with
Perhaps it can be run afterwards as slave unit.
In this method, main equipment is intelligent watch;The slave unit is smart mobile phone.Intelligent watch (androidWear)
Bluetooth connection request is sent, slave unit to be connected (iphone) is notified.
Step S102:Slave unit answer signal is received, low-power consumption bluetooth connection is set up.
Slave unit is received behind BlueTooth request, if allowing to be connected, and returns to answer signal;Main equipment receives slave unit response
Signal, sets up low-power consumption bluetooth connection;By low-power consumption bluetooth, smart mobile phone (iphone) can control intelligent watch to change table
Disk, dial plate thumbnail, PUSH message are obtained to intelligent watch from intelligent watch.
The technology of bluetooth 4.0 can be that manufacturer and user provide three kinds of radio connections, including for multiple classification electronics
The traditional bluetooth technology of consumer products;Indigo plant for the video signals such as mobile phone, camera, video camera, PC and TV, music and picture transfer
Tooth high speed technology;And for health care and health, personal device, automobile and automate the low-power sensing equipment of industry and new
The bluetooth low power consuming technology of network service.
The low-power consumption bluetooth connection uses data before GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, CAP connections
Radio Broadcasting Agreements, the Data Transport Protocol after GATT connections.
Bluetooth protocol is that the rule that information should be observed is exchanged between bluetooth equipment.With Open System Interconnection (OSI) model
Equally, the protocol architecture of Bluetooth technology also uses hierarchy, and bluetooth protocol repertory, each layer protocol are formd from bottom to high level
Define completed function and use data packet format, to ensure the interoperability between blue tooth productses.
The reception slave unit answer signal, sets up low-power consumption bluetooth connection, uses bluetooth ANCS sending out notice agreements.
ANCS:It is the agreement for being specifically used to sending out notice in Bluetooth protocol, apple notifies center (Apple Notification
Center Service) abbreviation.
The reception slave unit answer signal, sets up low-power consumption bluetooth connection, including:
Slave unit answer signal is received, low-power consumption bluetooth connection is set up;
Successful connection message is returned to, the message includes registration ANCS sending out notice agreements.
Specifically, intelligent watch (androidWear) is set up by low-power consumption bluetooth with smart mobile phone (iphone) and is connected,
Then determine to want to register ANCS functions inside the readjustment that connection is completed.
The slave unit receives the successful connection message, registers ANCS sending out notice agreements.
Specifically, if the notice switch of smart mobile phone (iphone) bluetooth connection assistant is to open, ANCS is just registered,
Otherwise just do not register.
The benefit of this mode is:Ensure that wrist-watch can receive the notice of push when user is initially opened, and point out user
Know that assistant has this function;And allow user to choose whether notification received right.
Concrete condition so in actual use is as follows:
AncsDev=BluetoothAdapter.getDefaultAdapter () .getRemoteDevice
(address);
MANCSHandler=ANCSParser.getDefault (this);
mANCSHandler.listenOSNotification(BleService.this);
MANCSScb=new ANCSGattCallback (this, mANCSHandler);
mANCSScb.setBluetoothGatt(mContext,true,mANCSScb);
mANCSScb.setStateStart();
It is to establish using intelligent watch as main equipment by the step, smart mobile phone connects for the low-power consumption of slave unit;
By low-power consumption bluetooth, smart mobile phone (iphone) can control intelligent watch to change dial plate, and dial plate breviary is obtained from intelligent watch
Figure, PUSH message are to intelligent watch.When needing data interaction, in addition it is also necessary to which classical bluetooth provides service.
Step S103:According to command function signal behavior Bluetooth protocol, bluetooth connection is set up by Bluetooth protocol, selection is blue
Tooth channel.
The function that phone is taken from the synchronous contact person of intelligent watch, from intelligent watch is realized by classical bluetooth.It is most common
Wrist-watch and the mode of bluetooth connection of mobile phone be exactly first to set up the connection of low-power consumption bluetooth, be then sequentially connected ANCS, PBAP,
HFP equipment, and the Bluetooth protocol of each in this case will just carry out the connection of bluetooth when in use, i.e., it is described to be believed according to command function
Number selection Bluetooth protocol, sets up bluetooth connection by Bluetooth protocol, selects bluetooth channel.
It is described according to command function signal behavior Bluetooth protocol, including:The synchronous contact person's agreements of the PBAP of classical bluetooth;Through
The HFP of allusion quotation bluetooth takes telephone protocol.
PBAP (Phonebook Access Profile) telephone directory book access protocol, is specifically used in Bluetooth protocol
The agreement of synchronous contact person.
HFP (Hands-free Profile), is the agreement for being specifically used to take phone in Bluetooth protocol, allows bluetooth equipment
Phone can be controlled, such as answer, hang up, rejection, phonetic dialing, whether rejection, phonetic dialing will regard bluetooth earphone and phone
Support.
Described to set up bluetooth connection by Bluetooth protocol according to command function signal behavior Bluetooth protocol, selection bluetooth is believed
Road, including:
Classical bluetooth connection signal is received, example is created by the synchronous contact person's agreements of PBAP;
Set up the synchronous contact person's passages of PBAP of classical bluetooth.
When triggering synchronous contact person's button on smart mobile phone (iphone), intelligent watch, intelligent watch are sent a command to
Bluetooth connection signal is received, PBAP example is created, classical bluetooth connection is set up, prepares synchronous contact person.So do
Benefit is exactly that something is only done in the unit interval, finishes and is shut off thread, it is ensured that the state of the whole state machine of bluetooth is simplified.
PBAP is the agreement of classical bluetooth, synchronous contact person to use classical bluetooth;During using PBAP, classical bluetooth connects
Connecting just can be with code come synchronous contact person;Classical bluetooth on intelligent watch scanning smart mobile phone (iphone), once
Smart mobile phone (iphone) bluetooth equipment is scanned, authentication just initiates connection later.
Fig. 2 specifically is refer to, is a kind of method schematic diagram for bluetooth connection that the application first embodiment is provided.By low
Power consumption bluetooth sets up the connection of intelligent watch and smart mobile phone.Smart mobile phone (iphone) can control intelligent watch to change dial plate,
Dial plate thumbnail is obtained from intelligent watch, by ANSC PUSH messages to intelligent watch.When needing synchronous contact person's function, build
The vertical classical bluetooth connections of PBAP.
By following code, the classical bluetooth connections of PBAP are set up:
Described to set up bluetooth connection by Bluetooth protocol according to command function signal behavior Bluetooth protocol, selection bluetooth is believed
Road, including:
Classical bluetooth connection signal is received, taking telephone protocol by HFP creates example;
The HFP for setting up classical bluetooth takes telephone channel;
Add monitoring task.
HFP phone functions, can judge that the HFP on smart mobile phone (iphone) is pressed after low-power consumption bluetooth sets up connection
The state of the switch of button;If open it is necessary to create HFP example, and add monitoring, once have phone dial in or
Person, which transfers to, will start Activity display telephone interfaces.
The HFP agreements that phone uses classical bluetooth are taken, as long as setting up HFP connection during using the agreement, intelligence
Sound on mobile phone (iphone) is with regard to that can be synchronized on wrist-watch, and developer only needs to the exploitation of concern application bed boundary.Intelligence
Classical bluetooth on expert's table scan smart mobile phone (iphone), once scanning is to iphone bluetooth equipment, is authenticated later just
Initiate connection.
The principle for taking telephony feature and synchronous contact person's function is more close;Fig. 2 is refer to, is set up by low-power consumption bluetooth
The connection of intelligent watch and smart mobile phone.Smart mobile phone (iphone) can control intelligent watch to change dial plate, be obtained from intelligent watch
Dial plate thumbnail is taken, by ANSC PUSH messages to intelligent watch.When needing intelligent watch to take phone, HFP is set up classical
Bluetooth connection.
Step S104:Receive or send data.
After classical bluetooth is set up, intelligent watch receives or sends data to smart mobile phone, realizes intelligent watch and intelligence
The data interaction of mobile phone, makes intelligent watch substitute smart mobile phone work.
Set up after classical bluetooth connection passage, can receive or send data, you can with by the address list on intelligent watch
Etc. the smart mobile phone that data are sent to connection;Can synchronous sound, take phone etc..
The low-power consumption bluetooth is disconnected, then disconnects the HFP and takes telephone channel.
Only just go to disconnect HFP when low-power consumption bluetooth connection is disconnected, the benefit so done is exactly to maintain function
Independence, low-power consumption bluetooth does simple data transfer, and HFP does the call function of classical bluetooth, do not interfere with each other.
Meanwhile, connection is just created when using classical Bluetooth function, other situations are still connected using low-power consumption bluetooth.
A kind of description more than, the method for bluetooth connection that the application is provided, makes intelligent watch replace smart mobile phone
Work.According to this method, the application is simultaneously there is provided a kind of device of bluetooth connection.Fig. 3 is refer to, is that the application second is real
A kind of schematic device of bluetooth connection of example offer is provided.The realization implemented with method of device be it is consistent, it is right below
It is simpler in the description of device embodiment, it specifically refer to embodiment of the method.
Transmitting element 201, for sending Bluetooth connection request.
When needing to carry out bluetooth connection, main equipment initiates BlueTooth request signal, for notifying slave unit to be connected, hair
Bluetooth signal is sent to utilize main equipment transmitting element 201.
The smart machines such as smart mobile phone, intelligent watch are furnished with built-in Bluetooth transmission device, (make for sending Bluetooth signal
With the UHF radio waves of 2.4-2.485GHz ISM band).The concrete principle explanation of bluetooth refer to embodiment of the method explanation.
In the present embodiment, main equipment is intelligent watch;The slave unit is smart mobile phone.Intelligent watch
(androidWear) Bluetooth connection request is sent, slave unit to be connected (iphone) is notified.
Receiving unit 202, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection.
Slave unit is received behind BlueTooth request, if allowing to be connected, and returns to answer signal;Main equipment receiving unit 202 connects
Slave unit answer signal is received, low-power consumption bluetooth connection is set up;By low-power consumption bluetooth, smart mobile phone (iphone) can control intelligence
Energy wrist-watch changes dial plate, and dial plate thumbnail, PUSH message are obtained to intelligent watch from intelligent watch.
The smart machines such as smart mobile phone, intelligent watch are furnished with built-in Bluetooth signal device.
The low-power consumption bluetooth connection uses data before GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, CAP connections
Radio Broadcasting Agreements, the Data Transport Protocol after GATT connections.The principle of Bluetooth protocol and explanation refer to embodiment of the method.
The receiving unit 202, including:Use bluetooth ANCS sending out notice agreements.ANCS:It is special in Bluetooth protocol
For the agreement of sending out notice, apple notifies the abbreviation of center (Apple Notification Center Service).
The receiving unit 202, including:
Low-power consumption unit, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection;
Message returning unit, for returning to successful connection message, the message includes registration ANCS sending out notice agreements.
Specifically, intelligent watch (androidWear) is set up by low-power consumption bluetooth with smart mobile phone (iphone) and is connected,
Then determine to want to register ANCS functions inside the readjustment that connection is completed.
The slave unit, including:Registering unit, for receiving the successful connection message, registration ANCS sending out notice association
View.Concrete operating principle refer to embodiment of the method.
Established by receiving unit 202 using intelligent watch as main equipment, smart mobile phone connects for the low-power consumption of slave unit
Connect;By low-power consumption bluetooth, smart mobile phone (iphone) can control intelligent watch to change dial plate, and dial plate contracting is obtained from intelligent watch
Sketch map, PUSH message are to intelligent watch.When needing data interaction, in addition it is also necessary to which classical bluetooth provides service.
Classical bluetooth selecting unit 203, for according to command function signal behavior Bluetooth protocol, being set up by Bluetooth protocol
Bluetooth connection, selects bluetooth channel.
Classical bluetooth selecting unit 203, according to concrete application, selects respective protocol, sets up bluetooth channel.
It is described according to command function signal behavior Bluetooth protocol, including:The synchronous contact person's agreements of the PBAP of classical bluetooth;Through
The HFP of allusion quotation bluetooth takes telephone protocol.
The classical bluetooth selecting unit 203, including:
PBAP units are received, for receiving classical bluetooth connection signal, example is created by the synchronous contact person's agreements of PBAP;
PBAP channel units are set up, the synchronous contact person's passages of the PBAP for setting up classical bluetooth.
When triggering synchronous contact person's button on smart mobile phone (iphone), intelligent watch, intelligent watch are sent a command to
Bluetooth connection signal is received, PBAP example is created, classical bluetooth connection is set up, prepares synchronous contact person.So do
Benefit is exactly that something is only done in the unit interval, finishes and is shut off thread, it is ensured that the state of the whole state machine of bluetooth is simplified.Tool
Body is implemented to refer to embodiment of the method.
The classical bluetooth selecting unit 203, according to command function signal behavior Bluetooth protocol, including:
HFP units are received, for receiving classical bluetooth connection signal, telephone protocol is taken by HFP and creates example;
HFP channel units are set up, the HFP for setting up classical bluetooth takes telephone channel;
Monitoring unit, for adding monitoring task.
HFP phone functions, can judge that the HFP on smart mobile phone (iphone) is pressed after low-power consumption bluetooth sets up connection
The state of the switch of button;If open it is necessary to create HFP example, and add monitoring, once have phone dial in or
Person, which transfers to, will start Activity display telephone interfaces.
Transmission unit 204, for receiving or sending data.
After classical bluetooth is set up, intelligent watch receives or sends data to smart mobile phone, realizes intelligent watch and intelligence
The data interaction of mobile phone, makes intelligent watch substitute smart mobile phone work.
The smart machine embedded with bluetooth such as intelligent watch, smart mobile phone transmission unit 204
Optionally, switching units are controlled, for disconnecting the low-power consumption bluetooth, then the HFP is disconnected and takes telephone channel.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this area skill
Art personnel are not being departed from spirit and scope, can make possible variation and modification, therefore the guarantor of the application
The scope that shield scope should be defined by the application claim is defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
1st, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media
Method or technology realize that information is stored.Information can be computer-readable instruction, data structure, the module of program or other numbers
According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage
(ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or
Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to
Herein defines, and computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulates
Data-signal and carrier wave.
2nd, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program production
Product.Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Moreover, the application can use available in one or more computers for wherein including computer usable program code
The computer program product that storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Form.
Claims (18)
1. a kind of method of bluetooth connection, it is characterised in that including:
Main equipment sends Bluetooth connection request;
Slave unit answer signal is received, low-power consumption bluetooth connection is set up;
According to command function signal behavior Bluetooth protocol, bluetooth connection is set up by Bluetooth protocol, bluetooth channel is selected;
Receive or send data.
Wherein, the main equipment is intelligent watch;The slave unit is smart mobile phone.
2. the method for a kind of bluetooth connection according to claim 1, it is characterised in that the low-power consumption bluetooth connection is used
Data broadcasting protocols before GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, CAP connections, the data transfer association after GATT connections
View.
3. a kind of method of bluetooth connection according to claim 1, it is characterised in that the reception slave unit response letter
Number, low-power consumption bluetooth connection is set up, bluetooth ANCS sending out notice agreements are used.
4. a kind of method of bluetooth connection according to claim 1, it is characterised in that the reception slave unit response letter
Number, low-power consumption bluetooth connection is set up, including:
Slave unit answer signal is received, low-power consumption bluetooth connection is set up;
Successful connection message is returned to, the message includes registration ANCS sending out notice agreements.
5. the method for a kind of bluetooth connection according to claim 4, it is characterised in that the slave unit receives the connection
Success message, registers ANCS sending out notice agreements.
6. the method for a kind of bluetooth connection according to claim 1, it is characterised in that described to be selected according to command function signal
Bluetooth protocol is selected, including:The synchronous contact person's agreements of the PBAP of classical bluetooth;The HFP of classical bluetooth takes telephone protocol.
7. the method for a kind of bluetooth connection according to claim 6, it is characterised in that described to be selected according to command function signal
Bluetooth protocol is selected, bluetooth connection is set up by Bluetooth protocol, bluetooth channel is selected, including:
Classical bluetooth connection signal is received, example is created by the synchronous contact person's agreements of PBAP;
Set up the synchronous contact person's passages of PBAP of classical bluetooth.
8. the method for a kind of bluetooth connection according to claim 6, it is characterised in that described to be selected according to command function signal
Bluetooth protocol is selected, bluetooth connection is set up by Bluetooth protocol, bluetooth channel is selected, including:
Classical bluetooth connection signal is received, taking telephone protocol by HFP creates example;
The HFP for setting up classical bluetooth takes telephone channel;
Add monitoring task.
9. a kind of method of bluetooth connection according to claim 8, it is characterised in that including:Disconnect the low-power consumption blue
Tooth, then disconnect the HFP and take telephone channel.
10. a kind of device of bluetooth connection, it is characterised in that including:
Transmitting element, Bluetooth connection request is sent for main equipment;
Receiving unit, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection;
Classical bluetooth selecting unit, for according to command function signal behavior Bluetooth protocol, setting up bluetooth by Bluetooth protocol and connecting
Connect, select bluetooth channel;
Transmission unit, for receiving or sending data.
Wherein, the main equipment is intelligent watch;The slave unit is smart mobile phone.
11. the device of a kind of bluetooth connection according to claim 10, it is characterised in that the low-power consumption bluetooth connection makes
With GAP general-purpose accessing agreements, GATT general-purpose attribute agreements, data broadcasting protocols before CAP connections, the data transfer after GATT connections
Agreement.
12. a kind of device of bluetooth connection according to claim 10, it is characterised in that the receiving unit, including:Make
With bluetooth ANCS sending out notice agreements.
13. a kind of device of bluetooth connection according to claim 10, it is characterised in that the receiving unit, including:
Low-power consumption unit, for receiving slave unit answer signal, sets up low-power consumption bluetooth connection;
Message returning unit, for returning to successful connection message, the message includes registration ANCS sending out notice agreements.
14. a kind of device of bluetooth connection according to claim 13, it is characterised in that the slave unit, including:Registration
Unit, for receiving the successful connection message, registers ANCS sending out notice agreements.
15. the device of a kind of bluetooth connection according to claim 10, it is characterised in that the classical bluetooth selection is single
Member, according to command function signal behavior Bluetooth protocol, including:The synchronous contact person's agreements of the PBAP of classical bluetooth;Classical bluetooth
HFP takes telephone protocol.
16. the device of a kind of bluetooth connection according to claim 15, it is characterised in that the classical bluetooth selection is single
Member, according to command function signal behavior Bluetooth protocol, including:
PBAP units are received, for receiving classical bluetooth connection signal, example is created by the synchronous contact person's agreements of PBAP;
PBAP channel units are set up, the synchronous contact person's passages of the PBAP for setting up classical bluetooth.
17. the device of a kind of bluetooth connection according to claim 15, it is characterised in that described according to command function signal
Bluetooth protocol is selected, bluetooth connection is set up by Bluetooth protocol, bluetooth channel is selected, including:
HFP units are received, for receiving classical bluetooth connection signal, telephone protocol is taken by HFP and creates example;
HFP channel units are set up, the HFP for setting up classical bluetooth takes telephone channel;
Monitoring unit, for adding monitoring task.
18. a kind of device of bluetooth connection according to claim 17, it is characterised in that including:Switching units are controlled, are used
In disconnecting the low-power consumption bluetooth, then disconnect the HFP and take telephone channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710212203.0A CN107135463A (en) | 2017-04-01 | 2017-04-01 | A kind of Bluetooth connecting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710212203.0A CN107135463A (en) | 2017-04-01 | 2017-04-01 | A kind of Bluetooth connecting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107135463A true CN107135463A (en) | 2017-09-05 |
Family
ID=59715871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710212203.0A Pending CN107135463A (en) | 2017-04-01 | 2017-04-01 | A kind of Bluetooth connecting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107135463A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108966194A (en) * | 2018-07-24 | 2018-12-07 | 重庆长安汽车股份有限公司 | Realize the system and method for mobile phone and the noninductive connection of car-mounted terminal bluetooth |
CN109688570A (en) * | 2018-12-20 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Bluetooth connecting method, system and storage medium |
CN109788461A (en) * | 2017-11-15 | 2019-05-21 | 深圳市优必选科技有限公司 | Bluetooth dual mode data communication means and device |
CN110149568A (en) * | 2019-05-30 | 2019-08-20 | 歌尔科技有限公司 | A kind of bluetooth headset and communication means, system, electronic equipment, computer media |
CN110493751A (en) * | 2019-08-12 | 2019-11-22 | 深圳市尼欧科技有限公司 | Method and car-mounted electronic device based on speech recognition technology making and receiving calls |
CN110572803A (en) * | 2019-07-25 | 2019-12-13 | 华为技术有限公司 | Bluetooth switching method and Bluetooth device |
CN112399358A (en) * | 2020-11-05 | 2021-02-23 | 北京小米移动软件有限公司 | Telephone notification method, device, system, equipment and medium |
CN113923612A (en) * | 2020-07-10 | 2022-01-11 | 华为技术有限公司 | Call method, device and system |
CN114422639A (en) * | 2022-03-16 | 2022-04-29 | 荣耀终端有限公司 | Information display method and wearable device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123064A (en) * | 2014-07-10 | 2014-10-29 | 广州三星通信技术研究有限公司 | Device and method for controlling communication of communication terminal in intelligent wearable device |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
US20150334657A1 (en) * | 2013-08-28 | 2015-11-19 | Qualcomm Incorporated | Wirelessly Connecting Mobile Devices and Wearable Devices |
CN105144757A (en) * | 2013-04-26 | 2015-12-09 | 三星电子株式会社 | Communication service in communication modes |
CN105516889A (en) * | 2015-11-23 | 2016-04-20 | 深圳还是威健康科技有限公司 | Bluetooth connection method and terminal |
CN105516896A (en) * | 2015-12-02 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Bluetooth interconnection method and system for wearable device and mobile terminal |
CN105792050A (en) * | 2016-04-20 | 2016-07-20 | 青岛歌尔声学科技有限公司 | Bluetooth earphone and communication method based on same |
CN106131810A (en) * | 2016-06-20 | 2016-11-16 | 飞天诚信科技股份有限公司 | A kind of method and device connecting bluetooth dual-mode equipment |
CN106171038A (en) * | 2014-03-12 | 2016-11-30 | 腾讯科技(深圳)有限公司 | The method and apparatus controlling ancillary equipment by social network-i i-platform |
CN106488383A (en) * | 2015-08-28 | 2017-03-08 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device connecting bluetooth equipment |
-
2017
- 2017-04-01 CN CN201710212203.0A patent/CN107135463A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105144757A (en) * | 2013-04-26 | 2015-12-09 | 三星电子株式会社 | Communication service in communication modes |
US20150334657A1 (en) * | 2013-08-28 | 2015-11-19 | Qualcomm Incorporated | Wirelessly Connecting Mobile Devices and Wearable Devices |
CN106171038A (en) * | 2014-03-12 | 2016-11-30 | 腾讯科技(深圳)有限公司 | The method and apparatus controlling ancillary equipment by social network-i i-platform |
CN104123064A (en) * | 2014-07-10 | 2014-10-29 | 广州三星通信技术研究有限公司 | Device and method for controlling communication of communication terminal in intelligent wearable device |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
CN106488383A (en) * | 2015-08-28 | 2017-03-08 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device connecting bluetooth equipment |
CN105516889A (en) * | 2015-11-23 | 2016-04-20 | 深圳还是威健康科技有限公司 | Bluetooth connection method and terminal |
CN105516896A (en) * | 2015-12-02 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Bluetooth interconnection method and system for wearable device and mobile terminal |
CN105792050A (en) * | 2016-04-20 | 2016-07-20 | 青岛歌尔声学科技有限公司 | Bluetooth earphone and communication method based on same |
CN106131810A (en) * | 2016-06-20 | 2016-11-16 | 飞天诚信科技股份有限公司 | A kind of method and device connecting bluetooth dual-mode equipment |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109788461A (en) * | 2017-11-15 | 2019-05-21 | 深圳市优必选科技有限公司 | Bluetooth dual mode data communication means and device |
CN109788461B (en) * | 2017-11-15 | 2022-06-28 | 深圳市优必选科技有限公司 | Bluetooth dual-mode data communication method and device |
CN108966194A (en) * | 2018-07-24 | 2018-12-07 | 重庆长安汽车股份有限公司 | Realize the system and method for mobile phone and the noninductive connection of car-mounted terminal bluetooth |
CN109688570A (en) * | 2018-12-20 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Bluetooth connecting method, system and storage medium |
CN109688570B (en) * | 2018-12-20 | 2022-10-25 | 惠州Tcl移动通信有限公司 | Bluetooth connection method, system and storage medium |
CN110149568A (en) * | 2019-05-30 | 2019-08-20 | 歌尔科技有限公司 | A kind of bluetooth headset and communication means, system, electronic equipment, computer media |
WO2021013156A1 (en) * | 2019-07-25 | 2021-01-28 | 华为技术有限公司 | Bluetooth switching method and bluetooth device |
CN110572803A (en) * | 2019-07-25 | 2019-12-13 | 华为技术有限公司 | Bluetooth switching method and Bluetooth device |
CN110493751A (en) * | 2019-08-12 | 2019-11-22 | 深圳市尼欧科技有限公司 | Method and car-mounted electronic device based on speech recognition technology making and receiving calls |
CN113923612A (en) * | 2020-07-10 | 2022-01-11 | 华为技术有限公司 | Call method, device and system |
CN112399358A (en) * | 2020-11-05 | 2021-02-23 | 北京小米移动软件有限公司 | Telephone notification method, device, system, equipment and medium |
CN114422639A (en) * | 2022-03-16 | 2022-04-29 | 荣耀终端有限公司 | Information display method and wearable device |
CN114422639B (en) * | 2022-03-16 | 2022-09-06 | 荣耀终端有限公司 | Information display method and wearable device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107135463A (en) | A kind of Bluetooth connecting method and device | |
CN105359560B (en) | Pass through the service provision of intelligent personal gateway | |
TW561745B (en) | Information gateway system and method | |
WO2020233538A1 (en) | Method for accessing wireless local area network and terminal | |
CN106030556A (en) | Method of operating function and resource of electronic device | |
WO2020077512A1 (en) | Voice communication method, electronic device, and system | |
CN110730448A (en) | Method for establishing connection between devices and electronic device | |
US20230422154A1 (en) | Method for using cellular communication function, and related apparatus and system | |
CN109286725A (en) | Interpretation method and terminal | |
CN110198362A (en) | A kind of method and system for adding smart home device in contact person | |
CN113840346A (en) | Operator switching method and related equipment | |
CN106357610B (en) | Communication means and device | |
CN108923971A (en) | Blue-teeth equipment management method, apparatus, computer readable storage medium and its terminal | |
CN105682083B (en) | A kind of communication means of mobile terminal and duplex MODEM system | |
WO2020062304A1 (en) | File transmission method and electronic device | |
US9185192B2 (en) | Method and system of power saving and portable device using the same | |
KR20080084157A (en) | A method and a system for providing multi user interface in a mobile terminal, and a mobile terminal therefor | |
JP5669154B1 (en) | Cordless telephone device, cordless telephone system, and data transfer method | |
JP5583168B2 (en) | Network converter | |
WO2021218544A1 (en) | Wireless connection providing system, method, and electronic apparatus | |
CN116056050A (en) | Audio playing method, electronic equipment and system | |
CN101764801B (en) | Family information processing method and system | |
CN110139257A (en) | Communication connecting method, communication equipment and storage medium | |
CN116233304B (en) | Schedule-based equipment state synchronization system, method and device | |
CN110267243A (en) | Communication control method, communication equipment and storage medium |
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: 20170905 |