CN110505611A - Communication means, equipment, system and readable storage medium storing program for executing - Google Patents
Communication means, equipment, system and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110505611A CN110505611A CN201910364636.7A CN201910364636A CN110505611A CN 110505611 A CN110505611 A CN 110505611A CN 201910364636 A CN201910364636 A CN 201910364636A CN 110505611 A CN110505611 A CN 110505611A
- Authority
- CN
- China
- Prior art keywords
- communication
- communication equipment
- master
- equipment
- connection
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0027—Control or signalling for completing the hand-off for data sessions of end-to-end connection for a plurality of data sessions of end-to-end connections, e.g. multi-call or multi-bearer end-to-end data connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/00837—Determination of triggering parameters for hand-off
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- 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/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
Abstract
This application discloses a kind of communication means, equipment, system and readable storage medium storing program for executing, the first communication connection can be first established between two communication equipments;It communicates to connect by first to current when one of communication equipment detects that Bluetooth communication trigger condition meets as current Master Communication Equipment and notifies as sending master-slave communication from another communication equipment of communication equipment, for completing the registration of HF role from communication equipment and being set as bluetooth and can not be searched state, to avoid causing to initiate to connect in vain or compatibility issue from communication equipment completing to be searched before the second communication connection is established with Master Communication Equipment to supporting HF function;The second communication connection can be established with Master Communication Equipment with Master Communication Equipment data interaction after completing HF role's registration from communication equipment;The invention also discloses a kind of equipment, system and readable storage medium storing program for executing, and by implementing above scheme, communication equipment can dynamically switch between AG role and HF role according to current demand.
Description
Technical field
This application involves the communications fields, and in particular to a kind of communication means, equipment, system and readable storage medium storing program for executing.
Background technique
Bluetooth technology is a kind of wireless technology standard, and bluetooth hands (Hands-free Profile, HFP) are bluetooths
One of technology agreement, in HFP agreement, Bluetooth communication equipment can be divided into AG (Audio Gateway, audio frequency net gate way)
Role and HF (Hands Free, hands-free) role, wherein AG role is a role as defined in HFP agreement, and audio is supported defeated
Enter, export, typical equipment is mobile phone;HF role is that HFP agreement provides another role, is suitable for AG character audio and inputs, is defeated
Out, typical equipment is Bluetooth earphone equipment, the wearable device for supporting Bluetooth function etc..
It is provided according to current agreement, after establishing Bluetooth communication between two Bluetooth communication equipments, two bluetooths are logical
Role between letter equipment just has determined that and cannot change, lead to that Bluetooth communication controls flexibility is poor, application scenarios by compared with
Big limitation.For example, the smartwatch for supporting call function, smartwatch and the mobile phone of pairing are established under normal circumstances
After Bluetooth communication connection, smartwatch is HF role in Bluetooth communication connection, as the end HF;Mobile phone is in the Bluetooth communication
It is AG role in connection, as the end AG.At this time when smartwatch has incoming call, since smartwatch is currently used as the end HF, simultaneously
Mobile phone cannot be used to carry out answering for the incoming call, and, user very unfriendly come the experience of incoming call answering user by smartwatch
The satisfaction of experience is poor.
Summary of the invention
The application technical problems to be solved are: when carrying out Bluetooth communication based on current Bluetooth communication protocol, flexibly
Property it is poor, application scenarios are limited;For the technical problem, a kind of communication means, equipment, system and readable storage medium storing program for executing are provided.
In order to solve the above technical problems, the application provides a kind of communication means, the communication means includes:
The first communication connection is established between two communication equipments, first communication connection is the described two communications of support
Equipment carries out the peer-to-peer communications connection of data double-way interaction;
When one of them described communication equipment detects that Bluetooth communication trigger condition meets, pass through as Master Communication Equipment
Described first communicates to connect to as another communication equipment transmission master-slave communication notice from communication equipment;
The Master Communication Equipment receives the HF role's registration sent from communication equipment by first communication connection
Completion notice, and described be in bluetooth from communication equipment and can not be searched state;
By Session Description Protocol SDP, the note of any role in audio frequency net gate way AG and hands-free HF is carried out to Master Communication Equipment
Volume;
It is matched to Master Communication Equipment and from the role between communication equipment;
When it fails to match, by SDP, increase the registration to another role in the AG and HF of Master Communication Equipment and again
Matching;
With matched role, the second communication connection is established with from communication equipment, second communication connection is Bluetooth communication
Connection, and second communication connection be Master Communication Equipment close bluetooth disconnect with after connection for the first time from communication equipment,
The secondary connection for being again turned on bluetooth and being established from communication equipment;
The Master Communication Equipment passes through the second communication connection progress data interaction from communication equipment with described.
Optionally, the Master Communication Equipment passes through the second communication connection progress data friendship from communication equipment with described
Mutually include:
The Master Communication Equipment issues the first data by second communication connection described from communication equipment;
The Master Communication Equipment receives second data sent from communication equipment by second communication connection.
Optionally, described with matched role, after establishing the second communication connection from communication equipment, further includes:
When the Master Communication Equipment detects that Bluetooth communication closedown condition meets, disconnect and described between communication equipment
The second communication connection, it is described to be in bluetooth from communication equipment and be searched state.
Optionally, the peer-to-peer communications are connected as the connection of bluetooth peer-to-peer communications.
Optionally, it after the Master Communication Equipment disconnection and second between communication equipment communicate to connect, also wraps
It includes:
The Master Communication Equipment re-establishes first communication connection from communication equipment with described.
Optionally, it is described from communication equipment be in bluetooth and can not be searched state include:
It is described that bluetooth itself will be set as not according to the search out code in master-slave communication notice from communication equipment
It can be searched state.
Optionally, the note for carrying out audio frequency net gate way AG role and hands-free HF role respectively by Session Description Protocol SDP
Volume include:
Register the first Universally Unique Identifier UUID and the 2nd UUID respectively in the SDP, the first UUID is used for
It identifies and itself supports AG role, the 2nd UUID supports HF role for identifying itself.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of communication equipments comprising:
Processor, transmitter, receiver, memory, are stored with the first computer program on the memory, and described
One computer program, transmitter, receiver realize that principal communication is set in communication means as described above when being called by the processor
Standby the step of executing;
And/or second computer program is stored on the memory, the second computer program, connects transmitter
It receives when device is called by the processor and realizes the step of executing in communication means as described above from communication equipment.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of Bluetooth communication system, the Bluetooth communication systems
System includes two communication equipments for establishing the first communication connection, and first communication connection is the described two communication equipments of support
Carry out the peer-to-peer communications connection of data double-way interaction;
When one of them described communication equipment detects that Bluetooth communication trigger condition meets, it is used for as Master Communication Equipment
It communicates to connect by described first to as from another communication equipment of communication equipment and sends master-slave communication notice, and
It receives the HF role for communicating to connect transmission by described first from communication equipment and registers completion notice, with described from communication
Equipment establishes the second communication connection, and second communication connection is that Bluetooth communication connects, and communicates to connect and institute by described second
It states from communication equipment and carries out data interaction;The Master Communication Equipment described in second communication connection is the end AG, described from communication
Equipment is the end HF;Wherein, by Session Description Protocol SDP, Master Communication Equipment is carried out any in audio frequency net gate way AG and hands-free HF
The registration of role;It is matched to Master Communication Equipment and from the role between communication equipment;When it fails to match, by SDP,
Increase the registration to another role in the AG and HF of Master Communication Equipment and matches again;With matched role, and from communication equipment
Establish the second communication connection;Second communication connection is to close bluetooth in Master Communication Equipment to disconnect and the head from communication equipment
Secondary connection and then the secondary secondary connection opening bluetooth and being established from communication equipment;
Another described communication equipment after receiving the master-slave communication notice for being used as from the communication equipment completion angle HF
The registration of color, and communicate to connect by described first to the Master Communication Equipment and send HF role's registration completion notice, and is described
State can not be searched by being in bluetooth from communication equipment;And for establishing the second communication connection with the Master Communication Equipment, lead to
It crosses second communication connection and carries out data interaction with the Master Communication Equipment.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of computer readable storage medium, the calculating
Machine readable storage medium storing program for executing is stored with the first computer program that can be run on a processor, and first computer program is located
Reason device realizes the step of Master Communication Equipment in communication means as described above executes when executing;
Or, the computer-readable recording medium storage has the second computer program that can be run on a processor, it is described
Second computer program realizes the step that the slave communication equipment in communication means as described above executes when being executed by the processor
Suddenly.
Beneficial effect
The application provides a kind of communication means, equipment, system and readable storage medium storing program for executing, can be first between two communication equipments
The first communication connection is established, which carries out the peer-to-peer communications of data double-way interaction for two communication equipments of support
Connection;It is logical to can be used as current Master Communication Equipment when one of communication equipment detects that Bluetooth communication trigger condition meets
It crosses first and communicates to connect to current and notify as sending master-slave communication from another communication equipment of communication equipment, for from communication
Equipment completes the registration of HF role and is arranged in bluetooth and can not be searched state, to avoid being to lead from communication equipment
Communication equipment completion second communicates to connect to establish and is searched supporting HF function before and causes to initiate invalid connection or compatibility
Problem;Master Communication Equipment with from communication equipment establish the second communication connection, which is that Bluetooth communication connects;This
Sample Master Communication Equipment and the interaction that data can be carried out based on the second communication connection currently established from communication equipment.Namely this
In the Bluetooth communication control that application provides, two communication equipments can be according to current demand dynamically in AG role and HF role
Between switch, such as when one of communication equipment be smartwatch, another communication equipment be mobile phone when, smartwatch exists
Bluetooth communication trigger condition meet (such as when having incoming call) when can be used as master-slave communication notice mobile phone be used as from communication equipment with
It establishes the second communication connection, thus using mobile phone as its end HF by bluetooth realize corresponding function (such as complete incoming call connect
Listen), vice versa;Therefore the flexibility of Bluetooth communication control can be promoted and promote the application scenarios of Bluetooth communication, into
And promote the satisfaction of user experience.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting the application
Example is applied, and is used to explain the principle of the application together with specification.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, for those of ordinary skill in the art
For, without any creative labor, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of communication equipment provided by the embodiments of the present application;
Solid is illustrated when Fig. 2-1 is a kind of screen expansion of embodiment of wearable device provided by the embodiments of the present application
Figure one;
Solid is illustrated when Fig. 2-2 is a kind of screen expansion of embodiment of wearable device provided by the embodiments of the present application
Figure two;
Solid is illustrated when Fig. 2-3 is a kind of screen-bending of embodiment of wearable device provided by the embodiments of the present application
Figure;
Fig. 3 is a kind of schematic diagram of embodiment of mobile phone provided by the embodiments of the present application;
Fig. 4 is the flow diagram for the communication means that the application first embodiment provides;
Fig. 5 is the flow diagram for re-establishing the first communication connection that the application first embodiment provides;
Fig. 6 is the flow diagram for the communication means that the application second embodiment provides;
Fig. 7 is a kind of communication apparatus construction schematic diagram that the application fourth embodiment provides.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit this Shen
Please.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
The explanation for being conducive to the application, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
The communication equipment provided in the embodiment of the present application can be various mobile devices, such as can include but is not limited to
Mobile phone, IPAD, mobile unit, communication equipment 100 etc., wherein communication equipment 100 may include but be not limited to Intelligent bracelet, intelligence
The mobile terminals such as wrist-watch and smart phone (the embodiment of the present application is also referred to as wrist machine) with wearable characteristic.With
The continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, the mobile terminals such as smart phone can also be made
For communication equipment 100.The communication equipment 100 provided in the embodiment of the present application may include: radio frequency (Radio Frequency,
RF) unit, bluetoothModule, WiFi module, audio output unit, A/V (audio/video) input unit,
The components such as sensor, display unit, user input unit, interface unit, memory, processor and power supply.
Referring to Fig. 1, it is the hardware structural diagram for realizing a kind of communication equipment of each embodiment of the application, it should
Communication equipment 100 may include: radio frequency unit 101, bluetooth module 112, WiFi module 102, audio output unit 103, A/V
(audio/video) input unit 104, display unit 106, user input unit 107, interface unit 108, is deposited sensor 105
The components such as reservoir 109, processor 110 and power supply 111.It will be understood by those skilled in the art that communication shown in Fig. 1 is set
Standby 100 structures do not constitute the restriction to communication equipment 100, and communication equipment 100 may include than illustrating more or fewer portions
Part perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to communication equipment 100:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in carry out signal and send and receive, may include using
In the transmitter for carrying out information transmission and for carrying out the received receiver of information.Such as the transmitter of radio frequency unit 101 can be with
Uplink information is sent to base station after the downlink information that receiver is used to receive base station transmission receives to be sent to Bluetooth communication and set
Standby 100 processor 110 is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101
What the uplink information that send generated, it is also possible to main after the information update for detecting communication equipment 100 push away to radio frequency unit 101
It send, for example, base station can be to communication equipment 100 after detecting that geographical location locating for communication equipment 100 changes
Radio frequency unit 101 send the message informing of geographical location variation, radio frequency unit 101, can be with after receiving the message informing
The processor 110 that the message informing is sent to communication equipment 100 is handled, the processor 110 of communication equipment 100 can control
The message informing is shown on the display panel 1061 of communication equipment 100;In general, radio frequency unit 101 includes but is not limited to day
Line, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 may be used also
It specifically may include: by wireless communication and in network system to be communicated by wireless communication with network and other equipment
Server communication, for example, communication equipment 100 can download file resource from server by wireless communication, such as can be from
Application program is downloaded in server, after communication equipment 100 completes the downloading of a certain application program, if this in server is answered
It is updated with the corresponding file resource of program, then the server can push resource updates to communication equipment 100 by wireless communication
Message informing, to remind user to be updated the application program.Above-mentioned wireless communication can be used any communication standard or
Agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications system
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing- Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing- Long Term Evolution, time division duplex long term evolution) etc..
In one embodiment, communication equipment 100 can access existing communication network by insertion SIM card.
In another embodiment, communication equipment 100 can be come real by the way that esim card (Embedded-SIM) is arranged
Existing communication network is now accessed, by the way of esim card, the inner space of communication equipment 100 can be saved, is reduced thick
Degree.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its
And it is not belonging to must be configured into for communication equipment 100, it can according to need within the scope of not changing the essence of the invention and save completely
Slightly.Communication equipment 100 can realize the communication connection with other equipment or communication network separately through WiFi module 102, this
Application embodiment is not limited thereto.
Communication equipment 100 includes bluetooth module 112, and communication equipment 100, can be with other supports by bluetooth module 112
The terminal device of Bluetooth communication connects, and realizes communication and the interaction of information.
WiFi belongs to short range wireless transmission technology, and communication equipment 100 can help user to receive by WiFi module 102
It sends e-mails, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although
Fig. 1 shows WiFi module 102, but it is understood that, and it is not belonging to must be configured into for communication equipment 100, completely may be used
To omit within the scope of not changing the essence of the invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in communication equipment 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit
103 can also provide audio output relevant to the specific function that communication equipment 100 executes (for example, call signal reception sound
Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics process
Device (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 are captured in video
In mode or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into
Row processing.Treated, and picture frame may be displayed on display unit 106.Through treated the picture frame of graphics processor 1041
It can store in memory 109 (or other storage mediums) or sent out via radio frequency unit 101 or WiFi module 102
It send.Microphone 1042 can be in telephone calling model, logging mode, speech recognition mode etc. operational mode via Mike
Wind 1042 receives sound (audio data), and can be audio data by such acoustic processing.Treated audio (language
Sound) data can be converted in the case where telephone calling model to be sent to mobile communication base station via radio frequency unit 101
Format output.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and connect with eliminating (or inhibition)
The noise generated during receipts and transmission audio signal or interference.
In one embodiment, communication equipment 100 includes one or more cameras, by opening camera, energy
Enough captures realized to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Communication equipment 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when communication equipment 100 is moved in one's ear
Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect (one in all directions
As be three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify answering for mobile phone posture
With (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng.
In one embodiment, communication equipment 100 further includes proximity sensor, by using proximity sensor, communication
Equipment 100 can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, communication equipment 100 further includes heart rate sensor, when wearing, by close to using
Person can be realized the detecting of heart rate.
In one embodiment, communication equipment 100 can also include fingerprint sensor, by reading fingerprint, Neng Goushi
The functions such as existing safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can
Including display panel 1061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, using the communication equipment of flexible display screen
100 when wearing, and screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED
Shield body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, this reality
Example is applied to be not limited thereto.
In one embodiment, the display panel 1061 of communication equipment 100 can take rectangle, when convenient for wearing
It surround.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and communication equipment 100
User setting and function control related key signals input.Specifically, user input unit 107 may include touch panel
1071 and other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or nearby
Touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch-control
Operation near panel 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 can wrap
Include both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus
Information is touched, and is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and added
To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other
Input equipment 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), rail
One of mark ball, mouse, operating stick etc. are a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of communication equipment 100.Button can be with
The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be multiple, difference
Button between can be applied in combination, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display surface
Plate 1061 is the function that outputs and inputs of realizing communication equipment 100 as two independent components, but in some embodiments
In, touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of communication equipment 100, tool
Body is herein without limitation.For example, when receiving the message informing of a certain application program by radio frequency unit 101, processor
110 can control and show the message informing in a certain predeterminable area of display panel 1061, the predeterminable area and touch surface
The a certain region of plate 1071 is corresponding, can be to display panel by carrying out touch control operation to a certain region of touch panel 1071
The message informing shown in corresponding region on 1061 is controlled.
Interface unit 108 be used as at least one external device (ED) connect with communication equipment 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving from external device (ED) input (for example,
Data information, electric power etc.) and by the input received be transferred to one or more elements in communication equipment 100 or
It can be used for transmitting data between communication equipment 100 and external device (ED).
In one embodiment, communication equipment 100 interface unit 108 using contact structure, by contact with it is right
The other equipment connection answered, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as
Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of communication equipment 100, utilizes various interfaces and the entire communication equipment of connection
100 various pieces by running or execute the software program and/or module that are stored in memory 109, and are called and are deposited
The data in memory 109 are stored up, the various functions and processing data of communication equipment 100 are executed, thus to communication equipment 100
Carry out integral monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate at
Manage device and modem processor, wherein the main processing operation system of application processor, user interface and application program etc. are adjusted
Demodulation processor processed mainly handles wireless communication.It is understood that above-mentioned modem processor can not also integrate everywhere
It manages in device 110.
Communication equipment 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply
111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management,
The functions such as electric discharge and power managed.
Fig. 2-1 to Fig. 2-3 is please referred to, is under a kind of a kind of embodiment of communication equipment 100 provided by the embodiments of the present application
Structural schematic diagram.Communication equipment 100 in the embodiment of the present application is wearable device, including flexible screen.It is set wearable
When standby expansion, flexible screen is elongated;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2-
1 and Fig. 2-2 shows the structural schematic diagram when expansion of wearable device screen, and Fig. 2-3 shows wearable device screen-bending
When structural schematic diagram;The display screen for the wearable device in the embodiment of the present application that should of course be understood that can not also be flexibility
Screen.
Referring to FIG. 3, being the structure under a kind of 100 another embodiment of communication equipment provided by the embodiments of the present application
Schematic diagram.Communication equipment 100 in the embodiment of the present application is mobile phone.
Based on above-mentioned communication equipment hardware structure and communications network system, each embodiment of the application method is proposed.
First embodiment
When carrying out Bluetooth communication for current Bluetooth communication protocol, flexibility is poor, the limited problem of application scenarios, this
Embodiment can establish the first communication connection for supporting two-way communication between the two communication devices, when one of communication is set
Standby detect can be used as current Master Communication Equipment when Bluetooth communication trigger condition meets, communicate to connect by first to current
Send master-slave communication notice as from another communication equipment of communication equipment, so as the end AG with as the end HF from communication
Equipment establishes Bluetooth communication connection, and the present embodiment is referred to as the second communication connection;Master-slave communication notice is received from communication equipment
Afterwards, registering and itself is set and can not being searched state as bluetooth for HF role is completed, to avoid being main lead to from communication equipment
Letter equipment is completed to be searched supporting that HF function and causing is initiated to connect in vain or compatibility is asked before the second communication connection is established
Topic;Master Communication Equipment then can complete data interaction based on the second communication connection of foundation with from communication equipment.Namely the present embodiment
In two communication equipments can dynamically be switched between AG role and HF role according to current demand, bluetooth can be promoted
The flexibility of communication control, and the application scenarios of Bluetooth communication can be promoted, and then promote the satisfaction of user experience.In order to just
In understanding, it is illustrated below with reference to communication means shown in Fig. 4 for example.
Shown in Figure 4, communication means provided in this embodiment includes:
The first communication connection is established between S401: two communication equipments.
In the present embodiment, first communication connection is logical for the equity for supporting two communication equipments to carry out information bidirectional interaction
First it can communicate to connect by this between letter connection namely two communication equipments and send information to other side and receive other side
The information of transmission, one of effect of first communication connection can be used as the subsequent information for carrying out the second communication connection and establishing
Interactive negotiation channel.And it should be understood that the first type communicated to connect in the present embodiment can be according to specific requirements spirit
Selection living, as long as being able to satisfy the requirement that two communication equipments carry out data double-way interaction.For example, this in a kind of example
One communication connection can connect for bluetooth peer-to-peer communications, establish bluetooth peer-to-peer communications between two communication equipments at this time and connect, and
In bluetooth peer-to-peer communications connection, it can be limited without role between two communication equipments, may be alternatively provided as identical role, example
Two communication equipments can all be the end AG (a kind of example in be also all the end HF) in such as a kind of example, and two such communication is set
It can be connected by the bluetooth peer-to-peer communications between standby and send data to other side and receive the data etc. that other side sends.Example again
Such as, in another example, which can connect for WiFi peer-to-peer communications, and two communication equipments can be by this at this time
WiFi peer-to-peer communications, which are connected, to be sent information to other side and receives the information of other side's transmission.In another example in another example, it should
First communication connection can for short-range communication (such as may include but be not limited to NFC (Near Field Communication, closely
Field communication) connection, two communication equipments can send information to other side by the near field communication and receive other side at this time
The information of transmission.In another example in another example, which can connect for zigbee peer-to-peer communications, two at this time
Communication equipment can be connected by the zigbee peer-to-peer communications to be sent information to other side and receives the information of other side's transmission.Example again
Such as, in another example, which can be P2P (Peer-to-peer networking) or D2D (Device-
To-Device) peer-to-peer communications connect, and two communication equipments can be connected by P2P the or D2D peer-to-peer communications at this time sends out to other side
Deliver letters breath and receive other side send information.It will thus be seen that the type of the first communication connection can be flexible in the present embodiment
Setting and the several types that it is not limited to the above example.
In a kind of example of the present embodiment, two communication equipments can all have audio frequency net gate way AG function and hands-free HF function,
Can also a communication equipment have AG function and HF function, another communication equipment only supports AG function or HF function.And it should
Understand, the communication equipment in the present embodiment can flexibly be set according to concrete application scene.Such as two communication equipments
In, one of them can be the wearable device of support Bluetooth communication, another can be the mobile phone of support Bluetooth communication, or
Both for support Bluetooth communication mobile phone, perhaps both be support Bluetooth communication wearable device or one be prop up
The wearable device of Bluetooth communication is held, another is the car-mounted terminal etc. for supporting Bluetooth communication.And it should be understood that originally
Wearable device in embodiment can also flexibly be set according to concrete application scene, for example, can be but be not limited to smartwatch,
Wrist machine etc..
S402: one of communication equipment detects when Bluetooth communication trigger condition meets as Master Communication Equipment, passes through
First communicate to connect to as from another communication equipment of communication equipment send master-slave communication notice.
It should be understood that Bluetooth communication trigger condition can flexibly be set according to demand in the present embodiment, and optional
, which can be arranged by least one of application provider, operator, device manufacturer, user
And/or it updates.
For example, the Bluetooth communication trigger condition may include but be not limited to call and open in some examples of the present embodiment
At least one of dynamic, voice applications starting.
For example, Bluetooth communication trigger condition may include call starting, which can be base in application scenes
In the call of subscriber identification card (Subscriber Identification Module, SIM), or network is logical
Words or other kinds of call.Such as when one of them in above-mentioned two Bluetooth communication terminal is wrist machine, wrist machine receives logical
When words or initiation call, (such as may include but be not limited to call or network video call, voice-over-net based on eSIM card
Call etc.) when, then master-slave communication notice can be sent to another communication equipment.In other application scenarios, Bluetooth communication triggering
Condition may include voice applications starting, and the voice applications in the present embodiment can be all voice applications on communication equipment,
Or the specified voice applications on communication equipment, such as can include but is not limited to various voice assistants, music
Using, video playing with voice-grade channel application or various voice applications of webpage version etc..Such as when above-mentioned two bluetooth
One of them in communication terminal is wrist machine, starts voice assistant (such as little Ai robot or siri speech robot on wrist machine
People) when, then master-slave communication notice can be sent to another communication equipment.
In the present embodiment, after another communication equipment receives master-slave communication notice, notified according to the master-slave communication
Know and currently trigger Bluetooth communication condition on the communication equipment of opposite end, and the communication equipment of opposite end currently leads to as main at this time
Believe equipment, itself currently then directly can carry out subsequent indigo plant with the Master Communication Equipment as from communication equipment, therefore from communication equipment
The foundation of tooth communication connection (namely second communication connection in the present embodiment), and no longer need to go to find by bluetooth discovery
The Master Communication Equipment is found by the Master Communication Equipment, therefore can directly omit bluetooth discovery step, to promote Bluetooth communication
Joint efficiency.
In the present embodiment, it is used as the end HF in the second communication connection from communication equipment, therefore is being received from communication equipment
After the master-slave communication notice sent to Master Communication Equipment, the registration of achievable HF role;Certainly, in some instances, from communication
If equipment has completed the registration of HF role when receiving master-slave communication notice, can be not repeated to carry out HF role's
HF role is registered completion notice from communication equipment and issues Master Communication Equipment by the first communication connection by registration;In the present embodiment
In, it can be shown that it needs to set with principal communication after receiving the master-slave communication notice that Master Communication Equipment is sent from communication equipment
It is standby to establish subsequent second communication connection, it is built after completing HF role's registration with Master Communication Equipment from communication equipment at this time
Before vertical second communication connection, it should may be found from the HF function of communication equipment by other third party's communication equipments, so as to cause
It initiates invalid communication connection or cause and carries out establishing Bluetooth communication from communication equipment and other third party's communication equipments to connect
And lead to the appearance of various compatibling problems.Therefore, in the present embodiment, Master Communication Equipment transmission is being received from communication equipment
Master-slave communication notice and complete HF role registration when, can set itself to bluetooth can not be searched state.
Additionally, it should be appreciated that be, in the present embodiment from communication equipment be arranged itself for bluetooth can not this search condition side
Formula can be using active, at this time from communication equipment after receiving the master-slave communication notice that Master Communication Equipment is sent, Ji Kezhi
State can not be searched for bluetooth by connecing setting itself, or is determined after receiving master-slave communication notice and itself completed HF role's note
Itself is directly arranged after volume can not be searched state for bluetooth;In some instances, passive type can also be used from communication equipment
Be arranged itself for bluetooth can not this search condition, can be configured at this time from communication equipment according to the instruction of Master Communication Equipment, example
When such as getting search out code from Master Communication Equipment side from communication equipment, itself will be set as bluetooth can not this search shape
State;The search out code can be Master Communication Equipment when detecting that Bluetooth communication trigger condition meets in the present embodiment, take
Band is issued in master-slave communication notice from communication equipment, or logical by other message except notifying independently of master-slave communication
The first communication connection is crossed to issue from communication equipment.In addition, it is to be understood that the lattice that the master-slave communication notifies in the present embodiment
Content etc. that formula, master-slave communication notice include can flexible setting, as long as it reaches above-mentioned effect.
In the present embodiment, it is arranged itself to be in bluetooth and can not be searched state from communication equipment and refers to from communication equipment
Bluetooth communication capability is normally got in bluetooth discovery cannot be passed through by other third party's communication equipments.Its implementation can be with
It is flexible and changeable.For example, in some instances, when from equipment communication equipment be sent out (such as can be by broadcast by way of
Send) include its own ability (such as HF function and/or AG function) discovery message when, then can stop from communication equipment
It is sent out the discovery message or continues to be sent out the transmission message, but include not receiving currently in the transmission message
It establishes the instruction of connection or does not include its own ability information etc..In another example passing through in other examples when from communication equipment
Receive after the discovery message of other communication equipments transmission to the mode of other communication device feeding back responses and when being found, then from
Communication equipment can be by stopping receiving discovery message, perhaps connecting reception but not feeding back or continue to and also continue anti-
Feedback, but answering of feeding back may include currently not receiving to establish the instruction of connection in message or not include its own ability information etc..
S403: Master Communication Equipment receives the HF role for communicating to connect transmission by first from communication equipment and has registered
At notice.
S404: by Session Description Protocol SDP, any angle in audio frequency net gate way AG and hands-free HF is carried out to Master Communication Equipment
The registration of color;
S405: it is matched to Master Communication Equipment and from the role between communication equipment;
S406: when it fails to match, by SDP, increase registration to another role in the AG and HF of Master Communication Equipment simultaneously
Again it matches;
S407: with matched role, the second communication connection is established with from communication equipment, second communication connection is indigo plant
Tooth communication connection, and second communication connection is to close bluetooth in Master Communication Equipment to disconnect and connecting for the first time from communication equipment
Connect and then it is secondary open bluetooth with from communication equipment establish secondary connection;This second communication connection one of effect be
It is used as the data transmission channel between two communication equipments, optionally, dynamically can establish and/or disconnect.
S404~S407 shows one kind and establishes the second communication connection between communication equipment, that is, Bluetooth communication connects
The implementation connect.
It to the registration process of Master Communication Equipment, is registered respectively to AG role and HF role in the present embodiment,
Exactly registered by respective SDP;Specifically, the audio frequency net gate way AG role and hands-free HF role of Master Communication Equipment, respectively
May include: from being registered respectively by Session Description Protocol SDP
Master Communication Equipment is registered by the way that the first UUID is written in the first SDP, and the first UUID is for identifying itself branch
Hold AG role;
Master Communication Equipment is registered by the way that the 2nd UUID is written in the 2nd SDP, and the 2nd UUID is for identifying itself branch
Hold HF role.First UUID and the 2nd UUID is respectively used to characterize communication equipment support AG role and HF role;In this implementation
In example, Master Communication Equipment is characterized the role itself supported respectively by two UUID while including AG role and HF role.
In the present embodiment second communication connection refer to Master Communication Equipment and from communication equipment establish first bluetooth connection it
The secondary connection disconnected again afterwards, therefore, because Master Communication Equipment and having established the second communication connection in this from communication equipment
Connection is had built up before, when establishing secondary connection without carrying out bluetooth discovery once again, directly carries out matching movement.
Specifically, may include: with the second communication connection is established from communication equipment with matched role
When only supporting AG role from communication equipment, Master Communication Equipment establishes second by HF role and from communication equipment
Communication connection;
When only supporting HF role from communication equipment, Master Communication Equipment establishes second by AG role and from communication equipment
Communication connection;
When supporting AG role and HF role simultaneously from communication equipment, Master Communication Equipment and pass through between communication equipment
Any AG role and HF role combinations establish the second communication connection.Specifically namely Master Communication Equipment is by AG role, with from
Communication equipment establishes the second communication connection by HF role;Or, Master Communication Equipment is passed through by HF role with from communication equipment
AG role establishes the second communication connection.In other words, connection between the two is the combination of AG and HF.
S408: Master Communication Equipment and from communication equipment be based on it is established second communication connection carry out data interaction, including
But it is not limited to:
Master Communication Equipment issues the first data from communication equipment by the second communication connection;And/or Master Communication Equipment
Receive the second data sent from communication equipment by the second communication connection.
For example, ought Master Communication Equipment at this time be wrist machine, and it is currently when receiving incoming call, and wrist machine can will receive
To calling voice data be sent to by the second communication connection as the first data it is current from communication equipment, should be from communication
Equipment can be mobile phone or other kinds of equipment.
It should be understood that Master Communication Equipment can only pass through the second communication in the application scenes of the present embodiment
Connection it is unidirectional send the first data to from communication equipment, such as when Master Communication Equipment starting music application plays music.
In other application scenarios of the present embodiment, communication means further include: Master Communication Equipment, which is received from communication equipment, passes through second
Communicate to connect the second data sent.
For example, when Master Communication Equipment be receive incoming call or actively initiate calling and with from communication equipment establish this second
When communication connection, then Master Communication Equipment by the voice data received from the opposite end of call by second communication connection issue from
While communication equipment plays out, it can also be received by the second communication connection from collected end subscriber of communication equipment
Voice data, and the voice data of this end subscriber received is issued to the opposite end of call.In another example when Master Communication Equipment is
Starting voice assistant and with from communication equipment establish this second communication connection when, then Master Communication Equipment issues voice assistant
Voice data by second communication connection issue played out from communication equipment while, can also be connect by second
The voice data from collected end subscriber of communication equipment is received, and the voice data of this end subscriber received is issued into language
Sound assistant identifies.Certainly, in some instances, Master Communication Equipment, which can also be received only from communication equipment, passes through the second communication
The second data sent are connected, without sending the first data to from communication equipment, such as some need from from communication equipment list
To the various application scenarios for obtaining data.
In some examples of the present embodiment, the second communication link is established in current Master Communication Equipment and from communication equipment
After connecing, it may also include that
When Master Communication Equipment detects the triggering of Bluetooth communication closedown condition, disconnect and logical from second between communication equipment
Letter connection.And in a kind of example, the settable bluetooth that itself is in of slave communication equipment at this time can be searched state, to keep
It can carry out normal communication with other equipment by normal discovery.
Correspondingly, the Bluetooth communication closedown condition in the present embodiment corresponds to Bluetooth communication trigger condition may include but unlimited
At least one of closed in end of conversation, voice applications.
In some application examples of the present embodiment, when the first communication connection can connect for bluetooth peer-to-peer communications, and at this
In the connection of bluetooth peer-to-peer communications, when two communication equipments are all the end AG, when two communication equipments establish the second communication connection,
Due to wherein disconnecting first communication link as from the communication equipment of communication equipment needs by AG role switching for HF role
It connects.In this application example, after Master Communication Equipment disconnects and communicates to connect from second between communication equipment, may be used also
Include:
Master Communication Equipment with from communication equipment re-establish the first communication connection;The process is shown in Figure 5, can wrap
It includes:
S501: AG role currently is re-registered as from the communication equipment of communication equipment, and optionally can also nullify HF
Role.
S502: it is currently established as the communication equipment of Master Communication Equipment and currently as from the communication equipment of communication equipment
The connection of bluetooth peer-to-peer communications, connecting latter two communication equipment established is all the end AG.
In S502, current Master Communication Equipment actively can send AG connection from communication equipment to current, can also be by working as
Preceding slave communication equipment actively sends AG connection to current Master Communication Equipment.
As it can be seen that in the present embodiment, between two communication equipments can first peer to peer connection, a communication equipment in ask
When needing using AG role as Master Communication Equipment, another Bluetooth communication equipment can be dynamically used as using HF role from logical
Believe that equipment establishes Bluetooth communication connection therewith, and may be configured as bluetooth from communication equipment to be searched state (in some examples
In, master-slave communication equipment, which may be alternatively provided as bluetooth, at this time can not be searched state), to avoid leading to from communication equipment with main
Letter equipment is completed to be searched supporting that HF function and causing is initiated to connect in vain or compatibility is asked before the second communication connection is established
Topic;The role of two communication equipments is not fixed in advance in the present embodiment, communication mode more flexibility and changeability can be more preferable
The demand suitable for various Bluetooth communication scenes, to promote the satisfaction of user experience.
Second embodiment
In order to make it easy to understand, the present embodiment is on that basi of the above embodiments, it is example in conjunction with a kind of specific application scenarios
It is illustrated.
In the present embodiment, two communication equipments respectively support the wrist machine and mobile phone of Bluetooth communication, and wrist machine and mobile phone
All support AG function and HF function.It may be provided with eSIM card in wrist machine, eSIM card can also be not provided with.In the present embodiment, above-mentioned
First communication connection is connected as example with bluetooth peer-to-peer communications and is illustrated.
In the application scenarios of the present embodiment, it can be used but be not limited to Bluetooth communication environment as follows:
Standard software interface (Host Controller Interface, HCI) layer is suitable for management HCI state, controls HCI
TRAMS assembles the number being truncated according to event/data (event/data) on HCI format and protocol processes HCI TRAMS
According to subpackage sends long string data, management caching etc..
Voice transfer channel can by asynchronous connection (Synchronous Connection Oriented, SCO) or
Extend asynchronous connection (extended SCO, eSCO) link transmission etc..
Bluetooth equipment discovery strategy (Generic Access Profile, GAP), the link management in connection procedure, peace
Congruent grade setting, common format definition of UI layer parameter interaction etc..
Logical links adaptation layer (Logical Link and Adaption Layer, L2CAP) is adapted to set up closing and connects
Connect/condition managing/multiplexing/packet segmentation and assembling etc..
The linear simulation protocol of serial ports (RFCOMM), suitable for the serial ports simulation based on L2CAP.The realization of HFP is based on Serial Port Line
Property simulation protocol.The serially linear simulation protocol connection of the linear simulation protocol of serial ports is established, distal end is needed when sending SABM packet
(Remote) service channel (server channel) in service discovery protocol is registered in as parameter, to distinguish different strings
The connection of mouth line simulation protocol.
In the present embodiment, wrist machine and mobile phone can respectively register AG role based on above-mentioned Bluetooth communication environment, and be based on
The AG role registered completes the connection of bluetooth peer-to-peer communications, such as can use but be not limited to rfcomm socket mode and communicate.
When wrist machine receives incoming call or initiates calling, i.e. transmittable master-slave communication notifies that, to mobile phone, mobile phone is logical according to the master-slave communication
Know the registration for carrying out HF role, and AG role can nullify to (mobile phone can determine whether currently whether answer this before executing the step
Incoming call), and being arranged itself is that bluetooth can not be searched state, then wrist machine and mobile phone can establish the second communication connection, at this time
Wrist machine is the end AG, and mobile phone is the end HF, and the channel that the call on wrist machine is switched to second communication connection carries out data interaction completion
Call.After end of conversation, the second communication connection between wrist machine and mobile phone can be disconnected, and mobile phone completes AG role's again
HF role is registered and nullifies, and itself is arranged to be searched state for bluetooth, mobile phone and wrist machine have re-established peer-to-peer communications company
It connects, namely returns to initial peering state waiting and trigger next time.
Above procedure is shown in Figure 6, comprising:
S600: wrist machine and mobile phone are established rfcomm socket and are connect namely the first communication connection.
S601: wrist machine receives incoming call (can also initiate calling for wrist machine).
S602: wrist machine connect (the i.e. first communication connection) transmission master-slave communication by the rfcomm socket with mobile phone and leads to
Know.
S603: wrist machine registers AG role.
S604: mobile phone receives master-slave communication notice, completes the registration of HF role, and nullifies AG role, itself, which is arranged, is
Bluetooth can not be searched state.
S605: mobile phone is completed to send HF role's registration completion notice to wrist machine after HF role registers.
S606: the role between matching wrist machine and mobile phone;If it fails to match, wrist machine supplement registration HF role and again
Matching.
S607: wrist machine sends HF connection request to mobile phone.
S608: wrist machine and mobile phone establish after Bluetooth communication connect (namely second communication connection), the call mould on wrist machine
Block detects that bluetooth conversation channel completes to establish and is switched to bluetooth conversation channel.Wherein, in the process for establishing Bluetooth communication connection
In, without initiating bluetooth discovery process, the directly role between matching wrist machine and mobile phone.
S609: end of conversation, wrist machine send end of conversation instruction to mobile phone.
S610: mobile phone and wrist machine disconnect the second communication connection;
S611: mobile phone re-registers AG role, and optionally nullifies HF role, itself, which is arranged, as bluetooth can be searched shape
State.
S612: wrist machine and mobile phone re-establish the first communication connection.
As it can be seen that in the present embodiment, when wrist machine receives incoming call or needs to initiate calling, flexibly can dynamically control
Wrist machine processed as the end AG, complete incoming call sound as its end HF, using mobile phone or complete the voice in calling to answer and send out by mobile phone
It send;When mobile phone also similar to demand when flexibly can also dynamically control mobile phone as the end AG, wrist machine is as its end HF, therefore greatly
Improve Bluetooth communication control flexibility, convenience, the demand of different communication scene can be better met, promoted
The experience of user.
3rd embodiment
A kind of communication equipment is present embodiments provided, the type of the communication equipment refers to shown in above-described embodiment, herein
It repeats no more.Shown in Figure 7, which includes:
Processor 701, memory 702, transmitter 703, receiver 704, memory 702 is for storing the first computer
Program;
First computer program is realized as described above logical when being executed by processor 701, transmitter 703, receiver 704
Each step executed when communication equipment in letter method is as Master Communication Equipment;
And/or memory 702 is for storing second computer program;Second computer program is by processor 701, transmitting
Device 703, receiver 704 are realized when executing to be executed when communication equipment in communication means as described above is used as from communication equipment
Each step.
The present embodiment additionally provides a kind of Bluetooth communication system, which includes two and establish the first communication
The communication equipment of connection, and the two communication equipments can be but be not limited to communication equipment shown in figure.
The present embodiment additionally provides a kind of computer readable storage medium, which has can
The first computer program run on a processor realizes as above each implement when first computer program is executed by processor
The step of Master Communication Equipment in example in communication means executes and/or the computer-readable recording medium storage have and can handle
The second computer program run on device is realized when the second computer program is executed by processor and is led in as above each embodiment
The step of slave communication equipment in letter method executes.
It should be noted that, in this document, term " includes ", " comprising " or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or the device that include a series of elements not only include those elements,
It but also including other elements that are not explicitly listed, or further include for this process, method, article or device institute
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or device including the element.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but many situations
It is lower the former be more preferably embodiment.Based on this understanding, the technical solution of the application is substantially in other words to the prior art
The part to contribute can be embodied in the form of software products, which is stored in a storage and is situated between
In matter (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application is not limited to above-mentioned tool
Body embodiment, the above mentioned embodiment is only schematical, rather than restrictive, the ordinary skill of this field
Personnel are under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also make
Many forms, these are belonged within the protection of the application.
Claims (10)
1. a kind of communication means, which is characterized in that the communication means includes:
Establish the first communication connection between two communication equipments, first communication connection for support described two communication equipments into
The peer-to-peer communications of row data two-way interactive connect;
When one of them described communication equipment detects that Bluetooth communication trigger condition meets, pass through described the as Master Communication Equipment
One communicates to connect to as another communication equipment transmission master-slave communication notice from communication equipment;
The Master Communication Equipment receives described register from communication equipment by the HF role that first communication connection is sent and completes
Notice, and described be in bluetooth from communication equipment and can not be searched state;
By Session Description Protocol SDP, the registration of any role in audio frequency net gate way AG and hands-free HF is carried out to Master Communication Equipment;
It is matched to Master Communication Equipment and from the role between communication equipment;
When it fails to match, by SDP, increases the registration to another role in the AG and HF of Master Communication Equipment and match again;
With matched role, the second communication connection is established with from communication equipment, second communication connection is that Bluetooth communication connects,
And second communication connection is to close bluetooth in Master Communication Equipment to disconnect and the connection for the first time from communication equipment and then secondary open
The secondary connection opening bluetooth and being established from communication equipment;
The Master Communication Equipment passes through the second communication connection progress data interaction from communication equipment with described.
2. communication means as described in claim 1, which is characterized in that the Master Communication Equipment passes through with described from communication equipment
Second communication connection carries out data interaction and includes:
The Master Communication Equipment issues the first data by second communication connection described from communication equipment;
The Master Communication Equipment receives second data sent from communication equipment by second communication connection.
3. communication means as claimed in claim 2, which is characterized in that it is described with matched role, it is established with from communication equipment
After second communication connection, further includes:
When the Master Communication Equipment detects that Bluetooth communication closedown condition meets, disconnection and second between communication equipment
Communication connection, it is described to be in bluetooth from communication equipment and be searched state.
4. communication means as described in any one of claims 1-3, which is characterized in that the peer-to-peer communications are connected as bluetooth equity
Communication connection.
5. communication means as claimed in claim 4, which is characterized in that the Master Communication Equipment disconnect with it is described from communication equipment
Between second communication connection after, further includes:
The Master Communication Equipment re-establishes first communication connection from communication equipment with described.
6. communication means as described in any one of claims 1-3, which is characterized in that include search in the master-slave communication notice
Out code can not be searched state for bluetooth itself is set as according to the search out code from communication equipment for described.
7. communication means as described in any one of claims 1-3, which is characterized in that described to pass through Session Description Protocol SDP points
Not carry out the registration of audio frequency net gate way AG role and hands-free HF role include:
Register the first Universally Unique Identifier UUID and the 2nd UUID respectively in the SDP, the first UUID is for identifying
AG role, the 2nd UUID itself is supported to support HF role for identifying itself.
8. a kind of communication equipment, characterized in that it comprises:
Processor, transmitter, receiver, memory are stored with the first computer program on the memory, and described first calculates
The communication party as described in any one of claims 1 to 7 is realized when machine program, transmitter, receiver are called by the processor
The step of Master Communication Equipment executes in method;
And/or second computer program is stored on the memory, the second computer program, transmitter, receiver quilt
The step executed in the communication means as described in any one of claims 1 to 7 from communication equipment is realized when the processor calls
Suddenly.
9. a kind of Bluetooth communication system, which is characterized in that the Bluetooth communication system includes two and establishes the first communication connection
Communication equipment, first communication connection connect for the peer-to-peer communications for supporting described two communication equipments to carry out data double-way interaction
It connects;
When one of them described communication equipment detects that Bluetooth communication trigger condition meets, as Master Communication Equipment for passing through institute
It states the first communication connection and sends master-slave communication notice to as from another communication equipment of communication equipment, and described in reception
Completion notice is registered from communication equipment by the HF role that first communication connection is sent, establishes the from communication equipment with described
Two communication connections, second communication connection are that Bluetooth communication connects, and are set with described from communication by second communication connection
It is standby to carry out data interaction;It is described second communication connection described in Master Communication Equipment be the end AG, it is described from communication equipment be the end HF;
Wherein, by Session Description Protocol SDP, the registration of any role in audio frequency net gate way AG and hands-free HF is carried out to Master Communication Equipment;
It is matched to Master Communication Equipment and from the role between communication equipment;When it fails to match, by SDP, increase to principal communication
It the registration of another role and is matched again in the AG and HF of equipment;With matched role, the second communication is established with from communication equipment
Connection;It is described second communication connection be Master Communication Equipment close bluetooth disconnect with from communication equipment connection for the first time and then
The secondary secondary connection opening bluetooth and being established from communication equipment;
Another described communication equipment is used to receive after the master-slave communication notifies and completes HF role's as from communication equipment
Registration, and communicate to connect by described first to the Master Communication Equipment and send HF role's registration completion notice, and is described from logical
Letter equipment, which is in bluetooth, can not be searched state;And for establishing the second communication connection with the Master Communication Equipment, pass through institute
It states the second communication connection and the Master Communication Equipment carries out data interaction.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has and can handle
The first computer program run on device realizes such as claim 1 to 7 times when first computer program is executed by processor
The step of Master Communication Equipment in communication means described in one executes;
Or, the computer-readable recording medium storage has a second computer program that can be run on a processor, described second
Computer program realized when being executed by the processor in communication means as described in any one of claim 1 to 7 from communication
The step of equipment executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364636.7A CN110505611A (en) | 2019-04-30 | 2019-04-30 | Communication means, equipment, system and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364636.7A CN110505611A (en) | 2019-04-30 | 2019-04-30 | Communication means, equipment, system and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110505611A true CN110505611A (en) | 2019-11-26 |
Family
ID=68585671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910364636.7A Withdrawn CN110505611A (en) | 2019-04-30 | 2019-04-30 | Communication means, equipment, system and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110505611A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120302170A1 (en) * | 2011-05-26 | 2012-11-29 | Motorola Mobility, Inc. | Method and apparatus for performing role management of short-range wireless connections |
CN103607787A (en) * | 2009-06-09 | 2014-02-26 | 索尼公司 | Communication method, information processing apparatus, and recording medium recording computer readable program |
CN106101979A (en) * | 2015-04-30 | 2016-11-09 | 三星电子株式会社 | Method and the electronic equipment of use the method for short-distance wireless communication |
CN106452512A (en) * | 2016-09-30 | 2017-02-22 | 广东欧珀移动通信有限公司 | Role transition method and device based on Bluetooth connection |
CN106658359A (en) * | 2016-10-12 | 2017-05-10 | 青岛海信移动通信技术股份有限公司 | Bluetooth connection method and device and communication system |
CN106900079A (en) * | 2015-12-18 | 2017-06-27 | 展讯通信(上海)有限公司 | Bluetooth connecting method and device |
CN107054249A (en) * | 2015-12-09 | 2017-08-18 | 现代自动车株式会社 | Run AVN method, AVN and the vehicle including AVN |
CN109565525A (en) * | 2016-08-10 | 2019-04-02 | 佳能株式会社 | Communication equipment and its control method and program and communication system |
-
2019
- 2019-04-30 CN CN201910364636.7A patent/CN110505611A/en not_active Withdrawn
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607787A (en) * | 2009-06-09 | 2014-02-26 | 索尼公司 | Communication method, information processing apparatus, and recording medium recording computer readable program |
US20120302170A1 (en) * | 2011-05-26 | 2012-11-29 | Motorola Mobility, Inc. | Method and apparatus for performing role management of short-range wireless connections |
CN106101979A (en) * | 2015-04-30 | 2016-11-09 | 三星电子株式会社 | Method and the electronic equipment of use the method for short-distance wireless communication |
CN107054249A (en) * | 2015-12-09 | 2017-08-18 | 现代自动车株式会社 | Run AVN method, AVN and the vehicle including AVN |
CN106900079A (en) * | 2015-12-18 | 2017-06-27 | 展讯通信(上海)有限公司 | Bluetooth connecting method and device |
CN109565525A (en) * | 2016-08-10 | 2019-04-02 | 佳能株式会社 | Communication equipment and its control method and program and communication system |
CN106452512A (en) * | 2016-09-30 | 2017-02-22 | 广东欧珀移动通信有限公司 | Role transition method and device based on Bluetooth connection |
CN106658359A (en) * | 2016-10-12 | 2017-05-10 | 青岛海信移动通信技术股份有限公司 | Bluetooth connection method and device and communication system |
Non-Patent Citations (4)
Title |
---|
BLUETOOTH SIG: "Bluetooth Core Specification v5.0", 《BLUETOOTH》 * |
BLUETOOTH SIG: "Hands-Free Bluetooth Profile Specification v1.7.2", 《BLUETOOTH》 * |
BLUETOOTH SIG: "Serial Port Profile", 《BLUETOOTH》 * |
MOBILE COMPUTING PROMOTION CONSORTIUM TECHNICAL COMMITTEE: "Hands-Free Profile 1.5 Application Guideline", 《2006-2007 MOBILE COMPUTING PROMOTION CONSORTIUM (MCPC)》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110248344A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110267244A (en) | Communication handover method, equipment, system and readable storage medium storing program for executing | |
CN110213749A (en) | Communication processing method, communication equipment and storage medium | |
CN110087223A (en) | Communication connecting method, communication equipment and storage medium | |
CN110198534A (en) | Communicate transparent transmission control method, communication equipment, system and storage medium | |
CN110213750A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110248345A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110248343A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN109587260A (en) | A kind of resource acquiring method, device and system | |
CN110267361A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110121164A (en) | Communication processing method, equipment, system and readable storage medium storing program for executing | |
CN110234137A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110505611A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110505265A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110234099A (en) | Communication connecting method, communication equipment and storage medium | |
CN110267241A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110139258A (en) | Communication connecting method, communication equipment and storage medium | |
CN110267242A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110213752A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110225500A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110213751A (en) | Communication means, equipment, system and readable storage medium storing program for executing | |
CN110225503A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110139257A (en) | Communication connecting method, communication equipment and storage medium | |
CN110233871A (en) | Communication control method, equipment, system and readable storage medium storing program for executing | |
CN110225501A (en) | Communication control method, equipment, system and readable storage medium storing program for executing |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20191126 |
|
WW01 | Invention patent application withdrawn after publication |