CN108650594B - Sound box management method, user terminal and computer storage medium - Google Patents

Sound box management method, user terminal and computer storage medium Download PDF

Info

Publication number
CN108650594B
CN108650594B CN201810450300.8A CN201810450300A CN108650594B CN 108650594 B CN108650594 B CN 108650594B CN 201810450300 A CN201810450300 A CN 201810450300A CN 108650594 B CN108650594 B CN 108650594B
Authority
CN
China
Prior art keywords
slave
user terminal
box
verification information
loudspeaker
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.)
Expired - Fee Related
Application number
CN201810450300.8A
Other languages
Chinese (zh)
Other versions
CN108650594A (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 CN201810450300.8A priority Critical patent/CN108650594B/en
Publication of CN108650594A publication Critical patent/CN108650594A/en
Application granted granted Critical
Publication of CN108650594B publication Critical patent/CN108650594B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a sound box management method and a user terminal, wherein the sound box management method comprises the following steps: the method comprises the steps that when the user terminal detects that a preset main sound box in the sound box combination is disconnected from the user terminal, a test instruction is sent to each slave sound box in the sound box combination; aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned by the slave loudspeaker box; acquiring a slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; and establishing a connection relation with the target main sound box. In the embodiment of the invention, the terminal can re-determine a new target main sound box when the preset main sound box is disconnected from the user terminal, so that the success rate of normally playing data resources by combining the sound boxes can be improved.

Description

Sound box management method, user terminal and computer storage medium
Technical Field
The invention relates to the technical field of electronics, in particular to a sound box management method and a user terminal.
Background
With the rapid development of electronic technology and the rapid popularization of terminals, the functions of terminals are increasingly improved. Taking the sound box as an example, because the processor and the network interface are integrated in the sound box, the user can access the external network data resource by using the sound box. In practical applications, a user generally controls the sound box through a control terminal (such as a mobile phone or a tablet computer) to realize a function of accessing external network data resources by the sound box. Specifically, an application program for controlling the sound box is installed on the terminal, and then the sound box is controlled to acquire the data resource from the external data network by controlling the application program in the terminal, and the acquired data resource is played. In order to achieve better playing effect, a plurality of sound boxes are generally combined, one sound box is selected from the sound box combination as a main sound box to establish a connection relationship with a terminal installed with the application program, the terminal can control the whole sound box combination by controlling the main sound box, and other sound boxes need to transfer messages through the main sound box. However, if the main speaker is disconnected from the terminal, the entire speaker combination may not be used normally, and thus the data resource may not be played normally.
Disclosure of Invention
The embodiment of the invention provides a sound box management method and a user terminal, which can improve the success rate of normally playing data resources by sound box combination.
In a first aspect, an embodiment of the present invention discloses a sound box management method, including:
when detecting that a preset main sound box in the sound box combination is disconnected from a user terminal, sending a test instruction to each slave sound box in the sound box combination;
aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned by the slave loudspeaker box;
acquiring the slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box;
and establishing a connection relation with the target main sound box.
With reference to the implementation manner of the first aspect, in a first possible implementation manner of the first aspect, the sending a test instruction to each slave loudspeaker box in the loudspeaker box combination includes:
detecting whether a slave loudspeaker box in wired connection with the user terminal exists in the loudspeaker box combination;
if the slave loudspeaker box connected with the user terminal in a wired mode is detected to exist in the loudspeaker box combination, the slave loudspeaker box connected with the user terminal in a wired mode is combined into a slave loudspeaker box combination;
and sending a test instruction to each slave loudspeaker box in the slave loudspeaker box combination.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, after detecting that the slave loudspeaker in wired connection with the user terminal exists in the loudspeaker box combination, before the slave loudspeaker in wired connection with the user terminal is combined into a slave loudspeaker box combination, the method further includes:
determining the number of the slave loudspeaker boxes which are in wired connection with the user terminal;
when the number of the slave loudspeaker boxes in wired connection with the user terminal is one, setting the slave loudspeaker boxes in wired connection with the user terminal as the target master loudspeaker box;
and when the number of the slave loudspeaker boxes in wired connection with the user terminal is multiple, executing the step of combining the slave loudspeaker boxes in wired connection with the user terminal into a slave loudspeaker box combination.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the following steps may be further performed:
and if the slave loudspeaker box which is in wired connection with the user terminal does not exist in the loudspeaker box combination, executing the step of sending a test instruction to each slave loudspeaker box in the loudspeaker box combination.
With reference to the implementation manner of the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, and the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the establishing a connection relationship with the target main sound box includes:
receiving a connection establishing instruction triggered by a user operating a target key;
responding to the connection establishing instruction, and outputting prompt information for prompting input of verification information;
receiving verification information input in response to the prompt information;
sending the verification information to the target main sound box so that the target main sound box verifies whether the verification information is matched with preset verification information used for triggering the user terminal to establish connection with the target main sound box;
and if receiving prompt information which is sent by the main sound box and used for prompting successful matching, establishing a connection relation with the target main sound box.
In a second aspect, an embodiment of the present invention further discloses a user terminal, including:
the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending a test instruction to each slave loudspeaker box in the loudspeaker box combination when detecting that the preset master loudspeaker box in the loudspeaker box combination is disconnected from the user terminal;
the acquisition unit is used for acquiring the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned by the slave loudspeaker box aiming at each slave loudspeaker box;
the obtaining unit is further configured to obtain the slave loudspeaker box with the shortest interval duration;
the setting unit is used for setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box;
and the establishing unit is used for establishing a connection relation with the target main sound box.
With reference to the user terminal of the second aspect, in a first possible user terminal of the second aspect, the sending unit includes:
the detection module is used for detecting whether a slave loudspeaker box connected with the user terminal in a wired mode exists in the loudspeaker box combination;
the component module is used for combining the slave loudspeaker boxes which are in wired connection with the user terminal into a slave loudspeaker box assembly if the detection module detects that the slave loudspeaker boxes which are in wired connection with the user terminal exist in the loudspeaker box assembly;
and the first sending module is used for sending a test instruction to each slave loudspeaker box in the slave loudspeaker box combination.
With reference to the first possible user terminal of the second aspect, in a second possible user terminal of the second aspect, the sending unit further includes:
a determining module, configured to determine, after the detecting module detects that the slave loudspeaker box in wired connection with the user terminal exists in the loudspeaker box combination, the number of the slave loudspeaker boxes in wired connection with the user terminal before the composing module composes the slave loudspeaker box in wired connection with the user terminal into a slave loudspeaker box combination;
the setting module is used for setting the slave loudspeaker boxes in wired connection with the user terminal as the target master loudspeaker box when the number of the slave loudspeaker boxes in wired connection with the user terminal is one;
the component module is specifically configured to, when the number of the slave speakers in wired connection with the user terminal is multiple, combine the slave speakers in wired connection with the user terminal into a slave speaker combination.
With reference to the first possible user terminal of the second aspect, in a third possible user terminal of the second aspect, a specific implementation manner of the sending unit sending the test instruction to each slave loudspeaker box in the loudspeaker box combination is that if it is detected that there is no slave loudspeaker box in the loudspeaker box combination, the test instruction is sent to each slave loudspeaker box in the loudspeaker box combination, where the slave loudspeaker box is in wired connection with the user terminal.
With reference to any one of the user terminal of the second aspect, the first possible user terminal of the second aspect, the second possible user terminal of the second aspect, and the third possible user terminal of the second aspect, in a fourth possible user terminal of the second aspect, the establishing unit includes:
the receiving module is used for receiving a connection establishing instruction triggered by a user operation target key;
the output module is used for responding to the connection establishing instruction and outputting prompt information for prompting input of verification information;
the receiving module is also used for receiving verification information responding to the prompt information input;
the second sending module is used for sending the verification information to the target main sound box so that the target main sound box verifies whether the verification information is matched with preset verification information used for triggering the user terminal to establish connection with the target main sound box;
and the establishing module is used for establishing a connection relation with the target main sound box if the receiving module receives prompt information which is sent by the main sound box and used for prompting successful matching.
In the embodiment of the invention, when the user terminal detects that the preset main sound box in the sound box combination is disconnected from the user terminal, a test instruction is sent to each slave sound box in the sound box combination; aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned by the slave loudspeaker box; acquiring a slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; and establishing a connection relation with the target main sound box. In the embodiment of the invention, the user terminal can re-determine a new target main sound box when the preset main sound box is disconnected from the user terminal, so that the success rate of normally playing data resources by combining the sound boxes can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a sound box management method disclosed in an embodiment of the present invention;
fig. 2 is a schematic flow chart of another speaker management method disclosed in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a sound box management method and a user terminal. In the embodiment of the invention, the terminal can re-determine a new target main sound box when the preset main sound box is disconnected from the user terminal, so that the success rate of normally playing data resources by combining the sound boxes can be improved. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a sound box management method according to an embodiment of the present invention. The method shown in fig. 1 may be applied to a user terminal having access to external network data resources, such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), PAD, etc. As shown in fig. 1, the sound box management method may include the following steps:
s101, when the fact that data connection between a preset main sound box in the sound box combination and the user terminal is disconnected is detected, a test instruction is sent to each slave sound box in the sound box combination.
In the embodiment of the invention, the sound box combination is composed of at least two sound boxes, wherein one sound box in the sound box combination is directly in data connection with the user terminal and is called as a main sound box, and other sound boxes which are not in data connection with the user terminal are called as slave sound boxes. The user terminal can control the loudspeaker box combination by controlling the main loudspeaker box. The main sound box is in data connection with the user terminal, mainly in data connection with the user terminal provided with the application program for controlling the sound box.
In the embodiment of the invention, the preset main sound box can be the sound box with the minimum physical address in the whole sound box combination.
In the embodiment of the invention, the user terminal can detect whether the preset main sound box is disconnected from the user terminal in real time, and can send the test instruction to each slave sound box in the sound box combination when detecting that the preset main sound box in the sound box combination is disconnected from the user terminal.
S102, aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned from the loudspeaker box.
In the embodiment of the present invention, after the test instruction is sent to each slave loudspeaker in the loudspeaker combination, the user terminal may further obtain an interval duration from a sending time of the test instruction to a receiving time when the test instruction response message returned from the loudspeaker is received by each loudspeaker.
S103, obtaining the slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as the target master loudspeaker box.
In the embodiment of the present invention, after the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned from the sound box is obtained for each slave sound box, the slave sound box with the shortest interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned from the sound box in the sound box combination can be determined, and the slave sound box is set as the target master sound box.
In the embodiment of the invention, the target main sound box mainly comprises the auxiliary sound box except the preset main sound box in the sound box combination. And the target main loudspeaker box is mainly a loudspeaker box used for data transmission with the user terminal.
In the embodiment of the present invention, if the user terminal detects that the time intervals corresponding to at least two slave speakers in the speaker combination are the same and the time intervals corresponding to all the slave speakers in the speaker combination are the shortest, the user terminal may obtain the physical address of each of the at least two slave speakers, and set the slave speaker with the smallest physical address as the target master speaker.
And S104, establishing a connection relation with the target main sound box.
In the embodiment of the invention, after the target main sound box is found from the sound box combination, the user terminal can establish a connection relation with the target main sound box.
In fig. 1, it is described in detail that the user terminal sends a test instruction to each slave speaker in the speaker combination when detecting that the preset master speaker in the speaker combination is disconnected from the user terminal; aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned by the slave loudspeaker box; acquiring a slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; and establishing a connection relation with the target main sound box. In the embodiment of the invention, the terminal can re-determine a new target main sound box when the preset main sound box is disconnected from the user terminal, so that the success rate of normally playing data resources by combining the sound boxes can be improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of another speaker management method according to an embodiment of the present invention. As shown in fig. 2, the speaker management method may include the following steps:
s201, when the fact that data connection between a preset main sound box in the sound box combination and the user terminal is disconnected is detected, whether a slave sound box in wired connection with the user terminal exists in the sound box combination is detected.
In the embodiment of the invention, the sound box combination is composed of at least two sound boxes, wherein one sound box in the sound box combination is directly in data connection with the user terminal and is called as a main sound box, and other sound boxes which are not in data connection with the user terminal are called as slave sound boxes. The user terminal can control the loudspeaker box combination by controlling the main loudspeaker box. The main sound box is in data connection with the user terminal, mainly in data connection with the user terminal provided with the application program for controlling the sound box.
In the embodiment of the invention, the step of establishing the data connection between the preset main sound box and the user terminal mainly comprises the step of connecting the preset main sound box with an application program which is used for controlling the sound box combination in the user terminal.
In the embodiment of the invention, each sound box in the sound box combination can be connected with the user terminal. But instead of establishing a data connection with an application in the user terminal, the connection may be a physical connection (wired connection) or a wireless connection.
In the embodiment of the invention, when the data connection between the preset main sound box in the sound box combination and the user terminal is detected to be disconnected, in order to enable the sound box combination to still establish the data connection, the user terminal can detect whether a slave sound box in wired connection with the user terminal exists in the sound box combination.
In the embodiment of the invention, the wired connection can ensure that the data transmission is more stable in the data transmission process. Therefore, if there is a slave speaker connected to the user terminal through a wired connection in the speaker combination, it is possible to select a target master speaker from the wired slave speakers.
S202, if the fact that the slave loudspeaker box connected with the user terminal in a wired mode exists in the loudspeaker box combination is detected, the slave loudspeaker box connected with the user terminal in the wired mode is combined into the slave loudspeaker box combination.
In the embodiment of the invention, after the user terminal detects that the slave loudspeaker boxes in wired connection with the user terminal exist in the loudspeaker box combination, the number of the slave loudspeaker boxes in wired connection with the user terminal can be determined. When the number of the slave sound boxes in wired connection with the user terminal is one, setting the slave sound boxes in wired connection with the user terminal as target master sound boxes; when the number of the slave speakers connected to the user terminal by wire is multiple, the user terminal may continue to select the target master speaker among the multiple slave speakers.
In the embodiment of the present invention, if it is detected that there is no slave speaker in the speaker combination that is in wired connection with the user terminal, the user terminal may select a target master speaker from the slave speakers of the speaker combination except for the preset master speaker.
And S203, sending a test instruction to each slave loudspeaker box in the slave loudspeaker box combination.
S204, aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned from the loudspeaker box.
S205, the slave loudspeaker box with the shortest interval duration is obtained, and the slave loudspeaker box with the shortest interval duration is set as the target master loudspeaker box.
And S206, establishing a connection relation with the target main sound box.
In the embodiment of the present invention, establishing a connection relationship with the target main speaker may include the following steps:
11) receiving a connection establishing instruction triggered by a user operating a target key;
12) responding to the connection establishing instruction, and outputting prompt information for prompting to input verification information;
13) receiving verification information input in response to the prompt information;
14) sending verification information to a target main sound box so as to enable the target main sound box to verify whether the verification information is matched with preset verification information used for triggering the user terminal to establish connection with the target main sound box;
15) and if receiving prompt information which is sent by the main sound box and used for prompting successful matching, establishing a connection relation with the target main sound box.
In the embodiment of the invention, after the user terminal receives a connection establishing instruction triggered by the operation of a target key by a user, the user terminal outputs prompt information for prompting the input of verification information; and the user terminal may output an authentication information input port for inputting the authentication information.
In the embodiment of the present invention, the prompt message may include, but is not limited to, one or more combinations of a voice prompt, a text prompt, a flashing prompt, and a vibration prompt.
In the embodiment of the present invention, the verification information may include, but is not limited to, any one or a combination of several of a password to be verified, fingerprint information to be verified, face information to be verified, iris information to be verified, retina information to be verified, and voiceprint information to be verified.
In the embodiment of the present invention, the preset verification information for triggering the user terminal to establish a connection with the target main speaker may include, but is not limited to, any one or a combination of a preset verification password, preset verification fingerprint information, preset verification face information, preset verification iris information, preset verification retina information, and preset verification voiceprint information.
In an embodiment of the present invention, the preset verification information may include fingerprint string information and an input time corresponding to each fingerprint; correspondingly, verifying whether the verification information is consistent with the preset verification information for triggering the user terminal to establish the connection with the target main sound box may include the following steps:
verifying whether the fingerprint string is the same as the fingerprint string included in the preset verification information and whether the difference of the input time of the same fingerprint is smaller than a preset value, and if the fingerprint string is the same as the fingerprint string included in the preset verification information and the difference of the input time of the same fingerprint is smaller than the preset value, verifying that the verification information is consistent with the preset verification information; otherwise, the verification information is verified to be inconsistent with the preset verification information. By implementing the embodiment, the user terminal can be effectively prevented from being operated by an illegal user.
Fig. 2 shows details that when the user terminal selects the target master speaker, it further detects whether there is a slave speaker wired to the user terminal from the slave speakers in the speaker combination except for the preset master speaker, and if so, the target master speaker is selected from the slave speakers wired to the user terminal. Since the wired connection is more stable in the process of transmitting data, if the target master speaker is selected from the slave speakers that are wired to the user terminal, the stability of data transmission can be further increased.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention, configured to execute the sound box management method. The user terminal shown in fig. 3 may include, but is not limited to, a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and other user terminals having access to external network data resources. As shown in fig. 3, the user terminal may include: a sending unit 301, an obtaining unit 302, a setting unit 303, and a establishing unit 304, wherein,
the sending unit 301 is configured to send a test instruction to each slave speaker in the speaker combination when detecting that the preset master speaker in the speaker combination is disconnected from the user terminal.
In the embodiment of the invention, the sound box combination is composed of at least two sound boxes, wherein one sound box in the sound box combination is directly in data connection with the user terminal and is called as a main sound box, and other sound boxes which are not in data connection with the user terminal are called as slave sound boxes. The user terminal can control the loudspeaker box combination by controlling the main loudspeaker box. The main sound box is in data connection with the user terminal, mainly in data connection with the user terminal provided with the application program for controlling the sound box.
In the embodiment of the invention, the preset main sound box can be the sound box with the minimum physical address in the whole sound box combination.
In this embodiment of the present invention, the sending unit 301 may detect whether the preset main speaker is disconnected from the user terminal in real time, and send a test instruction to each slave speaker in the speaker combination when detecting that the preset main speaker in the speaker combination is disconnected from the user terminal.
The obtaining unit 302 is configured to obtain, for each slave loudspeaker, an interval duration from a sending time of the test instruction to a receiving time when the slave loudspeaker receives the test instruction response message returned by the slave loudspeaker.
In this embodiment of the present invention, after the sending unit 301 sends the test instruction to each slave speaker in the speaker combination, the obtaining unit 302 may further obtain an interval duration from a sending time of the test instruction to a receiving time when the slave speaker receives a response message of the test instruction.
The obtaining unit 302 is further configured to obtain the slave loudspeaker box with the shortest interval duration.
The setting unit 303 is configured to set the slave loudspeaker box with the shortest interval duration as the target master loudspeaker box.
In this embodiment of the present invention, after the obtaining unit 302 obtains, for each slave speaker, the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned from the speaker, the slave speaker with the shortest interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned from the speaker in the speaker combination may be determined, and the slave speaker is set as the target master speaker.
In the embodiment of the invention, the target main sound box mainly comprises the auxiliary sound box except the preset main sound box in the sound box combination. And the target main loudspeaker box is mainly a loudspeaker box used for data connection with the user terminal.
In the embodiment of the present invention, if it is detected that the time intervals corresponding to at least two slave speakers in the speaker combination are the same and the time intervals corresponding to all the slave speakers in the speaker combination are the shortest, the physical address of each of the at least two slave speakers may be obtained, and the slave speaker with the smallest physical address is set as the target master speaker.
And the establishing unit 304 is configured to establish a connection relationship with the target main loudspeaker.
In an embodiment of the present invention, after the target main speaker is found from the speaker combination, the establishing unit 304 may establish a connection relationship with the target main speaker.
In fig. 3, it is detailed that when it is detected that the preset master speaker in the speaker combination is disconnected from the user terminal, the sending unit 301 sends a test instruction to each slave speaker in the speaker combination; for each slave loudspeaker box, the obtaining unit 302 obtains the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned from the loudspeaker box; a slave loudspeaker box with the shortest interval duration is obtained, and a setting unit 303 sets the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; the establishing unit 304 establishes a connection relationship with the target main speaker. In the embodiment of the invention, when the preset main sound box is disconnected from the user terminal, a new target main sound box can be determined again, so that the success rate of normally playing data resources by combining the sound boxes can be improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, configured to execute the sound box management method. Fig. 4 is further detailed on the basis of fig. 3, and as shown in fig. 4, the sending unit 301 may include: the detecting module 3010, the determining module 3011, the setting module 3012, the composing module 3013, and the first sending module 3014, the establishing unit 304 may include a receiving module 3040, an outputting module 3041, a second sending module 3042, and an establishing module 3043, where,
the detecting module 3010 is configured to detect whether a slave speaker connected to the user terminal through a cable exists in the speaker combination.
The determining module 3011 is configured to determine, after the detecting module 3010 detects that there is a slave speaker in the speaker combination, where the slave speaker is in wired connection with the user terminal, before the forming module 3013 forms the slave speaker in wired connection with the user terminal into the slave speaker combination, the number of slave speakers in wired connection with the user terminal is determined.
The setting module 3012 is configured to, when the number of the slave speakers in wired connection with the user terminal is one, set the slave speaker in wired connection with the user terminal as a target master speaker.
The module 3013 is specifically configured to, when the number of slave speakers in wired connection with the user terminal is multiple, combine the slave speakers in wired connection with the user terminal into a slave speaker group.
A first sending module 3014, configured to send a test command to each slave loudspeaker in the slave loudspeaker set.
The receiving module 3040 is configured to receive a connection establishment instruction triggered by a user operating a target key.
The output module 3041 is configured to, in response to the connection establishment instruction, output a prompt message for prompting to input the verification information.
The receiving module 3040 is further configured to receive the verification information input in response to the prompt information.
The second sending module 3042 is configured to send the verification information to the target main sound box, so that whether the verification information of the target main sound box matches the preset verification information for triggering the user terminal to establish a connection with the target main sound box or not is determined.
The establishing module 3043 is configured to, if the receiving module 3040 receives a prompt message sent by the main speaker for prompting that the matching is successful, establish a connection relationship with the target main speaker.
In this embodiment of the present invention, after the receiving module 3040 receives a connection establishment instruction triggered by a user operating a target key, the output module 3041 outputs a prompt message for prompting to input verification information; and may output an authentication information input port for inputting authentication information.
In the embodiment of the present invention, the prompt message may include, but is not limited to, one or more combinations of a voice prompt, a text prompt, a flashing prompt, and a vibration prompt.
In the embodiment of the present invention, the verification information may include, but is not limited to, any one or a combination of several of a password to be verified, fingerprint information to be verified, face information to be verified, iris information to be verified, retina information to be verified, and voiceprint information to be verified.
In the embodiment of the present invention, the preset verification information for triggering the user terminal to establish a connection with the target main speaker may include, but is not limited to, any one or a combination of a preset verification password, preset verification fingerprint information, preset verification face information, preset verification iris information, preset verification retina information, and preset verification voiceprint information.
In an embodiment of the present invention, the preset verification information may include fingerprint string information and an input time corresponding to each fingerprint; correspondingly, verifying whether the verification information is consistent with the preset verification information for triggering the user terminal to establish the connection with the target main sound box may include the following steps:
verifying whether the fingerprint string is the same as the fingerprint string included in the preset verification information and whether the difference of the input time of the same fingerprint is smaller than a preset value, and if the fingerprint string is the same as the fingerprint string included in the preset verification information and the difference of the input time of the same fingerprint is smaller than the preset value, verifying that the verification information is consistent with the preset verification information; otherwise, the verification information is verified to be inconsistent with the preset verification information. By implementing the embodiment, the user terminal can be effectively prevented from being operated by an illegal user.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, configured to execute the sound box management method. As shown in fig. 5, the user terminal 500 may include: at least one processor 501, at least one input device 502, at least one output device 503, memory 504, and the like. Wherein the components are communicatively coupled via one or more buses 505. It will be understood by those skilled in the art that the configuration of the user terminal shown in fig. 5 is not intended to limit the embodiments of the present invention, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components. Wherein:
the processor 501 is a control center of the user terminal, connects various parts of the entire user terminal using various interfaces and lines, and performs various functions of the user terminal and processes data by operating or executing programs and/or modules stored in the memory 504 and calling data stored in the memory 504. The processor 501 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 501 may include only a Central Processing Unit (CPU), or may be a combination of a CPU, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), and various control chips. In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
The input device 502 may include a standard touch screen, keyboard, etc., and may also include a wired interface, wireless interface, etc.
The output device 503 may include a display screen, a speaker, etc., and may also include a wired interface, a wireless interface, etc.
The memory 504 can be used for storing software programs and modules, and the processor 501, the input device 502 and the output device 503 execute various functional applications of the user terminal and implement data processing by calling the software programs and modules stored in the memory 504. The memory 504 mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of the user terminal, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
In particular, the processor 501 invokes an application program stored in the memory 504 for performing the following operations:
when detecting that the preset master loudspeaker in the loudspeaker box combination is disconnected from the user terminal, the processor 501 controls the output device 503 to send a test instruction to each slave loudspeaker in the loudspeaker box combination;
for each slave loudspeaker, the processor 501 controls the input device 502 to obtain the interval duration from the sending time of the test instruction to the receiving time of the response message of the test instruction returned from the slave loudspeaker;
the processor 501 obtains the slave loudspeaker box with the shortest interval duration, and sets the slave loudspeaker box with the shortest interval duration as the target master loudspeaker box;
the processor 501 establishes a connection relationship with the target main speaker.
In the present invention, the processor 501 calls the application program stored in the memory 504, and executes the steps to send the test instruction to each slave speaker in the speaker combination, including:
the processor 501 detects whether a slave speaker connected with the user terminal through a wire exists in the speaker combination;
if the processor 501 detects that the slave loudspeaker box connected with the user terminal in a wired manner exists in the loudspeaker box combination, the slave loudspeaker box connected with the user terminal in a wired manner is combined into the slave loudspeaker box combination;
the processor 501 controls the output device 503 to send a test command to each slave loudspeaker in the slave loudspeaker set.
In the present invention, the processor 501 calls the application program stored in the memory 504, and after the step of executing detects that the slave loudspeaker box connected with the user terminal in a wired manner exists in the loudspeaker box combination, and before the step of executing the step of connecting the slave loudspeaker box connected with the user terminal in a wired manner to the slave loudspeaker box combination, the following steps may also be executed:
the processor 501 determines the number of slave speakers in wired connection with the user terminal;
when the number of the slave speakers in wired connection with the user terminal is one, the processor 501 sets the slave speakers in wired connection with the user terminal as target master speakers;
when the number of the slave speakers in wired connection with the user terminal is plural, the execution step processor 501 combines the slave speakers in wired connection with the user terminal into a slave speaker group.
In the present invention, the processor 501 calls the application program stored in the memory 504, and may further perform the following steps:
if the processor 501 detects that there is no slave speaker connected to the user terminal in the speaker set, the processor 501 executes the step of controlling the output device 503 to send a test command to each slave speaker in the speaker set.
In the present invention, the processor 501 calls the application program stored in the memory 504, and the execution steps establish a connection relationship with the target main speaker, including:
the processor 501 controls the input device 502 to receive a connection establishing instruction triggered by a user operating a target key;
the processor 501 controls the output device 503 to respond to the connection establishment instruction and output prompt information for prompting the input of the verification information;
the processor 501 controls the input device 502 to receive the verification information input in response to the prompt information;
the processor 501 controls the output device 503 to send verification information to the target main sound box, so that whether the verification information of the target main sound box is matched with the preset verification information for triggering the user terminal to establish connection with the target main sound box or not is determined;
if receiving a prompt message for prompting successful matching sent by the main speaker, the processor 501 establishes a connection relationship with the target main speaker.
Specifically, the user terminal described in the embodiment of the present invention may implement part or all of the processes in the embodiments of the sound box management method described in conjunction with fig. 1 and fig. 2 of the present invention.
The modules or sub-modules in all embodiments of the present invention may be implemented by a general-purpose Integrated Circuit, such as a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit).
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the user terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A sound box management method is characterized by comprising the following steps:
when detecting to predetermine in the audio amplifier combination and when breaking off data connection between main audio amplifier and the user terminal, send test instruction to each in the audio amplifier combination follows the audio amplifier, include: detecting whether a slave loudspeaker box in wired connection with the user terminal exists in the loudspeaker box combination; if the slave loudspeaker box connected with the user terminal in a wired mode is detected to exist in the loudspeaker box combination, the slave loudspeaker box connected with the user terminal in a wired mode is combined into a slave loudspeaker box combination; sending a test instruction to each slave loudspeaker in the slave loudspeaker combination;
aiming at each slave loudspeaker box, acquiring the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned by the slave loudspeaker box;
acquiring the slave loudspeaker box with the shortest interval duration, and setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; if the interval duration corresponding to at least two slave loudspeaker boxes is the same and the interval duration corresponding to at least two slave loudspeaker boxes is the shortest, acquiring the physical address of each of the at least two slave loudspeaker boxes, and setting the slave loudspeaker box with the smallest physical address as a target master loudspeaker box;
receiving input verification information, and sending the verification information to the target main sound box so that the target main sound box verifies whether the verification information is matched with preset verification information, wherein the verification information comprises the following steps: if the fingerprint string contained in the verification information is the same as the fingerprint string contained in the preset verification information, and the difference value between the input time of the fingerprint string contained in the verification information and the input time of the same fingerprint string contained in the preset verification information is smaller than a preset value, matching the verification information with the preset verification information;
and if the verification information is matched with the preset verification information, establishing a connection relation with the target main sound box.
2. The method of claim 1, wherein after detecting that the slave speaker in wired connection with the user terminal is in the speaker combination, before the slave speaker in wired connection with the user terminal is combined into a slave speaker combination, the method further comprises:
determining the number of the slave loudspeaker boxes which are in wired connection with the user terminal;
when the number of the slave loudspeaker boxes in wired connection with the user terminal is one, setting the slave loudspeaker boxes in wired connection with the user terminal as the target master loudspeaker box;
and when the number of the slave loudspeaker boxes in wired connection with the user terminal is multiple, executing the step of combining the slave loudspeaker boxes in wired connection with the user terminal into a slave loudspeaker box combination.
3. The method of claim 1, further comprising:
and if the slave loudspeaker box which is in wired connection with the user terminal does not exist in the loudspeaker box combination, executing the step of sending a test instruction to each slave loudspeaker box in the loudspeaker box combination.
4. The method according to any one of claims 1 to 3, wherein the establishing a connection relationship with the target main speaker comprises:
receiving a connection establishing instruction triggered by a user operating a target key;
responding to the connection establishing instruction, and outputting prompt information for prompting input of verification information;
receiving verification information input in response to the prompt information;
sending the verification information to the target main sound box so that the target main sound box verifies whether the verification information is matched with preset verification information used for triggering the user terminal to establish connection with the target main sound box;
and if receiving prompt information which is sent by the main sound box and used for prompting successful matching, establishing a connection relation with the target main sound box.
5. A user terminal, comprising:
the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending a test instruction to each slave loudspeaker box in the loudspeaker box combination when detecting that the preset master loudspeaker box in the loudspeaker box combination is disconnected from the user terminal;
the acquisition unit is used for acquiring the interval duration from the sending time of the test instruction to the receiving time of the test instruction response message returned by the slave loudspeaker box aiming at each slave loudspeaker box;
the obtaining unit is further configured to obtain the slave loudspeaker box with the shortest interval duration;
the setting unit is used for setting the slave loudspeaker box with the shortest interval duration as a target master loudspeaker box; if the interval duration corresponding to at least two slave loudspeaker boxes is the same and the interval duration corresponding to at least two slave loudspeaker boxes is the shortest, acquiring the physical address of each of the at least two slave loudspeaker boxes, and setting the slave loudspeaker box with the smallest physical address as a target master loudspeaker box;
the establishing unit is used for receiving input verification information and sending the verification information to the target main sound box so as to enable the target main sound box to verify whether the verification information is matched with preset verification information or not, and comprises the following steps: if the fingerprint string contained in the verification information is the same as the fingerprint string contained in the preset verification information, and the difference value between the input time of the fingerprint string contained in the verification information and the input time of the same fingerprint string contained in the preset verification information is smaller than a preset value, matching the verification information with the preset verification information; if the verification information is matched with the preset verification information, establishing a connection relation with the target main sound box;
wherein the transmitting unit includes:
the detection module is used for detecting whether a slave loudspeaker box connected with the user terminal in a wired mode exists in the loudspeaker box combination;
the component module is used for combining the slave loudspeaker boxes which are in wired connection with the user terminal into a slave loudspeaker box assembly if the detection module detects that the slave loudspeaker boxes which are in wired connection with the user terminal exist in the loudspeaker box assembly;
and the first sending module is used for sending a test instruction to each slave loudspeaker box in the slave loudspeaker box combination.
6. The UE of claim 5, wherein the sending unit further comprises:
a determining module, configured to determine, after the detecting module detects that the slave loudspeaker box in wired connection with the user terminal exists in the loudspeaker box combination, the number of the slave loudspeaker boxes in wired connection with the user terminal before the composing module composes the slave loudspeaker box in wired connection with the user terminal into a slave loudspeaker box combination;
the setting module is used for setting the slave loudspeaker boxes in wired connection with the user terminal as the target master loudspeaker box when the number of the slave loudspeaker boxes in wired connection with the user terminal is one;
the component module is specifically configured to, when the number of the slave speakers in wired connection with the user terminal is multiple, combine the slave speakers in wired connection with the user terminal into a slave speaker combination.
7. The user terminal of claim 6, wherein the sending unit sends the test command to each slave loudspeaker of the loudspeaker set in a specific embodiment that if it is detected that there is no slave loudspeaker in the loudspeaker set that is wired to the user terminal, the sending unit sends the test command to each slave loudspeaker of the loudspeaker set.
8. The UE of any one of claims 5 to 7, wherein the establishing unit comprises:
the receiving module is used for receiving a connection establishing instruction triggered by a user operation target key;
the output module is used for responding to the connection establishing instruction and outputting prompt information for prompting input of verification information;
the receiving module is also used for receiving verification information responding to the prompt information input;
the second sending module is used for sending the verification information to the target main sound box so that the target main sound box verifies whether the verification information is matched with preset verification information used for triggering the user terminal to establish connection with the target main sound box;
and the establishing module is used for establishing a connection relation with the target main sound box if the receiving module receives prompt information which is sent by the main sound box and used for prompting successful matching.
9. A user terminal, comprising: at least one processor, at least one input device, at least one output device, and a memory, wherein the memory includes a program storage area, the program storage area stores an application program, and the processor calls the application program to execute the sound box management method according to any one of claims 1 to 4.
10. A computer storage medium, wherein an application program is stored in the computer storage medium, and when the application program is called by a processor, the application program is used for implementing the speaker management method according to any one of claims 1 to 4.
CN201810450300.8A 2015-11-04 2015-11-04 Sound box management method, user terminal and computer storage medium Expired - Fee Related CN108650594B (en)

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
CN201510746863.8A CN105307078B (en) 2015-11-04 2015-11-04 A kind of speaker management method and user terminal
CN201810450300.8A CN108650594B (en) 2015-11-04 2015-11-04 Sound box management method, user terminal and computer storage medium

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 CN108650594A (en) 2018-10-12
CN108650594B true CN108650594B (en) 2020-12-15

Family

ID=55203741

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810450300.8A Expired - Fee Related CN108650594B (en) 2015-11-04 2015-11-04 Sound box management method, user terminal and computer storage medium
CN201510746863.8A Active CN105307078B (en) 2015-11-04 2015-11-04 A kind of speaker management method and user terminal

Family Applications After (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) CN108650594B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN114040310A (en) * 2021-11-05 2022-02-11 北京小雅星空科技有限公司 Sound box system fault positioning method and device, storage medium and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
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
EP2476263B1 (en) * 2009-09-10 2014-04-23 Koss Corporation Synchronizing wireless earphones
CN101894452B (en) * 2010-04-30 2013-06-26 中山大学 Mobile communication network-based intelligent home control method and system
CN103338204B (en) * 2013-07-05 2016-12-28 深圳市云动创想科技有限公司 A kind of 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
CN104299632B (en) * 2014-09-23 2017-06-27 广东欧珀移动通信有限公司 Audio synchronization method, device and corresponding system
CN104581599B (en) * 2014-12-30 2018-11-27 歌尔股份有限公司 A kind of method and system that multiple speakers are played simultaneously
CN104637505B (en) * 2014-12-31 2017-06-16 小米科技有限责任公司 Audio frequency playing method and device
CN105005217B (en) * 2015-05-29 2017-10-17 广东欧珀移动通信有限公司 A kind of method of control, wireless sound box, terminal and system

Also Published As

Publication number Publication date
CN105307078A (en) 2016-02-03
CN108650594A (en) 2018-10-12
CN105307078B (en) 2018-05-29

Similar Documents

Publication Publication Date Title
US9979497B2 (en) Audio playing method and apparatus based on Bluetooth connection
CN109075820B (en) Bluetooth pairing method, terminal device and readable storage medium
CN108650594B (en) Sound box management method, user terminal and computer storage medium
US9749329B2 (en) Network connection managing device, system and method
CN106201574B (en) Application interface starting method and device
CN105072537A (en) Bluetooth connection-based audio play method and device
US11210056B2 (en) Electronic device and method of controlling thereof
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN109951765B (en) Electronic device providing secure audio output
CN105050061A (en) Method and device for sending messages on the basis of user voiceprint information
CN113806037A (en) Service calling method and device, storage medium and electronic equipment
CN108052407A (en) A kind of application crash means of defence, device, equipment and storage medium
CN111356117A (en) Voice interaction method and Bluetooth device
CN107533596A (en) Fingerprint identification method and mobile terminal
CN107239685B (en) Method of controlling bluetooth device, and computer-readable storage medium
CN105392087A (en) Loudspeaker box management method and user terminal
WO2020044037A1 (en) Speech recognition
CN105025482B (en) Communication information processing method and equipment thereof
CN111148188B (en) Network connection method, device, storage medium and electronic equipment
CN114884990A (en) Screen projection method and device based on virtual screen
CN114222277A (en) Wireless Bluetooth headset connection method and device, terminal equipment and wireless Bluetooth headset
US20210027765A1 (en) Electronic device and operating method thereof
CN105991728B (en) File downloading method and terminal
KR20200126850A (en) Method for authenticating user and electronic device for supporting the same
CN105635730B (en) A kind of set-top box test method and user terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201215

CF01 Termination of patent right due to non-payment of annual fee