CN107734589A - A kind of data transmission method and mobile terminal based on wireless headset - Google Patents

A kind of data transmission method and mobile terminal based on wireless headset Download PDF

Info

Publication number
CN107734589A
CN107734589A CN201710927238.2A CN201710927238A CN107734589A CN 107734589 A CN107734589 A CN 107734589A CN 201710927238 A CN201710927238 A CN 201710927238A CN 107734589 A CN107734589 A CN 107734589A
Authority
CN
China
Prior art keywords
earphone
trunking
transmission apparatus
signal
signal transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710927238.2A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710927238.2A priority Critical patent/CN107734589A/en
Publication of CN107734589A publication Critical patent/CN107734589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • H04W40/10Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources based on available power or energy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point

Abstract

The embodiments of the invention provide a kind of data transmission method and mobile terminal based on wireless headset, methods described includes:It is the first trunking to detect first earphone or the second earphone, and first trunking is used for and radio-based electronic devices or the second trunking transmission signal;When first earphone is the first trunking, judge whether first earphone meets preparatory condition;It is used for and radio-based electronic devices or the first trunking transmission signal as the second trunking, second trunking if satisfied, then starting second earphone.The embodiment of the present invention can realize relay station that will not all the time as highly energy-consuming as the wireless headset being currently connected with signal transmission apparatus, cause the too fast situation of relative power consumption as relay station all the time so as to avoid same earphone, finally realize in dual-lug type wireless headset, the power consumption average speed of two wireless headsets it is uniform.

Description

A kind of data transmission method and mobile terminal based on wireless headset
Technical field
The present invention relates to field of data transmission, more particularly to a kind of data transmission method based on wireless headset and a kind of shifting Dynamic terminal.
Background technology
With the development of mobile communication technology, mobile terminal has become a part indispensable in people's life, when Before, wireless communication module, such as bluetooth module, infrared module etc. are all loaded with most of mobile terminal devices, this gives people Life bring more convenient places.Correspondingly, the wireless communication earphone of bluetooth module or infrared module is carried undoubtedly It is by one of peripheral product of people's favor.The appearance of wireless communication earphone, people are allowed to break away from the constraint of wired earphone.
Current dual-lug type wireless headset is in use, it may appear that the uneven phenomenon of two earphone power consumptions.This be because For when wireless headset is connected with the wireless module of mobile terminal, wireless headset wherein one is only used as main equipment and is connected with mobile phone, That is, main equipment earphone is connected as relay station with the wireless module of mobile terminal, then an other earphone depends on as slave unit In main ear speaker device.This make it that mobile terminal when transmitting sound or music first sent out audio signal by wireless module by mobile phone The main earphone for main equipment is given, main earphone is re-used as relay station and sends signal for slave unit, carries out master-slave equipment between the two Signal transmission, therefore the power consumption of main earphone can be higher than the power consumption from earphone, ultimately results in power consumption between two earphones of principal and subordinate not .
The content of the invention
The embodiment of the present invention provides a kind of data transmission method and mobile terminal based on wireless headset, is made with solving to exist For relay station main wireless headset when, the problem of wireless headset power consumption inequality.
First aspect, there is provided a kind of method of the data transfer based on wireless headset, the wireless headset include signal Transmission equipment, the first earphone and the second earphone, first earphone or the second earphone connect with the signal communications, described Method includes:
It is the first trunking to detect first earphone or the second earphone, and first trunking is used for and radio Sub- equipment or the second trunking transmission signal;
When first earphone is the first trunking, judge whether first earphone meets preparatory condition;
If satisfied, then start second earphone as the second trunking, second trunking be used for it is wireless Electronic equipment or the first trunking transmission signal.
Second aspect, there is provided a kind of mobile terminal, the mobile terminal include wireless headset, and the wireless headset includes Signal transmission apparatus, the first earphone and the second earphone, first earphone or the second earphone connect with the signal communications, The mobile terminal includes:
Relay station determining module, it is the first trunking for detecting first earphone or the second earphone, described first Trunking is used for and radio-based electronic devices or the second trunking transmission signal;
Preparatory condition judge module, for when first earphone is the first trunking, judging first earphone Whether preparatory condition is met;If satisfied, then relay station is called to reset module;
Relay station resets module, for starting second earphone as the second trunking, second trunking For with radio-based electronic devices or the first trunking transmission signal.
So, it is the first earphone or the second earphone by the wireless headset for determining to be currently set for the first trunking, When the current wireless headset as the first trunking is the first earphone, judge whether the first earphone meets preparatory condition, if the One earphone meets preparatory condition, then starts second earphone as the second trunking, work can be realized with the above method Relay station that will not all the time as highly energy-consuming for the wireless headset being currently connected with signal transmission apparatus, so as to avoid same ear Machine causes the too fast situation of relative power consumption as relay station all the time, finally realizes in dual-lug type wireless headset, and two wireless The power consumption average speed of earphone it is uniform.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the data transmission method based on wireless headset of first embodiment of the invention;
Fig. 2 is the flow chart of the data transmission method based on wireless headset of second embodiment of the invention;
Fig. 3 is the structured flowchart of the mobile terminal of third embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 5 is the structural representation of the mobile terminal of another embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Reference picture 1, the flow chart of the data transmission method based on wireless headset of one embodiment of the invention is shown, had Body may include steps of:
Step 101, it is the first trunking to detect first earphone or the second earphone, and first trunking is used for With radio-based electronic devices or the second trunking transmission signal;
In actual applications, the embodiment of the present invention can determine to be currently set for the relay station of the signal transmission apparatus Wireless headset is the first earphone or the second earphone;
In the specific implementation, the embodiment of the present invention can apply in multi-track radio earphone, for example, multichannel bluetooth without Line earphone, multichannel Infrared wireless earphone, multichannel 2.4G wireless headsets etc..
In embodiments of the present invention, it is that the first relaying is set that can detect the first earphone or the second earphone in the following way It is standby:The communication information of detection signal transmission equipment and radio-based electronic devices;Detection signal transmission equipment and the first earphone or second The link information of earphone;Judge signal transmission apparatus currently with the first earphone or the second earphone for connection status;Set currently with The first earphone or the second earphone of signal transmission apparatus connection are the first trunking.
In actual applications, when wireless headset is connected with signal transmission apparatus, signal transmission apparatus can pass through acquisition The link information of the wireless headset, determine currently to be connected with signal transmission apparatus according to link information and be used as trunking Wireless headset.
For example, act on behalf of getProfileProxy using Bluetooth adapter BluetoothAdapter acquisition adaptation file It can will connect the facility information of the wireless headset of signal transmission apparatus.
In a particularly preferred embodiment of the invention, it can judge that the signal transmission apparatus is worked as in the following way Preceding and the first earphone or the second earphone are connection status:When the device identification is the device identification of the first earphone, letter is judged Number transmission equipment is currently connection status with the first earphone;When device identification is the device identification of the second earphone, signal is judged Transmission equipment is currently connection status with the second earphone.
In actual applications, the link information of the embodiment of the present invention includes device identification UUID (Universally Unique Identifier, general unique identifier), signal transmission apparatus can then be judged by the UUID in each earphone Signal transmission apparatus is currently connection status with the first earphone or the second earphone.
In the specific implementation, UUID refers to the character recognition code generated on a machine, device identification UUID can be transported Ensure that aerial all devices when same have unique mark with the form of the digital code.
For example, in UUID corresponding to a secondary wireless headset:
Ss [L]=72297c88-4260-4c05-9b05-d28bfb11d10b, 72297c8842604c059b05d28bfb11d10b;
Ss [R]=6d513b6a-69bd-4f79-b94c-d65fc841ea95, 6d513b6a69bd4f79b94cd65fc841ea95。
Certainly, aforesaid way only as an example, those skilled in the art determine by other means described in be currently set for The wireless headset of the relay station of signal transmission apparatus is the first earphone or the second earphone, and this present invention is not restricted.
Step 102, when first earphone is the first trunking, judge whether first earphone meets default bar Part;
In embodiments of the present invention, it can judge whether first earphone meets preparatory condition in the following way:Prison Survey the current residual electricity of first earphone;When the current residual electricity is less than default power threshold, described the is judged One earphone meets preparatory condition.
For example, 40% that power threshold is total electricity is set, when the electricity for monitoring the first earphone is less than power threshold, Then judge that the first earphone meets preparatory condition.
Certainly, aforesaid way is only as an example, those skilled in the art can also judge first ear by other means Machine meets preparatory condition, and this present invention is not restricted.
In a preferred embodiment of the invention, power threshold can also be set in the following way:For same type Number wireless headset, the total electricity of wireless headset is divided into multiple nodes, in the different dump energy node of the wireless headset Middle switching relaying, generating multigroup corresponding record has the power consumption sample of wireless headset operation total duration, using the power consumption sample Structure math equation calculates the most long power consumption sample of operation total duration, and by corresponding to the most long power consumption sample of run time Timing node is as default power threshold.
Step 103, used if satisfied, then starting second earphone as the second trunking, second trunking In with radio-based electronic devices or the first trunking transmission signal.
In embodiments of the present invention, the second earphone can be started in the following way as the second trunking:Disconnect the The annexation of one earphone and signal transmission apparatus;The annexation of the second earphone and signal transmission apparatus is established, starts second Earphone is as the second trunking.
In the specific implementation, bluetooth connection of embodiment of the present invention foundation (Generic Access Profile, is led in GAP With access configuration protocol), GAP be used for control device connect and broadcast, which determine equipment whether can or how with contract Equipment interacts, and GATT is a general specification for sending and receiving very short data segment on bluetooth connection, these Very short data segment is referred to as attribute Attribute.
In actual applications, the embodiment of the present invention can by GAP the first earphone and the signal transmission apparatus company When connecing relation, the annexation of the second earphone and the signal transmission apparatus is established, and starts second earphone as second Trunking.
So, it is the first earphone or the second earphone by the wireless headset for determining to be currently set for the first trunking, When the current wireless headset as the first trunking is the first earphone, judge whether the first earphone meets preparatory condition, if the One earphone meets preparatory condition, then starts second earphone as the second trunking, work can be realized with the above method Relay station that will not all the time as highly energy-consuming for the wireless headset being currently connected with signal transmission apparatus, so as to avoid same ear Machine causes the too fast situation of relative power consumption as relay station all the time, finally realizes in dual-lug type wireless headset, and two wireless The power consumption average speed of earphone it is uniform.
Second embodiment
Reference picture 2, the flow chart of the data transmission method based on wireless headset of one embodiment of the invention is shown, had Body may include steps of:
Step 201, it is the first trunking to detect first earphone or the second earphone, and first trunking is used for With radio-based electronic devices or the second trunking transmission signal;
Step 202, when first earphone is the first trunking, judge whether first earphone meets default bar Part;
Step 203, used if satisfied, then starting second earphone as the second trunking, second trunking In with radio-based electronic devices or the first trunking transmission signal;
Step 204, institute's data signal is sent to first earphone or the second earphone using the signal transmission apparatus;
In the preferred embodiment of the present invention, the signal transmission apparatus can be mobile terminal.
In the specific implementation, signal transmission apparatus described in the embodiment of the present invention can include, for example, mobile terminal, audio Playback equipment etc. has the digital data transmission equipment of blue-tooth device and data signal.
Step 205, the data signal is received using first earphone, and is forwarded to second earphone;Or adopt The data signal is received with second earphone, and is forwarded to first earphone.
In actual applications, the embodiment of the present invention can be employed as the wireless headset of trunking, will be from the signal The data signal that transmission equipment receives, it is forwarded to another wireless headset.
In actual applications, the first earphone of the embodiment of the present invention and the second earphone have relaying data interaction function, In the embodiment of the present invention, the earphone as relay station transports signal in supply line, is receiving the signal transmission apparatus After the data signal of output, the signal of reception is carried out by PRI (Primary Rate Interface, PRI) Regenerate and after enhanced processing, then be forwarded to another wireless headset, so that signal intensity increases, to ensure transmission signal Quality.
The embodiment of the present invention is used in actual applications, and the wireless headset of the first trunking is currently set for by determination For the first earphone or the second earphone, when the current wireless headset as the first trunking is the first earphone, the first ear is judged Whether machine meets preparatory condition, if the first earphone meets preparatory condition, starts the second earphone as the second trunking, signal Transmission equipment sends institute's data signal to the first earphone or the second earphone, receives data signal using the first earphone, and forward To the second earphone;Or data signal is received using the second earphone, and be forwarded to the first earphone, then it can realize as current The wireless headset being connected with signal transmission apparatus will not all the time as highly energy-consuming relay station, so as to avoid currently with signal pass The earphone of transfer device connection causes the too fast situation of relative power consumption as relay station all the time, realizes in dual-lug type wireless headset In, the power consumption average speed of two wireless headsets it is uniform, while also ensure that any one wireless headset as relay station, The data signal received can be sent into another earphone, avoid unique wireless headset causes nothing as relay station The limitation of method switching.
3rd embodiment
Reference picture 3, the structured flowchart of the mobile terminal of one embodiment of the invention is shown, the mobile terminal 300 is specific Following module can be included:
Relay station determining module 301, it is the first trunking for detecting first earphone or the second earphone, described One trunking is used for and radio-based electronic devices or the second trunking transmission signal;
Preparatory condition judge module 302, for when first earphone is the first trunking, judging first ear Whether machine meets preparatory condition;If satisfied, then relay station is called to reset module;
Relay station resets module 303, is set for starting second earphone as the second trunking, second relaying It is ready for use on and radio-based electronic devices or the first trunking transmission signal.
In a preferred embodiment of the invention, the relay station determining module 301 can also include following submodule:
Communication information detection sub-module, for detecting the communication information of the signal transmission apparatus and radio-based electronic devices;
Link information detection sub-module, for detecting the signal transmission apparatus and first earphone or the second earphone Link information;
Connection status judging submodule, for judging that the signal transmission apparatus is currently with the first earphone or the second earphone Connection status;
First trunking set submodule, for set current the first earphone being connected with the signal transmission apparatus or Second earphone is the first trunking.
In a preferred embodiment of the invention, the link information includes device identification, and the connection status is sentenced Disconnected submodule can also include such as lower unit:
First identifying unit, for when the device identification is the device identification of first earphone, judging the letter Number transmission equipment is currently connection status with the first earphone;
Second identifying unit, for when the device identification is the device identification of second earphone, judging the letter Number transmission equipment is currently connection status with the second earphone.
In a preferred embodiment of the invention, the preparatory condition judge module 302 can also include following submodule Block:
Electric power detection submodule, for monitoring the current residual electricity of first earphone;
Decision sub-module, for when the current residual electricity is less than default power threshold, judging first earphone Meet preparatory condition.
In a preferred embodiment of the invention, the relay station, which resets module 303, can also include following submodule:
Annexation disconnects submodule, for disconnecting the annexation of first earphone and the signal transmission apparatus;
Annexation setting up submodule, for establishing the annexation of second earphone and the signal transmission apparatus,
Second trunking starts submodule, for starting second earphone as the second trunking.
In a preferred embodiment of the invention, the mobile terminal 300 can also include following module:
Digital signal output modules, for being sent institute's data signal to first ear using the signal transmission apparatus Machine or the second earphone;
Transmission module, for receiving the data signal using first earphone, and it is forwarded to second ear Machine;Or
The data signal is received using second earphone, and is forwarded to first earphone.
In a preferred embodiment of the invention, the signal transmission apparatus is mobile terminal.
The embodiment of the present invention is used in actual applications, and the wireless headset of the first trunking is currently set for by determination For the first earphone or the second earphone, when the current wireless headset as the first trunking is the first earphone, the first ear is judged Whether machine meets preparatory condition, if the first earphone meets preparatory condition, starts second earphone as the second trunking, Can be realized with the above method will not be all the time as highly energy-consuming as the wireless headset being currently connected with signal transmission apparatus Relay station, cause the too fast situation of relative power consumption as relay station all the time so as to avoid same earphone, finally realize double In ear formula wireless headset, the power consumption average speed of two wireless headsets it is uniform.
Fourth embodiment
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 400 shown in Fig. 4 includes:At least One processor 401, memory 402, at least one network interface 404 and other users interface 403.In mobile terminal 400 Each component is coupled by bus system 405.It is understood that bus system 405 is used to realize the company between these components Connect letter.Bus system 405 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But It is for the sake of clear explanation, various buses is all designated as bus system 405 in Fig. 4.
Wherein, user interface 403 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 402 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In these memories with any other suitable type.
In some embodiments, memory 402 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 4022, include various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 4022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 402, specifically, can be application The program stored in program 4022 or instruction, processor 401 are used to detect first earphone or the second earphone for the first relaying Equipment, first trunking are used for and radio-based electronic devices or the second trunking transmission signal;When first earphone For the first trunking when, judge whether first earphone meets preparatory condition;Make if satisfied, then starting second earphone For the second trunking, second trunking is used for and radio-based electronic devices or the first trunking transmission signal.
The method that the embodiments of the present invention disclose can apply in processor 401, or be realized by processor 401. Processor 401 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing Device 401 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other PLDs, discrete gate or transistor logic Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only storage can In the ripe storage medium in this area such as program read-only memory or electrically erasable programmable memory, register.The storage Medium is located at memory 402, and processor 401 reads the information in memory 402, and the step of the above method is completed with reference to its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing herein described function In member or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and passes through computing device.Memory can To realize within a processor or outside processor.
Alternatively, processor 401 is additionally operable to:Detect the communication information of the signal transmission apparatus and radio-based electronic devices.
Alternatively, processor 401 is additionally operable to:Detect the signal transmission apparatus and first earphone or the second earphone Link information.
Alternatively, processor 401 is additionally operable to:Judge that the signal transmission apparatus is currently with the first earphone or the second earphone Connection status.
Alternatively, processor 401 is additionally operable to:The first earphone or second being currently connected with the signal transmission apparatus is set Earphone is the first trunking.
Alternatively, processor 401 is additionally operable to:When the device identification is the device identification of first earphone, judge The signal transmission apparatus is currently connection status with the first earphone.
Alternatively, processor 401 is additionally operable to:When the device identification is the device identification of second earphone, judge The signal transmission apparatus is currently connection status with the second earphone.
Alternatively, processor 401 is additionally operable to:Monitor the current residual electricity of first earphone.
Alternatively, processor 401 is additionally operable to:When the current residual electricity is less than default power threshold, described in judgement First earphone meets preparatory condition.
Alternatively, processor 401 is additionally operable to:Disconnect the annexation of first earphone and the signal transmission apparatus.
Alternatively, processor 401 is additionally operable to:Establish the annexation of second earphone and the signal transmission apparatus.
Alternatively, processor 401 is additionally operable to:Start second earphone as the second trunking.
Alternatively, processor 401 is additionally operable to:Institute's data signal is sent to described first using the signal transmission apparatus Earphone or the second earphone.
Alternatively, processor 401 is additionally operable to:The data signal is received using first earphone, and is forwarded to described Second earphone;Or
The data signal is received using second earphone, and is forwarded to first earphone.
Mobile terminal 400 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The embodiment of the present invention is used in actual applications, and the wireless headset of the first trunking is currently set for by determination For the first earphone or the second earphone, when the current wireless headset as the first trunking is the first earphone, the first ear is judged Whether machine meets preparatory condition, if the first earphone meets preparatory condition, starts second earphone as the second trunking, Can be realized with the above method will not be all the time as highly energy-consuming as the wireless headset being currently connected with signal transmission apparatus Relay station, cause the too fast situation of relative power consumption as relay station all the time so as to avoid same earphone, finally realize double In ear formula wireless headset, the power consumption average speed of two wireless headsets it is uniform.
5th embodiment
Fig. 5 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5 500 can be mobile phone, tablet personal computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 500 in Fig. 5 includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input list Member 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580 and power supply 590。
Wherein, input block 530 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal The signal input that 500 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 530 can With including contact panel 531.Contact panel 531, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses the operations of any suitable object or annex on contact panel 531 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 531 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give the processor 560 again, and the order sent of reception processing device 560 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 531.Except contact panel 531, input block 530 can also include other input equipments 532, and other input equipments 532 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 540 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, can use LCD or organic hairs The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 541.
It should be noted that contact panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, processor 560 is sent to determine the type of touch event, is followed by subsequent processing device 560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone Various pieces, by running or performing the software program and/or module that are stored in first memory 521, and call storage Data in second memory 522, the various functions and processing data of mobile terminal 500 are performed, so as to mobile terminal 500 Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 521 in software program and/or module and/ Or the data in the second memory 522, it is that the first relaying is set that processor 560, which is used to detect first earphone or the second earphone, Standby, first trunking is used for and radio-based electronic devices or the second trunking transmission signal;When first earphone is During the first trunking, judge whether first earphone meets preparatory condition;If satisfied, then start the second earphone conduct Second trunking, second trunking are used for and radio-based electronic devices or the first trunking transmission signal.
Alternatively, processor 560 is additionally operable to:Detect the communication information of the signal transmission apparatus and radio-based electronic devices.
Alternatively, processor 560 is additionally operable to:Detect the signal transmission apparatus and first earphone or the second earphone Link information.
Alternatively, processor 560 is additionally operable to:Judge that the signal transmission apparatus is currently with the first earphone or the second earphone Connection status.
Alternatively, processor 560 is additionally operable to:The first earphone or second being currently connected with the signal transmission apparatus is set Earphone is the first trunking.
Alternatively, processor 560 is additionally operable to:When the device identification is the device identification of first earphone, judge The signal transmission apparatus is currently connection status with the first earphone.
Alternatively, processor 560 is additionally operable to:When the device identification is the device identification of second earphone, judge The signal transmission apparatus is currently connection status with the second earphone.
Alternatively, processor 560 is additionally operable to:Monitor the current residual electricity of first earphone.
Alternatively, processor 560 is additionally operable to:When the current residual electricity is less than default power threshold, described in judgement First earphone meets preparatory condition.
Alternatively, processor 560 is additionally operable to:Disconnect the annexation of first earphone and the signal transmission apparatus.
Alternatively, processor 560 is additionally operable to:Establish the annexation of second earphone and the signal transmission apparatus.
Alternatively, processor 560 is additionally operable to:Start second earphone as the second trunking.
Alternatively, processor 560 is additionally operable to:Institute's data signal is sent to described first using the signal transmission apparatus Earphone or the second earphone.
Alternatively, processor 560 is additionally operable to:The data signal is received using first earphone, and is forwarded to described Second earphone;Or
The data signal is received using second earphone, and is forwarded to first earphone.
It can be seen that in actual applications with the embodiment of the present invention, by the nothing for determining to be currently set for the first trunking Line earphone is the first earphone or the second earphone, when the current wireless headset as the first trunking is the first earphone, is judged Whether the first earphone meets preparatory condition, if the first earphone meets preparatory condition, starts second earphone as in second After equipment, can be realized with the above method will not be all the time as height as the wireless headset being currently connected with signal transmission apparatus The relay station of power consumption, cause the too fast situation of relative power consumption as relay station all the time so as to avoid same earphone, it is final to realize In dual-lug type wireless headset, the power consumption average speed of two wireless headsets it is uniform.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (14)

  1. A kind of 1. data transmission method based on wireless headset, it is characterised in that the wireless headset include signal transmission apparatus, First earphone and the second earphone, first earphone or the second earphone connect with the signal communications, and methods described includes:
    It is the first trunking to detect first earphone or the second earphone, and first trunking is used to set with wireless electron Standby or the second trunking transmission signal;
    When first earphone is the first trunking, judge whether first earphone meets preparatory condition;
    If satisfied, then starting second earphone as the second trunking, second trunking is used for and wireless electron Equipment or the first trunking transmission signal.
  2. 2. according to the method for claim 1, it is characterised in that the detection first earphone or the second earphone are first The step of trunking, includes:
    Detect the communication information of the signal transmission apparatus and radio-based electronic devices;
    Detect the link information of the signal transmission apparatus and first earphone or the second earphone;
    Judge the signal transmission apparatus currently with the first earphone or the second earphone for connection status;
    It is the first trunking to set the first earphone being currently connected with the signal transmission apparatus or the second earphone.
  3. 3. according to the method for claim 2, it is characterised in that the link information includes device identification, the judgement The step of signal transmission apparatus is currently connection status with the first earphone or the second earphone includes:
    When the device identification be first earphone device identification when, judge the signal transmission apparatus currently with the first ear Machine is connection status;
    When the device identification be second earphone device identification when, judge the signal transmission apparatus currently with the second ear Machine is connection status.
  4. 4. according to the method for claim 1, it is characterised in that it is described when first earphone is the first trunking, Judge that the step of whether first earphone meets preparatory condition includes:
    Monitor the current residual electricity of first earphone;
    When the current residual electricity is less than default power threshold, judge that first earphone meets preparatory condition.
  5. 5. according to the method for claim 1, it is characterised in that described to start second earphone as the second trunking The step of include:
    Disconnect the annexation of first earphone and the signal transmission apparatus;
    The annexation of second earphone and the signal transmission apparatus is established,
    Start second earphone as the second trunking.
  6. 6. according to the method for claim 1, it is characterised in that the signal transmission apparatus can transmit data signal, described Method also includes:
    Institute's data signal is sent to first earphone or the second earphone using the signal transmission apparatus;
    The data signal is received using first earphone, and is forwarded to second earphone;Or
    The data signal is received using second earphone, and is forwarded to first earphone.
  7. 7. according to the method for claim 1, it is characterised in that the radio-based electronic devices are mobile terminal.
  8. 8. a kind of mobile terminal, it is characterised in that the mobile terminal includes wireless headset, and the wireless headset passes including signal Transfer device, the first earphone and the second earphone, first earphone or the second earphone connect with the signal communications, the shifting Dynamic terminal includes:
    Relay station determining module, it is the first trunking for detecting first earphone or the second earphone, first relaying Equipment is used for and radio-based electronic devices or the second trunking transmission signal;
    Preparatory condition judge module, for when first earphone is the first trunking, whether judging first earphone Meet preparatory condition;If satisfied, then relay station is called to reset module;
    Relay station resets module, is used for for starting second earphone as the second trunking, second trunking With radio-based electronic devices or the first trunking transmission signal.
  9. 9. mobile terminal according to claim 8, it is characterised in that the relay station determining module includes:
    Communication information detection sub-module, for detecting the communication information of the signal transmission apparatus and radio-based electronic devices;
    Link information detection sub-module, for detecting the connection of the signal transmission apparatus and first earphone or the second earphone Information;
    Connection status judging submodule, for judging the signal transmission apparatus currently with the first earphone or the second earphone to be connected State;
    First trunking sets submodule, for setting current the first earphone or second being connected with the signal transmission apparatus Earphone is the first trunking.
  10. 10. mobile terminal according to claim 9, it is characterised in that the link information includes device identification, described Connection status judging submodule includes:
    First identifying unit, for when the device identification is the device identification of first earphone, judging that the signal passes Transfer device is currently connection status with the first earphone;
    Second identifying unit, for when the device identification is the device identification of second earphone, judging that the signal passes Transfer device is currently connection status with the second earphone.
  11. 11. mobile terminal according to claim 8, it is characterised in that the preparatory condition judge module includes:
    Electric power detection submodule, for monitoring the current residual electricity of first earphone;
    Decision sub-module, for when the current residual electricity is less than default power threshold, judging that first earphone meets Preparatory condition.
  12. 12. mobile terminal according to claim 8, it is characterised in that the relay station, which resets module, to be included:
    Annexation disconnects submodule, for disconnecting the annexation of first earphone and the signal transmission apparatus;
    Annexation setting up submodule, for establishing the annexation of second earphone and the signal transmission apparatus,
    Second trunking starts submodule, for starting second earphone as the second trunking.
  13. 13. mobile terminal according to claim 8, it is characterised in that the signal transmission apparatus can transmit data signal, Also include:
    Digital signal output modules, for institute's data signal to be sent to first earphone using the signal transmission apparatus or Second earphone;
    Transmission module, for receiving the data signal using first earphone, and it is forwarded to second earphone;Or Person,
    The data signal is received using second earphone, and is forwarded to first earphone.
  14. 14. mobile terminal according to claim 8, it is characterised in that the signal transmission apparatus is mobile terminal.
CN201710927238.2A 2017-10-09 2017-10-09 A kind of data transmission method and mobile terminal based on wireless headset Pending CN107734589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710927238.2A CN107734589A (en) 2017-10-09 2017-10-09 A kind of data transmission method and mobile terminal based on wireless headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710927238.2A CN107734589A (en) 2017-10-09 2017-10-09 A kind of data transmission method and mobile terminal based on wireless headset

Publications (1)

Publication Number Publication Date
CN107734589A true CN107734589A (en) 2018-02-23

Family

ID=61208571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710927238.2A Pending CN107734589A (en) 2017-10-09 2017-10-09 A kind of data transmission method and mobile terminal based on wireless headset

Country Status (1)

Country Link
CN (1) CN107734589A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121034A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 Master-slave switching method and Related product based on volume
CN110795127A (en) * 2019-10-29 2020-02-14 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN111182597A (en) * 2019-12-31 2020-05-19 联想(北京)有限公司 Processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111696A (en) * 2010-12-24 2011-06-29 陕西科技大学 Method for reducing power consumption of bluetooth headset
US20170164089A1 (en) * 2015-12-07 2017-06-08 Samsung Electronics Co., Ltd. Electronic device and operating method thereof
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111696A (en) * 2010-12-24 2011-06-29 陕西科技大学 Method for reducing power consumption of bluetooth headset
US20170164089A1 (en) * 2015-12-07 2017-06-08 Samsung Electronics Co., Ltd. Electronic device and operating method thereof
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121034A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 Master-slave switching method and Related product based on volume
CN109121034B (en) * 2018-08-01 2020-06-12 Oppo广东移动通信有限公司 Master-slave switching method based on volume and related product
US11265639B2 (en) 2018-08-01 2022-03-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for earbud switching, wearable device, and storage medium
CN110795127A (en) * 2019-10-29 2020-02-14 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN110795127B (en) * 2019-10-29 2023-09-22 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN111182597A (en) * 2019-12-31 2020-05-19 联想(北京)有限公司 Processing method and device
CN111182597B (en) * 2019-12-31 2021-10-22 联想(北京)有限公司 Processing method and device

Similar Documents

Publication Publication Date Title
CN102609192B (en) Mobile terminal operating method by computer and mobile terminal
CN106502834B (en) Backup method, the apparatus and system of data
CN108683444B (en) Data transmission method and related product
CN108616897B (en) Configuration method, terminal and network equipment for Discontinuous Reception (DRX) parameters
CN104243671A (en) Volume adjustment method and device and electronic device
CN107819922B (en) A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
CN106371749A (en) Method and device for terminal control
CN104866110A (en) Gesture control method, mobile terminal and system
CN107436758A (en) The method for information display and mobile terminal of a kind of mobile terminal
CN107734589A (en) A kind of data transmission method and mobile terminal based on wireless headset
CN107357484A (en) One kind prompting mark adding method, terminal and computer-readable recording medium
CN106802766A (en) The control method and mobile terminal of a kind of mobile terminal
CN107786424A (en) Audio/video communication method, terminal and server
CN107566502A (en) Recover method, equipment, mobile terminal and the computer-readable storage medium of desktop
CN103312907B (en) Voice channel allocation management method, voice server and communication system
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN107708093B (en) A kind of method and mobile terminal for establishing relaying data network using wireless headset
CN103488421A (en) Method and device for processing call record and mobile terminal
CN108769286B (en) DNS server configuration method and related product
CN104301824A (en) Drive-by-wire device, controller, method and device
CN108268395A (en) A kind of method and mobile terminal of data communication
CN107819931A (en) A kind of audio frequency playing method and mobile terminal based on wireless headset
CN107872791B (en) Access point connection method and device
CN108966290B (en) Network connection method and related product
CN104599129A (en) Affirming method and device for executing operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223