CN105392087B - A kind of speaker management method and user terminal - Google Patents

A kind of speaker management method and user terminal Download PDF

Info

Publication number
CN105392087B
CN105392087B CN201510745375.5A CN201510745375A CN105392087B CN 105392087 B CN105392087 B CN 105392087B CN 201510745375 A CN201510745375 A CN 201510745375A CN 105392087 B CN105392087 B CN 105392087B
Authority
CN
China
Prior art keywords
speaker
main sound
user terminal
wired connection
target
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
CN201510745375.5A
Other languages
Chinese (zh)
Other versions
CN105392087A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510745375.5A priority Critical patent/CN105392087B/en
Publication of CN105392087A publication Critical patent/CN105392087A/en
Application granted granted Critical
Publication of CN105392087B publication Critical patent/CN105392087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a kind of speaker management method and user terminals, including:User terminal is in obtaining loudspeaker box combination after the connection status of each speaker and user terminal;It can then detect in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection;Whether if detecting in loudspeaker box combination there are the speaker that connection status is wired connection, it includes default main sound box to detect in the speaker of wired connection;If detecting in the speaker of wired connection not include default main sound box, the connection relation for presetting main sound box and user terminal, and the selection target main sound box from the speaker that connection status is wired connection are disconnected;It establishes and connects with target main sound box.Implement the embodiment of the present invention, the success rate of loudspeaker box combination normal play data resource can be promoted.

Description

A kind of speaker management method and user terminal
Technical field
The present invention relates to electronic technology field more particularly to a kind of speaker management method and user terminals.
Background technology
With the fast development of electronic technology and the rapid proliferation of terminal, the function of terminal is increasingly perfect.It is with speaker Example, due to being integrated with processor and network interface in speaker, then user can utilize speaker to access external network data resource. In practical application, user controls speaker generally by control terminal (such as mobile phone or tablet computer terminal), to realize sound Case accesses the function of external network data resource.Specifically, application program of the installation for controlling speaker in terminal, then pass through It controls the application program in the terminal and obtains data resource, and the data that will be got from outer data network to control speaker Resource plays out.In order to keep result of broadcast more preferable, usually multiple speakers are combined, and one is selected in loudspeaker box combination Platform speaker establishes a connection as main sound box with the terminal of above application program is mounted with, terminal need to only control main sound box Entire loudspeaker box combination is controlled, and other speakers are required for through main sound box come transfer message.However, if main sound box is whole with user Hold the connection relation established unstable, then main sound box cannot receive the data resource of user terminal transmission well, then may lead Cause entire loudspeaker box combination all can not normal use, so as to cause can not normal play data resource.
Invention content
An embodiment of the present invention provides a kind of speaker management method and user terminals, can promote loudspeaker box combination normal play The success rate of data resource.
In a first aspect, the embodiment of the invention discloses a kind of speaker management methods, including:
The connection status of each speaker and user terminal in loudspeaker box combination is obtained, the connection status includes wired connection With one kind in wireless connection;
It detects in the loudspeaker box combination with the presence or absence of the speaker that the connection status is the wired connection;
If detecting the speaker in the loudspeaker box combination there are the connection status for the wired connection, described in detection Whether include default main sound box in the speaker of wired connection;
If detecting in the speaker of the wired connection not include the default main sound box, the default main sound box is disconnected With the connection relation of the user terminal, and from the connection status be the wired connection speaker in selection target keynote Case;
It establishes and connects with the target main sound box.
Realization method with reference to first aspect, it is described from described in the first possible realization method of first aspect Connection status is selection target main sound box in the speaker of the wired connection, including:
The speaker that the connection status is the wired connection is formed into the combination of target sound case;
The first test instruction is sent to each speaker in the target loudspeaker box combination;
For each speaker in the target loudspeaker box combination, obtain from the delivery time of the first test instruction to Receive the interval duration that the speaker returns to the time of reception of the first test instruction response message;
The shortest speaker of the interval duration is selected to be set as target main sound box from the target loudspeaker box combination.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect In, it is described that the shortest speaker of the interval duration is selected to be set as target main sound box from the target loudspeaker box combination, including:
It detects and whether there is identical at least two speaker of the interval duration in the target loudspeaker box combination;
If detecting in the target loudspeaker box combination there are identical at least two speaker of the interval duration, institute is detected State whether the corresponding interval duration of at least two speakers is shortest interval duration in the target loudspeaker box combination;
If detecting when the corresponding interval of at least two speaker shortest interval in a length of target loudspeaker box combination Duration then chooses target main sound box from least two speaker.
Realization method with reference to first aspect, in the third possible realization method of first aspect, the acquisition sound The connection status of each speaker and user terminal in case combination, including:
The second test instruction is sent to each speaker in the loudspeaker box combination;
For each speaker in the loudspeaker box combination, obtain from the delivery time of the second test instruction to receiving The speaker returns to the interval duration of the time of reception of the second test instruction response message;
According to the interval duration, the connection status of each speaker and user terminal in the loudspeaker box combination is obtained.
The first possible realization method of realization method, first aspect with reference to first aspect, the second of first aspect Any one possible realization method in the possible realization method of kind and the third possible realization method of first aspect, In the 4th kind of possible realization method of first aspect, following steps can also be performed:
If detecting, the speaker of the wired connection includes the default main sound box, sends third test instruction to institute State each speaker in the speaker of wired connection;
For each speaker in the speaker of the wired connection, the delivery time from third test instruction is obtained The interval duration that third test instructs the time of reception of response message is returned to the speaker is received;
Obtain the corresponding interval duration of the default main sound box and most short interval duration in the speaker of the wired connection Difference;
Detect whether the difference is more than preset time threshold;
If detecting, the difference is more than the preset time threshold, and it is whole with the user to disconnect the default main sound box The connection relation at end, and using the corresponding speaker of most short interval duration in the speaker of the wired connection as the target keynote Case.
Second aspect, the embodiment of the invention also discloses a kind of user terminals, including:
Acquiring unit, the connection status for obtaining each speaker and user terminal in loudspeaker box combination, the connection shape State includes wired connection and one kind in wireless connection;
Detection unit, for detecting in the loudspeaker box combination with the presence or absence of the sound that the connection status is the wired connection Case;
The detection unit, if being additionally operable to detect in the loudspeaker box combination, there are the connection status be wired company Whether the speaker connect, then it includes default main sound box to detect in the speaker of the wired connection;
Control unit, if in detecting the speaker of the wired connection for the detection unit not including the default master Speaker then controls the default main sound box and disconnects relationship with the user terminal;
Selecting unit, for the selection target main sound box from the speaker that the connection status is the wired connection;
Unit is established, is connected for being established with the target main sound box.
In conjunction with the user terminal of second aspect, in the first possible user terminal of second aspect, the selection is single Member includes:
Comprising modules, for the speaker that the connection status is the wired connection to be formed the combination of target sound case;
First sending module, for sending the first test instruction to each speaker in the target loudspeaker box combination;
First acquisition module, for for each speaker in the target loudspeaker box combination, obtaining and being surveyed from described first The delivery time for trying instruction returns to the interval duration that the first test instructs the time of reception of response message to the speaker is received;
Selecting module, for selecting the shortest speaker of the interval duration to be set as target from the target loudspeaker box combination Main sound box.
In conjunction with the first possible user terminal of second aspect, in second of possible user terminal of second aspect In, the selecting module selects the shortest speaker of the interval duration to be set as target main sound box from the target loudspeaker box combination Specific implementation mode be:The selecting module detects identical with the presence or absence of the interval duration in the target loudspeaker box combination At least two speakers;If detecting in the target loudspeaker box combination there are identical at least two speaker of the interval duration, The selecting module detects whether the corresponding interval duration of at least two speaker is shortest in the target loudspeaker box combination It is spaced duration;If detecting when the corresponding interval of at least two speaker shortest interval in a length of target loudspeaker box combination Duration, then the selecting module target main sound box is chosen from least two speaker.
In conjunction with the user terminal of second aspect, in the third possible user terminal of second aspect, the acquisition is single Member includes:
Second sending module, for sending the second test instruction to each speaker in the loudspeaker box combination;
Second acquisition module refers to for for each speaker in the loudspeaker box combination, obtaining from second test The delivery time of order returns to the interval duration that the second test instructs the time of reception of response message to the speaker is received;
Second acquisition module is additionally operable to, according to the interval duration, obtain each speaker in the loudspeaker box combination With the connection status of user terminal.
In conjunction with the user terminal of second aspect, the first possible user terminal of second aspect, second aspect second The third possible user terminal of the possible user terminal of kind and second aspect, in the 4th kind of possible use of second aspect In the terminal of family, the user terminal further includes:
Transmission unit, if detecting that the speaker of the wired connection includes the default keynote for the detection unit Case then sends third test instruction to each speaker in the speaker of the wired connection;
The acquiring unit, each speaker being additionally operable in the speaker for the wired connection are obtained from described the When the delivery time of three test instructions to the interval for receiving the time of reception that the speaker returns to third test instruction response message It is long;
The acquiring unit is additionally operable to obtain the sound of the corresponding interval duration and the wired connection of the default main sound box The difference of most short interval duration in case;
The detection unit is additionally operable to detect whether the difference is more than preset time threshold;
Described control unit, if being additionally operable to the detection unit detects whether the difference is more than preset time threshold When, then it controls the default main sound box and disconnects relationship with the user terminal;
The selecting unit is additionally operable to using the corresponding speaker of most short interval duration in the speaker of the wired connection as institute State target main sound box.
In the embodiment of the present invention, the connection status of user terminal each speaker and user terminal in obtaining loudspeaker box combination Later, connection status includes wired connection and one kind in wireless connection;It can then detect in loudspeaker box combination with the presence or absence of connection State is the speaker of wired connection;If detecting, there are the speakers that connection status is wired connection, detection to have in loudspeaker box combination Whether include default main sound box in the speaker of line connection;If it does not include default main sound box to detect in the speaker of wired connection, Disconnect the connection relation for presetting main sound box and user terminal, and the selection target keynote from the speaker that connection status is wired connection Case;It establishes and connects with target main sound box.In embodiments of the present invention, user terminal can be wired detecting default main sound box not When the speaker of connection, automatically controls user terminal and disconnect relationship with default main sound box, and selected from the speaker of wired connection Select target main sound box, and establish and connect with target main sound box, so as to promoted loudspeaker box combination normal play data resource at Power.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram of speaker management method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another speaker management method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention;
Fig. 5 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.
Specific implementation mode
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 describes, 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.
The embodiment of the invention discloses a kind of speaker management method and user terminals.In embodiments of the present invention, user is whole End can automatically control user terminal and disconnect company with default main sound box when it is the speaker of wired connection to detect default main sound box not Relationship, and the selection target main sound box from the speaker of wired connection are connect, and establishes and connects with target main sound box, so as to be promoted The success rate of loudspeaker box combination normal play data resource.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of speaker management method disclosed by the embodiments of the present invention.Wherein, scheme Method shown in 1 can be adapted for smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC and Mobile internet device (Mobile Internet Devices, MID), PAD etc. have the use for accessing external network data resource In the terminal of family.As shown in Figure 1, the speaker management method may comprise steps of:
S101, the connection status for obtaining each speaker and user terminal in loudspeaker box combination, connection status includes wired company It connects and one kind in wireless connection.
In the embodiment of the present invention, loudspeaker box combination is made of at least two speakers, wherein there are one in loudspeaker box combination Speaker is directly to carry out data connection, referred to as main sound box with user terminal, other do not establish data connection with user terminal Speaker is referred to as from speaker.User terminal can control the loudspeaker box combination by controlling main sound box.Wherein, main sound box and user are whole Data connection is established at end, is primarily referred to as and is mounted with the data connection that the application user terminal of control speaker is established.
In the embodiment of the present invention, obtaining the connection status of each speaker and user terminal in loudspeaker box combination mainly includes Obtain the connection status that main sound box is preset in loudspeaker box combination and all connection status from speaker.Wherein, connection status includes Line is connected and is wirelessly connected.Wired connection refers to being attached by physical transfer data line, and wireless connection may include then indigo plant The connection that tooth transmission, low-power consumption bluetooth transmission and wireless network transmissions etc. pass through transmission channel.
With the presence or absence of the speaker that connection status is wired connection in S102, detection loudspeaker box combination.
In the embodiment of the present invention, after the connection status of each speaker and user terminal in obtaining loudspeaker box combination, then It can detect in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection.
It may be zero, sound that connection status, which is the quantity of the speaker of wired connection, in the embodiment of the present invention, in loudspeaker box combination It may also be one that connection status, which is the quantity of the speaker of wired connection, in case combination;Connection status is wired company in loudspeaker box combination The quantity of the speaker connect is also possible to be at least two.The quantity for being directed to the speaker of wired connection in loudspeaker box combination is different, uses Family terminal is in subsequent processing mode difference.Specifically, when in loudspeaker box combination connection status be wired connection speaker quantity For zero when, then user terminal can be by sending test instruction to each speaker in loudspeaker box combination, and according to each Speaker chooses target main sound box for the feedback duration of test instruction.Connection status is the speaker of wired connection in loudspeaker box combination Quantity be one when, then the only one speaker of the wired connection can be chosen for target main sound box.When connecting in loudspeaker box combination The state of connecing is the quantity of the speaker of wired connection when being at least two, then can send test instruction to the sound of above-mentioned wired connection Each speaker in case, and target main sound box is chosen for the feedback duration of test instruction according to each speaker.
If S103, detecting in loudspeaker box combination there are the speaker that connection status is wired connection, wired connection is detected Whether include default main sound box in speaker.
In the embodiment of the present invention, default main sound box can be the speaker of physical address minimum in entire loudspeaker box combination.
In the embodiment of the present invention, after there are connection status for the speaker of wired connection in detecting loudspeaker box combination, then Whether can detect in the speaker of wired connection includes default main sound box.
If S104, detecting in the speaker of wired connection not include default main sound box, disconnects and preset main sound box and user The connection relation of terminal, and the selection target main sound box from the speaker that connection status is wired connection.
In the embodiment of the present invention, when establishing wired connection with user terminal due to speaker, during carrying out data outflow, Can be more stable, it is safer, it is more reliable.Therefore, do not include default main sound box in the speaker for detecting wired connection, then illustrate Default main sound box is not to carry out wired connection with user terminal, then it is disconnected with user terminal can to control default main sound box for user terminal Open connection relation;And the selection target main sound box from the speaker that connection status is wired connection.
S105, connection is established with target main sound box.
In the embodiment of the present invention, after selection target main sound box in the speaker that connection status is wired connection, then use Family terminal can establish a connection with target main sound box.
Specifically, it establishes a connection, may comprise steps of with target main sound box:
11) what reception user's operation target button was triggered establishes link order;
12) link order is established in response, exports the prompt message for prompting validation information;
13) verification information of response prompt information input is received;
14) verification information is sent to target main sound box, so that target main sound box authentication information and pre-set use Establish whether the verification information connected matches with target main sound box in triggering user terminal;
If 15) receive the prompt message for prompting successful match of main sound box transmission, established with target main sound box Connection relation.
In the embodiment of the present invention, user terminal receive that user's operation target button triggered establish link order it Afterwards, prompt message of the user terminal by output for prompting validation information;And user terminal can be exported for inputting The verification information input port of verification information.
In the embodiment of the present invention, prompt message can include but is not limited to voice prompt, text prompt, flashing indicating and One or more combinations in vibration prompting.
In the embodiment of the present invention, which may include but be not limited to password to be verified, finger print information to be verified, to be tested Demonstrate,prove in shape of face information, iris information to be verified, retinal information to be verified and voiceprint to be verified any one or it is several The combination of kind.
In the embodiment of the present invention, the pre-set verification for triggering user terminal and the foundation connection of target main sound box Information can include but is not limited to default verification password, default verification finger print information, default verification shape of face information, default verification rainbow Any one in film information, default verification retinal information and default verification voiceprint and several combinations.
In the embodiment of the present invention, above-mentioned default verification information may include that fingerprint string information and each fingerprint correspond to Input time;So correspondingly, above-mentioned verification information is verified with pre-set for triggering user terminal and target keynote Whether the verification information that case establishes connection unanimously may comprise steps of:
Verify whether fingerprint string is identical as the fingerprint string that default verification information includes, and the input time of identical fingerprints Whether difference is respectively less than preset value, if verification fingerprint string is identical as the fingerprint string that default verification information includes, and identical finger The difference of the input time of line is respectively less than preset value, then can be consistent with default verification information with authentication information;Conversely, testing It demonstrate,proves above-mentioned verification information and default verification information is inconsistent.Wherein, by implementing the embodiment, user can be effectively prevented Terminal is operated wantonly by disabled user.
In Fig. 1, the connection of user terminal each speaker and user terminal in obtaining loudspeaker box combination is described in detail After state;It can then detect in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection;If detecting voice box group Whether there are the speaker that connection status is wired connection in conjunction, then it includes default main sound box to detect in the speaker of wired connection;If It detects in the speaker of wired connection not include default main sound box, then disconnects the connection relation for presetting main sound box and user terminal, And the selection target main sound box from the speaker that connection status is wired connection;It establishes and connects with target main sound box.Of the invention real Apply in example, user terminal can when it is the speaker of wired connection to detect default main sound box not, automatically control user terminal with it is pre- If main sound box disconnects relationship, and the selection target main sound box from the speaker of wired connection, and establishes and connect with target main sound box It connects, so as to promote the success rate of loudspeaker box combination normal play data resource.
Referring to Fig. 2, Fig. 2 is the flow diagram of another speaker management method disclosed by the embodiments of the present invention.Such as Fig. 2 Shown, which may comprise steps of:
S201, the second test instruction is sent to each speaker in loudspeaker box combination.
S202, for each speaker in loudspeaker box combination, obtain from the delivery time of the second test instruction to receiving sound Case returns to the interval duration of the time of reception of the second test instruction response message.
S203, according to interval duration, obtain loudspeaker box combination in each speaker and user terminal connection status, connect shape State includes wired connection and one kind in wireless connection.
In the embodiment of the present invention, sending the second test instruction to after each speaker in loudspeaker box combination, then it can be with For each speaker in loudspeaker box combination, obtains from the delivery time of the second test instruction and return to the second test to speaker is received Instruct the interval duration of the time of reception of response message;And according to interval duration, each speaker and use in loudspeaker box combination are obtained The connection status of family terminal.
With the presence or absence of the speaker that connection status is wired connection in S204, detection loudspeaker box combination.
If S205, detecting in loudspeaker box combination there are the speaker that connection status is wired connection, wired connection is detected Whether include default main sound box in speaker.
If S206, detecting in the speaker of wired connection not include default main sound box, disconnects and preset main sound box and user The connection relation of terminal, and the selection target main sound box from the speaker that connection status is wired connection.
In the embodiment of the present invention, there are when the speaker that connection status is wired connection, then used in detecting loudspeaker box combination Whether it includes default main sound box that family terminal can also detect in the speaker of wired connection.If detecting in the speaker of wired connection not Including presetting main sound box, then illustrate that presetting main sound box is attached by being wirelessly connected with user terminal, then it can be from even Connect selection target main sound box in the speaker that state is wired connection.
As an alternative embodiment, from connection status be wired connection speaker in selection target main sound box tool Body embodiment includes the following steps:
21) speaker that connection status is wired connection is formed into the combination of target sound case;
22) the first test instruction is sent to each speaker in target loudspeaker box combination;
23) each speaker being directed in target loudspeaker box combination obtains the delivery time from the first test instruction to receiving Speaker returns to the interval duration of the time of reception of the first test instruction response message;
24) the selection interval shortest speaker of duration is set as target main sound box from target loudspeaker box combination.
In the embodiment of the present invention, in detecting loudspeaker box combination there are the speaker of wired connection after, then can will be wired The speaker composition target sound case combination of connection, in subsequently selected target main sound box, then can go to select from target loudspeaker box combination It takes.
In the embodiment of the present invention, after sending the first test instruction to each speaker in loudspeaker box combination, user is whole End can also obtain each speaker from first test instruction delivery time to receive from speaker return first test instruction ring Answer the interval duration of the time of reception of message.
In the embodiment of the present invention, for each speaker in target loudspeaker box combination, obtaining from the first test instruction After delivery time to the interval duration for receiving the time of reception that speaker returns to the first test instruction response message, then it can determine In target loudspeaker box combination the first test instruction response message is returned to from the delivery time of the first test instruction to speaker is received The shortest speaker of interval duration of the time of reception, and set the speaker to target main sound box.
In the embodiment of the present invention, target main sound box is mainly used for the speaker carried out data transmission with user terminal.
As another optional embodiment, step 24) selects the interval shortest sound of duration from target loudspeaker box combination The specific implementation mode that case is set as target main sound box may comprise steps of:
31) it detects in target loudspeaker box combination with the presence or absence of identical at least two speaker of interval duration;
There is identical at least two speaker of interval duration if 32) detect in target loudspeaker box combination, detects at least two Whether the corresponding interval duration of a speaker is shortest interval duration in target loudspeaker box combination;
If 33) detect when the corresponding interval of at least two speakers shortest interval duration in a length of target sound case combination, Target main sound box is then chosen from least two speakers.
In the embodiment of the present invention, exist in detecting target loudspeaker box combination identical at least two speaker of interval duration it Afterwards, then while can further detecting at least two speakers corresponding interval duration whether be in target loudspeaker box combination shortest interval if It is long.Also can the corresponding interval duration of further at least two speaker whether be that each speaker corresponds in target loudspeaker box combination Interval duration in shortest interval duration.If detecting when the corresponding interval of at least two speakers in a length of target sound case combination Shortest interval duration can then go to choose target main sound box from above-mentioned at least two speaker.
In the embodiment of the present invention, if detecting most short in a length of target sound case combination when the corresponding interval of at least two speakers Interval duration, then user terminal can further obtain the physical address of each speaker in above-mentioned at least two speaker, and The speaker of physical address minimum is chosen from above-mentioned at least two speaker as above-mentioned target main sound box.
In the embodiment of the present invention, if detecting most short in a length of target sound case combination when the corresponding interval of at least two speakers Interval duration, user terminal can further obtain the facility information (sound of each speaker in above-mentioned at least two speaker The information such as the corresponding function of box number, speaker), and according to the facility information of each speaker got from above-mentioned at least two Target main sound box is obtained in speaker.
As another optional embodiment, if detecting, the speaker of wired connection includes default main sound box, is said Bright default main sound box is to carry out wired connection with user terminal.Then following steps can also be performed in user terminal:
41) third test instruction is sent to each speaker in the speaker of wired connection;
42) each speaker being directed in the speaker of wired connection is obtained from the delivery time of third test instruction to receipts The interval duration of the time of reception of third test instruction response message is returned to speaker;
43) difference of most short interval duration in the speaker for presetting the corresponding interval duration of main sound box and wired connection is obtained;
44) whether detection difference is more than preset time threshold;
If 45) detect, difference is more than preset time threshold, disconnects the connection relation for presetting main sound box and user terminal, And using the corresponding speaker of most short interval duration in the speaker of wired connection as target main sound box.
In the embodiment of the present invention, includes default main sound box in the speaker for detecting wired connection, then illustrate to preset keynote The connection type of case and user terminal is wired connection.Then user terminal can send third test instruction to the sound of wired connection Each speaker in case;And for each speaker in the speaker of wired connection, obtain from when the transmission of third test instruction It carves to the interval duration for the time of reception for receiving speaker return third test instruction response message.
In the embodiment of the present invention, the first test of difference instruction, the second test instruction and third test instruction are paid attention to.Its In, the first test instruction, the second test instruction and third test instruction can be sent in different moments by user terminal Test instruction.That is, the instruction format of the first test instruction, the second test instruction and third test instruction can be identical, but It is that delivery time is different.
In the embodiment of the present invention, refer to speaker return third test is received obtaining the delivery time from third test instruction After the interval duration for enabling the time of reception of response message, then it can continue to obtain the corresponding interval duration of default main sound box and have Except the difference of the corresponding interval duration of each speaker of default main sound box in the speaker of line connection;And it detects and presets main sound box pair Whether the difference for the interval duration interval duration corresponding with each speaker answered is more than preset time threshold;If detecting default When the difference of the corresponding interval duration of main sound box interval duration corresponding with each speaker is more than preset time threshold, then disconnect The connection relation of default main sound box and user terminal, and the selection target from the speaker that the speaker of wired connection removes default main sound box Main sound box.For example, if when corresponding interval when default main sound box corresponding interval a length of 0.001ms, speaker A is a length of 0.002ms.A length of 0.003ms when the corresponding interval a length of 0.0005ms when the corresponding intervals speaker B, speaker C.Then B pairs of speaker It is a length of most short when the interval answered, then it can be by speaker B alternately main sound boxs;Due to the corresponding interval durations of speaker B and preset The difference of the corresponding interval duration of main sound box is 0.0005ms;If preset time threshold is 0.0002, can disconnect default The connection relation of main sound box and user terminal, and set speaker B to target main sound box.
In the embodiment of the present invention, preset time threshold can be that user sets as needed, can also be user's end End is set according to the history of user setting record, can also be that user terminal tests the delivery time of instruction extremely according to third The interval duration of the time of reception of speaker return third test instruction response message is received to set;The present invention is not construed as limiting.
S207, connection is established with target main sound box.
In fig. 2, user terminal is described in detail when choosing target main sound box, can in the speaker of wired connection into Row is chosen, and the delivery time that the first test instruction should be chosen in the speaker of wired connection returns to the first test to speaker is received Instruct the shortest speaker of interval duration of the time of reception of response message as target main sound box.It can be seen that implementing the present invention Embodiment, it is most stable to choose transmission when choosing target main sound box, and transmit several times most fast speaker as target keynote Case, to which the success rate of loudspeaker box combination normal play data resource can also be promoted.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention, for executing State speaker management method.Wherein, user terminal shown in Fig. 3 can include but is not limited to smart mobile phone (such as Android phone, IOS mobile phones etc.), tablet computer, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD etc. has the user terminal for accessing external network data resource.As shown in figure 3, the user terminal may include:Acquiring unit 301, detection unit 302, control unit 303, selecting unit 304 and unit 305 is established, wherein
Acquiring unit 301, the connection status for obtaining each speaker and user terminal in loudspeaker box combination, connection status Including wired connection and one kind in wireless connection.
In the embodiment of the present invention, loudspeaker box combination is made of at least two speakers, wherein there are one in loudspeaker box combination Speaker is directly to carry out data connection, referred to as main sound box with user terminal, other do not establish data connection with user terminal Speaker is referred to as from speaker.User terminal can control the loudspeaker box combination by controlling main sound box.Wherein, main sound box and user are whole Data connection is established at end, is primarily referred to as and is mounted with the data connection that the application user terminal of control speaker is established.
In the embodiment of the present invention, acquiring unit 301 obtains the connection shape of each speaker and user terminal in loudspeaker box combination State is mainly the connection status and all connection status from speaker for including default main sound box in acquisition loudspeaker box combination.Wherein, even The state of connecing includes wired connection and wireless connection.Wired connection refers to being attached by physical transfer data line, is wirelessly connected It may include then the connection by transmission channel such as Bluetooth transmission, low-power consumption bluetooth transmission and wireless network transmissions.
Detection unit 302, for detecting in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection.
In the embodiment of the present invention, the company of each speaker and user terminal in acquiring unit 301 obtains loudspeaker box combination After connecing state, then detection unit 302 can detect in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection.
It may be zero, sound that connection status, which is the quantity of the speaker of wired connection, in the embodiment of the present invention, in loudspeaker box combination It may also be one that connection status, which is the quantity of the speaker of wired connection, in case combination;Connection status is wired company in loudspeaker box combination The quantity of the speaker connect is also possible to be at least two.The quantity for being directed to the speaker of wired connection in loudspeaker box combination is different, uses Family terminal is in subsequent processing mode difference.Specifically, when in loudspeaker box combination connection status be wired connection speaker quantity For zero when, then user terminal can be by sending test instruction to each speaker in loudspeaker box combination, and according to each Speaker chooses target main sound box for the feedback duration of test instruction.Connection status is the speaker of wired connection in loudspeaker box combination Quantity be one when, then the only one speaker of the wired connection can be chosen for target main sound box.When connecting in loudspeaker box combination The state of connecing is the quantity of the speaker of wired connection when being at least two, then can send test instruction to the sound of above-mentioned wired connection Each speaker in case, and target main sound box is chosen for the feedback duration of test instruction according to each speaker.
Above-mentioned detection unit 302, if being additionally operable to detect in loudspeaker box combination there are the speaker that connection status is wired connection, Whether then detect in the speaker of wired connection includes default main sound box.
In the embodiment of the present invention, default main sound box can be the speaker of physical address minimum in entire loudspeaker box combination.
There are connection status it is wired connection in detection unit 302 detects loudspeaker box combination in the embodiment of the present invention After speaker, then whether it includes default main sound box that detection unit 302 can detect in the speaker of wired connection.
Control unit 303, if in detecting the speaker of wired connection for detection unit 302 not including default main sound box, It then controls default main sound box and disconnects relationship with user terminal.
Selecting unit 304, for the selection target main sound box from the speaker that connection status is wired connection.
In the embodiment of the present invention, when establishing wired connection with user terminal due to speaker, during carrying out data outflow, Can be more stable, it is safer, it is more reliable.Therefore, do not include default master in the speaker that detection unit 302 detects wired connection Speaker then illustrates that it is not to carry out wired connection to preset main sound box with user terminal, then control unit 303 can control default keynote Case disconnects relationship with user terminal;Selecting unit 304 and the selection target master from the speaker that connection status is wired connection Speaker.
Unit 305 is established, is connected for being established with target main sound box.
In the embodiment of the present invention, selecting unit 304 from connection status be wired connection speaker in selection target keynote After case, then establishing unit 305 can establish a connection with target main sound box.
Specifically, it establishes unit 305 to establish a connection with target main sound box, may comprise steps of:
11) establish unit 305 receive user's operation target button triggered establish link order;
12) it establishes the response of unit 305 and establishes link order, export the prompt message for prompting validation information;
13) verification information that unit 305 receives response prompt information input is established;
14) establish unit 305 and send verification information to target main sound box so that target main sound box authentication information with it is pre- What is be first arranged establishes whether the verification information connected matches for triggering user terminal with target main sound box;
If 15) receive the prompt message for prompting successful match of main sound box transmission, unit 305 and target are established Main sound box establishes a connection.
In the embodiment of the present invention, refer to establishing unit 305 and receiving the foundation that user's operation target button is triggered and connect After order, prompt message of the unit 305 by output for prompting validation information is established;And establishing unit 305 can be defeated Go out the verification information input port for validation information.
In the embodiment of the present invention, prompt message can include but is not limited to voice prompt, text prompt, flashing indicating and One or more combinations in vibration prompting.
In the embodiment of the present invention, which may include but be not limited to password to be verified, finger print information to be verified, to be tested Demonstrate,prove in shape of face information, iris information to be verified, retinal information to be verified and voiceprint to be verified any one or it is several The combination of kind.
In the embodiment of the present invention, the pre-set verification for triggering user terminal and the foundation connection of target main sound box Information can include but is not limited to default verification password, default verification finger print information, default verification shape of face information, default verification rainbow Any one in film information, default verification retinal information and default verification voiceprint and several combinations.
In the embodiment of the present invention, above-mentioned default verification information may include that fingerprint string information and each fingerprint correspond to Input time;So correspondingly, above-mentioned verification information is verified with pre-set for triggering user terminal and target keynote Whether the verification information that case establishes connection unanimously may comprise steps of:
Verify whether fingerprint string is identical as the fingerprint string that default verification information includes, and the input time of identical fingerprints Whether difference is respectively less than preset value, if verification fingerprint string is identical as the fingerprint string that default verification information includes, and identical finger The difference of the input time of line is respectively less than preset value, then can be consistent with default verification information with authentication information;Conversely, testing It demonstrate,proves above-mentioned verification information and default verification information is inconsistent.Wherein, by implementing the embodiment, user can be effectively prevented Terminal is operated wantonly by disabled user.
In figure 3, the company that each speaker and user terminal in loudspeaker box combination are obtained in acquiring unit 301 is described in detail After connecing state;Then detection unit 302 can detect in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection;If Detection unit 302 detects the speaker there are connection status for wired connection in loudspeaker box combination, then detection unit 302 detects wired Whether include default main sound box in the speaker of connection;If it does not include default that detection unit 302, which detects in the speaker of wired connection, Main sound box, the then control of control unit 303 preset main sound box and user terminal and disconnect relationship, selecting unit 304 and from connection State is selection target main sound box in the speaker of wired connection;It establishes unit 305 and establishes connection with target main sound box.In the present invention In embodiment, control unit 303 can automatically control user terminal when it is the speaker of wired connection to detect default main sound box not Relationship, selecting unit 304 and the selection target main sound box from the speaker of wired connection are disconnected with default main sound box, is established single Member 305 simultaneously establishes connection with target main sound box, so as to promote the success rate of loudspeaker box combination normal play data resource.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention, for executing Above-mentioned speaker management method.Wherein, Fig. 4 is that further refinement obtains on the basis of Fig. 3, and it includes all lists shown in Fig. 3 to remove It is first outer, can also include:Transmission unit 306, wherein
Transmission unit 306, if detecting that the speaker of wired connection includes default main sound box for detection unit 302, Third test instruction is sent to each speaker in the speaker of wired connection.
In the embodiment of the present invention, acquiring unit 301 is additionally operable to each speaker in the speaker for wired connection, obtains When from the delivery time of third test instruction to the interval for receiving the time of reception that speaker returns to third test instruction response message It is long.
In the embodiment of the present invention, acquiring unit 301 is additionally operable to obtain the corresponding interval duration of default main sound box and wired company The difference of most short interval duration in the speaker connect.
In the embodiment of the present invention, detection unit 302 is additionally operable to whether detection difference is more than preset time threshold.
In the embodiment of the present invention, if control unit 303 is additionally operable to detection unit 302 when detecting whether difference is more than default Between threshold value when, then control and preset main sound box and user terminal and disconnect relationship.
In the embodiment of the present invention, it is corresponding that selecting unit 304 is additionally operable in the speaker by wired connection most short interval duration Speaker is as target main sound box.
As an alternative embodiment, selecting unit 304 may further include:Comprising modules 3040, first are sent out Send module 3041, the first acquisition module 3042 and selecting module 3043, wherein
Comprising modules 3040, for the speaker that connection status is wired connection to be formed the combination of target sound case.
First sending module 3041, for sending the first test instruction to each speaker in target loudspeaker box combination.
First acquisition module 3042, for for each speaker in target loudspeaker box combination, obtaining and referring to from the first test The delivery time of order returns to the interval duration that the first test instructs the time of reception of response message to speaker is received.
Selecting module 3043, for selecting the interval shortest speaker of duration to be set as target keynote from target loudspeaker box combination Case.
As another optional embodiment, acquiring unit 301 may further include:Second sending module 3010 with And second acquisition module 3011, wherein
Second sending module 3010, for sending the second test instruction to each speaker in loudspeaker box combination.
Second acquisition module 3011, for for each speaker in loudspeaker box combination, obtaining from the second test instruction Delivery time returns to the interval duration that the second test instructs the time of reception of response message to speaker is received.
Above-mentioned second acquisition module 3011 is additionally operable to obtain each speaker and user in loudspeaker box combination according to interval duration The connection status of terminal.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention, for executing Above-mentioned speaker management method.As shown in figure 5, the user terminal 500 may include:At least one processor 501, it is at least one defeated Enter the components such as device 502, at least one output device 503, memory 504.Wherein, these components pass through one or more bus 505 are communicatively coupled.It will be understood by those skilled in the art that the structure of user terminal shown in Fig. 5 is not constituted to this The restriction of inventive embodiments, it, either busbar network, can also be hub-and-spoke configuration, can also include than illustrate it is more or Less component either combines certain components or different components arrangement.Wherein:
Processor 501 is the control centre of user terminal, utilizes each of various interfaces and the entire user terminal of connection A part by running or execute the program and/or module that are stored in memory 504, and calls and is stored in memory 504 Interior data, to execute the various functions and processing data of user terminal.Processor 501 can be by integrated circuit (Integrated Circuit, abbreviation IC) is formed, such as the IC that can be encapsulated by single is formed, can also be by more of connection The encapsulation IC of identical function or different function and form.For example, processor 501 can only include central processing unit (Central Processing Unit, abbreviation CPU) can also be CPU, digital signal processor (digital signal Processor, abbreviation DSP), graphics processor (Graphic Processing Unit, abbreviation GPU) and various control chips Combination.In embodiments of the present invention, CPU can be single operation core, can also include multioperation core.
Input unit 502 may include the touch screen of standard, keyboard etc., can also include wireline interface, wireless interface etc..
Output device 503 may include display screen, loud speaker etc., can also include wireline interface, wireless interface etc..
Memory 504 can be used for storing software program and module, processor 501, input unit 502 and output device 503 by calling the software program and module that are stored in memory 504, to execute the various functions application of user terminal And realize data processing.Memory 504 includes mainly program storage area and data storage area, wherein program storage area can be deposited Store up the application program etc. needed for operating system, at least one function;Data storage area can be stored uses institute according to user terminal The data etc. of establishment.In embodiments of the present invention, operating system can be android system, iOS system or Windows operations System etc..
Specifically, processor 501 calls the application program being stored in memory 504, for performing the following operations:
Processor 501 obtains the connection status of each speaker and user terminal in loudspeaker box combination, and connection status includes Line connects and one kind in wireless connection;
Processor 501 detects in loudspeaker box combination with the presence or absence of the speaker that connection status is wired connection;
If processor 501 detects in loudspeaker box combination there are the speaker that connection status is wired connection, wired company is detected Whether include default main sound box in the speaker connect;
If it does not include default main sound box that processor 501, which detects in the speaker of wired connection, disconnect preset main sound box with The connection relation of user terminal, and the selection target main sound box from the speaker that connection status is wired connection;
Processor 501 controls 503 target main sound box of output device and establishes connection.
In the present invention, processor 501 calls the application program being stored in memory 504, executes step from connection status For selection target main sound box in the speaker of wired connection, including:
The speaker that connection status is wired connection is formed the combination of target sound case by processor 501;
Processor 501 controls output device 503 and sends the first test instruction to each speaker in target loudspeaker box combination;
For each speaker in target loudspeaker box combination, processor 501 obtains the delivery time from the first test instruction The interval duration that the first test instructs the time of reception of response message is returned to speaker is received;
Processor 501 selects the interval shortest speaker of duration to be set as target main sound box from target loudspeaker box combination.
In the present invention, processor 501, which calls, is stored in application program in memory 504, execute step processor 501 from The selection interval shortest speaker of duration is set as target main sound box in target loudspeaker box combination, including:
Processor 501 detects in target loudspeaker box combination with the presence or absence of identical at least two speaker of interval duration;
If processor 501, which detects in target loudspeaker box combination, has identical at least two speaker of interval duration, detect Whether the corresponding interval duration of at least two speakers is shortest interval duration in target loudspeaker box combination;
If processor 501 detects when the corresponding interval of at least two speakers shortest interval in a length of target sound case combination Duration then chooses target main sound box from least two speakers.
In the present invention, processor 501 calls the application program being stored in memory 504, executes step and obtains voice box group The connection status of each speaker and user terminal in conjunction, including:
Processor 501 controls output device 503 and sends the second test instruction to each speaker in loudspeaker box combination;
For each speaker in loudspeaker box combination, processor 501 is obtained from the delivery time of the second test instruction to receipts The interval duration of the time of reception of the second test instruction response message is returned to speaker;
Processor 501 obtains the connection status of each speaker and user terminal in loudspeaker box combination according to interval duration.
In the present invention, processor 501 calls the application program being stored in memory 504, and following steps can also be performed:
If processor 501 detects that the speaker of wired connection includes default main sound box, the control output dress of processor 501 503 transmission thirds test instruction is set to each speaker in the speaker of wired connection;
For each speaker in the speaker of wired connection, processor 501 is obtained from when the transmission of third test instruction It carves to the interval duration for the time of reception for receiving speaker return third test instruction response message;
Processor 501 obtains most short interval duration in the speaker for presetting the corresponding interval duration of main sound box and wired connection Difference;
Processor 501 detects whether difference is more than preset time threshold;
If processor 501 detect difference be more than the preset time threshold, disconnect the default main sound box with it is described The connection relation of user terminal, and using the corresponding speaker of most short interval duration in the speaker of wired connection as the target keynote Case.
Specifically, the user terminal introduced in the embodiment of the present invention, which can implement the present invention, combines Fig. 1, Fig. 2 or Fig. 3 introduction Speaker management method embodiment in some or all of flow.
Module in all embodiments of the invention or submodule can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application-specific integrated circuit) it realizes.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in user terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (12)

1. a kind of speaker management method, which is characterized in that including:
User terminal obtains the connection status of each speaker and the user terminal in loudspeaker box combination, and the connection status includes Wired connection and one kind in wireless connection;
The user terminal detects in the loudspeaker box combination with the presence or absence of the speaker that the connection status is the wired connection;
If the user terminal detects the speaker there are the connection status for the wired connection in the loudspeaker box combination, Whether detect in the speaker of the wired connection includes default main sound box;
If it does not include the default main sound box that the user terminal, which detects in the speaker of the wired connection, disconnect described pre- If the connection relation of main sound box and the user terminal, and select mesh from the speaker that the connection status is the wired connection Mark main sound box;
The user terminal is established with the target main sound box and is connected.
2. according to the method described in claim 1, it is characterized in that, described from the sound that the connection status is the wired connection Selection target main sound box in case, including:
The speaker that the connection status is the wired connection is formed into the combination of target sound case;
The first test instruction is sent to each speaker in the target loudspeaker box combination;
For each speaker in the target loudspeaker box combination, obtain from the delivery time of the first test instruction to receiving The speaker returns to the interval duration of the time of reception of the first test instruction response message;
The shortest speaker of the interval duration is selected to be set as target main sound box from the target loudspeaker box combination.
3. according to the method described in claim 2, it is characterized in that, described select the interval from the target loudspeaker box combination The shortest speaker of duration is set as target main sound box, including:
It detects and whether there is identical at least two speaker of the interval duration in the target loudspeaker box combination;
If detecting in the target loudspeaker box combination there are identical at least two speaker of the interval duration, described in detection extremely Whether few corresponding interval duration of two speakers is shortest interval duration in the target loudspeaker box combination;
If detecting when the corresponding interval of at least two speaker shortest interval duration in a length of target loudspeaker box combination, Target main sound box is then chosen from least two speaker.
4. according to the method described in claim 1, it is characterized in that, each speaker and user are whole in the acquisition loudspeaker box combination The connection status at end, including:
The second test instruction is sent to each speaker in the loudspeaker box combination;
For each speaker in the loudspeaker box combination, it is described to receiving to obtain the delivery time instructed from second test Speaker returns to the interval duration of the time of reception of the second test instruction response message;
According to the interval duration, the connection status of each speaker and user terminal in the loudspeaker box combination is obtained.
5. the method according to any one of Claims 1 to 4, which is characterized in that the method further includes:
If the user terminal detects that the speaker of the wired connection includes the default main sound box, third test is sent It instructs to each speaker in the speaker of the wired connection;
The user terminal is obtained for each speaker in the speaker of the wired connection from third test instruction Delivery time returns to the interval duration that third test instructs the time of reception of response message to the speaker is received;
The user terminal obtain it is most short in the corresponding interval duration of the default main sound box and the speaker of the wired connection between Every the difference of duration;
The user terminal detects whether the difference is more than preset time threshold;
If the user terminal detects that the difference is more than the preset time threshold, the default main sound box and institute are disconnected The connection relation of user terminal is stated, and using the corresponding speaker of most short interval duration in the speaker of the wired connection as the mesh Mark main sound box.
6. a kind of user terminal, which is characterized in that including:
Acquiring unit, the connection status for obtaining each speaker and user terminal in loudspeaker box combination, the connection status packet One kind in including wired connection and being wirelessly connected;
Detection unit, for detecting in the loudspeaker box combination with the presence or absence of the speaker that the connection status is the wired connection;
The detection unit, if being additionally operable to detect in the loudspeaker box combination, there are the connection status be the wired connection Whether speaker, then it includes default main sound box to detect in the speaker of the wired connection;
Control unit, if in detecting the speaker of the wired connection for the detection unit not including the default keynote Case then controls the default main sound box and disconnects relationship with the user terminal;
Selecting unit, for the selection target main sound box from the speaker that the connection status is the wired connection;
Unit is established, is connected for being established with the target main sound box.
7. user terminal according to claim 6, which is characterized in that the selecting unit includes:
Comprising modules, for the speaker that the connection status is the wired connection to be formed the combination of target sound case;
First sending module, for sending the first test instruction to each speaker in the target loudspeaker box combination;
First acquisition module refers to for for each speaker in the target loudspeaker box combination, obtaining from first test The delivery time of order returns to the interval duration that the first test instructs the time of reception of response message to the speaker is received;
Selecting module, for selecting the shortest speaker of the interval duration to be set as target keynote from the target loudspeaker box combination Case.
8. user terminal according to claim 7, which is characterized in that the selecting module is from the target loudspeaker box combination Select the interval shortest speaker of duration be set as the specific implementation mode of target main sound box for:The selecting module detects institute It states and whether there is identical at least two speaker of the interval duration in target loudspeaker box combination;If detecting the target voice box group There are identical at least two speaker of the interval duration in conjunction, then the selecting module detects at least two speaker and corresponds to Interval duration whether be shortest interval duration in the target loudspeaker box combination;If detecting, at least two speaker corresponds to Interval when a length of target loudspeaker box combination in shortest interval duration, then the selecting module is from least two speaker Middle selection target main sound box.
9. user terminal according to claim 6, which is characterized in that the acquiring unit includes:
Second sending module, for sending the second test instruction to each speaker in the loudspeaker box combination;
Second acquisition module, for for each speaker in the loudspeaker box combination, obtaining from the second test instruction Delivery time returns to the interval duration that the second test instructs the time of reception of response message to the speaker is received;
Second acquisition module is additionally operable to, according to the interval duration, obtain each speaker and use in the loudspeaker box combination The connection status of family terminal.
10. the user terminal according to any one of claim 6~9, which is characterized in that the user terminal also wraps It includes:
Transmission unit, if detecting that the speaker of the wired connection includes the default main sound box for the detection unit, Third test instruction is then sent to each speaker in the speaker of the wired connection;
The acquiring unit, each speaker being additionally operable in the speaker for the wired connection, obtains and is surveyed from the third The delivery time for trying instruction returns to the interval duration that third test instructs the time of reception of response message to the speaker is received;
The acquiring unit is additionally operable to obtain in the corresponding interval duration of the default main sound box and the speaker of the wired connection The difference of most short interval duration;
The detection unit is additionally operable to detect whether the difference is more than preset time threshold;
Described control unit, if be additionally operable to the detection unit detect the difference whether be more than preset time threshold when, It controls the default main sound box and disconnects relationship with the user terminal;
The selecting unit is additionally operable to using the corresponding speaker of most short interval duration in the speaker of the wired connection as the mesh Mark main sound box.
11. a kind of computer read/write memory medium, which is characterized in that the computer read/write memory medium is stored with calculating Machine program, the computer program is for instructing relevant hardware, to complete the method described in claim 1 to 5 any one.
12. a kind of user terminal, which is characterized in that including:It is at least one processor, at least one input unit, at least one Output device and memory, wherein these components are communicatively coupled by one or more bus;
Wherein, processor calls application program stored in memory, and 1 to 5 any one institute is required for perform claim The method stated.
CN201510745375.5A 2015-11-04 2015-11-04 A kind of speaker management method and user terminal Active CN105392087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510745375.5A CN105392087B (en) 2015-11-04 2015-11-04 A kind of speaker management method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510745375.5A CN105392087B (en) 2015-11-04 2015-11-04 A kind of speaker management method and user terminal

Publications (2)

Publication Number Publication Date
CN105392087A CN105392087A (en) 2016-03-09
CN105392087B true CN105392087B (en) 2018-09-04

Family

ID=55423841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510745375.5A Active CN105392087B (en) 2015-11-04 2015-11-04 A kind of speaker management method and user terminal

Country Status (1)

Country Link
CN (1) CN105392087B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843582A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Control method and device for sound box of electronic equipment
CN107613424B (en) * 2017-09-25 2019-08-27 湖南国声声学科技股份有限公司 A kind of speaker control method and device
CN107517462B (en) * 2017-10-12 2020-01-21 深圳市知知品牌孵化有限公司 Multi-channel sound box control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053228A (en) * 2003-12-02 2005-06-08 엘지전자 주식회사 Voice signal output apparatus for client
CN103546697A (en) * 2013-10-12 2014-01-29 中央电视台 Peer-to-peer control playing method of star structure
CN104299632A (en) * 2014-09-23 2015-01-21 广东欧珀移动通信有限公司 Audio synchronization method and device and corresponding systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053228A (en) * 2003-12-02 2005-06-08 엘지전자 주식회사 Voice signal output apparatus for client
CN103546697A (en) * 2013-10-12 2014-01-29 中央电视台 Peer-to-peer control playing method of star structure
CN104299632A (en) * 2014-09-23 2015-01-21 广东欧珀移动通信有限公司 Audio synchronization method and device and corresponding systems

Also Published As

Publication number Publication date
CN105392087A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN105072564B (en) A kind of audio frequency playing method and device based on bluetooth connection
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN104765993B (en) A kind of method and apparatus of Anti-addiction
TWI384849B (en) Subscriber identity module card control apparatus and control method
CN104767883B (en) The method and terminal of a kind of terminal notifying
CN105072537A (en) Bluetooth connection-based audio play method and device
US20080031201A1 (en) Plug and Play Network Telephone Communication Apparatus
CN105392087B (en) A kind of speaker management method and user terminal
CN105357641B (en) A kind of location updating control method and user terminal
CN108810741A (en) A kind of method, apparatus and wireless headset of double wireless headset connections
CN105204632A (en) Method for controlling intelligent mobile terminal to enter silent mode and wearable device
CN105120062B (en) A kind of communication establishing method and mobile terminal
CN104580663A (en) Information pushing device used for mobile terminal as well as wearable device and method thereof
CN106063364A (en) Electronic device for controlling an external device using a number and method thereof
CN109362121A (en) Sharing method, device, storage medium and the terminal of WLAN
CN104158720A (en) Chatting record clearing method and system, and mobile terminal
CN104880968B (en) The control method and equipment of a kind of alarm clock
CN105307078B (en) A kind of speaker management method and user terminal
CN104821985B (en) A kind of call control method and device
CN105764136B (en) A kind of localization method and user terminal
CN107193662A (en) A kind of information synchronization method and mobile terminal based on dual system
CN106445479A (en) Information pushing method and apparatus
CN108449787A (en) Connect control method, device and electronic equipment
CN104754539B (en) A kind of method and terminal that the duration of call calculates
CN106658457A (en) Reminding method of flow shared by hotspot and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.