Movatterモバイル変換


[0]ホーム

URL:


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
CN114268896BCN202010963117.5ACN202010963117ACN114268896BCN 114268896 BCN114268896 BCN 114268896BCN 202010963117 ACN202010963117 ACN 202010963117ACN 114268896 BCN114268896 BCN 114268896B
Authority
CN
China
Prior art keywords
speaker
sound box
interface
information
antenna
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 LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202010963117.5ApriorityCriticalpatent/CN114268896B/en
Priority to PCT/CN2021/113271prioritypatent/WO2022052760A1/en
Publication of CN114268896ApublicationCriticalpatent/CN114268896A/en
Application grantedgrantedCritical
Publication of CN114268896BpublicationCriticalpatent/CN114268896B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

一种组合音箱的配置方法、音箱和电子设备,涉及通信技术领域,通过直观的方式设置参与组合的各个音箱的角色,提升了角色设置的准确率。电子设备显示用于构建N声道组合音箱的第一界面;响应于在第一界面的第一操作显示第二界面;第二界面指示N声道的N个音箱的摆放布局;响应于在第二界面的第二操作,广播NAN发布消息显示第三界面;第三界面提示将电子设备靠近N个音箱中第一角色的音箱,并指示每个音箱的角色;接收来自第一音箱的包括第一音箱的标识和第一秘钥的第一消息;向第一音箱发送第一加密信息,第一加密信息是采用第一秘钥加密,包括指示第一音箱被配置为第一角色的第一指示信息和支持N个音箱交互的第一配网信息。

Figure 202010963117

A method for configuring a combination speaker, the speaker and electronic equipment, relating to the field of communication technology, and setting the roles of each speaker participating in the combination in an intuitive manner, thereby improving the accuracy of role setting. The electronic device displays a first interface for building an N-channel combined sound box; a second interface is displayed in response to a first operation on the first interface; the second interface indicates the layout of N sound boxes of N channels; In the second operation of the second interface, the broadcast NAN publishes a message to display the third interface; the third interface prompts to bring the electronic device close to the first role of the N speakers, and indicates the role of each speaker; receiving information from the first speaker includes The identification of the first speaker and the first message of the first secret key; sending the first encrypted message to the first speaker, the first encrypted message is encrypted with the first secret key, including the first message indicating that the first speaker is configured as the first role Instruction information and first distribution network information supporting interaction of N speakers.

Figure 202010963117

Description

Translated fromChinese
一种组合音箱的配置方法、音箱和电子设备A configuration method for combined speaker, speaker and electronic equipment

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种组合音箱的配置方法、音箱和电子设备。The embodiments of the present application relate to the technical field of communications, and in particular, to a method for configuring a combined sound box, the sound box, and electronic equipment.

背景技术Background technique

随着音频技术的发展,用户对音频设备(如音箱)的音频播放效果的要求越来越高。为了提升音频播放效果,很多用户将多个音箱构建为组合音箱使用。其中,由多个音箱构建而成的组合音箱可以播放多声道音频(如立体声或环绕声)产生混响效果,可以给用户带来身临其境的感觉。With the development of audio technology, users have higher and higher requirements on audio playback effects of audio equipment (such as speakers). In order to improve the audio playback effect, many users construct multiple speakers as combined speakers. Wherein, a combined sound box constructed by a plurality of sound boxes can play multi-channel audio (such as stereo or surround sound) to generate a reverberation effect, which can bring an immersive feeling to the user.

在构建组合音箱的过程中,需要指定参与组合的音箱,并分别指定每个音箱的角色(如左声道、右声道、左环绕声道或右环绕声道等)。并且,还需要分别为每个音箱配置配网信息。例如,该配网信息可以包括:音箱需要接入的无线局域网的服务集标识(serviceset identifier,SSID)和接入密码、用于指示音箱角色的指示信息,以及音箱间进行数据传输的认证凭证和秘钥等。In the process of constructing a combination speaker, it is necessary to specify the speakers participating in the combination, and specify the role of each speaker (such as left channel, right channel, left surround channel or right surround channel, etc.). In addition, you need to configure the distribution network information for each speaker separately. For example, the distribution network information may include: a service set identifier (SSID) and an access password of a wireless local area network that the speaker needs to access, indication information used to indicate the role of the speaker, and authentication credentials for data transmission between the speakers and secret key etc.

目前,构建组合音箱的方案中,可以由用户在电子设备(如手机)的音箱应用(application,APP)中手动设置每个音箱的角色;并由用户手动操作音箱APP,控制手机逐个向每个音箱发送对应的配网信息,以构建组合音箱。At present, in the scheme of building a combined speaker, the user can manually set the role of each speaker in the speaker application (APP) of an electronic device (such as a mobile phone); The speaker sends the corresponding distribution network information to build a combined speaker.

但是,在参与组合的音箱的外形基本一样的情况下,由用户手动设置每个音箱的角色,可能会因为用户难以区分各个音箱而导致角色设置错误,影响组合音箱的音频播放效果。However, in the case that the appearance of the speakers participating in the combination is basically the same, the user manually sets the role of each speaker, which may lead to wrong role setting because the user is difficult to distinguish each speaker, and affects the audio playback effect of the combination speaker.

发明内容Contents of the invention

本申请提供一种组合音箱的配置方法、音箱和电子设备,可以通过直观的方式设置参与组合的各个音箱的角色,可以提升角色设置的准确率,进而可以提升组合音箱播放音频的效果。The present application provides a method for configuring combined speakers, speakers and electronic equipment, which can intuitively set the roles of each speaker participating in the combination, can improve the accuracy of role setting, and can further improve the audio playback effect of the combined speakers.

第一方面,本申请提供一种组合音箱的配置方法,该方法用于电子设备配置组合音箱,该电子设备中安装有第一应用APP。该组合音箱包括多个音箱,每个音箱包括第一天线和第二天线。第一天线的发射距离为第一距离,第二天线的发射距离为第二距离。该第一距离小于第二距离。In a first aspect, the present application provides a method for configuring a combination speaker, the method is used for configuring a combination speaker on an electronic device, and a first application APP is installed in the electronic device. The combination speaker includes a plurality of speakers, and each speaker includes a first antenna and a second antenna. The transmitting distance of the first antenna is the first distance, and the transmitting distance of the second antenna is the second distance. The first distance is smaller than the second distance.

其中,电子设备可以显示第一APP的第一界面。该第一界面用于触发电子设备构建N声道的组合音箱,N≥2,N为正整数。响应于用户在第一界面的第一操作,电子设备可以显示第二界面。该第二界面用于指示N声道的N个音箱的摆放布局。该N个音箱中每个音箱的角色由N个音箱的摆放布局决定。例如,以N=5为例,5个音箱可以构建包括左前置声道、右前置声道、中置声道、右环绕声道、左环绕声道的环绕声的组合音箱。这5个音箱中不同角色的音箱的摆放位置不同。Wherein, the electronic device may display the first interface of the first APP. The first interface is used to trigger the electronic device to build an N-channel combined sound box, where N≥2, and N is a positive integer. In response to the user's first operation on the first interface, the electronic device may display the second interface. The second interface is used to indicate the layout of N speakers of N channels. The role of each speaker in the N speakers is determined by the layout of the N speakers. For example, taking N=5 as an example, 5 speakers can construct a surround-sound combination speaker including a left front channel, a right front channel, a center channel, a right surround channel, and a left surround channel. The speakers of different roles among the five speakers are placed in different positions.

响应于用户在第二界面的第二操作,电子设备可以广播临近感知网络(neighborhood aware network,NAN)发布消息。其中,该NAN发布消息用于指示订阅NAN服务的音箱使用第一天线。电子设备可以显示第三界面。该第三界面用于提示用户将电子设备靠近N个音箱中第一角色的音箱,使电子设备与第一角色的音箱之间的距离在第一距离内。该第三界面还用于指示N个音箱中包括第一角色的音箱在内的一个或多个音箱的角色。这样,用户便可以明确当前正在配置的音箱的角色为第一角色。In response to the user's second operation on the second interface, the electronic device may broadcast a proximity aware network (neighborhood aware network, NAN) release message. Wherein, the NAN release message is used to instruct the speakers subscribed to the NAN service to use the first antenna. The electronic device can display the third interface. The third interface is used to prompt the user to bring the electronic device close to the first character's sound box among the N sound boxes, so that the distance between the electronic device and the first character's sound box is within a first distance. The third interface is also used to indicate roles of one or more speakers including the speaker of the first role among the N speakers. In this way, the user can determine that the role of the speaker currently being configured is the first role.

上述N个音箱中的第一音箱接收到NAN发布消息,响应于NAN发布消息,第一音箱可以使用第一天线广播第一消息。其中,用户按照上述第三界面的指示持电子设备靠近上述N个音箱中第一角色的音箱后,该电子设备便可以接收到来自第一音箱的第一消息。该第一消息包括第一音箱的标识和第一秘钥。然后,电子设备可以向第一音箱发送第一加密信息。该第一加密信息是采用第一秘钥加密第一配置信息得到的。该第一配置信息包括第一配网信息和第一指示信息。该第一指示信息用于指示第一音箱被配置为第一角色,第一配网信息用于支持第一音箱与N个音箱中的其他音箱交互。The first speaker among the above N speakers receives the NAN release message, and in response to the NAN release message, the first speaker may use the first antenna to broadcast the first message. Wherein, after the user holds the electronic device close to the speaker of the first role among the N speakers according to the instruction of the third interface, the electronic device can receive the first message from the first speaker. The first message includes the identifier of the first sound box and the first secret key. Then, the electronic device may send the first encrypted information to the first speaker. The first encrypted information is obtained by encrypting the first configuration information with the first key. The first configuration information includes first network configuration information and first indication information. The first indication information is used to indicate that the first sound box is configured as the first role, and the first distribution network information is used to support the interaction between the first sound box and other sound boxes in the N sound boxes.

采用本申请的方案,电子设备可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,便可以解决由于用户难以区分各个音箱而导致角色设置错误的问题,可以提升角色设置的准确率。并且,准确设置参与组合的各个音箱的角色,可以提升组合音箱的音频播放效果。By adopting the solution of the present application, the electronic device can support the user to set the roles of the speakers participating in the combination in an intuitive manner. In this way, the problem of incorrect role setting due to the user's difficulty in distinguishing each speaker can be solved, and the accuracy of role setting can be improved. Moreover, accurately setting the roles of each speaker participating in the combination can improve the audio playback effect of the combination speaker.

并且,音箱使用第一天线(即弱天线)进行无线通信的有效传输距离为第一距离(如0.3米)。只有当电子设备与音箱之间的距离小于第一距离,才可以接收到音箱发送的短距消息。而其他与音箱之间距离大于第一距离的设备,则不能接收到音箱发送的短距消息。In addition, the effective transmission distance of the sound box using the first antenna (ie, weak antenna) for wireless communication is the first distance (eg, 0.3 meters). Only when the distance between the electronic device and the speaker is less than the first distance, can the short-distance message sent by the speaker be received. However, other devices whose distance from the speaker is greater than the first distance cannot receive the short-distance message sent by the speaker.

这样的超短距离通信,可以保证音箱发送的短距消息不被其他设备接收到,可以避免由于其他设备获取到音箱的秘钥与音箱交互从而操作音箱,可以保证电子设备与音箱之间数据传输的安全性。Such ultra-short-distance communication can ensure that the short-distance message sent by the speaker is not received by other devices, and can avoid operating the speaker due to other devices obtaining the key of the speaker and interacting with the speaker, and can ensure data transmission between the electronic device and the speaker security.

在第一方面的一种可能的设计方式中,上述N个音箱中的第二音箱也可以接收到NAN发布消息,响应于NAN发布消息,该第二音箱使用第一天线广播第二消息。电子设备可以显示第四界面。该第四界面用于提示用户将电子设备靠近N个音箱中第二角色的音箱,使电子设备与第二角色的音箱之间的距离在第一距离内。其中,第四界面还用于指示N个音箱中包括第二角色的音箱在内的一个或多个音箱的角色。这样,用户便可以明确当前正在配置的音箱的角色为第二角色。In a possible design manner of the first aspect, the second speaker among the N speakers may also receive the NAN release message, and in response to the NAN release message, the second speaker uses the first antenna to broadcast the second message. The electronic device can display the fourth interface. The fourth interface is used to prompt the user to bring the electronic device close to the second character's sound box among the N sound boxes, so that the distance between the electronic device and the second character's sound box is within the first distance. Wherein, the fourth interface is also used to indicate the roles of one or more speakers including the speaker of the second role among the N speakers. In this way, the user can determine that the role of the speaker currently being configured is the second role.

用户按照上述第四界面的指示持电子设备靠近上述N个音箱中第一角色的音箱后,该电子设备便可以接收到来自第二音箱的第二消息。该第一消息包括第二音箱的标识和第二秘钥。然后,电子设备可以向第二音箱发送第二加密信息。该第二加密信息是采用第二秘钥加密第二配置信息得到的。该第二配置信息包括第二配网信息和第二指示信息。该第二指示信息用于指示第二音箱被配置为第二角色,第二配网信息用于支持第二音箱与N个音箱中的其他音箱交互。After the user holds the electronic device close to the speaker of the first role among the N speakers according to the instruction of the fourth interface, the electronic device can receive the second message from the second speaker. The first message includes the identifier of the second sound box and the second secret key. Then, the electronic device may send the second encrypted information to the second speaker. The second encrypted information is obtained by encrypting the second configuration information with the second key. The second configuration information includes second network configuration information and second indication information. The second indication information is used to indicate that the second sound box is configured as the second role, and the second distribution network information is used to support the second sound box to interact with other sound boxes in the N sound boxes.

其中,电子设备向第一音箱发送第一加密信息之后,便完成了第一角色的音箱的配置工作。此时,电子设备可以显示第四界面,提示用户持电子设备靠近第二角色的音箱,以配置该第二角色的音箱。采用本申请的方案,电子设备可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,可以提升角色设置的准确率。并且,采用超短距离通信,可以保证电子设备与音箱之间数据传输的安全性。Wherein, after the electronic device sends the first encrypted information to the first speaker, the configuration of the speaker of 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 sound box of the second character, so as to configure the sound box of the second character. By adopting the solution of the present application, the electronic device can support the user to set the roles of the speakers participating in the combination in an intuitive manner. In this way, the accuracy of role setting can be improved. Moreover, the use of ultra-short-distance communication can ensure the security of data transmission between electronic equipment and speakers.

在第一方面的另一种可能的设计方式中,电子设备向第一音箱发送第一加密信息之后,该电子设备可能会接收到来自第一音箱的第一确认消息,该第一确认消息用于指示第一音箱配置成功。上述电子设备显示第四界面,具体可以包括:电子设备接收到第一确认消息后,显示第四界面。也就是说,电子设备可以在确定一个角色(如第一角色)的音箱配置完成后,再配置下一个角色(如第二角色)的音箱。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, and the first confirmation message uses It indicates that the configuration of the first speaker is successful. The above electronic device displaying the fourth interface may specifically include: after the electronic device receives the first confirmation message, displaying the fourth interface. That is to say, the electronic device can configure the speakers of the next role (such as the second role) after it is determined that the configuration of the speakers of a role (such as the first role) is completed.

在第一方面的另一种可能的设计方式中,上述N个音箱可以以主音箱作为接入点(access point,AP)的AP模式构成组合音箱。也就是说,N个音箱中的主音箱可以作为AP提供无线局域网(如第一无线局域网),N个音箱中的从音箱可以接入该主音箱提供的第一无线局域网。该N个音箱可以通过该第一无线局域网交互。In another possible design manner of the first aspect, the above-mentioned N speakers may form a combined speaker in an AP mode in which the main speaker is used as an access point (AP). That is to say, the master speaker among the N speakers can serve as an AP to provide a wireless local area network (such as the first wireless local area network), and the slave speakers among the N speakers can access the first wireless local area network provided by the master speaker. The N speakers can interact through the first wireless local area network.

在第一方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第二配置信息还可以包括第一身份信息。该第一身份信息用于指示第二音箱被配置为从音箱,还用于指示第二音箱接入主音箱作为AP提供第一无线局域网。上述第二配网信息可以包括:第一无线局域网的第一SSID和第一接入密码。这样,从音箱(如第二音箱)便可以根据第一SSID和第一接入密码接入主音箱提供第一无线局域网,便可以通过第一无线局域网与主音箱交互。In another possible design manner of the first aspect, in the scenario of constructing a combination speaker in an AP mode, the above-mentioned second configuration information may further include the first identity information. The first identity information is used to indicate that the second sound box is configured as a slave sound box, and is also used to indicate that the second sound box is connected to the main sound box as an AP to provide the first wireless local area network. The above-mentioned second network configuration information may include: a first SSID and a first access password of the first wireless local area network. In this way, the slave speaker (such as the second speaker) can access the master speaker to provide the first wireless local area network according to the first SSID and the first access password, and can interact with the master speaker through the first wireless local area network.

在第一方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第一配置信息还包括第二身份信息。该第而身份信息用于指示第一音箱被配置为主音箱,还用于指示第一音箱作为AP提供第一无线局域网。上述第一配网信息包括:第一无线局域网的第一SSID和第一接入密码。这样,主音箱(如第一音箱)便可以提供第一无线局域网,并由从音箱根据该第一SSID和第一接入密码接入该第一无线局域网,然后通过第一无线局域网与组合音箱中的其他音箱交互。In another possible design manner of the first aspect, in the scenario of constructing a combination speaker in an AP mode, the above-mentioned first configuration information further includes the second identity information. The second identity information is used to indicate that the first speaker is configured as a master speaker, and is also used to indicate that the first speaker serves as an AP to provide the first wireless local area network. The above-mentioned first network distribution information includes: a first SSID and a first access password of the first wireless local area network. In this way, the main speaker (such as the first speaker) can provide the first wireless local area network, and the slave speaker can access the first wireless local area network according to the first SSID and the first access password, and then connect the combination speaker through the first wireless local area network. interact with other speakers in the

在这种设计方式中,主音箱提供的第一无线局域网的第一SSID和第一接入密码,可以是由电子设备指定的。In this design manner, the first SSID and the first access password of the first wireless local area network provided by the main speaker may be specified by the electronic device.

在第一方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,主音箱提供的第一无线局域网的第一SSID和第一接入密码,可以是电子设备从主音箱获取到的。具体的,上述第一配置信息还包括第二身份信息。该第二身份信息用于指示第一音箱被配置为主音箱,还用于指示第一音箱作为AP提供第一无线局域网。上述方法还包括:电子设备从第一音箱获取第一无线局域网的第一SSID和第一接入密码。In another possible design of the first aspect, in the scenario of constructing a combination speaker in AP mode, the first SSID and the first access password of the first wireless LAN provided by the main speaker may be the obtained from the speakers. Specifically, the above-mentioned first configuration information also includes second identity information. The second identity information is used to indicate that the first sound box is configured as a main sound box, and is also used to indicate that the first sound box serves as an AP to provide the first wireless local area network. The above method further includes: the electronic device acquires the first SSID and the first access password of the first wireless local area network from the first speaker.

在第一方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第一身份信息还用于指示第一音箱接入路由器提供的第二无线局域网。In another possible design of the first aspect, in the scenario of constructing a combination speaker in AP mode, the above-mentioned first identity information is also used to instruct the first speaker to access the second wireless local area network provided by the router.

其中,电子设备可以通过上述第一配网信息,向主音箱(如第一音箱)指示第二无线局域网的第二SSID和第二接入密码。具体的,第一配网信息还包括:第二无线局域网的第二SSID和第二接入密码。Wherein, the electronic device may indicate the second SSID and the second access password of the second wireless local area network to the main speaker (such as the first speaker) through the above-mentioned first distribution network information. Specifically, the first network configuration information further includes: a second SSID and a second access password of the second wireless local area network.

或者,电子设备可以采用上述第一秘钥加密该第二无线局域网的第二SSID和第二接入密码得到的,得到第三加密信息。然后,向第一音箱发送该第三加密信息。Alternatively, the electronic device may obtain the third encrypted information obtained by encrypting the second SSID and the second access password of the second wireless local area network by using the above-mentioned first secret key. Then, send the third encrypted information to the first speaker.

在第一方面的另一种可能的设计方式中,上述N个音箱可以以非AP模式构成组合音箱。具体的,N个音箱(包括主音箱和从音箱)可以接入路由器提供无线局域网(如第二无线局域网)。该N个音箱可以通过该第二无线局域网交互。In another possible design manner of the first aspect, the above-mentioned N sound boxes may form a combined sound box in a non-AP mode. Specifically, the N speakers (including the master speaker and the slave speakers) can be connected to the router to provide a wireless local area network (such as a second wireless local area network). The N speakers can interact through the second wireless local area network.

在第一方面的另一种可能的设计方式中,在以非AP模式构建组合音箱的场景下,上述第二配置信息还包括第一身份信息。该第一身份信息用于指示第二音箱被配置为从音箱,还用于指示第二音箱接入路由器提供的第二无线局域网。上述第二配网信息包括:第二无线局域网的第二SSID和第二接入密码。这样,从音箱(如第二音箱)便可以根据第二SSID和第二接入密码接入路由器提供第二无线局域网,便可以与主音箱交互。In another possible design manner of the first aspect, in the scenario of building a combination speaker in a non-AP mode, the second configuration information further includes the first identity information. The first identity information is used to indicate that the second sound box is configured as a slave sound box, and is also used to indicate that the second sound box is connected to the second wireless local area network provided by the router. The above-mentioned second network distribution information includes: a second SSID and a second access password of the second wireless local area network. In this way, the slave sound box (such as the second sound box) can access the second wireless local area network provided by the router according to the second SSID and the second access password, and then can interact with the main sound box.

在第一方面的另一种可能的设计方式中,在以非AP模式构建组合音箱的场景下,上述第一配置信息还包括第二身份信息。该第二身份信息用于指示第一音箱被配置为主音箱,还用于指示第一音箱接入路由器提供的第二无线局域网。上述第一配网信息还包括:第二无线局域网的第二SSID和第二接入密码。这样,主音箱(如第一音箱)便可以根据第二SSID和第二接入密码接入路由器提供第二无线局域网,便可以与从音箱交互。In another possible design manner of the first aspect, in the scenario of constructing a combination speaker in a non-AP mode, the above-mentioned first configuration information further includes the second identity information. The second identity information is used to indicate that the first speaker is configured as a master speaker, and is also used to indicate that the first speaker is connected to the second wireless local area network provided by the router. The above-mentioned first network distribution information further includes: a second SSID and a second access password of the second wireless local area network. In this way, the master speaker (such as the first speaker) can access the second wireless local area network provided by the router according to the second SSID and the second access password, and then interact with the slave speaker.

在第一方面的另一种可能的设计方式中,在以AP模式或非AP模式构建组合音箱的场景下,电子设备还可以向主音箱指示各个从音箱的标识和角色。具体的,上述方法还可以包括:电子设备向第一音箱发送第二音箱的标识和第二指示信息。这样,主音箱便可以按照各个从音箱的标识和角色与从音箱交互,有利于保证各个音箱按照正确的角色播放音箱,可以提升组合音箱的音频播放效果。In another possible design manner of the first aspect, in the scenario of constructing a combination speaker in AP mode or non-AP mode, the electronic device may also indicate to the master speaker the identification and role of each slave speaker. Specifically, the above method may further include: the electronic device sends the identification of the second sound box and the second indication information to the first sound box. In this way, the master speaker can interact with the slave speakers according to the identification and role of each slave speaker, which is conducive to ensuring that each speaker plays the speaker according to the correct role, and can improve the audio playback effect of the combined speaker.

在第一方面的另一种可能的设计方式中,上述第二配置信息还包括用于N个音箱交互的音箱秘钥和凭证。上述第一配置信息还包括用于N个音箱交互的音箱秘钥和凭证。这样,第一音箱与第二音箱可以根据音箱秘钥和凭证通过第一音箱提供的第一无线局域网交互。其中,音箱之间采用音箱秘钥和凭证进行数据交互,可以提升组合音箱之间进行数据传输的安全性。In another possible design manner of the first aspect, the second configuration information further includes a speaker key and a certificate for interacting with the N speakers. The above-mentioned first configuration information also includes a speaker key and a certificate for interacting with the N speakers. In this way, the first speaker and the second speaker can interact through the first wireless local area network provided by the first speaker according to the speaker key and the credential. Among them, speaker secret keys and certificates are used for data interaction between speakers, which can improve the security of data transmission between combined speakers.

第二方面,本申请提供一种组合音箱的配置方法,该方法用于电子设备配置组合音箱。该电子设备中安装有第一APP。该组合音箱包括多个音箱,每个音箱包括第一天线和第二天线。第一天线的发射距离为第一距离,所述第二天线的发射距离为第二距离。该第一距离小于第二距离。In a second aspect, the present application provides a method for configuring a combination speaker, which is used for configuring a combination speaker on an electronic device. The first APP is installed in the electronic device. The combination speaker includes a plurality of speakers, and each speaker includes a first antenna and a second antenna. The transmitting distance of the first antenna is the first distance, and the transmitting distance of the second antenna is the second distance. The first distance is smaller than the second distance.

其中,电子设备可以显示第一APP的第一界面。该第一界面用于触发电子设备构建N声道的组合音箱,N≥2,N为正整数。响应于用户在第一界面的第一操作,电子设备可以显示第二界面。该第二界面用于指示所述N声道的N个音箱的摆放布局。该N个音箱中每个音箱的角色由N个音箱的摆放布局决定。例如,以N=5为例,5个音箱可以构建包括左前置声道、右前置声道、中置声道、右环绕声道、左环绕声道的环绕声的组合音箱。这5个音箱中不同角色的音箱的摆放位置不同。Wherein, the electronic device may display the first interface of the first APP. The first interface is used to trigger the electronic device to build an N-channel combined sound box, where N≥2, and N is a positive integer. In response to the user's first operation on the first interface, the electronic device may display the second interface. The second interface is used to indicate the layout of the N sound boxes of the N channels. The role of each speaker in the N speakers is determined by the layout of the N speakers. For example, taking N=5 as an example, 5 speakers can construct a surround-sound combination speaker including a left front channel, a right front channel, a center channel, a right surround channel, and a left surround channel. The speakers of different roles among the five speakers are placed in different positions.

响应于用户在第二界面的第二操作,电子设备可以广播临近感知网络(neighborhood aware network,NAN)发布消息,并显示第三界面。其中,该NAN发布消息用于指示订阅NAN服务的音箱使用第一天线。该第三界面用于提示用户将电子设备靠近N个音箱中第一角色的音箱,使电子设备与第一角色的音箱之间的距离在第一距离内。该第三界面还用于指示N个音箱中包括第一角色的音箱在内的一个或多个音箱的角色。这样,用户便可以明确当前正在配置的音箱的角色为第一角色。In response to the user's second operation on the second interface, the electronic device may broadcast a proximity aware network (neighborhood aware network, NAN) release message, and display the third interface. Wherein, the NAN release message is used to instruct the speakers subscribed to the NAN service to use the first antenna. The third interface is used to prompt the user to bring the electronic device close to the first character's sound box among the N sound boxes, so that the distance between the electronic device and the first character's sound box is within a first distance. The third interface is also used to indicate roles of one or more speakers including the speaker of the first role among the N speakers. In this way, the user can determine that the role of the speaker currently being configured is the first role.

其中,用户按照上述第三界面的指示持电子设备靠近上述N个音箱中第一角色的音箱后,该电子设备便可以接收到来自第一音箱的第一消息。该第一消息包括第一音箱的标识和第一秘钥。然后,电子设备可以向第一音箱发送第一加密信息。该第一加密信息是采用第一秘钥加密第一配置信息得到的。该第一配置信息包括第一配网信息和第一指示信息。该第一指示信息用于指示第一音箱被配置为第一角色,第一配网信息用于支持第一音箱与N个音箱中的其他音箱交互。Wherein, after the user holds the electronic device close to the speaker of the first role among the N speakers according to the instruction of the third interface, the electronic device can receive the first message from the first speaker. The first message includes the identifier of the first sound box and the first secret key. Then, the electronic device may send the first encrypted information to the first speaker. The first encrypted information is obtained by encrypting the first configuration information with the first key. The first configuration information includes first network configuration information and first indication information. The first indication information is used to indicate that the first sound box is configured as the first role, and the first distribution network information is used to support the interaction between the first sound box and other sound boxes in the N sound boxes.

采用本申请的方案,电子设备可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,便可以解决由于用户难以区分各个音箱而导致角色设置错误的问题,可以提升角色设置的准确率。并且,准确设置参与组合的各个音箱的角色,可以提升组合音箱的音频播放效果。By adopting the solution of the present application, the electronic device can support the user to set the roles of the speakers participating in the combination in an intuitive manner. In this way, the problem of incorrect role setting due to the user's difficulty in distinguishing each speaker can be solved, and the accuracy of role setting can be improved. Moreover, accurately setting the roles of each speaker participating in the combination can improve the audio playback effect of the combination speaker.

并且,音箱使用第一天线(即弱天线)进行无线通信的有效传输距离为第一距离(如0.3米)。只有当电子设备与音箱之间的距离小于第一距离,才可以接收到音箱发送的短距消息。而其他与音箱之间距离大于第一距离的设备,则不能接收到音箱发送的短距消息。这样的超短距离通信,可以保证音箱发送的短距消息不被其他设备接收到,可以避免由于其他设备获取到音箱的秘钥与音箱交互从而操作音箱,可以保证电子设备与音箱之间数据传输的安全性。In addition, the effective transmission distance of the sound box using the first antenna (ie, weak antenna) for wireless communication is the first distance (eg, 0.3 meters). Only when the distance between the electronic device and the speaker is less than the first distance, can the short-distance message sent by the speaker be received. However, other devices whose distance from the speaker is greater than the first distance cannot receive the short-distance message sent by the speaker. Such ultra-short-distance communication can ensure that the short-distance message sent by the speaker is not received by other devices, and can avoid operating the speaker due to other devices obtaining the key of the speaker and interacting with the speaker, and can ensure data transmission between the electronic device and the speaker security.

第三方面,本申请提供一种组合音箱的配置方法,该方法用于电子设备配置组合音箱,该电子设备中安装有第一APP。该组合音箱包括多个音箱,每个音箱包括第一天线和第二天线。该第一天线的发射距离为第一距离,第二天线的发射距离为第二距离,第一距离小于第二距离。In a third aspect, the present application provides a method for configuring a combination speaker, the method is used for configuring a combination speaker on an electronic device, and a first APP is installed in the electronic device. The combination speaker includes a plurality of speakers, and each speaker includes a first antenna and a second antenna. The radiation distance of the first antenna is a first distance, the radiation distance of the second antenna is a second distance, and the first distance is smaller than the second distance.

其中,电子设备可显示第一APP的第一界面;该第一界面用于触发电子设备构建N声道的组合音箱,N≥2,N为正整数。响应于用户在第一界面的第一操作,电子设备可显示第二界面,并广播NAN发布消息。该第二界面用于指示N声道的N个音箱的摆放布局。该N个音箱中每个音箱的角色由N个音箱的摆放布局决定。该NAN发布消息用于指示订阅NAN服务的音箱使用第一天线。响应于用户在第二界面的第二操作,电子设备可显示第三界面。该第三界面用于提示用户将电子设备靠近N个音箱中第一角色的音箱,使电子设备与第一角色的音箱之间的距离在第一距离内。该第三界面还用于指示N个音箱中包括第一角色的音箱在内的一个或多个每个音箱的角色。该电子设备接收来自第一角色的第一音箱的第一消息,第一消息包括第一音箱的标识和第一秘钥。最后,电子设备可向第一音箱发送第一加密信息。该第一加密信息是采用第一秘钥加密第一配置信息得到的。该第一配置信息包括第一配网信息和第一指示信息。该第一指示信息用于指示第一音箱被配置为第一角色,该第一配网信息用于支持第一音箱与N个音箱中的其他音箱交互。Wherein, the electronic device may display a first interface of the first APP; the first interface is used to trigger the electronic device to construct an N-channel combined speaker, where N≥2, and N is a positive integer. In response to the user's first operation on the first interface, the electronic device may display the second interface and broadcast a NAN release message. The second interface is used to indicate the layout of N speakers of N channels. The role of each speaker in the N speakers is determined by the layout of the N speakers. The NAN release message is used to instruct the speakers subscribing to the NAN service to use the first antenna. In response to the user's second operation on the second interface, the electronic device can display the third interface. The third interface is used to prompt the user to bring the electronic device close to the first character's sound box among the N sound boxes, so that the distance between the electronic device and the first character's sound box is within a first distance. The third interface is also used to indicate one or more roles of each of the N speakers including the speaker of the first role. The electronic device receives a first message from a first sound box of a first character, where the first message includes an identifier of the first sound box and a first secret key. Finally, the electronic device may send the first encrypted information to the first speaker. The first encrypted information is obtained by encrypting the first configuration information with the first key. The first configuration information includes first network configuration information and first indication information. The first indication information is used to indicate that the first sound box is configured as the first role, and the first distribution network information is used to support the interaction between the first sound box and other sound boxes in the N sound boxes.

与上述第一方面和第二方面的方法不同的是,在第三方面的方法中,电子设备响应于用户在第一界面的第一操作,便可以广播NAN发布消息;而不是响应于用户在第二界面的第二操作,才广播NAN发布消息。其中,第三方面提供的方法的其他特征与第一方面提供的方法中相同,本申请这里不予赘述。Different from the methods of the first aspect and the second aspect above, in the method of the third aspect, the electronic device can broadcast a NAN release message in response to the user's first operation on the first interface; instead of responding to the user's first operation on the first interface The second operation on the second interface broadcasts the NAN release message. Wherein, other features of the method provided by the third aspect are the same as those of the method provided by the first aspect, and the present application will not repeat them here.

在第二方面或第三方面的一种可能的设计方式中,上述第二界面还可以用于指示N个音箱中每个音箱的角色。也就是说,电子设备在第二界面不仅可以向用户指示N声道的N个音箱的摆放布局,还可以向用户指示N个音箱中每个音箱的角色。In a possible design manner of the second aspect or the third aspect, the above-mentioned second interface may also be used to indicate the role of each speaker in the N speakers. That is to say, on the second interface, the electronic device can not only indicate to the user the layout of the N speakers of N channels, but also indicate to the user the role of each of the N speakers.

在第二方面或第三方面的另一种可能的设计方式中,在电子设备向第一音箱发送第一加密信息之后,电子设备可以显示第四界面。该第四界面用于提示用户将电子设备靠近N个音箱中第二角色的音箱,使电子设备与第二角色的音箱之间的距离在第一距离内。其中,第四界面还用于指示N个音箱中包括第二角色的音箱在内的一个或多个音箱的角色。这样,用户便可以明确当前正在配置的音箱的角色为第二角色。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 sound box, the electronic device may display a fourth interface. The fourth interface is used to prompt the user to bring the electronic device close to the second character's sound box among the N sound boxes, so that the distance between the electronic device and the second character's sound box is within the first distance. Wherein, the fourth interface is also used to indicate the roles of one or more speakers including the speaker of the second role among the N speakers. In this way, the user can determine that the role of the speaker currently being configured is the second role.

用户按照上述第四界面的指示持电子设备靠近上述N个音箱中第一角色的音箱后,该电子设备便可以接收到来自第二音箱的第二消息。该第二消息包括第二音箱的标识和第二秘钥。然后,电子设备可以向第二音箱发送第二加密信息。该第二加密信息是采用第二秘钥加密第二配置信息得到的。该第二配置信息包括第二配网信息和第二指示信息。该第二指示信息用于指示第二音箱被配置为第二角色,第二配网信息用于支持第二音箱与N个音箱中的其他音箱交互。After the user holds the electronic device close to the speaker of the first role among the N speakers according to the instruction of the fourth interface, the electronic device can receive the second message from the second speaker. The second message includes the identifier of the second sound box and the second secret key. Then, the electronic device may send the second encrypted information to the second speaker. The second encrypted information is obtained by encrypting the second configuration information with the second key. The second configuration information includes second network configuration information and second indication information. The second indication information is used to indicate that the second sound box is configured as the second role, and the second distribution network information is used to support the second sound box to interact with other sound boxes in the N sound boxes.

其中,电子设备向第一音箱发送第一加密信息之后,便完成了第一角色的音箱的配置工作。此时,电子设备可以显示第四界面,提示用户持电子设备靠近第二角色的音箱,以配置该第二角色的音箱。采用本申请的方案,电子设备可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,可以提升角色设置的准确率。并且,采用超短距离通信,可以保证电子设备与音箱之间数据传输的安全性。Wherein, after the electronic device sends the first encrypted information to the first speaker, the configuration of the speaker of 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 sound box of the second character, so as to configure the sound box of the second character. By adopting the solution of the present application, the electronic device can support the user to set the roles of the speakers participating in the combination in an intuitive manner. In this way, the accuracy of role setting can be improved. Moreover, the use of ultra-short-distance communication can ensure the security of data transmission between electronic equipment and speakers.

在第二方面或第三方面的另一种可能的设计方式中,电子设备可以在确定一个角色(如第一角色)的音箱配置完成后,再配置下一个角色(如第二角色)的音箱。具体的,上述电子设备显示第四界面可以包括:电子设备接收到来自第一音箱的第一确认消息后,显示第四界面。其中,该第一确认消息用于指示第一音箱配置成功。In another possible design manner of the second aspect or the third aspect, the electronic device can configure the speakers of the next role (such as the second role) after determining that the configuration of the speakers of a role (such as the first role) is completed. . Specifically, the above electronic device displaying the fourth interface may include: after the electronic device receives the first confirmation message from the first speaker, displaying the fourth interface. Wherein, the first confirmation message is used to indicate that the configuration of the first sound box is successful.

在第二方面或第三方面的另一种可能的设计方式中,上述N个音箱可以以主音箱作为接入点(access point,AP)的AP模式构成组合音箱。也就是说,N个音箱中的主音箱可以作为AP提供无线局域网(如第一无线局域网),N个音箱中的从音箱可以接入该主音箱提供的第一无线局域网。该N个音箱可以通过该第一无线局域网交互。In another possible design manner of the second aspect or the third aspect, the above-mentioned N speakers may form a combined speaker in an AP mode in which the main speaker is used as an access point (AP). That is to say, the master speaker among the N speakers can serve as an AP to provide a wireless local area network (such as the first wireless local area network), and the slave speakers among the N speakers can access the first wireless local area network provided by the master speaker. The N speakers can interact through the first wireless local area network.

在第二方面或第三方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第二配置信息还可以包括第一身份信息。该第一身份信息用于指示所述第二音箱被配置为从音箱,还用于指示第二音箱接入主音箱作为AP提供第一无线局域网。上述第二配网信息可以包括:第一无线局域网的第一SSID和第一接入密码。这样,从音箱(如第二音箱)便可以根据第一SSID和第一接入密码接入主音箱提供第一无线局域网,便可以与主音箱交互。In another possible design manner of the second aspect or the third aspect, in the scenario of constructing a combination speaker in AP mode, the above-mentioned second configuration information may further include 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 is connected to the master speaker as an AP to provide the first wireless local area network. The above-mentioned second network configuration information may include: a first SSID and a first access password of the first wireless local area network. In this way, the slave speaker (such as the second speaker) can access the master speaker to provide the first wireless local area network according to the first SSID and the first access password, and can interact with the master speaker.

在第二方面或第三方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第一配置信息还包括第二身份信息。该第而身份信息用于指示所述第一音箱被配置为主音箱,还用于指示所述第一音箱作为AP提供第一无线局域网。上述所述第一配网信息包括:所述第一无线局域网的第一SSID和第一接入密码。这样,主音箱(如第一音箱)便可以提供第一无线局域网,并由从音箱根据该第一SSID和第一接入密码接入该第一无线局域网。In another possible design manner of the second aspect or the third aspect, in the scenario of constructing a combination speaker in an AP mode, the above-mentioned first configuration information further includes the second identity information. The second identity information is used to indicate that the first speaker is configured as a master speaker, and is also used to indicate that the first speaker serves as an AP to provide the first wireless local area network. The above-mentioned first network distribution information includes: a first SSID and a first access password of the first wireless local area network. In this way, the master speaker (such as the first speaker) can provide the first wireless local area network, and the slave speaker can access the first wireless local area network according to the first SSID and the first access password.

在这种设计方式中,主音箱提供的第一无线局域网的第一SSID和第一接入密码,可以是由电子设备指定的。In this design manner, the first SSID and the first access password of the first wireless local area network provided by the main speaker may be specified by the electronic device.

在第二方面或第三方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,主音箱提供的第一无线局域网的第一SSID和第一接入密码,可以是电子设备从主音箱获取到的。具体的,上述第一配置信息还包括第二身份信息。该第二身份信息用于指示第一音箱被配置为主音箱,还用于指示第一音箱作为AP提供第一无线局域网。上述方法还包括:电子设备从第一音箱获取第一无线局域网的第一SSID和第一接入密码。In another possible design of the second aspect or the third aspect, in the scenario of constructing a combination speaker in AP mode, the first SSID and first access password of the first wireless local area network provided by the main speaker may be The electronics get it from the main speakers. Specifically, the above-mentioned first configuration information also includes second identity information. The second identity information is used to indicate that the first sound box is configured as a main sound box, and is also used to indicate that the first sound box serves as an AP to provide the first wireless local area network. The above method further includes: the electronic device acquires the first SSID and the first access password of the first wireless local area network from the first speaker.

在第二方面或第三方面的另一种可能的设计方式中,在以AP模式构建组合音箱的场景下,上述第一身份信息还用于指示第一音箱接入路由器提供的第二无线局域网。In another possible design of the second aspect or the third aspect, in the scenario of building a combined speaker in AP mode, the above-mentioned first identity information is also used to instruct the first speaker to access the second wireless local area network provided by the router .

其中,电子设备可以通过上述第一配网信息,向主音箱(如第一音箱)指示第二无线局域网的第二SSID和第二接入密码。具体的,第一配网信息还包括:第二无线局域网的第二SSID和第二接入密码。Wherein, the electronic device may indicate the second SSID and the second access password of the second wireless local area network to the main speaker (such as the first speaker) through the above-mentioned first distribution network information. Specifically, the first network configuration information further includes: a second SSID and a second access password of the second wireless local area network.

或者,电子设备可以采用上述第一秘钥加密该第二无线局域网的第二SSID和第二接入密码得到的,得到第三加密信息。然后,向第一音箱发送该第三加密信息。Alternatively, the electronic device may obtain the third encrypted information obtained by encrypting the second SSID and the second access password of the second wireless local area network by using the above-mentioned first secret key. Then, send the third encrypted information to the first speaker.

在第二方面或第三方面的另一种可能的设计方式中,上述N个音箱可以以非AP模式构成组合音箱。具体的,N个音箱(包括主音箱和从音箱)可以接入路由器提供无线局域网(如第二无线局域网)。该N个音箱可以通过该第二无线局域网交互。In another possible design manner of the second aspect or the third aspect, the above-mentioned N sound boxes may form a combined sound box in a non-AP mode. Specifically, the N speakers (including the master speaker and the slave speakers) can be connected to the router to provide a wireless local area network (such as a second wireless local area network). The N speakers can interact through the second wireless local area network.

在第二方面或第三方面的另一种可能的设计方式中,在以非AP模式构建组合音箱的场景下,上述第二配置信息还包括第一身份信息。该第一身份信息用于指示第二音箱被配置为从音箱,还用于指示第二音箱接入路由器提供的第二无线局域网。上述第二配网信息包括:第二无线局域网的第二SSID和第二接入密码。这样,从音箱(如第二音箱)便可以根据第二SSID和第二接入密码接入路由器提供第二无线局域网,便可以与主音箱交互。In another possible design manner of the second aspect or the third aspect, in a scenario where a combination speaker is built in a non-AP mode, the second configuration information further includes the first identity information. The first identity information is used to indicate that the second sound box is configured as a slave sound box, and is also used to indicate that the second sound box is connected to the second wireless local area network provided by the router. The above-mentioned second network distribution information includes: a second SSID and a second access password of the second wireless local area network. In this way, the slave sound box (such as the second sound box) can access the second wireless local area network provided by the router according to the second SSID and the second access password, and then can interact with the main sound box.

在第二方面或第三方面的另一种可能的设计方式中,在以非AP模式构建组合音箱的场景下,上述第一配置信息还包括第二身份信息。该第二身份信息用于指示第一音箱被配置为主音箱,还用于指示第一音箱接入路由器提供的第二无线局域网。上述第一配网信息还包括:第二无线局域网的第二SSID和第二接入密码。这样,主音箱(如第一音箱)便可以根据第二SSID和第二接入密码接入路由器提供第二无线局域网,便可以与从音箱交互。In another possible design manner of the second aspect or the third aspect, in the scenario of constructing a combination speaker in a non-AP mode, the above-mentioned first configuration information further includes the second identity information. The second identity information is used to indicate that the first speaker is configured as a master speaker, and is also used to indicate that the first speaker is connected to the second wireless local area network provided by the router. The above-mentioned first network distribution information further includes: a second SSID and a second access password of the second wireless local area network. In this way, the master speaker (such as the first speaker) can access the second wireless local area network provided by the router according to the second SSID and the second access password, and then interact with the slave speaker.

在第二方面或第三方面的另一种可能的设计方式中,在以AP模式或非AP模式构建组合音箱的场景下,电子设备还可以向主音箱指示各个从音箱的标识和角色。具体的,上述方法还可以包括:电子设备向所述第一音箱发送所述第二音箱的标识和所述第二指示信息。这样,主音箱便可以按照各个从音箱的标识和角色与从音箱交互,有利于保证各个音箱按照正确的角色播放音箱,可以提升组合音箱的音频播放效果。In another possible design manner of the second aspect or the third aspect, in the scenario of constructing a combination speaker in AP mode or non-AP mode, the electronic device may also indicate to the master speaker the identification and role of each slave speaker. Specifically, the above method may further include: the electronic device sending the identification of the second sound box and the second instruction information to the first sound box. In this way, the master speaker can interact with the slave speakers according to the identification and role of each slave speaker, which is conducive to ensuring that each speaker plays the speaker according to the correct role, and can improve the audio playback effect of the combined speaker.

在第二方面或第三方面的另一种可能的设计方式中,上述第二配置信息还包括用于N个音箱交互的音箱秘钥和凭证。其中,音箱之间采用音箱秘钥和凭证进行数据交互,可以提升组合音箱之间进行数据传输的安全性。In another possible design manner of the second aspect or the third aspect, the above-mentioned second configuration information further includes a speaker key and a certificate for interacting with the N speakers. Among them, speaker secret keys and certificates are used for data interaction between speakers, which can improve the security of data transmission between combined speakers.

在第二方面或第三方面的另一种可能的设计方式中,上述第一配置信息还包括用于N个音箱交互的音箱秘钥和凭证。其中,音箱之间采用音箱秘钥和凭证进行数据交互,可以提升组合音箱之间进行数据传输的安全性。In another possible design manner of the second aspect or the third aspect, the above-mentioned first configuration information further includes a speaker key and a certificate for interacting with the N speakers. Among them, speaker secret keys and certificates are used for data interaction between speakers, which can improve the security of data transmission between combined speakers.

第四方面,本申请提供一种组合音箱的配置方法,应用于音箱,该音箱包括第一天线和第二天线,第一天线的发射距离为第一距离,第二天线的发射距离为第二距离,第一距离小于第二距离。In the fourth aspect, the present application provides a method for configuring a combination speaker, which is applied to a speaker, and the speaker includes a first antenna and a second antenna, the emission distance of the first antenna is the first distance, and the emission distance of the second antenna is the second distance. Distance, the first distance is smaller than the second distance.

该方法可以包括:音箱接收电子设备广播的临近感知网络NAN发布消息,NAN发布消息用于指示音箱使用第一天线;响应于NAN发布消息,音箱使用第一天线广播消息;其中,消息中包括音箱的标识和秘钥;音箱接收来自电子设备的加密信息,并采用秘钥解密加密信息得到配置信息;其中,加密信息是电子设备接收到消息后发送的,加密信息是采用秘钥加密配置信息得到的,配置信息包括角色指示信息和配网信息,角色指示信息用于指示音箱被配置的角色,配网信息用于支持音箱与组合音箱中的其他音箱交互。其中,音箱广播的消息可以是上述第一方面或第二方面及其任一种可能的设计方式中所述的第一消息或第二消息。该消息是使用第一天线(即超短距天线或弱天线)广播的,因此可以称为短距消息。The method may include: the sound box receives a message issued by the proximity sensing network NAN broadcast by the electronic device, and the NAN publishes a message to instruct the sound box to use the first antenna; in response to the NAN release message, the sound box uses the first antenna to broadcast the message; wherein, the message includes the sound box The identification and secret key; the speaker receives the encrypted information from the electronic device, and uses the secret key to decrypt the encrypted information to obtain the configuration information; among them, the encrypted information is sent by the electronic device after receiving the message, and the encrypted information is obtained by encrypting the configuration information with the secret key Yes, the configuration information includes role indication information and distribution network information. The role indication information is used to indicate the configured role of the speaker, and the distribution network information is used to support the interaction between the speaker and other speakers in the combination speaker. Wherein, the message broadcast by the sound box may be the first message or the second message described in the above-mentioned first aspect or second aspect and any possible design manner thereof. The message is broadcast using the first antenna (ie, the ultra-short-range antenna or the weak antenna), so it can be called a short-range message.

在第四方面的一种可能的设计方式中,上述方法还可以包括:音箱订阅NAN服务;其中,订阅NAN服务的设备能够接收并响应NAN发布消息。In a possible design manner of the fourth aspect, the above method may further include: subscribing the speaker to the NAN service; wherein, the device subscribing to the NAN service can receive and respond to the NAN release message.

在第四方面的另一种可能的设计方式中,上述方法还可以包括:音箱发出提示信息,提示信息用于指示音箱被配置的角色。In another possible design manner of the fourth aspect, the above method may further include: the sound box sends out prompt information, and the prompt information is used to indicate the configured role of the sound box.

在第四方面的另一种可能的设计方式中,上述音箱使用第一天线广播消息,包括:音箱周期性切换使用第一天线和第二天线;音箱使用第一天线时,广播消息。In another possible design manner of the fourth aspect, the above-mentioned speaker uses the first antenna to broadcast the message, including: the speaker periodically switches to use the first antenna and the second antenna; and broadcasts the message when the speaker uses the first antenna.

在第四方面的另一种可能的设计方式中,上述配置信息还包括:用于指示音箱被配置为从音箱的身份信息,身份信息还用于指示音箱接入第一无线局域网;配网信息还包括:第一无线局域网的第一服务集标识SSID和第一接入密码。上述方法还包括:音箱根据第一SSID和第一接入密码,接入第一无线局域网,并通过第一无线局域网与N个音箱中的主音箱交互。In another possible design of the fourth aspect, the above configuration information further includes: identity information used to indicate that the speaker is configured as a slave speaker, and the identity information is also used to indicate that the speaker is connected to the first wireless local area network; network distribution information It also includes: a first service set identifier SSID and a first access password of the first wireless local area network. The above method further includes: the speaker is connected to the first wireless local area network according to the first SSID and the first access password, and interacts with the main speaker among the N speakers through the first wireless local area network.

在第四方面的另一种可能的设计方式中,上述配置信息还包括:用于指示音箱被配置为主音箱的身份信息,身份信息还用于指示音箱作为接入点AP提供第一无线局域网;配网信息还包括:第一无线局域网的第一SSID和第一接入密码。上述方法还包括:音箱作为AP提供第一无线局域网,并由组合音箱中的其他音箱接入第一无线局域网;音箱通过第一无线局域网与组合音箱中的其他音箱交互。In another possible design of the fourth aspect, the above configuration information further includes: identity information used to indicate that the speaker is configured as a master speaker, and the identity information is also used to indicate that the speaker acts as an access point AP to provide the first wireless local area network ; The distribution network information also includes: the first SSID and the first access password of the first wireless local area network. The above method also includes: the speaker acts as an AP to provide the first wireless local area network, and other speakers in the combination speaker are connected to the first wireless local area network; the speakers interact with other speakers in the combination speaker through the first wireless local area network.

在第四方面的另一种可能的设计方式中,上述配置信息还包括:用于指示音箱被配置为主音箱的身份信息或者音箱被配置为从音箱的身份信息,身份信息还用于指示音箱接入路由器提供的第二无线局域网;配网信息还包括:第二无线局域网的第二SSID和第二接入密码。上述方法还包括:音箱根据第二SSID和第二接入密码,接入第二无线局域网,并通过第二无线局域网与组合音箱中的其他音箱交互。In another possible design of the fourth aspect, the above configuration information also includes: identity information indicating that the speaker is configured as a master speaker or identity information that the speaker is configured as a slave speaker, and the identity information is also used to indicate that the speaker The second wireless local area network provided by the access router; the distribution network information further includes: a second SSID and a second access password of the second wireless local area network. The above method further includes: the 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.

在第四方面的另一种可能的设计方式中,上述配置信息还包括用于N个音箱交互的音箱秘钥和凭证。上述方法还包括:音箱根据音箱秘钥和凭证与组合音箱中的其他音箱交互。In another possible design manner of the fourth aspect, the above configuration information further includes a speaker key and a certificate for interacting with the N speakers. The above method also includes: the speaker interacts with other speakers in the combination speaker according to the speaker key and the certificate.

在第四方面的另一种可能的设计方式中,上述方法还包括:音箱接收到加密信息后,向电子设备发送确认消息;或者,音箱发出提示信息后,响应于用户对提示信息的第三操作,向电子设备发送确认消息;其中,提示信息用于指示音箱被配置的角色。其中,确认消息用于指示音箱配置成功。In another possible design of the fourth aspect, the above method further includes: after the speaker receives the encrypted information, sending a confirmation message to the electronic device; The operation is to send a confirmation message to the electronic device; wherein, the prompt message is used to indicate the configured role of the sound box. Wherein, the confirmation message is used to indicate that the speaker configuration is successful.

第五方面,本申请提供一种电子设备,该电子设备中安装有第一APP。该电子设备包括:存储器、显示屏、通信模块和一个或多个处理器。该存储器、显示屏、通信模块与处理器耦合。In a fifth aspect, the present application provides an electronic device, where a first APP is installed in the electronic device. The electronic device includes: a memory, a display screen, a communication module and one or more processors. The memory, the display screen, and the communication module are coupled with the processor.

该显示屏用于显示处理器生成的图像或界面。该通信模块用于与其他设备通信。该存储器用于存储电子设备中的数据。该存储器还用于存储计算机程序代码,计算机程序代码包括计算机指令。当计算机指令被处理器执行时,使得电子设备执行如第一方面、第二方面或第三方面及其任一种可能的设计方式中,电子设备所执行的方法。The display is used to display images or interfaces generated by the processor. The communication module is used to communicate with other devices. This memory is used to store data in electronic devices. The memory is also used to store computer program code comprising computer instructions. When the computer instructions are executed by the processor, the electronic device is made to execute the method performed by the electronic device in the first aspect, the second aspect or the third aspect and any possible design manner thereof.

第六方面,本申请提供一种音箱。该音箱可以是上述第一方面或第二方面所述的第一音箱或第二音箱。该音箱包括第一天线和第二天线,所述第一天线的发射距离为第一距离,所述第二天线的发射距离为第二距离,所述第一距离小于所述第二距离。In a sixth aspect, the present application provides a sound box. The sound box may be the first sound box or the second sound box described in the first aspect or the second aspect. The sound box includes a first antenna and a second antenna, the emission distance of the first antenna is a first distance, the emission distance of the second antenna is a second distance, and the first distance is smaller than the second distance.

该音箱包括存储器、扬声器、通信模块和一个或多个处理器。通信模块包括第一天线和第二天线,所述第一天线的发射距离为第一距离,所述第二天线的发射距离为第二距离,所述第一距离小于所述第二距离。所述存储器、所述扬声器、所述通信模块与所述处理器耦合;所述扬声器用于播放音频数据,所述通信模块用于与其他设备通信,所述存储器用于存储所述音箱中的数据。所述存储器还用于存储计算机程序代码,所述计算机程序代码包括计算机指令。当所述计算机指令被所述处理器执行时,使得所述音箱执行如第一方面或第四方面及其任一种可能的设计方式中音箱所执行的方法。The speaker box includes memory, a speaker, a communication module and one or more processors. The communication module 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 memory, the speaker, and the communication module are coupled to the processor; the speaker is used to play audio data, the communication module is used to communicate with other devices, and the memory is used to store audio data in the sound box data. The memory is also used to store computer program code comprising computer instructions. When the computer instruction is executed by the processor, the sound box is made to perform the method performed by the sound box in the first aspect or the fourth aspect and any possible design manner thereof.

第七方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括显示屏、通信模块和存储器的电子设备。该芯片系统包括一个或多个接口电路和一个或多个处理器。该接口电路和处理器通过线路互联。该接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行所述计算机指令时,电子设备执行如第一方面、第二方面或第三方面及其任一种可能的设计方式中电子设备所执行的方法。In a seventh aspect, the embodiment of the present application provides a chip system, and the chip system is applied to an electronic device including a display screen, a communication module, and a memory. The system-on-a-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by wires. The interface circuit is for receiving a signal from the memory of the electronic device and sending the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device executes the method performed by the electronic device in the first aspect, the second aspect, or the third aspect and any possible design manner thereof.

第八方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括通信模块和存储器的音箱。该通信模块包括第一天线和第二天线,第一天线的发射距离为第一距离,第二天线的发射距离为第二距离,第一距离小于第二距离。该芯片系统包括一个或多个接口电路和一个或多个处理器。该接口电路和处理器通过线路互联。该接口电路用于从音箱的存储器接收信号,并向处理器发送该信号,该信号包括存储器中存储的计算机指令。当处理器执行所述计算机指令时,音箱执行如第一方面或第四方面及其任一种可能的设计方式所述的方法。In an eighth aspect, the embodiment of the present application provides a chip system, which is applied to a sound box including a communication module and a memory. The communication module 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 system-on-a-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by wires. The interface circuit is used to receive a signal from the memory of the speaker and send the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the sound box executes the method described in the first aspect or the fourth aspect and any possible design manner thereof.

第九方面,本申请实施例提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在设备上运行时,使得所述设备执行如第一方面、第二方面、第三方面或第四方面及其任一种可能的设计方式所述的方法。该设备可以是上述电子设备或者音箱。In the ninth aspect, the embodiment of the present application provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the device, the device executes the first aspect, the second aspect, and the third aspect. Aspect or the method described in the fourth aspect and any possible design manner thereof. The device may be the above-mentioned electronic device or a sound box.

第十方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面、第二方面、第三方面或第四方面及其任一种可能的设计方式所述的方法。该计算机可以是电子设备或音箱。In a tenth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, enables the computer to execute the first aspect, the second aspect, the third aspect or the fourth aspect and its Any one of the possible design methods described. The computer can be an electronic device or a sound box.

可以理解地,上述提供的第五方面所述的电子设备,第六方面及其任一种可能的设计方式所述的音箱,第七方面和第八方面所述的芯片系统,第九方面所述的计算机存储介质,第十方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the electronic device described in the fifth aspect provided above, the sound box described in the sixth aspect and any possible design method thereof, the chip system described in the seventh aspect and the eighth aspect, and the chip system described in the ninth aspect For the beneficial effects achieved by the computer storage medium described above and the computer program product described in the tenth aspect, reference may be made to the beneficial effects in the first aspect and any possible design manner thereof, which will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种组合音箱的配置方法所应用的通信系统示意图;FIG. 1 is a schematic diagram of a communication system applied to a configuration method of a combination speaker provided in an embodiment of the present application;

图2为本申请实施例提供的一种手机的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application;

图3为本申请实施例提供的一种音箱的硬件结构示意图;FIG. 3 is a schematic diagram of a hardware structure of a sound box provided in an embodiment of the present application;

图4A为本申请实施例提供的一种手机中的天线的结构示意图;FIG. 4A is a schematic structural diagram of an antenna in a mobile phone provided by an embodiment of the present application;

图4B为本申请实施例提供的另一种手机中的天线的结构示意图;FIG. 4B is a schematic structural diagram of an antenna in another mobile phone provided by an embodiment of the present application;

图4C为本申请实施例提供的另一种手机中的天线的结构示意图;FIG. 4C is a schematic structural diagram of an antenna in another mobile phone provided by an embodiment of the present application;

图4D为本申请实施例提供的另一种手机中的天线的结构示意图;FIG. 4D is a schematic structural diagram of an antenna in another mobile phone provided by an embodiment of the present application;

图4E为本申请实施例提供的另一种天线的发射距离的示意图;FIG. 4E is a schematic diagram of the transmission distance of another antenna provided by the embodiment of the present application;

图5为本申请实施例提供的一种组合音箱的配置方法流程图;FIG. 5 is a flow chart of a method for configuring a combination speaker provided in an embodiment of the present application;

图6为本申请实施例提供的一种手机的显示界面示意图;FIG. 6 is a schematic diagram of a display interface of a mobile phone provided by an embodiment of the present application;

图7A为本申请实施例提供的另一种手机的显示界面示意图;FIG. 7A is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图7B为本申请实施例提供的另一种手机的显示界面示意图;FIG. 7B is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图7C为本申请实施例提供的另一种手机的显示界面示意图;FIG. 7C is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图8为本申请实施例提供的一种环绕声组合音箱中各个音箱的摆放布局示意图;Fig. 8 is a schematic diagram of the placement and layout of each speaker in a surround-sound combination speaker provided by an embodiment of the present application;

图9A为本申请实施例提供的另一种手机的显示界面示意图;FIG. 9A is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图9B为本申请实施例提供的另一种手机的显示界面示意图;FIG. 9B is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图10A为本申请实施例提供的一种音箱的显示界面示意图;FIG. 10A is a schematic diagram of a display interface of a speaker provided in an embodiment of the present application;

图10B为本申请实施例提供的另一种音箱的显示界面示意图;FIG. 10B is a schematic diagram of a display interface of another speaker provided in the embodiment of the present application;

图11为本申请实施例提供的一种音箱切换强天线和弱天线的方法流程图;FIG. 11 is a flow chart of a method for switching a strong antenna and a weak antenna for a speaker according to an embodiment of the present application;

图12为本申请实施例提供的另一种手机的显示界面示意图;FIG. 12 is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图13为本申请实施例提供的另一种音箱的显示界面示意图;FIG. 13 is a schematic diagram of a display interface of another speaker provided in the embodiment of the present application;

图14为本申请实施例提供的另一种组合音箱的配置方法流程图;FIG. 14 is a flow chart of another method for configuring a combination speaker provided in an embodiment of the present application;

图15为本申请实施例提供的一种组合音箱的系统示意图;Fig. 15 is a system schematic diagram of a combination speaker provided by the embodiment of the present application;

图16为本申请实施例提供的另一种组合音箱的系统示意图;Fig. 16 is a system schematic diagram of another combination speaker provided by the embodiment of the present application;

图17为本申请实施例提供的另一种手机的显示界面示意图;FIG. 17 is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图18为本申请实施例提供的另一种组合音箱的配置方法流程图;FIG. 18 is a flow chart of another method for configuring a combination speaker provided in an embodiment of the present application;

图19为本申请实施例提供的另一种手机的显示界面示意图;FIG. 19 is a schematic diagram of a display interface of another mobile phone provided by the embodiment of the present application;

图20为本申请实施例提供的一种电子设备和音箱的结构组成示意图;FIG. 20 is a schematic diagram of the structure and composition of an electronic device and a sound box provided by the embodiment of the present application;

图21为本申请实施例提供的一种芯片系统的结构组成示意图。FIG. 21 is a schematic diagram of the structural composition of a chip system provided by an embodiment of the present application.

具体实施方式Detailed ways

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

本申请实施例提供一种组合音箱的配置方法,该方法用于电子设备与参与组合的多个音箱交互,以构建组合音箱。An embodiment of the present application provides a method for configuring a combination speaker, which is used for an electronic device to interact with multiple speakers participating in the combination to build a combination speaker.

请参考图1,其示出本申请实施例提供的一种组合音箱的配置方法所应用的通信系统示意图。如图1所示,该通信系统可以包括电子设备100(如手机)和参与组合的多个音箱(如音箱201、音箱202、音箱203、音箱204和音箱205)。Please refer to FIG. 1 , which shows a schematic diagram of a communication system to which a method for configuring a combination speaker provided in an embodiment of the present application is applied. As shown in FIG. 1 , the communication system may include an electronic device 100 (such as a mobile phone) and multiple speakers (such as aspeaker 201 , aspeaker 202 , aspeaker 203 , aspeaker 204 and a speaker 205 ) participating in the combination.

其中,电子设备100中可以安装用于管理音箱的第一APP(也称为管理APP或者音箱APP)。电子设备100可以通过上述第一APP以直观的方式支持用户设置各个音箱的角色,向各个音箱传输配网信息,将上述多个音箱构建成组合音箱。Wherein, a first APP (also referred to as a management APP or a speaker APP) for managing speakers may be installed in theelectronic device 100 . Theelectronic device 100 can support the user to set the role of each speaker in an intuitive manner through the above-mentioned first APP, transmit distribution network information to each speaker, and construct the above-mentioned multiple speakers into a combined speaker.

本申请实施例的方法中,电子设备可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,便可以解决由于用户难以区分各个音箱而导致角色设置错误的问题,可以提升角色设置的准确率。并且,准确设置参与组合的各个音箱的角色,可以提升组合音箱的音频播放效果。In the method of the embodiment of the present application, the electronic device can support the user to set the role of each speaker participating in the combination in an intuitive manner. In this way, the problem of incorrect role setting due to the user's difficulty in distinguishing each speaker can be solved, and the accuracy of role setting can be improved. Moreover, accurately setting the roles of each speaker participating in the combination can improve the audio playback effect of the combination speaker.

其中,构建成组合音箱的多个音箱可播放多声道的音频数据,以形成立体或环绕声场,产生混响效果,可以给用户带来身临其境的感觉。其中,组合音箱中的每个音箱可用于播放一个声道的音频数据。Wherein, multiple speakers constructed as a combination speaker can play multi-channel audio data to form a stereo or surround sound field, and produce a reverberation effect, which can bring an immersive feeling to the user. Wherein, each sound box in the combined sound box can be used to play audio data of one channel.

在第一种使用场景下,上述多个音箱可以组成立体声的组合音箱。在这种使用场景下,该多个音箱可以是两个音箱。这两个音箱中的一个音箱的角色为左声道,用于播放左声道的音频数据;另一个音箱的角色为右声道,用于播放右声道的音频数据。In the first usage scenario, the above-mentioned multiple speakers can form a stereo combination speaker. In this usage scenario, the multiple speakers may be two speakers. One of the two speakers plays the role of the left channel and is used to play the audio data of the left channel; the other speaker plays the role of the right channel and is used for playing the audio data of the right channel.

在第二种使用场景下,上述多个音箱可以组成环绕声的组合音箱。在这种使用场景下,该多个音箱可以是五个音箱,如图1所示的五个音箱。这五个音箱中的一个音箱(如音箱201)的角色为左前置声道,用于播放左前置声道的音频数据;另一个音箱(如音箱202)的角色为右前置声道,用于播放右前置声道的音频数据;另一个音箱(如音箱203)的角色为中置声道,用于播放中置声道的音频数据;另一个音箱(如音箱204)的角色为左环绕声道,用于播放左环绕声道的音频数据;另一个音箱(如音箱205)的角色为右环绕声道,用于播放右环绕声道的音频数据。In the second usage scenario, the above-mentioned multiple speakers can form a combined speaker for surround sound. In this usage scenario, the multiple speakers may be five speakers, such as the five speakers shown in FIG. 1 . The role of a speaker (such as speaker 201) in these five speakers is the left front channel, which is used to play the audio data of the left front channel; the role of another speaker (such as speaker 202) is the right front channel , for playing the audio data of the right front channel; the role of another speaker (such as speaker 203) is a center channel, which is used to play the audio data of the center channel; the role of another speaker (such as speaker 204) It is the left surround sound channel, and is used to play the audio data of the left surround sound channel; the role of another speaker (for example, the sound box 205 ) is the right surround sound channel, and is used to play the audio data of the right surround sound channel.

当然,本申请实施例中组合音箱中音箱的数量包括但不限于上述两种使用场景中所述的数量。使用不同数量的音箱所构建成的组合音箱来播放音频数据,可以产生不同的混响效果。本申请实施例中,对组合音箱中音箱的数量不作限制。以下实施例中,以图1所示的五个音箱参与组合,用于构建组合音箱为例,介绍本申请实施例的方法。Of course, the number of sound boxes in the combination sound box in the embodiment of the present application includes but is not limited to the number described in the above two usage scenarios. Using combined speakers constructed with different numbers of speakers to play audio data can produce different reverberation effects. In the embodiment of the present application, there is no limitation on the number of sound boxes in the combined sound box. In the following embodiments, the method of the embodiment of the present application is introduced by taking five speakers shown in FIG. 1 participating in combination to construct a combination speaker as an example.

示例性的,本申请实施例中的电子设备可以是手机、平板电脑、膝上型、可穿戴设备(如智能手表)、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等包括显示屏和短距离通信模块的设备,本申请实施例对该电子设备的具体形态不作特殊限制。上述音箱可以是智能音箱。Exemplarily, the electronic device in the embodiment 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 (ultra-mobile personalcomputer, UMPC) , netbooks, and cellular phones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) equipment and other equipment including display screens and short-distance communication modules, this application The embodiment does not specifically limit the specific form of the electronic device. The above-mentioned speaker may be a smart speaker.

本申请实施例中以图1所示的电子设备100是手机为例,对本申请实施例提供的电子设备的结构进行举例说明。如图2所示,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriberidentification module,SIM)卡接口195等。In the embodiment of the present application, theelectronic device 100 shown in FIG. 1 is taken as an example to illustrate the structure of the electronic device provided in the embodiment of the present application. As shown in Figure 2, theelectronic device 100 may include: aprocessor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, acharging management module 140, apower management module 141, a battery 142, antenna 1, antenna 2,mobile communication module 150, wireless communication module 160,audio module 170,speaker 170A,receiver 170B, microphone 170C,earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM)card interface 195, etc.

其中,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L和骨传导传感器180M等传感器。Among them, 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, Sensors such as ambient light sensor 180L and bone conduction sensor 180M.

可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in this embodiment does not constitute a specific limitation on theelectronic device 100 . In other embodiments, theelectronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。Theprocessor 110 may include one or more processing units, for example: theprocessor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of theelectronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in theprocessor 110 for storing instructions and data. In some embodiments, the memory inprocessor 110 is a cache memory. The memory may hold instructions or data that theprocessor 110 has just used or recycled. If theprocessor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of theprocessor 110 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.

可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in this embodiment is only for schematic illustration, and does not constitute a structural limitation of theelectronic device 100 . In other embodiments, theelectronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。Thecharging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, thecharging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, thecharging management module 140 may receive a wireless charging input through a wireless charging coil of theelectronic device 100 . While thecharging management module 140 is charging the battery 142 , it can also supply power to the electronic device through thepower management module 141 .

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。Thepower management module 141 is used for connecting the battery 142 , thecharging management module 140 and theprocessor 110 . Thepower management module 141 receives the input from the battery 142 and/or thecharging management module 140 to provide power for theprocessor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . Thepower management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, thepower management module 141 may also be disposed in theprocessor 110 . In some other embodiments, thepower management module 141 and thecharging management module 140 may also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of theelectronic device 100 can be realized by the antenna 1 , the antenna 2 , themobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna inelectronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。Themobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on theelectronic device 100 . Themobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.

电子设备100的天线1和移动通信模块150耦合。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The antenna 1 of theelectronic device 100 is coupled to themobile communication module 150 . Themobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. Themobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of themobile communication module 150 may be set in theprocessor 110 . In some embodiments, at least part of the functional modules of themobile communication module 150 and at least part of the modules of theprocessor 110 may be set in the same device.

无线通信模块160可以提供应用在电子设备100上的无线局域网(wireless localarea networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(global navigationsatellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(nearfield communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。例如,上述WLAN可以为(wireless fidelity,Wi-Fi)网络。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM) applied on theelectronic device 100, Wireless communication solutions such as nearfield communication (NFC), infrared technology (infrared, IR). For example, the foregoing WLAN may be a (wireless fidelity, Wi-Fi) network.

电子设备100的天线2和无线通信模块160耦合。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The antenna 2 of theelectronic device 100 is coupled to the wireless communication module 160 . The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to theprocessor 110 . The wireless communication module 160 can also receive the signal to be sent from theprocessor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。显示屏194可以是触摸屏,该显示屏194用于显示图像,视频等。该显示屏194包括显示面板。Theelectronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are 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, and the display screen 194 is used for displaying images, videos and the like. The display screen 194 includes a display panel.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。在一些实施例中,ISP可以设置在摄像头193中。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Theelectronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor. The ISP is used for processing the data fed back by the camera 193 . In some embodiments, the ISP may be located in the camera 193 . Camera 193 is used to capture still images or video. In some embodiments, theelectronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of theelectronic device 100. The external memory card communicates with theprocessor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,内部存储器121可以包括存储程序区和存储数据区。The internal memory 121 may be used to store computer-executable program codes including instructions. Theprocessor 110 executes various functional applications and data processing of theelectronic device 100 by executing instructions stored in the internal memory 121 . For example, in the embodiment of the present application, theprocessor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.

其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universalflash storage,UFS)等。Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash memory (universal flash storage, UFS) and the like.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。Theelectronic device 100 can implement audio functions through theaudio module 170 , thespeaker 170A, thereceiver 170B, the microphone 170C, theearphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry associationof the USA,CTIA)标准接口。Theaudio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. Theearphone interface 170D is used for connecting wired earphones. Theearphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like. TheSIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from theelectronic device 100 by inserting it into theSIM card interface 195 or pulling it out from theSIM card interface 195 . Theelectronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc.

请参考图3,为本申请实施例提供的一种音箱300的结构示意图。如图3所示,音箱300可以包括:处理器301,外部存储器接口302,内部存储器303,USB接口305,电源管理模块304,天线a,无线通信模块308,显示屏306,音频模块307,以及扬声器307A等。Please refer to FIG. 3 , which is a schematic structural diagram of a sound box 300 provided in an embodiment of the present application. As shown in Figure 3, the sound box 300 may include: aprocessor 301, anexternal memory interface 302, an internal memory 303, a USB interface 305, apower management module 304, an antenna a, a wireless communication module 308, a display screen 306, anaudio module 307, andSpeaker 307A, etc.

处理器301可以包括一个或多个处理单元,例如:处理器301可以包括AP,调制解调处理器,GPU,ISP,控制器,存储器,视频编解码器,DSP,基带处理器,和/或NPU等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中处理器301中还可以设置存储器,用于存储指令和数据。Theprocessor 301 may include one or more processing units, for example: theprocessor 301 may include an AP, a modem processor, a GPU, an ISP, a controller, a memory, a video codec, a DSP, a baseband processor, and/or NPU and so on. Wherein, different processing units may be independent devices, or may be integrated into one or more processors, and a memory may also be provided in theprocessor 301 for storing instructions and data.

电源管理模块304用于连接电源。电源管理模块304还可以与处理器301、内部存储器303、显示屏306和无线通信模块308等连接。电源管理模块304通过USB接口305接收电源的输入,为处理器301、内部存储器303、显示屏306和无线通信模块308等供电。在一些实施例中,电源管理模块304也可以设置于处理器301中。Thepower management module 304 is used for connecting power. Thepower management module 304 may also be connected with theprocessor 301, the internal memory 303, the display screen 306, the wireless communication module 308, and the like. Thepower management module 304 receives power input through the USB interface 305 to supply power for theprocessor 301 , the internal memory 303 , the display screen 306 and the wireless communication module 308 . In some embodiments, thepower management module 304 can also be disposed in theprocessor 301 .

音箱300的无线通信功能可以通过天线和无线通信模块308等实现。其中,无线通信模块308可以提供应用在音箱300上的包括WLAN(如Wi-Fi网络),蓝牙(BT),GNSS,等无线通信的解决方案。The wireless communication function of the speaker 300 can be realized by the antenna and the wireless communication module 308 and the like. Among them, the wireless communication module 308 can provide wireless communication solutions including WLAN (such as Wi-Fi network), Bluetooth (BT), GNSS, etc. applied to the speaker 300 .

无线通信模块308可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块308经由天线a接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器301。无线通信模块308还可以从处理器301接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The wireless communication module 308 may be one or more devices integrating at least one communication processing module. The wireless communication module 308 receives electromagnetic waves via the antenna a, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to theprocessor 301 . The wireless communication module 308 can also receive the signal to be sent from theprocessor 301, frequency-modulate it, amplify it, and convert it into electromagnetic wave to radiate through the antenna.

在一些实施例中,音箱300的天线a和无线通信模块308耦合,使得音箱300可以通过无线通信技术与网络以及其他设备通信。例如,本申请实施例中的无线通信模块308可以是蓝牙模块或者Wi-Fi模块。该无线通信模块308用于与电子设备100以及其他音箱进行数据传输。In some embodiments, the antenna a of the speaker 300 is coupled to the wireless communication module 308, so that the speaker 300 can communicate with the network and other devices through wireless communication technology. For example, the wireless communication module 308 in the embodiment of the present application may be a Bluetooth module or a Wi-Fi module. The wireless communication module 308 is used for data transmission with theelectronic device 100 and other speakers.

其中,上述天线a可以包括一个或多个天线。该一个或多个天线可以分为第一天线(弱天线)和第二天线(正常天线,也称为强天线)。其中,第一天线发射无线信号的发射距离(如第一距离)小于第二天线发射无线信号的发射距离(如第二距离)。该第二天线和第一天线可进行切换。该第二天线和第一天线通过音箱300上的无线通信模块实现与其他设备(如手机)的网络通信。图4A示出了本申请实施例提供的音箱300中的天线结构的一示意图。Wherein, the aforementioned antenna a may include one or more antennas. The one or more antennas may be classified into a first antenna (weak antenna) and a second antenna (normal antenna, also called a strong antenna). Wherein, the transmitting distance (such as the first distance) for transmitting the wireless signal by the first antenna is smaller than the transmitting distance (such as the second distance) for transmitting the wireless signal by the second antenna. The second antenna and the first antenna are switchable. The second antenna and the first antenna realize network communication with other devices (such as mobile phones) through the wireless communication module on the sound box 300 . FIG. 4A shows a schematic diagram of the antenna structure in the sound box 300 provided by the embodiment of the present application.

在一种示例中,上述第二天线和第一天线可以是不同的两个天线。图3所示的音箱300可以是图4A所示的电子设备40(如音箱)。电子设备40可以包括微控制单元(microcontroller unit,MCU)404,无线通信模块403,天线401和天线402。In an example, the foregoing second antenna and the first antenna may be two different antennas. The sound box 300 shown in FIG. 3 may be the electronic device 40 (such as a sound box) shown in FIG. 4A . Theelectronic device 40 may include a microcontroller unit (microcontroller unit, MCU) 404, awireless communication module 403, anantenna 401 and anantenna 402.

其中,图4A所示的天线401是上述第二天线,天线402是第一天线。图3所示的天线a可以包括图4A所示的天线401和天线402。图3所示的无线通信模块308可以是图4A所示的无线通信模块403;图4A所示MCU 404可由图3中处理器301实现。其中,上述无线通信模块403可以是Wi-Fi芯片,该无线通信模块403的射频输入输出(radio frequency input/output,RFIO)引脚通过单刀双掷开关连接天线401或天线402。Wherein, theantenna 401 shown in FIG. 4A is the above-mentioned second antenna, and theantenna 402 is the first antenna. The antenna a shown in FIG. 3 may include theantenna 401 and theantenna 402 shown in FIG. 4A . The wireless communication module 308 shown in FIG. 3 can be thewireless communication module 403 shown in FIG. 4A; theMCU 404 shown in FIG. 4A can be realized by theprocessor 301 in FIG. 3 . Wherein, the above-mentionedwireless communication module 403 may be a Wi-Fi chip, and a radio frequency input/output (radio frequency input/output, RFIO) pin of thewireless communication module 403 is connected to theantenna 401 or theantenna 402 through a single-pole double-throw switch.

其中,MCU 404可以包括中央处理器,内存,计数器,时钟,中断,串行外设接口(serial peripheral interface,SPI),UART接口,通用串行总线接口等。其中,UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线,将要传输的数据在串行通信与并行通信之间转换。Wherein, theMCU 404 may include a central processing unit, a memory, a counter, a clock, an interrupt, a serial peripheral interface (serial peripheral interface, SPI), a UART interface, a universal serial bus interface, and the like. Among them, the UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus, and the data to be transmitted is converted between serial communication and parallel communication.

在一些实施例中,MCU 404通过UART接口与无线通信模块403交互信息。其中,无线通信模块403用于实现音箱300与其他设备(如手机)的无线通信。无线通信模块403的详细描述可以参考上述实施例对无线通信模块308的详细介绍,这里不予赘述。In some embodiments, theMCU 404 exchanges information with thewireless communication module 403 through a UART interface. Wherein, thewireless communication module 403 is used to realize wireless communication between the speaker 300 and other devices (such as mobile phones). For the detailed description of thewireless communication module 403, reference may be made to the detailed description of the wireless communication module 308 in the foregoing embodiments, and details are not repeated here.

其中,天线401和天线402可用于发射和接收电磁波。进一步的,无线通信模块403可将从天线401或天线402接收的电磁波转换为信号,并将信号发送至MCU 404进行处理。或者无线通信模块403可从MCU 404接收待发送的信号,经由天线401或天线402转为电磁波辐射出去。本申请实施例中,天线402发射信号的第一距离小于天线401发射信号的第二距离。Wherein, theantenna 401 and theantenna 402 can be used to transmit and receive electromagnetic waves. Further, thewireless communication module 403 can convert the electromagnetic waves received from theantenna 401 or theantenna 402 into signals, and send the signals to theMCU 404 for processing. Or thewireless communication module 403 can receive the signal to be sent from theMCU 404, and convert it into electromagnetic waves to radiate through theantenna 401 or theantenna 402. In this embodiment of the present application, the first distance at which theantenna 402 transmits signals is shorter than the second distance at which theantenna 401 transmits signals.

在一些实施例中,MCU 404可以控制天线401与天线402的切换。当音箱300采用天线401时,如果音箱300与其他设备(如手机)之间的距离小于第二距离,其它设备(如手机)则能够接收到音箱300通过天线402发射的信号,从而实现其他设备与音箱300的通信;当音箱300采用天线402时,如果音箱300与其他设备(如手机)之间的距离小于第一距离,其他设备则能够接收到音箱300通过天线402发射的信号,从而实现其他设备与音箱300的通信。In some embodiments, theMCU 404 can control the switching between theantenna 401 and theantenna 402. When the speaker 300 uses theantenna 401, if the distance between the speaker 300 and other devices (such as a mobile phone) is less than the second distance, other devices (such as a mobile phone) can receive the signal transmitted by the speaker 300 through theantenna 402, thereby realizing other devices. Communication with the speaker 300; when the speaker 300 uses theantenna 402, if the distance between the speaker 300 and other devices (such as mobile phones) is less than the first distance, other devices can receive the signal transmitted by the speaker 300 through theantenna 402, thereby realizing Communication of other devices with speaker 300 .

示例性的,音箱300可以采用天线401向周围的设备发送第一消息或第二消息;音箱300可以通过天线402接收其他设备发送的NAN发布消息。音箱300还可以通过天线401或天线402接入Wi-Fi路由器。Exemplarily, the speaker 300 may use theantenna 401 to send the first message or the second message to surrounding devices; the speaker 300 may receive the NAN release message sent by other devices through theantenna 402 . The speaker 300 can also be connected to a Wi-Fi router through theantenna 401 or theantenna 402 .

在另一些实施例中,上述第二天线和第一天线可以共用一部分走线,例如图4B-图4D所示实施例中的描述。In some other embodiments, the above-mentioned second antenna and the first antenna may share a part of wiring, such as the description in the embodiment shown in FIG. 4B-FIG. 4D.

本申请实施例音箱300通过第一天线来实现超短距通信。本申请实施例中音箱300中的双天线(第一天线以及第二天线)可以通过射频开关进行切换。物理上可以将第一天线与射频开关(如图4B-图4D中虚线框中所示为第一天线)都置于屏蔽罩内或者将第一天线置于芯片内。图4B-图4D示出了三种第一天线的结构示意图。The speaker 300 in the embodiment of the present application implements 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 can be switched by a radio frequency switch. Physically, both the first antenna and the radio frequency switch (shown as the first antenna in the dashed box in FIG. 4B-4D ) can be placed in the shielding case or the first antenna can be placed in the chip. 4B-4D show schematic structural diagrams of three kinds of first antennas.

本申请实施例中的第一天线的目的就是要尽可能减小发射距离。构造第一天线的原理可以是:The purpose of the first antenna in the embodiment of the present application is to reduce the transmission distance as much as possible. The principle of constructing the first antenna can be:

(1)减小天线长度,从而减小辐射到空气中的电磁波;(1) Reduce the length of the antenna, thereby reducing the electromagnetic waves radiated into the air;

(2)减小辐射效率,通过电阻将一部分的电磁波辐射转化为热能消耗掉;(2) Reduce the radiation efficiency, and convert a part of the electromagnetic wave radiation into heat energy through the resistance to consume;

(3)降低回波损耗,将部分射频能量反射回芯片内部等。(3) Reduce the return loss, reflect part of the radio frequency energy back to the inside of the chip, etc.

第一天线具体的实现可以采用:The specific realization of the first antenna may adopt:

(1)将天线变短;(1) Shorten the antenna;

(2)将真天线路径中某点断开,或者在该点通过电阻、电感或者电容接地;(2) Disconnect a certain point in the true antenna path, or ground the point through resistance, inductance or capacitance;

(3)使用屏蔽罩等。(3) Use a shield, etc.

应理解,上述第一天线具体的实现(1)和(2)可以在PCB板上或者芯片内部实现。It should be understood that the above specific implementations (1) and (2) of the first antenna may be implemented on the PCB or inside the chip.

还应理解,上述屏蔽罩的作用是隔断天线辐射电磁波到接收器的路径,以达到削弱辐射的目的。It should also be understood that the function of the above-mentioned shielding cover is to block the path of the electromagnetic wave radiated by the antenna to the receiver, so as to achieve the purpose of weakening the radiation.

还应理解,上述将天线变短是指第一天线相比于第二天线来说,第一天线更短。图4B至图4D所示的三种第一天线的结构,第一天线如图4B至图4D中的虚线框中所示。图4B至图4D中第二天线的结构都是通过RFIO引脚连接滤波电路(例如,π型电路)、匹配电路(例如,π型电路)以及匹配电路外的天线体(例如,该天线体可以是一段金属走线)。图4B中虚线框所示的第一天线a、图4C中虚线框所示的第一天线b以及图4D中虚线框所示的第一天线c的长度不同,但是相比于第二天线都更短。滤波电路的作用是防止干扰,匹配电路是用来与第二天线匹配。It should also be understood that shortening the antenna above means that the first antenna is shorter than the second antenna. Three structures of the first antenna shown in FIG. 4B to FIG. 4D , the first antenna is shown in the dotted line box in FIG. 4B to FIG. 4D . The structures of the second antenna in Fig. 4B to Fig. 4D all connect the filter circuit (for example, π-type circuit), the matching circuit (for example, π-type circuit) and the antenna body outside the matching circuit (for example, the antenna body) through the RFIO pin can be a metal trace). The lengths of the first antenna a shown in the dotted line box in Figure 4B, the first antenna b shown in the dotted line box in Figure 4C, and the first antenna c shown in the dotted line box in Figure 4D are different, but compared to the second antenna Shorter. The function of the filter circuit is to prevent interference, and the matching circuit is used to match with the second antenna.

示例性的,如图4B所示,第一天线a可以采用屏蔽罩内Wi-Fi芯片的射频输入输出(radio frequency input/output,RFIO)引脚直接断开。其中,第一天线a可以由RFIO引脚、走线和2路开关中的第一路开关(第一路开关不连接任何器件)组成。其中,2路开关指的是RFIO与滤波电路之间的开关,通过该开关可以将RFIO引脚与滤波电路连通或者断开;所述第一路开关为4B所示的与RFIO引脚相连、且与滤波电路之间断开的开关。应理解,本申请实施例中的2路开关可以是单刀双掷开关。Exemplarily, as shown in FIG. 4B , the first antenna a may be directly disconnected by using a radio frequency input/output (radio frequency input/output, RFIO) pin of the Wi-Fi chip inside the shield. Wherein, the first antenna a may be composed of RFIO pins, wires and the first switch of the two switches (the first switch is not connected to any device). Wherein, the 2-way switch refers to the switch between the RFIO and the filter circuit, through which the RFIO pin can be connected to or disconnected from the filter circuit; the first switch is connected to the RFIO pin shown in 4B, And the switch that is disconnected from the filter circuit. It should be understood that the 2-way switch in the embodiment of the present application may be a single-pole double-throw switch.

示例性的,如图4C所示,第一天线b可以采用屏蔽罩内Wi-Fi芯片的RFIO通过匹配器件(例如,电阻)到地。其中,第一天线b可以由RFIO引脚、走线、2路开关的第一路开关(第一路开关连接电阻)以及电阻组成。通过电阻接地可以将一部分的电磁波辐射转化为热能消耗掉,从而减小了第一天线b的辐射效率。其中,所述2路开关指的是RFIO引脚与电阻、滤波电路之间的开关,通过该开关,可以将RFIO引脚与电阻相连、与滤波电路断开,或者可以将RFIO引脚与电阻断开、而与滤波电路相连通。所述的第一路开关为与电阻相连、且与滤波电路断开的开关。Exemplarily, as shown in FIG. 4C , the first antenna b may connect to the ground through a matching device (for example, a resistor) through the RFIO of the Wi-Fi chip in the shielding case. Wherein, the first antenna b may be composed of an RFIO pin, a wire, a first switch of the two switches (the first switch is connected to a resistor), and a resistor. A part of electromagnetic wave radiation can be converted into heat energy and consumed through resistance grounding, thereby reducing the radiation efficiency of the first antenna b. Wherein, the 2-way switch refers to a switch between the RFIO pin and the resistor and the filter circuit, through which the RFIO pin can be connected to the resistor, disconnected from the filter circuit, or the RFIO pin can be connected to the resistor disconnected and connected to the filter circuit. The first switch is a switch connected to the resistor and disconnected from the filter circuit.

示例性的,如图4D所示,第一天线c可以采用屏蔽罩内Wi-Fi芯片的RFIO引脚过芯片匹配的滤波电路电路后接匹配器件(例如,电阻)到地。第一天线c可以由RFIO引脚、走线、滤波电路、2路开关的第一路开关(第一路开关连接电阻)以及电阻组成。通过电阻接地可以将一部分的电磁波辐射转化为热能消耗掉,从而减小了第一天线b的辐射效率。其中,所述2路开关指的是屏蔽罩内的滤波电路与电阻、屏蔽罩外的匹配电路之间的开关,通过该开关,可以将屏蔽罩内的滤波电路与电阻相连、与屏蔽罩外的匹配电路断开,或者可以将屏蔽罩内的滤波电路与电阻断开、而与屏蔽罩外的匹配电路相连通。所述的第一路开关为连接屏蔽罩内的滤波电路与电阻的开关。Exemplarily, as shown in FIG. 4D , the first antenna c may use the RFIO pin of the Wi-Fi chip inside the shield to pass through a chip-matched filter circuit and then connect a matching device (for example, a resistor) to ground. The first antenna c may be composed of an RFIO pin, a wire, a filter circuit, a first switch of the 2-way switch (the first switch is connected to a resistor), and a resistor. A part of electromagnetic wave radiation can be converted into heat energy and consumed through resistance grounding, thereby reducing the radiation efficiency of the first antenna b. Wherein, the two-way switch refers to the switch between the filter circuit in the shield and the resistor, and the matching circuit outside the shield. Through this switch, the filter circuit in the shield can be connected to the resistor and connected to the filter circuit outside the shield. The matching circuit of the shielding case is disconnected, or the filter circuit in the shielding case can be disconnected from the resistor, and connected to the matching circuit outside the shielding case. The first switch is a switch connecting the filter circuit and the resistor in the shielding case.

应理解,上述图4B至图4C中的第二天线可以由RFIO引脚、走线、2路开关中的第二路开关,滤波电路、匹配电路以及匹配电路外连接的天线体组成。所述第二路开关为连接RFIO引脚与滤波电路的开关。It should be understood that the second antenna in FIG. 4B to FIG. 4C may be composed of RFIO pins, wiring, the second switch of the two-way switch, a filter circuit, a matching circuit, and an antenna body connected outside the matching circuit. The second switch is a switch connecting the RFIO pin and the filter circuit.

上述图4D中的第二天线可以由RFIO引脚、滤波电路、走线、2路开关中的第二路开关、匹配电路以及匹配电路外连接的天线体组成。所述第二路开关为连接屏蔽罩内的滤波电路与屏蔽罩外的匹配电路的开关。The above-mentioned second antenna in FIG. 4D may be composed of an RFIO pin, a filter circuit, a wiring, a second switch in the 2-way switch, a matching circuit, and an antenna body connected outside the matching circuit. The second switch is a switch connecting the filter circuit inside the shield and the matching circuit outside the shield.

应理解,上述图4A所示的无线通信模块403可以是图4B至图4C中所述的Wi-Fi芯片。It should be understood that thewireless communication module 403 shown in FIG. 4A may be the Wi-Fi chip described in FIG. 4B to FIG. 4C .

以上不同的第一天线结构配合Wi-Fi芯片的不同发射功率(Tx power)的设置,可以达到不同超短距通讯的要求(例如,从10cm到2m)。The above-mentioned different first antenna structures can meet different ultra-short-distance communication requirements (for example, from 10cm to 2m) in combination with different transmission power (Tx power) settings of the Wi-Fi chip.

示例性的,表1示出了几种不同的第一天线结构配合不同发射功率的通讯距离。Exemplarily, Table 1 shows the communication distances of several different first antenna structures matched with different transmit powers.

表1Table 1

Figure BDA0002681286490000161
Figure BDA0002681286490000161

由于芯片内物理器件的特性,天线最大发射功率和最小发射功率之差是相关联的。如果把音箱300的最小发射功率降得很低,则最大发射功率也会被降低,这样就不满足正常工作时的距离要求。本申请实施例中,由于不同的智能设备的结构不同以及对智能设备的安全性能要求不同,所以智能设备的生产厂商可以采用不同的第一天线结构以及发射功率来保证智能设备的通讯距离。示例性的,对于不同的智能空调生产厂商,其智能空调外壳的厚度可能不同,那么在第一天线结构相同以及发射功率相同的情况下,智能空调能够被发现的通讯距离也可能不同。不同的智能设备生产厂商可以根据其智能设备本身的结构,配合第一天线的结构以及一定的发射功率,从而测试出智能设备被发现的安全距离。Due to the characteristics of the physical devices in the chip, the difference between the maximum transmit power and the minimum transmit power of the antenna is related. If the minimum transmission power of the sound box 300 is reduced very low, the maximum transmission power will also be reduced, so that the distance requirement during normal operation cannot be met. In the embodiment of the present application, since different smart devices have different structures and have different security performance requirements for smart devices, manufacturers of smart devices may use different first antenna structures and transmission powers to ensure the communication distance of smart devices. Exemplarily, for different smart air conditioner manufacturers, the thickness of the smart air conditioner housing may be different, so when the first antenna structure is the same and the transmission power is the same, the communication distance at which the smart air conditioner can be discovered may also be different. Different smart device manufacturers can test the safe distance for the smart device to be discovered according to the structure of the smart device itself, with the structure of the first antenna and a certain transmission power.

结合上述示例,以第二距离是5米,第一距离是0.3米为例。当音箱300采用第二天线(即强天线)时,如果音箱300与其他设备(如手机)之间的距离小于第二距离(如其他设备位于图4E所示的位置1),音箱300可与其他设备(如音箱)通信;当音箱300采用第一天线(即弱天线)时,如果音箱300与其他设备(如手机)之间的距离小于第一距离(如其他设备位于图4E所示的位置2),音箱300可与其他设备(如手机)通信。With reference to the above examples, take the second distance as 5 meters and the first distance as 0.3 meters as an example. When the speaker 300 adopts the second antenna (that is, a strong antenna), if the distance between the speaker 300 and other devices (such as a mobile phone) is less than the second distance (such as other devices are located at position 1 shown in FIG. 4E), the speaker 300 can be connected to Communication with other devices (such as speakers); when the speaker 300 uses the first antenna (that is, a weak antenna), if the distance between the speaker 300 and other devices (such as mobile phones) is less than the first distance (such as other devices located at the location shown in Figure 4E Position 2), the speaker 300 can communicate with other devices (such as mobile phones).

音箱300通过GPU,显示屏306,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏306和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器301可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The speaker 300 implements a display function through a GPU, a display screen 306, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 306 and the application processor. GPUs are 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.

显示屏306用于显示图像,视频等。该显示屏306包括显示面板。显示面板可以采用LCD,OLED,AMOLED,FLED,Miniled,MicroLed,Micro-oLed,QLED等。例如,本申请实施例中,显示屏306可用于显示音箱300所播放的音频数据对应的图像内容,以及音箱300的操作界面等。The display screen 306 is used to display images, videos and the like. The display screen 306 includes a display panel. The display panel can adopt 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 the image content corresponding to the audio data played by the speaker 300 , and the operation interface of the speaker 300 .

视频编解码器用于对数字视频压缩或解压缩。音箱300可以支持一种或多种视频编解码器。这样,音箱300可以播放或录制多种编码格式的视频,例如:MPEG1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Speaker 300 may support one or more video codecs. In this way, the sound box 300 can play or record videos in various encoding formats, such as: MPEG1, MPEG2, MPEG3, MPEG4 and so on.

内部存储器303可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器301通过运行存储在内部存储器303的指令,从而执行音箱300的各种功能应用以及数据处理。内部存储器303可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储音箱300使用过程中所创建的数据(比如音频播放记录)等。此外,内部存储器303可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,UFS等。Internal memory 303 may be used to store computer-executable program code, which includes instructions. Theprocessor 301 executes various functional applications and data processing of the speaker 300 by executing instructions stored in the internal memory 303 . The internal memory 303 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the speaker 300 (such as audio playback records) and the like. In addition, the internal memory 303 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, UFS, and the like.

外部存储器接口302可以用于连接外部存储卡,例如Micro SD卡,实现扩展广告设备120的存储能力。外部存储卡通过外部存储器接口302与处理器301通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。Theexternal memory interface 302 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the advertising device 120. The external memory card communicates with theprocessor 301 through theexternal memory interface 302 to implement a data storage function. Such as saving music, video and other files in the external memory card.

音箱300可以通过音频模块307,扬声器307A和麦克风307B,以及应用处理器等实现音频功能。例如音乐播放,录音,语音采集等。The sound box 300 can realize the audio function through theaudio module 307, thespeaker 307A, the microphone 307B, and the application processor. Such as music playback, recording, voice collection, etc.

音频模块307用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块307还可以用于对音频信号编码和解码。在一些实施例中,音频模块307可以设置于处理器301中,或将音频模块307的部分功能模块设置于处理器301中。扬声器307A,也称“喇叭”,用于将音频电信号转换为声音信号。麦克风407B,也称“话筒”,“传声器”,用于采集声音信号,并将声音信号转换为电信号。Theaudio module 307 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. Theaudio module 307 can also be used to encode and decode audio signals. In some embodiments, theaudio module 307 can be set in theprocessor 301 , or some functional modules of theaudio module 307 can be set in theprocessor 301 . Thespeaker 307A, also called "horn", is used to convert audio electrical signals into sound signals. The microphone 407B, also called "microphone" or "microphone", is used to collect sound signals and convert the sound signals into electrical signals.

以下实施例中的方法均可以在具有上述硬件结构的电子设备200和具有上述硬件结构的音箱300中实现。以下实施例中以上述电子设备200是图1所示的手机100,图1所示的音箱201、音箱202、音箱203、音箱204和音箱205参与组合构建组合音箱为例,介绍本申请实施例的方法。The methods in the following embodiments can all be implemented in the electronic device 200 having the above hardware structure and the sound box 300 having the above hardware structure. In the following embodiments, the above-mentioned electronic device 200 is themobile phone 100 shown in FIG. 1, and thespeakers 201, 202, 203, 204, and 205 shown in FIG. Methods.

需要注意的是,手机100需要与音箱201、音箱202、音箱203、音箱204和音箱205分别交互,以实现组合音箱的配置。为了便于理解,以下实施例中以手机100与音箱201和音箱202交互为例,介绍手机100配置组合音箱的过程中,手机100与音箱的交互方式。It should be noted that themobile phone 100 needs to interact with thespeaker 201 , thespeaker 202 , thespeaker 203 , thespeaker 204 and thespeaker 205 respectively, so as to realize the configuration of the combined speaker. For ease of understanding, the following embodiments take the interaction between themobile phone 100 and thespeakers 201 and 202 as an example to introduce the interaction between themobile phone 100 and the speakers during the process of configuring the combined speakers on themobile phone 100 .

本申请实施例提供一种组合音箱的配置方法,如图5所示,该组合音箱的配置方法可以包括S501-S523。An embodiment of the present application provides a method for configuring a combined speaker. As shown in FIG. 5 , the method for configuring a combined speaker may include S501-S523.

S501、音箱(如音箱201、音箱202、音箱203、音箱204和音箱205)订阅临近感知网络(neighborhood aware network,NAN)服务。S501, the speakers (such as thespeakers 201, 202, 203, 204, and 205) subscribe to a neighborhood aware network (neighborhood aware network, NAN) service.

示例性的,音箱上可以设置有预设按键。该预设按键用于触发音箱订阅NAN服务。例如,该预设按键可以称为“配网”按键。例如,上述预设按键可以是设置在音箱的上表面或者音箱的任一侧面的物理按键。本申请实施例中,对上述预设按键在音箱中的位置不作限制。或者,音箱可以包括显示屏,上述预设按键可以是显示屏上显示的虚拟按键。Exemplarily, preset buttons may be set on the sound box. This preset button is used to trigger the speaker to subscribe to the NAN service. For example, the preset button may be called a "network distribution" button. For example, the above preset button may be a physical button arranged on the upper surface of the sound box or on any side of the sound box. In the embodiment of the present application, there is no limitation on the position of the preset button in the sound box. Alternatively, the sound box may include a display screen, and the preset keys may be virtual keys displayed on the display screen.

其中,响应于用户对该“配网”按键的操作1(如单击操作、双击操作或者长按操作等),音箱可以订阅NAN服务。例如,响应于用户对“配网”按键的操作1,音箱可以进入配网模式。在配网模式下,音箱可以自动订阅NAN服务。Among them, in response to the user's operation 1 (such as single-click operation, double-click operation, or long-press operation, etc.) on the "network distribution" button, the speaker can subscribe to the NAN service. For example, in response to the user's operation 1 on the "network distribution" button, the speaker can enter the network distribution mode. In the distribution network mode, the speaker can automatically subscribe to the NAN service.

其中,NAN服务也称为WiFi感知服务。NAN机制是由WiFi联盟(WiFi alliance,WFA)提出的基于WiFi技术的一个标准。在NAN机制中,多个具有NAN功能的设备(简称NAN设备)形成的NAN网络称为簇(cluster)。簇中的每个NAN设备都可以在该簇的发现窗口(discoverywindow,DW)中进行服务发现,以发现能够与其进行数据传输的其他NAN设备。Wherein, the NAN service is also referred to as a WiFi-aware service. The NAN mechanism is a standard based on WiFi technology proposed by the WiFi Alliance (WFA). In the NAN mechanism, a NAN network formed by multiple devices with NAN functions (referred to as NAN devices) is called a cluster. Each NAN device in the cluster can perform service discovery in a discovery window (discovery window, DW) of the cluster, so as to discover other NAN devices that can perform data transmission with it.

具体的,本申请实施例中,音箱订阅NAN服务具体是指:音箱激活或启动NAN功能。其中,一个设备激活或启动NAN设备后,可以基于自身的媒体存取控制(media accesscontrol,MAC)地址设定一个身份标识(identity,ID)。并且,一个设备在激活或启动NAN功能后,如果接收到来自其他设备的NAN发布消息,便可以响应该NAN发布消息回复相应的响应消息。Specifically, in the embodiment of the present application, subscribing to a NAN service by a speaker specifically refers to activating or starting a NAN function by the speaker. Wherein, after a device activates or starts a NAN device, an identity (ID) can be set based on its own media access control (media access control, MAC) address. In addition, after a device activates or starts the NAN function, if it receives a NAN release message from other devices, it can reply a corresponding response message in response to the NAN release message.

示例性的,以图1所示的五个音箱参与组合,用于构建组合音箱为例。图1所示的音箱201、音箱202、音箱203、音箱204和音箱205可以响应于用户对各自的预设按键的操作1,分别进入订阅NAN服务。Exemplarily, five speakers shown in FIG. 1 participate in combination to construct a combination speaker as an example. Thespeakers 201 , 202 , 203 , 204 and 205 shown in FIG. 1 can respectively enter the subscription to the NAN service in response to the user's operation 1 on the respective preset buttons.

S502、手机100显示第一APP的第一界面,该第一界面用于触发手机100构建N声道的组合音箱。S502. Themobile phone 100 displays a first interface of the first APP, and the first interface is used to trigger themobile phone 100 to build an N-channel combined speaker.

其中,N≥2,N为正整数。例如,N可以为2,3,5,或者7等任一正整数。Wherein, N≥2, N is a positive integer. For example, N can be any positive integer such as 2, 3, 5, or 7.

示例性的,本申请实施例中的第一APP可以为如图6所示的图标“音箱”601对应的应用。如图6所示,手机100可接收用户对“音箱”601的点击操作;响应于该点击操作,手机100可启动第一APP,显示图7A所示的第一APP的首页701(即第一界面701)。第一界面701中包括多个组合音箱选项,如“立体声组合音箱”选项702和“环绕声组合音箱”选项703。Exemplarily, the first APP in the embodiment of the present application may be an application corresponding to the icon "speaker" 601 as shown in FIG. 6 . As shown in Figure 6, themobile phone 100 can receive the user's click operation on the "speaker" 601; in response to the click operation, themobile phone 100 can start the first APP, and display thehome page 701 of the first APP shown in Figure 7A (i.e. the first APP). interface 701). Thefirst interface 701 includes multiple combination speaker options, such as a “stereo combination speaker”option 702 and a “surround sound combination speaker”option 703 .

其中,上述组合音箱选项用于触发手机100构建组合音箱。例如,“立体声组合音箱”选项702用于触发手机100构建包括左声道和右声道的立体声的组合音箱,N=2。又例如,“环绕声组合音箱”选项703用于触发手机100构建包括左前置声道、右前置声道、中置声道、右环绕声道、左环绕声道的环绕声的组合音箱,N=5。Wherein, the combination speaker option is used to trigger themobile phone 100 to build a combination speaker. For example, theoption 702 of "Stereo Combination Speaker" is used to trigger themobile phone 100 to construct a stereo combination speaker including a left channel and a right channel, N=2. For another example, the "surround sound combination speaker"option 703 is used to trigger themobile phone 100 to construct a combination speaker comprising surround sound of the left front channel, the right front channel, the center channel, the right surround sound channel, and the left surround sound channel , N=5.

S503、响应于操作a,手机100显示第二界面。该第二界面用于指示N个音箱的摆放布局。S503. In response to operation a, themobile phone 100 displays a second interface. The second interface is used to indicate the layout of the N speakers.

示例性的,该操作a是第一操作。该操作a可以是用户对图7A所示的“立体声组合音箱”选项702或“环绕声组合音箱”选项703的点击操作(如单击操作)。本申请实施例中以上述操作a触发手机100构建包括五个声道的环绕声的组合音箱为例。例如,手机100可以接收用户对“环绕声组合音箱”选项703的操作a。例如,响应于用户对图7A所示的“环绕声组合音箱”选项703的操作a,手机100可以显示图7B或图7C所示的第二界面704。图7B或图7C所示的第二界面704中包括“环绕声组合音箱”选项703对应的五个音箱的图标,并指示了这五个音箱的摆放布局。Exemplarily, the operation a is the first operation. The operation a may be a user's click operation (such as a click operation) on the "stereo combination speaker"option 702 or the "surround sound combination speaker"option 703 shown in FIG. 7A . In the embodiment of the present application, the above operation a triggers themobile phone 100 to build a combination speaker including five-channel surround sound as an example. For example, themobile phone 100 may receive the user's operation a on theoption 703 of “Surround Sound Combination Speakers”. For example, in response to the user's operation a on the "surround sound combined speakers"option 703 shown in FIG. 7A, themobile phone 100 may display thesecond interface 704 shown in FIG. 7B or 7C. Thesecond interface 704 shown in FIG. 7B or FIG. 7C includes icons of the five speakers corresponding to the "surround combined speakers"option 703, and indicates the layout of the five speakers.

在一些实施例中,上述第二界面中还包括提示信息,该提示信息用于提示用户按照第二界面所指示的摆放布局摆放上述N个音箱。例如,图7B或图7C所示的第二界面704还包括提示信息705,如“请按照以下布局摆放音箱”。In some embodiments, the above-mentioned second interface further includes prompt information, and the prompt information is used to prompt the user to place the above-mentioned N speakers according to the layout indicated by the second interface. For example, thesecond interface 704 shown in FIG. 7B or FIG. 7C also includesprompt information 705, such as "Please place the speakers according to the following layout".

在另一些实施例中,上述第二界面还可以包括电子设备为上述N个音箱分配的标识,如音箱1,音箱2,……,音箱N。In some other embodiments, the above-mentioned second interface may further include identifiers assigned by the electronic device to the above-mentioned N speakers, such as speaker 1, speaker 2, . . . , speaker N.

在另一些实施例中,上述第二界面还可以指示上述N个音箱中每个音箱的角色。例如,图7C所示的第二界面704中各个音箱的图标下方指示了对应音箱的角色,如左前置声道、右前置声道、中置声道、左环绕声道和右声道。需要说明的是,每个音箱的角色是由该音箱在N个音箱中的摆放位置决定的。In other embodiments, the second interface may also indicate the role of each speaker in the N speakers. For example, the roles of the corresponding speakers are indicated below the icons of the speakers in thesecond interface 704 shown in FIG. 7C , such as left front channel, right front channel, center channel, left surround channel, and right channel. . It should be noted that the role of each speaker is determined by the location of the speaker among the N speakers.

可以理解,用户可以按照第二界面所指示的摆放布局,摆放图1所示的五个音箱。例如,用户可以调整图1所示的五个音箱摆放布局,调整后图1所示的音箱201、音箱202、音箱203、音箱204和音箱205的摆放布局如图8所示。It can be understood that the user can place the five speakers shown in FIG. 1 according to the layout indicated by the second interface. For example, the user can adjust the layout of the five speakers shown in FIG. 1 , and the adjusted layout of thespeakers 201 , 202 , 203 , 204 and 205 shown in FIG. 1 is shown in FIG. 8 .

如图8所示,音箱201在五个音箱中的摆放位置与图7B或图7C所示的左前置声道的摆放位置对应;音箱202在五个音箱中的摆放位置与图7B或图7C所示的右前置声道的摆放位置对应;音箱203在五个音箱中的摆放位置与图7B或图7C所述的中前置声道的摆放位置对应;音箱204在五个音箱中的摆放位置与图7B或图7C所述的左环绕声道的摆放位置对应;音箱205在五个音箱中的摆放位置与图7B或图7C所述的右环绕声道的摆放位置对应。As shown in Figure 8, the placement position of thespeaker 201 among the five sound boxes corresponds to the placement position of the left front channel shown in Figure 7B or Figure 7C; 7B or the placement position of the right front channel shown in FIG. 7C corresponds; the placement position of thespeaker 203 among the five speakers corresponds to the placement position of the middle front channel described in FIG. 7B or FIG. 7C; the speaker The placement position of 204 among the five sound boxes corresponds to the placement position of the left surround channel described in FIG. 7B or 7C; the placement position of thesound box 205 among the five sound boxes is the same as the right surround channel described in FIG. Corresponds to the placement of the surround channels.

需要说明的是,本申请实施例中,可以先执行S501,再执行S502-S503;也可以先执行S502-S503,再执行S501;或者,还可以在执行S502-S503的同时,执行S501。本申请实施例对S501和S502-S503执行的先后顺序不做限制。It should be noted that, in the embodiment of the present application, S501 may be executed first, and then S502-S503; or S502-S503 may be executed first, and then S501; or, S501 may be executed while S502-S503 is executed. The embodiment of the present application does not limit the sequence of execution of S501 and S502-S503.

S504、响应于用户在第二界面的操作b,手机100广播NAN发布消息。S504. In response to the user's operation b on the second interface, themobile phone 100 broadcasts a NAN release message.

示例性的,该操作b是第二操作。该操作b可以是用户对第二界面中预设控件的点击操作(如单击操作、双击操作或长按操作)。该预设控件用于触发手机100开始为N个音箱配网。例如,预设控件可以为“开始配网”控件。上述操作b是用户对图7B或图7C所示的第二界面704中“开始配网”控件706的点击操作。Exemplarily, the operation b is the second operation. The operation b may be a user's click operation (such as single click operation, double click operation or long press operation) on the preset control in the second interface. The preset control is used to trigger themobile phone 100 to start network distribution for N speakers. For example, the preset control may be a "start network configuration" control. The above operation b is the user's click operation on the "start network distribution"control 706 in thesecond interface 704 shown in FIG. 7B or 7C.

或者,上述操作b还可以是用户在第二界面中输入的预设手势,如S形手势,L形手势,双指向上滑动手势或者三指向上滑动手势等。以下实施例中,以操作b是用户对第二界面中预设控件的点击操作为例。Alternatively, the above operation b may also be a preset gesture input by the user in the second interface, such as an S-shaped gesture, an L-shaped gesture, a two-finger upward sliding gesture, or a three-finger upward sliding gesture. In the following embodiments, it is assumed that operation b is a user's click operation on a preset control in the second interface as an example.

如图7B或图7C所示,响应于用户对“开始配网”控件706的操作b,手机100可以发布NAN服务。本申请实施例中,手机100发布NAN服务,具体是指:手机100广播NAN发布消息。由上述实施例可知:图8所示的音箱201、音箱202、音箱203、音箱204和音箱205均已订阅NAN服务。因此,图8所示的音箱201、音箱202、音箱203、音箱204和音箱205均可以接收并响应于该NAN发布消息。As shown in FIG. 7B or FIG. 7C , in response to the user's operation b on the "Start Network Configuration"control 706, themobile phone 100 can publish the NAN service. In the embodiment of the present application, themobile phone 100 releases the NAN service, specifically refers to: themobile phone 100 broadcasts a NAN release message. It can be known from the above embodiment that thespeakers 201, 202, 203, 204 and 205 shown in FIG. 8 have all subscribed to the NAN service. Therefore,speaker 201,speaker 202,speaker 203,speaker 204, andspeaker 205 shown in FIG. 8 can all receive and issue a message in response to the NAN.

S505、手机100显示第三界面。该第三界面用于提示用户将手机100靠近角色1的音箱,使手机100与角色1的音箱之间的距离在第一距离内。S505. Themobile phone 100 displays a third interface. The third interface is used to prompt the user to move themobile phone 100 close to the speaker of character 1 so that the distance between themobile phone 100 and the speaker of character 1 is within the first distance.

其中,上述角色1是第一角色。例如,响应于用户对“开始配网”控件706的操作b,手机100可以显示图9A所示的第三界面901。该第三界面901用于提示用户将手机100靠近角色1(如左前置声道)的音箱。Wherein, the above-mentioned role 1 is the first role. For example, in response to the user's operation b on the "start network configuration"control 706, themobile phone 100 may display thethird interface 901 shown in FIG. 9A. Thethird interface 901 is used to prompt the user to move themobile phone 100 close to the speaker of character 1 (eg left front channel).

例如,该第三界面901包括提示信息902,如“请将手机靠近角色为左前置声道的音箱”。其中,角色1可以为上述N个音箱中任一个音箱的角色。例如,在图9A所示的第三界面901,角色1为左前置声道,该角色1的音箱是图8所示的音箱201。For example, thethird interface 901 includesprompt information 902, such as "please move the mobile phone close to the speaker whose role is the left front channel". Wherein, role 1 may be a role of any one of the above N speakers. For example, on thethird interface 901 shown in FIG. 9A , character 1 is the left front channel, and the speaker of character 1 is thespeaker 201 shown in FIG. 8 .

可选的,手机100还可以在第三界面以预先方式显示上述角色1的音箱的图标。例如,响应于用户对“开始配网”控件706的操作b,手机100可以显示图9B所示的第三界面903。其中,第三界面903中以标黑的方式显示角色1(如左前置声道)的音箱的图标。这样,可以直观的将角色1的音箱与其他角色的音箱区分开来,便于用户快速定位出该角色1的音箱在N个音箱中的摆放位置。Optionally, themobile phone 100 may also display the above-mentioned icon of the speaker of the character 1 in a pre-set manner on the third interface. For example, in response to the user's operation b on the "start network configuration"control 706, themobile phone 100 may display thethird interface 903 shown in FIG. 9B. Wherein, thethird interface 903 displays the icon of the speaker of character 1 (such as the left front channel) in black. In this way, the speaker of character 1 can be intuitively distinguished from the speakers of other characters, so that the user can quickly locate the position of the speaker of character 1 among the N speakers.

需要说明的是,上述预设方式包括但不限于图9B中显示左前置声道的音箱的图标的方式,其他的显示方式此处不予赘述。It should be noted that the above preset manners include but not limited to the manner of displaying the icon of the speaker of the left front channel in FIG. 9B , and other display manners will not be repeated here.

可以理解,如S501中所述,音箱201、音箱202、音箱203、音箱204和音箱205均订阅了NAN服务,即激活或启动了NAN功能。因此,订阅了NAN服务的音箱201、音箱202、音箱203、音箱204和音箱205便可以接收到手机100广播的NAN发布消息。具体的,在上述S504之后,本申请实施例的方法还可以包括S506。It can be understood that, as described in S501, thespeaker 201, thespeaker 202, thespeaker 203, thespeaker 204, and thespeaker 205 are all subscribed to the NAN service, that is, the NAN function is activated or started. Therefore, thespeaker 201 ,speaker 202 ,speaker 203 ,speaker 204 andspeaker 205 subscribed to the NAN service can receive the NAN release message broadcast by themobile phone 100 . Specifically, after the foregoing S504, the method in this embodiment of the present application may further include S506.

需要说明的是,本申请实施例中,可以先执行S504广播NAN发布消息,再执行S505;也可以先执行S505,再执行S504广播NAN发布消息;或者,还可以在执行S504广播NAN发布消息的同时,执行S505。本申请实施例对手机100广播NAN发布消息和S505执行的先后顺序不做限制。It should be noted that, in this embodiment of the application, S504 can be executed to broadcast the NAN release message first, and then S505 can be executed; or S505 can be executed first, and then S504 can be executed to broadcast the NAN release message; At the same time, execute S505. In this embodiment of the present application, there is no limitation on the order in which themobile phone 100 broadcasts the NAN release message and executes S505.

S506、音箱(如音箱201、音箱202、音箱203、音箱204和音箱205)接收手机100广播的NAN发布消息。S506. Speakers (such asspeaker 201,speaker 202,speaker 203,speaker 204, and speaker 205) receive the NAN release message broadcast by themobile phone 100.

其中,音箱201、音箱202、音箱203、音箱204和音箱205接收到上述NAN发布消息后,可以响应该NAN发布消息。Thespeaker 201, thespeaker 202, thespeaker 203, thespeaker 204, and thespeaker 205 may respond to the NAN release message after receiving the above-mentioned NAN release message.

一般而言,订阅了NAN服务的设备响应该NAN发布消息,可以回复相应的响应消息。本申请实施例中,订阅了NAN服务的音箱201、音箱202、音箱203、音箱204和音箱205在接收到NAN发布消息后,可以将音箱的天线切换为弱天线,然后使用弱天线回复相应的响应消息。具体的,在S506之后本申请实施例的方法还可以包括S507-S508。Generally speaking, a device that has subscribed to the NAN service can reply a corresponding response message in response to the NAN release message. In the embodiment of this application, after thespeakers 201, 202, 203, 204, and 205 subscribed to the NAN service receive the NAN release message, they can switch the antenna of the speaker to a weak antenna, and then use the weak antenna to reply to the corresponding Respond to the message. Specifically, after S506, the method in the embodiment of the present application may further include S507-S508.

S507、音箱(如音箱201、音箱202、音箱203、音箱204和音箱205)使用弱天线。S507, the speakers (such as thespeakers 201, 202, 203, 204 and 205) use weak antennas.

需要说明的是,音箱(如音箱201、音箱202、音箱203、音箱204和音箱205)在执行S501-S506的过程中,使用强天线实现无线通信。当音箱接收到上述NAN发布消息后,便可以使用弱天线进行无线通信。其中,强天线是第二天线,弱天线是第一天线。强天线、弱天线,以及音箱使用弱天线的原理,可以参考上述实施例中的相关描述,此处不予赘述。It should be noted that the speakers (such as thespeakers 201, 202, 203, 204, and 205) use strong antennas to implement wireless communication during the execution of S501-S506. When the speaker receives the above-mentioned NAN release message, it can use the weak antenna for wireless communication. Wherein, the strong antenna is the second antenna, and the weak antenna is the first antenna. For the principles of the strong antenna, the weak antenna, and the use of the weak antenna for the sound box, reference may be made to the relevant descriptions in the foregoing embodiments, and details are not repeated here.

S508、音箱201使用弱天线广播消息1。该消息1中包括音箱201的ID 1和秘钥1。S508. Thesound box 201 broadcasts the message 1 by using the weak antenna. The message 1 includes the ID 1 and the secret key 1 of thespeaker 201.

其中,由于上述消息1是音箱1使用弱天线(也称为超短距天线)广播的;因此,该消息1也称为短距消息,如短距消息1。该消息1是第一消息。音箱201是第一音箱。ID 1是第一音箱的标识。秘钥1是第一秘钥。音箱201的ID 1用于标识音箱201。例如,音箱201的ID 1可以是音箱201的MAC地址;或者,音箱201的ID 1可以是音箱201的其他标识。上述秘钥1可以是音箱201随机生成的秘钥。Wherein, because the above-mentioned message 1 is broadcast by the speaker 1 using a weak antenna (also called an ultra-short-range antenna); therefore, the message 1 is also called a short-range message, such as short-range message 1. The message 1 is the first message. Thespeaker 201 is a first speaker. ID 1 is the identification of the first speaker. Key 1 is the first key. The ID 1 of thespeaker 201 is used to identify thespeaker 201. For example, the ID 1 of thesound box 201 can be the MAC address of thesound box 201; or, the ID 1 of thesound box 201 can be other identifications of thesound box 201. The aforementioned secret key 1 may be a secret key randomly generated by thespeaker 201 .

S509、音箱202使用弱天线广播消息2。该消息2中包括音箱202的ID 2和秘钥2。S509. Thespeaker 202 broadcasts the message 2 using the weak antenna. The message 2 includes the ID 2 and the secret key 2 of thespeaker 202.

其中,由于上述消息2是音箱2使用弱天线(也称为超短距天线)广播的;因此,该消息2也称为短距消息,如短距消息2。该消息2是第二消息。音箱202是第二音箱。ID 2是第二音箱的标识。秘钥2是第二秘钥。音箱202的ID 2用于标识音箱202。例如,音箱202的ID 2可以是音箱202的MAC地址;或者,音箱202的ID 2可以是音箱202的其他标识。上述秘钥2可以是音箱202随机生成的秘钥。Wherein, because the above-mentioned message 2 is broadcast by the speaker 2 using a weak antenna (also called an ultra-short-range antenna); therefore, the message 2 is also called a short-range message, such as short-range message 2. This message 2 is the second message.Speaker 202 is a second speaker. ID 2 is the identification of the second speaker. Key 2 is the second key. The ID 2 of thespeaker 202 is used to identify thespeaker 202. For example, the ID 2 of thesound box 202 can be the MAC address of thesound box 202; or, the ID 2 of thesound box 202 can be other identifications of thesound box 202. The aforementioned secret key 2 may be a secret key randomly generated by thespeaker 202 .

需要说明的是,参与组合的其他音箱(如音箱203、音箱204、音箱205)也会使用弱天线广播短距消息。该短距消息中包括对应音箱的ID和相应的秘钥。本申请实施例这里以音箱201和音箱202为例,介绍本申请实施例的方法。It should be noted that other speakers participating in the combination (such asspeaker 203,speaker 204, and speaker 205) will also use weak antennas to broadcast short-distance messages. The short distance message includes the ID of the corresponding speaker and the corresponding secret key. In the embodiment of the present application, thesound box 201 and thesound box 202 are taken as examples to introduce the method in the embodiment of the present application.

其中,音箱(如音箱201或音箱202)使用弱天线进行无线通信的有效传输距离为第一距离。音箱(如音箱201或音箱202)使用强天线进行无线通信的有效传输距离为第二距离。例如,上述第二距离可以为5米,3米,4米或者6米等任一距离长度。上述第一距离为0.3米、0.4米或者0.35米等小于1米的距离长度。Wherein, the effective transmission distance of the speaker (such as thespeaker 201 or the speaker 202 ) using a weak antenna for wireless communication is the first distance. The effective transmission distance of the speaker (such as thespeaker 201 or the speaker 202 ) using a strong antenna for wireless communication is the second distance. For example, the above-mentioned second distance may be any distance length such as 5 meters, 3 meters, 4 meters or 6 meters. The above-mentioned first distance is a distance length less than 1 meter, such as 0.3 meters, 0.4 meters or 0.35 meters.

也就是说,当音箱(如音箱201)采用强天线时,如果音箱与手机100之间的距离小于第二距离,音箱300可与其他设备(如手机)通信;当音箱采用弱天线时,如果音箱与手机100之间的距离小于第一距离,音箱可与手机100通信。That is to say, when the speaker (such as the speaker 201) adopts a strong antenna, if the distance between the speaker and themobile phone 100 is less than the second distance, the speaker 300 can communicate with other devices (such as a mobile phone); when the speaker uses a weak antenna, if The distance between the speaker and themobile phone 100 is less than the first distance, and the speaker can communicate with themobile phone 100 .

可以理解,音箱(如音箱201和音箱202)使用弱天线进行无线通信的有效传输距离为第一距离(如0.3米)。只有当其他设备(如手机100)与音箱之间的距离小于第一距离,才可以接收到音箱发送的短距消息。而其他与音箱之间距离大于第一距离的设备,则不能接收到音箱发送的短距消息。这样的超短距离通信,可以保证音箱发送的短距消息不被其他设备接收到,可以避免由于其他设备获取到音箱的秘钥与音箱交互从而操作音箱,可以保证手机100与音箱之间数据传输的安全性。It can be understood that the effective transmission distance of the speakers (such as thespeakers 201 and 202 ) using weak antennas for wireless communication is the first distance (such as 0.3 meters). Only when the distance between other devices (such as mobile phone 100) and the speaker is less than the first distance, can the short-distance message sent by the speaker be received. However, other devices whose distance from the speaker is greater than the first distance cannot receive the short-distance message sent by the speaker. Such ultra-short-distance communication can ensure that the short-distance message sent by the speaker is not received by other devices, and can avoid operating the speaker due to other devices obtaining the key of the speaker and interacting with the speaker, and can ensure data transmission between themobile phone 100 and the speaker security.

在S505之后,如图8所示,用户将手机100靠近角色1的音箱(如音箱201)。用户将手机100靠近角色1的音箱201,使手机100与音箱201之间的距离在第一距离内之后,手机100便可以接收到音箱201发送的消息1。而手机100并未靠近音箱202;因此,手机100并不能接收到音箱202发送的消息2。如图5所示,在S508之后,本申请实施例的方法还可以包括S510。After S505 , as shown in FIG. 8 , the user moves themobile phone 100 close to the speaker of character 1 (such as the speaker 201 ). After the user brings themobile phone 100 close to thespeaker 201 of the character 1 so that the distance between themobile phone 100 and thespeaker 201 is within a first distance, themobile phone 100 can receive the message 1 sent by thespeaker 201 . However, themobile phone 100 is not close to thespeaker 202 ; therefore, themobile phone 100 cannot receive the message 2 sent by thespeaker 202 . As shown in FIG. 5, after S508, the method in this embodiment of the present application may further include S510.

S510、手机100接收到消息1,采用秘钥1加密配置信息1得到加密信息1。S510. Themobile phone 100 receives the message 1, and encrypts the configuration information 1 with the secret key 1 to obtain the encrypted information 1.

其中,加密信息1是第一加密信息。消息1中包括音箱201的ID 1和秘钥1。手机100接收到消息1之后,可以确定ID 1是上述角色1的音箱的标识。手机100可以保存表2所示的角色与ID的对应关系。Wherein, the encrypted information 1 is the first encrypted information. Message 1 includes ID 1 and secret key 1 ofspeaker 201. After themobile phone 100 receives the message 1, it can be determined that the ID 1 is the identification of the speaker of the above-mentioned role 1. Themobile phone 100 may store the correspondence between roles and IDs shown in Table 2.

表2Table 2

角色RoleIDID角色1character 1ID 1ID 1

可以理解,根据表2所示的角色与ID的对应关系,手机100可以确定角色1对应的音箱的ID。It can be understood that, according to the correspondence between roles and IDs shown in Table 2, themobile phone 100 can determine the ID of the speaker corresponding to role 1 .

其中,上述配置信息1还可以包括角色指示信息1,该角色指示信息1用于指示音箱201被配置为角色1(如左前置声道)。其中,配置信息1是第一配置信息。角色指示信息1是第一指示信息。Wherein, the above configuration information 1 may also include role indication information 1, the role indication information 1 is used to indicate that thespeaker 201 is configured as role 1 (such as the left front channel). Wherein, the configuration information 1 is the first configuration information. The role indication information 1 is first indication information.

上述配置信息1可以包括配网信息1。该配网信息1是第一配网信息。该配网信息1用于支持音箱201进行组合音箱中的数据交互。其中,配网信息1详细描述可以参考以下实施例中的相关内容,此处不予赘述。The above configuration information 1 may include network configuration information 1 . The distribution network information 1 is the first distribution network information. The distribution network information 1 is used to support thespeaker 201 to perform data interaction in the combined speaker. For the detailed description of the distribution network information 1, reference may be made to relevant content in the following embodiments, which will not be repeated here.

S511、手机100向音箱201发送加密信息1。S511. Themobile phone 100 sends encrypted information 1 to thespeaker 201.

例如,手机100可以根据音箱201的ID 1向音箱201发送加密信息1。或者,手机100可以广播包括上述加密信息1的WiFi消息。其中,上述秘钥1是音箱201随机生成的,只有手机100通过消息1得到上述秘钥1;其他设备无法获知该秘钥1。因此,即使其他设备接收到包括上述加密信息1的WiFi消息,也无法解密该加密信息1,进而无法得到上述配置信息1。For example, themobile phone 100 can send encrypted information 1 to thespeaker 201 according to the ID 1 of thespeaker 201. Alternatively, themobile phone 100 may broadcast a WiFi message including the above encrypted information 1 . Wherein, the above-mentioned secret key 1 is randomly generated by thespeaker 201, and only themobile phone 100 obtains the above-mentioned secret key 1 through the message 1; other devices cannot know the secret key 1. Therefore, even if other devices receive the WiFi message including the above-mentioned encrypted information 1, they cannot decrypt the encrypted information 1, and thus cannot obtain the above-mentioned configuration information 1.

S512、音箱201接收来自手机100的加密信息1,采用秘钥1解密加密信息1得到配置信息1。S512. Thespeaker 201 receives the encrypted information 1 from themobile phone 100, and uses the secret key 1 to decrypt the encrypted information 1 to obtain the configuration information 1.

S513、音箱201发出提示信息1。该提示信息1用于指示音箱201被配置为配置信息1所指示的角色1。S513. Thespeaker 201 sends a prompt message 1. The prompt information 1 is used to indicate that thesound box 201 is configured as the role 1 indicated by the configuration information 1 .

例如,音箱201可以发出图10A所示的提示信息1,如“左前置声道”1001。或者,音箱201可以显示上述角色1对应的光带,通过该光带发出提示信息1。例如,音箱201可以显示图10B所示的提示信息1003。又例如,上述提示信息1可以是语音信息。音箱201可以发出语音提示,如“音箱被配置为左前置声道”。又例如,上述提示信息1还可以为“已配置声道”、“声道已配置”或“角色已配置”的信息,本申请实施例对此不作限制。For example, thesound box 201 can send out the prompt information 1 shown in FIG. 10A , such as “left front sound channel” 1001 . Alternatively, thespeaker 201 may display a light strip corresponding to the character 1, and send out the prompt information 1 through the light strip. For example, thespeaker 201 may display theprompt information 1003 shown in FIG. 10B . For another example, the above prompt information 1 may be voice information. Thespeaker 201 can issue a voice prompt, such as "the speaker is configured as the left front channel". For another example, the above prompt information 1 may also be the information of "channel configured", "channel configured" or "role configured", which is not limited in this embodiment of the present application.

S514、音箱201使用配置信息1中的配网信息1,与参与组合的其他音箱交互。S514. Thespeaker 201 uses the distribution network information 1 in the configuration information 1 to interact with other speakers participating in the combination.

需要说明的是,上述配网信息可以有两种不同的实现方式。在不同的实现方式中,配网信息的具体内容不同,音箱201使用配网信息与参与组合的其他音箱交互方式不同。其中,S514的详细描述可以参考以下实施例中的相关内容,此处不予赘述。It should be noted that the foregoing network distribution information may be implemented in two different manners. In different implementation manners, the specific content of the distribution network information is different, and thespeaker 201 uses the distribution network information to interact with other speakers participating in the combination in different ways. Wherein, for the detailed description of S514, reference may be made to relevant content in the following embodiments, and details are not repeated here.

在一些实施例中,音箱201执行S508之后,可以继续使用弱天线接收来自手机100的加密信息1。在该实施例中,音箱202执行S509之后,可以继续使用弱天线接收来自手机100的信息(如加密信息2)。In some embodiments, after performing S508, thespeaker 201 may continue to use the weak antenna to receive the encrypted information 1 from themobile phone 100. In this embodiment, after performing S509, thespeaker 202 may continue to use the weak antenna to receive information from the mobile phone 100 (such as encrypted information 2).

在另一些实施例中,音箱(如音箱201和音箱202)在发送短距消息之后,可以由弱天线使用强天线。例如,如图5所示,音箱201在发送消息1之后,可以执行S508a,由弱天线使用强天线;音箱202在发送消息2之后,可以执行S509a,由弱天线使用强天线。音箱201可以使用强天线接收来自手机100的加密信息1。In some other embodiments, after the speakers (such asspeakers 201 and 202) send short-distance messages, they can use strong antennas instead of weak antennas. For example, as shown in FIG. 5 , after sending message 1,speaker 201 may execute S508a, using a weak antenna to use a strong antenna; after sending message 2,speaker 202 may execute S509a, using a weak antenna to use a strong antenna. Thespeaker 201 can receive encrypted information 1 from themobile phone 100 using a strong antenna.

例如,音箱在接收到手机100广播的NAN发布消息后,可以周期性的使用弱天线和强天线,直至接收到来自手机100的加密信息则不再使用弱天线。本申请实施例这里结合图11,介绍本申请实施例中音箱使用弱天线和强天线的原理。For example, after receiving the NAN release message broadcast by themobile phone 100, the speaker can periodically use the weak antenna and the strong antenna until it receives the encrypted information from themobile phone 100, and then no longer uses the weak antenna. In the embodiment of the present application, with reference to FIG. 11 , the principle of using a weak antenna and a strong antenna in the speaker in the embodiment of the present application is introduced.

如图11所示,音箱300订阅NAN服务后,如果接收到来自手机100的NAN发布消息,则可以使用弱天线,并使用弱天线广播消息a。该消息a中包括音箱300的ID和秘钥a。在预设时长T1之后,音箱300可以由弱天线切换为强天线,即使用强天线。在预设时长T2之后,音箱300可以由强天线切换为弱天线(即使用弱天线),并使用弱天线广播消息b。该消息b中包括音箱300的ID和秘钥b。在预设时长T1之后,音箱300可以由弱天线切换为强天线,即使用强天线。直至音箱300接收到来自手机100的加密信息,音箱300则不会再使用弱天线,即无需再使用弱天线广播短距消息。As shown in FIG. 11 , after the speaker 300 subscribes to the NAN service, if it receives a NAN release message from themobile phone 100 , it can use the weak antenna to broadcast message a. The message a includes the ID of the speaker 300 and the secret key a. After a preset time period T1, the speaker 300 can be switched from a weak antenna to a strong antenna, that is, a strong antenna is used. After a preset time period T2, the speaker 300 can switch from a strong antenna to a weak antenna (that is, use a weak antenna), and use the weak antenna to broadcast message b. The message b includes the ID of the speaker 300 and the secret key b. After a preset time period T1, the speaker 300 can be switched from a weak antenna to a strong antenna, that is, a strong antenna is used. Until the speaker 300 receives the encrypted information from themobile phone 100, the speaker 300 will no longer use the weak antenna, that is, there is no need to use the weak antenna to broadcast short-distance messages.

需要说明的是,上述预设时长T1与预设时长T2可以相同,也可以不同。音箱300在预设时长T1内使用弱天线可以广播一个或多个短距消息。在同一个预设时长T1内,音箱300所广播的短距消息中包括的秘钥可以相同。但是,不同预设时长T1内,音箱300所广播的短距消息中包括的秘钥不同。例如,上述秘钥a和秘钥b都是音箱300随机生成的秘钥,秘钥a和秘钥b不同。It should be noted that the preset time length T1 and the preset time length T2 may be the same or different. The speaker 300 can use a weak antenna to broadcast one or more short-distance messages within a preset time period T1. Within the same preset time period T1, the secret keys included in the short-distance messages broadcast by the speaker 300 may be the same. However, the secret key included in the short-distance message broadcast by the speaker 300 is different within different preset time periods T1. For example, the aforementioned secret key a and secret key b are both secret keys randomly generated by the speaker 300 , and secret key a and secret key b are different.

图11所示的音箱300可以是图8所示的音箱201、音箱202、音箱203、音箱204和音箱205中的任一音箱。也就是说,音箱201、音箱202、音箱203、音箱204和音箱205都可以按照图11所示的方式,进行弱天线和强天线的切换,直至接收到来自手机100的加密信息。The speaker 300 shown in FIG. 11 may be any one of thespeaker 201 , thespeaker 202 , thespeaker 203 , thespeaker 204 and thespeaker 205 shown in FIG. 8 . That is to say, thespeaker 201, thespeaker 202, thespeaker 203, thespeaker 204 and thespeaker 205 can switch between the weak antenna and the strong antenna in the manner shown in FIG. 11 until the encrypted information from themobile phone 100 is received.

例如,如图5所示,音箱202执行S507使用弱天线,并执行S509使用弱天线广播短距消息2之后,由于手机100并未靠近音箱202;因此,手机100并不能接收到音箱202发送的短距消息2,从而不能向音箱202回复加密信息。S509a之后,音箱202则可以执行S515-S516。For example, as shown in Figure 5, after thespeaker 202 executes S507 to use a weak antenna, and executes S509 to use a weak antenna to broadcast the short-distance message 2, since themobile phone 100 is not close to thespeaker 202; therefore, themobile phone 100 cannot receive the message sent by thespeaker 202. Short-distance message 2, so that the encrypted message cannot be replied to thespeaker 202. After S509a, thespeaker 202 can execute S515-S516.

S515、音箱202使用弱天线。S515, thespeaker 202 uses a weak antenna.

其中,S509a和S515是可选的。Among them, S509a and S515 are optional.

S516、音箱202使用弱天线广播消息3。该消息3中包括音箱202的ID 2和秘钥3。S516. Thespeaker 202 broadcasts the message 3 using the weak antenna. The message 3 includes the ID 2 and the secret key 3 of thespeaker 202.

其中,音箱202的ID 2用于标识音箱202。上述秘钥3可以是音箱202随机生成的秘钥。上述秘钥3与秘钥2不同。Wherein, the ID 2 of thespeaker 202 is used to identify thespeaker 202. The aforementioned secret key 3 may be a secret key randomly generated by thespeaker 202 . The above key 3 is different from the key 2.

可以理解,音箱202使用弱天线进行无线通信的有效传输距离为第一距离(如0.3米)。只有当其他设备(如手机100)与音箱之间的距离小于第一距离,才可以接收到音箱202发送的短距消息。而其他与音箱202之间距离大于第一距离的设备,则不能接收到音箱202发送的短距消息。这样的超短距离通信,可以保证音箱发送的短距消息不被其他设备接收到,可以避免由于其他设备获取到音箱的秘钥与音箱交互从而操作音箱,可以保证手机100与音箱202之间数据传输的安全性。It can be understood that the effective transmission distance of thespeaker 202 for wireless communication using a weak antenna is the first distance (eg, 0.3 meters). Only when the distance between other devices (such as the mobile phone 100 ) and the speaker is less than the first distance, can the short-distance message sent by thespeaker 202 be received. However, other devices whose distance from thespeaker 202 is greater than the first distance cannot receive the short-distance message sent by thespeaker 202 . Such ultra-short-distance communication can ensure that the short-distance message sent by the speaker is not received by other devices, and can avoid operating the speaker due to other devices obtaining the key of the speaker and interacting with the speaker, and can ensure that the data between themobile phone 100 and thespeaker 202 Transmission Security.

在一些实施例中,手机100向音箱201发送加密信息1之后,便可以对参与组合的另一个音箱(如音箱202)进行配置。例如,如图5所示,在S511之后,手机100可以执行S517-S519对音箱202进行配置。In some embodiments, after themobile phone 100 sends the encrypted information 1 to thespeaker 201, another speaker participating in the combination (for example, the speaker 202) can be configured. For example, as shown in FIG. 5 , after S511 , themobile phone 100 may execute S517-S519 to configure thespeaker 202 .

S517、手机100显示第四界面。该第四界面用于提示用户将手机100靠近角色2的音箱,使手机100与角色2的音箱之间的距离在第一距离内。S517. Themobile phone 100 displays a fourth interface. The fourth interface is used to prompt the user to bring themobile phone 100 close to the speaker of the character 2 so that the distance between themobile phone 100 and the speaker of the character 2 is within the first distance.

例如,角色2是第二角色。手机100可以显示图12所示的第四界面1201。该第四界面1201用于提示用户将手机100靠近角色2(如右前置声道)的音箱。例如,该第四界面1201包括第三提示信息1202,如“请将手机靠近角色为右前置声道的音箱”。其中,角色2可以为上述N个音箱中任一个音箱的角色。例如,在图12所示的第四界面1201,角色2为右前置声道,该角色2的音箱是图8所示的音箱202。For example, role 2 is the second role. Themobile phone 100 may display afourth interface 1201 shown in FIG. 12 . Thefourth interface 1201 is used to prompt the user to move themobile phone 100 close to the speaker of character 2 (such as the right front channel). For example, thefourth interface 1201 includes thirdprompt information 1202, such as "please move the mobile phone close to the speaker whose role is the right front channel". Wherein, the role 2 may be the role of any one of the above N speakers. For example, in thefourth interface 1201 shown in FIG. 12 , character 2 is the right front channel, and the speaker of character 2 is thespeaker 202 shown in FIG. 8 .

在S517之后,用户将手机100靠近角色2的音箱(如音箱202)。用户将手机100靠近角色2的音箱202,使手机100与音箱202之间的距离在第一距离内之后,手机100便可以接收到音箱202发送的消息3。如图5所示,在S516和S517之后,本申请实施例的方法还可以包括S518。After S517, the user moves themobile phone 100 close to the speaker of the character 2 (such as the speaker 202). After the user brings themobile phone 100 close to thespeaker 202 of the character 2 so that the distance between themobile phone 100 and thespeaker 202 is within a first distance, themobile phone 100 can receive the message 3 sent by thespeaker 202 . As shown in FIG. 5, after S516 and S517, the method in this embodiment of the present application may further include S518.

S518、手机100接收到消息3,采用秘钥2加密配置信息2得到加密信息2。S518. Themobile phone 100 receives the message 3, and encrypts the configuration information 2 with the secret key 2 to obtain the encrypted information 2.

其中,该加密信息2是第二加密信息。该消息3是第二消息或者第三消息。短距3中包括音箱202的ID 2和秘钥3。音箱202是第二音箱。ID 2是第二音箱的标识。秘钥3是第二秘钥或者第三秘钥。手机100接收到短距3之后,可以确定ID 2是上述角色2的音箱的标识。手机100可以保存表3所示的角色与ID的对应关系。Wherein, the encrypted information 2 is the second encrypted information. This message 3 is either the second message or the third message. The short distance 3 includes the ID 2 and the secret key 3 of thespeaker 202.Speaker 202 is a second speaker. ID 2 is the identification of the second speaker. Key 3 is the second key or the third key. After themobile phone 100 receives the short distance 3, it can be determined that the ID 2 is the identification of the sound box of the above-mentioned role 2. Themobile phone 100 may store the correspondence between roles and IDs shown in Table 3.

表3table 3

角色RoleIDID角色1character 1ID 1ID 1角色2character 2ID 2ID 2

可以理解,根据表3所示的角色与ID的对应关系,手机100可以确定角色2对应的音箱的ID。It can be understood that, according to the correspondence between roles and IDs shown in Table 3, themobile phone 100 can determine the ID of the speaker corresponding to the role 2 .

其中,上述配置信息2还可以包括角色指示信息2,该角色指示信息2用于指示音箱202被配置为角色2(如右前置声道)。配置信息2是第二配置信息。角色指示信息2是第二指示信息。Wherein, the above configuration information 2 may also include role indication information 2, the role indication information 2 is used to indicate that thespeaker 202 is configured as a role 2 (such as the right front channel). Configuration information 2 is second configuration information. The role indication information 2 is second indication information.

上述配置信息2可以包括配网信息2。该配网信息2是第二配网信息。该配网信息2用于支持音箱201进行组合音箱中的数据交互。其中,配网信息2详细描述可以参考以下实施例中的相关内容,此处不予赘述。The above configuration information 2 may include network configuration information 2 . The distribution network information 2 is the second distribution network information. The distribution network information 2 is used to support thespeaker 201 to perform data interaction in the combined speaker. For the detailed description of the distribution network information 2, reference may be made to relevant content in the following embodiments, which will not be repeated here.

S519、手机100向音箱202发送加密信息2。S519. Themobile phone 100 sends the encrypted information 2 to thespeaker 202.

例如,手机100可以根据音箱202的ID 2向音箱202发送加密信息2。或者,手机100可以广播包括上述加密信息2的WiFi消息。其中,上述秘钥3是音箱202随机生成的,只有手机100通过短距3得到上述秘钥3;其他设备无法获知该秘钥3。因此,即使其他设备接收到包括上述加密信息2的WiFi消息,也无法解密该加密信息2,进而无法得到上述配置信息2。For example, themobile phone 100 can send encrypted information 2 to thespeaker 202 according to the ID 2 of thespeaker 202. Alternatively, themobile phone 100 may broadcast a WiFi message including the above-mentioned encrypted information 2 . Wherein, the above-mentioned secret key 3 is randomly generated by thespeaker 202, and only themobile phone 100 obtains the above-mentioned secret key 3 through the short distance 3; other devices cannot obtain the secret key 3. Therefore, even if other devices receive the WiFi message including the above-mentioned encrypted information 2, they cannot decrypt the encrypted information 2, and thus cannot obtain the above-mentioned configuration information 2.

S520、音箱202接收来自手机100的加密信息2,采用秘钥3解密加密信息2得到配置信息2。S520. Thespeaker 202 receives the encrypted information 2 from themobile phone 100, and uses the secret key 3 to decrypt the encrypted information 2 to obtain the configuration information 2.

S521、音箱202发出提示信息2。该提示信息2用于指示音箱202被配置为配置信息2所指示的角色2。S521. Thespeaker 202 sends a prompt message 2. The prompt information 2 is used to indicate that thesound box 202 is configured as the role 2 indicated by the configuration information 2 .

例如,音箱202可以显示上述角色2对应的光带,通过该光带发出提示信息2。例如,音箱201可以显示图13所示的提示信息1301。For example, thespeaker 202 may display a light strip corresponding to the above character 2, and send out the prompt information 2 through the light strip. For example, thespeaker 201 may display theprompt information 1301 shown in FIG. 13 .

又例如,上述提示信息2可以是语音信息。音箱202可以发出语音提示,如“音箱被配置为右前置声道”。For another example, the prompt information 2 may be voice information. Thespeaker 202 can issue a voice prompt, such as "the speaker is configured as the right front channel".

S522、音箱202使用配置信息2中的配网信息2,与参与组合的其他音箱交互。S522. Thespeaker 202 uses the distribution network information 2 in the configuration information 2 to interact with other speakers participating in the combination.

需要说明的是,上述配网信息可以有两种不同的实现方式。在不同的实现方式中,配网信息的具体内容不同,音箱202使用配网信息与参与组合的其他音箱交互方式不同。其中,S522的详细描述可以参考以下实施例中的相关内容,此处不予赘述。It should be noted that the foregoing network distribution information may be implemented in two different manners. In different implementation manners, the specific content of the distribution network information is different, and thespeaker 202 uses the distribution network information to interact with other speakers participating in the combination in different ways. Wherein, for the detailed description of S522, reference may be made to relevant content in the following embodiments, and details are not repeated here.

如图5所示,在S518之后,手机100可以执行S523,配置音箱203、音箱204和音箱205。其中,S523中配置音箱203、音箱204和音箱205的具体方法,可以参考上述实施例中,配置音箱201和音箱202的方法,此处不予赘述。As shown in FIG. 5 , after S518 , themobile phone 100 may execute S523 to configure thespeakers 203 , 204 and 205 . Wherein, for the specific method of configuring thespeaker 203, thespeaker 204, and thespeaker 205 in S523, reference may be made to the method for configuring thespeaker 201 and thespeaker 202 in the above embodiment, and details are not described here.

示例性的,假设音箱203的ID为ID 3,音箱204的ID为ID 4,音箱205的ID为ID 5。手机100可以保存表4所示的角色与ID的对应关系。Exemplarily, suppose the ID of thespeaker 203 is ID 3, the ID of thespeaker 204 is ID 4, and the ID of thespeaker 205 is ID 5. Themobile phone 100 may store the correspondence between roles and IDs shown in Table 4.

表4Table 4

角色RoleIDID角色1(如左前置声道)Role 1 (eg left front channel)ID 1ID 1角色2(如右前置声道)Role 2 (eg right front channel)ID 2ID 2角色3(如中置声道)Role 3 (eg center channel)ID 3ID 3角色4(如左环绕声道)Role 4 (eg left surround channel)ID 4ID 4角色5(如右环绕声道)Role 5 (as right surround channel)ID 5ID 5

本申请实施例中,手机100可以通过界面(如第二界面)向用户指示N个音箱的摆放布局,使得用户可以按照第二界面指示的摆放布局摆放N个音箱。其中,音箱的摆放位置可以决定该音箱在组合音箱中的角色。音箱的摆放位置不同,该音箱在参与组合的N个音箱中的角色则不同。手机100可以按照N个音箱的摆放位置,为各个音箱分配角色。这样,可以提升组合音箱的播放效果。In the embodiment of the present application, themobile phone 100 can indicate to the user the layout of the N speakers through an interface (eg, the second interface), so that the user can place the N speakers according to the layout indicated by the second interface. Among them, the placement of the speaker can determine the role of the speaker in the combined speaker. Depending on the placement position of the speaker, the role of the speaker in the N speakers participating in the combination is different. Themobile phone 100 can assign a role to each speaker according to the placement positions of the N speakers. In this way, the playback effect of the combination speaker can be improved.

并且,手机100可以在界面上标注位于不同位置的音箱的角色。然后,手机100可以通过界面(如第三界面或第四界面)依次指示用户将手机100靠近每个角色的音箱。可以理解,当在用户将N个音箱按照手机100的指示摆放后,该N个音箱的摆放布局与手机100上参与组合的N个音箱的摆放布局相同。因此,当手机100指示用户将手机100靠近一个角色的音箱时,手机100可以根据该角色的音箱的图标在界面上的位置,准确的找到该角色对应的音箱。In addition, themobile phone 100 may mark the roles of speakers located in different positions on the interface. Then, themobile phone 100 may sequentially instruct the user to move themobile phone 100 close to the sound box of each character through an interface (such as the third interface or the fourth interface). It can be understood that after the user arranges the N speakers according to the instructions of themobile phone 100 , the layout of the N speakers is the same as that of the N speakers participating in the combination on themobile phone 100 . Therefore, when themobile phone 100 instructs the user to approach themobile phone 100 to a character's speaker, themobile phone 100 can accurately find the corresponding character's speaker according to the position of the character's speaker icon on the interface.

综上所述,本申请实施例的方法中,手机100可以以直观的方式支持用户设置参与组合的各个音箱的角色。这样,便可以解决由于用户难以区分各个音箱而导致角色设置错误的问题,可以提升角色设置的准确率。并且,准确设置参与组合的各个音箱的角色,可以提升组合音箱的音频播放效果。To sum up, in the method of the embodiment of the present application, themobile phone 100 can support the user to set the role of each speaker participating in the combination in an intuitive manner. In this way, the problem of incorrect role setting due to the user's difficulty in distinguishing each speaker can be solved, and the accuracy of role setting can be improved. Moreover, accurately setting the roles of each speaker participating in the combination can improve the audio playback effect of the combination speaker.

进一步的,音箱(如音箱201)使用弱天线广播包括该音箱的ID和秘钥的短距消息。这样的超短距离通信,可以保证音箱发送的短距消息不被其他设备接收到,可以避免由于其他设备获取到音箱的秘钥与音箱交互从而操作音箱,可以保证手机100与音箱之间数据传输的安全性。并且,通过手机100靠近(如触碰)音箱的方式实现方式短距消息的传输,便于用户操作,可以提升用户的操作体验。Further, the speaker (such as the speaker 201) uses a weak antenna to broadcast a short-distance message including the speaker's ID and secret key. Such ultra-short-distance communication can ensure that the short-distance message sent by the speaker is not received by other devices, and can avoid operating the speaker due to other devices obtaining the key of the speaker and interacting with the speaker, and can ensure data transmission between themobile phone 100 and the speaker security. Moreover, the transmission of the short-distance message is realized by approaching (such as touching) the speaker with themobile phone 100, which is convenient for the user to operate and can improve the user's operating experience.

在另一些实施例中,手机100可以在确认音箱201配置成功后,才可以对参与组合的另一个音箱(如音箱202)进行配置。例如,如图14所示,在S517-S518之前,本申请实施例的方法还可以包括S1401-S1402;在S523之前,本申请实施例的方法还可以包括S1403-S1404。In some other embodiments, themobile phone 100 may configure another speaker (such as the speaker 202 ) participating in the combination after confirming that the configuration of thespeaker 201 is successful. For example, as shown in FIG. 14 , before S517-S518, the method of the embodiment of the present application may further include S1401-S1402; before S523, the method of the embodiment of the present application may further include S1403-S1404.

S1401、音箱201向手机100发送确认消息1。S1401. Thespeaker 201 sends a confirmation message 1 to themobile phone 100.

其中,该确认消息1是第一确认消息。该确认消息1用于指示音箱201配置成功。在一种实现方式中,音箱201可以在接收到来自手机100的加密信息1之后,执行S1401向手机100发送确认消息1。例如,如图14所示,音箱201可以在执行S513发出提示信息1之后,执行S1101向手机100发送确认消息1。Wherein, the confirmation message 1 is the first confirmation message. The confirmation message 1 is used to indicate that thespeaker 201 is configured successfully. In an implementation manner, after receiving the encrypted information 1 from themobile phone 100 , thespeaker 201 may execute S1401 to send the confirmation message 1 to themobile phone 100 . For example, as shown in FIG. 14 , thespeaker 201 may execute S1101 to send a confirmation message 1 to themobile phone 100 after executing S513 to send a prompt message 1 .

在另一种实现方式中,音箱201发出提示信息1之后,可以接收用户对音箱201的操作c。该操作c用于确认音箱配置完成。例如,该操作c可以是用户对图10A所示的“确定”按钮1002或图10B所示的“确定”按钮1004的点击操作。响应于用户对音箱201的操作c,音箱201可以向手机100发送确认消息1。In another implementation manner, after thespeaker 201 sends out the prompt information 1, it may receive the user's operation c on thespeaker 201 . This operation c is used to confirm that the speaker configuration is complete. For example, the operation c may be the user's click operation on the "OK"button 1002 shown in FIG. 10A or the "OK"button 1004 shown in FIG. 10B . In response to the user's operation c on thespeaker 201 , thespeaker 201 may send a confirmation message 1 to themobile phone 100 .

S1402、手机100接收确认消息1。S1402. Themobile phone 100 receives the confirmation message 1.

在该实施例中,手机100接收到确认消息1后,可以确定音箱201配置成功。此时,手机100则可以执行S517-S518。也就是说,响应于手机100接收到该确认消息1,手机100可以执行S517-S518。In this embodiment, after receiving the confirmation message 1, themobile phone 100 may determine that the configuration of thespeaker 201 is successful. At this time, themobile phone 100 can execute S517-S518. That is to say, in response to themobile phone 100 receiving the confirmation message 1, themobile phone 100 can execute S517-S518.

S1403、音箱202向手机100发送确认消息2。S1403. Thespeaker 202 sends a confirmation message 2 to themobile phone 100.

其中,该确认消息2是第二确认消息。该确认消息2用于指示音箱202配置成功。在一种实现方式中,音箱202可以在接收到来自手机100的加密信息2之后,执行S1403向手机100发送确认消息2。例如,如图14所示,音箱202可以在执行S521发出提示信息2之后,执行S1403向手机100发送确认消息2。Wherein, the confirmation message 2 is the second confirmation message. The confirmation message 2 is used to indicate that thespeaker 202 is configured successfully. In an implementation manner, after receiving the encrypted information 2 from themobile phone 100 , thespeaker 202 may execute S1403 to send the confirmation message 2 to themobile phone 100 . For example, as shown in FIG. 14 , thespeaker 202 may execute S1403 to send a confirmation message 2 to themobile phone 100 after executing S521 to send the prompt message 2 .

在另一种实现方式中,音箱202发出提示信息2之后,可以接收用户对音箱202的操作c。该操作c用于确认音箱配置完成。例如,该操作c可以是用户对图13所示的“确定”按钮1302的点击操作。响应于用户对音箱202的操作c,音箱202可以向手机100发送确认消息2。In another implementation manner, after thespeaker 202 sends out the prompt information 2, it may receive the user's operation c on thespeaker 202 . This operation c is used to confirm that the speaker configuration is completed. For example, the operation c may be the user's click operation on the "OK"button 1302 shown in FIG. 13 . In response to the user's operation c on thespeaker 202 , thespeaker 202 may send a confirmation message 2 to themobile phone 100 .

S1404、手机100接收确认消息2。S1404. Themobile phone 100 receives the confirmation message 2.

在该实施例中,手机100接收到确认消息2后,可以确定音箱202配置成功。此时,手机100则可以执行S523。也就是说,响应于手机100接收到该确认消息2,手机100可以执行S523。In this embodiment, after receiving the confirmation message 2, themobile phone 100 can determine that the configuration of thespeaker 202 is successful. At this time, themobile phone 100 may execute S523. That is to say, in response to themobile phone 100 receiving the confirmation message 2, themobile phone 100 can execute S523.

可以理解,如果用户对音箱输入操作c,则表示该用户确定该音箱配置正确。增加用户确认的流程,可以进一步提升组合音箱中各个音箱的角色配置的准确性。It can be understood that if the user inputs operation c on the speaker, it means that the user determines that the configuration of the speaker is correct. Adding a user confirmation process can further improve the accuracy of the role configuration of each speaker in the combination speaker.

本申请实施例这里介绍上述配置信息中的配网信息,如配置信息1和配置信息2。In this embodiment of the present application, network distribution information in the above configuration information, such as configuration information 1 and configuration information 2, is introduced here.

在第一种应用场景中,上述N个音箱以主音箱作为接入点(access point,AP)的AP模式构成组合音箱。例如,图15所示的音箱201是N个音箱中的主音箱,其他音箱作为从音箱。In the first application scenario, the above N speakers form a combined speaker in an AP mode in which the main speaker is used as an access point (AP). For example, thespeaker 201 shown in FIG. 15 is the master speaker among the N speakers, and the other speakers are slave speakers.

在第一种应用场景下,手机100向音箱201(主音箱)发送的配置信息1(即第一配置信息)可以包括:角色指示信息1(即第一指示信息)、身份指示信息1(即第二身份信息)和配网信息1(即第一配网信息)。In the first application scenario, the configuration information 1 (that is, the first configuration information) sent by themobile phone 100 to the speaker 201 (main speaker) may include: role indication information 1 (that is, the first indication information), identity indication information 1 (that is, second identity information) and distribution network information 1 (namely the first distribution network information).

其中,上述角色指示信息1用于指示音箱201被配置为角色1(如左前置声道)。上述身份指示信息1用于指示音箱201为主音箱。Wherein, the above-mentioned role indication information 1 is used to indicate that thespeaker 201 is configured as role 1 (eg left front channel). The above identity indication information 1 is used to indicate that thespeaker 201 is the main speaker.

上述配网信息1可以包括:主音箱(如音箱201)作为AP的第一SSID和第一接入密码。在一种实现方式中,该第一SSID和第一接入密码可以是手机100随机生成的。在另一种实现方式中,该第一SSID和第一接入密码可以是音箱201随机生成或者预先配置的。在这种实现方式中,手机100可以接收来自音箱201的第一SSID和第一接入密码。例如,该第一SSID和第一接入密码可以携带在上述短距消息1中。The above distribution network information 1 may include: the first SSID and the first access password of the main speaker (such as the speaker 201 ) as the AP. In an implementation manner, the first SSID and the first access password may be randomly generated by themobile phone 100 . In another implementation manner, the first SSID and the first access password may be randomly generated or pre-configured by thespeaker 201 . In this implementation manner, themobile phone 100 can receive the first SSID and the first access password from thespeaker 201 . For example, the first SSID and the first access password may be carried in the above-mentioned short-distance message 1 .

在这种应用场景中,音箱201接收到上述配置信息1之后,可以根据该配置信息1中的身份指示信息1确定该音箱201是主音箱。然后,音箱201便可以作为接入点产生第一无线局域网。该第一无线局域网的SSID为上述第一SSID,该第一无线局域网的接入密码为上述第一接入密码。In this application scenario, after receiving the configuration information 1, thespeaker 201 may determine that thespeaker 201 is the master speaker according to the identity indication information 1 in the configuration information 1. Then, thespeaker 201 can be used as an access point to generate the first wireless local area network. The SSID of the first wireless local area network is the above-mentioned first SSID, and the access password of the first wireless local area network is the above-mentioned first access password.

在第一种应用场景下,手机100向音箱202(从音箱)发送的配置信息2(即第二配置信息)可以包括:角色指示信息2(即第二指示信息)、身份指示信息2(即第一身份信息)和配网信息2(即第二配网信息)。In the first application scenario, the configuration information 2 (that is, the second configuration information) sent by themobile phone 100 to the speaker 202 (from the speaker) may include: role indication information 2 (that is, the second indication information), identity indication information 2 (that is, first identity information) and distribution network information 2 (that is, second distribution network information).

其中,上述角色指示信息2用于指示音箱202被配置为角色2(如右前置声道)。上述身份指示信息2用于指示音箱202为从音箱。上述配网信息2可以包括:从音箱(如音箱202)待接入的AP的第一SSID和第一接入密码。Wherein, the above role indication information 2 is used to indicate that thesound box 202 is configured as role 2 (such as the right front channel). The above identity indication information 2 is used to indicate that thespeaker 202 is a slave speaker. The above distribution network information 2 may include: the first SSID and the first access password of the AP to be accessed from the speaker (such as the speaker 202 ).

在这种应用场景中,音箱202接收到上述配置信息2之后,可以根据该配置信息2中的身份指示信息2确定该音箱202是从音箱。然后,音箱202便可以根据第一SSID和第一接入密码接入上述第一无线局域网。In this application scenario, after thespeaker 202 receives the configuration information 2, it can be determined according to the identity indication information 2 in the configuration information 2 that thespeaker 202 is a slave speaker. Then, thespeaker 202 can access the above-mentioned first wireless local area network according to the first SSID and the first access password.

需要说明的是,在从音箱(如音箱202、音箱203、音箱204或音箱205)均接入音箱201作为接入点产生的第一无线局域网之后,便可以完成上述组合音箱的构建。It should be noted that after all the speakers (such as thespeaker 202, thespeaker 203, thespeaker 204 or the speaker 205) are connected to the first wireless local area network generated by thespeaker 201 as an access point, the construction of the above combination speaker can be completed.

在第一种应用场景中,主音箱(如音箱201)还可以接入网络以实现音箱与云设备的交互。手机100还可以向主音箱(如音箱201)发送图15所示的路由器1500的SSID(记为第二SSID)和接入密码(记为第二接入密码)。In the first application scenario, the main speaker (such as the speaker 201) can also be connected to the network to realize the interaction between the speaker and the cloud device. Themobile phone 100 can also send the SSID (marked as the second SSID) and access password (marked as the second access password) of therouter 1500 shown in FIG. 15 to the main speaker (such as the speaker 201).

在一种实现方式中,上述配网信息1还可以包括第二SSID和第二接入密码。音箱201接收到上述配置信息1之后,可以根据该配置信息1中的身份指示信息1确定该音箱201是主音箱。然后,音箱201便可以根据第二SSID和第二接入密码接入路由器1500提供的第二无线局域网。In an implementation manner, the network configuration information 1 may further include a second SSID and a second access password. After receiving the configuration information 1, thespeaker 201 may determine that thespeaker 201 is the main speaker according to the identity indication information 1 in the configuration information 1. Then, thespeaker 201 can access the second wireless local area network provided by therouter 1500 according to the second SSID and the second access password.

在另一种实现方式中,上述配网信息1不包括第二SSID和第二接入密码。手机100可以采用上述秘钥1加密该第二SSID和第二接入密码,得到加密信息4;然后,向音箱201发送该加密信息4。音箱201收到该加密信息4之后,可以采用秘钥1解密该加密信息4,得到第二SSID和第二接入密码;然后,根据第二SSID和第二接入密码接入路由器1500提供的第二无线局域网。In another implementation manner, the network configuration information 1 does not include the second SSID and the second access password. Themobile phone 100 may encrypt the second SSID and the second access password by using the above-mentioned secret key 1 to obtain encrypted information 4 ; then, send the encrypted information 4 to thespeaker 201 . After thespeaker 201 receives the encrypted information 4, it can use the secret key 1 to decrypt the encrypted information 4 to obtain the second SSID and the second access password; then, according to the second SSID and the second access password, access the Second WLAN.

如图15所示,音箱201作为主音箱可以接入路由器1500提供的第二无线局域网,通过路由器1500与云设备交互。如图15所示,其他音箱(如音箱202、音箱203、音箱204或音箱205)作为从音箱可以接入音箱201提供的第一无线局域网。As shown in FIG. 15 , thespeaker 201 as the main speaker can be connected to the second wireless local area network provided by therouter 1500 , and interact with the cloud device through therouter 1500 . As shown in FIG. 15 , other speakers (such asspeaker 202 ,speaker 203 ,speaker 204 or speaker 205 ) can be connected to the first wireless local area network provided byspeaker 201 as slave speakers.

在第二种应用场景中,上述N个音箱以非AP模式构成组合音箱。例如,图16所示的音箱201是N个音箱中的主音箱,其他音箱作为从音箱。In the second application scenario, the above N speakers form a composite speaker in a non-AP mode. For example, thespeaker 201 shown in FIG. 16 is the master speaker among the N speakers, and the other speakers are slave speakers.

在第二种应用场景下,手机100向音箱201(主音箱)发送的配置信息1可以包括:角色指示信息1、身份指示信息1和配网信息1。In the second application scenario, the configuration information 1 sent by themobile phone 100 to the speaker 201 (main speaker) may include: role indication information 1 , identity indication information 1 and distribution network information 1 .

其中,上述角色指示信息1用于指示音箱201被配置为角色1(如左前置声道)。上述身份指示信息1用于指示音箱201为主音箱。上述配网信息1可以包括:路由器1500的SSID(记为第二SSID)和接入密码(记为第二接入密码)。音箱201接收到上述配置信息1之后,可以根据该配置信息1中的身份指示信息1确定该音箱201是主音箱。音箱201根据第二SSID和第二接入密码接入上述第二无线局域网。Wherein, the above-mentioned role indication information 1 is used to indicate that thespeaker 201 is configured as role 1 (eg left front channel). The above identity indication information 1 is used to indicate that thespeaker 201 is the main speaker. The above-mentioned network configuration information 1 may include: the SSID of the router 1500 (referred to as the second SSID) and the access password (referred to as the second access password). After receiving the configuration information 1, thespeaker 201 may determine that thespeaker 201 is the main speaker according to the identity indication information 1 in the configuration information 1. Thespeaker 201 accesses the above-mentioned second wireless local area network according to the second SSID and the second access password.

在第二种应用场景下,手机100向音箱202(从音箱)发送的配置信息2可以包括:角色指示信息2、身份指示信息2和配网信息2。In the second application scenario, the configuration information 2 sent by themobile phone 100 to the speaker 202 (slave speaker) may include: role indication information 2 , identity indication information 2 and distribution network information 2 .

其中,上述角色指示信息2用于指示音箱202被配置为角色2(如右前置声道)。上述身份指示信息2用于指示音箱202为从音箱。上述配网信息2可以包括:第二SSID和第二接入密码。音箱202接收到上述配置信息2之后,可以根据该配置信息2中的身份指示信息2确定该音箱202是从音箱。然后,音箱202便可以根据第二SSID和第二接入密码接入上述第二无线局域网。Wherein, the above role indication information 2 is used to indicate that thesound box 202 is configured as role 2 (such as the right front channel). The above identity indication information 2 is used to indicate that thespeaker 202 is a slave speaker. The above-mentioned network configuration information 2 may include: a second SSID and a second access password. After thespeaker 202 receives the configuration information 2, it can be determined according to the identity indication information 2 in the configuration information 2 that thespeaker 202 is a slave speaker. Then, thespeaker 202 can access the above-mentioned second wireless local area network according to the second SSID and the second access password.

可以理解,在主音箱(如音箱201)和从音箱(如音箱202、音箱203、音箱204或音箱205)均接入路由器提供的第二无线局域网之后,便可以完成上述组合音箱的构建。例如,如图16所示,音箱201作为主音箱,音箱202、音箱203、音箱204或音箱205作为从音箱可以接入路由器1500提供的第二无线局域网。It can be understood that after the main speaker (such as speaker 201) and the slave speakers (such asspeaker 202,speaker 203,speaker 204 or speaker 205) are connected to the second wireless local area network provided by the router, the construction of the above combined speaker can be completed. For example, as shown in FIG. 16 ,speaker 201 serves as a master speaker, andspeaker 202 ,speaker 203 ,speaker 204 , orspeaker 205 serves as slave speakers to access the second wireless local area network provided byrouter 1500 .

需要说明的是,在第二种应用场景中,主音箱(如音箱201)与从音箱通过路由器1500进行数据传输。主音箱还可以通过路由器1500与云设备的交互。It should be noted that, in the second application scenario, data transmission is performed between the master speaker (such as the speaker 201 ) and the slave speaker through therouter 1500 . The main speaker can also interact with the cloud device through therouter 1500 .

在一些实施例中,上述N个音箱以AP模式或者非AP模式构成组合音箱是在音箱出厂前便预先配置好的。上述第一APP中也预先配置了手机100需要向音箱发送的配置信息的内容。In some embodiments, the combination of the above N speakers in AP mode or non-AP mode is pre-configured before the speakers leave the factory. The content of the configuration information that themobile phone 100 needs to send to the speaker is also pre-configured in the above-mentioned first APP.

在另一种实施例中,可以由用户选择上述N个音箱以AP模式或者非AP模式构成组合音箱。In another embodiment, the user may select the above N speakers to form a combined speaker in AP mode or non-AP mode.

在该实施例的一种实现方式中,响应于用户对第一界面的操作a,手机100可以显示第五界面。该第五界面用于提示用户选择上述N个音箱构成组合音箱的模式。例如,该N个音箱构成组合音箱的模式可以包括AP模式和非AP模式。In an implementation manner of this embodiment, in response to the user's operation a on the first interface, themobile phone 100 may display the fifth interface. The fifth interface is used to prompt the user to select a mode in which the above N speakers form a combination speaker. For example, the modes in which the N speakers form a combined speaker may include an AP mode and a non-AP mode.

例如,响应于用户对图7A所示的“立体声组合音箱”选项702或“环绕声组合音箱”选项703的点击操作(如单击操作),手机100可以显示图17所示的第五界面1701。该第五界面1701包括“AP模式”选项1702和“非AP模式”选项1703。该第五界面1701还包括用于介绍上述AP模式和非AP模式的提示信息,如提示信息“在AP模式,主音箱作为热点,从音箱接入主音箱提供的无线局域网”1704和提示信息“在非AP模式,主音箱和从音箱均接入路由器提供的无线局域网”1705。For example, in response to the user's click operation (such as a click operation) on the "stereo combination speaker"option 702 or the "surround sound combination speaker"option 703 shown in FIG. 7A, themobile phone 100 may display thefifth interface 1701 shown in FIG. . Thefifth interface 1701 includes an "AP mode"option 1702 and a "non-AP mode"option 1703 . Thefifth interface 1701 also includes prompt information for introducing the aforementioned AP mode and non-AP mode, such as the prompt information "In AP mode, the main speaker acts as a hotspot, and the slave speaker is connected to the wireless LAN provided by the main speaker" 1704 and the prompt information " In non-AP mode, both the main speaker and the slave speakers are connected to the wireless LAN "1705" provided by the router.

响应于用户在第五界面对AP模式的选择操作,如用户对图17所示的“AP模式”选项1702的点击操作,手机100可以显示第二界面。然后,手机100在执行S510时,则可以采用秘钥1加密上述第一种应用场景中所述的配置信息1得到加密信息1。手机100在执行S518时,则可以采用秘钥3加密上述第一种应用场景中所述的配置信息2得到加密信息2。并且,音箱(如音箱201或音箱202)也可以按照上述第一种场景中所述的方式,与参与组合的其他音箱交互。In response to the user's selection operation of the AP mode on the fifth interface, such as the user's click operation on the "AP mode"option 1702 shown in FIG. 17 , themobile phone 100 may display the second interface. Then, when themobile phone 100 executes S510, the secret key 1 may be used to encrypt the configuration information 1 described in the above-mentioned first application scenario to obtain encrypted information 1 . When themobile phone 100 executes S518, the secret key 3 may be used to encrypt the configuration information 2 described in the first application scenario above to obtain the encrypted information 2. In addition, the sound box (such as thesound box 201 or the sound box 202) can also interact with other sound boxes participating in the combination in the manner described in the first scenario above.

响应于用户在第五界面对非AP模式的选择操作,如用户对图17所示的“AP模式”选项1702的点击操作,手机100可以显示第二界面。然后,手机100在执行S510时,则可以采用秘钥1加密上述第二种应用场景中所述的配置信息1得到加密信息1。手机100在执行S518时,则可以采用秘钥3加密上述第二种应用场景中所述的配置信息2得到加密信息2。并且,音箱(如音箱201或音箱202)也可以按照上述第二种场景中所述的方式,与参与组合的其他音箱交互。In response to the user's selection operation of the non-AP mode on the fifth interface, such as the user's click operation on the "AP mode"option 1702 shown in FIG. 17 , themobile phone 100 may display the second interface. Then, when themobile phone 100 executes S510, the secret key 1 may be used to encrypt the configuration information 1 described in the second application scenario above to obtain encrypted information 1 . When themobile phone 100 executes S518, the secret key 3 may be used to encrypt the configuration information 2 described in the above-mentioned second application scenario to obtain encrypted information 2 . Moreover, the sound box (such assound box 201 or sound box 202) can also interact with other sound boxes participating in the combination in the manner described in the second scenario above.

在该实施例的另一种实现方式中,响应于用户对第二界面的操作b,手机100可以显示第五界面。该第五界面用于提示用户选择上述N个音箱构成组合音箱的模式。例如,该N个音箱构成组合音箱的模式可以包括AP模式和非AP模式。In another implementation of this embodiment, in response to the user's operation b on the second interface, themobile phone 100 may display the fifth interface. The fifth interface is used to prompt the user to select a mode in which the above N speakers form a combination speaker. For example, the modes in which the N speakers form a combined speaker may include an AP mode and a non-AP mode.

例如,响应于用户对图7B或图7C所示的“开始配网”按钮706点击操作,手机100可以显示图17所示的第五界面1701。该第五界面1701包括“AP模式”选项1702和“非AP模式”选项1703。For example, in response to the user's click operation on the "start network configuration"button 706 shown in FIG. 7B or 7C, themobile phone 100 may display thefifth interface 1701 shown in FIG. 17 . Thefifth interface 1701 includes an "AP mode"option 1702 and a "non-AP mode"option 1703 .

响应于用户在第五界面对AP模式的选择操作,如用户对图17所示的“AP模式”选项1702的点击操作,手机100可以显示第三界面。然后,手机100在执行S510时,则可以采用秘钥1加密上述第一种应用场景中所述的配置信息1得到加密信息1。手机100在执行S518时,则可以采用秘钥3加密上述第一种应用场景中所述的配置信息2得到加密信息2。并且,音箱(如音箱201或音箱202)也可以按照上述第一种场景中所述的方式,与参与组合的其他音箱交互。In response to the user's selection operation of the AP mode on the fifth interface, such as the user's click operation on the "AP mode"option 1702 shown in FIG. 17 , themobile phone 100 may display the third interface. Then, when themobile phone 100 executes S510, the secret key 1 may be used to encrypt the configuration information 1 described in the above-mentioned first application scenario to obtain encrypted information 1 . When themobile phone 100 executes S518, the secret key 3 may be used to encrypt the configuration information 2 described in the first application scenario above to obtain the encrypted information 2. In addition, the sound box (such as thesound box 201 or the sound box 202) can also interact with other sound boxes participating in the combination in the manner described in the first scenario above.

响应于用户在第五界面对非AP模式的选择操作,如用户对图17所示的“AP模式”选项1702的点击操作,手机100可以显示第三界面。然后,手机100在执行S510时,则可以采用秘钥1加密上述第二种应用场景中所述的配置信息1得到加密信息1。手机100在执行S518时,则可以采用秘钥3加密上述第二种应用场景中所述的配置信息2得到加密信息2。并且,音箱(如音箱201或音箱202)也可以按照上述第二种场景中所述的方式,与参与组合的其他音箱交互。In response to the user's selection operation of the non-AP mode on the fifth interface, such as the user's click operation on the "AP mode"option 1702 shown in FIG. 17 , themobile phone 100 may display the third interface. Then, when themobile phone 100 executes S510, the secret key 1 may be used to encrypt the configuration information 1 described in the second application scenario above to obtain encrypted information 1 . When themobile phone 100 executes S518, the secret key 3 may be used to encrypt the configuration information 2 described in the above-mentioned second application scenario to obtain encrypted information 2 . Moreover, the sound box (such assound box 201 or sound box 202) can also interact with other sound boxes participating in the combination in the manner described in the second scenario above.

本申请实施例中,可以由用户选择采用AP模式或者非AP模式构建组合音箱。这样,可以按照用户的喜好构建组合音箱,可以提升用户的使用体验。In the embodiment of the present application, the user may choose to use the AP mode or the non-AP mode to construct the combination speaker. In this way, the combination speaker can be constructed according to the user's preferences, and the user experience can be improved.

在一些实施例中,可以由手机100从上述N个音箱中随机选择出主音箱。例如,手机100可以选择左前置声道的音箱作为主音箱。In some embodiments, themobile phone 100 may randomly select the main speaker from the above N speakers. For example, themobile phone 100 may select the speaker of the left front channel as the main speaker.

在另一些实施例中,上述N个音箱中主音箱的角色的固定的,可以预先配置在第一APP中。例如,针对立体声组合音箱而言,左声道的音箱可以是主音箱。又例如,针对环绕声的组合音箱而言,中置声道的音箱可以是主音箱。上述实施例中以左前置声道的音箱是主音箱为例。In some other embodiments, the fixed role of the main speaker among the above N speakers may be pre-configured in the first APP. For example, for a stereo combination speaker, the left channel speaker can be the main speaker. For another example, for the combined sound box of surround sound, the sound box of the center channel may be the main sound box. In the foregoing embodiment, it is taken that the speaker of the left front channel is the main speaker as an example.

在一些实施例中,为了保证主音箱与从音箱进行数据交互过程中的信息安全,手机100还可以向主音箱和从音箱发送组合音箱进行数据交互的音箱秘钥和凭证。In some embodiments, in order to ensure information security during data interaction between the master speaker and the slave speakers, themobile phone 100 may also send the speaker key and certificate for data interaction of the combined speakers to the master speaker and the slave speakers.

在一种实现方式中,上述配置信息1和配置信息2中还可以包括组合音箱进行数据交互的音箱秘钥和凭证。该音箱秘钥用于主音箱与从音箱加密彼此之间的交互的数据,该凭证用于表征音箱的身份,如该音箱是组合音箱中的成员。In an implementation manner, the above-mentioned configuration information 1 and configuration information 2 may also include speaker keys and certificates for combining speakers for data interaction. The speaker key is used to encrypt the interaction data between the master speaker and the slave speakers, and the credential is used to represent the identity of the speaker, for example, the speaker is a member of the combination speaker.

在另一种实现方式中,手机100可以在向音箱(如音箱201)发送加密信息(如加密信息1)之后,或者接收到来自音箱(如音箱201)的确认消息(如确认消息1)之后,采用该音箱通过短距消息传输的秘钥(如秘钥1)加密上述音箱秘钥和凭证,然后再向该音箱(如音箱201)发送加密后的信息。音箱(如音箱201)接收到该加密后的信息后,可以解密该信息,得到上述音箱秘钥和凭证。In another implementation, after themobile phone 100 sends encrypted information (such as encrypted information 1) to the speaker (such as speaker 201), or receives a confirmation message (such as confirmation message 1) from the speaker (such as speaker 201), , using the secret key (such as secret key 1) transmitted by the speaker through the short-distance message to encrypt the above-mentioned speaker secret key and certificate, and then send the encrypted information to the speaker (such as the speaker 201). After receiving the encrypted information, the speaker (such as the speaker 201 ) can decrypt the information to obtain the above-mentioned speaker key and certificate.

在另一些实施例中,组合音箱中的主音箱和从音箱可以周期性的协商并更新上述音箱秘钥和凭证。这样,可以提升主音箱与从音箱进行数据交互过程中的信息安全。In some other embodiments, the master speaker and the slave speakers in the combination speaker may periodically negotiate and update the above-mentioned speaker key and certificate. In this way, information security during data interaction between the master speaker and the slave speaker can be improved.

其中,在第一种应用场景中,主音箱和从音箱可以通过上述第一无线局域网协商并更新上述音箱秘钥和凭证。在第二种应用场景中,主音箱和从音箱可以通过上述第二无线局域网协商并更新上述音箱秘钥和凭证。Wherein, in the first application scenario, the master speaker and the slave speaker can negotiate and update the speaker key and certificate through the first wireless local area network. In the second application scenario, the master speaker and the slave speaker can negotiate and update the speaker key and certificate through the second wireless local area network.

在一些实施例中,手机100还可以向主音箱指示各个从音箱的角色。例如,手机100可以向N个音箱中的主音箱发送各个从音箱的ID和角色,及其对应关系(如表4所示的角色与ID的对应关系)。In some embodiments, themobile phone 100 may also indicate the role of each slave speaker to the master speaker. For example, themobile phone 100 may send the ID and role of each slave speaker, and its corresponding relationship (as shown in Table 4, the corresponding relationship between role and ID) to the master speaker among the N speakers.

在一种实现方式中,上述配置信息1中可以包括各个从音箱的ID和角色,及其对应关系。In an implementation manner, the above configuration information 1 may include the ID and role of each slave speaker, and their corresponding relationship.

在另一种实现方式中,各个从音箱的ID和角色,及其对应关系可以不包括在上述配置信息1中。手机100可以在向音箱(如音箱201)发送加密信息(如加密信息1)之后,或者接收到来自音箱(如音箱201)的确认消息(如确认消息1)之后,采用该音箱通过短距消息传输的秘钥(如秘钥1)加密上述各个从音箱的ID和角色及其对应关系,然后向该音箱(如音箱201)发送加密后的信息。音箱(如音箱201)可以解密该信息,得到上述各个从音箱的ID和角色,及其对应关系。In another implementation manner, the ID and role of each slave speaker, and their corresponding relationship may not be included in the configuration information 1 above. After themobile phone 100 sends encrypted information (such as encrypted information 1) to the sound box (such as the sound box 201), or after receiving a confirmation message (such as the confirmation message 1) from the sound box (such as the sound box 201), themobile phone 100 can use the sound box to pass the short-distance message The transmitted secret key (for example, secret key 1) encrypts the above-mentioned IDs and roles of the slave speakers and their corresponding relationships, and then sends the encrypted information to the speaker (for example, the speaker 201). The speaker (such as the speaker 201 ) can decrypt the information to obtain the IDs and roles of the above-mentioned slave speakers, and their corresponding relationships.

在一些实施例中,手机100响应于用户在第一界面的操作a,便可以广播NAN发布消息。而不是响应于用户在第二界面的操作b,才广播NAN发布消息。具体的,上述S504可以替换为图18所示的S1801,上述S505可以替换为图18所示的S1802。In some embodiments, themobile phone 100 may broadcast a NAN release message in response to the user's operation a on the first interface. Instead of responding to the user's operation b on the second interface, the NAN release message is broadcast. Specifically, the above S504 may be replaced by S1801 shown in FIG. 18 , and the above S505 may be replaced by S1802 shown in FIG. 18 .

S1801、手机100广播NAN发布消息。S1801. Themobile phone 100 broadcasts a NAN release message.

其中,响应于用户在第一界面的操作a,手机100不仅可以执行S503中“显示第二界面”的操作,还可以执行S1801。Wherein, in response to the user's operation a on the first interface, themobile phone 100 may not only perform the operation of "displaying the second interface" in S503, but may also perform S1801.

S1802、响应于用户在第二界面的操作b,显示第三界面。该第三界面用于提示用户将手机100靠近角色1的音箱,使手机100与角色1的音箱之间的距离在第一距离内。S1802. Display a third interface in response to the user's operation b on the second interface. The third interface is used to prompt the user to move themobile phone 100 close to the speaker of character 1 so that the distance between themobile phone 100 and the speaker of character 1 is within the first distance.

例如,响应于用户对图19所示的第一界面701中“环绕声组合音箱”选项703的操作a,手机100可以执行图18所示的S503显示图7B或图7C所示的第二界面704,并执行图18所示的S1801,如图19所示发布NAN服务(即广播NAN发布消息)。响应于用户在图7B或图7C所示的第二界面704的操作b,手机100可以显示图9A或图9B所示的第三界面。For example, in response to the user's operation a on the "surround sound combination speaker"option 703 in thefirst interface 701 shown in FIG. 19, themobile phone 100 may execute S503 shown in FIG. 18 to display the second interface shown in FIG. 7B or 7C. 704, and execute S1801 shown in FIG. 18 , publish the NAN service (that is, broadcast the NAN release message) as shown in FIG. 19 . In response to the user's operation b on thesecond interface 704 shown in FIG. 7B or 7C, themobile phone 100 may display the third interface shown in FIG. 9A or 9B.

本申请实施例中,手机100可以响应于用户在第二界面的操作b发布NAN服务,或者响应于用户在第一界面的操作a发布NAN服务。本申请实施例对此不作限制。In the embodiment of the present application, themobile phone 100 may issue the NAN service in response to the user's operation b on the second interface, or issue the NAN service in response to the user's operation a on the first interface. The embodiment of the present application does not limit this.

可以理解的是,上述电子设备(如手机)和音箱为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned electronic devices (such as mobile phones) and sound boxes include corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the example units and algorithm steps described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present application.

本申请实施例可以根据上述方法示例对上述电子设备(如手机)和音箱进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application can divide the functional modules of the above-mentioned electronic devices (such as mobile phones) and speakers according to the above-mentioned method examples. For example, each functional module can be divided corresponding to each function, or two or more than two functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

图20示出了上述实施例中所涉及的电子设备(如手机100)和音箱的一种可能的结构示意图。如图20所示,电子设备2010可以包括音箱组合管理模块2011;音箱2020可以包括超短距模块2021和组合模块2022;音箱2030可以包括超短距模块2031和组合模块2032。Fig. 20 shows a possible structural schematic diagram of the electronic device (such as the mobile phone 100) and the sound box involved in the above-mentioned embodiment. As shown in FIG. 20 , theelectronic device 2010 may include a speakercombination management module 2011 ; thespeaker 2020 may include an ultra-short-range module 2021 and acombination module 2022 ; thespeaker 2030 may include an ultra-short-range module 2031 and acombination module 2032 .

其中,音箱组合管理模块2011,用于负责引导用户将每个音箱加入组合并指定角色,将配置信息传递给音箱2020和音箱2030。例如,音箱组合管理模块2011用于支持电子设备2010执行上述实例中的S502,S503,S504,S505,S510,S511,S517,S518,S519,S523,S1402,S1404,S1801,S1802,和/或用于本文所描述的技术的其它过程。Among them, the speakercombination management module 2011 is used to guide the user to add each speaker to the combination and assign a role, and transmit the configuration information to thespeaker 2020 and thespeaker 2030 . For example, the speakercombination management module 2011 is used to support theelectronic device 2010 to execute S502, S503, S504, S505, S510, S511, S517, S518, S519, S523, S1402, S1404, S1801, S1802 in the above example, and/or use other processes in the techniques described herein.

超短距模块2021,用于负责在安全距离向电子设备2010发送短距消息。例如,超短距模块2021用于支持音箱2020执行上述实例中的S508,和/或用于本文所描述的技术的其它过程。The ultra-short-range module 2021 is responsible for sending short-range messages to theelectronic device 2010 at a safe distance. For example, theultra-short distance module 2021 is used to support thesound box 2020 to execute S508 in the above example, and/or other processes for the technologies described herein.

组合模块2022,用于处理音箱间的数据传输和根据音箱角色播放对应声道的数据。例如,组合模块2022用于支持音箱2020执行上述实例中的S501,S506,S507,S508a,S512,S513,S514,S1401,和/或用于本文所描述的技术的其它过程。Thecombination module 2022 is used for processing data transmission between speakers and playing data of corresponding channels according to speaker roles. For example, the combiningmodule 2022 is used to support thespeaker 2020 to execute S501, S506, S507, S508a, S512, S513, S514, S1401 in the above examples, and/or other processes for the techniques described herein.

超短距模块2031,用于负责在安全距离向电子设备2010发送短距消息。例如,超短距模块2031用于支持音箱2020执行上述实例中的S509,S516,和/或用于本文所描述的技术的其它过程。The ultra-short-range module 2031 is used for sending short-range messages to theelectronic device 2010 at a safe distance. For example, theultra-short distance module 2031 is used to support thesound box 2020 to execute S509, S516 in the above example, and/or other processes for the technologies described herein.

组合模块2032,用于处理音箱间的数据传输和根据音箱角色播放对应声道的数据。例如,组合模块2032用于支持音箱2030执行上述实例中的S501,S506,S507,S509a,S515,S516a,S520,S521,S522,S1403,和/或用于本文所描述的技术的其它过程。Thecombination module 2032 is used for processing data transmission between speakers and playing data of corresponding channels according to speaker roles. For example, thecombination module 2032 is used to support thespeaker 2030 to execute S501, S506, S507, S509a, S515, S516a, S520, S521, S522, S1403 in the above example, and/or other processes for the techniques described herein.

在采用集成的单元的情况下,上述电子设备2010的音箱组合管理模块2011的功能可以集成在处理模块、显示模块和通信模块中实现。上述音箱2020的超短距模块2021的功能可以集成在通信模块中实现,组合模块2022的功能可以集成在处理模块和通信模块中实现。上述音箱2030的超短距模块2031的功能可以集成在通信模块中实现,组合模块2032的功能可以集成在处理模块和通信模块中实现。音箱2020和音箱2030还可以包括显示模块,该显示模块用于显示提示信息(如提示信息1或提示信息2)。In the case of using an integrated unit, the functions of the sound boxcombination management module 2011 of theelectronic device 2010 can be integrated in the processing module, display module and communication module for implementation. The function of theultra-short distance module 2021 of the above-mentionedspeaker 2020 can be integrated in the communication module, and the function of thecombination module 2022 can be integrated in the processing module and the communication module. The function of theultra-short distance module 2031 of the above-mentionedspeaker 2030 can be integrated in the communication module, and the function of thecombination module 2032 can be integrated in the processing module and the communication module. Thesound box 2020 and thesound box 2030 may also include a display module, which is used to display prompt information (such as prompt information 1 or prompt information 2).

当然,电子设备2010、音箱2020和音箱2030的单元模块包括但不限于上述处理模块、显示模块和通信模块。例如,电子设备2010、音箱2020和音箱2030还可以包括存储模块。Of course, the unit modules of theelectronic device 2010, thesound box 2020, and thesound box 2030 include but are not limited to the above-mentioned processing module, display module, and communication module. For example, theelectronic device 2010, thesound box 2020 and thesound box 2030 may further include a storage module.

例如,针对电子设备2010而言,处理模块可以为一个或多个处理器(如图2所示的处理器110),通信模块包括无线通信模块(如图2所示的无线通信模块160)。无线通信模块可以称为通信接口。存储模块可以为存储器(如图2所示的内部存储器121)。显示模块可以为显示屏(如图2所示的显示屏194)。其中,上述一个或多个处理器、无线通信模块、存储器和显示屏等可以连接在一起,例如通过总线连接。上述存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备2010可执行上述方法实施例中手机100执行的各个功能或者步骤。该电子设备2010的结构可以参考图2所示的电子设备100的结构。For example, for theelectronic device 2010, the processing module may be one or more processors (such as theprocessor 110 shown in FIG. 2 ), and the communication module includes a wireless communication module (such as the wireless communication module 160 shown in FIG. 2 ). The wireless communication module may be referred to as a communication interface. The storage module may be a memory (such as the internal memory 121 shown in FIG. 2 ). The display module may be a display screen (the display screen 194 shown in FIG. 2 ). Wherein, the one or more processors, the wireless communication module, the memory and the display screen may be connected together, for example, through a bus. The above-mentioned memory is used for storing computer program codes, and the computer program codes include computer instructions. When the processor executes computer instructions, theelectronic device 2010 can execute various functions or steps executed by themobile phone 100 in the above method embodiments. The structure of theelectronic device 2010 may refer to the structure of theelectronic device 100 shown in FIG. 2 .

例如,针对音箱(如音箱2020或音箱2030)而言,处理模块可以为一个或多个处理器(如图3所示的处理器3001),通信模块包括无线通信模块(如图3所示的无线通信模块308)。无线通信模块可以称为通信接口。存储模块可以为存储器(如图3所示的内部存储器303)。显示模块可以为显示屏(如图3所示的显示屏306)。其中,上述一个或多个处理器、无线通信模块、存储器和显示屏等可以连接在一起,例如通过总线连接。上述存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,音箱可执行上述方法实施例中音箱201或音箱202执行的各个功能或者步骤。该音箱的结构可以参考图3所示的音箱300的结构。For example, for a sound box (such assound box 2020 or sound box 2030), the processing module can be one or more processors (processor 3001 as shown in Figure 3), and the communication module includes a wireless communication module (such as wireless communication module 308). The wireless communication module may be referred to as a communication interface. The storage module may be a memory (such as the internal memory 303 shown in FIG. 3 ). The display module may be a display screen (display screen 306 shown in FIG. 3 ). Wherein, the one or more processors, the wireless communication module, the memory and the display screen may be connected together, for example, through a bus. The above-mentioned memory is used for storing computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the sound box can perform various functions or steps performed by thesound box 201 or thesound box 202 in the above method embodiments. For the structure of the sound box, reference may be made to the structure of the sound box 300 shown in FIG. 3 .

本申请实施例还提供一种芯片系统,该芯片系统可以应用于上述电子设备或者音箱。如图21所示,该芯片系统2100包括至少一个处理器2101和至少一个接口电路2102。该处理器2101和接口电路2102可通过线路互联。例如,接口电路2102可用于从其它装置(例如电子设备或者音箱的存储器)接收信号。又例如,接口电路2102可用于向其它装置(例如电子设备或者音箱的处理器2101)发送信号。示例性的,接口电路2102可读取存储器中存储的指令,并将该指令发送给处理器2101。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。An embodiment of the present application further provides a chip system, which can be applied to the above-mentioned electronic device or sound box. As shown in FIG. 21 , thechip system 2100 includes at least oneprocessor 2101 and at least oneinterface circuit 2102 . Theprocessor 2101 and theinterface circuit 2102 may be interconnected through a line. For example,interface circuit 2102 may be used to receive signals from other devices, such as memory in an electronic device or speaker. For another example, theinterface circuit 2102 may be used to send signals to other devices (such as theprocessor 2101 of an electronic device or a sound box). Exemplarily, theinterface circuit 2102 can read instructions stored in the memory, and send the instructions to theprocessor 2101 . Of course, the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.

当所述指令被处理器2101执行时,可使得电子设备(如图2所示的电子设备100)执行上述实施例中手机100的各个步骤。When the instructions are executed by theprocessor 2101, the electronic device (such as theelectronic device 100 shown in FIG. 2 ) may execute various steps of themobile phone 100 in the above-mentioned embodiments.

当所述指令被处理器2101执行时,可使得音箱(如图3所示的音箱300)执行上述实施例中音箱201或音箱202的各个步骤。When the instructions are executed by theprocessor 2101 , the sound box (such as the sound box 300 shown in FIG. 3 ) can be made to perform various steps of thesound box 201 or thesound box 202 in the above-mentioned embodiments.

本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备(如图2所示的电子设备100)上运行时,使得该电子设备执行上述方法实施例中手机100执行的各个功能或者步骤。The embodiment of the present application also provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned electronic device (such as theelectronic device 100 shown in FIG. 2 ), the electronic device is made to execute the above-mentioned Various functions or steps performed by themobile phone 100 in the method embodiment.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机100执行的各个功能或者步骤。The embodiment of the present application also provides a computer program product, which, when running on a computer, causes the computer to execute the various functions or steps performed by themobile phone 100 in the above method embodiments.

本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述音箱(如图3所示的音箱300)上运行时,使得该音箱执行上述方法实施例中音箱201或音箱202执行的各个功能或者步骤。The embodiment of the present application also provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned sound box (the sound box 300 shown in FIG. 3 ), the sound box is made to execute the above-mentioned method embodiment. Various functions or steps performed by themiddle speaker 201 or thespeaker 202.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中音箱201或音箱202执行的各个功能或者步骤。The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is made to perform various functions or steps performed by thespeaker 201 or thespeaker 202 in the above method embodiments.

本申请另一些实施例提供了一种电子设备,该电子设备可以包括:上述触摸屏、存储器和一个或多个处理器。该触摸屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图1所示的电子设备100的结构。Some other embodiments of the present application provide an electronic device, and the electronic device may include: the above-mentioned touch screen, a memory, and one or more processors. The touch screen, memory and processor are coupled. The memory is used to store computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the foregoing method embodiments. For the structure of the electronic device, reference may be made to the structure of theelectronic device 100 shown in FIG. 1 .

本申请另一些实施例提供一种显示装置,其特征在于,该装置可以应用于包括上述触摸屏的电子设备。该装置用于执行上述方法实施例中手机执行的各个功能或者步骤。Other embodiments of the present application provide a display device, which is characterized in that the device can be applied to an electronic device including the above-mentioned touch screen. The device is used to execute various functions or steps executed by the mobile phone in the foregoing method embodiments.

本申请实施例还提供一种芯片系统,如图15所示,该芯片系统包括至少一个处理器1501和至少一个接口电路1502。处理器1501和接口电路1502可通过线路互联。例如,接口电路1502可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1502可用于向其它装置(例如处理器1501)发送信号。示例性的,接口电路1502可读取存储器中存储的指令,并将该指令发送给处理器1501。当所述指令被处理器1501执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。An embodiment of the present application further provides a chip system, and as shown in FIG. 15 , the chip system includes at least one processor 1501 and at least one interface circuit 1502 . The processor 1501 and the interface circuit 1502 can be interconnected through wires. For example, interface circuit 1502 may be used to receive signals from other devices, such as memory of an electronic device. As another example, the interface circuit 1502 may be used to send signals to other devices (such as the processor 1501). Exemplarily, the interface circuit 1502 can read instructions stored in the memory, and send the instructions to the processor 1501 . When the instructions are executed by the processor 1501, the electronic device may be made to execute various steps in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.

本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。The embodiment of the present application also provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned electronic device, the electronic device is made to perform the various functions or steps performed by the mobile phone in the above-mentioned method embodiment .

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。The embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute each function or step performed by the mobile phone in the method embodiment above.

通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can 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 into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered within the protection scope of the application. Therefore, the protection scope of the present application should be determined by 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,
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.5A2020-09-142020-09-14Configuration method of combined sound box, sound box and electronic equipmentActiveCN114268896B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202010963117.5ACN114268896B (en)2020-09-142020-09-14Configuration method of combined sound box, sound box and electronic equipment
PCT/CN2021/113271WO2022052760A1 (en)2020-09-142021-08-18Combined loudspeaker box configuration method, loudspeaker box, and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010963117.5ACN114268896B (en)2020-09-142020-09-14Configuration method of combined sound box, sound box and electronic equipment

Publications (2)

Publication NumberPublication Date
CN114268896A CN114268896A (en)2022-04-01
CN114268896Btrue CN114268896B (en)2023-04-28

Family

ID=80632071

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010963117.5AActiveCN114268896B (en)2020-09-142020-09-14Configuration method of combined sound box, sound box and electronic equipment

Country Status (2)

CountryLink
CN (1)CN114268896B (en)
WO (1)WO2022052760A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118057840A (en)*2022-11-212024-05-21中兴通讯股份有限公司Audio playing method and system, electronic equipment and computer readable medium
CN118233692A (en)*2022-12-202024-06-21华为技术有限公司 A method, device and system for building a home theater

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104135704A (en)*2014-07-112014-11-05黄天旭Sound box networking method and sound box network
AU2015215978A1 (en)*2011-12-292015-09-10Sonos, Inc.Systems and methods for connecting an audio controller to a hidden audio network
CN105163241A (en)*2015-09-142015-12-16小米科技有限责任公司Audio playing method and device as well as electronic device
CN105897691A (en)*2016-03-242016-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 numberPriority datePublication dateAssigneeTitle
US8594569B2 (en)*2010-03-192013-11-26Bose CorporationSwitchable wired-wireless electromagnetic signal communication
US9247492B2 (en)*2011-12-292016-01-26Sonos, Inc.Systems and methods for multi-network audio control
CN105307143B (en)*2015-11-042019-02-05Oppo广东移动通信有限公司 A kind of network connection method and wireless speaker
CN106998514B (en)*2016-01-262019-04-30湖南汇德电子有限公司Intelligent multichannel configuration method and system

Patent Citations (4)

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

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN112286147B (en) A kind of control method and device of household equipment
CN113163379B (en) A method and electronic device for network discovery and distribution
CN112911556B (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
CN114285683B (en) A method and device for configuring household devices in batches
CN108695999A (en)Data screen projection method and device, storage medium and electronic equipment
WO2021114952A1 (en)Data processing method, terminal device, bluetooth device, and storage medium
CN110809243B (en)Wireless earphone, wireless earphone pairing method, terminal and system
CN114268896B (en)Configuration method of combined sound box, sound box and electronic equipment
CN114697058B (en) An identity authentication method, electronic device, and computer-readable storage medium
CN113518331B (en) Communication method and device
CN114827059A (en)Group member or friend adding method, electronic device and system
WO2022068601A1 (en)Network repairing method, electronic device, and mobile terminal
CN115412387B (en) Audio playback method, system and electronic device
WO2023071993A1 (en)Bluetooth pairing method, device, system, and storage medium
CN114338356B (en)Network repairing method, electronic equipment and mobile equipment
WO2023005713A1 (en)Channel configuration method, electronic device, and system
CN114844974B (en)Method for sharing address book, mobile device, electronic device and communication system
CN115175206B (en) IoT device setting method and IoT device
CN114844732B (en) A conference access method and electronic device
CN118524484A (en)Bluetooth connection method, audio device, electronic device, chip and storage medium
CN119676013A (en) A method, panel, device and storage medium for key management
CN113014998A (en)Audio output method, device, television and computer readable storage medium
CN114944681A (en)Charging method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp