CN108650594A - A kind of speaker management method and user terminal, computer storage media - Google Patents
A kind of speaker management method and user terminal, computer storage media Download PDFInfo
- Publication number
- CN108650594A CN108650594A CN201810450300.8A CN201810450300A CN108650594A CN 108650594 A CN108650594 A CN 108650594A CN 201810450300 A CN201810450300 A CN 201810450300A CN 108650594 A CN108650594 A CN 108650594A
- Authority
- CN
- China
- Prior art keywords
- speaker
- user terminal
- main sound
- sound box
- wired connection
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 19
- 238000012360 testing method Methods 0.000 claims abstract description 67
- 230000004044 response Effects 0.000 claims abstract description 23
- 238000012795 verification Methods 0.000 claims description 59
- 230000005540 biological transmission Effects 0.000 claims description 25
- 238000000034 method Methods 0.000 claims description 24
- 238000001514 detection method Methods 0.000 claims description 11
- 230000001960 triggered effect Effects 0.000 claims description 9
- 238000010200 validation analysis Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000002207 retinal effect Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000035755 proliferation Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of speaker management method and user terminals, including:User terminal sends test instruction to each in loudspeaker box combination from speaker in the default main sound box in detecting loudspeaker box combination and when turn-off data connects between user terminal;For each from speaker, obtain from the delivery time of test instruction to the interval duration for receiving the time of reception for returning to test instruction response message from speaker;It is shortest from speaker to obtain interval duration, and will be spaced that duration is shortest to be set as target main sound box from speaker;It establishes a connection with target main sound box.In embodiments of the present invention, terminal can redefine a new target main sound box, so as to promote the success rate of loudspeaker box combination normal play data resource when default main sound box is connect with user terminal turn-off data.
Description
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 disconnected with terminal
When opening connection, then may 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:
When detecting the default main sound box in loudspeaker box combination and turn-off data connects between user terminal, sends test and refer to
It enables to each in the loudspeaker box combination from speaker;
For it is described each from speaker, obtain and described returned from speaker from the delivery time of the test instruction to receiving
The interval duration of the time of reception of test instruction response message;
It is shortest from speaker to obtain the interval duration, and be set as target master from speaker by the interval duration is shortest
Speaker;
It establishes a connection with the target main sound box.
Realization method with reference to first aspect, in the first possible realization method of first aspect, the transmission is surveyed
Examination is instructed to each in the loudspeaker box combination from speaker, including:
It detects in the loudspeaker box combination with the presence or absence of the slave speaker for carrying out wired connection with the user terminal;
If detect exist in the loudspeaker box combination it is described the described from speaker of wired connection is carried out with the user terminal,
With the user terminal form from loudspeaker box combination from speaker described in wired connection by described;
Test instruction is sent to each from loudspeaker box combination from speaker.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect
In, there is the described and user terminal in detecting the loudspeaker box combination and carry out described in wired connection after speaker,
Described to be carried out described described in wired connection from speaker composition before loudspeaker box combination with the user terminal, the method is also
Including:
Determine the quantity of the slave speaker that wired connection is carried out with the user terminal;
When the quantity of the slave speaker for carrying out wired connection with the user terminal is one, then will it is described with it is described
User terminal carries out the described of wired connection and is set as the target main sound box from speaker;
When the quantity of the slave speaker for carrying out wired connection with the user terminal is multiple, then follow the steps institute
It states and with the user terminal form from loudspeaker box combination from speaker described in wired connection.
The possible realization method of with reference to first aspect the first, in the third possible realization method of first aspect
In, following steps can also be performed:
If detecting in the loudspeaker box combination, there is no with the user terminal hold from speaker described in wired connection
Row step sends test instruction to each in the loudspeaker box combination from speaker.
The first possible realization method of realization method, first aspect with reference to first aspect, the second of first aspect
Any one realization method in the possible realization method of kind and the third possible realization method of first aspect, first
It is described to establish a connection with the target main sound box in 4th kind of possible realization method of aspect, including:
What reception user's operation target button was triggered establishes link order;
Respond the prompt message established link order, export for prompting validation information;
Receive the verification information for responding the prompt message input;
The verification information is sent to the target main sound box so that the target main sound box verify the verification information with
It is pre-set to establish whether the verification information connected matches with the target main sound box for triggering the user terminal;
If receive the prompt message for prompting successful match that the main sound box is sent, with the target main sound box
It establishes a connection.
Second aspect, the embodiment of the invention also discloses a kind of user terminals, including:
Transmission unit detects the default main sound box in loudspeaker box combination and turn-off data connection between user terminal for working as
When, test instruction is sent to each in the loudspeaker box combination from speaker;
Acquiring unit, for for it is described each from speaker, obtain from the delivery time of the test instruction to receiving
The interval duration of the time of reception that test instruction response message is returned from speaker;
The acquiring unit is additionally operable to obtain the interval duration shortest from speaker;
Setting unit, for being set as target main sound box from speaker by the interval duration is shortest;
Unit is established, for establishing a connection 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 transmission is single
Member includes:
Detection module, for detect in the loudspeaker box combination with the presence or absence of with the user terminal carry out wired connection from
Speaker;
Comprising modules, if detecting there is the described and user terminal in the loudspeaker box combination for the detection module
The described from speaker of wired connection is carried out, with the user terminal form from sound from speaker described in wired connection by described
Case combines;
First sending module is instructed for sending test to each from loudspeaker box combination from speaker.
In conjunction with the first possible user terminal of second aspect, in second of possible user terminal of second aspect
In, the transmission unit further includes:
Determining module, for there is the described and user terminal in detecting the loudspeaker box combination in the detection module
The described after speaker of wired connection is carried out, the described and user terminal is carried out the institute of wired connection by the comprising modules
State the quantity that the slave speaker that wired connection is carried out with the user terminal before loudspeaker box combination, is determined from speaker composition;
Setup module is used for when the quantity of the slave speaker for carrying out wired connection with the user terminal is one,
It then carries out being set as the target main sound box from speaker described in wired connection with the user terminal by described;
The comprising modules are specifically used for
When multiple, with the user terminal form from loudspeaker box combination from speaker described in wired connection by described.
In conjunction with the first possible user terminal of second aspect, in the third possible user terminal of second aspect
In, if it is to examine that the transmission unit, which sends test instruction to each in the loudspeaker box combination from the specific implementation mode of speaker,
It surveys in the loudspeaker box combination to be not present and carries out then sending test instruction described in wired connection from speaker extremely with the user terminal
Each in the loudspeaker box combination is from speaker.
In conjunction with the user terminal of second aspect, the first possible user terminal of second aspect, second aspect second
Any one user terminal in the possible user terminal of kind and the third possible user terminal of second aspect, second
In 4th kind of possible user terminal of aspect, the unit of establishing includes:
Receiving module establishes link order for receive that user's operation target button triggered;
Output module, for responding the prompt message established link order, export for prompting validation information;
The receiving module is additionally operable to receive the verification information for responding the prompt message input;
Second sending module, for sending the verification information to the target main sound box, so that the target main sound box
It verifies the verification information and establishes testing for connection with the target main sound box for triggering the user terminal with pre-set
Whether card information matches;
Establish module, if for the receiving module receive that the main sound box sends for prompting carrying for successful match
When showing information, establish a connection with the target main sound box.
In the embodiment of the present invention, the interruption of default main sound box and user terminal of the user terminal in detecting loudspeaker box combination
When opening data connection, test instruction is sent to each in loudspeaker box combination from speaker;For each from speaker, obtain from survey
The delivery time instructed is tried to the interval duration for receiving the time of reception for returning to test instruction response message from speaker;Obtain interval
Duration is shortest from speaker, and will be spaced that duration is shortest to be set as target main sound box from speaker;It establishes and connects with target main sound box
Connect relationship.In embodiments of the present invention, user terminal can be when default main sound box be connect with user terminal turn-off data, again
A new target main sound box is determined, so as to promote the success rate of loudspeaker box combination normal play data resource.
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, terminal energy
Enough when default main sound box is connect with user terminal turn-off data, a new target main sound box is redefined, so as to carry
Rise 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, when detect the default main sound box in loudspeaker box combination and between user terminal turn-off data connect when, send
Test instruction is to each in loudspeaker box combination from speaker.
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, default main sound box can be the speaker of physical address minimum in entire loudspeaker box combination.
In the embodiment of the present invention, user terminal can detect default main sound box in real time, and whether turn-off data connects with user terminal
It connects, and can send test in the default main sound box in detecting loudspeaker box combination and turn-off data connection between user terminal and refers to
It enables to each in loudspeaker box combination from speaker.
S102, for each from speaker, obtain and return to test from the delivery time of test instruction to receiving from speaker and refer to
Enable the interval duration of the time of reception of response message.
In the embodiment of the present invention, test instruction is being sent to each in loudspeaker box combination after speaker, user terminal
Each speaker can also be obtained to return to test instruction response message from the delivery time of test instruction to receiving from speaker and connecing
The interval duration that time receiving carves.
S103, to obtain interval duration shortest from speaker, and will be spaced that duration is shortest to be set as target keynote from speaker
Case.
In the embodiment of the present invention, from speaker, obtained for each from the delivery time of test instruction to receiving from sound
After case returns to the interval duration of the time of reception of test instruction response message, then it can determine and refer to from test in loudspeaker box combination
The delivery time of order is shortest from speaker to the interval duration for receiving the time of reception for returning to test instruction response message from speaker,
And set this to target main sound box from speaker.
In the embodiment of the present invention, target main sound box includes mainly the slave speaker in loudspeaker box combination in addition to default main sound box.
And the target main sound box is mainly used for the speaker carried out data transmission with user terminal.
In the embodiment of the present invention, if user terminal, which detects, at least two time corresponding to the speaker in loudspeaker box combination
It is spaced identical and most short for all time intervals corresponding to the speaker in the loudspeaker box combination, then user terminal can obtain
At least two physical address from each in speaker from speaker is stated, and the slave speaker of physical address minimum is set as above-mentioned
Target main sound box.
S104, it establishes a connection with target main sound box.
In the embodiment of the present invention, after finding target main sound box in above-mentioned loudspeaker box combination, then user terminal can be with
Target main sound box establishes a connection.
In Fig. 1, be described in detail default main sound box of the user terminal in detecting loudspeaker box combination and user terminal it
When separated data connection, test instruction is sent to each in loudspeaker box combination from speaker;For each from speaker, obtain
From the delivery time of test instruction to the interval duration for receiving the time of reception for returning to test instruction response message from speaker;It obtains
It is shortest from speaker to be spaced duration, and will be spaced that duration is shortest to be set as target main sound box from speaker;It is built with target main sound box
Vertical connection relation.In embodiments of the present invention, terminal can be when default main sound box be connect with user terminal turn-off data, again
A new target main sound box is determined, 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, when detect the default main sound box in loudspeaker box combination and between user terminal turn-off data connect when, detection
With the presence or absence of the slave speaker for carrying out wired connection with user terminal in loudspeaker box combination.
In the embodiment of the present invention, loudspeaker box combination is made of at least two speakers, wherein there are one sounds in loudspeaker box combination
Case is directly to carry out data connection, referred to as main sound box with user terminal, other do not establish the sound of data connection with user terminal
Case 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 terminal
Data connection is established, 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, it includes presetting main sound box and using that default main sound box establishes data connection mainly with user terminal
The application program for controlling loudspeaker box combination in the terminal of family is attached.
In the embodiment of the present invention, each speaker in loudspeaker box combination can be attached with user terminal.But the company
Connect is not to establish data connection with the application program in user terminal, and can be physical connection (wired connection) or wirelessly connect
It connects.
In the embodiment of the present invention, in the default main sound box in detecting loudspeaker box combination and turn-off data connects between user terminal
When connecing, in order to make loudspeaker box combination remain to establish data connection, then user terminal can detect in loudspeaker box combination and whether there is
The slave speaker of wired connection is carried out with user terminal.
In the embodiment of the present invention, since wired connection can ensure that data transmission is more stable in data transmission procedure.Therefore,
If if can be selected from the slave speaker of wired connection in the presence of the slave speaker for carrying out wired connection with user terminal in loudspeaker box combination
Select target main sound box.
It, will be with user's end if S202, detecting the slave speaker for existing in loudspeaker box combination and carrying out wired connection with user terminal
The slave speaker that end carries out wired connection is formed from loudspeaker box combination.
In the embodiment of the present invention, user terminal exists in detecting loudspeaker box combination carries out wired connection with user terminal
After speaker, then the quantity for the slave speaker that wired connection is carried out with user terminal can be determined.Had when with user terminal
When the quantity of the slave speaker of line connection is one, then the slave speaker that wired connection is carried out with user terminal is set to target keynote
Case;When with user terminal carry out wired connection slave speaker quantity be it is multiple when, then user terminal can it is above-mentioned it is multiple from
Continue selection target main sound box in speaker.
In the embodiment of the present invention, if the slave speaker for carrying out wired connection with user terminal is not present in detection loudspeaker box combination,
Then user terminal can from above-mentioned loudspeaker box combination in addition to default main sound box from speaker selection target main sound box.
S203, test instruction is sent to from each in loudspeaker box combination from speaker.
S204, for each from speaker, obtain and return to test from the delivery time of test instruction to receiving from speaker and refer to
Enable the interval duration of the time of reception of response message.
S205, to obtain interval duration shortest from speaker, and will be spaced that duration is shortest to be set as target keynote from speaker
Case.
S206, it establishes a connection with target main sound box.
In the embodiment of the present invention, 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. 2, user terminal is described in detail in selection target main sound box, can also detect again in above-mentioned loudspeaker box combination
In in slave speaker in addition to default main sound box with the presence or absence of the slave speaker for carrying out wired connection with user terminal, and if it exists, then
Target main sound box is then selected from the above-mentioned slave speaker for carrying out wired connection with user terminal.Due to being wired at transmission data
It is more stable in the process, therefore, if target main sound box is selected in the slave speaker for carrying out wired connection with user terminal,
The stability of data transmission can be further increased.
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:Transmission unit
301, acquiring unit 302, setting unit 303 and unit 304 is established, wherein
Transmission unit 301 detects the default main sound box in loudspeaker box combination and turn-off data between user terminal for working as
When connection, test instruction is sent to each in loudspeaker box combination from speaker.
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, default main sound box can be the speaker of physical address minimum in entire loudspeaker box combination.
In the embodiment of the present invention, transmission unit 301 can detect whether default main sound box disconnects number with user terminal in real time
According to connection, and it can send and survey in the default main sound box in detecting loudspeaker box combination and turn-off data connection between user terminal
Examination instruction is to each in loudspeaker box combination from speaker.
Acquiring unit 302, for from speaker, obtained for each from the delivery time of test instruction to receive it is described from
Speaker returns to the interval duration of the time of reception of test instruction response message.
In the embodiment of the present invention, transmission unit 301 send test instruction to each in loudspeaker box combination from speaker it
Afterwards, acquiring unit 302 can also obtain each speaker from test instruction delivery time to receive from speaker return test refer to
Enable the interval duration of the time of reception of response message.
It is shortest from speaker to be additionally operable to acquisition interval duration for above-mentioned acquiring unit 302.
Setting unit 303, for that will be spaced, duration is shortest to be set as target main sound box from speaker.
In the embodiment of the present invention, in the delivery time instructed from speaker, the acquisition of acquiring unit 302 from test for each
To the interval duration for receiving the time of reception for returning to test instruction response message from speaker, then can determine in loudspeaker box combination
In from test instruction delivery time to receive from speaker return test instruction response message the time of reception interval duration most
Short slave speaker, and set this to target main sound box from speaker.
In the embodiment of the present invention, target main sound box includes mainly the slave speaker in loudspeaker box combination in addition to default main sound box.
And the target main sound box is mainly used for carrying out the speaker of data connection with user terminal.
In the embodiment of the present invention, if detecting there is at least two time interval phases corresponding to the speaker in loudspeaker box combination
Together, and it is most short for all time intervals corresponding to the speaker in the loudspeaker box combination, then above-mentioned at least two can be obtained from sound
Each in case sets the slave speaker of physical address minimum to above-mentioned target main sound box from the physical address of speaker.
Unit 304 is established, for establishing a connection with target main sound box.
It, can be with after finding target main sound box in above-mentioned loudspeaker box combination, then establishing unit 304 in the embodiment of the present invention
It establishes a connection with target main sound box.
In figure 3, the separated number of default main sound box and user terminal in detecting loudspeaker box combination is described in detail
When according to connection, transmission unit 301 sends test instruction to each in loudspeaker box combination from speaker;For each from speaker,
Acquiring unit 302 is obtained from the delivery time of test instruction to the time of reception received from speaker return test instruction response message
Interval duration;And it is shortest from speaker to obtain interval duration, setting unit 303 simultaneously will be spaced that duration is shortest to be arranged from speaker
For target main sound box;Unit 304 is established to establish a connection with target main sound box.It in embodiments of the present invention, can be default
When main sound box is connect with user terminal turn-off data, a new target main sound box is redefined, so as to promote voice box group
Close the success rate of 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, as shown in figure 4, transmission unit 301
May include:Detection module 3010, determining module 3011, setup module 3012, comprising modules 3013 and the first sending module
3014, it establishes unit 304 and may include receiving module 3040, output module 3041, the second sending module 3042 and establish mould
Block 3043, wherein
Detection module 3010, for detecting in loudspeaker box combination with the presence or absence of the slave sound for carrying out wired connection with user terminal
Case.
Determining module 3011, it is wired with user terminal progress for existing in detecting loudspeaker box combination in detection module 3010
Connection slave speaker after, comprising modules 3013 by is carried out with user terminal wired connection slave speaker form from loudspeaker box combination it
Before, determine the quantity for the slave speaker that wired connection is carried out with user terminal.
Setup module 3012, for when it is one to carry out the quantity of slave speaker of wired connection with user terminal, then will
The slave speaker that wired connection is carried out with user terminal is set as target main sound box.
Comprising modules 3013, be specifically used for when institute with user terminal progress wired connection slave speaker quantity be it is multiple
When, the slave speaker that wired connection is carried out with user terminal is formed from loudspeaker box combination.
First sending module 3014, for sending test instruction extremely from each in loudspeaker box combination from speaker.
Receiving module 3040 establishes link order for receive that user's operation target button triggered.
Output module 3041 establishes link order for responding, exports the prompt message for prompting validation information.
Above-mentioned receiving module 3040 is additionally operable to receive the verification information of response prompt information input.
Second sending module 3042, for sending verification information to target main sound box, so that target main sound box authentication
Information establishes whether the verification information connected matches for triggering user terminal with pre-set with target main sound box.
Establish module 3043, if for receiving module 3040 receive main sound box transmission for prompting carrying for successful match
When showing information, establish a connection with target main sound box.
In the embodiment of the present invention, receives the foundation connection that user's operation target button is triggered in receiving module 3040 and refer to
After order, prompt message of the output module 3041 by output for prompting validation information;And it can export and be tested for inputting
Demonstrate,prove the verification information input port of 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.
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:
When detecting the default main sound box in loudspeaker box combination and turn-off data connects between user terminal, processor 501
It controls output device 503 and sends test instruction to each in loudspeaker box combination from speaker;
For each from speaker, processor 501 controls input unit 502 and obtains from the delivery time of test instruction to receipts
To the interval duration for the time of reception for returning to test instruction response message from speaker;
It is shortest from speaker that processor 50 obtains interval duration, and will be spaced that duration is shortest to be set as target master from speaker
Speaker;
Processor 50 establishes a connection with target main sound box.
In the present invention, processor 501 calls the application program being stored in memory 504, executes step transmission test and refers to
It enables to each in loudspeaker box combination from speaker, including:
Processor 501 detects in loudspeaker box combination with the presence or absence of the slave speaker for carrying out wired connection with user terminal;
If processor 501 is detected in loudspeaker box combination to exist and be carried out from speaker described in wired connection with user terminal, will
The slave speaker that wired connection is carried out with user terminal is formed from loudspeaker box combination;
Processor 501 controls output device 503 and sends test instruction to from each in loudspeaker box combination from speaker.
In the present invention, processor 501 calls the application program being stored in memory 504, and sound is detected executing step
After there is the slave speaker for carrying out wired connection with user terminal in case combination, step will carry out wired connection with user terminal
From speaker composition before loudspeaker box combination, following steps can also be performed:
Processor 501 determines the quantity for the slave speaker that wired connection is carried out with user terminal;
When it is one to carry out the quantity of slave speaker of wired connection with user terminal, then processor 501 will be with user's end
The slave speaker that end carries out wired connection is set as target main sound box;
When it is multiple to carry out the quantity of slave speaker of wired connection with user terminal, thening follow the steps processor 501 will
The slave speaker that wired connection is carried out with user terminal is formed from loudspeaker box combination.
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 in loudspeaker box combination there is no the slave speaker for carrying out wired connection with user terminal, hold
Row step processor 501 controls output device 503 and sends test instruction to each in loudspeaker box combination from speaker.
In the present invention, processor 501 calls the application program being stored in memory 504, executes step and target keynote
Case establishes a connection, including:
What the control reception user's operation target button of input unit 502 of processor 501 was triggered establishes link order;
Processor 501 controls the response of output device 503 and establishes link order, exports for prompting carrying for validation information
Show information;
Processor 501 controls the verification information that input unit 502 receives response prompt information input;
Processor 501 controls output device 503 and sends verification information to target main sound box, so that target main sound box is tested
Card information establishes whether the verification information connected matches for triggering user terminal with pre-set with target main sound box;
If receive the prompt message for prompting successful match of main sound box transmission, processor 501 and target keynote
Case establishes a connection.
Specifically, the user terminal introduced in the embodiment of the present invention can implement the sound that the present invention combines Fig. 1, Fig. 2 introduction
Flow some or all of in case management method embodiment.
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:
When detecting the default main sound box in loudspeaker box combination and turn-off data connects between user terminal, test instruction is sent extremely
Each in the loudspeaker box combination is from speaker;
For it is described each from speaker, obtain and tested from the delivery time of the test instruction to described returned from speaker is received
Instruct the interval duration of the time of reception of response message;
It is shortest from speaker to obtain the interval duration, and be set as target keynote from speaker by the interval duration is shortest
Case;
It establishes a connection with the target main sound box.
2. according to the method described in claim 1, it is characterized in that, transmission test is instructed to every in the loudspeaker box combination
One from speaker, including:
It detects in the loudspeaker box combination with the presence or absence of the slave speaker for carrying out wired connection with the user terminal;
The described from speaker of wired connection is carried out if detecting in the loudspeaker box combination and there is the described and user terminal, by institute
It states and with the user terminal form from loudspeaker box combination from speaker described in wired connection;
Test instruction is sent to each from loudspeaker box combination from speaker.
3. according to the method described in claim 2, it is characterized in that, exist in detecting the loudspeaker box combination it is described with it is described
User terminal carries out the described after speaker of wired connection, described by the institute for carrying out wired connection with the user terminal
It states from speaker composition before loudspeaker box combination, the method further includes:
Determine the quantity of the slave speaker that wired connection is carried out with the user terminal;
It, then will the described and user when the quantity that the described and user terminal carries out the slave speaker of wired connection is one
Terminal carries out the described of wired connection and is set as the target main sound box from speaker;
When the quantity of the slave speaker for carrying out wired connection with the user terminal is multiple, then follow the steps by it is described with
The user terminal carries out the described of wired connection and is formed from speaker from loudspeaker box combination.
4. according to the method described in claim 2, it is characterized in that, the method further includes:
If detecting in the loudspeaker box combination, there is no carry out executing step from speaker described in wired connection with the user terminal
It is rapid to send test instruction to each in the loudspeaker box combination from speaker.
5. the method according to any one of Claims 1 to 4, which is characterized in that described to be built with the target main sound box
Vertical connection relation, including:
What reception user's operation target button was triggered establishes link order;
Respond the prompt message established link order, export for prompting validation information;
Receive the verification information for responding the prompt message input;
The verification information is sent to the target main sound box so that the target main sound box verify the verification information in advance
What is be arranged establishes whether the verification information connected matches for triggering the user terminal with the target main sound box;
If receive the prompt message for prompting successful match that the main sound box is sent, established with the target main sound box
Connection relation.
6. a kind of user terminal, which is characterized in that including:
Transmission unit, for when detect the default main sound box in loudspeaker box combination and between user terminal turn-off data connect when,
Test instruction is sent to each in the loudspeaker box combination from speaker;
Acquiring unit, for for it is described each from speaker, obtain described to receiving from the delivery time of the test instruction
The interval duration of the time of reception of test instruction response message is returned from speaker;
The acquiring unit is additionally operable to obtain the interval duration shortest from speaker;
Setting unit, for being set as target main sound box from speaker by the interval duration is shortest;
Unit is established, for establishing a connection with the target main sound box.
7. user terminal according to claim 6, which is characterized in that the transmission unit includes:
Detection module, for detecting in the loudspeaker box combination with the presence or absence of the slave sound for carrying out wired connection with the user terminal
Case;
Comprising modules, if being detected in the loudspeaker box combination for the detection module, there is the described and user terminal carries out
Wired connection it is described from speaker, described will carry out with the user terminal described in wired connection from speaker composition from voice box group
It closes;
First sending module is instructed for sending test to each from loudspeaker box combination from speaker.
8. user terminal according to claim 7, which is characterized in that the transmission unit further includes:
Determining module is carried out for there is the described and user terminal in detecting the loudspeaker box combination in the detection module
Wired connection it is described after speaker, the comprising modules by it is described carry out with the user terminal described in wired connection from
Speaker forms before loudspeaker box combination, determines the quantity of the slave speaker that wired connection is carried out with the user terminal;
Setup module, for when the quantity of the slave speaker for carrying out wired connection with the user terminal is one, then will
It is described to be set as the target main sound box from speaker with user terminal progress the described of wired connection;
The comprising modules are specifically used for when the quantity of the slave speaker for carrying out wired connection with the user terminal being multiple
When, with the user terminal form from loudspeaker box combination from speaker described in wired connection by described.
9. user terminal according to claim 7, which is characterized in that the transmission unit sends test instruction to the sound
If each in case combination is to detect to be not present in the loudspeaker box combination and user end from the specific implementation mode of speaker
End carries out the described from speaker of wired connection, then sends test instruction to each in the loudspeaker box combination from speaker.
10. the user terminal according to any one of claim 6~9, which is characterized in that the unit of establishing includes:
Receiving module establishes link order for receive that user's operation target button triggered;
Output module, for responding the prompt message established link order, export for prompting validation information;
The receiving module is additionally operable to receive the verification information for responding the prompt message input;
Second sending module, for sending the verification information to the target main sound box, so that the target main sound box is verified
The verification information is believed with the pre-set verification for establishing connection for triggering the user terminal and the target main sound box
Whether breath matches;
Establish module, if for the receiving module receive that the main sound box sends for prompting the prompt of successful match to believe
When breath, establish a connection with the target main sound box.
11. a kind of user terminal, which is characterized in that including:At least one processor, at least one input unit are at least one
Output device, memory, the memory include program storage area, and described program memory block is stored with application program, the place
It manages device and calls the application program, for executing speaker management method as described in any one in claim 1-5.
12. a kind of computer storage media, which is characterized in that be stored with application program in the computer storage media, the application
When program is called by processor, for realizing speaker management method as described in any one in claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810450300.8A CN108650594B (en) | 2015-11-04 | 2015-11-04 | Sound box management method, user terminal and computer storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810450300.8A CN108650594B (en) | 2015-11-04 | 2015-11-04 | Sound box management method, user terminal and computer storage medium |
CN201510746863.8A CN105307078B (en) | 2015-11-04 | 2015-11-04 | A kind of speaker management method and user terminal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510746863.8A Division CN105307078B (en) | 2015-11-04 | 2015-11-04 | A kind of speaker management method and user terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108650594A true CN108650594A (en) | 2018-10-12 |
CN108650594B CN108650594B (en) | 2020-12-15 |
Family
ID=55203741
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510746863.8A Active CN105307078B (en) | 2015-11-04 | 2015-11-04 | A kind of speaker management method and user terminal |
CN201810450300.8A Expired - Fee Related CN108650594B (en) | 2015-11-04 | 2015-11-04 | Sound box management method, user terminal and computer storage medium |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510746863.8A Active CN105307078B (en) | 2015-11-04 | 2015-11-04 | A kind of speaker management method and user terminal |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN105307078B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114040310A (en) * | 2021-11-05 | 2022-02-11 | 北京小雅星空科技有限公司 | Sound box system fault positioning method and device, storage medium and electronic equipment |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554639A (en) * | 2016-03-01 | 2016-05-04 | 广东欧珀移动通信有限公司 | Method and device for connecting mobile terminal to sound boxes |
CN108429562B (en) * | 2018-03-16 | 2020-03-06 | 英华达(上海)科技有限公司 | Multimedia equipment playing control method and multimedia system |
CN110856086A (en) * | 2019-10-30 | 2020-02-28 | 歌尔股份有限公司 | Method and device for controlling sound system and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011031910A1 (en) * | 2009-09-10 | 2011-03-17 | Koss Corporation | Synchronizing wireless earphones |
CN103338204A (en) * | 2013-07-05 | 2013-10-02 | 曾德钧 | Audio synchronization output method and system |
CN103634312A (en) * | 2013-11-26 | 2014-03-12 | 广州晶锐信息技术有限公司 | Device management method for realizing multi-audio fast synchrony based on audio sharing |
CN104581599A (en) * | 2014-12-30 | 2015-04-29 | 歌尔声学股份有限公司 | Method and system for synchronous broadcast of multiple speaker boxes, and speaker box |
CN105005217A (en) * | 2015-05-29 | 2015-10-28 | 广东欧珀移动通信有限公司 | Control method, wireless sound box, terminal and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003042858A1 (en) * | 2001-11-13 | 2003-05-22 | Enikia Llc | Media content and data distribution and consumption |
CN101465910B (en) * | 2009-01-12 | 2012-10-03 | 华为终端有限公司 | Control method, terminal and system for playing stereo based on mobile terminal |
CN101894452B (en) * | 2010-04-30 | 2013-06-26 | 中山大学 | Mobile communication network-based intelligent home control method and system |
CN104299632B (en) * | 2014-09-23 | 2017-06-27 | 广东欧珀移动通信有限公司 | Audio synchronization method, device and corresponding system |
CN104637505B (en) * | 2014-12-31 | 2017-06-16 | 小米科技有限责任公司 | Audio frequency playing method and device |
-
2015
- 2015-11-04 CN CN201510746863.8A patent/CN105307078B/en active Active
- 2015-11-04 CN CN201810450300.8A patent/CN108650594B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011031910A1 (en) * | 2009-09-10 | 2011-03-17 | Koss Corporation | Synchronizing wireless earphones |
CN103338204A (en) * | 2013-07-05 | 2013-10-02 | 曾德钧 | Audio synchronization output method and system |
CN103634312A (en) * | 2013-11-26 | 2014-03-12 | 广州晶锐信息技术有限公司 | Device management method for realizing multi-audio fast synchrony based on audio sharing |
CN104581599A (en) * | 2014-12-30 | 2015-04-29 | 歌尔声学股份有限公司 | Method and system for synchronous broadcast of multiple speaker boxes, and speaker box |
CN105005217A (en) * | 2015-05-29 | 2015-10-28 | 广东欧珀移动通信有限公司 | Control method, wireless sound box, terminal and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114040310A (en) * | 2021-11-05 | 2022-02-11 | 北京小雅星空科技有限公司 | Sound box system fault positioning method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108650594B (en) | 2020-12-15 |
CN105307078A (en) | 2016-02-03 |
CN105307078B (en) | 2018-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105072564B (en) | A kind of audio frequency playing method and device based on bluetooth connection | |
CN105447368B (en) | A kind of control method and user terminal of user terminal access permission | |
CN102547502B (en) | Headset, headset use control method and terminal | |
US9749329B2 (en) | Network connection managing device, system and method | |
CN105072537A (en) | Bluetooth connection-based audio play method and device | |
CN105307078B (en) | A kind of speaker management method and user terminal | |
CN105072611A (en) | Verification method and terminal | |
CN105245346B (en) | A kind of identity identifying method and user terminal | |
CN105468952A (en) | Authentication method and apparatus | |
CN106776385A (en) | A kind of transmission method of daily record log information, device and terminal | |
CN105764136B (en) | A kind of localization method and user terminal | |
CN105022297B (en) | A kind of sound box parameter collocation method, mobile terminal | |
CN106063364A (en) | Electronic device for controlling an external device using a number and method thereof | |
CN105392087B (en) | A kind of speaker management method and user terminal | |
CN108984231A (en) | A kind of login method and mobile terminal of application program account | |
CN110221736A (en) | Icon processing method, device, mobile terminal and storage medium | |
CN104363609A (en) | Access control equipment of wireless hot spot | |
CN103974215B (en) | Control method of electronic device and electronic equipment | |
CN106201930B (en) | A kind of device port determining device, terminal and method | |
CN108521443A (en) | The upgrade method and system and Related product of a kind of application | |
CN108345423A (en) | terminal control method, device and mobile terminal | |
CN107343238A (en) | Mulit-point Connection control method and external equipment | |
CN105635730B (en) | A kind of set-top box test method and user terminal | |
CN105550543B (en) | A kind of iris information processing method and user terminal | |
CN105898744B (en) | A kind of approaches to IM and relevant device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201215 |