CN110213752A - 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 PDF

Info

Publication number
CN110213752A
CN110213752A CN201910365494.6A CN201910365494A CN110213752A CN 110213752 A CN110213752 A CN 110213752A CN 201910365494 A CN201910365494 A CN 201910365494A CN 110213752 A CN110213752 A CN 110213752A
Authority
CN
China
Prior art keywords
communication
communication equipment
equipment
role
master
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
Application number
CN201910365494.6A
Other languages
Chinese (zh)
Inventor
张笑瑜
汪重庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910365494.6A priority Critical patent/CN110213752A/en
Publication of CN110213752A publication Critical patent/CN110213752A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/005Multiple registrations, e.g. multihoming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

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

Communication means, equipment, system and readable storage medium storing program for executing
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) angle Color and HF (Hands Free, hands-free) role, wherein AG role is a role as defined in HFP agreement, and audio supports input, defeated Out, typical equipment is mobile phone;HF role is that HFP agreement provides another role, is suitable for the input of AG character audio, output, allusion quotation The equipment of type 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 blue under normal circumstances After tooth communication connection, smartwatch is HF role in Bluetooth communication connection, as the end HF;Mobile phone is connected in the Bluetooth communication In be AG role, as the end AG.It, can not since smartwatch is currently used as the end HF at this time when smartwatch has incoming call Answering for the incoming call is carried out using mobile phone, and, user experience very unfriendly come the experience of incoming call answering user by smartwatch Satisfaction it 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 sets for the described two communications of support The standby peer-to-peer communications connection for carrying out data double-way interaction;
When one of them described communication equipment detects that Bluetooth communication trigger condition meets, pass through institute as Master Communication Equipment It states the first communication connection and sends master-slave communication notice to as from another communication equipment of 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 registration of any role in audio frequency net gate way AG and hands-free HF is carried out;
It initiates to obtain the case where supporting role from communication equipment to the bluetooth discovery from communication equipment;Or, receiving from communication The bluetooth discovery that equipment is initiated, the case where itself supported role, is fed back to from communication equipment;
Before matching to Master Communication Equipment and from communication equipment, by SDP, another role in AG and HF is carried out Registration;
Match Master Communication Equipment and from the role between communication equipment;
With matched role, the second communication connection is established with from communication equipment, second communication connection is Bluetooth communication Connection;
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 interaction from communication equipment with described 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, 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 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 first Computer program, transmitter, receiver realize Master Communication Equipment in communication means as described above when being called by the processor The step of execution;
And/or second computer program is stored on the memory, the second computer program, transmitter, reception Device realizes the step of executing in communication means as described above from communication equipment when being called by the processor.
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, 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, as Master Communication Equipment for leading to Described first is crossed to communicate to connect to as another communication equipment transmission master-slave communication notice from communication equipment, and reception It is described that completion notice is registered by the HF role that first communication connection is sent from communication equipment, it is built with described from communication equipment Vertical second communication connection, second communication connection are that Bluetooth communication connects, by second communication connection with described from logical Believe that equipment carries out data interaction;The Master Communication Equipment described in second communication connection is the end AG, described to be from communication equipment The end HF;Wherein, the registration of audio frequency net gate way AG role and hands-free HF role are carried out respectively by Session Description Protocol SDP;Initiation pair From the bluetooth discovery of communication equipment, the case where supporting role from communication equipment is obtained;Or, receiving the bluetooth initiated from communication equipment Search, the case where itself supported role, is fed back to from communication equipment;According to bluetooth discovery as a result, matching Master Communication Equipment with From the role between communication equipment;With matched role, second communication connection is established with 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 processed 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 first build between two communication equipments Vertical first communication connection, first communication connection connect for the peer-to-peer communications for supporting two communication equipments to carry out data double-way interaction It connects;Current Master Communication Equipment be can be used as when one of communication equipment detects that Bluetooth communication trigger condition meets by the One communicates to connect to currently master-slave communication notice is sent as from another communication equipment of communication equipment, for complete from communication equipment At HF role registration and be arranged in bluetooth and can not be searched state, to avoid being Master Communication Equipment from communication equipment Completion second communicates to connect to establish and is searched supporting HF function before and causes to initiate invalid connection or compatibility issue;It is main logical Believe equipment and establish the second communication connection from communication equipment, which is that Bluetooth communication connects;Principal communication is set in this way It is standby with the interaction that can carry out data based on the second communication connection currently established from communication equipment.Namely indigo plant provided by the present application In tooth communication control, two communication equipments can dynamically switch between AG role and HF role according to current demand, such as When one of communication equipment is smartwatch, another communication equipment is mobile phone, smartwatch triggers item in Bluetooth communication Part can be used as master-slave communication and notify mobile phone is used as from communication equipment with it to establish the second communication link when meeting (such as when having incoming call) It connects, to realize corresponding function (such as completing incoming call sound) by bluetooth using mobile phone as its end HF, vice versa;Therefore The flexibility of Bluetooth communication control can be promoted and promote the application scenarios of Bluetooth communication, and then promote expiring for user experience Meaning degree.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, 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;
Stereoscopic schematic diagram when Fig. 2-1 is a kind of screen expansion of embodiment of wearable device provided by the embodiments of the present application One;
Stereoscopic schematic diagram when Fig. 2-2 is a kind of screen expansion of embodiment of wearable device provided by the embodiments of the present application 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 the application.
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 hand Machine, IPAD, mobile unit, communication equipment 100 etc., wherein communication equipment 100 may include but be not limited to Intelligent bracelet, intelligent hand The mobile terminals such as table and smart phone (the embodiment of the present application is also referred to as wrist machine) with wearable characteristic.With screen The continuous development of curtain technology, the appearance of the screens form such as flexible screen, Folding screen, the mobile terminals such as smart phone can also be used as logical Believe equipment 100.The communication equipment 100 provided in the embodiment of the present application may include: that radio frequency (Radio Frequency, RF) is single Member, bluetoothModule, WiFi module, audio output unit, A/V (audio/video) input unit, sensing The components such as device, 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, this is logical Believe that equipment 100 may include: radio frequency unit 101, bluetooth module 112, WiFi module 102, audio output unit 103, A/V (sound Frequently/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, the components such as processor 110 and power supply 111.It will be understood by those skilled in the art that communication equipment 100 shown in Fig. 1 Structure does not constitute the restriction to communication equipment 100, and communication equipment 100 may include components more more or fewer than diagram, or Person 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 according to radio frequency unit 101 Uplink information generate, be also possible to after the information update for detecting communication equipment 100 it is main to radio frequency unit 101 push , for example, base station can penetrating to communication equipment 100 after detecting that geographical location locating for communication equipment 100 changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to communication equipment 100 is handled, and the processor 110 of communication equipment 100 can control the message Notice is shown on the display panel 1061 of communication equipment 100;In general, radio frequency unit 101 includes but is not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also be by wireless Communication communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, For example, communication equipment 100 can download file resource from server by wireless communication, for example can be downloaded from server Application program, after communication equipment 100 completes the downloading of a certain application program, if the corresponding text of the application program in server Part resource updates, then the server can push the message informing of resource updates to communication equipment 100 by wireless communication, to mention The user that wakes up is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but unlimited In GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time Into) etc..
In one embodiment, communication equipment 100 can access existing communication network by insertion SIM card.
In another embodiment, communication equipment 100 can be by being arranged esim card (Embedded-SIM), Lai Shixian Existing communication network is accessed, by the way of esim card, the inner space of communication equipment 100 can be saved, reduce thickness.
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 and dispatch by WiFi module 102 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for communication equipment 100, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
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 stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that communication equipment 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives 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 processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency 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 Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc..
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 user, It 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 wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) 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 screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of communication equipment 100 can take rectangle, ring when convenient for wearing Around.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 the related key signals input of function control.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 the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is 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 real The various ways such as existing short-press, long-pressing, rotation, to realize a variety of operating effects.The quantity of button can be to be multiple, and different presses It can be applied in combination between button, 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 panel 1061 be the function that outputs and inputs of realizing communication equipment 100 as two independent components, but in certain embodiments, Can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of communication equipment 100, it is specific this Place is without limitation.For example, when receiving the message informing of a certain application program by radio frequency unit 101, processor 110 can be with It controls and shows the message informing in a certain predeterminable area of display panel 1061, the predeterminable area and touch panel 1071 A certain region is corresponding, can be to corresponding on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in region 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 the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in communication equipment 100 or can be with 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 storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least 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 executing the software program and/or module that are stored in memory 109, and calling storage Data in memory 109 execute the various functions and processing data of communication equipment 100, to carry out to communication equipment 100 Integral monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
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, to realize management charging by power-supply management system, put The functions such as electricity 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 structural schematic diagram when wearable device screen is unfolded, when Fig. 2-3 shows wearable device screen-bending 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 flexible screen Curtain.
Referring to FIG. 3, showing for the structure under a kind of 100 another embodiment of communication equipment provided by the embodiments of the present application It is intended to.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 reality The first communication connection for supporting two-way communication can be established between the two communication devices by applying example, when one of communication equipment is examined Measuring when Bluetooth communication trigger condition meets can be used as current Master Communication Equipment, by first communicate to connect to it is current as from Another communication equipment of communication equipment sends master-slave communication notice, and then establishes as the end AG and the slave communication equipment as the end HF Bluetooth communication connection, the present embodiment are referred to as the second communication connection;From communication equipment receive master-slave communication notice after, complete HF Registering and itself being arranged for role can not be searched state as bluetooth, to avoid being that Master Communication Equipment is completed from communication equipment Second communicates to connect foundation is searched supporting HF function and leading to initiate connection or compatibility issue in vain before;Principal communication is set It is standby then to complete data interaction based on the second communication connection of foundation with from communication equipment.Namely two communications in the present embodiment Equipment can dynamically switch between AG role and HF role according to current demand, can promote the flexible of Bluetooth communication control Property, and the application scenarios of Bluetooth communication can be promoted, and then promote the satisfaction of user experience.In order to make it easy to understand, below with reference to Communication means shown in Fig. 4 is illustrated 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, which carries out the peer-to-peer communications of information bidirectional interaction for two communication equipments of support Connection namely two communication equipments between can by this first communicate to connect to other side send information and receive other side send Information, one of effect of first communication connection can be used as the subsequent information exchange for carrying out the second communication connection and establishing Negotiate channel.And it should be understood that the first type communicated to connect in the present embodiment can according to specific requirements flexible choice, As long as being able to satisfy the requirement that two communication equipments carry out data double-way interaction.For example, in a kind of example, first communication link Connecing can connect for bluetooth peer-to-peer communications, establish the connection of bluetooth peer-to-peer communications between two communication equipments at this time, and in the bluetooth pair In communicating to connect, it can be limited without role between two communication equipments, may be alternatively provided as identical role, such as a kind of example In two communication equipments can all be the end AG (a kind of example in be also all end HF etc.), can lead between two such communication equipment It crosses the bluetooth peer-to-peer communications and connects the data etc. for sending data to other side and receiving other side's transmission.In another example in another example In, which can connect for WiFi peer-to-peer communications, and two communication equipments can be connected by the WiFi peer-to-peer communications at this time It connects and sends information to other side and receive the information of other side's transmission.In another example in another example, which can be Short-range communication (such as may include but be not limited to NFC (Near Field Communication, near-field communication) connection, at this time Two communication equipments can send information to other side by the near field communication and receive the information that other side sends.Example again Such as, in another example, which can connect for zigbee peer-to-peer communications, and two communication equipments can be by this at this time Zigbee 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 connect for P2P (Peer-to-peer networking) or D2D (Device-to-Device) peer-to-peer communications It connects, two communication equipments can be connected to send information to other side and receive other side by P2P the or D2D peer-to-peer communications and be sent at this time Information.It will thus be seen that the type of the first communication connection can flexibly be set in the present embodiment and it is not limited to the above example Several types.
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 in two communication equipments, One of them can be the wearable device of support Bluetooth communication, another can be the mobile phone of support Bluetooth communication or two All for support Bluetooth communication mobile phone, perhaps both be support Bluetooth communication wearable device or one be support indigo plant The wearable device of tooth communication, another is the car-mounted terminal etc. for supporting Bluetooth communication.And it should be understood that the present embodiment In wearable device can also flexibly be set according to concrete application scene, such as 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, The Bluetooth communication trigger condition can by least one of application provider, operator, device manufacturer, user be arranged and/ Or it updates.
For example, in some examples of the present embodiment, the Bluetooth communication trigger condition may include but be not limited to call starting, At least one of voice applications starting.
For example, in application scenes, Bluetooth communication trigger condition may include call starting, the call can for based on The call of subscriber identification card (Subscriber Identification Module, SIM), or Internet phone-calling or Other kinds of call.Such as when one of them in above-mentioned two Bluetooth communication terminal be wrist machine, wrist machine receive call or When initiating call, (such as may include but be not limited to call or network video call, voice-over-net call based on eSIM card Deng) when, then master-slave communication notice can be sent to another communication equipment.In other application scenarios, Bluetooth communication trigger condition It may include voice applications starting, and the voice applications in the present embodiment can be all voice applications on communication equipment, it can also Think the specified voice applications on communication equipment, for example, can include but is not limited to various voice assistants, music application, Video playing application or the various voice applications of webpage version with voice-grade channel etc..Such as when above-mentioned two Bluetooth communication is whole One of them in end is wrist machine, when starting voice assistant (such as little Ai robot or siri speech robot people) on wrist machine, 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 is currently used as principal communication at this time Equipment, itself currently then directly can carry out subsequent bluetooth with the Master Communication Equipment as from communication equipment, therefore from communication equipment The foundation of communication connection (namely second communication connection in the present embodiment), and no longer need to go to find the master by bluetooth discovery Communication equipment is found by the Master Communication Equipment, therefore can directly omit bluetooth discovery step, to promote Bluetooth communication connection 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 the note of HF role HF role is registered completion notice from communication equipment and issues Master Communication Equipment by the first communication connection by volume;In the present embodiment, It can be shown that it needs to build with Master Communication Equipment after receiving the master-slave communication notice that Master Communication Equipment is sent from communication equipment Subsequent second communication connection is stood, at this time from communication equipment after completing HF role's registration, is establishing the with Master Communication Equipment Before two communication connections, it should may be found from the HF function of communication equipment by other third party's communication equipments, so as to cause initiation Invalid communication connection causes to carry out establishing Bluetooth communication from communication equipment and other third party's communication equipments and connect and lead Cause the appearance of various compatibling problems.Therefore, in the present embodiment, from communication equipment in the principal and subordinate for receiving Master Communication Equipment transmission When communication notifications and completion HF role's registration, 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 registration Itself is directly arranged later can not be searched state for bluetooth;In some instances, passive type can also be used from communication equipment to set Set 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, such as It, can not this search condition by bluetooth itself is set as when getting search out code from Master Communication Equipment side from communication equipment; The search out code can be Master Communication Equipment when detecting that Bluetooth communication trigger condition meets in the present embodiment, carry It issues in master-slave communication notice from communication equipment, or passes through first by other message except notifying independently of master-slave communication Communication connection is issued from communication equipment.In addition, it is to be understood that the format that the master-slave communication notifies in the present embodiment, the master Content for including from communication notifications etc. can flexible setting, as long as it reaches above-mentioned effect.
In the present embodiment, it is arranged from communication equipment and itself is in bluetooth and can not be searched state and refer to from communication equipment to be in Bluetooth communication capability cannot normally be got by bluetooth discovery by other third party's communication equipments.Its implementation can be flexible It is changeable.For example, in some instances, when from equipment communication equipment being sent out (such as can by broadcast by way of send) When discovery message comprising its own ability (such as HF function and/or AG function), then it can stop from communication equipment to outgoing It gives the discovery message or continues to be sent out the transmission message, but include currently not receiving to establish connection in the transmission message Instruction or do not include its own ability information etc..In another example receiving other when passing through from communication equipment in other examples It, then can from communication equipment after the discovery message that communication equipment is sent to the mode of other communication device feeding back responses and when being found With by stopping receiving discovery message, perhaps connecting receives but does not feed back or continue to and also continue to feed back, but feed back Answering may include currently not receiving to establish the instruction of connection in message or does not include its own ability information etc..
S403: Master Communication Equipment receives described register from communication equipment by the HF role that the first communication connection is sent and completes Notice.
S404: by Session Description Protocol SDP, the registration of any role in audio frequency net gate way AG and hands-free HF is carried out;
S405: it initiates to obtain the case where supporting role from communication equipment to the bluetooth discovery from communication equipment;Or, receiving The bluetooth discovery initiated from communication equipment, the case where itself supported role, is fed back to from communication equipment;
S406: it before being matched to Master Communication Equipment and from communication equipment, by SDP, carries out another in AG and HF The registration of role;
S407: matching Master Communication Equipment and from the role between communication equipment;
S408: with matched role, the second communication connection is established with from communication equipment, the second communication connection is Bluetooth communication Connection;One of them of second communication connection functions as the use of the data transmission channel between two communication equipments, can Choosing, dynamically it can establish and/or disconnect.
S404~S408 shows one kind and establishes the second communication connection, that is, Bluetooth communication connection between communication equipment Implementation.
It is to be registered respectively to AG role and HF role, also to the registration process of Master Communication Equipment in the present embodiment It is to be registered by respective SDP;Specifically, the audio frequency net gate way AG role and hands-free HF role of Master Communication Equipment, respectively It is registered respectively by Session Description Protocol SDP and may include:
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 some embodiments, by SDP, the Master Communication Equipment of connection to be established is determined and from each self-supporting of communication equipment AG and HF the case where may include:
Master Communication Equipment initiates bluetooth discovery, and Master Communication Equipment is made to determine the role supported from communication equipment.Bluetooth is searched Suo Fang can be carried out by Master Communication Equipment or from communication equipment, that is to say, that Master Communication Equipment can be used as search and initiate Side can also be used as search initiator from communication equipment;When Master Communication Equipment is as search initiator, just make from communication equipment To search for recipient.The Master Communication Equipment of connection to be established and AG and HF from each self-supporting of communication equipment are determined in the present embodiment The case where, and the case where searcher knows the support AG and HF of itself, it is only necessary to by search, know the support situation of other side i.e. It can.In the present embodiment, that is, by initiating bluetooth discovery, so that the first bluetooth equipment, determines that the second bluetooth equipment is propped up The role held.Wherein, in the present embodiment, the registration process of AG role and HF role are separation, and the first communication equipment first uses Any role registers, and in bluetooth discovery and then the registration of another role is carried out, so as to save for the first time Resource occupation when registration promotes registration efficiency.
Specifically, Master Communication Equipment initiates bluetooth discovery, Master Communication Equipment is made to determine the role supported from communication equipment May include:
Master Communication Equipment initiates SDP search request message;
It receives the SDP search response message that sends from communication equipment, in SDP search response message, carries and characterize from communication The characteristic value for the role that equipment is supported.Wherein, in SDP search response message, what the characterization of carrying was supported from communication equipment The characteristic value of role, that is, the UUID that should be written from communication equipment in registration, including but not limited to a UUID show this Bluetooth equipment supports one of AG role or HF role;Either two UUID, show the bluetooth equipment while supporting AG Role and HF role.
In some embodiments, the Master Communication Equipment of connection to be established and AG and HF from each self-supporting of communication equipment are determined The case where can also include:
The bluetooth discovery initiated from communication equipment is received, the role for determining that Master Communication Equipment is supported from communication equipment is made. The example shows that searcher has become from communication equipment, and from communication equipment when scanning for, Master Communication Equipment is then used as and is searched Suo Fang, the role for accordingly being supported itself feed back to from communication equipment, and process is used as with above-mentioned Master Communication Equipment and searches Suo Fang's is similar, only the two exchange role.
In some embodiments, the bluetooth discovery initiated from communication equipment is received, makes to determine that principal communication is set from communication equipment May include: for the role supported
It receives from communication equipment and initiates SDP search request message;
To from communication equipment transmission SDP search response message, SDP search response message, characterization Master Communication Equipment is carried The characteristic value of the role supported.
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 by HF role with to establish second from communication equipment logical Letter connection;
When only supporting HF role from communication equipment, Master Communication Equipment by AG role with to establish second from communication equipment logical Letter connection;
When from communication equipment simultaneously support AG role and HF role when, Master Communication Equipment and between communication equipment by appoint Meaning AG role and HF role combinations establish the second communication connection.Specifically namely Master Communication Equipment is by AG role, and from logical Believe that equipment establishes the second communication connection by HF role;Or, Master Communication Equipment passes through the angle AG by HF role, with from communication equipment Color establishes the second communication connection.In other words, connection between the two is the combination of AG and HF.
S409: 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 connects 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 Calling voice data be sent to as the first data by the second communication connection it is current from communication equipment, should be from communication equipment It 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 is to receive incoming call or actively initiate calling and second logical with this is established from communication equipment When letter connection, then Master Communication Equipment issues the voice data received from the opposite end of call from communication by the second communication connection While equipment plays out, the voice number from collected end subscriber of communication equipment can be also received by the second communication connection According to, 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 leads to the voice data that voice assistant issues It crosses the second communication connection to issue while play out from communication equipment, can also be received by the second communication connection from communication equipment The voice data of collected end subscriber, and the voice data of this end subscriber received is issued into voice assistant and is known Not.Certainly, in some instances, Master Communication Equipment can also only receive second sent from communication equipment by the second communication connection Data, without sending the first data to from communication equipment, such as some need from unidirectionally obtaining each of data from communication equipment Kind application scenarios.
In some examples of the present embodiment, the second communication connection is established in current Master Communication Equipment and from communication equipment Afterwards, may also include that
When Master Communication Equipment detects the triggering of Bluetooth communication closedown condition, disconnection is communicated with from second between communication equipment 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 its energy Normal communication is carried out with other equipment by normal discovery.
It may include but be not limited to correspondingly, the Bluetooth communication closedown condition in the present embodiment corresponds to Bluetooth communication trigger condition At least one of end of conversation, voice applications closing.
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, by In wherein as from the communication equipment of communication equipment need by AG role switching be HF role and disconnect this first communication connection.? In this application example, after Master Communication Equipment disconnects and communicates to connect from second between communication equipment, it may also include that
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: current as the communication equipment of Master Communication Equipment and currently blue as being established from the communication equipment of communication equipment The connection of tooth 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 needs in ask When using AG role as Master Communication Equipment, another Bluetooth communication equipment can dynamically be set using HF role as from communication It is standby to establish Bluetooth communication connection therewith, and from communication equipment may be configured as bluetooth can not be searched state (in some instances, this When master-slave communication equipment may be alternatively provided as bluetooth and can not be searched state), thus avoid from communication equipment with Master Communication Equipment Completion second communicates to connect to establish and is searched supporting HF function before and causes to initiate invalid connection or compatibility issue;At this The role of two communication equipments is not fixed in advance in embodiment, communication mode more flexibility and changeability can preferably be suitable for The demand of 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 serial ports The connection of linear simulation agreement.
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 notified according to the master-slave communication The registration of HF role is carried out, and AG role being nullified to, (mobile phone can determine whether current whether answer this before executing the step Electricity), 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 it is logical that the channel that the call on wrist machine is switched to second communication connection carries out data interaction completion Words.After end of conversation, the second communication connection between wrist machine and mobile phone can be disconnected, and mobile phone completes the registration of AG role again And HF role is nullified, and being arranged itself is that bluetooth can be searched state, mobile phone has re-established peer-to-peer communications with wrist machine and has connect, Initial peering state waiting is returned to 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;Before matching, wrist machine supplement registration HF role.
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.
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 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 by mobile phone; When mobile phone also similar to demand when flexibly can also dynamically control mobile phone as the end AG, wrist machine is mentioned as its end HF, therefore greatly Flexibility, the convenience for having risen Bluetooth communication control, can better meet the demand of different communication scene, promote user's Experience.
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 journey Sequence;
First computer program realizes communication as described above when being executed by processor 701, transmitter 703, receiver 704 Each step executed when communication equipment in method is as Master Communication Equipment;
And/or memory 702 is for storing second computer program;Second computer program is by processor 701, transmitting What device 703, receiver 704 executed when realizing communication equipment in communication means as described above when executing 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 link The communication equipment connect, 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 be The first computer program run on processor is realized when first computer program is executed by processor in as above each embodiment The step of Master Communication Equipment in communication means executes and/or the computer-readable recording medium storage have can be on a processor The second computer program of operation realizes communication means in as above each embodiment when the second computer program is executed by processor In slave communication equipment execute the step of.
It should be noted that, in this document, term " includes ", " comprising " or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
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 side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or 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 be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, 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;
It initiates to obtain the case where supporting role from communication equipment to the bluetooth discovery from communication equipment;Or, receiving from communication equipment The bluetooth discovery of initiation feeds back to the case where itself supported role from communication equipment;
Before matching to Master Communication Equipment and from communication equipment, by SDP, the note of another role in AG and HF is carried out Volume;
Match Master Communication Equipment and from the role between communication equipment;
With matched role, the second communication connection is established with from communication equipment, second communication connection is that Bluetooth communication connects;
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 with matched role, establish second with from communication equipment After 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, the registration of audio frequency net gate way AG role and hands-free HF role are carried out respectively by Session Description Protocol SDP;It initiates to from communication The bluetooth discovery of equipment obtains the case where supporting role from communication equipment;Or, the bluetooth discovery initiated from communication equipment is received, The case where itself supported role, is fed back to from communication equipment;According to bluetooth discovery as a result, matching Master Communication Equipment with from logical Believe the role between equipment;With matched role, second communication connection is established with 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.
CN201910365494.6A 2019-04-30 2019-04-30 Communication means, equipment, system and readable storage medium storing program for executing Withdrawn CN110213752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910365494.6A CN110213752A (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
CN201910365494.6A CN110213752A (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
CN110213752A true CN110213752A (en) 2019-09-06

Family

ID=67786744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910365494.6A Withdrawn CN110213752A (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) CN110213752A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060072525A1 (en) * 2004-09-23 2006-04-06 Jason Hillyard Method and system for role management for complex bluetooth® devices
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
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
US20170311105A1 (en) * 2016-04-22 2017-10-26 Apple Inc. Swapping roles between untethered wirelessly connected devices
WO2018222294A1 (en) * 2017-06-01 2018-12-06 Carrier Corporation Bluetooth™ low energy data transfer communication system and method
CN109327829A (en) * 2018-11-22 2019-02-12 重庆物奇科技有限公司 The method of bluetooth equipment, Bluetooth communication system and equipment room transmission instruction

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060072525A1 (en) * 2004-09-23 2006-04-06 Jason Hillyard Method and system for role management for complex bluetooth® devices
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
US20170311105A1 (en) * 2016-04-22 2017-10-26 Apple Inc. Swapping roles between untethered wirelessly connected devices
CN106658359A (en) * 2016-10-12 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method and device and communication system
WO2018222294A1 (en) * 2017-06-01 2018-12-06 Carrier Corporation Bluetooth™ low energy data transfer communication system and method
CN109327829A (en) * 2018-11-22 2019-02-12 重庆物奇科技有限公司 The method of bluetooth equipment, Bluetooth communication system and equipment room transmission instruction

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
BLUETOOTH: ""Bluetooth Core Specification v5.0"", 《BLUETOOTH》 *
BLUETOOTH: ""Hands-Free Bluetooth Profile Specification v1.7.2"", 《BLUETOOTH》 *
BLUETOOTH: ""Hands-Free Profile 1.5 Application Guideline"", 《BLUETOOTH》 *
BLUETOOTH: ""serial port profile "", 《BLUETOOTH》 *
高彦明: ""蓝牙HFP的无线网络语音对讲系统设计"", 《CNKI》 *

Similar Documents

Publication Publication Date Title
CN110809267A (en) Device connection method, electronic device and computer readable storage medium
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
CN110087223A (en) Communication connecting method, communication equipment and storage medium
CN110213749A (en) Communication processing method, communication equipment and storage medium
CN110213750A (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
CN110267361A (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
CN110198534A (en) Communicate transparent transmission control method, communication equipment, system and storage medium
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
CN110234099A (en) Communication connecting method, communication equipment and storage medium
CN110213752A (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
CN110267241A (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
CN110225500A (en) Communication means, equipment, system and readable storage medium storing program for executing
CN110198536A (en) Communication control method, equipment, system and readable storage medium storing program for executing
CN110225502A (en) Communication control method, equipment, system and readable storage medium storing program for executing
CN110233871A (en) Communication control method, 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
CN110225501A (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

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190906