CN107819922B - A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset - Google Patents

A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset Download PDF

Info

Publication number
CN107819922B
CN107819922B CN201710927230.6A CN201710927230A CN107819922B CN 107819922 B CN107819922 B CN 107819922B CN 201710927230 A CN201710927230 A CN 201710927230A CN 107819922 B CN107819922 B CN 107819922B
Authority
CN
China
Prior art keywords
earphone
signal output
output apparatus
distance value
relaying
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.)
Active
Application number
CN201710927230.6A
Other languages
Chinese (zh)
Other versions
CN107819922A (en
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 CN201710927230.6A priority Critical patent/CN107819922B/en
Publication of CN107819922A publication Critical patent/CN107819922A/en
Application granted granted Critical
Publication of CN107819922B publication Critical patent/CN107819922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides the relaying methods of adjustment and mobile terminal of a kind of wireless headset, the wireless headset includes signal output apparatus, the first earphone and the second earphone, the described method includes: obtaining the first distance value of first earphone and the signal output apparatus, with the second distance value of second earphone and the signal output apparatus;Compare the size of the first distance value and second distance value;Adjust and use first earphone or the second earphone as relaying.The embodiment of the present invention may be implemented in dual-lug type wireless headset, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by unique relay wireless earphone and is limited, and then user is avoided during realizing the transmission of maximum magnitude data, the problem of whether wireless headset for needing manual test currently used is relaying earphone, to improve service efficiency.

Description

A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
Technical field
The present invention relates to the relaying methods of adjustment and a kind of movement of field of data transmission more particularly to a kind of wireless headset eventually End.
Background technique
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 in 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 one of the peripheral product favored by people.The appearance of wireless communication earphone allows people to get rid of the constraint of wired earphone.
Take the mobile phone as an example, current dual-lug type wireless headset in use, when the coupled mobile phone of wireless headset Distance farther out when, will disconnect the connection with signal output apparatus, this is because receiving data in existing most wireless headset Mode is by using one of earphone as unique relay, when this receives signal as the earphone of relay When the digital signal that output equipment is sent, then by the digital signal relay transmission to another earphone, wherein join domain Size is determined by the earphone as relay, however, receiving data by unique relay, is connect if user wants to realize It receives range to maximize, then needing oneself to go to test which earphone is the earphone as relay, this, which just causes user, makes With inefficiency during earphone, poor user experience.
Summary of the invention
The embodiment of the present invention provides the relaying method of adjustment and mobile terminal of a kind of wireless headset, how will be wireless with solution The maximized problem of the junction efficiency of earphone.
In a first aspect, providing a kind of relaying method of adjustment of wireless headset, the wireless headset includes that signal output is set Standby, the first earphone and the second earphone, which comprises
Obtain the first distance value of first earphone Yu the signal output apparatus, and, second earphone with it is described The second distance value of signal output apparatus;
Compare the size of the first distance value and second distance value;
Adjust and use first earphone or the second earphone as relaying.
Second aspect provides a kind of mobile terminal, and the mobile terminal includes wireless headset, and the wireless headset includes Signal output apparatus, the first earphone and the second earphone, the mobile terminal include:
Current distance obtains module, for obtaining the first distance value of first earphone Yu the signal output apparatus, With the second distance value of second earphone and the signal output apparatus;
First distance value comparison module, the size of the first distance value and second distance value;
First relaying adjustment module, for adjusting and using first earphone or the second earphone as relaying.
In this way, use the embodiment of the present invention in practical applications, current the of the first earphone and signal output apparatus is obtained One distance value, and, the current second distance value of the second earphone and signal output apparatus, and relatively first distance value and second away from After the size of value, according to current first distance value, and, current second distance value adjustment relaying layout then may be implemented double In ear formula wireless headset, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by only One relay wireless earphone is limited, and then avoids user during realizing the transmission of maximum magnitude data, is needed manually The problem of whether currently used wireless headset is relaying earphone is tested, to improve service efficiency.
Detailed description of the invention
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 Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the relaying method of adjustment of the wireless headset of first embodiment of the invention;
Fig. 2 is the flow chart of the relaying method of adjustment of the wireless headset of second embodiment of the invention;
Fig. 3 is the structural block diagram 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 schematic diagram of the mobile terminal of another embodiment of the invention;
Fig. 6 is the structural block diagram of the wireless headset of sixth embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig.1, the flow chart of the relaying method of adjustment of the wireless headset of one embodiment of the invention is shown, specifically may be used To include the following steps:
Step 101, the first distance value of first earphone and the signal output apparatus is obtained, and, second ear The second distance value of machine and the signal output apparatus;
In practical applications, the embodiment of the present invention can be applied in multi-track radio earphone, wherein wireless headset can be with Including Bluetooth wireless earphone, Infrared wireless earphone, 2.4G wireless headset etc..
In the concrete realization, the embodiment of the present invention can obtain the first earphone and signal output apparatus in the following way Current first distance value, and, the current second distance value of the second earphone and signal output apparatus:
Mode one emits ultrasonic wave to wireless headset using supersonic range finder, timing is started simultaneously in transmitting, when super Sound wave is reflected back when encountering wireless headset, and ultrasonic receiver interrupts immediately when receiving reflected ultrasonic wave Stop timing, after measuring transmitting ultrasonic wave and receiving the time difference of back wave, wireless headset and letter are calculated using the time difference The current distance of number output equipment.
Mode two issues infrared light to wireless headset using infrared distance measuring device, timing is started simultaneously in transmitting, when infrared Light is returned from wireless headset back reflection is encountered, and infrared light receiver interrupts stop immediately when receiving reflected infrared light Only timing calculates wireless headset and letter using the time difference after measuring transmitting infrared light and receiving back the time difference of reflected light The current distance of number output equipment.
Mode three positions wireless headset using the low-power consumption LAN protocol ZigBee based on IEEE802.15.4 standard, The current distance of wireless headset and signal output apparatus is calculated by being compared with signal output apparatus positioning again.
Certainly, those skilled in the art can obtain first by any one of the above or various ways according to actual needs The current first distance value of earphone and signal output apparatus, and, the current second distance value of the second earphone and signal output apparatus, With no restriction to this present invention.
Step 102, the size of the first distance value and second distance value;
In the concrete realization, the embodiment of the present invention can be in the first distance for getting the first earphone and signal output apparatus Value, and, after the second distance value of the second earphone signal output equipment, to first distance value, and, second distance value is compared.
Step 103, it adjusts and using first earphone or the second earphone as relaying.
In in the specific time, the embodiment of the present invention uses the current first distance value, and, the current second distance value Carry out the relaying layout of the wireless headset.
In embodiments of the present invention, the current first distance value can be used in the following way, and, described current Two distance values carry out the relaying layout of the wireless headset: judging whether first distance value is greater than second distance value;If so, will Second earphone is adjusted to main equipment and is connected with signal output apparatus, as between signal output apparatus and the first earphone Relaying;If it is not, the first earphone is then adjusted to main equipment and is connected with signal output apparatus, using as signal output apparatus and Relay station between second earphone.
In a preferred embodiment of the invention, can also adjust in the following way and using first earphone or Second earphone is as relaying:
Judge whether first distance value is greater than second distance value;If so, by the second earphone be adjusted to main equipment and with letter Number output equipment is connected, using as the relaying between signal output apparatus and the first earphone, signal output apparatus believes number Number it is sent to the second earphone;If it is not, the first earphone is then adjusted to main equipment and is connected with signal output apparatus, using as letter Digital signal is sent to the first earphone by the relaying number between output equipment and the second earphone, signal output apparatus.
In the concrete realization, signal output apparatus described in the embodiment of the present invention may include, for example, mobile terminal, audio Playback equipment etc. has the digital signal output equipment of blue-tooth device and digital signal.
The present invention another more preferably in embodiment, the digital signal that the signal output apparatus can be exported It is sent to and is connected with the signal output apparatus using the wireless headset as relay station;Based on the relaying data interaction function Can, as the wireless headset of relay station, it is wireless to be forwarded to another for the digital signal that will be received from the signal output apparatus Earphone.
In practical applications, the first earphone and the second earphone of the embodiment of the present invention have the function of to relay data interaction, In the embodiment of the present invention, the earphone as relay station transports signal in supply line, is receiving the signal output apparatus After the digital signal of output, received signal is carried out by PRI (Primary Rate Interface, Primary Rate Interface) After regenerating simultaneously enhanced processing, then it is forwarded to another wireless headset, so that signal strength increases, to ensure to transmit signal Quality.
For example, needing to be carried out data transmission with farthest distance during user uses wireless headset, at this moment, use Family can arbitrarily choose an earphone and be used as using earphone, using another as relay transmission earphone, when user carries out selection In the process, system can by the way that two earphones are compared at a distance from signal output apparatus, if user select A earphone as Using earphone, B earphone is as relaying earphone, when exporting with signal output apparatus distance A greater than B earphone and signal for A earphone When the distance B of equipment, B earphone is set as the relay station between signal output apparatus and A earphone automatically by system, is connect by B earphone The digital signal sent by signal output apparatus is received, and forwards it to A earphone;If user selects B earphone as using ear Machine, A earphone is as relaying earphone, when B earphone and signal output apparatus distance B are greater than A earphone and signal output apparatus When distance A, A earphone is set as the relay station between signal output apparatus and B earphone automatically by system, is received by A earphone by believing The digital signal that number output equipment is sent, and forward it to B earphone.
The embodiment of the present invention is used in practical applications, obtains the current first distance of the first earphone and signal output apparatus Value, and, the current second distance value of the second earphone and signal output apparatus, and in relatively first distance value and second distance value After size, according to current first distance value, and, current second distance value adjustment relaying layout, then may be implemented dual-lug type without In line earphone, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by unique It is limited after wireless headset, and then avoids user during realizing the transmission of maximum magnitude data, manual test is needed to work as The problem of whether preceding wireless headset used is relaying earphone, to improve service efficiency.
Second embodiment
Referring to Fig. 2, the flow chart of the relaying method of adjustment of the wireless headset of one embodiment of the invention is shown, specifically may be used To include the following steps:
Step 201, the first distance value of first earphone and the signal output apparatus is obtained, and, second ear The second distance value of machine and the signal output apparatus;
Step 202, the size of the first distance value and second distance value;
Step 203, it adjusts and using first earphone or the second earphone as relaying;
Since the specific embodiment of the step 201- step 203 in second method embodiment essentially corresponds to above-mentioned The specific embodiment of one embodiment of the method, therefore the present embodiment is for not detailed place in the description of step 201- step 203, it can With referring to the related description in aforementioned first method embodiment, i will not repeat them here.
Step 204, the size of the third distance value and the 4th distance value;
In the concrete realization, the embodiment of the present invention can be using the low-power consumption local area network association based on IEEE802.15.4 standard It discusses ZigBee and positions wireless headset, when the positioning of wireless headset changes, signal output apparatus generates order, for obtaining Wireless headset occur after physical displacement with signal output apparatus distance, that is, obtain third distance value and the 4th distance value, obtaining After obtaining third distance value and the 4th distance value, mobile terminal can compare the size of third distance value and the 4th distance value.
Step 205, it adjusts and using first earphone or the second earphone as relaying.
Since the specific embodiment of the step 205 in second method embodiment is substantially identical to first method reality above-mentioned The step 103 in the specific embodiment of example is applied, therefore the present embodiment is for place not detailed in the description of step 205, Ke Yican See the related description in aforementioned first method embodiment, i will not repeat them here.
The embodiment of the present invention is used in practical applications, obtains the current first distance of the first earphone and signal output apparatus Value, and, the current second distance value of the second earphone and signal output apparatus, and in relatively first distance value and second distance value After size, according to current first distance value, and, current second distance value adjustment relaying layout, when the current first distance, And/or current second distance obtains the third distance value of first earphone and the signal output apparatus when changing, With, the 4th distance value of change of second earphone and the signal output apparatus, and relatively third distance value and the 4th away from After the size of value, using the third distance value, and, the 4th distance value re-starts the relaying layout of the wireless headset, It then may be implemented in dual-lug type wireless headset, two earphones can act as relaying earphone, so that the maximum transmitted of wireless headset Distance is no longer influenced by unique relay wireless earphone and is limited, and then avoids user in the mistake for realizing the transmission of maximum magnitude data Cheng Zhong, whether the wireless headset for needing user's manual test currently used is relaying earphone, and can work as nothing in use When physical displacement occurs for line earphone, the wireless headset reacquired automatically is at a distance from signal output apparatus, finally using change Distance afterwards re-starts relaying layout, to further improve service efficiency.
3rd embodiment
Referring to Fig. 3, the structural block diagram of the mobile terminal of one embodiment of the invention is shown, the mobile terminal 300 is specific May include following module:
Current distance obtains module 301, for obtaining the first distance of first earphone and the signal output apparatus Value, and, the second distance value of second earphone and the signal output apparatus;
First distance value comparison module 302, the size of the first distance value and second distance value;
First relaying adjustment module 303, for adjusting and using first earphone or the second earphone as relaying.
In a preferred embodiment of the invention, the mobile terminal 300 can also include following module:
It changes distance value and obtains module, in the position of first earphone and/or the second earphone and signal output apparatus Set when changing, obtain the third distance value of first earphone and the signal output apparatus, and, second earphone and 4th distance value of the signal output apparatus;
Second distance value comparison module, the size for the third distance value and the 4th distance value;
Second relaying adjustment module, for adjusting and using first earphone or the second earphone as relaying.
In a preferred embodiment of the invention, the first relaying layout modules 303 can also include following submodule Block:
First distance compares submodule, for judging whether the first distance value is greater than the second distance value;If so, The first relay station is then called to set up submodule;If it is not, the second relay station is then called to set up submodule;
First relay station sets up submodule, for second earphone to be adjusted to main equipment and is set with signal output It is standby to be connected, using as the relaying between the signal output apparatus and first earphone;
Second relay station sets up submodule, for first earphone to be adjusted to main equipment and is set with signal output It is standby to be connected, using as the relay station between the signal output apparatus and second earphone.
In a preferred embodiment of the invention, the first relaying layout modules 303 can also include following submodule Block:
Second distance compares submodule, for judging whether the first distance value is greater than the second distance value;If so, Third relay station is then called to set up submodule;If it is not, then the 4th relay station is called to set up submodule;
Third relay station sets up submodule, for second earphone to be adjusted to main equipment and is set with signal output It is standby to be connected, using as the relaying between the signal output apparatus and first earphone, the signal output apparatus will be counted Word signal is sent to second earphone;
4th relay station sets up submodule, for first earphone to be adjusted to main equipment and is set with signal output It is standby to be connected, using as the relaying between the signal output apparatus and second earphone, the signal output apparatus will be counted Word signal is sent to first earphone.
In a preferred embodiment of the invention, the signal output apparatus is mobile terminal.
The embodiment of the present invention is used in practical applications, obtains the current first distance of the first earphone and signal output apparatus Value, and, the current second distance value of the second earphone and signal output apparatus, and in relatively first distance value and second distance value After size, according to current first distance value, and, current second distance value adjustment relaying layout, then may be implemented dual-lug type without In line earphone, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by unique It is limited after wireless headset, and then avoids user during realizing the transmission of maximum magnitude data, manual test is needed to work as The problem of whether preceding wireless headset used is relaying earphone, to improve service efficiency.
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 Various components are coupled by bus system 405.It is understood that bus system 405 is for realizing the company between these components Connect letter.Bus system 405 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But It is that various buses are all designated as bus system 405 in Fig. 4 for the sake of clear explanation.
Wherein, user interface 403 may 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, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (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 the memory of these and any other suitable type.
In some embodiments, memory 402 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 4021 and application program 4022.
Wherein, operating system 4021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 4022 includes 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 the program or instruction of calling memory 402 to store, specifically, can be application The program or instruction stored in program 4022, processor 401 are used to obtain first earphone and the signal output apparatus First distance value, and, the second distance value of second earphone and the signal output apparatus;Compare the first distance value and The size of second distance value;Adjust and use first earphone or the second earphone as relaying.
The method that the embodiments of the present invention disclose can be applied in processor 401, or be realized by processor 401. Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, 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), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.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 in conjunction with its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (App LicationSpecificIntegratedCircuits, 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 executing herein described function In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 401 is also used to: when the current first distance, and/or, current second distance changes When, the change first distance value of first earphone and the signal output apparatus is obtained, and, second earphone and the letter The change second distance value of number output equipment.
Optionally, processor 401 is also used to: when the position of first earphone and/or the second earphone and signal output apparatus Set when changing, obtain the third distance value of first earphone and the signal output apparatus, and, second earphone and 4th distance value of the signal output apparatus.
Optionally, processor 401 is also used to: the size of the third distance value and the 4th distance value.
Optionally, processor 401 is also used to: being adjusted and using first earphone or the second earphone as relaying.
Optionally, processor 401 is also used to: judging whether the first distance value is greater than the second distance value.
Optionally, processor 401 is also used to: if so, by second earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relaying between the signal output apparatus and first earphone.
Optionally, processor 401 is also used to: if it is not, then by first earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relay station between the signal output apparatus and second earphone.
Optionally, judge whether the first distance value is greater than the second distance value.
Optionally, if so, second earphone is adjusted to main equipment and is connected with the signal output apparatus, with As the relaying between the signal output apparatus and first earphone, digital signal is sent to by the signal output apparatus Second earphone.
Optionally, if it is not, first earphone is then adjusted to main equipment and is connected with the signal output apparatus, with As the relaying between the signal output apparatus and second earphone, digital signal is sent to by the signal output apparatus First earphone.
Mobile terminal 400 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The embodiment of the present invention is used in practical applications, obtains the current first distance of the first earphone and signal output apparatus Value, and, the current second distance value of the second earphone and signal output apparatus, and in relatively first distance value and second distance value After size, according to current first distance value, and, current second distance value adjustment relaying layout, then may be implemented dual-lug type without In line earphone, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by unique It is limited after wireless headset, and then avoids user during realizing the transmission of maximum magnitude data, manual test is needed to work as The problem of whether preceding wireless headset used is relaying earphone, to improve service efficiency.
5th embodiment
Fig. 5 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5 500 can be mobile phone, tablet 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 unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 531.Touch panel 531, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 560 is given again, and can be received order that processor 560 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit 530 can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 540 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, 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 common control viewing area.The Application Program Interface viewing area And arrangement mode of the common 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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 521, and calling storage Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus 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, processor 560 are used to obtain the of first earphone and the signal output apparatus One distance value, and, the second distance value of second earphone and the signal output apparatus;Compare the first distance value and The size of two distance values;Adjust and use first earphone or the second earphone as relaying.
Optionally, processor 560 is also used to: when the position of first earphone and/or the second earphone and signal output apparatus Set when changing, obtain the third distance value of first earphone and the signal output apparatus, and, second earphone and 4th distance value of the signal output apparatus.
Optionally, processor 560 is also used to: the size of the third distance value and the 4th distance value.
Optionally, processor 560 is also used to: being adjusted and using first earphone or the second earphone as relaying.
Optionally, processor 560 is also used to: judging whether the first distance value is greater than the second distance value.
Optionally, processor 560 is also used to: if so, by second earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relaying between the signal output apparatus and first earphone.
Optionally, processor 560 is also used to: if it is not, then by first earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relay station between the signal output apparatus and second earphone.
Optionally, processor 560 is also used to: judging whether the first distance value is greater than the second distance value.
Optionally, processor 560 is also used to: if so, by second earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relaying between the signal output apparatus and first earphone, the signal output is set It is standby that digital signal is sent to second earphone.
Optionally, processor 560 is also used to: if it is not, then by first earphone be adjusted to main equipment and with the signal Output equipment is connected, using as the relaying between the signal output apparatus and second earphone, the signal output is set It is standby that digital signal is sent to first earphone.
As it can be seen that use the embodiment of the present invention in practical applications, current the of the first earphone and signal output apparatus is obtained One distance value, and, the current second distance value of the second earphone and signal output apparatus, and relatively first distance value and second away from After the size of value, according to current first distance value, and, current second distance value adjustment relaying layout then may be implemented double In ear formula wireless headset, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by only One relay wireless earphone is limited, and then avoids user during realizing the transmission of maximum magnitude data, is needed manually The problem of whether currently used wireless headset is relaying earphone is tested, to improve service efficiency.
Sixth embodiment
Referring to Fig. 6, the structural block diagram of the wireless headset of one embodiment of the invention is shown, the wireless headset 600 is specific May include following module:
Current distance obtains module 601, for obtaining the first distance of first earphone and the signal output apparatus Value, and, the second distance value of second earphone and the signal output apparatus;
First distance value comparison module 602, the size of the first distance value and second distance value;
First relaying adjustment module 603, for adjusting and using first earphone or the second earphone as relaying.
The embodiment of the present invention is used in practical applications, obtains the current first distance of the first earphone and signal output apparatus Value, and, the current second distance value of the second earphone and signal output apparatus, and in relatively first distance value and second distance value After size, according to current first distance value, and, current second distance value adjustment relaying layout, then may be implemented dual-lug type without In line earphone, two earphones can act as relaying earphone, so that the maximum transmission distance of wireless headset is no longer influenced by unique It is limited after wireless headset, and then avoids user during realizing the transmission of maximum magnitude data, manual test is needed to work as The problem of whether preceding wireless headset used is relaying earphone, to improve service efficiency.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of relaying method of adjustment of wireless headset, which is characterized in that the wireless headset includes signal output apparatus, first Earphone and the second earphone, can interact relaying data between first earphone and the second earphone, the signal output apparatus has Digital signal, which comprises
The first distance value of first earphone Yu the signal output apparatus is obtained, and, second earphone and the signal The second distance value of output equipment;
Compare the size of the first distance value and second distance value;
Adjust and use first earphone or the second earphone as relaying;
Wherein, described to adjust and include: as the step of relaying using first earphone or the second earphone
Judge whether the first distance value is greater than the second distance value;
If so, second earphone is adjusted to main equipment and is connected with the signal output apparatus, using as the letter Relay station number between output equipment and first earphone, second earphone believe the number by Primary Rate Interface First earphone is forwarded to after number carrying out regeneration and enhanced processing;
If it is not, first earphone is then adjusted to main equipment and is connected with the signal output apparatus, using as the letter Relay station number between output equipment and second earphone, first earphone believe the number by Primary Rate Interface Second earphone is forwarded to after number carrying out regeneration and enhanced processing.
2. according to method described in claim 1, which is characterized in that further include:
When the position of first earphone and/or the second earphone and signal output apparatus changes, first ear is obtained The third distance value of machine and the signal output apparatus, and, the 4th distance of second earphone and the signal output apparatus Value;
Compare the size of the third distance value and the 4th distance value;
Adjust and use first earphone or the second earphone as relaying.
3. described the method according to claim 1, wherein the wireless headset includes multi-track radio earphone Signal output apparatus output digit signals in the adjustment and are used as the step of relaying using first earphone or the second earphone Include:
Judge whether the first distance value is greater than the second distance value;
If so, second earphone is adjusted to main equipment and is connected with the signal output apparatus, using as the letter Digital signal is sent to second ear by the relaying number between output equipment and first earphone, the signal output apparatus Machine;
If it is not, first earphone is then adjusted to main equipment and is connected with the signal output apparatus, using as the letter Digital signal is sent to first ear by the relaying number between output equipment and second earphone, the signal output apparatus Machine.
4. the method according to claim 1, wherein the signal output apparatus is mobile terminal.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes wireless headset, and the wireless headset includes that signal is defeated Equipment, the first earphone and the second earphone out, can interact relaying data between first earphone and the second earphone, the signal is defeated Equipment has digital signal out, and the mobile terminal includes:
Current distance obtains module, for obtaining the first distance value of first earphone Yu the signal output apparatus, and, institute State the second distance value of the second earphone Yu the signal output apparatus;
First distance value comparison module, the size of the first distance value and second distance value;
First relaying adjustment module, for adjusting and using first earphone or the second earphone as relaying;
Wherein, the first relaying adjustment module includes:
First distance compares submodule, for judging whether the first distance value is greater than the second distance value;If so, adjusting Submodule is set up with the first relay station;If it is not, the second relay station is then called to set up submodule;
First relay station sets up submodule, for by second earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relay station between the signal output apparatus and first earphone, second earphone passes through basic group speed Rate interface is forwarded to first earphone after the digital signal is carried out regeneration and enhanced processing;
Second relay station sets up submodule, for by first earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relay station between the signal output apparatus and second earphone, first earphone passes through basic group speed Rate interface is forwarded to second earphone after the digital signal is carried out regeneration and enhanced processing.
6. according to the mobile terminal described in claim 5, which is characterized in that further include:
It changes distance value and obtains module, for being sent out in the position of first earphone and/or the second earphone and signal output apparatus When changing, obtain the third distance value of first earphone and the signal output apparatus, and, second earphone with it is described 4th distance value of signal output apparatus;
Second distance value comparison module, the size for the third distance value and the 4th distance value;
Second relaying adjustment module, for adjusting and using first earphone or the second earphone as relaying.
7. mobile terminal according to claim 5, which is characterized in that the wireless headset includes multi-track radio earphone, The signal output apparatus output digit signals, the first relaying adjustment module further include:
Second distance compares submodule, for judging whether the first distance value is greater than the second distance value;If so, adjusting Submodule is set up with third relay station;If it is not, then the 4th relay station is called to set up submodule;
Third relay station sets up submodule, for by second earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relaying between the signal output apparatus and first earphone, the signal output apparatus believes number Number it is sent to second earphone;
4th relay station sets up submodule, for by first earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relaying between the signal output apparatus and second earphone, the signal output apparatus believes number Number it is sent to first earphone.
8. a kind of wireless headset, which is characterized in that the wireless headset includes signal output apparatus, the first earphone and the second ear Machine can interact relaying data between first earphone and the second earphone, the signal output apparatus has digital signal, described Wireless headset includes:
Current distance obtains module, for obtaining the first distance value of first earphone Yu the signal output apparatus, and, institute State the second distance value of the second earphone Yu the signal output apparatus;
First distance comparison module, the size of the first distance value and second distance value;
First relaying adjustment module, for adjusting and using first earphone or the second earphone as relaying;
Wherein, the first relaying adjustment module includes:
First distance compares submodule, for judging whether the first distance value is greater than the second distance value;If so, adjusting Submodule is set up with the first relay station;If it is not, the second relay station is then called to set up submodule;
First relay station sets up submodule, for by second earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relay station between the signal output apparatus and first earphone, second earphone passes through basic group speed Rate interface is forwarded to first earphone after the digital signal is carried out regeneration and enhanced processing;
Second relay station sets up submodule, for by first earphone be adjusted to main equipment and with the signal output apparatus phase Connection, using as the relay station between the signal output apparatus and second earphone, first earphone passes through basic group speed Rate interface is forwarded to second earphone after the digital signal is carried out regeneration and enhanced processing.
CN201710927230.6A 2017-10-09 2017-10-09 A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset Active CN107819922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710927230.6A CN107819922B (en) 2017-10-09 2017-10-09 A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710927230.6A CN107819922B (en) 2017-10-09 2017-10-09 A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset

Publications (2)

Publication Number Publication Date
CN107819922A CN107819922A (en) 2018-03-20
CN107819922B true CN107819922B (en) 2019-10-15

Family

ID=61607804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710927230.6A Active CN107819922B (en) 2017-10-09 2017-10-09 A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset

Country Status (1)

Country Link
CN (1) CN107819922B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566684B (en) 2018-07-02 2021-04-13 Oppo广东移动通信有限公司 Communication connection establishing method and related equipment
CN108934083A (en) * 2018-07-02 2018-12-04 Oppo广东移动通信有限公司 Communicate to connect method for building up and relevant device
CN108901080A (en) * 2018-07-02 2018-11-27 Oppo广东移动通信有限公司 Communicate to connect method for building up and relevant device
CN109788384A (en) * 2018-12-08 2019-05-21 深圳中科君浩科技股份有限公司 A kind of bluetooth headset
CN111988771B (en) * 2020-08-28 2023-09-15 维沃移动通信有限公司 Wireless connection control method and device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909337A (en) * 2016-05-05 2017-06-30 美律电子(深圳)有限公司 Method for selecting main earphone in wireless earphone set, electronic device and wireless earphone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812906B (en) * 2016-03-22 2018-11-20 广东欧珀移动通信有限公司 A kind of communication control method and device of playback equipment
CN106535081A (en) * 2016-12-20 2017-03-22 建荣半导体(深圳)有限公司 Bluetooth mode switching method and device, communication system and stereophonic audio transmission method
CN106937197B (en) * 2017-01-25 2019-06-25 北京国承万通信息科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107205192B (en) * 2017-07-28 2019-10-11 广州黑格智能科技有限公司 A kind of audio frequency playing method of ears wireless headset and ears wireless headset

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909337A (en) * 2016-05-05 2017-06-30 美律电子(深圳)有限公司 Method for selecting main earphone in wireless earphone set, electronic device and wireless earphone

Also Published As

Publication number Publication date
CN107819922A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN107819922B (en) A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
CN105898705B (en) A kind of method and mobile terminal of the scan frequency controlling WLAN
CN107148085B (en) A kind of carrier polymerizing method and mobile terminal
CN115357178A (en) Control method applied to screen projection scene and related equipment
CN106504777B (en) A kind of processing method and mobile terminal of recording data
CN106301604B (en) A kind of radio frequency path detection method and mobile terminal
CN106100688B (en) A kind of communication means and mobile terminal
CN106325753B (en) A kind of display methods and mobile terminal of payment interface
CN107743279B (en) A kind of earphone noise-reduction method, earphone and mobile terminal
CN107423018B (en) A kind of multi-screen display method and terminal
CN106371749A (en) Method and device for terminal control
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
CN107708093B (en) A kind of method and mobile terminal for establishing relaying data network using wireless headset
CN108809561A (en) A kind of transmission method, the network equipment and the user equipment of synchronizing signal block
CN107526523B (en) A kind of the operation interface control method and mobile terminal of mobile terminal
CN106230447B (en) A kind of data transfer control method and mobile terminal
CN109151843A (en) data transmission method, mobile terminal, base station and computer readable storage medium
CN106101440A (en) A kind of self-timer method and mobile terminal
CN108646967A (en) Display changeover method, device, mobile terminal and storage medium
CN106033355B (en) A kind of language setting method and mobile terminal
CN108268395A (en) A kind of method and mobile terminal of data communication
CN106160860B (en) A kind of visible light communication method and terminal
CN107347137B (en) A kind of processing method and mobile terminal of image data
CN106911354B (en) Selection method, radio circuit and the mobile terminal of the transmitting link of radio circuit
CN106162723B (en) A kind of wireless communications method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant