CN114268896B - Configuration method of combined sound box, sound box and electronic equipment - Google Patents

Configuration method of combined sound box, sound box and electronic equipment Download PDF

Info

Publication number
CN114268896B
CN114268896B CN202010963117.5A CN202010963117A CN114268896B CN 114268896 B CN114268896 B CN 114268896B CN 202010963117 A CN202010963117 A CN 202010963117A CN 114268896 B CN114268896 B CN 114268896B
Authority
CN
China
Prior art keywords
sound box
sound
speaker
interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010963117.5A
Other languages
Chinese (zh)
Other versions
CN114268896A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010963117.5A priority Critical patent/CN114268896B/en
Priority to PCT/CN2021/113271 priority patent/WO2022052760A1/en
Publication of CN114268896A publication Critical patent/CN114268896A/en
Application granted granted Critical
Publication of CN114268896B publication Critical patent/CN114268896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/22Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only 
    • H04R1/24Structural combinations of separate transducers or of two parts of the same transducer and responsive respectively to two or more frequency ranges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

A configuration method of a combined sound box, the sound box and electronic equipment relate to the technical field of communication, and characters of the sound boxes participating in combination are set in an intuitive mode, so that the accuracy of character setting is improved. The electronic equipment displays a first interface for constructing an N-channel combined sound box; displaying a second interface in response to a first operation at the first interface; the second interface indicates the placement layout of N sound boxes of the N sound channels; responsive to a second operation at the second interface, broadcasting a NAN post message to display a third interface; the third interface prompts the electronic equipment to be close to the sound box of the first role in the N sound boxes, and indicates the role of each sound box; receiving a first message from a first sound box, wherein the first message comprises an identification of the first sound box and a first key; and sending first encryption information to the first sound box, wherein the first encryption information is encrypted by adopting a first key and comprises first indication information indicating that the first sound box is configured into a first role and first distribution network information supporting interaction of N sound boxes.

Description

Configuration method of combined sound box, sound box and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a configuration method of a combined sound box, the sound box and electronic equipment.
Background
With the development of audio technology, users have increasingly demanded audio playback effects from audio devices (such as speakers). In order to enhance the audio playback effect, many users construct a plurality of speakers as a combined speaker. The combined sound box constructed by the sound boxes can play multi-channel audio (such as stereophonic sound or surround sound) to generate a reverberation effect, and can bring an immersive sensation to a user.
In the process of constructing the composite speaker, it is necessary to designate speakers participating in the composite speaker and designate the roles (e.g., left channel, right channel, left surround channel, right surround channel, etc.) of each speaker separately. And, it is also necessary to configure the network information for each sound box separately. For example, the distribution network information may include: the wireless local area network service set identification (service set identifier, SSID) and access password of the loudspeaker box, indication information for indicating the role of the loudspeaker box, authentication credentials and keys for data transmission among the loudspeaker boxes, and the like.
Currently, in a scheme of constructing a combined sound box, a user can manually set a role of each sound box in a sound box application (application) of an electronic device (such as a mobile phone); and the user manually operates the sound boxes APP to control the mobile phone to send corresponding distribution network information to each sound box one by one so as to construct a combined sound box.
However, in the case that the external shapes of the speakers participating in the combination are substantially the same, the user manually sets the roles of each speaker, which may cause a wrong setting of the roles because it is difficult for the user to distinguish the respective speakers, and affect the audio playing effect of the combined speaker.
Disclosure of Invention
The utility model provides a configuration method, audio amplifier and electronic equipment of combination audio amplifier can set up the role of each audio amplifier of participating in the combination through audio-visual mode, can promote the rate of accuracy that the role set up, and then can promote the effect of combination audio amplifier broadcast audio.
In a first aspect, the present application provides a method for configuring a combined sound box, where the method is used for configuring a combined sound box by an electronic device, and a first application APP is installed in the electronic device. The combined sound box comprises a plurality of sound boxes, and each sound box comprises a first antenna and a second antenna. The transmitting distance of the first antenna is a first distance, and the transmitting distance of the second antenna is a second distance. The first distance is less than the second distance.
The electronic device may display a first interface of the first APP. The first interface is used for triggering the electronic equipment to construct the combined sound box with the N sound channels, N is more than or equal to 2, and N is a positive integer. In response to a first operation of the user at the first interface, the electronic device may display a second interface. The second interface is used for indicating the placement layout of N sound boxes of the N sound channels. The role of each of the N speakers is determined by the placement layout of the N speakers. For example, taking n=5 as an example, 5 speakers may construct a combined speaker including surround sound of a left front channel, a right front channel, a center channel, a right surround channel, and a left surround channel. The placement positions of the sound boxes with different roles in the 5 sound boxes are different.
In response to a second operation by the user at the second interface, the electronic device may broadcast a proximity awareness network (neighborhood aware network, NAN) publication message. The NAN release message is used for indicating a loudspeaker box subscribed to the NAN service to use the first antenna. The electronic device may display a third interface. The third interface is used for prompting a user to enable the electronic equipment to be close to the sound box of the first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance. The third interface is further configured to indicate a role of one or more speakers of the N speakers including the speaker of the first role. Thus, the user can clearly determine the role of the sound box which is currently being configured as the first role.
A first speaker of the N speakers receives the NAN release message, and in response to the NAN release message, the first speaker may broadcast the first message using the first antenna. After the user holds the electronic device near the sound box of the first role in the N sound boxes according to the instruction of the third interface, the electronic device can receive the first message from the first sound box. The first message includes an identification of the first speaker and a first key. The electronic device may then send the first encrypted information to the first speaker. The first encryption information is obtained by encrypting the first configuration information by using a first key. The first configuration information includes first distribution network information and first indication information. The first indication information is used for indicating that the first sound box is configured as a first character, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
By adopting the scheme, the electronic equipment can support the user to set the roles of the various sound boxes participating in the combination in an intuitive way. Therefore, the problem of character setting errors caused by the fact that users are difficult to distinguish each sound box can be solved, and the accuracy of character setting can be improved. Moreover, the roles of the sound boxes participating in the combination are accurately set, so that the audio playing effect of the combined sound box can be improved.
And, the effective transmission distance of the sound box for wireless communication by using the first antenna (i.e. weak antenna) is a first distance (e.g. 0.3 m). Only when the distance between the electronic equipment and the sound box is smaller than the first distance, the short-distance message sent by the sound box can be received. And other devices with a distance greater than the first distance from the sound box cannot receive the short-distance message sent by the sound box.
Such ultrashort distance communication can guarantee that the short-distance message that the audio amplifier sent is not received by other equipment, thereby can avoid because other equipment obtain the secret key of audio amplifier and audio amplifier interaction operation audio amplifier, can guarantee the security of data transmission between electronic equipment and the audio amplifier.
In a possible design manner of the first aspect, a second speaker of the N speakers may also receive the NAN release message, and in response to the NAN release message, the second speaker broadcasts the second message using the first antenna. The electronic device may display the fourth interface. The fourth interface is used for prompting a user to enable the electronic device to be close to a sound box of a second role in the N sound boxes, so that the distance between the electronic device and the sound box of the second role is within a first distance. The fourth interface is further used for indicating roles of one or more speakers including the speaker with the second role in the N speakers. Thus, the user can determine the role of the sound box currently being configured as the second role.
After the user holds the electronic device close to the sound box of the first role in the N sound boxes according to the instruction of the fourth interface, the electronic device can receive the second message from the second sound box. The first message includes an identification of the second speaker and a second key. The electronic device may then send the second encrypted information to the second speaker. The second encryption information is obtained by encrypting the second configuration information with a second key. The second configuration information includes second distribution network information and second indication information. The second indication information is used for indicating that the second sound box is configured into a second role, and the second distribution network information is used for supporting interaction between the second sound box and other sound boxes in the N sound boxes.
After the electronic device sends the first encryption information to the first sound box, the configuration work of the sound box with the first role is completed. At this time, the electronic device may display a fourth interface, prompting the user to hold the electronic device close to the speaker of the second role, so as to configure the speaker of the second role. By adopting the scheme, the electronic equipment can support the user to set the roles of the various sound boxes participating in the combination in an intuitive way. Thus, the accuracy of character setting can be improved. And by adopting ultra-short distance communication, the safety of data transmission between the electronic equipment and the sound box can be ensured.
In another possible design of the first aspect, after the electronic device sends the first encrypted information to the first speaker, the electronic device may receive a first confirmation message from the first speaker, where the first confirmation message is used to indicate that the first speaker is configured successfully. The electronic device displaying the fourth interface may specifically include: and after the electronic equipment receives the first confirmation message, displaying a fourth interface. That is, the electronic device may reconfigure the speakers of one character (e.g., the second character) after determining that the speakers of the next character (e.g., the first character) are configured.
In another possible design manner of the first aspect, the N speakers may form a combined speaker in an AP mode in which a main speaker is an Access Point (AP). That is, a master speaker of the N speakers may serve as an AP to provide a wireless local area network (e.g., a first wireless local area network), and a slave speaker of the N speakers may access the first wireless local area network provided by the master speaker. The N speakers may interact through the first wireless local area network.
In another possible design manner of the first aspect, in a scenario in which the combined sound box is constructed in the AP mode, the second configuration information may further include first identity information. The first identity information is used for indicating that the second sound box is configured as a slave sound box and is also used for indicating that the second sound box is connected with the master sound box to serve as an AP to provide a first wireless local area network. The second network information may include: a first SSID and a first access password of a first wireless local area network. Thus, the slave sound box (such as the second sound box) can be accessed into the master sound box according to the first SSID and the first access password to provide a first wireless local area network, and can interact with the master sound box through the first wireless local area network.
In another possible design manner of the first aspect, in a scenario in which the combined sound box is constructed in the AP mode, the first configuration information further includes second identity information. The first identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box is used as an AP to provide the first wireless local area network. The first distribution network information includes: a first SSID and a first access password of a first wireless local area network. Thus, the master speaker (such as the first speaker) can provide the first wireless local area network, and the slave speaker accesses the first wireless local area network according to the first SSID and the first access password, and then interacts with other speakers in the combined speaker through the first wireless local area network.
In this design, the first SSID and the first access password of the first wireless local area network provided by the main speaker box may be specified by the electronic device.
In another possible design manner of the first aspect, in a scenario in which the composite speaker is constructed in the AP mode, the first SSID and the first access password of the first wireless local area network provided by the main speaker may be obtained by the electronic device from the main speaker. Specifically, the first configuration information further includes second identity information. The second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box is used as an AP to provide the first wireless local area network. The method further comprises the following steps: the electronic device obtains a first SSID and a first access password of the first wireless local area network from the first sound box.
In another possible design manner of the first aspect, in a scenario in which the combined speaker is configured in the AP mode, the first identity information is further used to indicate a second wireless local area network provided by the first speaker access router.
The electronic device may indicate the second SSID and the second access password of the second wireless local area network to the main speaker (e.g., the first speaker) through the first network configuration information. Specifically, the first distribution network information further includes: a second SSID and a second access password of a second wireless local area network.
Or the electronic device may encrypt the second SSID and the second access password of the second wireless local area network with the first key to obtain the third encrypted information. And then, the third encryption information is sent to the first sound box.
In another possible design manner of the first aspect, the N speakers may form a combined speaker in a non-AP mode. Specifically, N speakers (including a master speaker and a slave speaker) may access a router to provide a wireless local area network (e.g., a second wireless local area network). The N speakers may interact through the second wireless local area network.
In another possible design manner of the first aspect, in a scenario in which the combined sound box is constructed in the non-AP mode, the second configuration information further includes the first identity information. The first identity information is used to indicate that the second speaker is configured as a slave speaker and is also used to indicate that the second speaker accesses a second wireless local area network provided by the router. The second distribution network information includes: a second SSID and a second access password of a second wireless local area network. Thus, the slave speaker (such as the second speaker) can access the router to provide the second wireless local area network according to the second SSID and the second access code, and can interact with the master speaker.
In another possible design manner of the first aspect, in a scenario in which the combined sound box is constructed in the non-AP mode, the first configuration information further includes second identity information. The second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box accesses a second wireless local area network provided by the router. The first distribution network information further includes: a second SSID and a second access password of a second wireless local area network. Thus, the master speaker (e.g., the first speaker) can access the router to provide a second wireless local area network according to the second SSID and the second access code, and can interact with the slave speaker.
In another possible design manner of the first aspect, in a scenario in which the combined sound box is constructed in the AP mode or the non-AP mode, the electronic device may further indicate to the master sound box the identity and the role of each slave sound box. Specifically, the method may further include: the electronic equipment sends the identification and the second indication information of the second sound box to the first sound box. Therefore, the master sound box can interact with the slave sound box according to the identification and the roles of each slave sound box, so that the sound box can be conveniently played according to the correct roles by each sound box, and the audio playing effect of the combined sound box can be improved.
In another possible design manner of the first aspect, the second configuration information further includes a speaker key and a credential for N speaker interactions. The first configuration information further includes speaker keys and credentials for the N speaker interactions. Thus, the first speaker and the second speaker may interact through a first wireless local area network provided by the first speaker according to the speaker key and the credential. The loudspeaker boxes are subjected to data interaction by adopting the loudspeaker box secret keys and the certificates, so that the safety of data transmission among the combined loudspeaker boxes can be improved.
In a second aspect, the present application provides a method for configuring a composite speaker, where the method is used for configuring a composite speaker by an electronic device. The electronic device is provided with a first APP. The combined sound box comprises a plurality of sound boxes, and each sound box comprises a first antenna and a second antenna. The transmitting distance of the first antenna is a first distance, and the transmitting distance of the second antenna is a second distance. The first distance is less than the second distance.
The electronic device may display a first interface of the first APP. The first interface is used for triggering the electronic equipment to construct the combined sound box with the N sound channels, N is more than or equal to 2, and N is a positive integer. In response to a first operation of the user at the first interface, the electronic device may display a second interface. The second interface is used for indicating the placement layout of the N sound boxes of the N sound channels. The role of each of the N speakers is determined by the placement layout of the N speakers. For example, taking n=5 as an example, 5 speakers may construct a combined speaker including surround sound of a left front channel, a right front channel, a center channel, a right surround channel, and a left surround channel. The placement positions of the sound boxes with different roles in the 5 sound boxes are different.
In response to a second operation by the user at the second interface, the electronic device may broadcast a proximity awareness network (neighborhood aware network, NAN) posting message and display a third interface. The NAN release message is used for indicating a loudspeaker box subscribed to the NAN service to use the first antenna. The third interface is used for prompting a user to enable the electronic equipment to be close to the sound box of the first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance. The third interface is further configured to indicate a role of one or more speakers of the N speakers including the speaker of the first role. Thus, the user can clearly determine the role of the sound box which is currently being configured as the first role.
After the user holds the electronic device near the sound box of the first role in the N sound boxes according to the instruction of the third interface, the electronic device can receive the first message from the first sound box. The first message includes an identification of the first speaker and a first key. The electronic device may then send the first encrypted information to the first speaker. The first encryption information is obtained by encrypting the first configuration information by using a first key. The first configuration information includes first distribution network information and first indication information. The first indication information is used for indicating that the first sound box is configured as a first character, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
By adopting the scheme, the electronic equipment can support the user to set the roles of the various sound boxes participating in the combination in an intuitive way. Therefore, the problem of character setting errors caused by the fact that users are difficult to distinguish each sound box can be solved, and the accuracy of character setting can be improved. Moreover, the roles of the sound boxes participating in the combination are accurately set, so that the audio playing effect of the combined sound box can be improved.
And, the effective transmission distance of the sound box for wireless communication by using the first antenna (i.e. weak antenna) is a first distance (e.g. 0.3 m). Only when the distance between the electronic equipment and the sound box is smaller than the first distance, the short-distance message sent by the sound box can be received. And other devices with a distance greater than the first distance from the sound box cannot receive the short-distance message sent by the sound box. Such ultrashort distance communication can guarantee that the short-distance message that the audio amplifier sent is not received by other equipment, thereby can avoid because other equipment obtain the secret key of audio amplifier and audio amplifier interaction operation audio amplifier, can guarantee the security of data transmission between electronic equipment and the audio amplifier.
In a third aspect, the present application provides a method for configuring a composite speaker, where the method is used for configuring a composite speaker by an electronic device, and the electronic device is installed with a first APP. The combined sound box comprises a plurality of sound boxes, and each sound box comprises a first antenna and a second antenna. The transmitting distance of the first antenna is a first distance, the transmitting distance of the second antenna is a second distance, and the first distance is smaller than the second distance.
The electronic equipment can display a first interface of the first APP; the first interface is used for triggering the electronic equipment to construct the combined sound box with the N sound channels, N is more than or equal to 2, and N is a positive integer. In response to a first operation of the user on the first interface, the electronic device may display a second interface and broadcast a NAN posting message. The second interface is used for indicating the placement layout of N sound boxes of the N sound channels. The role of each of the N speakers is determined by the placement layout of the N speakers. The NAN release message is for instructing a speaker subscribing to a NAN service to use a first antenna. In response to a second operation of the user at the second interface, the electronic device may display a third interface. The third interface is used for prompting a user to enable the electronic equipment to be close to the sound box of the first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance. The third interface is further configured to indicate a role for one or more of each of the N speakers, including the speaker of the first role. The electronic device receives a first message from a first speaker of a first character, the first message including an identification of the first speaker and a first key. Finally, the electronic device may send the first encrypted information to the first speaker. The first encryption information is obtained by encrypting the first configuration information by using a first key. The first configuration information includes first distribution network information and first indication information. The first indication information is used for indicating that the first sound box is configured as a first character, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
Unlike the methods of the first and second aspects described above, in the method of the third aspect, the electronic device may broadcast the NAN posting message in response to a first operation by the user at the first interface; rather than broadcasting the NAN post message in response to a second operation of the user at the second interface. Other features of the method provided in the third aspect are the same as those of the method provided in the first aspect, and are not repeated herein.
In a possible design manner of the second aspect or the third aspect, the second interface may be further configured to indicate a role of each of the N speakers. That is, the electronic device may indicate, at the second interface, not only the placement layout of the N speakers of the N channels, but also the role of each of the N speakers to the user.
In another possible design manner of the second aspect or the third aspect, after the electronic device sends the first encrypted information to the first speaker, the electronic device may display the fourth interface. The fourth interface is used for prompting a user to enable the electronic device to be close to a sound box of a second role in the N sound boxes, so that the distance between the electronic device and the sound box of the second role is within a first distance. The fourth interface is further used for indicating roles of one or more speakers including the speaker with the second role in the N speakers. Thus, the user can determine the role of the sound box currently being configured as the second role.
After the user holds the electronic device close to the sound box of the first role in the N sound boxes according to the instruction of the fourth interface, the electronic device can receive the second message from the second sound box. The second message includes an identification of the second speaker and a second key. The electronic device may then send the second encrypted information to the second speaker. The second encryption information is obtained by encrypting the second configuration information with a second key. The second configuration information includes second distribution network information and second indication information. The second indication information is used for indicating that the second sound box is configured into a second role, and the second distribution network information is used for supporting interaction between the second sound box and other sound boxes in the N sound boxes.
After the electronic device sends the first encryption information to the first sound box, the configuration work of the sound box with the first role is completed. At this time, the electronic device may display a fourth interface, prompting the user to hold the electronic device close to the speaker of the second role, so as to configure the speaker of the second role. By adopting the scheme, the electronic equipment can support the user to set the roles of the various sound boxes participating in the combination in an intuitive way. Thus, the accuracy of character setting can be improved. And by adopting ultra-short distance communication, the safety of data transmission between the electronic equipment and the sound box can be ensured.
In another possible design manner of the second aspect or the third aspect, the electronic device may reconfigure a sound box of a next character (e.g., a second character) after determining that the sound box of the first character (e.g., the first character) is configured. Specifically, the displaying, by the electronic device, the fourth interface may include: and after the electronic equipment receives the first confirmation message from the first sound box, displaying a fourth interface. The first confirmation message is used for indicating that the first sound box is configured successfully.
In another possible design manner of the second aspect or the third aspect, the N speakers may form a composite speaker with an AP mode in which a main speaker is an Access Point (AP). That is, a master speaker of the N speakers may serve as an AP to provide a wireless local area network (e.g., a first wireless local area network), and a slave speaker of the N speakers may access the first wireless local area network provided by the master speaker. The N speakers may interact through the first wireless local area network.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the composite speaker is constructed in the AP mode, the second configuration information may further include first identity information. The first identity information is used for indicating that the second sound box is configured as a slave sound box and is also used for indicating that the second sound box is connected with the master sound box to serve as an AP to provide a first wireless local area network. The second network information may include: a first SSID and a first access password of a first wireless local area network. Thus, the slave sound box (such as the second sound box) can be accessed into the master sound box according to the first SSID and the first access password to provide a first wireless local area network, and can interact with the master sound box.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the composite speaker is constructed in the AP mode, the first configuration information further includes second identity information. The first identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box is used as an AP to provide a first wireless local area network. The first distribution network information includes: a first SSID and a first access password of the first wireless local area network. Thus, the master speaker (e.g., the first speaker) can provide a first wireless local area network, and the slave speaker accesses the first wireless local area network according to the first SSID and the first access code.
In this design, the first SSID and the first access password of the first wireless local area network provided by the main speaker box may be specified by the electronic device.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the composite speaker is constructed in the AP mode, the first SSID and the first access password of the first wireless local area network provided by the main speaker may be obtained by the electronic device from the main speaker. Specifically, the first configuration information further includes second identity information. The second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box is used as an AP to provide the first wireless local area network. The method further comprises the following steps: the electronic device obtains a first SSID and a first access password of the first wireless local area network from the first sound box.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the combined speaker is configured in the AP mode, the first identity information is further used to indicate a second wireless local area network provided by the first speaker access router.
The electronic device may indicate the second SSID and the second access password of the second wireless local area network to the main speaker (e.g., the first speaker) through the first network configuration information. Specifically, the first distribution network information further includes: a second SSID and a second access password of a second wireless local area network.
Or the electronic device may encrypt the second SSID and the second access password of the second wireless local area network with the first key to obtain the third encrypted information. And then, the third encryption information is sent to the first sound box.
In another possible design manner of the second aspect or the third aspect, the N speakers may form a combined speaker in a non-AP mode. Specifically, N speakers (including a master speaker and a slave speaker) may access a router to provide a wireless local area network (e.g., a second wireless local area network). The N speakers may interact through the second wireless local area network.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the composite speaker is constructed in the non-AP mode, the second configuration information further includes the first identity information. The first identity information is used to indicate that the second speaker is configured as a slave speaker and is also used to indicate that the second speaker accesses a second wireless local area network provided by the router. The second distribution network information includes: a second SSID and a second access password of a second wireless local area network. Thus, the slave speaker (such as the second speaker) can access the router to provide the second wireless local area network according to the second SSID and the second access code, and can interact with the master speaker.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the composite speaker is constructed in the non-AP mode, the first configuration information further includes second identity information. The second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box accesses a second wireless local area network provided by the router. The first distribution network information further includes: a second SSID and a second access password of a second wireless local area network. Thus, the master speaker (e.g., the first speaker) can access the router to provide a second wireless local area network according to the second SSID and the second access code, and can interact with the slave speaker.
In another possible design manner of the second aspect or the third aspect, in a scenario in which the combined sound box is constructed in the AP mode or the non-AP mode, the electronic device may further indicate to the master sound box the identity and the role of each slave sound box. Specifically, the method may further include: and the electronic equipment sends the identification of the second sound box and the second indication information to the first sound box. Therefore, the master sound box can interact with the slave sound box according to the identification and the roles of each slave sound box, so that the sound box can be conveniently played according to the correct roles by each sound box, and the audio playing effect of the combined sound box can be improved.
In another possible design manner of the second aspect or the third aspect, the second configuration information further includes a speaker key and a credential for N speaker interactions. The loudspeaker boxes are subjected to data interaction by adopting the loudspeaker box secret keys and the certificates, so that the safety of data transmission among the combined loudspeaker boxes can be improved.
In another possible design manner of the second aspect or the third aspect, the first configuration information further includes a speaker key and a credential for N speaker interactions. The loudspeaker boxes are subjected to data interaction by adopting the loudspeaker box secret keys and the certificates, so that the safety of data transmission among the combined loudspeaker boxes can be improved.
In a fourth aspect, the present application provides a configuration method of a combined sound box, which is applied to a sound box, where the sound box includes a first antenna and a second antenna, the transmitting distance of the first antenna is a first distance, the transmitting distance of the second antenna is a second distance, and the first distance is smaller than the second distance.
The method may include: the sound box receives a NAN release message of a proximity sensing network, which is broadcast by the electronic equipment, wherein the NAN release message is used for indicating the sound box to use a first antenna; in response to the NAN issuing the message, the loudspeaker box broadcasts the message using the first antenna; the message comprises the identifier and the secret key of the sound box; the sound box receives the encryption information from the electronic equipment and decrypts the encryption information by adopting a secret key to obtain configuration information; the encryption information is sent after the electronic equipment receives the message, the encryption information is obtained by encrypting configuration information by adopting a secret key, the configuration information comprises role indication information and distribution network information, the role indication information is used for indicating the configured role of the sound box, and the distribution network information is used for supporting the interaction of the sound box and other sound boxes in the combined sound box. The message broadcast by the sound box may be the first message or the second message in the first aspect or the second aspect and any one of possible design manners of the first aspect or the second aspect. The message is broadcast using the first antenna (i.e., the ultra-short range antenna or the weak antenna) and may therefore be referred to as a short range message.
In one possible design manner of the fourth aspect, the method may further include: the sound box subscribes to NAN service; wherein the device subscribing to the NAN service is capable of receiving and responding to the NAN publish message.
In another possible design manner of the fourth aspect, the method may further include: the sound box sends out prompt information, and the prompt information is used for indicating the configured role of the sound box.
In another possible design manner of the fourth aspect, the speaker uses a first antenna to broadcast a message, including: the loudspeaker box periodically switches between a first antenna and a second antenna; and broadcasting a message when the loudspeaker box uses the first antenna.
In another possible design manner of the fourth aspect, the configuration information further includes: the method comprises the steps of indicating that a sound box is configured to be connected to a first wireless local area network from identity information of the sound box, wherein the identity information is also used for indicating that the sound box is connected to the first wireless local area network; the distribution network information further includes: the first service set identification SSID and the first access password of the first wireless local area network. The method further comprises the following steps: the loudspeaker boxes are connected to the first wireless local area network according to the first SSID and the first access password, and interact with the main loudspeaker boxes in the N loudspeaker boxes through the first wireless local area network.
In another possible design manner of the fourth aspect, the configuration information further includes: the method comprises the steps that identity information used for indicating that a sound box is configured as a main sound box is used for indicating the sound box to serve as an Access Point (AP) to provide a first wireless local area network; the distribution network information further includes: a first SSID and a first access password of a first wireless local area network. The method further comprises the following steps: the loudspeaker box is used as an AP to provide a first wireless local area network, and other loudspeaker boxes in the combined loudspeaker box are connected into the first wireless local area network; the loudspeaker box interacts with other loudspeaker boxes in the combined loudspeaker box through the first wireless local area network.
In another possible design manner of the fourth aspect, the configuration information further includes: the method comprises the steps that identity information used for indicating that the sound box is configured as a master sound box or the sound box is configured as a slave sound box is used for indicating a second wireless local area network provided by a sound box access router; the distribution network information further includes: a second SSID and a second access password of a second wireless local area network. The method further comprises the following steps: and the sound box is connected to a second wireless local area network according to the second SSID and the second access password, and interacts with other sound boxes in the combined sound box through the second wireless local area network.
In another possible design manner of the fourth aspect, the configuration information further includes a speaker key and a credential for N speaker interactions. The method further comprises the following steps: the loudspeaker box interacts with other loudspeaker boxes in the combined loudspeaker box according to the loudspeaker box secret key and the certificate.
In another possible design manner of the fourth aspect, the method further includes: after the sound box receives the encryption information, a confirmation message is sent to the electronic equipment; or after the sound box sends the prompt information, a confirmation message is sent to the electronic equipment in response to the third operation of the user on the prompt information; the prompt information is used for indicating the role of the sound box to be configured. The confirmation message is used for indicating that the sound box is configured successfully.
In a fifth aspect, the present application provides an electronic device having a first APP installed therein. The electronic device includes: memory, a display screen, a communication module, and one or more processors. The memory, display screen, communication module are coupled to the processor.
The display screen is used for displaying images or interfaces generated by the processor. The communication module is used for communicating with other devices. The memory is used to store data in the electronic device. The memory is also used to store computer program code, which includes computer instructions. The computer instructions, when executed by a processor, cause an electronic device to perform a method as performed by the electronic device in the first aspect, the second aspect or the third aspect and any of its possible designs.
In a sixth aspect, the present application provides a sound box. The loudspeaker may be a first loudspeaker or a second loudspeaker as described in the first or second aspect above. The sound box comprises a first antenna and a second antenna, wherein the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance.
The enclosure includes a memory, speakers, a communication module, and one or more processors. The communication module comprises a first antenna and a second antenna, wherein the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance. The memory, the speaker, the communication module, and the processor are coupled; the loudspeaker is used for playing audio data, the communication module is used for communicating with other devices, and the memory is used for storing data in the sound box. The memory is also used to store computer program code, which includes computer instructions. The computer instructions, when executed by the processor, cause the loudspeaker to perform the method as performed by the loudspeaker in the first or fourth aspect and any one of its possible designs.
In a seventh aspect, embodiments of the present application provide a chip system that is applied to an electronic device including a display screen, a communication module, and a memory. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving a signal from a memory of the electronic device and transmitting the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method as performed by the electronic device in the first, second or third aspect and any of its possible designs.
In an eighth aspect, embodiments of the present application provide a chip system that is applied to a sound box including a communication module and a memory. The communication module comprises a first antenna and a second antenna, wherein the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is configured to receive a signal from the memory of the loudspeaker and to send the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the loudspeaker performs the method as described in the first or fourth aspect and any one of its possible designs.
In a ninth aspect, embodiments of the present application provide a computer storage medium comprising computer instructions which, when run on a device, cause the device to perform a method as described in the first, second, third or fourth aspects and any one of their possible designs. The device may be the electronic device described above or a sound box.
In a tenth aspect, embodiments of the present application provide a computer program product which, when run on a computer, causes the computer to perform the method according to the first, second, third or fourth aspect and any one of its possible designs. The computer may be an electronic device or a sound box.
It may be appreciated that, for the beneficial effects achieved by the electronic device according to the fifth aspect, the sound box according to the sixth aspect and any possible design manner thereof, the chip system according to the seventh aspect and the eighth aspect, the computer storage medium according to the ninth aspect, and the computer program product according to the tenth aspect, reference may be made to the beneficial effects as in the first aspect and any possible design manner thereof, which are not repeated herein.
Drawings
Fig. 1 is a schematic diagram of a communication system to which a configuration method of a combined sound box according to an embodiment of the present application is applied;
fig. 2 is a schematic hardware structure of a mobile phone according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of a sound box according to an embodiment of the present application;
fig. 4A is a schematic structural diagram of an antenna in a mobile phone according to an embodiment of the present application;
fig. 4B is a schematic structural diagram of an antenna in another mobile phone according to an embodiment of the present application;
fig. 4C is a schematic structural diagram of an antenna in another mobile phone according to an embodiment of the present application;
fig. 4D is a schematic structural diagram of an antenna in another mobile phone according to an embodiment of the present application;
fig. 4E is a schematic diagram of a transmission distance of another antenna according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a configuration method of a combined sound box provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a display interface of a mobile phone according to an embodiment of the present application;
fig. 7A is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 7B is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 7C is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
Fig. 8 is a schematic layout diagram of placement of each sound box in a surround sound combined sound box according to an embodiment of the present disclosure;
fig. 9A is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 9B is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 10A is a schematic diagram of a display interface of a sound box according to an embodiment of the present application;
fig. 10B is a schematic diagram of a display interface of another sound box according to an embodiment of the present disclosure;
fig. 11 is a flowchart of a method for switching between a strong antenna and a weak antenna of a sound box according to an embodiment of the present application;
fig. 12 is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 13 is a schematic diagram of a display interface of another sound box according to an embodiment of the present disclosure;
fig. 14 is a flowchart of another configuration method of a combined sound box according to an embodiment of the present application;
fig. 15 is a schematic system diagram of a combined sound box according to an embodiment of the present application;
fig. 16 is a schematic system diagram of another combined sound box according to an embodiment of the present disclosure;
fig. 17 is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
FIG. 18 is a flowchart of another configuration method of a composite speaker according to an embodiment of the present disclosure;
Fig. 19 is a schematic diagram of a display interface of another mobile phone according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of an electronic device and a sound box according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
The embodiment of the application provides a configuration method of a combined sound box, which is used for interaction between electronic equipment and a plurality of sound boxes participating in combination to construct the combined sound box.
Fig. 1 is a schematic diagram of a communication system to which a configuration method of a combined sound box according to an embodiment of the present application is applied. As shown in fig. 1, the communication system may include an electronic device 100 (e.g., a cell phone) and a plurality of speakers (e.g., speaker 201, speaker 202, speaker 203, speaker 204, and speaker 205) that participate in a combination.
Wherein a first APP (also referred to as a management APP or a sound box APP) for managing the sound box may be installed in the electronic device 100. The electronic device 100 may support the user to set the roles of the sound boxes in an intuitive manner through the first APP, transmit the network configuration information to the sound boxes, and construct the sound boxes into a combined sound box.
In the method of the embodiment of the application, the electronic equipment can support the user to set the roles of the various sound boxes participating in the combination in an intuitive manner. Therefore, the problem of character setting errors caused by the fact that users are difficult to distinguish each sound box can be solved, and the accuracy of character setting can be improved. Moreover, the roles of the sound boxes participating in the combination are accurately set, so that the audio playing effect of the combined sound box can be improved.
The sound boxes constructed into the combined sound box can play multi-channel audio data to form a stereo or surround sound field, a reverberation effect is generated, and an immersive sensation can be brought to a user. Wherein each of the combined speakers may be used to play audio data of one channel.
In a first use scenario, the plurality of speakers may form a stereo combined speaker. In this use scenario, the plurality of speakers may be two speakers. One of the two sound boxes has a left sound channel role and is used for playing audio data of the left sound channel; the role of the other sound box is right channel, which is used for playing the audio data of the right channel.
In a second use scenario, the plurality of speakers may form a surround sound composite speaker. In this use scenario, the plurality of speakers may be five speakers, such as the five speakers shown in fig. 1. One of the five speakers (e.g., speaker 201) has a left front channel for playing audio data of the left front channel; the role of the other sound box (such as sound box 202) is right front sound channel, which is used for playing the audio data of the right front sound channel; the role of the other sound box (such as the sound box 203) is a center sound channel, and is used for playing audio data of the center sound channel; the role of another speaker (e.g., speaker 204) is left surround channel for playing audio data of the left surround channel; another speaker (e.g., speaker 205) has the role of a right surround channel for playing audio data of the right surround channel.
Of course, the number of speakers in the composite speaker according to the embodiment of the present application includes, but is not limited to, the number described in the above two usage scenarios. The combined sound boxes constructed by different numbers of sound boxes are used for playing audio data, so that different reverberation effects can be generated. In the embodiment of the application, the number of the sound boxes in the combined sound box is not limited. In the following embodiments, taking five speakers shown in fig. 1 as an example to participate in a combination, a method of the embodiments of the present application is described.
By way of example, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop, a wearable device (such as a smart watch), a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or a device including a display screen and a short-range communication module, and the specific form of the electronic device is not particularly limited in the embodiments of the present application. The sound box can be an intelligent sound box.
In the embodiment of the present application, taking the electronic device 100 shown in fig. 1 as an example, the structure of the electronic device provided in the embodiment of the present application is illustrated. As shown in fig. 2, the electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M.
It is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc.
The antenna 1 of the electronic device 100 is coupled to the mobile communication module 150. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication such as wireless local area network (wireless local area networks, WLAN), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the electronic device 100. For example, the WLAN may be a (wireless fidelity, wi-Fi) network.
The antenna 2 of the electronic device 100 is coupled to the wireless communication module 160. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information. The display screen 194 may be a touch screen, the display screen 194 being for displaying images, videos, or the like. The display 194 includes a display panel.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like. The ISP is used to process data fed back by the camera 193. In some embodiments, the ISP may be provided in the camera 193. The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121, and the internal memory 121 may include a storage program area and a storage data area.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like.
Fig. 3 is a schematic structural diagram of a sound box 300 according to an embodiment of the present application. As shown in fig. 3, the sound box 300 may include: processor 301, external memory interface 302, internal memory 303, usb interface 305, power management module 304, antenna a, wireless communication module 308, display 306, audio module 307, and speaker 307A, among others.
The processor 301 may include one or more processing units, such as: processor 301 may include an AP, modem processor, GPU, ISP, controller, memory, video codec, DSP, baseband processor, and/or NPU, etc. The different processing units may be separate devices, or may be integrated in one or more processors, and a memory may be provided in the processor 301 for storing instructions and data.
The power management module 304 is used for connecting to a power source. The power management module 304 may also be coupled to the processor 301, the internal memory 303, the display screen 306, the wireless communication module 308, and the like. The power management module 304 receives input of power through the USB interface 305, and supplies power to the processor 301, the internal memory 303, the display 306, the wireless communication module 308, and the like. In some embodiments, the power management module 304 may also be provided in the processor 301.
The wireless communication function of the enclosure 300 may be implemented by an antenna and wireless communication module 308, etc. The wireless communication module 308 may provide solutions for wireless communication including WLAN (e.g., wi-Fi network), bluetooth (BT), GNSS, etc. applied to the enclosure 300.
The wireless communication module 308 may be one or more devices that integrate at least one communication processing module. The wireless communication module 308 receives electromagnetic waves via the antenna a, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 301. The wireless communication module 308 may also receive a signal to be transmitted from the processor 301, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
In some embodiments, antenna a of enclosure 300 and wireless communication module 308 are coupled such that enclosure 300 may communicate with a network and other devices via wireless communication techniques. For example, the wireless communication module 308 in the embodiments of the present application may be a Bluetooth module or a Wi-Fi module. The wireless communication module 308 is configured to perform data transmission with the electronic device 100 and other speakers.
Wherein the antenna a may include one or more antennas. The one or more antennas may be divided into a first antenna (weak antenna) and a second antenna (normal antenna, also referred to as strong antenna). The transmission distance (such as a first distance) of the first antenna for transmitting the wireless signal is smaller than the transmission distance (such as a second distance) of the second antenna for transmitting the wireless signal. The second antenna and the first antenna may be switched. The second antenna and the first antenna enable network communication with other devices (such as a mobile phone) through a wireless communication module on the sound box 300. Fig. 4A shows a schematic diagram of an antenna structure in a sound box 300 according to an embodiment of the present application.
In one example, the second antenna and the first antenna may be two different antennas. The loudspeaker 300 shown in fig. 3 may be the electronic device 40 (e.g., loudspeaker) shown in fig. 4A. The electronic device 40 may include a micro control unit (microcontroller unit, MCU) 404, a wireless communication module 403, an antenna 401 and an antenna 402.
The antenna 401 shown in fig. 4A is the second antenna, and the antenna 402 is the first antenna. The antenna a shown in fig. 3 may include the antenna 401 and the antenna 402 shown in fig. 4A. The wireless communication module 308 shown in fig. 3 may be the wireless communication module 403 shown in fig. 4A; the MCU 404 shown in FIG. 4A may be implemented by the processor 301 in FIG. 3. The wireless communication module 403 may be a Wi-Fi chip, and a radio frequency input/output (RFIO) pin of the wireless communication module 403 is connected to the antenna 401 or the antenna 402 through a single pole double throw switch.
The MCU 404 may include, among other things, a central processor, memory, counters, clocks, interrupts, serial peripheral interfaces (serial peripheral interface, SPI), UART interfaces, universal serial bus interfaces, and the like. The UART interface is a universal serial data bus, and is used for asynchronous communication. The bus may be a bi-directional communication bus that converts data to be transmitted between serial and parallel communications.
In some embodiments, MCU 404 interacts with wireless communication module 403 via UART interfaces. The wireless communication module 403 is configured to implement wireless communication between the sound box 300 and other devices (such as a mobile phone). The detailed description of the wireless communication module 403 may refer to the detailed description of the wireless communication module 308 in the above embodiment, and will not be repeated here.
Among them, the antenna 401 and the antenna 402 can be used to transmit and receive electromagnetic waves. Further, the wireless communication module 403 may convert electromagnetic waves received from the antenna 401 or the antenna 402 into signals, and send the signals to the MCU 404 for processing. Or the wireless communication module 403 may receive a signal to be transmitted from the MCU 404, convert the signal into electromagnetic waves and radiate the electromagnetic waves through the antenna 401 or the antenna 402. In the embodiment of the present application, the first distance of the signal transmitted by the antenna 402 is smaller than the second distance of the signal transmitted by the antenna 401.
In some embodiments, MCU 404 may control switching of antenna 401 and antenna 402. When the antenna 401 is adopted by the sound box 300, if the distance between the sound box 300 and other equipment (such as a mobile phone) is smaller than the second distance, the other equipment (such as the mobile phone) can receive the signal transmitted by the sound box 300 through the antenna 402, so that the communication between the other equipment and the sound box 300 is realized; when the antenna 402 is used by the sound box 300, if the distance between the sound box 300 and other devices (such as a mobile phone) is smaller than the first distance, the other devices can receive the signals transmitted by the sound box 300 through the antenna 402, so that the communication between the other devices and the sound box 300 is realized.
For example, enclosure 300 may employ antenna 401 to send a first message or a second message to surrounding devices; speaker 300 may receive NAN release messages sent by other devices via antenna 402. Speaker 300 may also access a Wi-Fi router through antenna 401 or antenna 402.
In other embodiments, the second antenna and the first antenna may share a portion of the trace, such as described in the embodiments shown in fig. 4B-4D.
The loudspeaker box 300 realizes ultra-short distance communication through the first antenna. In the embodiment of the present application, the dual antennas (the first antenna and the second antenna) in the sound box 300 may be switched by a radio frequency switch. Both the first antenna and the radio frequency switch (shown as the first antenna in the dashed box in fig. 4B-4D) may be physically located within the shield or the first antenna may be located within the chip. Fig. 4B to 4D show schematic structural views of three first antennas.
The first antenna in the embodiments of the present application aims to reduce the transmission distance as much as possible. The principle of constructing the first antenna may be:
(1) Reducing the antenna length, thereby reducing electromagnetic waves radiated into the air;
(2) Reducing radiation efficiency, converting a part of electromagnetic wave radiation into heat energy through a resistor to consume;
(3) The return loss is reduced, and part of radio frequency energy is reflected back to the inside of the chip, etc.
The specific implementation of the first antenna may employ:
(1) Shortening the antenna;
(2) Disconnecting a point in the true antenna path or grounding the point through a resistor, an inductor or a capacitor;
(3) A shield or the like is used.
It should be appreciated that the specific implementations (1) and (2) of the first antenna described above may be implemented on a PCB board or within a chip.
It should also be appreciated that the above-described shield serves to block the path of the electromagnetic wave radiated by the antenna to the receiver for purposes of attenuating the radiation.
It should also be understood that the above-mentioned shortening of the antennas means that the first antenna is shorter than the second antenna. The structures of the three first antennas shown in fig. 4B to 4D, the first antennas are shown in the dashed boxes in fig. 4B to 4D. The second antenna in fig. 4B to 4D is configured by connecting a filter circuit (for example, pi-type circuit), a matching circuit (for example, pi-type circuit) and an antenna body (for example, the antenna body may be a section of metal wire) outside the matching circuit through an RFIO pin. The first antenna a shown by the dashed box in fig. 4B, the first antenna B shown by the dashed box in fig. 4C, and the first antenna C shown by the dashed box in fig. 4D are different in length but shorter than the second antenna. The filter circuit is used for preventing interference, and the matching circuit is used for matching with the second antenna.
Illustratively, as shown in fig. 4B, the first antenna a may be directly disconnected using a Radio Frequency Input Output (RFIO) pin of a Wi-Fi chip within the shield. The first antenna a may be composed of an RFIO pin, a trace, and a first switch of the 2 switches (the first switch is not connected to any device). The 2-way switch refers to a switch between the RFIO and the filter circuit, and the RFIO pin can be connected with or disconnected from the filter circuit through the switch; the first path of switch is a switch which is connected with the RFIO pin and disconnected with the filter circuit, and is shown in 4B. It should be appreciated that the 2-way switch in embodiments of the present application may be a single pole double throw switch.
Illustratively, as shown in fig. 4C, the first antenna b may be grounded through a matching device (e.g., resistor) using RFIO of the Wi-Fi chip within the shield. The first antenna b may be composed of an RFIO pin, a trace, a first switch (a first switch connection resistor) of the 2-way switch, and a resistor. A part of electromagnetic wave radiation can be converted into heat energy by the resistive ground, thereby reducing the radiation efficiency of the first antenna b. The 2-way switch refers to a switch between the RFIO pin and the resistor as well as the filter circuit, and through the switch, the RFIO pin can be connected with the resistor and disconnected with the filter circuit, or the RFIO pin can be disconnected with the resistor and connected with the filter circuit. The first path of switch is a switch which is connected with the resistor and disconnected with the filter circuit.
Illustratively, as shown in fig. 4D, the first antenna c may employ an RFIO pin of a Wi-Fi chip within the shield to pass through a chip-matched filter circuit followed by a matching device (e.g., resistor) to ground. The first antenna c may be composed of an RFIO pin, a trace, a filter circuit, a first switch of a 2-way switch (a first switch connection resistor), and a resistor. A part of electromagnetic wave radiation can be converted into heat energy by the resistive ground, thereby reducing the radiation efficiency of the first antenna b. The 2-way switch refers to a switch between a filter circuit in the shielding case and a resistor as well as a matching circuit outside the shielding case, and through the switch, the filter circuit in the shielding case can be connected with the resistor and disconnected with the matching circuit outside the shielding case, or the filter circuit in the shielding case can be disconnected with the resistor and communicated with the matching circuit outside the shielding case. The first path of switch is a switch for connecting the filter circuit and the resistor in the shielding case.
It should be understood that the second antenna in fig. 4B to 4C may be formed by an RFIO pin, a trace, a second switch of 2 switches, a filter circuit, a matching circuit, and an antenna body connected outside the matching circuit. The second switch is a switch for connecting the RFIO pin and the filter circuit.
The second antenna in fig. 4D may be composed of an RFIO pin, a filter circuit, a trace, a second switch of the 2-way switches, a matching circuit, and an antenna body connected outside the matching circuit. The second switch is a switch for connecting the filter circuit in the shielding case and the matching circuit outside the shielding case.
It should be appreciated that the wireless communication module 403 illustrated in fig. 4A described above may be a Wi-Fi chip as described in fig. 4B-4C.
The above different first antenna structures can meet the requirements (for example, from 10cm to 2 m) of different ultra-short distance communications in cooperation with the setting of different transmission powers (Tx powers) of the Wi-Fi chip.
By way of example, table 1 shows the communication distances of several different first antenna structures for different transmit powers.
TABLE 1
Figure BDA0002681286490000161
The difference between the maximum transmit power and the minimum transmit power of the antenna is correlated due to the characteristics of the physical device within the chip. If the minimum transmission power of the sound box 300 is reduced to be very low, the maximum transmission power is also reduced, so that the distance requirement in normal operation is not satisfied. In this embodiment of the present application, because the structure of different smart devices is different and the security performance requirement to the smart devices is different, so the manufacturer of the smart devices can adopt different first antenna structures and transmitting power to ensure the communication distance of the smart devices. For example, the thickness of the intelligent air conditioner housing may be different for different manufacturers of intelligent air conditioners, and then the communication distance that the intelligent air conditioner can be found may be different in the case that the first antenna structure is the same and the transmission power is the same. Different smart device manufacturers can cooperate with the structure of the first antenna and a certain transmitting power according to the structure of the smart device, so that the discovered safe distance of the smart device is tested.
In connection with the above example, the second distance is 5 meters, and the first distance is 0.3 meters as an example. When enclosure 300 employs a second antenna (i.e., a strong antenna), enclosure 300 may communicate with other devices (e.g., an enclosure) if the distance between enclosure 300 and the other devices (e.g., a cell phone) is less than the second distance (e.g., the other devices are located at position 1 shown in fig. 4E); when enclosure 300 employs a first antenna (i.e., a weak antenna), enclosure 300 may communicate with other devices (e.g., a cell phone) if the distance between enclosure 300 and the other devices (e.g., cell phone) is less than the first distance (e.g., the other devices are located at position 2 shown in fig. 4E).
Sound box 300 implements display functions through a GPU, display screen 306, and application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 306 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 301 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 306 is used to display images, videos, and the like. The display screen 306 includes a display panel. The display panel may be LCD, OLED, AMOLED, FLED, miniled, microLed, micro-oLed, QLED, etc. For example, in the embodiment of the present application, the display screen 306 may be used to display image content corresponding to audio data played by the sound box 300, and an operation interface of the sound box 300.
Video codecs are used to compress or decompress digital video. Sound box 300 may support one or more video codecs. Thus, loudspeaker 300 may play or record video in a variety of encoding formats, such as: MPEG1, MPEG2, MPEG3, MPEG4, etc.
The internal memory 303 may be used to store computer executable program code comprising instructions. The processor 301 executes instructions stored in the internal memory 303 to perform various functional applications and data processing of the sound box 300. The internal memory 303 may include a stored program area and a stored data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the enclosure 300 (e.g., audio play records), etc. In addition, the internal memory 303 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one disk storage device, a flash memory device, UFS, and the like.
The external memory interface 302 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the advertising device 120. The external memory card communicates with the processor 301 through an external memory interface 302 to implement a data storage function. For example, files such as music, video, etc. are stored in an external memory card.
Soundbox 300 may implement audio functionality through audio module 307, speaker 307A and microphone 307B, and an application processor, among others. Such as music playing, recording, voice gathering, etc.
The audio module 307 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 307 may also be used to encode and decode audio signals. In some embodiments, the audio module 307 may be disposed in the processor 301 or some functional modules of the audio module 307 may be disposed in the processor 301. The speaker 307A, also called "horn", is used to convert an audio electric signal into a sound signal. The microphone 407B, also called "microphone", is used to collect sound signals and convert the sound signals into electrical signals.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure and the sound box 300 having the above-described hardware structure. In the following embodiments, the method of the embodiments of the present application is described by taking the example that the electronic device 200 is the mobile phone 100 shown in fig. 1, and the sound box 201, the sound box 202, the sound box 203, the sound box 204, and the sound box 205 shown in fig. 1 participate in combination to construct a combined sound box.
It should be noted that the mobile phone 100 needs to interact with the speaker 201, the speaker 202, the speaker 203, the speaker 204, and the speaker 205 separately to implement the configuration of the combined speaker. For easy understanding, in the following embodiments, the interaction manner between the mobile phone 100 and the speaker box is described in the process of configuring the combined speaker box by the mobile phone 100 by taking interaction between the mobile phone 100 and the speaker box 201 and the speaker box 202 as an example.
The embodiment of the application provides a configuration method of a combined sound box, as shown in fig. 5, the configuration method of the combined sound box may include S501-S523.
S501, the speakers (e.g., speaker 201, speaker 202, speaker 203, speaker 204, and speaker 205) subscribe to the proximity-aware network (neighborhood aware network, NAN) service.
For example, a preset key may be disposed on the sound box. The preset key is used for triggering the loudspeaker box to subscribe to the NAN service. For example, the preset key may be referred to as a "distribution network" key. For example, the preset key may be a physical key disposed on the upper surface of the sound box or on any side of the sound box. In this embodiment, the position of the preset key in the sound box is not limited. Alternatively, the sound box may include a display screen, and the preset key may be a virtual key displayed on the display screen.
Wherein, in response to the operation 1 (such as a single click operation, a double click operation or a long press operation) of the "distribution network" key by the user, the sound box can subscribe to the NAN service. For example, in response to user operation 1 of the "distribution network" key, the speaker may enter a distribution network mode. In the network distribution mode, the sound box can automatically subscribe to the NAN service.
Wherein the NAN service is also called WiFi aware service. The NAN mechanism is one standard based on WiFi technology proposed by the WiFi alliance (WFA). In the NAN mechanism, a NAN network formed by a plurality of NAN-capable devices (NAN devices for short) is called a cluster (cluster). Each NAN device in a cluster may perform service discovery in a Discovery Window (DW) of the cluster to discover other NAN devices with which data transmission is enabled.
Specifically, in the embodiment of the present application, the subscription of the sound box to the NAN service specifically means: the sound box activates or initiates the NAN function. Wherein, after a device activates or starts up a NAN device, an Identity (ID) may be set based on its own media access control (media access control, MAC) address. And, after activating or starting the NAN function, if receiving the NAN release message from other devices, one device may reply to the corresponding response message in response to the NAN release message.
For example, take five speakers shown in fig. 1 to participate in a combination, for example, to construct a combined speaker. The loudspeaker 201, loudspeaker 202, loudspeaker 203, loudspeaker 204 and loudspeaker 205 shown in fig. 1 may respectively enter the subscribed NAN service in response to the user operating 1 on the respective preset keys.
S502, the mobile phone 100 displays a first interface of a first APP, and the first interface is used for triggering the mobile phone 100 to construct an N-channel combined sound box.
Wherein N is more than or equal to 2, and N is a positive integer. For example, N may be any positive integer such as 2,3,5, or 7.
For example, the first APP in the embodiment of the present application may be an application corresponding to the icon "sound box" 601 shown in fig. 6. As shown in fig. 6, the mobile phone 100 may receive a click operation of the "sound box" 601 by a user; in response to the clicking operation, the mobile phone 100 may start the first APP, and display a home page 701 (i.e., a first interface 701) of the first APP shown in fig. 7A. Included in the first interface 701 are a plurality of combined sound box options, such as a "stereo combined sound box" option 702 and a "surround sound combined sound box" option 703.
The above-mentioned combined sound box option is used to trigger the mobile phone 100 to construct a combined sound box. For example, the "stereo combined speaker" option 702 is used to trigger the handset 100 to construct a combined speaker that includes stereo for the left channel and stereo for the right channel, n=2. For another example, the "surround sound combined speaker" option 703 is used to trigger the handset 100 to construct a combined speaker that includes surround sound for the left front channel, the right front channel, the center channel, the right surround channel, and the left surround channel, n=5.
S503, in response to operation a, the mobile phone 100 displays a second interface. The second interface is used for indicating the placement layout of the N sound boxes.
Illustratively, the operation a is a first operation. The operation a may be a click operation (e.g., a click operation) of the user on the "stereo combined speaker" option 702 or the "surround combined speaker" option 703 shown in fig. 7A. In the embodiment of the present application, the above operation a triggers the mobile phone 100 to construct a combined sound box including five channels of surround sound. For example, the cell phone 100 may receive operation a of the user on the "surround sound speaker combination" option 703. For example, in response to user operation a of the "surround sound speaker combination" option 703 shown in fig. 7A, the mobile phone 100 may display the second interface 704 shown in fig. 7B or fig. 7C. The second interface 704 shown in fig. 7B or fig. 7C includes icons of five speakers corresponding to the "surround sound combined speaker" option 703, and indicates placement layouts of the five speakers.
In some embodiments, the second interface further includes a prompt message, where the prompt message is used to prompt a user to place the N speakers according to the placement layout indicated by the second interface. For example, the second interface 704 shown in fig. 7B or fig. 7C further includes a prompt 705, such as "please put speakers in the following layout".
In other embodiments, the second interface may further include an identifier allocated to the N speakers by the electronic device, such as speaker 1, speaker 2, … …, and speaker N.
In other embodiments, the second interface may further indicate a role of each of the N speakers. For example, the roles of the corresponding speakers, such as left front channel, right front channel, center channel, left surround channel, and right channel, are indicated below the icons of each speaker in the second interface 704 shown in fig. 7C. It should be noted that the role of each speaker is determined by the placement position of the speaker in the N speakers.
It will be appreciated that the user may place the five speakers shown in fig. 1 according to the placement layout indicated by the second interface. For example, the user may adjust the placement of five speakers shown in fig. 1, and the placement of speaker 201, speaker 202, speaker 203, speaker 204, and speaker 205 shown in fig. 1 is adjusted as shown in fig. 8.
As shown in fig. 8, the placement positions of the sound boxes 201 in the five sound boxes correspond to the placement positions of the left front channels shown in fig. 7B or fig. 7C; the placement positions of the sound boxes 202 in the five sound boxes correspond to the placement positions of the right front sound channel shown in fig. 7B or 7C; the placement positions of the sound boxes 203 in the five sound boxes correspond to the placement positions of the front-middle sound channels shown in fig. 7B or fig. 7C; the placement positions of the speakers 204 in the five speakers correspond to the placement positions of the left surround channels as shown in fig. 7B or 7C; the placement of the speakers 205 in the five speakers corresponds to the placement of the right surround channel as described in fig. 7B or fig. 7C.
It should be noted that in the embodiment of the present application, S501 may be executed first, and then S502 to S503 may be executed; s502 to S503 may be executed first, and S501 may be executed later; alternatively, S501 may also be performed at the same time as S502-S503 are performed. The embodiment of the present application does not limit the order of execution of S501 and S502 to S503.
S504, responding to the operation b of the user on the second interface, and broadcasting a NAN release message by the mobile phone 100.
Illustratively, this operation b is a second operation. The operation b may be a click operation (such as a single click operation, a double click operation, or a long press operation) of a preset control in the second interface by the user. The preset control is used to trigger the mobile phone 100 to start to allocate a network for N sound boxes. For example, the preset control may be a "start distribution" control. The operation B is a clicking operation of the "start distribution control 706 in the second interface 704 shown in fig. 7B or fig. 7C by the user.
Alternatively, the operation b may be a preset gesture input by the user in the second interface, such as an S-shaped gesture, an L-shaped gesture, a bi-directional up-swipe gesture, or a tri-directional up-swipe gesture. In the following embodiment, the operation b is exemplified by a click operation of a preset control in the second interface by the user.
As shown in fig. 7B or fig. 7C, the handset 100 may publish NAN service in response to a user operation B of the "start distribution" control 706. In this embodiment of the present application, the mobile phone 100 issues NAN service, specifically refers to: the handset 100 broadcasts the NAN release message. From the above embodiments, it can be seen that: the speakers 201, 202, 203, 204, and 205 shown in FIG. 8 have subscribed to NAN services. Thus, speakers 201, 202, 203, 204, and 205 shown in FIG. 8 may all receive and issue messages in response to the NAN.
S505, the mobile phone 100 displays a third interface. The third interface is used for prompting the user to approach the mobile phone 100 to the sound box of the role 1, so that the distance between the mobile phone 100 and the sound box of the role 1 is within the first distance.
Wherein, the above character 1 is a first character. For example, in response to user operation b of the "start distribution" control 706, the cell phone 100 may display a third interface 901 shown in fig. 9A. The third interface 901 is used to prompt the user to bring the handset 100 closer to the speaker of character 1 (e.g., the left front channel).
For example, the third interface 901 includes a prompt 902, such as "please get the mobile phone close to the speaker with the character as the left front channel". Wherein, the role 1 may be any one of the N sound boxes. For example, in the third interface 901 shown in fig. 9A, character 1 is a left front channel, and the sound box of the character 1 is the sound box 201 shown in fig. 8.
Optionally, the mobile phone 100 may also display the icon of the sound box of the above-mentioned character 1 in a preset manner on the third interface. For example, in response to user operation B of the "start distribution" control 706, the handset 100 may display a third interface 903 shown in fig. 9B. Wherein, the icon of the sound box of the character 1 (such as the left front channel) is displayed in a black manner in the third interface 903. Therefore, the loudspeaker boxes of the role 1 can be intuitively distinguished from the loudspeaker boxes of other roles, and a user can conveniently and quickly position the loudspeaker boxes of the role 1 in the N loudspeaker boxes.
It should be noted that the above-mentioned preset manner includes, but is not limited to, a manner of displaying the icon of the sound box of the left front channel in fig. 9B, and other display manners are not repeated here.
It will be appreciated that as described in S501, the speakers 201, 202, 203, 204, and 205 are subscribed to NAN service, i.e., the NAN function is activated or started. Therefore, the sound box 201, the sound box 202, the sound box 203, the sound box 204 and the sound box 205 subscribed to the NAN service can receive the NAN release message broadcasted by the mobile phone 100. Specifically, after S504 described above, the method of the embodiment of the present application may further include S506.
It should be noted that, in the embodiment of the present application, S504 may be executed first to broadcast the NAN release message, and S505 may be executed later; or S505 may be executed first, and then S504 broadcasts the NAN release message; alternatively, S505 may also be performed while S504 broadcasting the NAN release message is performed. The embodiment of the present application does not limit the sequence of broadcasting the NAN release message and executing S505 to the mobile phone 100.
S506, the sound box (such as the sound box 201, the sound box 202, the sound box 203, the sound box 204 and the sound box 205) receives the NAN release message broadcasted by the mobile phone 100.
After the sound box 201, the sound box 202, the sound box 203, the sound box 204 and the sound box 205 receive the NAN release message, the NAN release message may be responded.
In general, a device subscribed to the NAN service may reply to a corresponding response message in response to the NAN publish message. In this embodiment, after receiving the NAN release message, the loudspeaker 201, the loudspeaker 202, the loudspeaker 203, the loudspeaker 204 and the loudspeaker 205 subscribed to the NAN service may switch the antenna of the loudspeaker to a weak antenna, and then reply to the corresponding response message by using the weak antenna. Specifically, the method of the embodiment of the present application may further include S507-S508 after S506.
S507, the speaker (e.g., speaker 201, speaker 202, speaker 203, speaker 204, and speaker 205) uses weak antennas.
It should be noted that, in the process of executing S501-S506, the speakers (such as speaker 201, speaker 202, speaker 203, speaker 204, and speaker 205) use strong antennas to implement wireless communication. When the sound box receives the NAN release message, the weak antenna can be used for wireless communication. Wherein the strong antenna is the second antenna and the weak antenna is the first antenna. The principle of the strong antenna, the weak antenna, and the speaker using the weak antenna can be referred to the description of the foregoing embodiments, and will not be repeated here.
S508, the speaker 201 broadcasts message 1 using the weak antenna. The message 1 includes the ID 1 of the speaker 201 and the key 1.
Wherein, since the message 1 is broadcast by the sound box 1 using a weak antenna (also called ultra short range antenna); thus, this message 1 is also referred to as a short range message, such as short range message 1. The message 1 is a first message. The speaker 201 is a first speaker. ID 1 is the identity of the first speaker. Key 1 is the first key. ID 1 of the loudspeaker 201 is used to identify the loudspeaker 201. For example, ID 1 of the sound box 201 may be the MAC address of the sound box 201; alternatively, ID 1 of the loudspeaker 201 may be other identification of the loudspeaker 201. The key 1 may be a key randomly generated by the speaker 201.
S509, the speaker 202 broadcasts message 2 using the weak antenna. The message 2 includes the ID 2 of the speaker 202 and the key 2.
Wherein, since the message 2 is broadcast by the sound box 2 using a weak antenna (also called ultra short range antenna); thus, this message 2 is also referred to as a short range message, such as short range message 2. The message 2 is a second message. The enclosure 202 is a second enclosure. ID 2 is the identity of the second speaker. Key 2 is the second key. ID 2 of the sound box 202 is used to identify the sound box 202. For example, ID 2 of sound box 202 may be the MAC address of sound box 202; alternatively, ID 2 of sound box 202 may be other identification of sound box 202. The key 2 may be a key randomly generated by the speaker 202.
It should be noted that other speakers (e.g., speaker 203, speaker 204, speaker 205) participating in the combination may also broadcast short-range messages using the weak antenna. The short-distance message includes the ID of the corresponding sound box and the corresponding secret key. In the embodiment of the present application, the sound box 201 and the sound box 202 are taken as examples, and the method of the embodiment of the present application is described herein.
Wherein, the effective transmission distance of the speaker (such as speaker 201 or speaker 202) for wireless communication using the weak antenna is the first distance. The effective transmission distance of a speaker (e.g., speaker 201 or speaker 202) for wireless communication using a strong antenna is the second distance. For example, the second distance may be any distance length of 5 meters, 3 meters, 4 meters, or 6 meters. The first distance is a distance length of less than 1 meter, such as 0.3 meter, 0.4 meter, or 0.35 meter.
That is, when the speaker (e.g., speaker 201) employs a strong antenna, if the distance between the speaker and the mobile phone 100 is smaller than the second distance, the speaker 300 may communicate with other devices (e.g., mobile phone); when the speaker employs a weak antenna, the speaker may communicate with the mobile phone 100 if the distance between the speaker and the mobile phone 100 is less than the first distance.
It will be appreciated that the effective transmission distance for a speaker (e.g., speaker 201 and speaker 202) to communicate wirelessly using a weak antenna is a first distance (e.g., 0.3 meters). Only if the distance between the other device (e.g., the mobile phone 100) and the speaker is less than the first distance, the short message sent by the speaker may be received. And other devices with a distance greater than the first distance from the sound box cannot receive the short-distance message sent by the sound box. Such ultra-short distance communication can ensure that short distance messages sent by the loudspeaker box are not received by other equipment, can avoid operating the loudspeaker box due to interaction between keys of the loudspeaker box acquired by other equipment and the loudspeaker box, and can ensure the safety of data transmission between the mobile phone 100 and the loudspeaker box.
After S505, as shown in fig. 8, the user brings the mobile phone 100 close to the speaker of character 1 (e.g., speaker 201). After the user brings the mobile phone 100 close to the speaker 201 of the character 1 and makes the distance between the mobile phone 100 and the speaker 201 be within the first distance, the mobile phone 100 can receive the message 1 sent by the speaker 201. The mobile phone 100 is not close to the speaker 202; thus, the mobile phone 100 cannot receive message 2 sent by the speaker 202. As shown in fig. 5, after S508, the method of the embodiment of the present application may further include S510.
S510, the mobile phone 100 receives the message 1 and encrypts the configuration information 1 by using the key 1 to obtain the encrypted information 1.
Wherein the encryption information 1 is first encryption information. Message 1 includes the ID 1 of sound box 201 and key 1. After the mobile phone 100 receives the message 1, it may determine that ID 1 is the identity of the speaker box of the character 1. The mobile phone 100 may save the correspondence between roles and IDs shown in table 2.
TABLE 2
Roles and roles ID
Role 1 ID 1
It can be understood that, according to the correspondence between the roles and the IDs shown in table 2, the mobile phone 100 can determine the IDs of the speakers corresponding to the role 1.
The configuration information 1 may further include role indication information 1, where the role indication information 1 is used to indicate that the sound box 201 is configured to be role 1 (such as a left front channel). Wherein the configuration information 1 is first configuration information. The character indication information 1 is first indication information.
The configuration information 1 may include distribution network information 1. The distribution network information 1 is first distribution network information. The network information 1 is used to support the loudspeaker 201 to perform data interaction in the combined loudspeaker. The detailed description of the distribution network information 1 may refer to the relevant content in the following embodiments, which are not described herein.
S511, the mobile phone 100 sends the encrypted information 1 to the speaker 201.
For example, the mobile phone 100 may send encrypted information 1 to the speaker 201 according to the ID 1 of the speaker 201. Alternatively, the handset 100 may broadcast a WiFi message that includes the above-described encryption information 1. Wherein, the key 1 is randomly generated by the loudspeaker 201, and only the mobile phone 100 obtains the key 1 through the message 1; other devices cannot learn the key 1. Therefore, even if the other device receives the WiFi message including the encrypted information 1, the encrypted information 1 cannot be decrypted, and the configuration information 1 cannot be obtained.
S512, the loudspeaker 201 receives the encrypted information 1 from the mobile phone 100, and decrypts the encrypted information 1 by using the key 1 to obtain the configuration information 1.
S513, the loudspeaker box 201 sends out prompt information 1. The prompt 1 is used to indicate that the speaker 201 is configured to be the character 1 indicated by the configuration information 1.
For example, the speaker 201 may send out a cue 1 as shown in fig. 10A, such as "left front channel" 1001. Alternatively, the speaker 201 may display the light band corresponding to the character 1, and send the prompt 1 through the light band. For example, the speaker 201 may display the prompt 1003 shown in fig. 10B. For another example, the prompt message 1 may be a voice message. The loudspeaker 201 may issue a voice prompt, such as "loudspeaker is configured as the left front channel". For another example, the prompt information 1 may be "configured channel", "channel configured" or "role configured" information, which is not limited in this embodiment of the present application.
S514, the loudspeaker 201 uses the configuration network information 1 in the configuration information 1 to interact with other loudspeakers participating in the combination.
It should be noted that the above-mentioned configuration network information may have two different implementations. In different implementations, the specific content of the distribution network information is different, and the speaker 201 uses the distribution network information to interact with other speakers participating in the combination in different ways. The details of S514 may refer to the relevant content in the following embodiments, which are not described herein.
In some embodiments, after the speaker 201 performs S508, the weak antenna may be used to continue to receive the encrypted information 1 from the mobile phone 100. In this embodiment, after the speaker 202 performs S509, the weak antenna may be used to continue to receive information (e.g., encrypted information 2) from the mobile phone 100.
In other embodiments, speakers (e.g., speaker 201 and speaker 202) may use a strong antenna by a weak antenna after sending a short-range message. For example, as shown in fig. 5, after transmitting message 1, the speaker 201 may perform S508a, using a strong antenna by a weak antenna; after transmitting message 2, speaker 202 may perform S509a, using the strong antenna by the weak antenna. The speaker 201 may receive the encrypted information 1 from the handset 100 using a strong antenna.
For example, after receiving the NAN release message broadcast by the mobile phone 100, the speaker may periodically use the weak antenna and the strong antenna until the encrypted information from the mobile phone 100 is received, and the weak antenna is no longer used. Embodiments of the present application the principle of using weak and strong antennas for the soundbox in embodiments of the present application is described herein in connection with fig. 11.
As shown in fig. 11, after the speaker 300 subscribes to the NAN service, if a NAN release message from the mobile phone 100 is received, a weak antenna may be used and the message a may be broadcast using the weak antenna. The message a includes the ID of the sound box 300 and the key a. After the preset time period T1, the enclosure 300 may be switched from the weak antenna to the strong antenna, i.e., the strong antenna is used. After the preset time period T2, the enclosure 300 may switch from the strong antenna to the weak antenna (i.e., use the weak antenna) and broadcast the message b using the weak antenna. The message b includes the ID of the sound box 300 and the key b. After the preset time period T1, the enclosure 300 may be switched from the weak antenna to the strong antenna, i.e., the strong antenna is used. Until the speaker 300 receives the encrypted information from the mobile phone 100, the speaker 300 will not use the weak antenna any more, i.e. will not need to broadcast the short-range message using the weak antenna any more.
It should be noted that the preset time period T1 may be the same as or different from the preset time period T2. Loudspeaker 300 may broadcast one or more short-range messages using the weak antenna for a preset period of time T1. The keys included in the short message broadcast by the loudspeaker 300 may be the same within the same preset time period T1. However, in different preset durations T1, the keys included in the short-range message broadcast by the sound box 300 are different. For example, key a and key b are keys that are randomly generated by loudspeaker 300, and key a and key b are different.
The sound box 300 shown in fig. 11 may be any one of the sound boxes 201, 202, 203, 204, and 205 shown in fig. 8. That is, the speaker 201, the speaker 202, the speaker 203, the speaker 204, and the speaker 205 may switch between the weak antenna and the strong antenna in the manner shown in fig. 11 until the encrypted information from the mobile phone 100 is received.
For example, as shown in fig. 5, after the speaker 202 performs S507 to use the weak antenna and S509 to broadcast the short message 2 using the weak antenna, since the mobile phone 100 is not close to the speaker 202; thus, the mobile phone 100 cannot receive the short message 2 sent by the speaker 202, and thus cannot reply to the speaker 202 with encrypted information. After S509a, the speaker 202 may then perform S515-S516.
S515, the speaker 202 uses a weak antenna.
Among them, S509a and S515 are optional.
S516, the speaker 202 broadcasts message 3 using the weak antenna. The message 3 includes the ID 2 of the speaker 202 and the key 3.
Wherein ID 2 of the sound box 202 is used to identify the sound box 202. The key 3 may be a key randomly generated by the speaker 202. The key 3 is different from the key 2.
It will be appreciated that the effective transmission distance of the enclosure 202 for wireless communication using a weak antenna is a first distance (e.g., 0.3 meters). Only if the distance between the other device (e.g., the mobile phone 100) and the speaker is less than the first distance, the short-range message sent by the speaker 202 may be received. While other devices having a distance greater than the first distance from the speaker 202 cannot receive the short message sent by the speaker 202. Such ultra-short distance communication can ensure that short distance messages sent by the loudspeaker box are not received by other equipment, can avoid the situation that the loudspeaker box is operated due to interaction between keys of the loudspeaker box acquired by other equipment and the loudspeaker box, and can ensure the safety of data transmission between the mobile phone 100 and the loudspeaker box 202.
In some embodiments, after the mobile phone 100 sends the encrypted information 1 to the speaker 201, another speaker participating in the combination (e.g., the speaker 202) may be configured. For example, as shown in fig. 5, after S511, the mobile phone 100 may perform S517-S519 to configure the sound box 202.
S517, the mobile phone 100 displays a fourth interface. The fourth interface is used for prompting the user to approach the mobile phone 100 to the speaker box of the character 2, so that the distance between the mobile phone 100 and the speaker box of the character 2 is within the first distance.
For example, role 2 is the second role. The handset 100 may display a fourth interface 1201 shown in fig. 12. The fourth interface 1201 is used to prompt the user to bring the handset 100 closer to the speaker of character 2 (e.g., the right front channel). For example, the fourth interface 1201 includes a third prompt 1202, such as "please get the mobile phone close to the speaker whose character is the front right channel". Wherein, the role 2 may be any one of the N sound boxes. For example, in the fourth interface 1201 shown in fig. 12, character 2 is a right front channel, and the sound box of this character 2 is the sound box 202 shown in fig. 8.
After S517, the user brings the mobile phone 100 close to the speaker of character 2 (e.g., speaker 202). After the user brings the mobile phone 100 close to the speaker 202 of the character 2 so that the distance between the mobile phone 100 and the speaker 202 is within the first distance, the mobile phone 100 can receive the message 3 sent by the speaker 202. As shown in fig. 5, after S516 and S517, the method of the embodiment of the present application may further include S518.
S518, the mobile phone 100 receives the message 3 and encrypts the configuration information 2 by using the key 2 to obtain the encrypted information 2.
Wherein the encryption information 2 is second encryption information. The message 3 is a second message or a third message. Short distance 3 includes ID 2 and key 3 of sound box 202. The enclosure 202 is a second enclosure. ID 2 is the identity of the second speaker. Key 3 is either the second key or the third key. After the mobile phone 100 receives the short distance 3, it can determine that ID 2 is the identity of the speaker box of the character 2. The mobile phone 100 may save the correspondence between roles and IDs shown in table 3.
TABLE 3 Table 3
Roles and roles ID
Role 1 ID 1
Role 2 ID 2
It will be appreciated that, according to the correspondence between the roles and the IDs shown in table 3, the mobile phone 100 can determine the IDs of the speakers corresponding to the role 2.
The configuration information 2 may further include role indication information 2, where the role indication information 2 is used to indicate that the speaker 202 is configured to be the role 2 (such as a right front channel). Configuration information 2 is second configuration information. The character indication information 2 is second indication information.
The configuration information 2 may include distribution network information 2. The distribution network information 2 is second distribution network information. The distribution network information 2 is used to support the loudspeaker 201 to perform data interaction in the combined loudspeaker. The detailed description of the distribution network information 2 may refer to the relevant content in the following embodiments, which are not described herein.
S519, the mobile phone 100 transmits the encrypted information 2 to the sound box 202.
For example, the mobile phone 100 may send encrypted information 2 to the speaker 202 based on the ID 2 of the speaker 202. Alternatively, the handset 100 may broadcast a WiFi message that includes the above-described encrypted information 2. Wherein, the key 3 is randomly generated by the sound box 202, and only the mobile phone 100 obtains the key 3 through the short distance 3; other devices cannot learn the key 3. Therefore, even if the other device receives the WiFi message including the encrypted information 2, the encrypted information 2 cannot be decrypted, and the configuration information 2 cannot be obtained.
S520, the sound box 202 receives the encrypted information 2 from the mobile phone 100, and decrypts the encrypted information 2 by using the key 3 to obtain the configuration information 2.
S521, the sound box 202 sends out prompt information 2. The hint information 2 is used to indicate that the speaker 202 is configured to be the character 2 indicated by the configuration information 2.
For example, sound box 202 may display the light band corresponding to character 2 described above, through which prompt 2 is sent. For example, the speaker 201 may display a prompt 1301 shown in fig. 13.
For another example, the prompt 2 may be voice information. The speaker 202 may issue a voice prompt, such as "the speaker is configured as the right front channel".
S522, the sound box 202 uses the configuration network information 2 in the configuration information 2 to interact with other sound boxes participating in the combination.
It should be noted that the above-mentioned configuration network information may have two different implementations. In different implementations, the specific content of the distribution network information is different, and the speaker 202 uses the distribution network information to interact with other speakers participating in the combination in different ways. The details of S522 may refer to the relevant content in the following embodiments, which are not described herein.
As shown in fig. 5, after S518, the mobile phone 100 may execute S523 to configure the sound box 203, the sound box 204, and the sound box 205. For the specific method of configuring the sound box 203, the sound box 204, and the sound box 205 in S523, reference may be made to the method of configuring the sound box 201 and the sound box 202 in the above embodiment, which is not described herein.
Illustratively, assume that the ID of enclosure 203 is ID 3, the ID of enclosure 204 is ID 4, and the ID of enclosure 205 is ID 5. The mobile phone 100 may save the correspondence between roles and IDs shown in table 4.
TABLE 4 Table 4
Roles and roles ID
Role 1 (e.g. left front channel) ID 1
Role 2 (e.g. right front sound channel) ID 2
Role 3 (e.g. center channel) ID 3
Role 4 (e.g. left surround channel) ID 4
Role 5 (e.g. right surround channel) ID 5
In this embodiment of the present application, the mobile phone 100 may indicate the placement layout of the N sound boxes to the user through an interface (such as the second interface), so that the user may place the N sound boxes according to the placement layout indicated by the second interface. The placement position of the sound box can determine the role of the sound box in the combined sound box. The placement positions of the sound boxes are different, and the sound boxes have different roles in N sound boxes participating in combination. The mobile phone 100 may assign roles to each of the N speakers according to the placement positions of the N speakers. Therefore, the playing effect of the combined sound box can be improved.
In addition, the mobile phone 100 may mark the roles of the sound boxes located at different positions on the interface. The mobile phone 100 may then instruct the user to place the mobile phone 100 next to the speaker for each character via an interface (e.g., a third interface or a fourth interface). It can be appreciated that, after the user places the N sound boxes according to the instruction of the mobile phone 100, the placement layout of the N sound boxes is the same as the placement layout of the N sound boxes participating in the combination on the mobile phone 100. Therefore, when the mobile phone 100 indicates that the user approaches the mobile phone 100 to the speaker of a character, the mobile phone 100 can accurately find the speaker corresponding to the character according to the position of the icon of the speaker of the character on the interface.
In summary, in the method of the embodiment of the present application, the mobile phone 100 may support the user to set the roles of the sound boxes participating in the combination in an intuitive manner. Therefore, the problem of character setting errors caused by the fact that users are difficult to distinguish each sound box can be solved, and the accuracy of character setting can be improved. Moreover, the roles of the sound boxes participating in the combination are accurately set, so that the audio playing effect of the combined sound box can be improved.
Further, a speaker (e.g., speaker 201) uses a weak antenna to broadcast a short-range message that includes the speaker's ID and key. Such ultra-short distance communication can ensure that short distance messages sent by the loudspeaker box are not received by other equipment, can avoid operating the loudspeaker box due to interaction between keys of the loudspeaker box acquired by other equipment and the loudspeaker box, and can ensure the safety of data transmission between the mobile phone 100 and the loudspeaker box. In addition, the short-distance message transmission is realized in a mode that the mobile phone 100 approaches (e.g. touches) the sound box, so that the operation of a user is facilitated, and the operation experience of the user can be improved.
In other embodiments, the mobile phone 100 may configure another speaker (e.g., speaker 202) participating in the combination after confirming that the speaker 201 is configured successfully. For example, as shown in fig. 14, prior to S517-S518, the method of embodiments of the present application may further include S1401-S1402; prior to S523, the method of embodiments of the present application may further include S1403-S1404.
S1401, the speaker 201 transmits a confirmation message 1 to the mobile phone 100.
Wherein the acknowledgement message 1 is a first acknowledgement message. The confirmation message 1 is used to indicate that the loudspeaker 201 is configured successfully. In one implementation, the speaker 201 may perform S1401 to send a confirmation message 1 to the mobile phone 100 after receiving the encrypted information 1 from the mobile phone 100. For example, as shown in fig. 14, after executing S513 to send out the prompt information 1, the speaker 201 executes S1101 to send the confirmation message 1 to the mobile phone 100.
In another implementation, after the speaker 201 sends the prompt 1, the user's operation c on the speaker 201 may be received. This operation c is used to confirm that the sound box configuration is completed. For example, the operation c may be a click operation of the "ok" button 1002 shown in fig. 10A or the "ok" button 1004 shown in fig. 10B by the user. In response to user operation c of the speaker 201, the speaker 201 may send a confirmation message 1 to the mobile phone 100.
S1402, the mobile phone 100 receives the acknowledgement message 1.
In this embodiment, after receiving the confirmation message 1, the mobile phone 100 may determine that the speaker 201 is configured successfully. At this time, the mobile phone 100 may then perform S517-S518. That is, in response to the mobile phone 100 receiving the confirmation message 1, the mobile phone 100 may perform S517-S518.
S1403, the speaker 202 sends a confirmation message 2 to the mobile phone 100.
Wherein the acknowledgement message 2 is a second acknowledgement message. The confirmation message 2 is used to indicate that the speaker 202 is configured successfully. In one implementation, the speaker 202 may perform S1403 to send the confirmation message 2 to the mobile phone 100 after receiving the encrypted information 2 from the mobile phone 100. For example, as shown in fig. 14, after executing S521 to send out the prompt 2, the speaker 202 may execute S1403 to send a confirmation message 2 to the mobile phone 100.
In another implementation, after the speaker 202 sends out the prompt 2, the user's operation c on the speaker 202 may be received. This operation c is used to confirm that the sound box configuration is completed. For example, the operation c may be a click operation of the "ok" button 1302 shown in fig. 13 by the user. In response to user operation c of the speaker 202, the speaker 202 may send a confirmation message 2 to the mobile phone 100.
S1404, the mobile phone 100 receives the confirmation message 2.
In this embodiment, after receiving the confirmation message 2, the mobile phone 100 may determine that the speaker 202 is configured successfully. At this time, the mobile phone 100 may then execute S523. That is, in response to the mobile phone 100 receiving the confirmation message 2, the mobile phone 100 may perform S523.
It will be appreciated that if the user inputs operation c to the loudspeaker box, this means that the user determines that the loudspeaker box is properly configured. The user confirmation flow is increased, and the accuracy of the character configuration of each sound box in the combined sound box can be further improved.
The embodiment of the present application describes the configuration information, such as configuration information 1 and configuration information 2, in the configuration information.
In a first application scenario, the N speakers form a combined speaker in an AP mode in which a main speaker is an Access Point (AP). For example, the speaker 201 shown in fig. 15 is a master speaker among N speakers, and the other speakers are slave speakers.
In a first application scenario, the configuration information 1 (i.e., the first configuration information) sent by the mobile phone 100 to the speaker 201 (main speaker) may include: role indication information 1 (i.e., first indication information), identity indication information 1 (i.e., second identity information), and distribution network information 1 (i.e., first distribution network information).
The role indication information 1 is used to indicate that the speaker 201 is configured to be role 1 (e.g., left front channel). The identity indication information 1 is used to indicate that the sound box 201 is a main sound box.
The distribution network information 1 may include: the primary speaker (e.g., speaker 201) acts as the first SSID and first access password for the AP. In one implementation, the first SSID and first access password may be randomly generated by the handset 100. In another implementation, the first SSID and first access password may be randomly generated or preconfigured by the speaker 201. In such an implementation, the handset 100 may receive the first SSID and the first access code from the speaker 201. For example, the first SSID and the first access password may be carried in the short range message 1 described above.
In this application scenario, after the sound box 201 receives the configuration information 1, it may be determined that the sound box 201 is a main sound box according to the identity indication information 1 in the configuration information 1. The loudspeaker 201 may then act as an access point to create a first wireless lan. The SSID of the first wireless local area network is the first SSID, and the access password of the first wireless local area network is the first access password.
In a first application scenario, configuration information 2 (i.e., second configuration information) sent by the mobile phone 100 to the speaker 202 (from the speaker) may include: role indication information 2 (i.e., second indication information), identity indication information 2 (i.e., first identity information), and distribution network information 2 (i.e., second distribution network information).
The role indication information 2 is used to indicate that the speaker 202 is configured to be role 2 (e.g., right front channel). The identity information 2 is used to indicate that the speaker 202 is a slave speaker. The distribution network information 2 may include: the first SSID and first access password of the AP to be accessed from a speaker (e.g., speaker 202).
In this application scenario, after the sound box 202 receives the configuration information 2, it may be determined that the sound box 202 is a slave sound box according to the identity indication information 2 in the configuration information 2. The speaker 202 may then access the first wireless lan based on the first SSID and the first access code.
It should be noted that, after the speakers (such as the speaker 202, the speaker 203, the speaker 204, or the speaker 205) are all connected to the first wireless lan generated by the speaker 201 as the access point, the above-mentioned combined speaker can be completed.
In the first application scenario, the main sound box (such as the sound box 201) may also access the network to implement interaction between the sound box and the cloud device. The handset 100 may also send the SSID (denoted as the second SSID) and the access code (denoted as the second access code) of the router 1500 shown in fig. 15 to a main speaker (e.g., speaker 201).
In one implementation manner, the network configuration information 1 may further include a second SSID and a second access password. After the sound box 201 receives the configuration information 1, it may be determined that the sound box 201 is a main sound box according to the identity indication information 1 in the configuration information 1. The loudspeaker 201 may then access the second wireless local area network provided by the router 1500 according to the second SSID and the second access code.
In another implementation, the network configuration information 1 does not include the second SSID and the second access password. The mobile phone 100 may encrypt the second SSID and the second access password with the key 1 to obtain encrypted information 4; the encrypted information 4 is then sent to the loudspeaker 201. After the loudspeaker 201 receives the encrypted information 4, the loudspeaker can decrypt the encrypted information 4 by using the secret key 1 to obtain a second SSID and a second access password; then, the second wireless local area network provided by the router 1500 is accessed according to the second SSID and the second access password.
As shown in fig. 15, the loudspeaker 201 as a master loudspeaker may access a second wireless lan provided by a router 1500, and interact with the cloud device through the router 1500. As shown in fig. 15, other speakers (e.g., speaker 202, speaker 203, speaker 204, or speaker 205) may be used as the first wireless lan from which speaker 201 may be accessed.
In a second application scenario, the N speakers form a combined speaker in a non-AP mode. For example, the speaker 201 shown in fig. 16 is a master speaker among N speakers, and the other speakers are slave speakers.
In a second application scenario, the configuration information 1 sent by the mobile phone 100 to the speaker 201 (main speaker box) may include: role indication information 1, identity indication information 1 and distribution network information 1.
The role indication information 1 is used to indicate that the speaker 201 is configured to be role 1 (e.g., left front channel). The identity indication information 1 is used to indicate that the sound box 201 is a main sound box. The distribution network information 1 may include: the SSID of the router 1500 (denoted as the second SSID) and the access password (denoted as the second access password). After the sound box 201 receives the configuration information 1, it may be determined that the sound box 201 is a main sound box according to the identity indication information 1 in the configuration information 1. The loudspeaker 201 accesses the second wireless local area network according to the second SSID and the second access code.
In a second application scenario, configuration information 2 sent by the mobile phone 100 to the speaker 202 (from the speaker) may include: role indication information 2, identity indication information 2 and distribution network information 2.
The role indication information 2 is used to indicate that the speaker 202 is configured to be role 2 (e.g., right front channel). The identity information 2 is used to indicate that the speaker 202 is a slave speaker. The distribution network information 2 may include: a second SSID and a second access password. After the sound box 202 receives the configuration information 2, it can be determined that the sound box 202 is a slave sound box according to the identity indication information 2 in the configuration information 2. The speaker 202 may then access the second wireless local area network according to the second SSID and the second access code.
It will be appreciated that the above-described construction of the composite enclosure may be accomplished after both the master enclosure (e.g., enclosure 201) and the slave enclosure (e.g., enclosure 202, enclosure 203, enclosure 204, or enclosure 205) have access to the second wireless lan provided by the router. For example, as shown in fig. 16, the speaker 201 acts as a master speaker, and the speaker 202, the speaker 203, the speaker 204, or the speaker 205 acts as a slave speaker that can access a second wireless lan provided by the router 1500.
It should be noted that, in the second application scenario, the master speaker (e.g., speaker 201) and the slave speaker perform data transmission through the router 1500. The primary speaker may also interact with the cloud device through router 1500.
In some embodiments, the N speakers may be configured in an AP mode or a non-AP mode to form a combined speaker, which is pre-configured before the speakers are shipped. The content of the configuration information that the mobile phone 100 needs to send to the sound box is also preconfigured in the first APP.
In another embodiment, the N speakers may be selected by the user to form a composite speaker in an AP mode or a non-AP mode.
In one implementation of this embodiment, the handset 100 may display a fifth interface in response to the user's operation a of the first interface. The fifth interface is used for prompting a user to select the mode that the N sound boxes form the combined sound box. For example, the modes in which the N speakers constitute a combined speaker may include an AP mode and a non-AP mode.
For example, in response to a user clicking (e.g., clicking) on the "stereo combined speaker" option 702 or the "surround combined speaker" option 703 shown in fig. 7A, the mobile phone 100 may display a fifth interface 1701 shown in fig. 17. The fifth interface 1701 includes an "AP mode" option 1702 and a "non-AP mode" option 1703. The fifth interface 1701 further includes a prompt for introducing the AP mode and the non-AP mode, for example, the prompt is "in AP mode, the main speaker is used as a hotspot, the wireless lan 1704 provided by the main speaker is connected to the main speaker, and the prompt is" in non-AP mode, the main speaker and the auxiliary speaker are both connected to the wireless lan 1705 provided by the router.
In response to a user's selection operation of the AP mode at the fifth interface, such as a user's click operation of the "AP mode" option 1702 shown in fig. 17, the mobile phone 100 may display a second interface. Then, when executing S510, the mobile phone 100 may encrypt the configuration information 1 in the first application scenario with the key 1 to obtain the encrypted information 1. When executing S518, the mobile phone 100 may encrypt the configuration information 2 in the first application scenario with the key 3 to obtain the encrypted information 2. Also, speakers (e.g., speaker 201 or speaker 202) may also interact with other speakers participating in the combination in the manner described in the first scenario above.
In response to a user's selection of the non-AP mode at the fifth interface, such as a user's click on the "AP mode" option 1702 shown in fig. 17, the mobile phone 100 may display a second interface. Then, when executing S510, the mobile phone 100 may encrypt the configuration information 1 in the second application scenario with the key 1 to obtain the encrypted information 1. When executing S518, the mobile phone 100 may encrypt the configuration information 2 in the second application scenario with the key 3 to obtain the encrypted information 2. Also, speakers (e.g., speaker 201 or speaker 202) may also interact with other speakers participating in the combination in the manner described in the second scenario above.
In another implementation of this embodiment, the handset 100 may display a fifth interface in response to the user's operation b of the second interface. The fifth interface is used for prompting a user to select the mode that the N sound boxes form the combined sound box. For example, the modes in which the N speakers constitute a combined speaker may include an AP mode and a non-AP mode.
For example, in response to a user clicking on the "start distribution" button 706 shown in fig. 7B or 7C, the mobile phone 100 may display a fifth interface 1701 shown in fig. 17. The fifth interface 1701 includes an "AP mode" option 1702 and a "non-AP mode" option 1703.
In response to a user's selection operation of the AP mode at the fifth interface, such as a user's click operation of the "AP mode" option 1702 shown in fig. 17, the mobile phone 100 may display a third interface. Then, when executing S510, the mobile phone 100 may encrypt the configuration information 1 in the first application scenario with the key 1 to obtain the encrypted information 1. When executing S518, the mobile phone 100 may encrypt the configuration information 2 in the first application scenario with the key 3 to obtain the encrypted information 2. Also, speakers (e.g., speaker 201 or speaker 202) may also interact with other speakers participating in the combination in the manner described in the first scenario above.
In response to a user's selection of the non-AP mode at the fifth interface, such as a user's click on the "AP mode" option 1702 shown in fig. 17, the mobile phone 100 may display a third interface. Then, when executing S510, the mobile phone 100 may encrypt the configuration information 1 in the second application scenario with the key 1 to obtain the encrypted information 1. When executing S518, the mobile phone 100 may encrypt the configuration information 2 in the second application scenario with the key 3 to obtain the encrypted information 2. Also, speakers (e.g., speaker 201 or speaker 202) may also interact with other speakers participating in the combination in the manner described in the second scenario above.
In the embodiment of the application, the combined sound box can be constructed by adopting the AP mode or the non-AP mode by the user. Therefore, the combined sound box can be built according to the preference of the user, and the use experience of the user can be improved.
In some embodiments, the main speaker may be randomly selected from the N speakers by the mobile phone 100. For example, the handset 100 may select the left front channel speaker as the primary speaker.
In other embodiments, the fixed roles of the main speakers among the N speakers may be preconfigured in the first APP. For example, for a stereo combined speaker, the left channel speaker may be the main speaker. For another example, for a surround sound combined speaker, the center channel speaker may be the main speaker. In the above embodiment, the sound box of the left front sound channel is taken as the main sound box as an example.
In some embodiments, to ensure information security during the data interaction between the master speaker and the slave speaker, the mobile phone 100 may also send a speaker key and a credential to the master speaker and the slave speaker that combine the speakers to perform the data interaction.
In one implementation manner, the configuration information 1 and the configuration information 2 may further include a speaker key and a credential for performing data interaction with the combined speaker. The speaker key is used to encrypt data of interactions between the master and slave speakers, and the credential is used to characterize the identity of the speaker, e.g., the speaker is a member of the composite speaker.
In another implementation, after sending the encrypted information (e.g., encrypted information 1) to the speaker (e.g., speaker 201), or after receiving the confirmation message (e.g., confirmation message 1) from the speaker (e.g., speaker 201), the mobile phone 100 may encrypt the speaker key and the credential with the key (e.g., key 1) of the speaker through short-range message transmission, and then send the encrypted information to the speaker (e.g., speaker 201). After the speaker (e.g., speaker 201) receives the encrypted information, the speaker can decrypt the information to obtain the speaker key and the credential.
In other embodiments, the master and slave speakers in the composite speaker may periodically negotiate and update the speaker keys and credentials described above. Therefore, the information security of the main sound box and the auxiliary sound box in the data interaction process can be improved.
In a first application scenario, the master speaker and the slave speaker may negotiate and update the speaker key and the credential through the first wireless lan. In a second application scenario, the master speaker and the slave speaker may negotiate and update the speaker key and the credential through the second wlan.
In some embodiments, the handset 100 may also indicate the role of each slave speaker to the master speaker. For example, the mobile phone 100 may send the IDs and roles of the respective slave speakers and their corresponding relationships (the corresponding relationship between the roles and the IDs as shown in table 4) to the master speaker of the N speakers.
In one implementation manner, the configuration information 1 may include the IDs and roles of the slave speakers and their corresponding relations.
In another implementation, the IDs and roles of the slave speakers and their corresponding relationships may not be included in the configuration information 1. After sending the encryption information (such as encryption information 1) to the sound box (such as sound box 201), or after receiving the confirmation message (such as confirmation message 1) from the sound box (such as sound box 201), the mobile phone 100 encrypts the IDs, roles and corresponding relations of the slave sound boxes by using the key (such as key 1) transmitted by the sound box through the short-distance message, and then sends the encrypted information to the sound box (such as sound box 201). The speaker (e.g., speaker 201) may decrypt the information to obtain the ID and role of each slave speaker and its corresponding relationship.
In some embodiments, the mobile phone 100 may broadcast the NAN release message in response to the user's operation a at the first interface. Rather than broadcasting a NAN post message in response to user operation b at the second interface. Specifically, S504 may be replaced with S1801 shown in fig. 18, and S505 may be replaced with S1802 shown in fig. 18.
S1801, the mobile phone 100 broadcasts a NAN release message.
In response to the operation a of the user on the first interface, the mobile phone 100 may perform not only the operation of "displaying the second interface" in S503, but also S1801.
S1802, in response to the operation b of the user on the second interface, displaying a third interface. The third interface is used for prompting the user to approach the mobile phone 100 to the sound box of the role 1, so that the distance between the mobile phone 100 and the sound box of the role 1 is within the first distance.
For example, in response to the user operating the "surround sound speaker combination" option 703 a in the first interface 701 shown in fig. 19, the mobile phone 100 may execute S503 shown in fig. 18 to display the second interface 704 shown in fig. 7B or fig. 7C, and execute S1801 shown in fig. 18 to issue a NAN service (i.e., broadcast a NAN issue message) as shown in fig. 19. In response to operation B of the user at the second interface 704 shown in fig. 7B or fig. 7C, the mobile phone 100 may display a third interface shown in fig. 9A or fig. 9B.
In this embodiment of the present application, the mobile phone 100 may issue the NAN service in response to the operation b of the user on the second interface, or issue the NAN service in response to the operation a of the user on the first interface. The embodiments of the present application are not limited in this regard.
It will be appreciated that the electronic device (e.g., a mobile phone) and the audio box include corresponding hardware structures and/or software modules for performing the functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
According to the embodiment of the application, the above electronic device (such as a mobile phone) and the audio box may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 20 shows a schematic diagram of one possible configuration of an electronic device (such as the mobile phone 100) and a sound box according to the above embodiment. As shown in fig. 20, the electronic device 2010 may include a speaker assembly management module 2011; the sound box 2020 may include an ultra short range module 2021 and a combining module 2022; the acoustic enclosure 2030 may include an ultra short distance module 2031 and a combination module 2032.
The speaker group management module 2011 is configured to guide a user to add each speaker to a group and designate a role, and transfer configuration information to the speaker 2020 and the speaker 2030. For example, the speaker assembly management module 2011 is configured to support the electronic device 2010 to perform S502, S503, S504, S505, S510, S511, S517, S518, S519, S523, S1402, S1404, S1801, S1802, and/or other processes for the techniques described herein in the examples above.
An ultra short-range module 2021 is responsible for sending short-range messages to the electronic device 2010 over a secure distance. For example, the ultra-short distance module 2021 is used to support the sound box 2020 to perform S508 in the above example, and/or other processes for the techniques described herein.
The combination module 2022 is configured to process data transmission between the speakers and play data of a corresponding channel according to the speaker role. For example, the combining module 2022 is used to support the sound box 2020 to perform S501, S506, S507, S508a, S512, S513, S514, S1401 in the above examples, and/or other processes for the techniques described herein.
The ultra-short distance module 2031 is responsible for sending short distance messages to the electronic device 2010 over a secure distance. For example, the ultra-short range module 2031 is used to support the sound box 2020 to perform S509, S516 in the examples described above, and/or other processes for the techniques described herein.
The combination module 2032 is configured to process data transmission between sound boxes and play data of a corresponding sound channel according to a sound box role. For example, the combining module 2032 is used to support the speaker 2030 to perform S501, S506, S507, S509a, S515, S516a, S520, S521, S522, S1403 in the examples described above, and/or other processes for the techniques described herein.
In the case of using an integrated unit, the functions of the speaker combination management module 2011 of the electronic device 2010 described above may be integrated into a processing module, a display module, and a communication module. The functions of the ultra-short distance module 2021 of the sound box 2020 may be integrated into a communication module, and the functions of the combination module 2022 may be integrated into a processing module and a communication module. The functions of the ultra-short distance module 2031 of the above-described sound box 2030 may be integrated into a communication module, and the functions of the combination module 2032 may be integrated into a processing module and a communication module. The sound box 2020 and the sound box 2030 may further include a display module for displaying a reminder (e.g., reminder 1 or reminder 2).
Of course, the unit modules of the electronic device 2010, the sound box 2020, and the sound box 2030 include, but are not limited to, the processing module, the display module, and the communication module described above. For example, electronic device 2010, sound box 2020, and sound box 2030 may also include a storage module.
For example, for electronic device 2010, the processing module may be one or more processors (e.g., processor 110 shown in fig. 2), and the communication module may include a wireless communication module (e.g., wireless communication module 160 shown in fig. 2). The wireless communication module may be referred to as a communication interface. The memory module may be a memory (such as internal memory 121 shown in fig. 2). The display module may be a display screen (such as display screen 194 shown in fig. 2). Wherein the one or more processors, wireless communication modules, memory, display screen, etc. may be coupled together, such as via a bus. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device 2010 may perform the various functions or steps performed by the mobile phone 100 in the method embodiments described above. The structure of the electronic device 2010 may refer to the structure of the electronic device 100 shown in fig. 2.
For example, for a sound box (e.g., sound box 2020 or sound box 2030), the processing module may be one or more processors (e.g., processor 3001 shown in fig. 3), and the communication module may include a wireless communication module (e.g., wireless communication module 308 shown in fig. 3). The wireless communication module may be referred to as a communication interface. The memory module may be a memory (such as internal memory 303 shown in fig. 3). The display module may be a display screen (such as display screen 306 shown in fig. 3). Wherein the one or more processors, wireless communication modules, memory, display screen, etc. may be coupled together, such as via a bus. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the sound box may perform the various functions or steps performed by the sound box 201 or the sound box 202 in the above-described method embodiments. The structure of the sound box may refer to the structure of the sound box 300 shown in fig. 3.
The embodiment of the application also provides a chip system which can be applied to the electronic equipment or the loudspeaker box. As shown in fig. 21, the chip system 2100 includes at least one processor 2101 and at least one interface circuit 2102. The processor 2101 and the interface circuit 2102 may be interconnected by wires. For example, the interface circuit 2102 may be used to receive signals from other devices (e.g., memory of an electronic device or a speaker). For another example, the interface circuit 2102 may be used to send signals to other devices, such as the processor 2101 of an electronic apparatus or a sound box. The interface circuit 2102 may, for example, read instructions stored in a memory and send the instructions to the processor 2101. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
The instructions, when executed by the processor 2101, may cause an electronic device (e.g., the electronic device 100 shown in fig. 2) to perform the steps of the handset 100 in the above-described embodiments.
The instructions, when executed by the processor 2101, may cause a loudspeaker (such as the loudspeaker 300 shown in fig. 3) to perform the steps of the loudspeaker 201 or the loudspeaker 202 in the above-described embodiments.
The embodiments of the present application also provide a computer storage medium, where the computer storage medium includes computer instructions, where the computer instructions, when executed on the electronic device (e.g., the electronic device 100 shown in fig. 2), cause the electronic device to perform the functions or steps performed by the mobile phone 100 in the foregoing method embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone 100 in the method embodiments described above.
Embodiments of the present application also provide a computer storage medium that includes computer instructions that, when executed on the above-described sound box (such as the sound box 300 shown in fig. 3), cause the sound box to perform the functions or steps performed by the sound box 201 or the sound box 202 in the above-described method embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the soundbox 201 or the sound box 202 in the method embodiments described above.
Other embodiments of the present application provide an electronic device, which may include: the touch screen, memory and one or more processors described above. The touch screen, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 1.
Further embodiments of the present application provide a display device, which may be applied to an electronic apparatus including the touch screen. The device is used for executing each function or step executed by the mobile phone in the method embodiment.
Embodiments of the present application also provide a chip system, as shown in fig. 15, which includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 and the interface circuit 1502 may be interconnected by wires. For example, interface circuit 1502 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 1502 may be used to send signals to other devices (e.g., processor 1501). Illustratively, the interface circuit 1502 may read instructions stored in the memory and send the instructions to the processor 1501. The instructions, when executed by the processor 1501, may cause the electronic device to perform the various steps in the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
The embodiment of the application also provides a computer storage medium, which comprises computer instructions, when the computer instructions run on the electronic device, the electronic device is caused to execute the functions or steps executed by the mobile phone in the embodiment of the method.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-mentioned method embodiments.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (32)

1. The method for configuring the combined sound box is characterized by being used for configuring the combined sound box by electronic equipment, wherein a first application APP is installed in the electronic equipment, the combined sound box comprises a plurality of sound boxes, each sound box comprises a first antenna and a second antenna, the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance, and the method comprises the following steps:
the electronic equipment displays a first interface of the first APP; the first interface is used for triggering the electronic equipment to construct a combined sound box with N sound channels, N is more than or equal to 2, and N is a positive integer;
responding to a first operation of a user on a first interface, and displaying a second interface by the electronic equipment; the second interface is used for indicating the placement layout of N sound boxes of the N sound channels, and the role of each sound box in the N sound boxes is determined by the placement layout of the N sound boxes;
Responding to a second operation of a user on the second interface, broadcasting a NAN release message by the electronic equipment, wherein the NAN release message is used for indicating a sound box subscribed to NAN service to use the first antenna;
a first sound box in the N sound boxes receives the NAN release message, and responds to the NAN release message, the first sound box broadcasts a first message by using the first antenna;
the electronic equipment displays a third interface; the third interface is used for prompting a user to enable the electronic equipment to be close to a sound box of a first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance; the third interface is further configured to instruct a role of one or more speakers among the N speakers, where the one or more speakers include a speaker of the first role;
the electronic equipment receives the first message of the first sound box from the first role, wherein the first message comprises an identification of the first sound box and a first key;
the electronic equipment sends first encryption information to the first sound box, the first encryption information is obtained by encrypting first configuration information through the first key, the first configuration information comprises first distribution network information and first indication information, the first indication information is used for indicating that the first sound box is configured into a first role, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
2. The method according to claim 1, wherein the method further comprises:
a second sound box in the N sound boxes receives the NAN release message, and responds to the NAN release message, the second sound box broadcasts a second message by using the first antenna;
the electronic equipment displays a fourth interface, and the fourth interface is used for prompting a user to enable the electronic equipment to be close to a sound box of a second role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the second role is within the first distance; the fourth interface is further configured to instruct one or more speakers including the speaker of the second role in the N speakers;
the electronic equipment receives the second message of the second sound box from the second role, wherein the second message comprises an identification of the second sound box and a second key;
the electronic device sends second encryption information to the second sound box, the second encryption information is obtained by encrypting second configuration information through the second key, the second configuration information comprises second distribution network information and second indication information, the second indication information is used for indicating that the second sound box is configured to be in the second role, and the second distribution network information is used for supporting interaction between the second sound box and other sound boxes in the N sound boxes.
3. The method of claim 2, wherein after the electronic device sends the first encrypted information to the first speaker, the method further comprises:
the electronic equipment receives a first confirmation message from the first sound box, wherein the first confirmation message is used for indicating that the first sound box is configured successfully;
the electronic device displays a fourth interface, including:
and after the electronic equipment receives the first confirmation message, displaying the fourth interface.
4. A method according to claim 2 or 3, wherein the second configuration information further comprises first identity information for indicating that the second loudspeaker is configured as a slave loudspeaker and for indicating that the second loudspeaker is connected to a master loudspeaker as an access point AP providing a first wireless local area network; the second distribution network information includes: a first Service Set Identifier (SSID) and a first access password of the first wireless local area network;
the method further comprises the steps of:
the second sound box is connected to the first wireless local area network according to the first SSID and the first access password, and interacts with the main sound box through the first wireless local area network.
5. A method according to claim 2 or 3, wherein the first configuration information further comprises second identity information for indicating that the first loudspeaker is configured as a main loudspeaker box and for indicating that the first loudspeaker box is providing a first wireless local area network as an access point AP;
the first distribution network information includes: a first SSID and a first access password of the first wireless local area network; alternatively, the method further comprises: the electronic equipment acquires a first SSID and a first access password of the first wireless local area network from the first sound box;
the method further comprises the steps of:
the first loudspeaker box is used as the AP to provide the first wireless local area network, other loudspeaker boxes in the combined loudspeaker box are connected into the first wireless local area network, and the first wireless local area network is used for interacting with the other loudspeaker boxes in the combined loudspeaker box.
6. A method according to claim 2 or 3, wherein the second configuration information further comprises first identity information for indicating that the second loudspeaker is configured as a slave loudspeaker and for indicating that the second loudspeaker accesses a second wireless local area network provided by a router; the second distribution network information includes: a second SSID and a second access password of the second wireless local area network;
The method further comprises the steps of:
the second loudspeaker box is connected to the second wireless local area network according to the second SSID and the second access password, and interacts with the main loudspeaker box in the N loudspeaker boxes through the second wireless local area network;
the first configuration information further comprises second identity information, wherein the second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating the second wireless local area network provided by the first sound box access router; the first distribution network information further includes: the second SSID and the second access password of the second wireless local area network;
the method further comprises the steps of:
the first sound box is connected to the second wireless local area network according to the second SSID and the second access password, and interacts with other sound boxes in the combined sound box through the second wireless local area network.
7. A method according to claim 2 or 3, wherein the first configuration information further comprises a speaker key and credentials for the N speaker interactions; the second configuration information further comprises sound box keys and certificates for the N sound box interactions;
the method further comprises the steps of:
The first sound box and the second sound box interact through a first wireless local area network provided by the first sound box according to the sound box secret key and the certificate.
8. A method according to any of claims 1-3, wherein the loudspeaker broadcasts a first message using the first antenna first, comprising:
the first sound box periodically uses the first antenna and the second antenna;
and broadcasting the first message when the first loudspeaker box uses the first antenna.
9. The method for configuring the combined sound box is characterized by being used for configuring the combined sound box by electronic equipment, wherein a first application APP is installed in the electronic equipment, the combined sound box comprises a plurality of sound boxes, each sound box comprises a first antenna and a second antenna, the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance, and the method comprises the following steps:
the electronic equipment displays a first interface of the first APP; the first interface is used for triggering the electronic equipment to construct a combined sound box with N sound channels, N is more than or equal to 2, and N is a positive integer;
responding to a first operation of a user on a first interface, and displaying a second interface by the electronic equipment; the second interface is used for indicating the placement layout of N sound boxes of the N sound channels, and the role of each sound box in the N sound boxes is determined by the placement layout of the N sound boxes;
Responding to a second operation of the user on the second interface, broadcasting a message issued by the proximity-aware network NAN by the electronic equipment, and displaying a third interface; the NAN release message is used for indicating a sound box subscribed to NAN service to use the first antenna; the third interface is used for prompting a user to enable the electronic equipment to be close to a sound box of a first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance; the third interface is further configured to instruct one or more speakers including the speaker of the first role from among the N speakers;
the electronic equipment receives a first message from a first sound box of the first role, wherein the first message comprises an identification of the first sound box and a first key;
the electronic equipment sends first encryption information to the first sound box, the first encryption information is obtained by encrypting first configuration information through the first key, the first configuration information comprises first distribution network information and first indication information, the first indication information is used for indicating that the first sound box is configured into a first role, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
10. The method of claim 9, wherein the second interface is further configured to indicate a role for each of the N speakers.
11. The method of claim 9 or 10, wherein after the electronic device sends the first encrypted information to the first speaker, the method further comprises:
the electronic equipment displays a fourth interface, and the fourth interface is used for prompting a user to enable the electronic equipment to be close to a sound box of a second role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the second role is within the first distance; the fourth interface is further configured to instruct one or more speakers including the speaker of the second role in the N speakers;
the electronic equipment receives a second message from a second sound box of the second role, wherein the second message comprises an identification of the second sound box and a second key;
the electronic device sends second encryption information to the second sound box, the second encryption information is obtained by encrypting second configuration information through the second key, the second configuration information comprises second distribution network information and second indication information, the second indication information is used for indicating that the second sound box is configured to be in the second role, and the second distribution network information is used for supporting interaction between the second sound box and other sound boxes in the N sound boxes.
12. The method of claim 11, wherein the electronic device displays a fourth interface comprising:
after the electronic equipment receives the first confirmation message from the first sound box, displaying the fourth interface;
the first confirmation message is used for indicating that the first sound box is configured successfully.
13. The method of claim 12, wherein the second configuration information further comprises first identity information, the first identity information being used to indicate that the second speaker is configured as a slave speaker and to indicate that the second speaker accesses a master speaker as an access point AP to provide a first wireless local area network;
the second distribution network information includes: a first service set identification SSID and a first access password of the first wireless local area network.
14. The method according to claim 12 or 13, wherein the first configuration information further comprises second identity information, the second identity information being used to indicate that the first sound box is configured as a main sound box and also being used to indicate that the first sound box provides a first wireless local area network as an access point AP;
the first distribution network information includes: a first SSID and a first access password of the first wireless local area network; alternatively, the method further comprises: and the electronic equipment acquires a first SSID and a first access password of the first wireless local area network from the first sound box.
15. The method of claim 12, wherein the second configuration information further comprises first identity information indicating that the second speaker is configured as a slave speaker and further indicating that the second speaker accesses a second wireless local area network provided by a router; the second distribution network information includes: a second SSID and a second access password of the second wireless local area network;
the first configuration information further comprises second identity information, wherein the second identity information is used for indicating that the first sound box is configured as a main sound box and is also used for indicating that the first sound box accesses a second wireless local area network provided by a router; the first distribution network information further includes: and a second SSID and a second access password of the second wireless local area network.
16. The method of claim 12 or 13 or 15, wherein the second configuration information further comprises a speaker key and credentials for the N speaker interactions.
17. The method of claim 9 or 10 or 12 or 13 or 15, wherein the first configuration information further comprises speaker keys and credentials for the N speaker interactions.
18. The method for configuring the combined sound box is characterized by being used for configuring the combined sound box by electronic equipment, wherein a first application APP is installed in the electronic equipment, the combined sound box comprises a plurality of sound boxes, each sound box comprises a first antenna and a second antenna, the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance, and the method comprises the following steps:
The electronic equipment displays a first interface of the first APP; the first interface is used for triggering the electronic equipment to construct a combined sound box with N sound channels, N is more than or equal to 2, and N is a positive integer;
responding to a first operation of a user on a first interface, displaying a second interface by the electronic equipment, and broadcasting a message issued by a proximity-aware network NAN; the second interface is used for indicating the placement layout of N sound boxes of the N sound channels, and the role of each sound box in the N sound boxes is determined by the placement layout of the N sound boxes; the NAN release message is used for indicating a sound box subscribed to NAN service to use the first antenna;
responding to a second operation of a user on the second interface, and displaying a third interface by the electronic equipment; the third interface is used for prompting a user to enable the electronic equipment to be close to a sound box of a first role in the N sound boxes, so that the distance between the electronic equipment and the sound box of the first role is within the first distance; the third interface is further configured to instruct a role of one or more each of the N speakers including the speaker of the first role;
the electronic equipment receives a first message from a first sound box of the first role, wherein the first message comprises an identification of the first sound box and a first key;
The electronic equipment sends first encryption information to the first sound box, the first encryption information is obtained by encrypting first configuration information through the first key, the first configuration information comprises first distribution network information and first indication information, the first indication information is used for indicating that the first sound box is configured into a first role, and the first distribution network information is used for supporting interaction between the first sound box and other sound boxes in the N sound boxes.
19. The utility model provides a configuration method of combination audio amplifier, characterized by is applied to the audio amplifier, the audio amplifier includes first antenna and second antenna, the transmission distance of first antenna is first distance, the transmission distance of second antenna is the second distance, first distance is less than the second distance, the method includes:
the sound box receives a NAN release message of a proximity sensing network broadcasted by the electronic equipment, wherein the NAN release message is used for indicating the sound box to use the first antenna;
responsive to the NAN issuing a message, the loudspeaker broadcasting the message using the first antenna; wherein, the message comprises the identifier and the secret key of the sound box;
the sound box receives the encryption information from the electronic equipment and decrypts the encryption information by adopting the secret key to obtain configuration information; the encryption information is sent after the electronic equipment receives the message when approaching to the sound box, the encryption information is obtained by adopting the secret key to encrypt configuration information, the configuration information comprises role indication information and distribution network information, the role indication information is used for indicating the role of the sound box configured, and the distribution network information is used for supporting interaction between the sound box and other sound boxes in the combined sound box.
20. The method of claim 19, wherein the method further comprises:
the sound box subscribes to NAN service; wherein the device subscribing to the NAN service is capable of receiving and responding to the NAN publication message.
21. The method according to claim 19 or 20, characterized in that the method further comprises:
the sound box sends out prompt information, and the prompt information is used for indicating the role of the sound box configured.
22. The method of claim 19 or 20, wherein the speaker uses a first antenna to broadcast messages, comprising:
the loudspeaker box periodically switches between the first antenna and the second antenna;
and broadcasting the message when the loudspeaker box uses the first antenna.
23. The method according to claim 19 or 20, wherein the configuration information further comprises: the method comprises the steps of indicating that the sound box is configured to be connected to a first wireless local area network from identity information of the sound box, wherein the identity information is also used for indicating that the sound box is connected to the first wireless local area network; the distribution network information further includes: a first Service Set Identifier (SSID) and a first access password of the first wireless local area network;
the method further comprises the steps of:
the sound box is connected to the first wireless local area network according to the first SSID and the first access password, and interacts with the main sound box in the N sound boxes through the first wireless local area network.
24. The method according to claim 19 or 20, wherein the configuration information further comprises: the method comprises the steps of indicating identity information of the loudspeaker configured as a main loudspeaker, wherein the identity information is also used for indicating the loudspeaker to serve as an Access Point (AP) to provide a first wireless local area network; the distribution network information further includes: a first SSID and a first access password of the first wireless local area network;
the method further comprises the steps of:
the loudspeaker box is used as the AP to provide the first wireless local area network, and other loudspeaker boxes in the combined loudspeaker box are connected to the first wireless local area network;
the loudspeaker box interacts with other loudspeaker boxes in the combined loudspeaker box through the first wireless local area network.
25. The method according to claim 19 or 20, wherein the configuration information further comprises: the method comprises the steps that identity information used for indicating that the sound box is configured as a master sound box or the sound box is configured as a slave sound box is used for indicating a second wireless local area network provided by the sound box access router; the distribution network information further includes: a second SSID and a second access password of the second wireless local area network;
the method further comprises the steps of:
And the sound box is accessed into the second wireless local area network according to the second SSID and the second access password, and interacts with other sound boxes in the combined sound box through the second wireless local area network.
26. The method of claim 19 or 20, wherein the configuration information further comprises speaker keys and credentials for the N speaker interactions;
the method further comprises the steps of:
the sound box interacts with other sound boxes in the combined sound box according to the sound box secret key and the certificate.
27. The method according to claim 19 or 20, characterized in that the method further comprises:
after receiving the encryption information, the sound box sends a confirmation message to the electronic equipment; or alternatively, the process may be performed,
after the sound box sends out the prompt information, a confirmation message is sent to the electronic equipment in response to a third operation of the user on the prompt information; the prompt information is used for indicating the role of the sound box configured;
the confirmation message is used for indicating that the sound box is configured successfully.
28. An electronic device, wherein a first application APP is installed in the electronic device, the electronic device comprising: a memory, a display screen, a communication module, and one or more processors; the memory, the display screen, the communication module are coupled with the processor; the display screen is used for displaying images or interfaces generated by the processor, the communication module is used for communicating with other devices, and the memory is used for storing data in the electronic device; the memory is further for storing computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8 or 9-18.
29. A sound box, characterized in that the sound box comprises a memory, a speaker, a communication module and one or more processors; the communication module comprises a first antenna and a second antenna, wherein the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance; the memory, the speaker, the communication module, and the processor are coupled; the loudspeaker is used for playing audio data, the communication module is used for communicating with other equipment, and the memory is used for storing data in the sound box; the memory is further for storing computer program code comprising computer instructions which, when executed by the processor, cause the loudspeaker to perform the method of any of claims 1-8 or 19-27.
30. A chip system, wherein the chip system is applied to an electronic device comprising a display screen, a communication module and a memory; the system-on-chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the interface circuit is configured to receive a signal from the memory and to send the signal to the processor, the signal including computer instructions stored in the memory; the electronic device, when executing the computer instructions, performs the method of any of claims 1-8 or 9-18.
31. The chip system is characterized in that the chip system is applied to a sound box comprising a communication module and a memory, the communication module comprises a first antenna and a second antenna, the transmission distance of the first antenna is a first distance, the transmission distance of the second antenna is a second distance, and the first distance is smaller than the second distance; the system-on-chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the interface circuit is configured to receive a signal from the memory and to send the signal to the processor, the signal including computer instructions stored in the memory; when the processor executes the computer instructions, the loudspeaker performs the method of any of claims 1-8 or 19-27.
32. A computer storage medium comprising computer instructions which, when run on a device, cause the device to perform the method of any of claims 1-27.
CN202010963117.5A 2020-09-14 2020-09-14 Configuration method of combined sound box, sound box and electronic equipment Active CN114268896B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010963117.5A CN114268896B (en) 2020-09-14 2020-09-14 Configuration method of combined sound box, sound box and electronic equipment
PCT/CN2021/113271 WO2022052760A1 (en) 2020-09-14 2021-08-18 Combined loudspeaker box configuration method, loudspeaker box, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010963117.5A CN114268896B (en) 2020-09-14 2020-09-14 Configuration method of combined sound box, sound box and electronic equipment

Publications (2)

Publication Number Publication Date
CN114268896A CN114268896A (en) 2022-04-01
CN114268896B true CN114268896B (en) 2023-04-28

Family

ID=80632071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010963117.5A Active CN114268896B (en) 2020-09-14 2020-09-14 Configuration method of combined sound box, sound box and electronic equipment

Country Status (2)

Country Link
CN (1) CN114268896B (en)
WO (1) WO2022052760A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135704A (en) * 2014-07-11 2014-11-05 黄天旭 Sound box networking method and sound box network
AU2015215978A1 (en) * 2011-12-29 2015-09-10 Sonos, Inc. Systems and methods for connecting an audio controller to a hidden audio network
CN105163241A (en) * 2015-09-14 2015-12-16 小米科技有限责任公司 Audio playing method and device as well as electronic device
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8594569B2 (en) * 2010-03-19 2013-11-26 Bose Corporation Switchable wired-wireless electromagnetic signal communication
US9247492B2 (en) * 2011-12-29 2016-01-26 Sonos, Inc. Systems and methods for multi-network audio control
CN105307143B (en) * 2015-11-04 2019-02-05 Oppo广东移动通信有限公司 A kind of method for connecting network and wireless sound box
CN106998514B (en) * 2016-01-26 2019-04-30 湖南汇德电子有限公司 Intelligent multichannel configuration method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2015215978A1 (en) * 2011-12-29 2015-09-10 Sonos, Inc. Systems and methods for connecting an audio controller to a hidden audio network
CN104135704A (en) * 2014-07-11 2014-11-05 黄天旭 Sound box networking method and sound box network
CN105163241A (en) * 2015-09-14 2015-12-16 小米科技有限责任公司 Audio playing method and device as well as electronic device
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network

Also Published As

Publication number Publication date
CN114268896A (en) 2022-04-01
WO2022052760A1 (en) 2022-03-17

Similar Documents

Publication Publication Date Title
CN112286147B (en) Control method and device for household equipment
CN110320811B (en) Access method of intelligent household equipment and electronic equipment
CN113163379B (en) Method for discovering and distributing network and electronic equipment
CN114285683B (en) Method and equipment for configuring household equipment in batches
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
TWI463883B (en) A television system for transmitting wireless audio and a control method thereof
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
JP2018509782A (en) Mobile terminal antenna
WO2022143031A1 (en) Identity authentication method, electronic device, and computer readable storage medium
CN113489844B (en) Volume gear adjusting method and electronic equipment
CN112448964B (en) Device discovery method and P2P device
CN114268896B (en) Configuration method of combined sound box, sound box and electronic equipment
WO2023071993A1 (en) Bluetooth pairing method, device, system, and storage medium
CN114827687B (en) Communication method, mobile device, electronic device, and computer-readable storage medium
WO2021129128A1 (en) Wireless charging method for mobile terminal and mobile terminal
CN114205699A (en) Wireless headset, method of controlling wireless headset, and storage medium
CN218183525U (en) Low-power consumption wireless audio adapter and intelligent device
CN113014998B (en) Audio output method, device, television and computer readable storage medium
CN114844974B (en) Method for sharing address book, mobile device, electronic device and communication system
CN114844732B (en) Conference access method and electronic equipment
CN114285737B (en) Method and device for configuring device
EP4297454A1 (en) Method and system for continuing playback of audio
CN113437773B (en) Method, device and terminal for reducing sideband radiation stray in charging scene
CN115175206A (en) IoT (Internet of things) equipment setting method and IoT equipment

Legal Events

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