CN105392087A - Loudspeaker box management method and user terminal - Google Patents

Loudspeaker box management method and user terminal Download PDF

Info

Publication number
CN105392087A
CN105392087A CN201510745375.5A CN201510745375A CN105392087A CN 105392087 A CN105392087 A CN 105392087A CN 201510745375 A CN201510745375 A CN 201510745375A CN 105392087 A CN105392087 A CN 105392087A
Authority
CN
China
Prior art keywords
audio amplifier
main sound
wired connection
loudspeaker box
sound box
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.)
Granted
Application number
CN201510745375.5A
Other languages
Chinese (zh)
Other versions
CN105392087B (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 loudspeaker box management method and a user terminal. The method comprises: a user terminal obtains a connecting state of each loudspeaker box in a loudspeaker box combination unit with the user terminal; whether connecting states of loudspeaker boxes in the loudspeaker box combination unit are wired connecting states is detected; if so, whether the loudspeaker boxes in wired connection contain a preset main loudspeaker box is detected; if not, a connection relation between the preset main loudspeaker box and the user terminal is cut off and a target main loudspeaker box is selected from the loudspeaker boxes in wired connection; and connection with the target main loudspeaker is established. According to the embodiment of the invention, a success rate of playing data resources normally by the loudspeaker box combination unit is improved.

Description

A kind of audio amplifier management method and user terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of audio amplifier management method and user terminal.
Background technology
Along with the fast development of electronic technology and the universal rapidly of terminal, the function of terminal is day by day perfect.For audio amplifier, owing to being integrated with processor and network interface in audio amplifier, then user can utilize audio amplifier to access external network data resource.In actual applications, user controls audio amplifier by control terminal (as the terminal such as mobile phone or panel computer), to realize the function of audio amplifier access external network data resource.Particularly, terminal is installed the application program for controlling audio amplifier, then control audio amplifier by the application program controlled in this terminal obtain data resource from outer data network, and the data resource got is play.In order to make result of broadcast better, generally that multiple audio amplifier is combined, and in loudspeaker box combination, select an audio amplifier to establish a connection as main sound box and the terminal of having installed above-mentioned application program, terminal only need control main sound box can control whole loudspeaker box combination, and other audio amplifier all needs to carry out transfer message by main sound box.But if the annexation set up of main sound box and user terminal is unstable, then main sound box well can not receive the data resource that user terminal sends, then whole loudspeaker box combination may be caused all cannot normally to use, thus cause cannot normal play data resource.
Summary of the invention
Embodiments provide a kind of audio amplifier management method and user terminal, the success rate of loudspeaker box combination normal play data resource can be promoted.
First aspect, the embodiment of the invention discloses a kind of audio amplifier management method, comprising:
Obtain the connection status of each audio amplifier and user terminal in loudspeaker box combination, described connection status comprises the one in wired connection and wireless connections;
Detect in described loudspeaker box combination and whether there is the audio amplifier that described connection status is described wired connection;
If detect in described loudspeaker box combination to there is the audio amplifier that described connection status is described wired connection, then detect in the audio amplifier of described wired connection whether comprise default main sound box;
If detect in the audio amplifier of described wired connection and do not comprise described default main sound box, then disconnect the annexation of described default main sound box and described user terminal, and be select target main sound box the audio amplifier of described wired connection from described connection status;
Connect with described target main sound box.
In conjunction with the implementation of first aspect, in the first possible implementation of first aspect, described is select target main sound box the audio amplifier of described wired connection from described connection status, comprising:
It is the audio amplifier composition target loudspeaker box combination of described wired connection by described connection status;
Send each audio amplifier in the first test instruction to described target loudspeaker box combination;
For each audio amplifier in described target loudspeaker box combination, obtain from the delivery time of described first test instruction to the interval duration receiving described audio amplifier and return the time of reception of the first test instruction response message;
From described target loudspeaker box combination, select duration the shortest audio amplifier in described interval to be set to target main sound box.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the described the shortest audio amplifier of described interval duration of selecting from described target loudspeaker box combination is set to target main sound box, comprising:
Detect in described target loudspeaker box combination and whether there are at least two identical audio amplifiers of described interval duration;
If detect in described target loudspeaker box combination to there are at least two identical audio amplifiers of described interval duration, then whether the interval duration that described in detecting, at least two audio amplifiers are corresponding is interval duration the shortest in described target loudspeaker box combination;
If the interval duration that at least two audio amplifiers described in detecting are corresponding is interval duration the shortest in described target loudspeaker box combination, then from described at least two audio amplifiers, choose target main sound box.
In conjunction with the implementation of first aspect, in the third possible implementation of first aspect, the connection status of each audio amplifier and user terminal in described acquisition loudspeaker box combination, comprising:
Send each audio amplifier in the second test instruction to described loudspeaker box combination;
For each audio amplifier in described loudspeaker box combination, obtain from the delivery time of described second test instruction to the interval duration receiving described audio amplifier and return the time of reception of the second test instruction response message;
According to described interval duration, obtain the connection status of each audio amplifier and user terminal in described loudspeaker box combination.
Any one possible implementation in the implementation possible in conjunction with the second of the first possible implementation of the implementation of first aspect, first aspect, first aspect and the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, can also following steps be performed:
If detect, the audio amplifier of described wired connection comprises described default main sound box, then send each audio amplifier in the 3rd test instruction to the audio amplifier of described wired connection;
For each audio amplifier in the audio amplifier of described wired connection, obtain from the delivery time of described 3rd test instruction to the interval duration receiving described audio amplifier and return the time of reception of the 3rd test instruction response message;
Obtain the difference of the shortest interval duration in the audio amplifier of interval duration corresponding to described default main sound box and described wired connection;
Detect described difference and whether be greater than preset time threshold;
If detect, described difference is greater than described preset time threshold, then disconnect the annexation of described default main sound box and described user terminal, and using audio amplifier corresponding for the shortest interval duration in the audio amplifier of described wired connection as described target main sound box.
Second aspect, the embodiment of the invention also discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining the connection status of each audio amplifier and user terminal in loudspeaker box combination, described connection status comprises the one in wired connection and wireless connections;
Whether detecting unit, exist for detecting in described loudspeaker box combination the audio amplifier that described connection status is described wired connection;
Described detecting unit, if also there is for detecting in described loudspeaker box combination the audio amplifier that described connection status is described wired connection, then detects in the audio amplifier of described wired connection whether comprise default main sound box;
Control unit, does not comprise described default main sound box if detect for described detecting unit in the audio amplifier of described wired connection, then control described default main sound box and described user terminal disconnects relation;
Selected cell, for from described connection status be described wired connection audio amplifier in select target main sound box;
Set up unit, for connecting with described target main sound box.
In conjunction with the user terminal of second aspect, in the first possible user terminal of second aspect, described selected cell comprises:
Comprising modules, for by described connection status being the audio amplifier composition target loudspeaker box combination of described wired connection;
First sending module, for sending each audio amplifier in the first test instruction to described target loudspeaker box combination;
First acquisition module, for for each audio amplifier in described target loudspeaker box combination, obtains from the delivery time of described first test instruction to the interval duration receiving described audio amplifier and return the time of reception of the first test instruction response message;
Selecting module, being set to target main sound box for selecting duration the shortest audio amplifier in described interval from described target loudspeaker box combination.
In conjunction with the first possible user terminal of second aspect, in the user terminal that the second of second aspect is possible, the embodiment that described selection module selects duration the shortest audio amplifier in described interval to be set to target main sound box from described target loudspeaker box combination is: whether described selection module detects in described target loudspeaker box combination exists at least two identical audio amplifiers of described interval duration; If detect in described target loudspeaker box combination to there are at least two identical audio amplifiers of described interval duration, then described selection module detect described in interval duration corresponding at least two audio amplifiers whether be interval duration the shortest in described target loudspeaker box combination; If the interval duration that at least two audio amplifiers described in detecting are corresponding is interval duration the shortest in described target loudspeaker box combination, then described selection module chooses target main sound box from described at least two audio amplifiers.
In conjunction with the user terminal of second aspect, in the third possible user terminal of second aspect, described acquiring unit comprises:
Second sending module, for sending each audio amplifier in the second test instruction to described loudspeaker box combination;
Second acquisition module, for for each audio amplifier in described loudspeaker box combination, obtains from the delivery time of described second test instruction to the interval duration receiving described audio amplifier and return the time of reception of the second test instruction response message;
Described second acquisition module, also for according to described interval duration, obtains the connection status of each audio amplifier and user terminal in described loudspeaker box combination.
The user terminal possible in conjunction with the second of the first possible user terminal of the user terminal of second aspect, second aspect, second aspect and the third possible user terminal of second aspect, in the 4th kind of possible user terminal of second aspect, described user terminal also comprises:
Transmitting element, if detect that the audio amplifier of described wired connection comprises described default main sound box for described detecting unit, then sends each audio amplifier in the 3rd test instruction to the audio amplifier of described wired connection;
Described acquiring unit, also for each audio amplifier in the audio amplifier for described wired connection, obtains from the delivery time of described 3rd test instruction to the interval duration receiving described audio amplifier and return the time of reception of the 3rd test instruction response message;
Described acquiring unit, also for obtain interval duration corresponding to described default main sound box and described wired connection audio amplifier in the difference of the shortest interval duration;
Whether described detecting unit, be also greater than preset time threshold for detecting described difference;
Described control unit, if when also detecting whether described difference is greater than preset time threshold for described detecting unit, then controls described default main sound box and described user terminal disconnects relation;
Described selected cell, also for using audio amplifier corresponding for the shortest interval duration in the audio amplifier of described wired connection as described target main sound box.
In the embodiment of the present invention, user terminal is after the connection status obtaining each audio amplifier and user terminal in loudspeaker box combination, and connection status comprises the one in wired connection and wireless connections; Then can detect in loudspeaker box combination and whether there is the audio amplifier that connection status is wired connection; There is if detect in loudspeaker box combination the audio amplifier that connection status is wired connection, then detect in the audio amplifier of wired connection whether comprise default main sound box; If detect in the audio amplifier of wired connection and do not comprise default main sound box, then disconnect the annexation presetting main sound box and user terminal, and be select target main sound box the audio amplifier of wired connection from connection status; Connect with target main sound box.In embodiments of the present invention, user terminal can when detecting that default main sound box is not the audio amplifier of wired connection, automatic control user terminal and default main sound box disconnect relation, and from the audio amplifier of wired connection select target main sound box, and connect with target main sound box, thus the success rate of loudspeaker box combination normal play data resource can be promoted.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of audio amplifier management method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of audio amplifier management method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another user terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of audio amplifier management method and user terminal.In embodiments of the present invention, user terminal can when detecting that default main sound box is not the audio amplifier of wired connection, automatic control user terminal and default main sound box disconnect relation, and from the audio amplifier of wired connection select target main sound box, and connect with target main sound box, thus the success rate of loudspeaker box combination normal play data resource can be promoted.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of audio amplifier management method disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 1 goes for smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (MobileInternetDevices, MID), PAD etc. to be had in the user terminal of access external network data resource.As shown in Figure 1, this audio amplifier management method can comprise the following steps:
The connection status of each audio amplifier and user terminal in S101, acquisition loudspeaker box combination, connection status comprises the one in wired connection and wireless connections.
In the embodiment of the present invention, loudspeaker box combination is made up of at least two audio amplifiers, wherein, have in loudspeaker box combination an audio amplifier be directly and user terminal carry out data cube computation, be referred to as main sound box, other audio amplifiers not setting up data cube computation with user terminal are referred to as from audio amplifier.User terminal can control this loudspeaker box combination by controlling main sound box.Wherein, main sound box and user terminal set up data cube computation, mainly refer to and the data cube computation installed the application user terminal that controls audio amplifier and set up.
In the embodiment of the present invention, the connection status obtaining each audio amplifier and user terminal in loudspeaker box combination mainly comprises the connection status and all connection status from audio amplifier that obtain and preset main sound box in loudspeaker box combination.Wherein, connection status comprises wired connection and wireless connections.Wired connection is referred to and to be connected by physical transfer data wire, and wireless connections then can comprise the connection by transmission channel such as Bluetooth transmission, low-power consumption Bluetooth transmission and wireless network transmissions.
The audio amplifier that connection status is wired connection whether is there is in S102, detection loudspeaker box combination.
In the embodiment of the present invention, after the connection status of each audio amplifier obtained in loudspeaker box combination and user terminal, then can detect in loudspeaker box combination and whether there is the audio amplifier that connection status is wired connection.
In the embodiment of the present invention, in loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection may for zero, and in loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection also may be one; In loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection also may at least two.The quantity being directed to the audio amplifier of wired connection in loudspeaker box combination is different, and its user terminal is different in follow-up processing mode.Particularly, when the quantity that connection status in loudspeaker box combination is the audio amplifier of wired connection is zero, then user terminal by sending test instruction to each audio amplifier in loudspeaker box combination, and can choose target main sound box according to each audio amplifier for the feedback duration of test instruction.In loudspeaker box combination, connection status is the quantity of the audio amplifier of wired connection when being one, then unique audio amplifier of this wired connection can be chosen for target main sound box.When the quantity that connection status in loudspeaker box combination is the audio amplifier of wired connection is at least two, then can send test instruction to each audio amplifier in the audio amplifier of above-mentioned wired connection, and choose target main sound box according to each audio amplifier for the feedback duration of test instruction.
If S103 detects in loudspeaker box combination there is the audio amplifier that connection status is wired connection, then detect in the audio amplifier of wired connection whether comprise default main sound box.
In the embodiment of the present invention, default main sound box can be the audio amplifier that in whole loudspeaker box combination, physical address is minimum.
In the embodiment of the present invention, after detecting in loudspeaker box combination that there is connection status is the audio amplifier of wired connection, then can detect in the audio amplifier of wired connection whether comprise default main sound box.
If S104 detects in the audio amplifier of wired connection do not comprise default main sound box, then disconnect the annexation presetting main sound box and user terminal, and be select target main sound box the audio amplifier of wired connection from connection status.
In the embodiment of the present invention, due to audio amplifier and user terminal set up wired connection time, spread out of in process carrying out data, can be more stable, safer, more reliably.Therefore, in audio amplifier wired connection being detected, do not comprise default main sound box, then specification presets main sound box and user terminal is not carry out wired connection, then user terminal can control default main sound box and user terminal disconnects relation; And be select target main sound box the audio amplifier of wired connection from connection status.
S105, to connect with target main sound box.
In the embodiment of the present invention, be in the audio amplifier of wired connection after select target main sound box from connection status, then user terminal can establish a connection with target main sound box.
Particularly, establish a connection with target main sound box, can comprise the following steps:
11) instruction that connects that user operation target button triggers is received;
12) responding the instruction that connects, exporting the information for pointing out input validation information;
13) authorization information of response information input is received;
14) send authorization information to target main sound box, whether mate with the authorization information connected for activated user terminal and target main sound box pre-set to make target main sound box authentication information;
15), when if receive, main sound box sends for pointing out the information that the match is successful, establish a connection with target main sound box.
In the embodiment of the present invention, after user terminal receives the instruction that connects that user operation target button triggers, output is used for the information pointing out input validation information by user terminal; And user terminal can export the authorization information input port for input validation information.
In the embodiment of the present invention, information can include but not limited to one or more combinations in voice message, text prompt, flashing indicating and vibration prompting.
In the embodiment of the present invention, this authorization information can include but not limited to any one or a few the combination in password to be verified, finger print information to be verified, shape of face information to be verified, iris information to be verified, retinal information to be verified and voiceprint to be verified.
In the embodiment of the present invention, this authorization information connected for activated user terminal and target main sound box pre-set can include but not limited to default authentication password, preset and verify finger print information, preset shape of face information of verify, preset and verify iris information, defaultly verify retinal information and default any one and several combinations verified in voiceprint.
In the embodiment of the present invention, above-mentioned default authorization information can comprise fingerprint string information and input time corresponding to each fingerprint; So correspondingly, verify that above-mentioned authorization information can comprise the following steps with whether the authorization information connected for activated user terminal and target main sound box pre-set is consistent:
Whether checking fingerprint string is identical with the fingerprint string that default authorization information comprises, and whether the difference of the input time of identical fingerprints is all less than preset value, if checking fingerprint string is identical with the fingerprint string that default authorization information comprises, and the difference of the input time of identical fingerprints is all less than preset value, so can authentication information consistent with default authorization information; Otherwise, verify above-mentioned authorization information and default authorization information inconsistent.Wherein, by implementing this execution mode, can effectively prevent user terminal from wantonly being operated by disabled user.
In FIG, user terminal is described in detail after the connection status obtaining each audio amplifier and user terminal in loudspeaker box combination; Then can detect in loudspeaker box combination and whether there is the audio amplifier that connection status is wired connection; There is if detect in loudspeaker box combination the audio amplifier that connection status is wired connection, then detect in the audio amplifier of wired connection whether comprise default main sound box; If detect in the audio amplifier of wired connection and do not comprise default main sound box, then disconnect the annexation presetting main sound box and user terminal, and be select target main sound box the audio amplifier of wired connection from connection status; Connect with target main sound box.In embodiments of the present invention, user terminal can when detecting that default main sound box is not the audio amplifier of wired connection, automatic control user terminal and default main sound box disconnect relation, and from the audio amplifier of wired connection select target main sound box, and connect with target main sound box, thus the success rate of loudspeaker box combination normal play data resource can be promoted.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of audio amplifier management method disclosed in the embodiment of the present invention.As shown in Figure 2, this audio amplifier management method can comprise the following steps:
S201, send the second test instruction to each audio amplifier in loudspeaker box combination.
S202, for each audio amplifier in loudspeaker box combination, to obtain from the delivery time of the second test instruction to the interval duration receiving audio amplifier and return the time of reception of the second test instruction response message.
S203, according to interval duration, obtain the connection status of each audio amplifier and user terminal in loudspeaker box combination, connection status comprises the one in wired connection and wireless connections.
In the embodiment of the present invention, after transmission second test instruction to each audio amplifier in loudspeaker box combination, then can for each audio amplifier in loudspeaker box combination, obtain from the delivery time of the second test instruction to the interval duration receiving audio amplifier and return the time of reception of the second test instruction response message; And according to interval duration, obtain the connection status of each audio amplifier and user terminal in loudspeaker box combination.
The audio amplifier that connection status is wired connection whether is there is in S204, detection loudspeaker box combination.
If S205 detects in loudspeaker box combination there is the audio amplifier that connection status is wired connection, then detect in the audio amplifier of wired connection whether comprise default main sound box.
If S206 detects in the audio amplifier of wired connection do not comprise default main sound box, then disconnect the annexation presetting main sound box and user terminal, and be select target main sound box the audio amplifier of wired connection from connection status.
In the embodiment of the present invention, when detecting in loudspeaker box combination that there is connection status is the audio amplifier of wired connection, then user terminal can also detect in the audio amplifier of wired connection whether comprise default main sound box.If detect in the audio amplifier of wired connection and do not comprise default main sound box, then illustrating that presetting main sound box is connected with user terminal by wireless connections, then can be select target main sound box the audio amplifier of wired connection from connection status.
As the optional execution mode of one, the embodiment being select target main sound box the audio amplifier of wired connection from connection status comprises the following steps:
21) by connection status be the audio amplifier composition target loudspeaker box combination of wired connection;
22) the first test instruction is sent to each audio amplifier in target loudspeaker box combination;
23) for each audio amplifier in target loudspeaker box combination, obtain from the delivery time of the first test instruction to the interval duration receiving audio amplifier and return the time of reception of the first test instruction response message;
24) from target loudspeaker box combination, duration the shortest audio amplifier in interval is selected to be set to target main sound box.
In the embodiment of the present invention, after the audio amplifier that there is wired connection being detected in loudspeaker box combination, then can, by the audio amplifier of wired connection composition target loudspeaker box combination, when follow-up select target main sound box, then can go to choose from target loudspeaker box combination.
In the embodiment of the present invention, after transmission first test instruction to each audio amplifier in loudspeaker box combination, user terminal can also obtain the delivery time of each audio amplifier from the first test instruction to the interval duration receiving the time of reception returning the first test instruction response message from audio amplifier.
In the embodiment of the present invention, for each audio amplifier in target loudspeaker box combination, obtain from the delivery time of the first test instruction to after receiving audio amplifier and returning the interval duration of the time of reception of the first test instruction response message, then can determine to return the shortest audio amplifier of the interval duration of the time of reception of the first test instruction response message from the delivery time of the first test instruction to receiving audio amplifier in target loudspeaker box combination, and this audio amplifier is set to target main sound box.
In the embodiment of the present invention, target main sound box is mainly used for the audio amplifier carrying out transfer of data with user terminal.
As the optional execution mode of another kind, step 24) embodiment of selecting duration the shortest audio amplifier in interval to be set to target main sound box from target loudspeaker box combination can comprise the following steps:
31) detect in target loudspeaker box combination whether there are at least two identical audio amplifiers of interval duration;
32) there are at least two identical audio amplifiers of interval duration if detect in target loudspeaker box combination, then whether the interval duration detecting at least two audio amplifiers corresponding is interval duration the shortest in target loudspeaker box combination;
33) if detect, the interval duration that at least two audio amplifiers are corresponding is interval duration the shortest in target loudspeaker box combination, then from least two audio amplifiers, choose target main sound box.
In the embodiment of the present invention, after detecting in target loudspeaker box combination and there are at least two identical audio amplifiers of interval duration, then whether the interval duration that can detect at least two audio amplifiers further corresponding is interval duration the shortest in target loudspeaker box combination.Also can at least two audio amplifiers are corresponding further interval duration whether be namely interval duration the shortest in the interval duration that in target loudspeaker box combination, each audio amplifier is corresponding.If detect, the interval duration that at least two audio amplifiers are corresponding is interval duration the shortest in target loudspeaker box combination, then can go to choose target main sound box from above-mentioned at least two audio amplifiers.
In the embodiment of the present invention, if detect, the interval duration that at least two audio amplifiers are corresponding is interval duration the shortest in target loudspeaker box combination, then user terminal can obtain the physical address of each audio amplifier in above-mentioned at least two audio amplifiers further, and from above-mentioned at least two audio amplifiers, chooses the minimum audio amplifier of physical address as above-mentioned target main sound box.
In the embodiment of the present invention, if detect, the interval duration that at least two audio amplifiers are corresponding is interval duration the shortest in target loudspeaker box combination, user terminal can obtain the facility information (information such as function that audio amplifier model, audio amplifier are corresponding) of each audio amplifier in above-mentioned at least two audio amplifiers further, and from above-mentioned at least two audio amplifiers, obtains target main sound box according to the facility information of each audio amplifier got.
As another optional execution mode, if detect, the audio amplifier of wired connection comprises default main sound box, then specification presets main sound box and user terminal carries out wired connection.Then user terminal can also perform following steps:
41) each audio amplifier in the 3rd test instruction to the audio amplifier of wired connection is sent;
42) for each audio amplifier in the audio amplifier of wired connection, obtain from the delivery time of the 3rd test instruction to the interval duration receiving audio amplifier and return the time of reception of the 3rd test instruction response message;
43) difference of the shortest interval duration in the audio amplifier presetting interval duration corresponding to main sound box and wired connection is obtained;
44) detect difference and whether be greater than preset time threshold;
45) if detect, difference is greater than preset time threshold, then disconnect the annexation presetting main sound box and user terminal, and using audio amplifier corresponding for the shortest interval duration in the audio amplifier of wired connection as target main sound box.
In the embodiment of the present invention, detecting that the audio amplifier of wired connection comprises default main sound box, then illustrating that the connected mode presetting main sound box and user terminal is wired connection.Then user terminal can send each audio amplifier in the 3rd test instruction to the audio amplifier of wired connection; And for each audio amplifier in the audio amplifier of wired connection, obtain from the delivery time of the 3rd test instruction to the interval duration receiving audio amplifier and return the time of reception of the 3rd test instruction response message.
In the embodiment of the present invention, note difference first test instruction, the second test instruction and the 3rd test instruction.Wherein, the first test instruction, the second test instruction and the 3rd test instruction can be the test instructions do not sent in the same time by user terminal.Also namely, the command format of the first test instruction, the second test instruction and the 3rd test instruction can be identical, but delivery time is different.
In the embodiment of the present invention, obtaining from the delivery time of the 3rd test instruction to after receiving audio amplifier and returning the interval duration of the time of reception of the 3rd test instruction response message, then can continue to obtain the difference of interval duration corresponding except each audio amplifier of default main sound box in the audio amplifier of interval duration corresponding to default main sound box and wired connection; And detect the difference presetting interval duration corresponding to main sound box and interval duration corresponding to each audio amplifier and whether be greater than preset time threshold; If when detecting that the difference of the interval duration that default main sound box is corresponding and interval duration corresponding to each audio amplifier is greater than preset time threshold, then disconnect the annexation presetting main sound box and user terminal, and remove select target main sound box the audio amplifier presetting main sound box from the audio amplifier of wired connection.For example, if the interval duration presetting main sound box corresponding is 0.001ms, the interval duration that audio amplifier A is corresponding is 0.002ms.The interval duration that audio amplifier B is corresponding is 0.0005ms, and the interval duration that audio amplifier C is corresponding is 0.003ms.The interval duration that then audio amplifier B is corresponding is the shortest, then can using audio amplifier B as alternative main sound box; The difference of the interval duration corresponding due to audio amplifier B and interval duration corresponding to default main sound box is 0.0005ms; If the time threshold preset is 0.0002, then can disconnects the annexation of default main sound box and user terminal, and audio amplifier B is set to target main sound box.
In the embodiment of the present invention, preset time threshold can be that user sets as required, can also be that user terminal sets according to the history setting recording of user, can also be user terminal sets to receiving audio amplifier and returning the interval duration of the time of reception of the 3rd test instruction response message according to the delivery time of the 3rd test instruction; The present invention is not construed as limiting.
S207, to connect with target main sound box.
In fig. 2, describe user terminal in detail when choosing target main sound box, can choose in the audio amplifier of wired connection, and the delivery time should choosing the first test instruction in the audio amplifier of wired connection returns the shortest audio amplifier of the interval duration of the time of reception of the first test instruction response message as target main sound box to receiving audio amplifier.As can be seen here, implementing the embodiment of the present invention, transmission can be chosen when choosing target main sound box the most stable, and transmit audio amplifier the fastest several times as target main sound box, thus also can promote the success rate of loudspeaker box combination normal play data resource.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention, for performing above-mentioned audio amplifier management method.Wherein, user terminal shown in Fig. 3 can include but not limited to that smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (MobileInternetDevices, MID), PAD etc. have the user terminal of access external network data resource.As shown in Figure 3, this user terminal can comprise: acquiring unit 301, detecting unit 302, control unit 303, selected cell 304 and set up unit 305, wherein,
Acquiring unit 301, for obtaining the connection status of each audio amplifier and user terminal in loudspeaker box combination, connection status comprises the one in wired connection and wireless connections.
In the embodiment of the present invention, loudspeaker box combination is made up of at least two audio amplifiers, wherein, have in loudspeaker box combination an audio amplifier be directly and user terminal carry out data cube computation, be referred to as main sound box, other audio amplifiers not setting up data cube computation with user terminal are referred to as from audio amplifier.User terminal can control this loudspeaker box combination by controlling main sound box.Wherein, main sound box and user terminal set up data cube computation, mainly refer to and the data cube computation installed the application user terminal that controls audio amplifier and set up.
In the embodiment of the present invention, the connection status that acquiring unit 301 obtains each audio amplifier and user terminal in loudspeaker box combination mainly comprises the connection status and all connection status from audio amplifier that obtain and preset main sound box in loudspeaker box combination.Wherein, connection status comprises wired connection and wireless connections.Wired connection is referred to and to be connected by physical transfer data wire, and wireless connections then can comprise the connection by transmission channel such as Bluetooth transmission, low-power consumption Bluetooth transmission and wireless network transmissions.
Whether detecting unit 302, exist for detecting in loudspeaker box combination the audio amplifier that connection status is wired connection.
In the embodiment of the present invention, after the connection status that acquiring unit 301 obtains each audio amplifier in loudspeaker box combination and user terminal, then detecting unit 302 can detect in loudspeaker box combination whether there is the audio amplifier that connection status is wired connection.
In the embodiment of the present invention, in loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection may for zero, and in loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection also may be one; In loudspeaker box combination, connection status is that the quantity of the audio amplifier of wired connection also may at least two.The quantity being directed to the audio amplifier of wired connection in loudspeaker box combination is different, and its user terminal is different in follow-up processing mode.Particularly, when the quantity that connection status in loudspeaker box combination is the audio amplifier of wired connection is zero, then user terminal by sending test instruction to each audio amplifier in loudspeaker box combination, and can choose target main sound box according to each audio amplifier for the feedback duration of test instruction.In loudspeaker box combination, connection status is the quantity of the audio amplifier of wired connection when being one, then unique audio amplifier of this wired connection can be chosen for target main sound box.When the quantity that connection status in loudspeaker box combination is the audio amplifier of wired connection is at least two, then can send test instruction to each audio amplifier in the audio amplifier of above-mentioned wired connection, and choose target main sound box according to each audio amplifier for the feedback duration of test instruction.
Above-mentioned detecting unit 302, if also there is for detecting in loudspeaker box combination the audio amplifier that connection status is wired connection, then detects in the audio amplifier of wired connection whether comprise default main sound box.
In the embodiment of the present invention, default main sound box can be the audio amplifier that in whole loudspeaker box combination, physical address is minimum.
In the embodiment of the present invention, after detecting unit 302 detects in loudspeaker box combination that there is connection status is the audio amplifier of wired connection, then detecting unit 302 can detect in the audio amplifier of wired connection whether comprise default main sound box.
Control unit 303, does not comprise default main sound box if detect for detecting unit 302 in the audio amplifier of wired connection, then the default main sound box of control and user terminal disconnect relation.
Selected cell 304, for from connection status be wired connection audio amplifier in select target main sound box.
In the embodiment of the present invention, due to audio amplifier and user terminal set up wired connection time, spread out of in process carrying out data, can be more stable, safer, more reliably.Therefore, detect at detecting unit 302 in the audio amplifier of wired connection and do not comprise default main sound box, then specification presets main sound box and user terminal is not carry out wired connection, then control unit 303 can control default main sound box and user terminal disconnects relation; Selected cell 304 be select target main sound box the audio amplifier of wired connection from connection status.
Set up unit 305, for connecting with target main sound box.
In the embodiment of the present invention, be the audio amplifier of wired connection after select target main sound box at selected cell 304 from connection status, then setting up unit 305 can establish a connection with target main sound box.
Particularly, set up unit 305 and establish a connection with target main sound box, can comprise the following steps:
11) set up unit 305 and receive the instruction that connects that user operation target button triggers;
12) setting up unit 305 and respond the instruction that connects, exporting the information for pointing out input validation information;
13) authorization information that unit 305 receives the input of response information is set up;
14) set up unit 305 and send authorization information to target main sound box, whether mate with the authorization information connected for activated user terminal and target main sound box pre-set to make target main sound box authentication information;
15), when main sound box sending if receive for pointing out the information that the match is successful, setting up unit 305 and establishing a connection with target main sound box.
In the embodiment of the present invention, after setting up unit 305 and receiving the instruction that connects that user operation target button triggers, set up unit 305 and will export the information being used for pointing out input validation information; And set up unit 305 and can export authorization information input port for input validation information.
In the embodiment of the present invention, information can include but not limited to one or more combinations in voice message, text prompt, flashing indicating and vibration prompting.
In the embodiment of the present invention, this authorization information can include but not limited to any one or a few the combination in password to be verified, finger print information to be verified, shape of face information to be verified, iris information to be verified, retinal information to be verified and voiceprint to be verified.
In the embodiment of the present invention, this authorization information connected for activated user terminal and target main sound box pre-set can include but not limited to default authentication password, preset and verify finger print information, preset shape of face information of verify, preset and verify iris information, defaultly verify retinal information and default any one and several combinations verified in voiceprint.
In the embodiment of the present invention, above-mentioned default authorization information can comprise fingerprint string information and input time corresponding to each fingerprint; So correspondingly, verify that above-mentioned authorization information can comprise the following steps with whether the authorization information connected for activated user terminal and target main sound box pre-set is consistent:
Whether checking fingerprint string is identical with the fingerprint string that default authorization information comprises, and whether the difference of the input time of identical fingerprints is all less than preset value, if checking fingerprint string is identical with the fingerprint string that default authorization information comprises, and the difference of the input time of identical fingerprints is all less than preset value, so can authentication information consistent with default authorization information; Otherwise, verify above-mentioned authorization information and default authorization information inconsistent.Wherein, by implementing this execution mode, can effectively prevent user terminal from wantonly being operated by disabled user.
In figure 3, describe in detail after acquiring unit 301 obtains the connection status of each audio amplifier and user terminal in loudspeaker box combination; Then detecting unit 302 can detect in loudspeaker box combination whether there is the audio amplifier that connection status is wired connection; If detecting unit 302 detects in loudspeaker box combination there is the audio amplifier that connection status is wired connection, then detecting unit 302 detects in the audio amplifier of wired connection whether comprise default main sound box; If detecting unit 302 detects in the audio amplifier of wired connection do not comprise default main sound box, then control unit 303 controls to preset main sound box and user terminal and disconnects relation, selected cell 304 be select target main sound box the audio amplifier of wired connection from connection status; Set up unit 305 to connect with target main sound box.In embodiments of the present invention, control unit 303 can when detecting that default main sound box is not the audio amplifier of wired connection, automatic control user terminal and default main sound box disconnect relation, selected cell 304 and from the audio amplifier of wired connection select target main sound box, set up unit 305 and connect with target main sound box, thus the success rate of loudspeaker box combination normal play data resource can be promoted.
Refer to Fig. 4, Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention, for performing above-mentioned audio amplifier management method.Wherein, Fig. 4 obtains at the enterprising step refining in the basis of Fig. 3, except comprising all unit shown in Fig. 3, can also comprise: transmitting element 306, wherein,
Transmitting element 306, if detect that the audio amplifier of wired connection comprises default main sound box for detecting unit 302, then sends each audio amplifier in the 3rd test instruction to the audio amplifier of wired connection.
In the embodiment of the present invention, acquiring unit 301, also for for each audio amplifier in the audio amplifier of wired connection, obtains from the delivery time of the 3rd test instruction to the interval duration receiving audio amplifier and return the time of reception of the 3rd test instruction response message.
In the embodiment of the present invention, acquiring unit 301 also for obtain interval duration corresponding to default main sound box and wired connection audio amplifier in the difference of the shortest interval duration.
In the embodiment of the present invention, whether detecting unit 302 is also greater than preset time threshold for detecting difference.
In the embodiment of the present invention, if when control unit 303 also detects whether difference is greater than preset time threshold for detecting unit 302, then the default main sound box of control and user terminal disconnect relation.
In the embodiment of the present invention, selected cell 304 also for using audio amplifier corresponding for the shortest interval duration in the audio amplifier of wired connection as target main sound box.
As the optional execution mode of one, selected cell 304 may further include: comprising modules 3040, first sending module 3041, first acquisition module 3042 and selection module 3043, wherein,
Comprising modules 3040, for by connection status being the audio amplifier composition target loudspeaker box combination of wired connection.
First sending module 3041, for sending the first test instruction to each audio amplifier in target loudspeaker box combination.
First acquisition module 3042, for for each audio amplifier in target loudspeaker box combination, obtains from the delivery time of the first test instruction to the interval duration receiving audio amplifier and return the time of reception of the first test instruction response message.
Selecting module 3043, being set to target main sound box for selecting duration the shortest audio amplifier in interval from target loudspeaker box combination.
As the optional execution mode of another kind, acquiring unit 301 may further include: the second sending module 3010 and the second acquisition module 3011, wherein,
Second sending module 3010, for sending the second test instruction to each audio amplifier in loudspeaker box combination.
Second acquisition module 3011, for for each audio amplifier in loudspeaker box combination, obtains from the delivery time of the second test instruction to the interval duration receiving audio amplifier and return the time of reception of the second test instruction response message.
Above-mentioned second acquisition module 3011 is also for obtaining the connection status of each audio amplifier and user terminal in loudspeaker box combination according to interval duration.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another user terminal disclosed, for performing above-mentioned audio amplifier management method.As shown in Figure 5, this user terminal 500 can comprise: at least one processor 501, at least one input unit 502, at least one output device 503, assembly such as memory 504 grade.Wherein, these assemblies are communicated to connect by one or more bus 505.It will be appreciated by those skilled in the art that, the structure of the user terminal shown in Fig. 5 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 501 is the control centre of user terminal, utilize the various piece of various interface and the whole user terminal of connection, by running or perform the program in memory 504 of being stored in and/or module, and call the data be stored in memory 504, to perform various function and the deal with data of user terminal.Processor 501 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 501 can only comprise central processing unit (CentralProcessingUnit, be called for short CPU), also can be CPU, digital signal processor (digitalsignalprocessor, be called for short DSP), the combination of graphic process unit (GraphicProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input unit 502 can comprise the touch-screen, keyboard etc. of standard, also can include line interface, wave point etc.
Output device 503 can comprise display screen, loud speaker etc., also can include line interface, wave point etc.
Memory 504 can be used for storing software program and module, processor 501, input unit 502 and output device 503 are stored in software program in memory 504 and module by calling, thus perform the various functions application of user terminal and realize data processing.Memory 504 mainly comprises program storage area and data storage area, and wherein, program storage area can storage operation system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of user terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Particularly, processor 501 calls the application program be stored in memory 504, for performing following operation:
Processor 501 obtains the connection status of each audio amplifier and user terminal in loudspeaker box combination, and connection status comprises the one in wired connection and wireless connections;
Whether processor 501 detects in loudspeaker box combination exists the audio amplifier that connection status is wired connection;
If processor 501 detects in loudspeaker box combination there is the audio amplifier that connection status is wired connection, then detect in the audio amplifier of wired connection whether comprise default main sound box;
If processor 501 detects in the audio amplifier of wired connection do not comprise default main sound box, then disconnect the annexation presetting main sound box and user terminal, and be select target main sound box the audio amplifier of wired connection from connection status;
Processor 501 controls output device 503 target main sound box and connects.
In the present invention, processor 501 calls the application program be stored in memory 504, and performing step is select target main sound box the audio amplifier of wired connection from connection status, comprising:
Connection status is the audio amplifier composition target loudspeaker box combination of wired connection by processor 501;
Processor 501 controls output device 503 and sends the first test instruction to each audio amplifier in target loudspeaker box combination;
For each audio amplifier in target loudspeaker box combination, processor 501 obtains from the delivery time of the first test instruction to the interval duration receiving audio amplifier and return the time of reception of the first test instruction response message;
Processor 501 selects duration the shortest audio amplifier in interval to be set to target main sound box from target loudspeaker box combination.
In the present invention, processor 501 calls the application program be stored in memory 504, performs step processor 501 from target loudspeaker box combination, selects duration the shortest audio amplifier in interval to be set to target main sound box, comprising:
Whether processor 501 detects in target loudspeaker box combination exists at least two identical audio amplifiers of interval duration;
If processor 501 detects in target loudspeaker box combination there are at least two identical audio amplifiers of interval duration, then whether the interval duration detecting at least two audio amplifiers corresponding is interval duration the shortest in target loudspeaker box combination;
If processor 501 detects that the interval duration that at least two audio amplifiers are corresponding is interval duration the shortest in target loudspeaker box combination, then from least two audio amplifiers, choose target main sound box.
In the present invention, processor 501 calls the application program be stored in memory 504, performs the connection status that step obtains each audio amplifier and user terminal in loudspeaker box combination, comprising:
Processor 501 controls output device 503 and sends the second test instruction to each audio amplifier in loudspeaker box combination;
For each audio amplifier in loudspeaker box combination, processor 501 obtains from the delivery time of the second test instruction to the interval duration receiving audio amplifier and return the time of reception of the second test instruction response message;
Processor 501 obtains the connection status of each audio amplifier and user terminal in loudspeaker box combination according to interval duration.
In the present invention, processor 501 calls the application program be stored in memory 504, can also perform following steps:
If processor 501 detects that the audio amplifier of wired connection comprises default main sound box, then processor 501 controls output device 503 and sends each audio amplifier in the 3rd test instruction to the audio amplifier of wired connection;
For each audio amplifier in the audio amplifier of wired connection, processor 501 obtains from the delivery time of the 3rd test instruction to the interval duration receiving audio amplifier and return the time of reception of the 3rd test instruction response message;
Processor 501 obtains the difference of the shortest interval duration in the audio amplifier presetting interval duration corresponding to main sound box and wired connection;
Processor 501 detects difference and whether is greater than preset time threshold;
If processor 501 detects that difference is greater than described preset time threshold, then disconnect the annexation of described default main sound box and described user terminal, and using audio amplifier corresponding for the shortest interval duration in the audio amplifier of wired connection as described target main sound box.
Concrete, the part or all of flow process in the audio amplifier management method embodiment that the user terminal introduced in the embodiment of the present invention can implement composition graphs 1 of the present invention, Fig. 2 or Fig. 3 introduces.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention user terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an audio amplifier management method, is characterized in that, comprising:
Obtain the connection status of each audio amplifier and user terminal in loudspeaker box combination, described connection status comprises the one in wired connection and wireless connections;
Detect in described loudspeaker box combination and whether there is the audio amplifier that described connection status is described wired connection;
If detect in described loudspeaker box combination to there is the audio amplifier that described connection status is described wired connection, then detect in the audio amplifier of described wired connection whether comprise default main sound box;
If detect in the audio amplifier of described wired connection and do not comprise described default main sound box, then disconnect the annexation of described default main sound box and described user terminal, and be select target main sound box the audio amplifier of described wired connection from described connection status;
Connect with described target main sound box.
2. method according to claim 1, is characterized in that, described is select target main sound box the audio amplifier of described wired connection from described connection status, comprising:
It is the audio amplifier composition target loudspeaker box combination of described wired connection by described connection status;
Send each audio amplifier in the first test instruction to described target loudspeaker box combination;
For each audio amplifier in described target loudspeaker box combination, obtain from the delivery time of described first test instruction to the interval duration receiving described audio amplifier and return the time of reception of the first test instruction response message;
From described target loudspeaker box combination, select duration the shortest audio amplifier in described interval to be set to target main sound box.
3. method according to claim 2, is characterized in that, the described the shortest audio amplifier of described interval duration of selecting from described target loudspeaker box combination is set to target main sound box, comprising:
Detect in described target loudspeaker box combination and whether there are at least two identical audio amplifiers of described interval duration;
If detect in described target loudspeaker box combination to there are at least two identical audio amplifiers of described interval duration, then whether the interval duration that described in detecting, at least two audio amplifiers are corresponding is interval duration the shortest in described target loudspeaker box combination;
If the interval duration that at least two audio amplifiers described in detecting are corresponding is interval duration the shortest in described target loudspeaker box combination, then from described at least two audio amplifiers, choose target main sound box.
4. method according to claim 1, is characterized in that, the connection status of each audio amplifier and user terminal in described acquisition loudspeaker box combination, comprising:
Send each audio amplifier in the second test instruction to described loudspeaker box combination;
For each audio amplifier in described loudspeaker box combination, obtain from the delivery time of described second test instruction to the interval duration receiving described audio amplifier and return the time of reception of the second test instruction response message;
According to described interval duration, obtain the connection status of each audio amplifier and user terminal in described loudspeaker box combination.
5. according to the method in Claims 1 to 4 described in any one, it is characterized in that, described method also comprises:
If detect, the audio amplifier of described wired connection comprises described default main sound box, then send each audio amplifier in the 3rd test instruction to the audio amplifier of described wired connection;
For each audio amplifier in the audio amplifier of described wired connection, obtain from the delivery time of described 3rd test instruction to the interval duration receiving described audio amplifier and return the time of reception of the 3rd test instruction response message;
Obtain the difference of the shortest interval duration in the audio amplifier of interval duration corresponding to described default main sound box and described wired connection;
Detect described difference and whether be greater than preset time threshold;
If detect, described difference is greater than described preset time threshold, then disconnect the annexation of described default main sound box and described user terminal, and using audio amplifier corresponding for the shortest interval duration in the audio amplifier of described wired connection as described target main sound box.
6. a user terminal, is characterized in that, comprising:
Acquiring unit, for obtaining the connection status of each audio amplifier and user terminal in loudspeaker box combination, described connection status comprises the one in wired connection and wireless connections;
Whether detecting unit, exist for detecting in described loudspeaker box combination the audio amplifier that described connection status is described wired connection;
Described detecting unit, if also there is for detecting in described loudspeaker box combination the audio amplifier that described connection status is described wired connection, then detects in the audio amplifier of described wired connection whether comprise default main sound box;
Control unit, does not comprise described default main sound box if detect for described detecting unit in the audio amplifier of described wired connection, then control described default main sound box and described user terminal disconnects relation;
Selected cell, for from described connection status be described wired connection audio amplifier in select target main sound box;
Set up unit, for connecting with described target main sound box.
7. user terminal according to claim 6, is characterized in that, described selected cell comprises:
Comprising modules, for by described connection status being the audio amplifier composition target loudspeaker box combination of described wired connection;
First sending module, for sending each audio amplifier in the first test instruction to described target loudspeaker box combination;
First acquisition module, for for each audio amplifier in described target loudspeaker box combination, obtains from the delivery time of described first test instruction to the interval duration receiving described audio amplifier and return the time of reception of the first test instruction response message;
Selecting module, being set to target main sound box for selecting duration the shortest audio amplifier in described interval from described target loudspeaker box combination.
8. user terminal according to claim 7, it is characterized in that, the embodiment that described selection module selects duration the shortest audio amplifier in described interval to be set to target main sound box from described target loudspeaker box combination is: whether described selection module detects in described target loudspeaker box combination exists at least two identical audio amplifiers of described interval duration; If detect in described target loudspeaker box combination to there are at least two identical audio amplifiers of described interval duration, then described selection module detect described in interval duration corresponding at least two audio amplifiers whether be interval duration the shortest in described target loudspeaker box combination; If the interval duration that at least two audio amplifiers described in detecting are corresponding is interval duration the shortest in described target loudspeaker box combination, then described selection module chooses target main sound box from described at least two audio amplifiers.
9. user terminal according to claim 6, is characterized in that, described acquiring unit comprises:
Second sending module, for sending each audio amplifier in the second test instruction to described loudspeaker box combination;
Second acquisition module, for for each audio amplifier in described loudspeaker box combination, obtains from the delivery time of described second test instruction to the interval duration receiving described audio amplifier and return the time of reception of the second test instruction response message;
Described second acquisition module, also for according to described interval duration, obtains the connection status of each audio amplifier and user terminal in described loudspeaker box combination.
10. according to the user terminal in claim 6 ~ 9 described in any one, it is characterized in that, described user terminal also comprises:
Transmitting element, if detect that the audio amplifier of described wired connection comprises described default main sound box for described detecting unit, then sends each audio amplifier in the 3rd test instruction to the audio amplifier of described wired connection;
Described acquiring unit, also for each audio amplifier in the audio amplifier for described wired connection, obtains from the delivery time of described 3rd test instruction to the interval duration receiving described audio amplifier and return the time of reception of the 3rd test instruction response message;
Described acquiring unit, also for obtain interval duration corresponding to described default main sound box and described wired connection audio amplifier in the difference of the shortest interval duration;
Whether described detecting unit, be also greater than preset time threshold for detecting described difference;
Described control unit, if when also detecting whether described difference is greater than preset time threshold for described detecting unit, then controls described default main sound box and described user terminal disconnects relation;
Described selected cell, also for using audio amplifier corresponding for the shortest interval duration in the audio amplifier of described wired connection as described target main sound box.
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 true CN105392087A (en) 2016-03-09
CN105392087B 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)

Cited By (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
CN107517462A (en) * 2017-10-12 2017-12-26 柴雪 A kind of multichannel audio amplifier control method and device
CN107613424A (en) * 2017-09-25 2018-01-19 解君 A kind of audio amplifier 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

Cited By (6)

* 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
WO2017166684A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for controlling speaker of electronic device
CN107613424A (en) * 2017-09-25 2018-01-19 解君 A kind of audio amplifier control method and device
CN107613424B (en) * 2017-09-25 2019-08-27 湖南国声声学科技股份有限公司 A kind of speaker control method and device
CN107517462A (en) * 2017-10-12 2017-12-26 柴雪 A kind of multichannel audio amplifier control method and device
CN107517462B (en) * 2017-10-12 2020-01-21 深圳市知知品牌孵化有限公司 Multi-channel sound box control method and device

Also Published As

Publication number Publication date
CN105392087B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US9749329B2 (en) Network connection managing device, system and method
CN105245346A (en) Identity authentication method and user terminal
CN105072564A (en) Audio playing method and device based on Bluetooth connection
CN105739942A (en) Volume adjusting method and terminal
CN104144093A (en) Intelligent device control method, relevant device and system
CN104967758B (en) A kind of method and user terminal for controlling data transfer
CN105022297B (en) A kind of sound box parameter collocation method, mobile terminal
CN104158720A (en) Chatting record clearing method and system, and mobile terminal
CN105306737A (en) Information management method and user terminal
CN105549399A (en) Indoor environment monitoring method and internet-of-things terminal
CN104808898A (en) Terminal
CN105392087A (en) Loudspeaker box management method and user terminal
CN105357641A (en) Position updating control method and user terminal
CN105577882A (en) Information display method and user terminal
CN104660197A (en) Volume control method and playing equipment
CN105516783A (en) Multimedia content playing course control method and user terminal
CN105307078A (en) Sound box management method and user terminal
CN104808916A (en) Screen-shooting method
CN104880968A (en) Alarm clock control method and device
CN105242859A (en) Voice information processing method and terminal
CN105159433A (en) Broadcast information processing method and user terminal
CN105120056A (en) Communication control method and terminal
CN105577635A (en) File transmission method and mobile terminals
CN104796167A (en) 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

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.

CP01 Change in the name or title of a patent holder