技术领域Technical Field
本申请实施例涉及终端技术领域,尤其涉及一种通信方法及电子设备。The embodiments of the present application relate to the field of terminal technology, and in particular to a communication method and electronic device.
背景技术Background technique
随着终端技术的发展,用户拥有的电子设备越来越多。如家庭场景中,通过物联网技术将家中的各种设备(如音视频设备、照明系统设备、环境控制设备等)连接到一起形成智能家居系统,为用户提供家电控制、照明控制等多种功能。With the development of terminal technology, users have more and more electronic devices. For example, in the home scene, various devices in the home (such as audio and video equipment, lighting system equipment, environmental control equipment, etc.) are connected together through the Internet of Things technology to form a smart home system, providing users with multiple functions such as home appliance control and lighting control.
在智能家居系统中的多种电子设备均可提供通信功能,如用户可通过手机、平板、大屏设备等电子设备拨打或接听电话,不同设备能够为用户提供不同的通话体验。比如,用户可通过大屏设备与对端设备用户进行视频通话,可使对端用户查看大屏设备所在房间内布局,该用户也能获得更好的视频画面观看体验。A variety of electronic devices in the smart home system can provide communication functions. For example, users can make or receive calls through mobile phones, tablets, large-screen devices and other electronic devices. Different devices can provide users with different call experiences. For example, a user can make a video call with the user of the other device through a large-screen device, allowing the user on the other end to view the layout of the room where the large-screen device is located, and the user can also get a better video viewing experience.
但是,同样由于智能家居系统中可提供通信功能的电子设备数量较多,不同的设备可能位于不同的房间。那么,待接收通信请求的电子设备可能并不在用户身边,导致通信请求失败。However, since there are many electronic devices that can provide communication functions in the smart home system, different devices may be located in different rooms. Then, the electronic device to receive the communication request may not be near the user, resulting in failure of the communication request.
发明内容Summary of the invention
为了解决上述的技术问题,本申请实施例提供了一种通信方法及电子设备。本申请实施例提供的技术方案,第一电子设备能够获取到显示的群组卡片中,位于群组成员附近的电子设备的设备信息并显示相应的设备标识。这样用户能够选择位于待通信的目标群组成员附近的第二电子设备进行通信,提高通信成功率和通信质量,提升用户的使用体验。In order to solve the above technical problems, the embodiments of the present application provide a communication method and an electronic device. The technical solution provided by the embodiments of the present application enables a first electronic device to obtain the device information of the electronic device located near the group member in the displayed group card and display the corresponding device identification. In this way, the user can select a second electronic device located near the target group member to be communicated for communication, thereby improving the communication success rate and communication quality and enhancing the user experience.
为了实现上述的技术目的,本申请实施例提供了如下技术方案:In order to achieve the above technical objectives, the embodiments of the present application provide the following technical solutions:
第一方面,提供一种通信方法,应用于第一电子设备。该方法包括:显示第一群组卡片,第一群组卡片上显示有多个群组成员的第一标识。检测到用户对第一标识中的目标标识的第一操作,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息。根据第一设备信息,在目标标识上显示第二电子设备的第一设备标识。In a first aspect, a communication method is provided, which is applied to a first electronic device. The method includes: displaying a first group card, on which first identifiers of multiple group members are displayed. Detecting a first operation of a user on a target identifier in the first identifier, obtaining first device information of a second electronic device near a target group member corresponding to the target identifier. Based on the first device information, displaying the first device identifier of the second electronic device on the target identifier.
如此,用户通过第一电子设备显示的群组卡片,可确定其中包括的群组成员附近的电子设备的情况,从而选择位于待通信的目标群组成员附近的第二电子设备进行通信,提高通信成功率和通信质量,进而提升用户的使用体验。In this way, the user can determine the status of electronic devices near the group members included in the group card displayed by the first electronic device, and then select a second electronic device located near the target group member to communicate, thereby improving the communication success rate and communication quality, and thus enhancing the user experience.
根据第一方面,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息,包括:向服务器发送第一请求,第一请求携带有目标群组成员对应的第一账户信息。接收服务器发送的第一设备信息,第一设备信息为服务器根据第一账户信息匹配到的设备信息。According to a first aspect, obtaining first device information of a second electronic device near a target group member corresponding to a target identifier includes: sending a first request to a server, the first request carrying first account information corresponding to the target group member, and receiving the first device information sent by the server, the first device information being device information matched by the server according to the first account information.
示例性的,在智能家居系统中,目标群组成员的位置信息可通过其中包括的智能家居设备、智能家居控制面板等设备确定。并且,可确定位于目标群组成员附近的第二电子设备的设备信息。之后,智能家居控制面板可将该第二电子设备的设备信息上报到服务器。那么后续,第一电子设备可从服务器获取到相应的第二电子设备的设备信息。For example, in a smart home system, the location information of the target group member can be determined by the smart home device, smart home control panel and other devices included therein. In addition, the device information of the second electronic device located near the target group member can be determined. Afterwards, the smart home control panel can report the device information of the second electronic device to the server. Then, the first electronic device can obtain the device information of the corresponding second electronic device from the server.
如此,实现第一电子设备显示目标群组成员附近的第二电子设备。In this way, the first electronic device can display the second electronic devices near the target group members.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:检测到用户对第一设备标识的第二操作,向第二电子设备发起通信。According to the first aspect, or any implementation of the first aspect above, the method further includes: detecting a second operation of the user on the first device identifier, and initiating communication to the second electronic device.
如此,用户通过第一电子设备的群组卡片,能够确定位于群组卡片中目标群组成员附近的第二电子设备。这样,用户可以选择通过第一电子设备向第二电子设备发起通信,便于快速联系到目标群组成员。Thus, the user can determine the second electronic device located near the target group member in the group card through the group card of the first electronic device. In this way, the user can choose to initiate communication with the second electronic device through the first electronic device, so as to quickly contact the target group member.
并且,用户可确定该第二电子设备是不是当前想要联系的电子设备,有选择的进行通信,满足用户的使用需求。Furthermore, the user can determine whether the second electronic device is the electronic device that the user wants to contact currently, and selectively communicate with the second electronic device to meet the user's usage needs.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:显示第一文件。检测到用户将第一文件向目标标识拖动的第三操作,向第二电子设备发送第一文件。According to the first aspect, or any implementation of the first aspect above, the method further includes: displaying the first file. Upon detecting a third operation of the user dragging the first file toward the target identifier, sending the first file to the second electronic device.
如此,实现文件的快速传输。并且,可保证接收文件的第二电子设备在目标群组成员附近,目标群组成员可快速确定接收文件。In this way, the file can be quickly transmitted. In addition, it can be ensured that the second electronic device receiving the file is near the target group member, and the target group member can quickly determine the received file.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:检测到用户对第一群组卡片的第四操作,显示多个群组成员中各个群组成员附近的电子设备的设备信息。According to the first aspect, or any implementation of the first aspect above, the method further includes: detecting a fourth operation of the user on the first group card, and displaying device information of electronic devices near each of the multiple group members.
如此,便于用户快速了解群组成员附近设备情况。This makes it easy for users to quickly understand the status of devices near group members.
根据第一方面,或者以上第一方面的任意一种实现方式,在显示第一群组卡片之前,方法还包括:分别显示多个群组成员对应的多张通信卡片。响应于用户对多张通信卡片的第五操作,建立包括多张通信卡片对应的多个群组成员的第一群组卡片。According to the first aspect, or any implementation of the first aspect above, before displaying the first group card, the method further includes: displaying multiple communication cards corresponding to the multiple group members respectively. In response to a fifth operation of the user on the multiple communication cards, a first group card including the multiple group members corresponding to the multiple communication cards is established.
可选的,第一电子设备中安装有第一应用,电子设备显示的群组卡片、通信卡片为第一应用卡片。Optionally, a first application is installed in the first electronic device, and the group card and communication card displayed by the electronic device are first application cards.
如此,第一电子设备可响应于用户的操作,创建并显示包括多个群组成员的群组卡片,满足用户的通信需求的同时,便于用户管理多个群组成员。并且,通过显示群组卡片,第一电子设备可节约桌面显示空间。In this way, the first electronic device can create and display a group card including multiple group members in response to the user's operation, so as to meet the user's communication needs and facilitate the user to manage multiple group members. In addition, by displaying the group card, the first electronic device can save desktop display space.
根据第一方面,或者以上第一方面的任意一种实现方式,在显示第一群组卡片之前,方法还包括:显示空白的第一群组卡片。检测到用户在空白的第一群组卡片上的第六操作,搜索附近请求建立群组的一个或多个第三电子设备。在空白的第一群组卡片上显示搜索到的一个或多个第三电子设备的第二设备标识。响应于用户的第七操作,建立包括一个或多个第三电子设备对应的一个或多个账户的第一群组卡片,一个或多个账户对应于一个或多个群组成员。According to the first aspect, or any implementation of the first aspect above, before displaying the first group card, the method further includes: displaying a blank first group card. Detecting a sixth operation of the user on the blank first group card, searching for one or more third electronic devices nearby that request to establish a group. Displaying the second device identification of the searched one or more third electronic devices on the blank first group card. In response to the seventh operation of the user, establishing a first group card including one or more accounts corresponding to the one or more third electronic devices, the one or more accounts corresponding to the one or more group members.
根据第一方面,或者以上第一方面的任意一种实现方式,第一电子设备安装有第一应用,一个或多个账户为一个或多个第三电子设备登录第一应用的账户。According to the first aspect, or any implementation of the first aspect above, the first electronic device has a first application installed, and the one or more accounts are accounts for one or more third electronic devices to log in to the first application.
如此,通过近距离通信的方式,第一电子设备可不必再响应于用户选择多个卡片的操作,创建群组,降低用户操作难度,提高群组创建效率。In this way, through the short-range communication method, the first electronic device no longer needs to respond to the user's operation of selecting multiple cards to create a group, thereby reducing the difficulty of user operation and improving the efficiency of group creation.
此外,第一电子设备在未保存联系人信息的情况下,也可快速完成群组的创建。比如,在聚会场景中,多个未保存联系人信息的用户,可近距离通信的方式创建群组卡片,便于后续联系。In addition, the first electronic device can also quickly complete the creation of a group without saving the contact information. For example, in a party scene, multiple users who have not saved the contact information can create a group card in a close range communication mode to facilitate subsequent contact.
根据第一方面,或者以上第一方面的任意一种实现方式,目标群组成员对应于第一账户,方法还包括:接收第一账户发送的第一信息。在目标标识上显示第一提示信息,第一提示信息用于提示用户目标群组成员发送的第一信息。According to the first aspect, or any implementation of the first aspect above, the target group member corresponds to a first account, and the method further includes: receiving a first message sent by the first account, and displaying a first prompt message on the target identifier, the first prompt message being used to prompt the user of the first message sent by the target group member.
如此,第一电子设备可通过群组卡片,帮助用户实现快速求助,满足用户的使用需求。In this way, the first electronic device can help the user to quickly seek help through the group card, thereby meeting the user's usage needs.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:响应于用户指示向目标群组成员对应的第一账户发起通信的第八操作,确定第一电子设备附近的一个或多个第四电子设备。显示一个或多个第四电子设备对应的一个或多个第三设备标识。检测到用户对一个或多个第三设备标识中的第四设备标识的九操作,向第四设备标识对应的目标第四电子设备发送第一指示,第一指示携带有第一账户,第一指示用于指示目标第四电子设备向第一账户发起通信。According to the first aspect, or any implementation of the first aspect above, the method further includes: in response to an eighth operation of the user instructing to initiate communication to the first account corresponding to the target group member, determining one or more fourth electronic devices near the first electronic device. Displaying one or more third device identifiers corresponding to the one or more fourth electronic devices. Detecting the ninth operation of the user on the fourth device identifier among the one or more third device identifiers, sending a first indication to the target fourth electronic device corresponding to the fourth device identifier, the first indication carrying the first account, and the first indication being used to instruct the target fourth electronic device to initiate communication with the first account.
如此,用户在需要发起通信时,可选择通过正在使用的电子设备发起通信,也可选择附近的电子设备发起通信,以使得通信过程更加满足用户的使用需求。In this way, when the user needs to initiate communication, he can choose to initiate communication through the electronic device he is using, or he can choose to initiate communication through a nearby electronic device, so that the communication process can better meet the user's usage needs.
根据第一方面,或者以上第一方面的任意一种实现方式,在检测到用户对第一标识中的目标标识的第一操作之后,方法还包括:在第一群组卡片上,按照预设方式突出显示目标标识。根据第一设备信息,在目标标识上显示第二电子设备的设备标识,包括:在第一群组卡片上的按照预设方式突出显示的目标标识上,显示第二电子设备的设备标识。According to the first aspect, or any implementation of the first aspect above, after detecting a first operation of a user on a target identifier in the first identifier, the method further includes: highlighting the target identifier on the first group card in a preset manner. Displaying the device identifier of the second electronic device on the target identifier according to the first device information includes: displaying the device identifier of the second electronic device on the target identifier highlighted in a preset manner on the first group card.
可选的,预设方式例如包括放大显示等。Optionally, the preset method includes, for example, enlarged display, etc.
如此,通过预设方式突出显示目标标识,便于用户确认待联系的目标群组成员。并且,便于用户确认该目标群组成员附件的第二电子设备,从而提升用户的使用体验。In this way, the target identifier is highlighted in a preset manner, which facilitates the user to confirm the target group member to be contacted, and also facilitates the user to confirm the second electronic device attached to the target group member, thereby improving the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,第一设备信息包括第二电子设备对应的设备标识、设备类型、设备图标、设备名称、设备昵称中的一项或几项。According to the first aspect, or any implementation of the first aspect above, the first device information includes one or more of a device identification, a device type, a device icon, a device name, and a device nickname corresponding to the second electronic device.
根据第一方面,或者以上第一方面的任意一种实现方式,第二电子设备为与目标群组成员位于同一空间,且距离最近的电子设备。According to the first aspect, or any implementation of the first aspect, the second electronic device is an electronic device that is located in the same space as the target group member and is closest to the target group member.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:显示第二群组卡片,第二群组卡片上显示有目标群组成员的目标标识。According to the first aspect, or any implementation of the first aspect above, the method further includes: displaying a second group card, wherein the second group card displays a target identifier of the target group member.
如此,便于用户对于群组卡片的灵活使用,提升用户的使用体验。In this way, users can use group cards flexibly, thereby improving their user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,群组卡片上显示的第一标识数量小于或等于预设数量,第一标识在群组卡片上按照预设规则排布显示。According to the first aspect, or any implementation of the first aspect above, the number of first identifiers displayed on the group card is less than or equal to a preset number, and the first identifiers are arranged and displayed on the group card according to a preset rule.
可选的,预设规则例如包括按照群组成员的活跃度,依次显示多个群组成员对应的用户头像。可选的,第一电子设备可通过判断与群组成员联系的频次、最近联系时间、加入群组的时间、是否有未读消息、未读消息接收时间等多种方式,确定群组成员的活跃度。Optionally, the preset rules include, for example, displaying user avatars corresponding to multiple group members in sequence according to the activity of the group members. Optionally, the first electronic device can determine the activity of the group members by judging the frequency of contact with the group members, the last contact time, the time of joining the group, whether there are unread messages, the time of receiving unread messages, etc.
如此,群组卡片上显示的用户头像数量也可小于或等于预设数量,从而保证显示效果,也便于用户操作群组成员。In this way, the number of user avatars displayed on the group card can be less than or equal to the preset number, thereby ensuring the display effect and facilitating users to operate group members.
第二方面,提供一种电子设备。该电子设备包括:处理器、存储器和显示屏,存储器和显示屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行:显示第一群组卡片,第一群组卡片上显示有多个群组成员的第一标识。检测到用户对第一标识中的目标标识的第一操作,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息。根据第一设备信息,在目标标识上显示第二电子设备的第一设备标识。In a second aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a display screen, the memory and the display screen are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor reads the computer instructions from the memory, the electronic device executes: displaying a first group card, the first group card displays a first identification of multiple group members. Detecting a first operation of a user on a target identification in the first identification, obtaining first device information of a second electronic device near a target group member corresponding to the target identification. Based on the first device information, display the first device identification of the second electronic device on the target identification.
根据第二方面,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息,包括:向服务器发送第一请求,第一请求携带有目标群组成员对应的第一账户信息。接收服务器发送的第一设备信息,第一设备信息为服务器根据第一账户信息匹配到的设备信息。According to a second aspect, obtaining first device information of a second electronic device near a target group member corresponding to a target identifier includes: sending a first request to a server, the first request carrying first account information corresponding to the target group member, and receiving the first device information sent by the server, the first device information being device information matched by the server according to the first account information.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:检测到用户对第一设备标识的第二操作,向第二电子设备发起通信。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, it also enables the electronic device to execute: upon detecting a second operation of the user on the first device identifier, initiate communication with the second electronic device.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:显示第一文件。检测到用户将第一文件向目标标识拖动的第三操作,向第二电子设备发送第一文件。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, the electronic device is further caused to execute: displaying the first file. Upon detecting a third operation of the user dragging the first file toward the target mark, sending the first file to the second electronic device.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:检测到用户对第一群组卡片的第四操作,显示多个群组成员中各个群组成员附近的电子设备的设备信息。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, the electronic device is also caused to execute: upon detecting a fourth operation of the user on the first group card, device information of electronic devices near each of the multiple group members is displayed.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:分别显示多个群组成员对应的多张通信卡片。响应于用户对多张通信卡片的第五操作,建立包括多张通信卡片对应的多个群组成员的第一群组卡片。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, the electronic device is further caused to execute: displaying multiple communication cards corresponding to multiple group members respectively. In response to a fifth operation of the user on the multiple communication cards, a first group card including multiple group members corresponding to the multiple communication cards is established.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:显示空白的第一群组卡片。检测到用户在空白的第一群组卡片上的第六操作,搜索附近请求建立群组的一个或多个第三电子设备。在空白的第一群组卡片上显示搜索到的一个或多个第三电子设备的第二设备标识。响应于用户的第七操作,建立包括一个或多个第三电子设备对应的一个或多个账户的第一群组卡片,一个或多个账户对应于一个或多个群组成员。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, the electronic device is also caused to execute: displaying a blank first group card. Detecting the sixth operation of the user on the blank first group card, searching for one or more third electronic devices nearby requesting to establish a group. Displaying the second device identification of the searched one or more third electronic devices on the blank first group card. In response to the seventh operation of the user, establishing a first group card including one or more accounts corresponding to the one or more third electronic devices, the one or more accounts corresponding to the one or more group members.
根据第二方面,或者以上第二方面的任意一种实现方式,第一电子设备安装有第一应用,一个或多个账户为一个或多个第三电子设备登录第一应用的账户。According to the second aspect, or any implementation of the second aspect, the first electronic device has a first application installed, and the one or more accounts are accounts for one or more third electronic devices to log in to the first application.
根据第二方面,或者以上第二方面的任意一种实现方式,目标群组成员对应于第一账户,当处理器从存储器中读取计算机指令,还使得电子设备执行:接收第一账户发送的第一信息。在目标标识上显示第一提示信息,第一提示信息用于提示用户目标群组成员发送的第一信息。According to the second aspect, or any implementation of the second aspect above, the target group member corresponds to the first account, and when the processor reads the computer instruction from the memory, the electronic device is further caused to execute: receiving the first information sent by the first account. Displaying the first prompt information on the target identifier, the first prompt information is used to prompt the user of the first information sent by the target group member.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:响应于用户指示向目标群组成员对应的第一账户发起通信的第八操作,确定第一电子设备附近的一个或多个第四电子设备。显示一个或多个第四电子设备对应的一个或多个第三设备标识。检测到用户对一个或多个第三设备标识中的第四设备标识的九操作,向第四设备标识对应的目标第四电子设备发送第一指示,第一指示携带有第一账户,第一指示用于指示目标第四电子设备向第一账户发起通信。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, the electronic device is also caused to execute: in response to the user's instruction to initiate communication to the first account corresponding to the target group member, the eighth operation is to determine one or more fourth electronic devices near the first electronic device. One or more third device identifiers corresponding to the one or more fourth electronic devices are displayed. When the user's ninth operation on the fourth device identifier among the one or more third device identifiers is detected, a first indication is sent to the target fourth electronic device corresponding to the fourth device identifier, the first indication carries the first account, and the first indication is used to instruct the target fourth electronic device to initiate communication with the first account.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:在第一群组卡片上,按照预设方式突出显示目标标识。根据第一设备信息,在目标标识上显示第二电子设备的设备标识,包括:在第一群组卡片上的按照预设方式突出显示的目标标识上,显示第二电子设备的设备标识。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, the electronic device is further caused to execute: highlighting the target identifier on the first group card in a preset manner. Displaying the device identifier of the second electronic device on the target identifier according to the first device information includes: displaying the device identifier of the second electronic device on the target identifier highlighted in a preset manner on the first group card.
根据第二方面,或者以上第二方面的任意一种实现方式,第一设备信息包括第二电子设备对应的设备标识、设备类型、设备图标、设备名称、设备昵称中的一项或几项。According to the second aspect, or any implementation of the second aspect above, the first device information includes one or more of a device identification, a device type, a device icon, a device name, and a device nickname corresponding to the second electronic device.
根据第二方面,或者以上第二方面的任意一种实现方式,第二电子设备为与目标群组成员位于同一空间,且距离最近的电子设备。According to the second aspect, or any implementation of the second aspect, the second electronic device is an electronic device that is located in the same space as the target group member and is closest to the target group member.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机指令,还使得电子设备执行:显示第二群组卡片,第二群组卡片上显示有目标群组成员的目标标识。According to the second aspect, or any implementation of the second aspect, when the processor reads the computer instruction from the memory, the electronic device is further caused to execute: displaying a second group card, where the target identifier of the target group member is displayed on the second group card.
根据第二方面,或者以上第二方面的任意一种实现方式,群组卡片上显示的第一标识数量小于或等于预设数量,第一标识在群组卡片上按照预设规则排布显示。According to the second aspect, or any implementation of the second aspect above, the number of first identifiers displayed on the group card is less than or equal to a preset number, and the first identifiers are arranged and displayed on the group card according to a preset rule.
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
第三方面,提供一种电子设备。该电子设备包括:显示单元、收发单元以及处理单元。其中,显示单元,用于显示第一群组卡片,第一群组卡片上显示有多个群组成员的第一标识。收发单元,用于检测到用户对第一标识中的目标标识的第一操作,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息。处理单元,用于根据第一设备信息,确定第二电子设备的第一设备标识。显示单元,还用于在目标标识上显示第二电子设备的第一设备标识。In a third aspect, an electronic device is provided. The electronic device includes: a display unit, a transceiver unit, and a processing unit. The display unit is used to display a first group card, on which first identifiers of multiple group members are displayed. The transceiver unit is used to detect a first operation of a user on a target identifier in the first identifier, and obtain first device information of a second electronic device near a target group member corresponding to the target identifier. The processing unit is used to determine the first device identifier of the second electronic device based on the first device information. The display unit is also used to display the first device identifier of the second electronic device on the target identifier.
根据第三方面,收发单元,还用于向服务器发送第一请求,第一请求携带有目标群组成员对应的第一账户信息。接收服务器发送的第一设备信息,第一设备信息为服务器根据第一账户信息匹配到的设备信息。According to the third aspect, the transceiver unit is further configured to send a first request to the server, the first request carrying first account information corresponding to the target group member, and receive first device information sent by the server, the first device information being device information matched by the server according to the first account information.
根据第三方面,或者以上第三方面的任意一种实现方式,收发单元,还用于检测到用户对第一设备标识的第二操作,向第二电子设备发起通信。According to the third aspect, or any implementation of the third aspect above, the transceiver unit is further used to detect a second operation of the user on the first device identifier and initiate communication to the second electronic device.
根据第三方面,或者以上第三方面的任意一种实现方式,显示单元,还用于显示第一文件。收发单元,还用于检测到用户将第一文件向目标标识拖动的第三操作,向第二电子设备发送第一文件。According to the third aspect, or any implementation of the third aspect, the display unit is further configured to display the first file. The transceiver unit is further configured to detect a third operation of the user dragging the first file toward the target mark, and send the first file to the second electronic device.
根据第三方面,或者以上第三方面的任意一种实现方式,收发单元,还用于检测用户对第一群组卡片的第四操作。显示单元,还用于显示多个群组成员中各个群组成员附近的电子设备的设备信息。According to the third aspect, or any implementation of the third aspect above, the transceiver unit is further used to detect a fourth operation of the user on the first group card. The display unit is further used to display device information of electronic devices near each of the multiple group members.
根据第三方面,或者以上第三方面的任意一种实现方式,显示单元,还用于分别显示多个群组成员对应的多张通信卡片。收发单元,还用于检测用户对多张通信卡片的第五操作。处理单元,还用于响应于第五操作,建立包括多张通信卡片对应的多个群组成员的第一群组卡片。According to the third aspect, or any implementation of the third aspect above, the display unit is further used to display the multiple communication cards corresponding to the multiple group members respectively. The transceiver unit is further used to detect a fifth operation of the user on the multiple communication cards. The processing unit is further used to establish a first group card including the multiple group members corresponding to the multiple communication cards in response to the fifth operation.
根据第三方面,或者以上第三方面的任意一种实现方式,显示单元,还用于显示空白的第一群组卡片。收发单元,还用于检测到用户在空白的第一群组卡片上的第六操作,搜索附近请求建立群组的一个或多个第三电子设备。显示单元,还用于在空白的第一群组卡片上显示搜索到的一个或多个第三电子设备的第二设备标识。收发单元,还用于检测用户的第七操作。处理单元,还用于响应于第七操作建立包括一个或多个第三电子设备对应的一个或多个账户的第一群组卡片,一个或多个账户对应于一个或多个群组成员。According to the third aspect, or any implementation of the third aspect above, the display unit is further used to display a blank first group card. The transceiver unit is further used to detect a sixth operation of the user on the blank first group card, and search for one or more third electronic devices nearby that request to establish a group. The display unit is further used to display the second device identification of the searched one or more third electronic devices on the blank first group card. The transceiver unit is further used to detect a seventh operation of the user. The processing unit is further used to establish a first group card including one or more accounts corresponding to one or more third electronic devices in response to the seventh operation, and the one or more accounts correspond to one or more group members.
根据第三方面,或者以上第三方面的任意一种实现方式,第一电子设备安装有第一应用,一个或多个账户为一个或多个第三电子设备登录第一应用的账户。According to the third aspect, or any implementation of the third aspect, the first electronic device is installed with a first application, and the one or more accounts are accounts for one or more third electronic devices to log in to the first application.
根据第三方面,或者以上第三方面的任意一种实现方式,收发单元,还用于接收第一账户发送的第一信息。显示单元,还用于在目标标识上显示第一提示信息,第一提示信息用于提示用户目标群组成员发送的第一信息。According to the third aspect, or any implementation of the third aspect above, the transceiver unit is further used to receive the first information sent by the first account. The display unit is further used to display the first prompt information on the target identifier, and the first prompt information is used to prompt the user of the first information sent by the target group member.
根据第三方面,收发单元,还用于检测用户指示向目标群组成员对应的第一账户发起通信的第八操作。处理单元,还用于确定第一电子设备附近的一个或多个第四电子设备。显示单元,还用于显示一个或多个第四电子设备对应的一个或多个第三设备标识。收发单元,还用于检测到用户对一个或多个第三设备标识中的第四设备标识的九操作,向第四设备标识对应的目标第四电子设备发送第一指示,第一指示携带有第一账户,第一指示用于指示目标第四电子设备向第一账户发起通信。According to the third aspect, the transceiver unit is further used to detect an eighth operation of the user instructing to initiate communication to the first account corresponding to the target group member. The processing unit is further used to determine one or more fourth electronic devices near the first electronic device. The display unit is further used to display one or more third device identifiers corresponding to the one or more fourth electronic devices. The transceiver unit is further used to detect the ninth operation of the user on the fourth device identifier among the one or more third device identifiers, and send a first indication to the target fourth electronic device corresponding to the fourth device identifier, the first indication carrying the first account, and the first indication is used to instruct the target fourth electronic device to initiate communication with the first account.
根据第三方面,或者以上第三方面的任意一种实现方式,显示单元,还用于在第一群组卡片上,按照预设方式突出显示目标标识。显示单元,还用于在第一群组卡片上的按照预设方式突出显示的目标标识上,显示第二电子设备的设备标识。According to the third aspect, or any implementation of the third aspect above, the display unit is further configured to highlight the target identifier on the first group card in a preset manner. The display unit is further configured to display the device identifier of the second electronic device on the target identifier highlighted in a preset manner on the first group card.
根据第三方面,或者以上第三方面的任意一种实现方式,第一设备信息包括第二电子设备对应的设备标识、设备类型、设备图标、设备名称、设备昵称中的一项或几项。According to the third aspect, or any implementation of the third aspect above, the first device information includes one or more of a device identification, a device type, a device icon, a device name, and a device nickname corresponding to the second electronic device.
根据第三方面,或者以上第三方面的任意一种实现方式,第二电子设备为与目标群组成员位于同一空间,且距离最近的电子设备。According to the third aspect, or any implementation of the third aspect, the second electronic device is an electronic device that is located in the same space as the target group member and is closest to the target group member.
根据第三方面,或者以上第三方面的任意一种实现方式,显示单元,还用于显示第二群组卡片,第二群组卡片上显示有目标群组成员的目标标识。According to the third aspect, or any implementation of the third aspect, the display unit is further configured to display a second group card, on which a target identifier of a target group member is displayed.
根据第三方面,或者以上第三方面的任意一种实现方式,群组卡片上显示的第一标识数量小于或等于预设数量,第一标识在群组卡片上按照预设规则排布显示。According to the third aspect, or any implementation of the third aspect above, the number of first identifiers displayed on the group card is less than or equal to a preset number, and the first identifiers are arranged and displayed on the group card according to a preset rule.
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the third aspect and any one of the implementation methods of the third aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第四方面,本申请实施例提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的通信方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, an embodiment of the present application provides an electronic device having the function of implementing the communication method described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第五方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第六方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第七方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法。In a seventh aspect, an embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one of the implementations of the first aspect.
第七方面以及第七方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第八方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法。In an eighth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect.
第八方面以及第八方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the eighth aspect and any one of the implementation methods of the eighth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的家庭场景示意图;FIG1 is a schematic diagram of a home scene provided in an embodiment of the present application;
图2为本申请实施例提供的一种通信方法应用的通信系统的示意图;FIG2 is a schematic diagram of a communication system to which a communication method is applied according to an embodiment of the present application;
图3为本申请实施例提供的电子设备的硬件结构示意图;FIG3 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
图4为本申请实施例提供的电子设备的软件结构框图示意图;FIG4 is a schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application;
图5为本申请实施例提供的联系人卡片创建场景示意图;FIG5 is a schematic diagram of a contact card creation scenario provided in an embodiment of the present application;
图6为本申请实施例提供的群组卡片创建场景示意图一;FIG6 is a schematic diagram of a group card creation scenario provided in an embodiment of the present application;
图7A为本申请实施例提供的群组卡片创建场景示意图二;FIG7A is a second schematic diagram of a group card creation scenario provided in an embodiment of the present application;
图7B为本申请实施例提供的群组卡片创建场景示意图三;FIG7B is a third schematic diagram of a group card creation scenario provided in an embodiment of the present application;
图7C为本申请实施例提供的群组卡片创建场景示意图四;FIG7C is a fourth schematic diagram of a group card creation scenario provided in an embodiment of the present application;
图8为本申请实施例提供的群组卡片编辑场景示意图一;FIG8 is a schematic diagram of a group card editing scenario provided in an embodiment of the present application;
图9为本申请实施例提供的群组卡片编辑场景示意图二;FIG9 is a second schematic diagram of a group card editing scenario provided in an embodiment of the present application;
图10为本申请实施例提供的群组卡片显示场景示意图一;FIG10 is a schematic diagram of a group card display scene 1 provided in an embodiment of the present application;
图11为本申请实施例提供的群组卡片显示场景示意图二;FIG11 is a second schematic diagram of a group card display scenario provided in an embodiment of the present application;
图12为本申请实施例提供的群组共享设置场景示意图;FIG12 is a schematic diagram of a group sharing setting scenario provided in an embodiment of the present application;
图13为本申请实施例提供的一种用于确定目标用户附近电子设备的方法的流程示意图;FIG13 is a flow chart of a method for determining electronic devices near a target user provided by an embodiment of the present application;
图14为本申请实施例提供的显示目标用户附近电子设备的场景示意图一;FIG14 is a first schematic diagram of a scene showing electronic devices near a target user provided by an embodiment of the present application;
图15为本申请实施例提供的显示目标用户附近电子设备的场景示意图二;FIG15 is a second schematic diagram of a scene showing electronic devices near a target user provided by an embodiment of the present application;
图16为本申请实施例提供的显示目标用户附近电子设备的场景示意图三;FIG16 is a third schematic diagram of a scene showing electronic devices near a target user provided by an embodiment of the present application;
图17A为本申请实施例提供的群组卡片拨打电话的场景示意图一;FIG17A is a schematic diagram of a scenario of making a call using a group card according to an embodiment of the present application;
图17B为本申请实施例提供的群组卡片拨打电话的场景示意图二;FIG17B is a second schematic diagram of a scenario in which a group card makes a call according to an embodiment of the present application;
图18A为本申请实施例提供的群组卡片发送文件的场景示意图一;FIG18A is a schematic diagram of a scenario where a group card sends a file according to an embodiment of the present application;
图18B为本申请实施例提供的群组卡片发送文件的场景示意图二;FIG18B is a second schematic diagram of a scenario in which a group card sends a file according to an embodiment of the present application;
图18C为本申请实施例提供的群组卡片发送文件的场景示意图三;FIG18C is a third schematic diagram of a scenario in which a group card sends a file according to an embodiment of the present application;
图19A为本申请实施例提供的群组卡片求助场景示意图一;FIG19A is a schematic diagram of a group card help-seeking scenario 1 provided in an embodiment of the present application;
图19B为本申请实施例提供的群组卡片求助场景示意图二;FIG19B is a second schematic diagram of a group card help-seeking scenario provided in an embodiment of the present application;
图19C为本申请实施例提供的群组卡片求助场景示意图三;FIG19C is a third schematic diagram of a group card help-seeking scenario provided in an embodiment of the present application;
图19D为本申请实施例提供的群组卡片求助场景示意图四;FIG19D is a fourth schematic diagram of a group card help-seeking scenario provided in an embodiment of the present application;
图20A为本申请实施例提供的群组卡片快速求助场景示意图一;FIG20A is a schematic diagram of a group card quick help scenario 1 provided in an embodiment of the present application;
图20B为本申请实施例提供的群组卡片快速求助场景示意图二;FIG20B is a second schematic diagram of a group card quick help scenario provided in an embodiment of the present application;
图21为本申请实施例提供的通信方法流程示意图;FIG21 is a flow chart of a communication method provided in an embodiment of the present application;
图22为本申请实施例提供的第一电子设备的结构示意图。FIG. 22 is a schematic diagram of the structure of a first electronic device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。The technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
在一些实施例中,随着终端技术的发展,用户拥有的电子设备数量越来越多,不同的电子设备的空间位置相同或不相同。In some embodiments, with the development of terminal technology, users have an increasing number of electronic devices, and the spatial locations of different electronic devices are the same or different.
比如,在如图1所示的智能家居系统的场景中,用户A可将其拥有的电子设备放置在不同的房间中。如位于客厅中的大屏设备11、音箱12,位于卧室1中的大屏设备13,位于卧室2中的大屏设备14、音箱15,位于影音室的放映设备16、手机17,位于门廊的摄像头18。其中,不同的设备可实现不同的通信功能。如大屏设备可实现视频通话,手机可实现音视频通话,音箱可实现音频通话等。For example, in the scenario of the smart home system shown in FIG1 , user A can place his electronic devices in different rooms. For example, a large screen device 11 and a speaker 12 are located in the living room, a large screen device 13 is located in the bedroom 1, a large screen device 14 and a speaker 15 are located in the bedroom 2, a projection device 16 and a mobile phone 17 are located in the audio-visual room, and a camera 18 is located in the porch. Different devices can realize different communication functions. For example, a large screen device can realize video calls, a mobile phone can realize audio and video calls, and a speaker can realize audio calls.
一种示例场景中,用户B出差一段时间,不在家中,想要与用户A通话,并且想看看家中客厅的布局变化。那么,如图1所示,用户B可向位于客厅中的大屏设备11请求通话。但是,如此时用户A并没有在客厅中,而是在影音室中通过放映设备16观看影片,那么就可能忽略此次通话请求。In an example scenario, user B is away on a business trip for a while and is not at home. He wants to talk to user A and wants to see the layout changes of his living room. Then, as shown in FIG1 , user B can request a call from the large screen device 11 in the living room. However, if user A is not in the living room at this time, but is watching a movie in the audio-visual room through the projection device 16, then the call request may be ignored.
由此,本申请实施例提供一种通信方法,第一电子设备能够获取到第二电子设备的位置信息,根据该位置信息,确定用户附近的第二电子设备,便于选择用于通信的目标设备,提升用户的使用体验。Therefore, an embodiment of the present application provides a communication method, in which a first electronic device can obtain location information of a second electronic device, and determine the second electronic device near a user based on the location information, so as to facilitate selection of a target device for communication and enhance the user experience.
图2为本申请实施例提供的通信方法应用的通信系统的示意图。如图2所示,该通信系统包括第一电子设备100、第二电子设备200、以及服务器300。Fig. 2 is a schematic diagram of a communication system to which the communication method provided in an embodiment of the present application is applied. As shown in Fig. 2, the communication system includes a first electronic device 100, a second electronic device 200, and a server 300.
可选的,第一电子设备100例如可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、个人计算机(personal computer,PC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备、车载终端、人工智能(artificial intelligence,AI)设备等,第一电子设备100安装的操作系统包括但不限于或者其它操作系统。本申请对第一电子设备100的具体类型、所安装的操作系统均不作限制。Optionally, the first electronic device 100 may be, for example, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a personal computer (PC), a netbook, a personal digital assistant (PDA), a wearable device, a vehicle terminal, an artificial intelligence (AI) device, etc. The operating system installed in the first electronic device 100 includes but is not limited to Or other operating systems. This application does not limit the specific type of the first electronic device 100 and the installed operating system.
可选的,第二电子设备200例如可以为大屏设备201、手机202、音箱201、PDA 204、摄像头205、平板电脑、PC、上网本、可穿戴电子设备、车载终端、AI设备等。第二电子设备200安装的操作系统包括但不限于或者其它操作系统。第二电子设备200也可以不安装有操作系统。本申请对第二电子设备200的具体类型、有无安装操作系统、在有安装操作系统下所安装的操作系统均不作限制。Optionally, the second electronic device 200 may be, for example, a large screen device 201, a mobile phone 202, a speaker 201, a PDA 204, a camera 205, a tablet computer, a PC, a netbook, a wearable electronic device, a vehicle terminal, an AI device, etc. The operating system installed in the second electronic device 200 includes but is not limited to Or other operating systems. The second electronic device 200 may not be installed with an operating system. This application does not limit the specific type of the second electronic device 200, whether an operating system is installed, and the operating system installed if an operating system is installed.
可选的,服务器300可以是云服务器或者网络服务器等具有计算功能的设备或服务器。上述服务器可以是一台服务器,也可以是由多台服务器组成的服务器集群,或者是一个云计算服务中心。Optionally, the server 300 may be a device or server with computing functions such as a cloud server or a network server. The server may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center.
可选的,第一电子设备100和第二电子设备200相同或不相同。第二电子设备200可以为智能家居设备。在第二电子设备200为智能家居设备的情况下,各个第二电子设备200之间可建立连接,组成智能家居系统。Optionally, the first electronic device 100 and the second electronic device 200 are the same or different. The second electronic device 200 may be a smart home device. In the case where the second electronic device 200 is a smart home device, each second electronic device 200 may be connected to form a smart home system.
在一些实施例中,第一电子设备100和第二电子设备200中安装有可用于实现通信功能的第一应用,如应用。可选的,服务器300可为第一应用对应的服务器,如/>服务器。In some embodiments, the first electronic device 100 and the second electronic device 200 are installed with a first application that can be used to implement a communication function, such as Optionally, the server 300 may be a server corresponding to the first application, such as/> server.
在一些实施例中,第二电子设备200可向服务器300发送自身的位置信息;或者,多个第二电子设备200中存在中心设备,该中心设备例如为智能家居控制面板、手机等可用于管理第二电子设备200的设备,中心设备可向服务器300发送多个第二电子设备200的位置信息。之后,第一电子设备100可向服务器300请求获取第二电子设备200的位置信息,并显示该位置信息。In some embodiments, the second electronic device 200 may send its own location information to the server 300; or, there is a central device among the multiple second electronic devices 200, such as a smart home control panel, a mobile phone, or other device that can be used to manage the second electronic devices 200, and the central device may send the location information of the multiple second electronic devices 200 to the server 300. Afterwards, the first electronic device 100 may request the server 300 to obtain the location information of the second electronic device 200 and display the location information.
这样,用户能够根据显示的位置信息,选择需要的第二电子设备200,如选择位于待通信用户身边的第二电子设备200。第一电子设备100响应于用户的选择操作可向用户选择的第二电子设备200发送通信请求,如请求通话、发送文件等。In this way, the user can select the desired second electronic device 200 according to the displayed location information, such as selecting a second electronic device 200 located near the user to be communicated. In response to the user's selection operation, the first electronic device 100 can send a communication request to the second electronic device 200 selected by the user, such as requesting a call, sending a file, etc.
可选的,本申请实施例中的第一电子设备100和第二电子设备200可以通过不同的设备实现,不同的设备可以具有相同、相似或具有一定差异性的硬件结构,比如图3所示的硬件结构。Optionally, the first electronic device 100 and the second electronic device 200 in the embodiment of the present application may be implemented by different devices, and the different devices may have the same, similar or somewhat different hardware structures, such as the hardware structure shown in FIG. 3 .
例如,以第一电子设备100具有如图3所示的硬件结构为例,对图3所示的硬件结构进行说明。For example, taking the first electronic device 100 having the hardware structure shown in FIG. 3 as an example, the hardware structure shown in FIG. 3 is described.
第一电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriberidentification module,SIM)卡接口195等。The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
可以理解的是,本申请实施例示意的结构并不构成对第一电子设备100的具体限定。在本申请另一些实施例中,第一电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented 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)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves 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, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器,使处理器110与触摸传感器通过I2C总线接口通信,实现第一电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to a touch sensor, a charger, a flash, a camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to a touch sensor through an I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the first electronic device 100.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现第一电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现第一电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the first electronic device 100.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为第一电子设备100充电,也可以用于第一电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他第一电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transfer data between the first electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other first electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备100的结构限定。在本申请另一些实施例中,第一电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic 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为第一电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the first electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the first electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
第一电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the first electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。第一电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在第一电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在第一电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the first electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,第一电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobilecommunications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband codedivision multiple access,WCDMA),时分码分多址(time-division code divisionmultiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenithsatellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
第一电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),例如采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-led,Micro-led,Micro-oled,量子点发光二极管(quantumdot light emitting diodes,QLED)等生产制造。在一些实施例中,第一电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-led, Micro-led, Micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the first electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
在一些实施例中,第一电子设备100通过无线通信模块160可获取到第二电子设备200的位置信息。之后,第一电子设备100可在显示屏194上显示第二电子设备的位置信息。之后,响应于用户在显示屏194上的操作,向对应的第二电子设备200发送通信请求,以实现通信。In some embodiments, the first electronic device 100 may obtain the location information of the second electronic device 200 through the wireless communication module 160. Then, the first electronic device 100 may display the location information of the second electronic device on the display screen 194. Then, in response to the user's operation on the display screen 194, a communication request is sent to the corresponding second electronic device 200 to achieve communication.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,第一电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first electronic 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, to expand the storage capacity of the first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储第一电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行第一电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。第一电子设备100可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。The audio 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. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The first electronic device 100 can use the audio module 170, such as music playing, recording, etc. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于第一电子设备100的表面,与显示屏194所处的位置不同。A touch sensor is also called a "touch control device". The touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be arranged on the surface of the first electronic device 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。第一电子设备100可以接收按键输入,产生与第一电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The first electronic device 100 may receive key input and generate key signal input related to user settings and function control of the first electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和第一电子设备100的接触和分离。第一电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the first electronic device 100 by inserting or removing the SIM card interface 195. The first electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
第一电子设备100或第二电子设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明第一电子设备100和第二电子设备200的软件结构。The software system of the first electronic device 100 or the second electronic device 200 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the first electronic device 100 and the second electronic device 200.
图4是本申请实施例的第一电子设备100或第二电子设备200的软件结构框图。FIG. 4 is a software structure block diagram of the first electronic device 100 or the second electronic device 200 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图4所示,应用程序包可以包括第一应用,应用市场,相机,日历,音乐,图库,地图,通话,视频等应用程序。As shown in FIG. 4 , the application package may include applications such as the first application, application market, camera, calendar, music, gallery, map, call, video, etc.
在一些实施例中,第一电子设备100和第二电子设备200中安装有用于通信的第一应用。例如,第一应用为应用。第一电子设备100和第二电子设备200响应于登录操作,可登录第一应用。之后,第一电子设备100可响应于用户操作,实现与第二电子设备200通过第一应用的通信。In some embodiments, a first application for communication is installed in the first electronic device 100 and the second electronic device 200. For example, the first application is The first electronic device 100 and the second electronic device 200 may log in to the first application in response to the login operation. Thereafter, the first electronic device 100 may implement communication with the second electronic device 200 through the first application in response to the user operation.
比如,用户1通过第一电子设备100登录第一应用的账户1,用户2通过第二电子设备200登录第二应用的账户2。之后,第一电子设备100检测到用户1通过第一应用,向账户2对应的用户请求通信的操作,可经由服务器向登录第一应用账户2的第二电子设备200发送通信请求。第二电子设备200在接收到通信请求后,可通过第一应用显示通信请求界面,响应于用户在通信请求界面的确认操作,第二电子设备200可与第一电子设备100开始进行通信。For example, user 1 logs in to account 1 of the first application through the first electronic device 100, and user 2 logs in to account 2 of the second application through the second electronic device 200. Afterwards, the first electronic device 100 detects that user 1 requests communication with the user corresponding to account 2 through the first application, and can send a communication request to the second electronic device 200 logged in to account 2 of the first application through the server. After receiving the communication request, the second electronic device 200 can display a communication request interface through the first application, and in response to the user's confirmation operation on the communication request interface, the second electronic device 200 can start communicating with the first electronic device 100.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 4 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
二维图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
以下以第一电子设备100为第一电子设备,第二电子设备200为第二电子设备,第一电子设备100或第二电子设备200为智能家居系统中的电子设备,第一应用为应用,服务器300为/>服务器为例,对本申请实施例提供的通信方法进行详细介绍。In the following, the first electronic device 100 is referred to as the first electronic device, the second electronic device 200 is referred to as the second electronic device, the first electronic device 100 or the second electronic device 200 is referred to as an electronic device in the smart home system, and the first application is referred to as Application, server 300 is/> Taking the server as an example, the communication method provided in the embodiment of the present application is described in detail.
应理解,本申请实施例提供的通信方法还可以应用于其他类型的通信系统,例如智能办公系统等。It should be understood that the communication method provided in the embodiments of the present application can also be applied to other types of communication systems, such as smart office systems, etc.
在一些实施例中,电子设备(例如为第一电子设备或第二电子设备)中安装有第一应用,第一应用中可包括多个联系人的信息。响应于用户对第一应用的操作,电子设备可创建相应联系人的卡片。这样,用户可通过卡片快速实现与卡片对应的联系人的通信。In some embodiments, a first application is installed in an electronic device (e.g., a first electronic device or a second electronic device), and the first application may include information of multiple contacts. In response to a user's operation on the first application, the electronic device may create a card for the corresponding contact. In this way, the user can quickly communicate with the contact corresponding to the card through the card.
可选的,联系人信息例如包括联系人的账户名称、用户头像、用户名称、联系方式等信息。Optionally, the contact information includes, for example, the contact's account name, user avatar, user name, contact information, and other information.
示例性的,如图5中(a)所示界面501,响应于用户对第一应用图标51的操作,电子设备显示目录选项。响应于用户对目标选项中服务卡片控件52的操作,电子设备确定用户指示添加第一应用卡片,显示如图5中(b)所示界面502。在界面502上,电子设备可显示多种显示类型的第一应用卡片。响应于用户点击控件53的操作,电子设备可将对应的第一应用卡片添加到桌面,显示如图5中(c)所示界面503。在界面503上,响应于用户点击添加联系人控件54的操作,电子设备可显示联系人列表,便于用户选择相应的联系人。响应于用户选择联系人“爸爸”的操作,电子设备可创建联系人“爸爸”的卡片。之后,电子设备可显示如图5中(d)所示界面504,在界面504上显示已创建的联系人“爸爸”的卡片55。之后,该电子设备响应于用户对卡片55的操作,可直接与爸爸使用的电子设备实现通信。Exemplarily, in the interface 501 shown in FIG. 5 (a), in response to the user's operation on the first application icon 51, the electronic device displays the directory options. In response to the user's operation on the service card control 52 in the target option, the electronic device determines that the user instructs to add the first application card, and displays the interface 502 shown in FIG. 5 (b). On the interface 502, the electronic device can display first application cards of multiple display types. In response to the user's operation of clicking the control 53, the electronic device can add the corresponding first application card to the desktop, and display the interface 503 shown in FIG. 5 (c). On the interface 503, in response to the user's operation of clicking the add contact control 54, the electronic device can display a contact list to facilitate the user to select the corresponding contact. In response to the user's operation of selecting the contact "Dad", the electronic device can create a card for the contact "Dad". Afterwards, the electronic device can display the interface 504 shown in FIG. 5 (d), and the card 55 of the created contact "Dad" is displayed on the interface 504. Afterwards, the electronic device can directly communicate with the electronic device used by Dad in response to the user's operation on the card 55.
在一些实施例中,用户需要使用的联系人卡片可能为多个,受限于桌面显示空间,桌面上只能显示有限数量的卡片。并且,若桌面显示卡片数量较多,用户在多张卡片中查找所需卡片的难度较大。那么,电子设备可响应于用户操作,创建包括多个联系人的群组卡片,用户可通过群组卡片实现与其中包括的任意联系人进行通信。这样,电子设备可在实现联系人卡片功能的同时,节约桌面空间。并且,电子设备可为用户提供更多的群组卡片功能,如群聊天、群通话、群空间浏览等。In some embodiments, the user may need to use multiple contact cards. Due to the limitation of the desktop display space, only a limited number of cards can be displayed on the desktop. In addition, if the number of cards displayed on the desktop is large, it is difficult for the user to find the required card among the multiple cards. Then, the electronic device can create a group card including multiple contacts in response to the user operation, and the user can communicate with any contact included in the group card through the group card. In this way, the electronic device can save desktop space while realizing the contact card function. In addition, the electronic device can provide users with more group card functions, such as group chat, group call, group space browsing, etc.
示例性的,如图6中(a)所示界面601,电子设备桌面上显示有多张第一应用的卡片,如联系人1卡片61、联系人2卡片62、以及联系人3卡片63,其中每一卡片对应于一个联系人。响应于用户对联系人1卡片61、联系人2卡片62、以及联系人3卡片63的选择操作,如沿附图标记64所示的箭头方向的捏合操作,电子设备可确定创建包括被选择的这三张卡片的群组卡片。之后,如图6中(b)所示界面602,电子设备可显示创建的群组卡片65,该群组卡片65上显示包括联系人1卡片61、联系人2卡片62、以及联系人3卡片63分别对应的联系人的头像,群组卡片65对应的群组的群成员包括联系人1、联系人2、以及联系人3。应理解,群组卡片中不同的群组成员对应于不同的联系人。Exemplarily, as shown in interface 601 in (a) of FIG6 , a plurality of cards of the first application are displayed on the desktop of the electronic device, such as contact 1 card 61, contact 2 card 62, and contact 3 card 63, wherein each card corresponds to a contact. In response to the user's selection operation of contact 1 card 61, contact 2 card 62, and contact 3 card 63, such as a pinch operation along the arrow direction indicated by reference numeral 64, the electronic device may determine to create a group card including the three selected cards. Thereafter, as shown in interface 602 in (b) of FIG6 , the electronic device may display the created group card 65, on which the avatars of the contacts corresponding to contact 1 card 61, contact 2 card 62, and contact 3 card 63 are displayed, respectively, and the group members of the group corresponding to group card 65 include contact 1, contact 2, and contact 3. It should be understood that different group members in the group card correspond to different contacts.
那么,电子设备可通过群组卡片65,实现原联系人1卡片61、联系人2卡片62、以及联系人3卡片63的通信功能。并且,电子设备还可以通过群组卡片65实现群组通信功能。Then, the electronic device can realize the communication functions of the original contact 1 card 61, contact 2 card 62, and contact 3 card 63 through the group card 65. In addition, the electronic device can also realize the group communication function through the group card 65.
可选的,如界面602所示,电子设备可不再显示联系人1卡片61、联系人2卡片62、以及联系人3卡片63。Optionally, as shown in interface 602 , the electronic device may no longer display the contact 1 card 61 , the contact 2 card 62 , and the contact 3 card 63 .
可选的,创建群组卡片的操作除上述捏合操作以外,还可以包括其他操作。如对卡片的长按操作、滑动操作、双击操作等手势操作。Optionally, the operation of creating a group card may include other operations besides the pinch operation, such as long press operation, sliding operation, double-click operation and other gesture operations on the card.
比如,响应于用户长按卡片1的操作,电子设备确定用户指示选中卡片1,建立包括卡片1的群组卡片。之后,电子设备可将桌面上的其他第一应用卡片显示为待选择状态。响应于用户选择一张或多张第一应用卡片的操作,电子设备可创建包括被用户选中的第一应用卡片对应的联系人以及卡片1对应的联系人的群组,并显示该群组对应的群组卡片。For example, in response to the user long pressing card 1, the electronic device determines that the user indicates that card 1 is selected, and creates a group card including card 1. Afterwards, the electronic device can display other first application cards on the desktop as waiting to be selected. In response to the user selecting one or more first application cards, the electronic device can create a group including the contacts corresponding to the first application cards selected by the user and the contacts corresponding to card 1, and display the group card corresponding to the group.
在一些实施例中,除上述单一电子设备上创建群组卡片的实现,也可通过多个电子设备之间的交互,实现群组卡片的创建。In some embodiments, in addition to the creation of a group card on a single electronic device as described above, the creation of a group card may also be achieved through interaction between multiple electronic devices.
示例性的,如图7A所示,多个用户处于相同空间,如用户间的距离小于或等于预设距离(如500米),多个用户需要创建群组卡片。那么,多个用户可各自操作自己的电子设备,通过蓝牙、Wi-Fi、雷达等多种搜索方式,发现附近的电子设备,并创建群组卡片。For example, as shown in FIG7A , multiple users are in the same space, and if the distance between the users is less than or equal to a preset distance (such as 500 meters), multiple users need to create a group card. Then, multiple users can each operate their own electronic devices, discover nearby electronic devices through multiple search methods such as Bluetooth, Wi-Fi, radar, etc., and create a group card.
可选的,多个用户的电子设备已登录第一应用,电子设备可搜索到附近登录第一应用的电子设备,并获取到账户信息。Optionally, electronic devices of multiple users have logged into the first application, and the electronic device can search for nearby electronic devices that have logged into the first application and obtain account information.
可选的,电子设备可通过全球定位系统(global positioning system,GPS)功能,确定附近搜索到的电子设备与该电子设备之间的距离是否小于或等于预设距离。Optionally, the electronic device may determine, through a global positioning system (GPS) function, whether the distance between the electronic device and the electronic device searched nearby is less than or equal to a preset distance.
比如,电子设备可通过空白群组卡片触发搜索附近的电子设备,以创建群组卡片。如图7B中(a)所示界面701,电子设备在桌面上检测到用户的双指捏合操作,显示如图7B中(b)所示界面702。在界面702上,电子设备检测到用户点击服务卡片控件71的操作后,显示如图7B中(c)所示界面703,接收用户选择创建空白卡片的操作。在界面703上,电子设备检测到用户点击“亲密帮”控件72的操作后,确定用户指示创建空白群组卡片。之后,电子设备可显示如图7B中(d)所示界面704,在界面704上显示空白群组卡片73。For example, an electronic device can trigger a search for nearby electronic devices through a blank group card to create a group card. In interface 701 as shown in (a) of Figure 7B, the electronic device detects a user's two-finger pinch operation on the desktop and displays an interface 702 as shown in (b) of Figure 7B. On interface 702, after the electronic device detects that the user clicks on the service card control 71, it displays interface 703 as shown in (c) of Figure 7B to receive the user's selection to create a blank card. On interface 703, after the electronic device detects that the user clicks on the "Intimate Help" control 72, it determines that the user instructs to create a blank group card. Afterwards, the electronic device can display interface 704 as shown in (d) of Figure 7B, and display a blank group card 73 on interface 704.
在空白群组卡片建立之后,如图7C中(a)所示界面705,响应于用户点击空白群组卡片73上显示的控件74的操作,电子设备发送广播消息,该广播消息用于请求建立群组。同样的,该电子设备附近的电子设备也可响应于用户操作,创建空白群组卡片,并发送广播消息。After the blank group card is created, as shown in interface 705 in FIG. 7C (a), in response to the user clicking on the control 74 displayed on the blank group card 73, the electronic device sends a broadcast message, which is used to request the creation of a group. Similarly, electronic devices near the electronic device can also create a blank group card and send a broadcast message in response to the user's operation.
那么,该电子设备可搜索附近其他电子设备发送的广播消息。其中,广播消息中可携带第一应用的账户信息,如登录账号、联系方式、用户头像等信息,电子设备获取到其他电子设备发送的广播消息后,可获取到其中携带的账户信息,根据账户信息确定群组成员。Then, the electronic device can search for broadcast messages sent by other nearby electronic devices. The broadcast messages can carry the account information of the first application, such as login account, contact information, user avatar, etc. After the electronic device obtains the broadcast message sent by other electronic devices, it can obtain the account information carried therein and determine the group members according to the account information.
之后,如图7C中(b)所示界面706,电子设备可在空白群组卡片73上显示搜索到的其他电子设备对应的标识,如该标识为电子设备登录第一应用的用户头像,或者也可以为设备标识等。电子设备检测到用户点击确认控件75的操作后,可确定用户确定已搜索到全部待建立群组的联系人对应的电子设备,那么可创建群组卡片。如图7C中(c)所示界面707,电子设备显示创建的群组卡片76,该群组卡片76中包括对应于图7A所示的三个电子设备的联系人。Afterwards, as shown in interface 706 in (b) of FIG. 7C , the electronic device may display the identifiers corresponding to other searched electronic devices on the blank group card 73, such as the identifier being the user avatar of the electronic device logging into the first application, or the device identifier, etc. After the electronic device detects that the user clicks the confirmation control 75, it may determine that the user has determined that the electronic devices corresponding to all the contacts to be grouped have been searched, and then a group card may be created. As shown in interface 707 in (c) of FIG. 7C , the electronic device displays the created group card 76, which includes the contacts corresponding to the three electronic devices shown in FIG. 7A .
如此,通过近距离通信的方式,电子设备可不必再响应于用户选择多个卡片的操作,创建群组,降低用户操作难度,提高群组创建效率。In this way, through the short-range communication method, the electronic device no longer needs to respond to the user's operation of selecting multiple cards to create a group, thereby reducing the difficulty of user operation and improving the efficiency of group creation.
此外,电子设备在未保存联系人信息的情况下,也可快速完成群组的创建。比如,在聚会场景中,多个未保存联系人信息的用户,可通过上述图7A-图7C所述方式,创建群组卡片,便于后续联系。In addition, the electronic device can also quickly complete the creation of a group without saving contact information. For example, in a party scene, multiple users who have not saved contact information can create a group card in the manner described in Figures 7A-7C above to facilitate subsequent contact.
可选的,电子设备也可在显示第一应用卡片的同时,在显示的群组卡片中包括该第一应用卡片对应的联系人。这样,用户可通过第一应用卡片、或通过群组卡片联系到对应的联系人,便于用户的灵活操作。Optionally, the electronic device may also include the contact corresponding to the first application card in the displayed group card while displaying the first application card. In this way, the user can contact the corresponding contact through the first application card or through the group card, which is convenient for the user's flexible operation.
在一些实施例中,电子设备还可以响应于用户操作,对群组卡片中的群组成员进行编辑。例如,新增群组成员,删除群组成员等。In some embodiments, the electronic device may also edit the group members in the group card in response to user operations, for example, adding a new group member, deleting a group member, etc.
示例性的,电子设备可响应于用户操作,添加群组卡片中的群组成员。如图8中(a)所示界面801,电子设备响应于用户对联系人1卡片81和联系人2卡片82的捏合操作,创建群组卡片。之后,电子设备显示如图8中(b)所示界面802,在界面802上显示已创建的群组卡片83,群组卡片83包括联系人1和联系人2。用户后续可能需要在群组卡片中添加其他需要的联系人。如电子设备检测到用户向群组卡片83显示区域内拖动联系人3卡片84的操作,确定将联系人3添加到群组卡片83中。之后,如图8中(c)所示界面803,电子设备可显示添加新的群组成员后的群组卡片83,此时群组卡片83包括联系人1、联系人2、以及联系人3。Exemplarily, the electronic device may add group members in a group card in response to a user operation. As shown in interface 801 in FIG. 8 (a), the electronic device creates a group card in response to the user's pinching operation on contact 1 card 81 and contact 2 card 82. Afterwards, the electronic device displays interface 802 as shown in FIG. 8 (b), and displays the created group card 83 on interface 802, where group card 83 includes contact 1 and contact 2. The user may need to add other required contacts to the group card later. If the electronic device detects that the user drags contact 3 card 84 into the display area of group card 83, it determines to add contact 3 to group card 83. Afterwards, as shown in interface 803 in FIG. 8 (c), the electronic device may display group card 83 after adding new group members, where group card 83 includes contact 1, contact 2, and contact 3.
如此,在需要新增群组成员(如新增联系人等)的情况下,电子设备可实现增加群组卡片中的群组成员,而不必再重新创建群组卡片,降低用户操作难度,提升用户使用体验。In this way, when a new group member needs to be added (such as a new contact, etc.), the electronic device can add the group member in the group card without having to recreate the group card, thereby reducing the user's operation difficulty and improving the user experience.
可选的,电子设备也可响应于用户操作,将未创建卡片的联系人,添加到群组卡片中。Optionally, the electronic device may also add contacts for which no card has been created to the group card in response to a user operation.
比如,电子设备检测到用户长按群组卡片的操作,可确定用户指示添加新的群组成员。之后,电子设备可显示电话簿,响应于用户在电话簿中选择联系人的操作,将用户选择的联系人添加到群组卡片中。For example, the electronic device detects that the user long presses the group card and can determine that the user instructs to add a new group member. Afterwards, the electronic device can display the phone book, and in response to the user selecting a contact in the phone book, add the contact selected by the user to the group card.
又示例性的,电子设备可响应于用户操作,删除群组卡片中的群组成员。如图9中(a)所示界面901,电子设备显示群组卡片91,该群组卡片91中包括3个群组成员。电子设备检测到用户将群组卡片91中显示的用户头像92拖出群组卡片91的显示区域的操作,如沿箭头93所示方向移动用户头像92的操作,可确定用户指示删除群组中用户头像92对应的群组成员。之后,电子设备显示如图9中(b)所示界面902。在界面902上,电子设备显示删除群组成员后的群组卡片91,以及被删除的用户头像92对应的群组成员对应的联系人卡片94。As another example, the electronic device may delete group members in a group card in response to a user operation. As shown in interface 901 in (a) of FIG9 , the electronic device displays a group card 91, which includes three group members. The electronic device detects an operation by the user to drag the user avatar 92 displayed in the group card 91 out of the display area of the group card 91, such as an operation to move the user avatar 92 in the direction indicated by the arrow 93, and may determine that the user instructs to delete the group member corresponding to the user avatar 92 in the group. Afterwards, the electronic device displays interface 902 as shown in (b) of FIG9 . On interface 902, the electronic device displays the group card 91 after deleting the group members, as well as contact cards 94 corresponding to the group members corresponding to the deleted user avatar 92.
如此,响应于用户操作,电子设备可删除部分群组成员,便于用户灵活的使用群组卡片功能,满足用户使用需求。In this way, in response to user operations, the electronic device can delete some group members, so that the user can flexibly use the group card function and meet the user's usage needs.
可选的,电子设备响应于用户操作,删除群组卡片中的群组成员后,也可不必再显示被删除的群组成员对应的联系人卡片,以节约桌面显示空间。Optionally, after deleting a group member in a group card in response to a user operation, the electronic device may no longer need to display a contact card corresponding to the deleted group member, so as to save desktop display space.
在一些实施例中,群组卡片包括的群组成员的数量小于或等于预设阈值。这样,群组卡片上显示的用户头像数量也可小于或等于预设阈值,从而保证显示效果,也便于用户操作群组成员。In some embodiments, the number of group members included in the group card is less than or equal to a preset threshold. In this way, the number of user avatars displayed on the group card can also be less than or equal to the preset threshold, thereby ensuring the display effect and facilitating the user to operate the group members.
示例性的,预设阈值例如为6。如图10中(a)所示界面1001,电子设备显示群组卡片101,群组卡片101上显示有2个用户头像,对应于2个群组成员。如图10中(b)所示界面1002,电子设备显示群组卡片102,群组卡片102上显示有3个用户头像,对应于3个群组成员。如图10中(c)所示界面1003,电子设备显示群组卡片103,群组卡片103上显示4个有用户头像,对应于4个群组成员。如图10中(d)所示界面1004,电子设备显示群组卡片104,群组卡片104上显示有5个用户头像,对应于5个群组成员。如图10中(e)所示界面1005,电子设备显示群组卡片105,群组卡片105上显示有6个用户头像,对应于6个群组成员。Exemplarily, the preset threshold is, for example, 6. As shown in interface 1001 in (a) of FIG. 10 , the electronic device displays a group card 101, and two user avatars are displayed on the group card 101, corresponding to two group members. As shown in interface 1002 in (b) of FIG. 10 , the electronic device displays a group card 102, and three user avatars are displayed on the group card 102, corresponding to three group members. As shown in interface 1003 in (c) of FIG. 10 , the electronic device displays a group card 103, and four user avatars are displayed on the group card 103, corresponding to four group members. As shown in interface 1004 in (d) of FIG. 10 , the electronic device displays a group card 104, and five user avatars are displayed on the group card 104, corresponding to five group members. As shown in interface 1005 in (e) of FIG. 10 , the electronic device displays a group card 105, and six user avatars are displayed on the group card 105, corresponding to six group members.
可选的,电子设备按照预设显示规则,在群组卡片上显示多个群组成员对应的用户头像。Optionally, the electronic device displays user avatars corresponding to multiple group members on the group card according to a preset display rule.
其中,用户头像为群组成员对应的第一应用账户信息中包括的用户头像,如群组成员登录第一应用过程中使用的头像。预设显示规则例如包括按照群组成员的活跃度,依次显示多个群组成员对应的用户头像。其中,活跃度最高的群组成员对应的用户头像显示在其他用户头像的上方。The user avatar is a user avatar included in the first application account information corresponding to the group member, such as an avatar used by the group member when logging into the first application. The preset display rule includes, for example, displaying user avatars corresponding to multiple group members in sequence according to the activity of the group members. The user avatar corresponding to the most active group member is displayed above the other user avatars.
可选的,在群组卡片上相比于其他用户头像占用的显示区域,活跃度最高的群组成员对应的用户头像占用的显示区域更大。以实现突出显示活跃的群组成员对应的用户头像。Optionally, on the group card, the user portrait corresponding to the most active group member occupies a larger display area than the display areas occupied by other user portraits, so as to highlight the user portraits corresponding to the active group members.
可选的,电子设备可通过判断与群组成员联系的频次、最近联系时间、加入群组的时间、是否有未读消息、未读消息接收时间等多种方式,确定群组成员的活跃度。Optionally, the electronic device may determine the activity of group members by judging the frequency of contact with group members, the time of last contact, the time of joining the group, whether there are unread messages, the time of receiving unread messages, and other methods.
可选的,电子设备可按照预设周期更新群组卡片上群组成员对应的用户头像的显示,以便于用户能够获知最新的群组成员情况。Optionally, the electronic device may update the display of user avatars corresponding to group members on the group card according to a preset period, so that the user can learn about the latest status of group members.
比如,如图10所示,电子设备显示按照群组成员的活跃度,在群组卡片上显示多个群组成员对应的用户头像。如图10中(b)所示的群组卡片102,电子设备将活跃度最高的群组成员对应的用户头像106放大显示在另外两个群组成员对应的用户头像上方,以实现突出显示用户头像106,便于用户操作用户头像106。For example, as shown in FIG10 , the electronic device displays user avatars corresponding to multiple group members on a group card according to the activity of the group members. As shown in FIG10 (b) of the group card 102 , the electronic device enlarges and displays the user avatar 106 corresponding to the most active group member above the user avatars corresponding to the other two group members, so as to highlight the user avatar 106 and facilitate the user to operate the user avatar 106 .
在一些实施例中,电子设备可显示多张群组卡片,不同的群组卡片中可包括相同的群组成员。In some embodiments, the electronic device may display multiple group cards, and different group cards may include the same group members.
示例性的,如图11所示界面1101,电子设备显示群组卡片111和群组卡片112,其中群组卡片111包括6个群组成员,群组卡片112包括2个群组成员。其中,群组卡片111上显示的用户头像113和群组卡片112上显示的用户头像114对应于相同的联系人。即,群组卡片111和群组卡片112对应的两个群组包括相同的群组成员。For example, as shown in interface 1101 of FIG. 11 , the electronic device displays group card 111 and group card 112, wherein group card 111 includes 6 group members and group card 112 includes 2 group members. The user avatar 113 displayed on group card 111 and the user avatar 114 displayed on group card 112 correspond to the same contact. That is, the two groups corresponding to group card 111 and group card 112 include the same group members.
在一些实施例中,电子设备响应于用户操作,可在群组创建阶段,创建家庭账户的群组卡片;或者,将已创建的群组卡片设置为家庭账户的群组卡片。可选的,家庭账户的群组卡片中的群组成员可实现共享功能,如云空间共享、位置共享、设备时间共享等。In some embodiments, the electronic device may, in response to a user operation, create a group card for the family account during the group creation phase; or set an already created group card as the group card for the family account. Optionally, the group members in the group card for the family account may implement sharing functions, such as cloud space sharing, location sharing, device time sharing, etc.
示例性的,如图12中(a)所示界面1201,电子设备显示家庭账户的群组卡片121。响应于用户点击群组卡片121上空白显示区域的操作,显示如图12中(b)所示的群组详情界面1202。之后,响应于用户点击共享设置控件122的操作,电子设备可显示如图12中(c)所示界面1203,在界面1203上用户可设置允许共享的内容。For example, as shown in interface 1201 in (a) of FIG. 12 , the electronic device displays a group card 121 of a family account. In response to a user clicking on a blank display area on the group card 121, a group details interface 1202 as shown in (b) of FIG. 12 is displayed. Afterwards, in response to a user clicking on a sharing setting control 122, the electronic device may display an interface 1203 as shown in (c) of FIG. 12 , on which the user may set content that is allowed to be shared.
比如,电子设备响应于用户点击云空间控件123,可开启或关闭云空间共享功能。在云空间共享功能开启后,群组成员可通过第一应用,查看使用该电子设备的用户在云空间中分享的内容。如实现家庭成员在云空间中共享彼此购买的内容等。For example, in response to the user clicking the cloud space control 123, the electronic device can turn on or off the cloud space sharing function. After the cloud space sharing function is turned on, group members can view the content shared by the user using the electronic device in the cloud space through the first application, such as enabling family members to share content purchased by each other in the cloud space.
又比如,电子设备响应于用户点击位置控件124的操作,可开启或关闭位置共享功能。在位置共享功能开启后,群组成员可通过第一应用获取到电子设备的实时位置。For another example, the electronic device may turn on or off the location sharing function in response to the user clicking the location control 124. After the location sharing function is turned on, the group members may obtain the real-time location of the electronic device through the first application.
如此,满足用户的共享功能的使用需求,提升用户的使用体验。In this way, the user's needs for sharing functions are met and the user experience is improved.
可选的,非家庭账户的群组卡片可关闭群组共享功能,避免隐私的泄露。Optionally, group sharing can be disabled on group cards of non-family accounts to avoid privacy leaks.
示例性的,如图7A-图7C所示场景,如建立该群组的群组成员为与用户刚刚建立合作关系的一般联系人,可设置该群组为非家庭账户群组,不开启群组共享功能。For example, in the scenario shown in FIG. 7A-FIG 7C , if the group members who establish the group are general contacts with whom the user has just established a cooperative relationship, the group can be set as a non-family account group and the group sharing function cannot be enabled.
在一些实施例中,电子设备创建群组卡片后,默认加入该群组卡片。电子设备在显示群组卡片的过程中,可不在群组卡片上显示电子设备登录的第一应用账户的用户头像,以节约群组卡片显示空间。电子设备在显示群组详情界面的过程中,可显示电子设备登录的第一应用账户的用户头像,便于用户确认群组成员。In some embodiments, after the electronic device creates a group card, it joins the group card by default. When the electronic device displays the group card, it may not display the user avatar of the first application account logged in by the electronic device on the group card to save the display space of the group card. When the electronic device displays the group details interface, it may display the user avatar of the first application account logged in by the electronic device to facilitate the user to confirm the group members.
示例性的,如图12中(a)所示界面1201,电子设备显示群组卡片121,群组卡片121上显示有三个用户头像,如分别为联系人“爸爸”对应的用户头像、联系人“妈妈”对应的用户头像、以及联系人“哥哥”对应的用户头像。应理解,电子设备创建群组后,默认加入该群组。那么,如图12中(b)所示的群组详情界面1202,显示的群组成员包括“爸爸”、“妈妈”、“哥哥”、以及“我”。Exemplarily, as shown in interface 1201 in (a) of FIG12 , the electronic device displays a group card 121, and three user avatars are displayed on the group card 121, such as the user avatar corresponding to the contact "Dad", the user avatar corresponding to the contact "Mom", and the user avatar corresponding to the contact "Brother". It should be understood that after the electronic device creates a group, it joins the group by default. Then, as shown in group details interface 1202 in (b) of FIG12 , the displayed group members include "Dad", "Mom", "Brother", and "Me".
可选的,群组卡片上显示的用户头像也可为全部群组成员的用户头像,包括电子设备登录的第一应用账户的用户头像。Optionally, the user avatar displayed on the group card may also be the user avatars of all group members, including the user avatar of the first application account logged in by the electronic device.
以上对群组卡片的创建、编辑、显示、共享功能等进行了详细介绍。如下对电子设备如何获取群组成员附近的电子设备的实现过程进行详细介绍。The above describes in detail the creation, editing, display, and sharing functions of the group card. The following describes in detail the implementation process of how an electronic device obtains electronic devices near group members.
在一些实施例中,用户直接通过电子设备显示的群组卡片向群组成员发起通信请求。比如,响应于用户点击群组卡片上显示的用户头像的操作,电子设备向服务器发送通信请求,并在通信请求中携带用户头像对应的账户信息(如账户名称)。服务器可根据通信请求中携带的账户信息,向相应的已登录该账户的远端电子设备转发通信请求,以实现显示群组卡片的电子设备(如图2所示的第一电子设备100)与远端电子设备(如图2所示的第二电子设备200)之间的通信。In some embodiments, the user directly initiates a communication request to the group members through the group card displayed by the electronic device. For example, in response to the user clicking on the user avatar displayed on the group card, the electronic device sends a communication request to the server, and carries the account information (such as the account name) corresponding to the user avatar in the communication request. The server can forward the communication request to the corresponding remote electronic device that has logged into the account based on the account information carried in the communication request, so as to realize the communication between the electronic device displaying the group card (the first electronic device 100 shown in FIG. 2) and the remote electronic device (the second electronic device 200 shown in FIG. 2).
但是,由于群组卡片中的群组成员可能拥有一个或多个电子设备,一个或多个电子设备就可登录相同的第一应用账户。那么,最终建立通信连接的远端电子设备不是用户需要建立通信连接的电子设备。However, since the group members in the group card may have one or more electronic devices, the one or more electronic devices may log in to the same first application account. Then, the remote electronic device that finally establishes a communication connection is not the electronic device that the user needs to establish a communication connection with.
比如,用户A正在观看大屏设备播放的视频,该大屏设备位于客厅中且已登录用户A的第一应用账户,位于卧室中的用户A的平板也登录用户A的第一应用账户。此时,用户B的电子设备通过群组卡片呼叫用户A,那么最终该通信请求可能发送至平板。但是,由于用户A并不在卧室,可能错过此次通信请求。For example, user A is watching a video played on a large-screen device in the living room and logged in to user A's first application account. User A's tablet in the bedroom is also logged in to user A's first application account. At this time, user B's electronic device calls user A through a group card, and the communication request may eventually be sent to the tablet. However, since user A is not in the bedroom, he may miss the communication request.
由此,本申请实施例提供一种通信方法,第一电子设备可获取到群组成员附近的电子设备的信息,并显示。这样,用户可选择位于群组成员附近的电子设备进行通信,保证通信的成功率,提升用户的使用体验。Therefore, the embodiment of the present application provides a communication method, whereby a first electronic device can obtain information about electronic devices near group members and display it. In this way, a user can select an electronic device near group members for communication, thereby ensuring the success rate of communication and improving the user experience.
如需确定群组成员附近的电子设备,需确定群组成员和各个电子设备的位置信息。如下以智能家居通信系统为例,对智能家居系统中的各个电子设备的位置信息获取过程进行详细介绍。If electronic devices near group members are to be determined, the location information of group members and each electronic device must be determined. The following takes a smart home communication system as an example to introduce in detail the process of obtaining the location information of each electronic device in the smart home system.
其中,这些电子设备可以为如图2所示的第二电子设备200,这些电子设备的位置信息,用于后续第一电子设备100在群组卡片上显示位于群组成员附近的电子设备,从而便于用户确定建立通信连接的第二电子设备200。Among them, these electronic devices can be the second electronic device 200 as shown in Figure 2. The location information of these electronic devices is used for the first electronic device 100 to display electronic devices located near group members on the group card later, so as to facilitate the user to determine the second electronic device 200 to establish a communication connection.
示例性的,如下表1所示,在家庭场景中,空间信息例如包括客厅、卧室、书房等房间信息,用户、电子设备可处于各个空间中。设备状态信息用于表示登录第一应用的电子设备的状态,如处于开机状态、或处于关机状态等。应理解,处于开机状态的电子设备可建立通信连接,处于关机状态的电子设备不可建立通信连接。设备类型用于表示电子设备的具体形态,如为大屏设备,音箱,手机等,可通过设备标识,确定对应的电子设备,进而确定电子设备的设备类型。人员信息用于表示空间内是否有人,在有人的情况下是单人还是多人。人机距离用于确定目标用户距离电子设备之间的距离信息、目标用户是否面向电子设备、目标用户是否与电子设备处于同一空间等信息。可通过如下表1所示的各种信息,确定位于目标用户附近的电子设备。Exemplarily, as shown in Table 1 below, in a home scene, the spatial information includes, for example, room information such as a living room, bedroom, and study, and users and electronic devices can be in various spaces. The device status information is used to indicate the state of the electronic device logged into the first application, such as being in a powered-on state or in a powered-off state. It should be understood that an electronic device in a powered-on state can establish a communication connection, and an electronic device in a powered-off state cannot establish a communication connection. The device type is used to indicate the specific form of the electronic device, such as a large-screen device, a speaker, a mobile phone, etc. The corresponding electronic device can be determined by the device identifier, and then the device type of the electronic device can be determined. Personnel information is used to indicate whether there is someone in the space, and if there is someone, whether it is a single person or multiple people. The human-machine distance is used to determine the distance information between the target user and the electronic device, whether the target user is facing the electronic device, and whether the target user is in the same space as the electronic device. The electronic device located near the target user can be determined by various information shown in Table 1 below.
应理解,目标用户与第二电子设备位于同一智能家居系统对应的家庭空间中。第一电子设备显示的群组卡片上可包括目标用户对应的用户头像,第一电子设备可位于该家庭空间以外,或者位于该家庭空间内。It should be understood that the target user and the second electronic device are located in the same home space corresponding to the smart home system. The group card displayed by the first electronic device may include a user avatar corresponding to the target user, and the first electronic device may be located outside the home space or within the home space.
表1Table 1
示例性的,图13为本申请实施例提供的一种用于确定目标用户附近电子设备的方法的流程示意图。如图13所示,该方法包括如下步骤。For example, Fig. 13 is a flow chart of a method for determining electronic devices near a target user provided by an embodiment of the present application. As shown in Fig. 13, the method includes the following steps.
其中,智能家居系统中的任一电子设备,或中心设备可用于确定目标用户附近电子设备。如下以中心设备为智能家居控制面板,由智能家居控制面板确定目标用户附近电子设备为例,对该过程进行详细介绍。Among them, any electronic device in the smart home system, or the central device can be used to determine the electronic devices near the target user. The following takes the central device as a smart home control panel, and the smart home control panel determines the electronic devices near the target user as an example to describe the process in detail.
可选的,目标用户附近的电子设备为已登录目标用户对应的第一应用账户的电子设备。第一电子设备可通过第一应用账户,请求与这些已登录第一应用账户的电子设备建立通信连接。Optionally, the electronic devices near the target user are electronic devices that have logged into the first application account corresponding to the target user. The first electronic device can request to establish a communication connection with these electronic devices that have logged into the first application account through the first application account.
S1301、智能家居控制面板确定目标用户所在的空间。S1301. The smart home control panel determines the space where the target user is located.
其中,目标用户所在的空间例如可以为如上表1所示的空间信息对应的空间,如为客厅、卧室、书房、厨房、餐厅、浴室、影音室等。The space where the target user is located may be, for example, a space corresponding to the space information shown in Table 1 above, such as a living room, bedroom, study, kitchen, dining room, bathroom, audio-visual room, etc.
在一些实施例中,一般用户具有自己的常用设备,如手机,一般情况下用户会携带该常用设备。那么,智能家居控制面板可根据目标用户的常用设备的位置,确定目标用户所在的空间。In some embodiments, a general user has his/her own commonly used device, such as a mobile phone, and the user generally carries the commonly used device with him/her. Then, the smart home control panel can determine the space where the target user is located according to the location of the commonly used device of the target user.
可选的,智能家居控制面板可响应于用户操作,设置用户的常用设备。或者,智能家居控制面板根据电子设备的设备类型,确定用户的常用设备。比如,将手机设置为用户的常用设备。Optionally, the smart home control panel can set the user's frequently used devices in response to user operations. Alternatively, the smart home control panel determines the user's frequently used devices based on the device type of the electronic device. For example, a mobile phone is set as the user's frequently used device.
示例性的,手机A响应于用户A的操作,启动第一应用,并创建第一应用的账户,如账户A。智能家居控制面板可获取到手机A登录的第一应用的账户信息,如账户A。之后,智能家居控制面板响应于用户操作,将手机A设置为用户A的常用设备,建立账户A和手机A的对应关系。后续,智能家居控制面板可确定该手机A的位置,将该位置设置为目标用户(即用户A)的位置,以确定目标用户所在的空间。Exemplarily, mobile phone A starts the first application in response to the operation of user A, and creates an account for the first application, such as account A. The smart home control panel can obtain the account information of the first application logged in by mobile phone A, such as account A. Afterwards, the smart home control panel sets mobile phone A as a common device of user A in response to the user operation, and establishes a corresponding relationship between account A and mobile phone A. Subsequently, the smart home control panel can determine the location of mobile phone A, set the location as the location of the target user (i.e., user A), and determine the space where the target user is located.
在另一些实施例中,电子设备在响应于用户A的操作,创建用户A的第一应用账户的过程中,可采集用户A的人脸信息。在第一应用账户创建完成后,电子设备可将账户信息和对应的人脸信息发送至智能家居控制面板,智能家居设备控制面板可建立账户信息与人脸信息的对应关系。后续,智能家居控制面板可通过人脸识别的方式,确定不同账户对应的用户的位置,确定目标用户所在的空间。其中,第一应用账户创建过程,可参考现有技术,对此本申请实施例不做具体限制。In other embodiments, the electronic device may collect the facial information of user A in the process of creating the first application account of user A in response to the operation of user A. After the first application account is created, the electronic device may send the account information and the corresponding facial information to the smart home control panel, and the smart home device control panel may establish a corresponding relationship between the account information and the facial information. Subsequently, the smart home control panel may determine the location of users corresponding to different accounts and the space where the target user is located by means of facial recognition. Among them, the process of creating the first application account may refer to the prior art, and the embodiments of the present application are not specifically limited to this.
示例性的,智能家居设备建立账户A和用户A的人脸信息之间的对应关系。在智能家居设备需要确定账户A对应的设备情况时,可根据账户信息与人脸信息的对应关系,确定账户A对应的目标用户为用户A。智能家居控制面板可通过自身配置的摄像头和/或智能家居系统中其他电子设备配置的摄像头,采集各个空间中的图像,根据保存的用户A的人脸信息,通过图像分析,确定用户A所在空间。Exemplarily, the smart home device establishes a correspondence between account A and the facial information of user A. When the smart home device needs to determine the device status corresponding to account A, it can determine that the target user corresponding to account A is user A based on the correspondence between the account information and the facial information. The smart home control panel can collect images in various spaces through its own configured cameras and/or cameras configured by other electronic devices in the smart home system, and determine the space where user A is located through image analysis based on the stored facial information of user A.
S1302、智能家居控制面板确定该空间中的电子设备的设备信息。S1302: The smart home control panel determines device information of electronic devices in the space.
其中,电子设备的设备信息例如包括设备标识、所在空间信息、是否登录过第一应用、登录的第一应用账户信息、设备状态、设备类型等中的一项或几项信息。The device information of the electronic device may include, for example, one or more of the following information: device identification, location information, whether the first application has been logged in, account information of the first application logged in, device status, device type, etc.
在一些实施例中,智能家居控制面板可确定智能家居系统中各个电子设备的位置。那么,智能家居控制面板在确定目标用户所在空间后,可确定位于该空间中的电子设备。并且,可确定该空间中的电子设备的设备状态。In some embodiments, the smart home control panel can determine the location of each electronic device in the smart home system. Then, after determining the space where the target user is located, the smart home control panel can determine the electronic devices located in the space. Furthermore, the device status of the electronic devices in the space can be determined.
比如,智能家居设备确定目标用于位于客厅中,可再确定位于客厅中的电子设备,以及客厅中的各个电子设备的设备状态。如是否开机、是否正在使用等。For example, if the smart home device determines that the target user is located in the living room, it can further determine the electronic devices located in the living room and the device status of each electronic device in the living room, such as whether it is turned on or in use.
在一些实施例中,智能家居系统中的电子设备可登录相同或不相同的第一应用账户,智能家居控制面板可确定智能家居系统中的各个电子设备中,登录过第一应用的电子设备,以及获取登录的账户信息。In some embodiments, electronic devices in the smart home system can log in to the same or different first application accounts, and the smart home control panel can determine the electronic devices in the smart home system that have logged in to the first application, and obtain the logged-in account information.
可选的,目标用户所在空间中的电子设备可登录相同或不相同的第一应用账户。第一电子设备在与目标用户的第二电子设备建立通信连接的过程中,通过目标用户的目标账户与登录该目标账户的第二电子设备建立通信连接。那么,智能家居设备在确定目标用户后,可确定目标用户对应的目标账户,进而根据已获取的智能家居系统中各个电子设备登录的账户信息,确定目标用户所在空间中的电子设备中登录目标账户的电子设备。后续,智能家居控制面板可确定这些电子设备与目标用户之间的距离。也就是说,在后续人机距离判断过程中,排除登录其他第一应用账户的电子设备的干扰。Optionally, electronic devices in the space where the target user is located can log in to the same or different first application accounts. In the process of establishing a communication connection with the second electronic device of the target user, the first electronic device establishes a communication connection with the second electronic device logged in to the target account through the target account of the target user. Then, after determining the target user, the smart home device can determine the target account corresponding to the target user, and then determine the electronic device logged in to the target account among the electronic devices in the space where the target user is located based on the account information logged in by each electronic device in the smart home system that has been obtained. Subsequently, the smart home control panel can determine the distance between these electronic devices and the target user. In other words, in the subsequent human-computer distance judgment process, interference from electronic devices logged in to other first application accounts is excluded.
可选的,结合上述智能家居设备确定的目标用户所在空间中的电子设备的设备状态,智能家居设备可确定已登录目标账户的电子设备的设备状态。其中,本申请实施例不限制智能家居设备确定设备状态、目标账户登录情况的先后顺序。Optionally, in combination with the device status of the electronic device in the target user's space determined by the smart home device, the smart home device can determine the device status of the electronic device that has logged into the target account. The embodiment of the present application does not limit the order in which the smart home device determines the device status and the target account login status.
S1303、智能家居控制面板确定位于目标用户附近的电子设备。S1303: The smart home control panel determines electronic devices located near the target user.
在一些实施例中,智能家居控制面板根据目标用户的常用设备,确定目标用户所在的空间。那么,智能家居控制面板可根据常用设备与空间中其他电子设备的距离,确定最终需要的目标电子设备。In some embodiments, the smart home control panel determines the space where the target user is located based on the target user's commonly used devices. Then, the smart home control panel can determine the target electronic device that is ultimately needed based on the distance between the commonly used devices and other electronic devices in the space.
比如,智能家居控制面板通过目标用户携带的手机,确定目标用户位于客厅(即步骤S1301)。之后,智能家居控制面板确定位于客厅的电子设备中,处于开机状态,且通过目标账户登录第一应用的电子设备(即步骤S1302)。之后,智能家居控制面板确定这些电子设备与目标用户手机之间的距离,确定其中距离最小值对应的目标电子设备。那么,智能家居控制面板可确定该目标电子设备为目标用户附近的电子设备(即步骤S1303)。For example, the smart home control panel determines that the target user is in the living room through the mobile phone carried by the target user (i.e., step S1301). Afterwards, the smart home control panel determines the electronic devices located in the living room, which are turned on and have logged into the first application through the target account (i.e., step S1302). Afterwards, the smart home control panel determines the distance between these electronic devices and the target user's mobile phone, and determines the target electronic device corresponding to the minimum distance. Then, the smart home control panel can determine that the target electronic device is an electronic device near the target user (i.e., step S1303).
在另一些实施例中,智能家居控制面板根据目标用户的人脸信息,确定目标用户所在的空间。那么,智能家居控制面板可再通过人脸识别技术,确定该空间中其他电子设备与目标用户之间的距离,确定最终需要的目标电子设备。In other embodiments, the smart home control panel determines the space where the target user is located based on the target user's facial information. Then, the smart home control panel can use facial recognition technology to determine the distance between other electronic devices in the space and the target user, and determine the target electronic device that is ultimately needed.
比如,智能家居控制面板通过人脸识别技术,确定目标用户位于客厅(即步骤S1301)。之后,智能家居控制面板确定位于客厅的电子设备中,处于开机状态,且通过目标账户登录第一应用的电子设备(即步骤S1302)。之后,智能家居控制面板通过人脸识别技术,确定这些电子设备与目标用户之间的距离,确定其中距离最小值对应的目标电子设备。那么,智能家居控制面板可确定该目标电子设备为目标用户附近的电子设备(即步骤S1303)。For example, the smart home control panel uses facial recognition technology to determine that the target user is located in the living room (i.e., step S1301). Afterwards, the smart home control panel determines the electronic devices located in the living room, which are turned on and have logged into the first application through the target account (i.e., step S1302). Afterwards, the smart home control panel uses facial recognition technology to determine the distance between these electronic devices and the target user, and determines the target electronic device corresponding to the minimum distance. Then, the smart home control panel can determine that the target electronic device is an electronic device near the target user (i.e., step S1303).
在一些实施例中,智能家居控制面板还可以通过人脸识别技术,确定目标用户人脸面向的方向,获取目标用户面向信息,以确定目标用户面向的方向的电子设备。这样,智能家居控制设备结合距离信息和目标用户面向信息,可更加准确的确定目标电子设备。In some embodiments, the smart home control panel can also use face recognition technology to determine the direction in which the target user's face is facing, obtain the target user's facing information, and determine the electronic device in the direction in which the target user is facing. In this way, the smart home control device can more accurately determine the target electronic device by combining the distance information and the target user's facing information.
比如,在目标用户所在的空间中,多个处于开机状态且已登录目标账户的电子设备与目标用户之间的距离相近。那么,智能家居控制面板可通过人脸识别技术,确定目标用户面向的方向,将确定的多个电子设备中该方向的电子设备确定为目标电子设备。For example, in the space where the target user is located, multiple electronic devices that are turned on and have logged into the target account are close to the target user. Then, the smart home control panel can use face recognition technology to determine the direction the target user is facing, and determine the electronic device in the direction among the multiple electronic devices as the target electronic device.
这样,后续第一电子设备向确定的目标电子设备发起通信,由于目标用户面向该目标电子设备,可快速响应通信请求。In this way, the first electronic device subsequently initiates communication to the determined target electronic device, and because the target user is facing the target electronic device, the communication request can be quickly responded to.
在一些实施例中,智能家居控制面板确定的目标用户附近的电子设备可包括与目标用户处于同一空间的一个或多个设备。In some embodiments, the electronic devices near the target user determined by the smart home control panel may include one or more devices in the same space as the target user.
比如,智能家居控制面板在确定目标用户位于客厅后,可确定同样位于客厅中处于开机状态,且登录目标账户的电子设备。之后,智能家居设备可将这部分电子设备全部确定为目标用户附近的电子设备。For example, after determining that the target user is in the living room, the smart home control panel can determine the electronic devices that are also in the living room, turned on, and logged into the target account. Afterwards, the smart home device can determine all of these electronic devices as electronic devices near the target user.
在一些实施例中,智能家居设备在确定目标用户附近的电子设备的过程中,还可以确定目标用户正在使用的电子设备,将该电子设备确定为目标用户附近的电子设备,或目标用户附近的电子设备之一。In some embodiments, in the process of determining the electronic device near the target user, the smart home device can also determine the electronic device that the target user is using, and determine the electronic device as the electronic device near the target user, or one of the electronic devices near the target user.
比如,目标用户正在使用平板观看视频,且平板已登录第一应用的目标账户。那么,智能家居控制面板可将该平板确定为目标用户附近的电子设备。For example, the target user is watching a video on a tablet, and the tablet has logged into the target account of the first application. Then, the smart home control panel can determine the tablet as an electronic device near the target user.
在一些实施例中,智能家居控制面板在确定目标用户附近的电子设备(即目标电子设备,该目标电子设备可登录目标账户)后,可将该电子设备的设备信息发送至服务器。其中,设备信息例如包括该电子设备对应的目标账户、设备ID、设备类型、设备图标、设备名称、设备昵称等。In some embodiments, after determining the electronic device near the target user (i.e., the target electronic device, which can log in to the target account), the smart home control panel can send the device information of the electronic device to the server. The device information includes, for example, the target account corresponding to the electronic device, the device ID, the device type, the device icon, the device name, the device nickname, etc.
可选的,电子设备响应于用户创建第一应用账户的操作,可获取用户录入的账户信息,如包括账户名称、密码、用户头像等信息。之后,电子设备可将获取到的账户信息发送至服务器,完成账户的创建。那么,在目标账户创建完成后,服务器也可获取到目标账户的账户信息,服务器中可存储目标账户的账户信息。之后,服务器获取到智能家居控制面板发送的目标电子设备的设备信息后,可确定其中包括的目标账户,在已经存储的多个账户的账户信息中,匹配目标账户。进而服务器可建立目标账户的账户信息和目标电子设备的设备信息的对应关系。Optionally, the electronic device may obtain account information entered by the user, such as account name, password, user avatar, etc., in response to the user's operation of creating the first application account. Afterwards, the electronic device may send the obtained account information to the server to complete the account creation. Then, after the target account is created, the server may also obtain the account information of the target account, and the account information of the target account may be stored in the server. Afterwards, after the server obtains the device information of the target electronic device sent by the smart home control panel, it may determine the target account included therein, and match the target account in the account information of multiple accounts that have been stored. The server may then establish a correspondence between the account information of the target account and the device information of the target electronic device.
在一些实施例中,第一电子设备可创建第一应用对应的群组卡片,该群组卡片可包括多个群组成员,不同的群组成员对应于不同的第一应用账户。那么,第一电子设备可向服务器发送设备信息请求,并在该请求中携带群组成员对应的账户信息。那么,服务器在接收到设备信息请求后,可根据其中携带的账户信息,确定该账户信息对应的设备信息,将该设备信息发送至第一电子设备。第一电子设备可确定接收到的设备信息对应的电子设备,该电子设备为向服务器发送的账户信息对应的群组成员附近的电子设备。那么,第一电子设备可在该群组成员的用户头像附近显示获取到的设备信息中包括的设备标识,如设备图标、设备名称、设备昵称等。In some embodiments, the first electronic device may create a group card corresponding to the first application, and the group card may include multiple group members, and different group members correspond to different first application accounts. Then, the first electronic device may send a device information request to the server, and carry the account information corresponding to the group members in the request. Then, after receiving the device information request, the server may determine the device information corresponding to the account information based on the account information carried therein, and send the device information to the first electronic device. The first electronic device may determine the electronic device corresponding to the received device information, and the electronic device is an electronic device near the group member corresponding to the account information sent to the server. Then, the first electronic device may display the device identification included in the acquired device information, such as the device icon, device name, device nickname, etc., near the user avatar of the group member.
示例性的,如图14中(b)所示界面1402,第一电子设备根据设备信息,确定群组成员附近的设备为大屏设备。那么,第一电子设备可在群组成员的用户头像142上显示大屏设备的设备图标143。For example, as shown in interface 1402 in (b) of FIG14 , the first electronic device determines that the device near the group member is a large-screen device based on the device information, and then the first electronic device may display a device icon 143 of the large-screen device on the user avatar 142 of the group member.
在一些实施例中,目标用户可能在同一空间中、或不同的空间中移动,相应的目标用户附近的电子设备也可能会发生变化。那么,智能家居控制面板在确定目标用户移动、目标用户附近的电子设备发生变化后,可更新目标用户附近的电子设备,获取更新后的电子设备的设备信息,并将该设备信息发送至服务器。相应的,服务器在获取到更新后的设备信息后,可将该设备信息发送至对应的第一电子设备,并且可更新目标账户的账户信息和目标电子设备的设备信息的对应关系。In some embodiments, the target user may move in the same space or in different spaces, and the electronic devices near the corresponding target user may also change. Then, after determining that the target user has moved and the electronic devices near the target user have changed, the smart home control panel can update the electronic devices near the target user, obtain the device information of the updated electronic devices, and send the device information to the server. Correspondingly, after obtaining the updated device information, the server can send the device information to the corresponding first electronic device, and can update the corresponding relationship between the account information of the target account and the device information of the target electronic device.
示例性的,第一电子设备(如电子设备A)在创建群组卡片后,向服务器请求获取群组卡片中包括的群组成员1的账户信息1对应的设备信息。服务器可根据存储的账户信息和设备信息的对应关系,向第一电子设备发送账户信息1对应的设备信息。后续,账户信息1对应的用户1移动,该用户1附近的电子设备发生变化,智能家居控制面板向服务器发送更新后的用户1附近的电子设备的设备信息。服务器获取到更新的设备信息后,更新账户信息1对应的设备信息,并将更新后的设备信息发送至之前请求获取过该账户信息1对应的设备信息的第一电子设备,如电子设备A。Exemplarily, after creating a group card, the first electronic device (such as electronic device A) requests the server to obtain the device information corresponding to the account information 1 of the group member 1 included in the group card. The server can send the device information corresponding to the account information 1 to the first electronic device according to the correspondence between the stored account information and the device information. Subsequently, the user 1 corresponding to the account information 1 moves, and the electronic devices near the user 1 change, and the smart home control panel sends the updated device information of the electronic devices near the user 1 to the server. After the server obtains the updated device information, it updates the device information corresponding to the account information 1, and sends the updated device information to the first electronic device, such as electronic device A, that has previously requested to obtain the device information corresponding to the account information 1.
如此,通过确定各个第二电子设备与用户之间的距离,第一电子设备可实现显示群组成员附近的电子设备,用户可选择向该附近的电子设备发起通信,保证通信的成功率。In this way, by determining the distance between each second electronic device and the user, the first electronic device can display electronic devices near group members, and the user can choose to initiate communication with the nearby electronic devices to ensure the success rate of communication.
在一些实施例中,服务器也可确定位于目标用户附近的电子设备。In some embodiments, the server may also determine electronic devices that are located in the vicinity of the target user.
比如,智能家居系统中的电子设备登录第一应用后,可向服务器上报自身的位置信息。并且,服务器可确定用户设置的常用设备的设备信息,进而也可确定常用设备的位置信息。那么,服务器可直接根据常用设备的位置信息和该智能家居系统中其他电子设备的位置信息,确定距离该常用设备距离最近的电子设备,该电子设备即为目标用户附近的电子设备。For example, after logging into the first application, an electronic device in the smart home system can report its location information to the server. In addition, the server can determine the device information of the commonly used devices set by the user, and then determine the location information of the commonly used devices. Then, the server can directly determine the electronic device closest to the commonly used device based on the location information of the commonly used device and the location information of other electronic devices in the smart home system. This electronic device is the electronic device near the target user.
又比如,智能家居控制面板可获取到智能家居设备中的各个电子设备的位置信息,以及用户设置的常用设备的设备信息。之后,智能家居控制面板可将位置信息和设备信息上报至服务器,由服务器确定距离常用设备距离最近的电子设备,该电子设备即为目标用户附近的电子设备。For another example, the smart home control panel can obtain the location information of each electronic device in the smart home device, as well as the device information of the commonly used devices set by the user. Afterwards, the smart home control panel can report the location information and device information to the server, and the server determines the electronic device closest to the commonly used device, which is the electronic device near the target user.
如此,降低智能家居系统中的电子设备的计算量,降低使用功耗。In this way, the computing workload of electronic devices in the smart home system is reduced and the power consumption is reduced.
以上对电子设备如何获取群组成员附近的电子设备的实现过程进行了详细的介绍。如下对电子设备获取群组成员附近的电子设备后的界面显示进行介绍。The above is a detailed introduction to the implementation process of how the electronic device acquires the electronic devices near the group members. The following is an introduction to the interface display after the electronic device acquires the electronic devices near the group members.
在一些实施例中,电子设备创建群组卡片后,可获取到各个群组成员附近的电子设备的设备信息。之后,电子设备可显示群组成员附近的电子设备,便于用户确定与群组成员建立通信的过程中请求通信的电子设备。其中,群组成员附近的电子设备例如包括群组成员正在使用的电子设备、距离群组成员距离最近的电子设备、与群组成员处于一个空间(如房间)的电子设备等条件中,满足其中一个或多个条件的一个或多个电子设备。In some embodiments, after the electronic device creates a group card, it can obtain device information of electronic devices near each group member. Afterwards, the electronic device can display electronic devices near the group members, so that the user can determine the electronic device that requests communication during the process of establishing communication with the group members. Among them, the electronic devices near the group members include, for example, electronic devices that are currently being used by group members, electronic devices that are closest to group members, and electronic devices that are in the same space (such as a room) as group members, and one or more electronic devices that meet one or more of the following conditions.
示例性的,如图14中(a)所示界面1401,电子设备显示群组卡片141。响应于用户点击用户头像142的操作,电子设备显示如图14中(b)所示界面1402。如界面1402所示,在群组卡片141上放大显示用户头像142,并显示用户头像142对应的群组成员附近的电子设备的设备标识,如图标143。这样,用户可确定位于该用户附近的电子设备为图标143指示的电子设备,如大屏设备。Exemplarily, as shown in interface 1401 in (a) of FIG. 14 , the electronic device displays a group card 141. In response to the user clicking on the user avatar 142, the electronic device displays an interface 1402 as shown in (b) of FIG. 14 . As shown in interface 1402, the user avatar 142 is enlarged and displayed on the group card 141, and the device identification of the electronic device near the group member corresponding to the user avatar 142 is displayed, such as icon 143. In this way, the user can determine that the electronic device near the user is the electronic device indicated by icon 143, such as a large-screen device.
又示例性的,如图14中(a)所示界面1401,响应于用户点击用户头像144的操作,电子设备显示如图14中(c)所示界面1403。如界面1403所示,在群组卡片141上放大显示用户头像144,并显示用户头像144对应的群组成员附近的电子设备的设备标识,如图标145和图标146。这样,用户可确定有两个电子设备位于该用户附近,如图标145指示的手机,以及图标146指示的音箱。之后,用户可通过点击不同的电子设备标识的方式,选择用于通信的电子设备。As another example, in the interface 1401 shown in (a) of FIG. 14 , in response to the user clicking on the user avatar 144, the electronic device displays the interface 1403 shown in (c) of FIG. 14 . As shown in the interface 1403, the user avatar 144 is enlarged and displayed on the group card 141, and the device identifiers of the electronic devices near the group members corresponding to the user avatar 144 are displayed, such as icons 145 and 146. In this way, the user can determine that there are two electronic devices near the user, such as the mobile phone indicated by icon 145, and the speaker indicated by icon 146. Afterwards, the user can select the electronic device for communication by clicking on different electronic device identifiers.
一些示例中,第一电子设备响应于用户指示显示群组成员附近的电子设备的操作(如点击群组成员头像的操作),向服务器请求获取群组成员附近的电子设备。如第一电子设备向服务器发送设备信息请求,并在该设备信息请求中携带该群组成员的账户信息。那么,服务器根据已保存的账户信息和设备信息的对应关系,可确定获取到的设备信息请求中携带的账户信息对应的设备信息,并将该设备信息下发至第一电子设备。这样,第一电子设备可根据获取到的设备信息,在群组成员头像附近显示电子设备的标识。In some examples, the first electronic device, in response to a user's instruction to display an electronic device near a group member (such as clicking on a group member's avatar), requests the server to obtain electronic devices near the group member. For example, the first electronic device sends a device information request to the server, and carries the account information of the group member in the device information request. Then, based on the correspondence between the saved account information and device information, the server can determine the device information corresponding to the account information carried in the acquired device information request, and send the device information to the first electronic device. In this way, the first electronic device can display the identification of the electronic device near the group member's avatar based on the acquired device information.
另一些示例中,电子设备响应于用户创建群组的操作,在群组创建过程中,向服务器请求获取各个群组成员附近的电子设备。后续,用户附近的电子设备发生变化后,服务器能够获取智能家居设备面板上报的更新后的用户附近的电子设备的设备信息,进而服务器可更新用户对应的账户信息和设备信息之间的对应关系。之后,服务器根据账户信息,向之前请求过该账户信息对应的设备信息的第一电子设备下发更新后的设备信息,以使得第一电子设备更新群组卡片包括的群组成员附近的电子设备,便于后续显示电子设备标识。In other examples, in response to the user's operation of creating a group, the electronic device requests the server to obtain the electronic devices near each group member during the group creation process. Later, when the electronic devices near the user change, the server can obtain the updated device information of the electronic devices near the user reported by the smart home device panel, and then the server can update the corresponding relationship between the account information and the device information corresponding to the user. Afterwards, the server sends the updated device information to the first electronic device that has previously requested the device information corresponding to the account information based on the account information, so that the first electronic device updates the electronic devices near the group members included in the group card, so as to facilitate the subsequent display of the electronic device identification.
又一些示例中,第一电子设备向服务器发送设备信息请求,并在该设备信息请求中携带群组成员的账户信息,如账户信息1。相应的服务器向第一电子设备下发账户信息1对应的设备信息1。后续,服务器接收到登录账户信息1对应的第一应用账户的电子设备1向第一电子设备发送的信息,可确定账户信息1对应的目标用户附近的电子设备的设备信息,如设备信息2,服务器在向第一电子设备转发电子设备1发送的信息的过程中,可向第一电子设备发送设备信息2,以使得第一电子设备可根据设备信息2确定账户信息1对应的群组成员附近的电子设备。可选的,设备信息1和设备信息2相同或者不相同。In some other examples, the first electronic device sends a device information request to the server, and carries the account information of the group member, such as account information 1, in the device information request. The corresponding server sends the device information 1 corresponding to the account information 1 to the first electronic device. Subsequently, the server receives the information sent to the first electronic device by the electronic device 1 of the first application account corresponding to the logged-in account information 1, and can determine the device information of the electronic device near the target user corresponding to the account information 1, such as device information 2. In the process of forwarding the information sent by the electronic device 1 to the first electronic device, the server can send the device information 2 to the first electronic device, so that the first electronic device can determine the electronic devices near the group member corresponding to the account information 1 according to the device information 2. Optionally, the device information 1 and the device information 2 are the same or different.
在一些实施例中,第一电子设备在显示群组卡片的过程中,也可直接在显示的用户头像上显示该用户头像附近的电子设备。比如,如图14中(a)所示界面1401,第一电子设备在群组卡片中显示的用户头像上也可直接显示该用户头像对应的用户附近的电子设备(图中未示出)。这样,用户能够直观的在群组卡片上确认用户附近的电子设备,而不必再进一步操作。In some embodiments, the first electronic device may also directly display electronic devices near the user avatar on the displayed user avatar during the process of displaying the group card. For example, as shown in interface 1401 in FIG. 14 (a), the first electronic device may also directly display electronic devices near the user corresponding to the user avatar on the user avatar displayed in the group card (not shown in the figure). In this way, the user can intuitively confirm the electronic devices near the user on the group card without further operation.
在一些实施例中,电子设备在显示群组卡片的过程中,检测到用户对群组卡片的操作,如长按群组卡片的操作,可显示群组成员的附近的电子设备详情页。In some embodiments, when the electronic device is displaying a group card, if it detects a user operation on the group card, such as long pressing the group card, the electronic device may display the nearby electronic device detail pages of the group members.
示例性的,如图15中(a)所示界面1501,电子设备显示群组卡片151。电子设备检测到用户长按群组卡片151上空白显示区域的操作后,可显示如图15中(b)所示界面1502。在界面1502上,电子设备可显示群组卡片151包括的全部群组成员,以及群组成员附近电子设备的详情,便于用户快速了解群组成员附近设备情况。For example, as shown in interface 1501 in (a) of FIG15 , the electronic device displays a group card 151. After the electronic device detects that the user has long pressed the blank display area on the group card 151, it may display interface 1502 as shown in (b) of FIG15 . On interface 1502, the electronic device may display all group members included in the group card 151, as well as details of electronic devices near the group members, so that the user can quickly understand the status of devices near the group members.
在一些实施例中,电子设备在显示群组详情界面的过程中,检测到用户点击群组成员的头像的操作,也可显示该群组成员的详情信息。可选的,群组成员的详细信息例如包括群组成员的位置信息、附近的电子设备、群组成员的状态信息(如心情、健康信息等)等。In some embodiments, when the electronic device detects a user clicking on a group member's avatar during the display of the group details interface, the electronic device may also display the detailed information of the group member. Optionally, the detailed information of the group member may include, for example, the location information of the group member, nearby electronic devices, status information of the group member (such as mood, health information, etc.), etc.
示例性的,如图16中(a)所示界面1601,电子设备显示群组卡片161的过程中,检测到用户点击群组卡片161上的空白显示区域的操作,显示如图16中(b)所示的群组详情界面1602。电子设备检测到用户点击用户头像162的操作后,可显示如图16中(c)所示界面1603。在界面1603上,电子设备可显示用户头像162对应的群组成员的详细信息,如附近的电子设备等。如附图标记163所示,电子设备显示该群组成员附近的电子设备的设备标识。如附图标记164所示,电子设备显示该群组成员的位置信息以及该群组成员附近的电子设备的详细情况。Exemplarily, as shown in interface 1601 in (a) of FIG. 16 , when the electronic device displays the group card 161, it detects that the user clicks on the blank display area on the group card 161, and displays the group details interface 1602 as shown in (b) of FIG. 16 . After the electronic device detects that the user clicks on the user avatar 162, it may display interface 1603 as shown in (c) of FIG. 16 . On interface 1603, the electronic device may display detailed information of the group member corresponding to the user avatar 162, such as nearby electronic devices. As shown in reference numeral 163, the electronic device displays the device identification of the electronic devices near the group member. As shown in reference numeral 164, the electronic device displays the location information of the group member and the details of the electronic devices near the group member.
以下结合几个具体实现场景,对群组卡片的应用过程进行详细的介绍。The following is a detailed introduction to the application process of group cards based on several specific implementation scenarios.
场景一、电话拨打场景。Scenario 1: Phone dialing scenario.
在一个示例场景中,用户A没有在家中,使用电子设备(如手机),想要向位于家中的用户B通过第一应用拨打电话。并且,用户A想要通过位于家中客厅中的大屏设备与用户B进行通话,以查看客厅布局变化。In an example scenario, user A is not at home and uses an electronic device (such as a mobile phone) to call user B at home through a first application. In addition, user A wants to talk to user B through a large-screen device in the living room at home to view the layout changes of the living room.
示例性的,如图17A中(a)所示界面1701,电子设备显示群组卡片171,响应于用户A点击群组卡片上显示的对应于用户B的用户头像172的操作,电子设备显示如图17A中(b)所示界面1702。如界面1702所示,在群组卡片171上,电子设备放大显示用户头像172,并显示用户头像172对应的群组成员附近的电子设备的设备标识,如大屏标识173。用户A可根据大屏标识173,确定大屏设备位于用户B附近,那么可确认发起通信。电子设备检测到用户A点击用户头像172或点击大屏标识173的操作后,可确定用户A指示向大屏标识173对应的大屏设备发起通信。Exemplarily, as shown in interface 1701 in (a) of FIG. 17A , the electronic device displays a group card 171. In response to user A clicking on the user avatar 172 corresponding to user B displayed on the group card, the electronic device displays interface 1702 as shown in (b) of FIG. 17A . As shown in interface 1702, on the group card 171, the electronic device enlarges and displays the user avatar 172, and displays the device identifiers of the electronic devices near the group members corresponding to the user avatar 172, such as the large screen identifier 173. User A can determine that the large screen device is near user B based on the large screen identifier 173, and then confirm to initiate communication. After the electronic device detects that user A clicks on the user avatar 172 or clicks on the large screen identifier 173, it can be determined that user A instructs to initiate communication to the large screen device corresponding to the large screen identifier 173.
之后,电子设备可向服务器发送通信请求,在通信请求中携带用户头像172对应的账户信息,以及大屏标识173对应的设备信息。之后,电子设备可显示如图17A中(c)所示的等待电话接通的界面1703。Afterwards, the electronic device may send a communication request to the server, carrying the account information corresponding to the user avatar 172 and the device information corresponding to the large screen logo 173. Afterwards, the electronic device may display an interface 1703 for waiting for a call to be connected as shown in FIG. 17A (c).
相应的,服务器接收到电子设备发送的通信请求后,可根据账户信息和设备信息,向大屏设备转发电子设备发送的通信请求。那么,如图17B中(a)所示,大屏设备在接收到通信请求后,可显示电话呼叫界面。大屏设备检测到用户B对接听控件174的操作后,可确定用户B指示接受此次通信请求,那么可向服务器发送通信确认指示。之后,服务器可向电子设备转发该通信确认指示。Accordingly, after receiving the communication request sent by the electronic device, the server can forward the communication request sent by the electronic device to the large-screen device according to the account information and device information. Then, as shown in (a) in FIG. 17B , after receiving the communication request, the large-screen device can display a phone call interface. After the large-screen device detects user B's operation of the listening control 174, it can be determined that user B indicates to accept the communication request, and then a communication confirmation indication can be sent to the server. Afterwards, the server can forward the communication confirmation indication to the electronic device.
那么,后续电子设备和大屏设备可实现此次通信。相应的,电子设备可显示如图17A中(d)所示的通话界面1704,大屏设备可显示如图17B中(b)所示的通话界面。Then, the subsequent electronic device and the large-screen device can realize this communication. Accordingly, the electronic device can display the call interface 1704 as shown in (d) of FIG. 17A , and the large-screen device can display the call interface as shown in (b) of FIG. 17B .
如此,用户可通过电子设备在群组卡片中显示的位于群组成员附近的电子设备,确定是否在需要建立通信的电子设备的附近。从而在满足通信需求的同时,进一步保证通信的成功率。In this way, the user can determine whether he is near the electronic device that needs to establish communication through the electronic device near the group member displayed in the group card by the electronic device, thereby further ensuring the success rate of communication while meeting the communication needs.
场景二、文件发送场景。Scenario 2: File sending scenario.
其中,文件例如包括图片、视频、文本、链接等。第一电子设备可响应于用户将文件拖向用户头像的操作,将该文件发送至用户头像附近的电子设备。The file includes, for example, a picture, a video, a text, a link, etc. In response to the user dragging the file toward the user avatar, the first electronic device may send the file to an electronic device near the user avatar.
示例性的,如图18A中(a)所示界面1801,电子设备(如手机)显示群组卡片181,响应于用户点击群组卡片上显示的用户头像182的操作,电子设备显示如图18A中(b)所示界面1802。如界面1802所示,在群组卡片181上,电子设备放大显示用户头像182,并显示用户头像182对应的群组成员附近的电子设备的设备标识,如大屏标识183。电子设备桌面上显示有图片184。电子设备检测到用户沿箭头185所示方向,将图片184拖入群组卡片181的显示区域内的操作后,可确定用户指示将图片184发送至大屏标识183对应的大屏设备。Exemplarily, as shown in interface 1801 in (a) of FIG. 18A , an electronic device (such as a mobile phone) displays a group card 181. In response to a user clicking on a user avatar 182 displayed on the group card, the electronic device displays interface 1802 as shown in (b) of FIG. 18A . As shown in interface 1802, on the group card 181, the electronic device enlarges and displays the user avatar 182, and displays the device identifiers of the electronic devices near the group members corresponding to the user avatar 182, such as the large-screen identifier 183. A picture 184 is displayed on the desktop of the electronic device. After the electronic device detects that the user drags the picture 184 into the display area of the group card 181 in the direction indicated by the arrow 185, it can be determined that the user instructs to send the picture 184 to the large-screen device corresponding to the large-screen identifier 183.
那么,电子设备可向服务器发送文件传输请求,在文件传输请求中携带用户头像182对应的账户信息,大屏标识183对应的设备信息,以及图片184对应的图片内容。Then, the electronic device can send a file transfer request to the server, and the file transfer request carries the account information corresponding to the user avatar 182 , the device information corresponding to the large screen logo 183 , and the picture content corresponding to the picture 184 .
之后,服务器可响应于文件传输请求,向大屏设备转发接收到的图片内容。那么,如图18B所示,大屏设备可显示获取到的图片。可选的,大屏设备也可先显示图片接收确认消息,之后响应于用户的确认操作,再显示接收到的图片。Afterwards, the server may forward the received picture content to the large-screen device in response to the file transfer request. Then, as shown in FIG18B , the large-screen device may display the acquired picture. Optionally, the large-screen device may also first display a picture reception confirmation message, and then display the received picture in response to the user's confirmation operation.
应理解,如电子设备响应于用户操作,传输的文件为视频、文本等内容,大屏设备也可显示相应的视频、文本等内容。It should be understood that if the electronic device responds to user operations and the transmitted files are videos, texts and other contents, the large-screen device can also display the corresponding videos, texts and other contents.
如此,实现文件的快速传输。并且,可保证文件接收设备在目标用户附近,目标用户可快速确定接收文件。In this way, the file can be quickly transmitted. In addition, the file receiving device can be ensured to be near the target user, and the target user can quickly determine the received file.
又示例性的,如图18A中(a)所示界面1801,电子设备(如手机)显示群组卡片181,响应于用户点击群组卡片上显示的用户头像182的操作,电子设备显示如图18A中(c)所示界面1803。如界面1803所示,在群组卡片181上,电子设备放大显示用户头像182,并显示用户头像182对应的群组成员附近的电子设备的设备标识,如大屏标识183。As another example, as shown in interface 1801 in (a) of FIG18A, an electronic device (such as a mobile phone) displays a group card 181. In response to a user clicking on a user avatar 182 displayed on the group card, the electronic device displays interface 1803 as shown in (c) of FIG18A. As shown in interface 1803, on the group card 181, the electronic device displays the user avatar 182 in an enlarged manner, and displays the device identifiers of electronic devices near the group member corresponding to the user avatar 182, such as a large screen identifier 183.
此外,电子设备具有超级中转站功能,在桌面上显示有超级中转站对应的悬浮窗186,悬浮窗186中显示有电子设备响应于用户操作暂存的链接。之后,电子设备检测到用户沿箭头187所示方向,将悬浮窗186中显示的链接拖入群组卡片181的显示区域内的操作后,可确定用户指示将链接发送至大屏标识183对应的大屏设备。In addition, the electronic device has a super transfer station function, and a floating window 186 corresponding to the super transfer station is displayed on the desktop, and the floating window 186 displays the link temporarily stored by the electronic device in response to the user operation. Afterwards, after the electronic device detects that the user drags the link displayed in the floating window 186 into the display area of the group card 181 in the direction indicated by the arrow 187, it can be determined that the user instructs to send the link to the large-screen device corresponding to the large-screen identifier 183.
那么,电子设备可向服务器发送传输请求,在传输请求中携带用户头像182对应的账户信息,大屏标识183对应的设备信息,以及待传输的链接。Then, the electronic device may send a transmission request to the server, which carries the account information corresponding to the user avatar 182 , the device information corresponding to the large-screen logo 183 , and the link to be transmitted.
之后,服务器可响应于文件传输请求,向大屏设备转发接收到的链接。那么,如图18C所示,大屏设备在接收到链接后,可打开链接,显示链接对应的内容,如视频。可选的,大屏设备也可先显示链接接收确认消息,之后响应于用户的确认操作,再打开接收到的链接,以显示相应的内容。Afterwards, the server may forward the received link to the large-screen device in response to the file transfer request. Then, as shown in FIG18C , after receiving the link, the large-screen device may open the link and display the content corresponding to the link, such as a video. Optionally, the large-screen device may first display a link reception confirmation message, and then open the received link in response to the user's confirmation operation to display the corresponding content.
如此,在实现文件传输的基础上,通过链接的传输,降低传输的数据量,实现链接内容的共享。In this way, on the basis of realizing file transfer, the amount of data transmitted is reduced through the transmission of links, and the sharing of link content is realized.
场景三、快速求助场景。Scenario 3: Quick help scenario.
一些示例中,电子设备可响应于用户操作,确定使用电子设备发起通信,还是使用该电子设备附近的电子设备发起通信,以使得通信过程满足用户需求。In some examples, the electronic device may determine, in response to a user operation, whether to initiate communication using the electronic device or using an electronic device near the electronic device so that the communication process meets the user's needs.
示例性的,如图19A所示场景,用户位于大屏设备前,正在使用手机。其中,手机上已创建群组,显示有群组卡片。手机在显示群组卡片的过程中,如图19B中(a)所示,响应于用户操作,显示群组详情界面1901。手机检测到用户点击用户头像191的操作后,可显示如图19B中(b)所示界面1902。手机检测到用户点击控件192的操作后,确定用户指示通过其他设备拨打电话。那么,手机可搜索附近登录第一应用的电子设备,并显示如图19B中(c)所示界面1903。在界面1903上,手机可显示手机标识193,以及搜索到的电子设备的设备标识,如大屏设备的设备标识194。可选的,手机搜索到的电子设备登录的第一应用账户与手机登录的第一应用账户相同或者不相同。Exemplarily, in the scenario shown in FIG. 19A, the user is in front of a large-screen device and is using a mobile phone. Among them, a group has been created on the mobile phone, and a group card is displayed. In the process of displaying the group card, as shown in FIG. 19B (a), the mobile phone displays a group details interface 1901 in response to the user operation. After the mobile phone detects that the user clicks on the user avatar 191, the interface 1902 shown in FIG. 19B (b) can be displayed. After the mobile phone detects that the user clicks on the control 192, it determines that the user instructs to make a call through other devices. Then, the mobile phone can search for nearby electronic devices logged in to the first application, and display an interface 1903 as shown in FIG. 19B (c). On the interface 1903, the mobile phone can display the mobile phone logo 193, as well as the device logo of the searched electronic device, such as the device logo 194 of the large-screen device. Optionally, the first application account logged in by the electronic device searched by the mobile phone is the same as or different from the first application account logged in by the mobile phone.
之后,手机检测到用户点击设备标识194的操作后,可确定用户指示通过设备标识194对应的大屏设备发起通信。那么,手机向大屏设备发送通信指示,在该通信指示中可携带用户头像191对应的账户信息。大屏设备接收到通信指示后,可确定需要发起通信。大屏设备可向服务器发送通信请求,并在该通信请求中携带获取到的账户信息。之后,大屏设备可显示如图19C中(a)所示的电话呼叫界面。Afterwards, after the mobile phone detects that the user clicks the device identifier 194, it can be determined that the user instructs to initiate communication through the large-screen device corresponding to the device identifier 194. Then, the mobile phone sends a communication instruction to the large-screen device, and the communication instruction can carry the account information corresponding to the user avatar 191. After receiving the communication instruction, the large-screen device can determine that communication needs to be initiated. The large-screen device can send a communication request to the server, and carry the acquired account information in the communication request. Afterwards, the large-screen device can display a phone call interface as shown in (a) in Figure 19C.
相应的,服务器响应于接收到的通信请求,向登录账户信息对应的账户的电子设备发送通信请求。电子设备接收到通信请求后,响应于用户操作确定接受通信,可显示如图19D所示的通话界面。相应的,发起通信的大屏设备也可显示如图19C中(b)所示的通话界面。Accordingly, in response to the received communication request, the server sends a communication request to the electronic device of the account corresponding to the login account information. After receiving the communication request, the electronic device may display a call interface as shown in FIG19D in response to the user operation to determine to accept the communication. Accordingly, the large-screen device that initiates the communication may also display a call interface as shown in FIG19C (b).
如此,用户在需要发起通信时,可选择通过正在使用的电子设备发起通信,也可选择附近的电子设备发起通信,以使得通信过程更加满足用户的使用需求。比如,如图19A所示场景,在求助过程中,用户可通过大屏设备更好的显示能力,获得更加清晰的帮助指导。In this way, when the user needs to initiate communication, he can choose to initiate communication through the electronic device he is using, or he can choose to initiate communication through a nearby electronic device, so that the communication process can better meet the user's usage needs. For example, in the scenario shown in Figure 19A, during the process of asking for help, the user can obtain clearer help guidance through the better display capability of the large-screen device.
一些示例中,电子设备可通过群组卡片实现快速求助。并且,被求助方在查看到求助信息后,也可通过群组卡片快速确定求助的用户附近的设备,以及时提供帮助。In some examples, the electronic device can realize quick help through the group card. Moreover, after viewing the help information, the party being helped can also quickly determine the devices near the user who is asking for help through the group card, so as to provide help in time.
示例性的,第一电子设备在显示群组卡片的过程中,如图20A中(a)所示,响应于用户操作,显示群组详情界面2001。第一电子设备检测到用户点击用户头像201的操作后,可显示如图20A中(b)所示界面2002。第一电子设备检测到用户点击控件202的操作后,确定用户指示发起快速求助,可显示如图20A中(c)所示界面2003。第一电子设备在界面2003上可接收用户在输入框203中输入的求助信息。之后,第一电子设备在检测到用户点击确定控件204的操作后,可确定用户完成求助信息的输入,可向位于用户头像201对应的群组成员附近的第二电子设备发送该求助信息,如通过服务器转发该求助信息。之后,第一电子设备可显示如图20A中(d)所示界面2004,以提示用户求助信息已发送。其中,求助信息中携带有第一电子设备的设备信息、第一电子设备登录的第一应用的账户信息。Exemplarily, in the process of displaying the group card, the first electronic device displays the group details interface 2001 in response to the user operation, as shown in FIG. 20A (a). After the first electronic device detects the operation of the user clicking the user avatar 201, the interface 2002 shown in FIG. 20A (b) may be displayed. After the first electronic device detects the operation of the user clicking the control 202, it determines that the user instructs to initiate a quick help, and the interface 2003 shown in FIG. 20A (c) may be displayed. The first electronic device may receive the help information input by the user in the input box 203 on the interface 2003. Afterwards, after the first electronic device detects the operation of the user clicking the confirmation control 204, it may determine that the user has completed the input of the help information, and may send the help information to the second electronic device located near the group member corresponding to the user avatar 201, such as forwarding the help information through the server. Afterwards, the first electronic device may display the interface 2004 shown in FIG. 20A (d) to prompt the user that the help information has been sent. Among them, the help information carries the device information of the first electronic device and the account information of the first application logged in by the first electronic device.
相应的,如图20B中(a)所示界面2005,第二电子设备在接收到第一电子设备发送的求助信息后,可确定求助信息对应的账户信息,进而确定发送该求助信息的群组成员以及对应的用户头像。之后,第二电子设备可在确定群组头像后,在显示的群组卡片205中显示的该确定的用户头像206附近显示标识207,该标识207用于提示用户接收到该用户头像206对应的群组成员发送的求助信息。Correspondingly, as shown in interface 2005 in FIG. 20B (a), after receiving the help information sent by the first electronic device, the second electronic device can determine the account information corresponding to the help information, and then determine the group member and the corresponding user avatar that sent the help information. Afterwards, after determining the group avatar, the second electronic device can display a logo 207 near the determined user avatar 206 displayed in the displayed group card 205, and the logo 207 is used to prompt the user to receive the help information sent by the group member corresponding to the user avatar 206.
之后,第二电子设备检测到用户点击标识207的操作后,可显示如图20B中(b)所示界面2006。在界面2006上,第二电子设备可显示详细的求助信息。Afterwards, after the second electronic device detects the user clicking on the mark 207, it may display an interface 2006 as shown in (b) of FIG20B . On the interface 2006, the second electronic device may display detailed help information.
进一步的,用户头像206附近还显示有用户头像206对应的群组成员附近的电子设备的设备标识208。或者,响应于用户点击用户头像206的操作,第二电子设备放大显示用户头像206,并在放大后的用户头像206上显示对应的群组成员附近的电子设备的设备标识。Furthermore, the device identification 208 of the electronic device near the group member corresponding to the user avatar 206 is also displayed near the user avatar 206. Alternatively, in response to the user clicking the user avatar 206, the second electronic device enlarges the user avatar 206 and displays the device identification of the electronic device near the corresponding group member on the enlarged user avatar 206.
这样,用户可快速确定位于该求助的群组成员附近的电子设备,可确定是否需要向该电子设备发起通信,以快速联系到求助的群组成员。In this way, the user can quickly identify the electronic device located near the group member seeking help, and can determine whether it is necessary to initiate communication with the electronic device, so as to quickly contact the group member seeking help.
如此,第一电子设备可通过群组卡片,帮助用户实现快速求助,满足用户的使用需求。In this way, the first electronic device can help the user to quickly seek help through the group card, thereby meeting the user's usage needs.
示例性的,图21为本申请实施例提供的一种通信方法的流程示意图。如图21所述,该方法包括如下步骤。Exemplarily, Figure 21 is a flow chart of a communication method provided in an embodiment of the present application. As shown in Figure 21, the method includes the following steps.
S2101、第一电子设备显示第一群组卡片,第一群组卡片上显示有多个群组成员的第一标识。S2101: The first electronic device displays a first group card, where the first group card displays first identifiers of multiple group members.
在一些实施例中,第一电子设备可分别显示多个群组成员对应的多张通信卡片。之后,响应于用户对多张通信卡片的第五操作,建立包括多张通信卡片对应的多个群组成员的第一群组卡片。In some embodiments, the first electronic device may display multiple communication cards corresponding to the multiple group members respectively. Then, in response to a fifth operation of the user on the multiple communication cards, a first group card including the multiple group members corresponding to the multiple communication cards is established.
可选的,第一电子设备中安装有第一应用,电子设备显示的群组卡片、通信卡片为第一应用卡片。Optionally, a first application is installed in the first electronic device, and the group card and communication card displayed by the electronic device are first application cards.
示例性的,如图6中(a)所示界面601,第一电子设备桌面上显示有多张第一应用的卡片,如联系人1卡片61、联系人2卡片62、以及联系人3卡片63,其中每一卡片对应于一个联系人。响应于用户对联系人1卡片61、联系人2卡片62、以及联系人3卡片63的选择操作,如沿附图标记64所示的箭头方向的捏合操作,第一电子设备可确定创建包括被选择的这三张卡片的群组卡片。之后,如图6中(b)所示界面602,第一电子设备可显示创建的群组卡片65,该群组卡片65上显示包括联系人1卡片61、联系人2卡片62、以及联系人3卡片63分别对应的联系人的头像,群组卡片65对应的群组的群成员包括联系人1、联系人2、以及联系人3。Exemplarily, as shown in interface 601 in (a) of FIG6 , a plurality of cards of the first application are displayed on the desktop of the first electronic device, such as contact 1 card 61, contact 2 card 62, and contact 3 card 63, wherein each card corresponds to a contact. In response to the user's selection operation on contact 1 card 61, contact 2 card 62, and contact 3 card 63, such as a pinch operation along the arrow direction indicated by reference numeral 64, the first electronic device may determine to create a group card including the three selected cards. Afterwards, as shown in interface 602 in (b) of FIG6 , the first electronic device may display the created group card 65, on which the avatars of the contacts corresponding to contact 1 card 61, contact 2 card 62, and contact 3 card 63 are displayed respectively, and the group members of the group corresponding to group card 65 include contact 1, contact 2, and contact 3.
如此,第一电子设备可响应于用户的操作,创建并显示包括多个群组成员的群组卡片,满足用户的通信需求的同时,便于用户管理多个群组成员。并且,通过显示群组卡片,第一电子设备可节约桌面显示空间。In this way, the first electronic device can create and display a group card including multiple group members in response to the user's operation, so as to meet the user's communication needs and facilitate the user to manage multiple group members. In addition, by displaying the group card, the first electronic device can save desktop display space.
在另一些实施例中,第一电子设备可显示空白的第一群组卡片。检测到用户在空白的第一群组卡片上的第六操作,搜索附近请求建立群组的一个或多个第三电子设备。在空白的第一群组卡片上显示搜索到的一个或多个第三电子设备的第二设备标识。响应于用户的第七操作,建立包括一个或多个第三电子设备对应的一个或多个账户的第一群组卡片,一个或多个账户对应于一个或多个群组成员。In some other embodiments, the first electronic device may display a blank first group card. Upon detecting the sixth operation of the user on the blank first group card, one or more third electronic devices nearby requesting to establish a group are searched. The second device identifications of the searched one or more third electronic devices are displayed on the blank first group card. In response to the seventh operation of the user, a first group card including one or more accounts corresponding to the one or more third electronic devices is established, and the one or more accounts correspond to one or more group members.
可选的,第一电子设备安装有第一应用,一个或多个账户为一个或多个第三电子设备登录第一应用的账户。Optionally, the first electronic device has a first application installed, and the one or more accounts are accounts used by one or more third electronic devices to log in to the first application.
示例性的,第一电子设备可创建并显示空白群组卡片。如图7C中(a)所示界面705,响应于用户点击空白群组卡片73上显示的控件74的操作,第一电子设备发送广播消息,该广播消息用于请求建立群组。同样的,该第一电子设备附近的第三电子设备也可响应于用户操作,创建空白群组卡片,并发送广播消息。Exemplarily, the first electronic device may create and display a blank group card. As shown in interface 705 in FIG. 7C (a), in response to a user clicking on a control 74 displayed on a blank group card 73, the first electronic device sends a broadcast message, which is used to request the establishment of a group. Similarly, a third electronic device near the first electronic device may also create a blank group card and send a broadcast message in response to the user's operation.
那么,该第一电子设备可搜索附近第三电子设备发送的广播消息。其中,广播消息中可携带第一应用的账户信息,如登录账号、联系方式、用户头像等信息,第一电子设备获取到第三电子设备发送的广播消息后,可获取到其中携带的账户信息,根据账户信息确定群组成员。Then, the first electronic device can search for broadcast messages sent by nearby third electronic devices. The broadcast messages can carry the account information of the first application, such as login account, contact information, user avatar, etc. After the first electronic device obtains the broadcast message sent by the third electronic device, it can obtain the account information carried therein and determine the group members according to the account information.
之后,如图7C中(b)所示界面706,第一电子设备可在空白群组卡片73上显示搜索到的第三电子设备对应的标识,如该标识为第三电子设备登录第一应用的用户头像,或者也可以为设备标识等。第一电子设备检测到用户点击确认控件75的操作后,可确定用户确定已搜索到全部待建立群组的联系人对应的第三电子设备,那么可创建群组卡片。如图7C中(c)所示界面707,第一电子设备显示创建的群组卡片76,该群组卡片76中包括对应于图7A所示的三个电子设备的联系人。Afterwards, as shown in interface 706 in (b) of FIG. 7C , the first electronic device may display an identifier corresponding to the searched third electronic device on a blank group card 73, such as an avatar of a user who logs into the first application on the third electronic device, or may be a device identifier, etc. After the first electronic device detects that the user clicks the confirmation control 75, it may determine that the user has determined that the third electronic device corresponding to all the contacts to be grouped has been searched, and then a group card may be created. As shown in interface 707 in (c) of FIG. 7C , the first electronic device displays a created group card 76, which includes contacts corresponding to the three electronic devices shown in FIG. 7A .
如此,通过近距离通信的方式,第一电子设备可不必再响应于用户选择多个卡片的操作,创建群组,降低用户操作难度,提高群组创建效率。In this way, through the short-range communication method, the first electronic device no longer needs to respond to the user's operation of selecting multiple cards to create a group, thereby reducing the difficulty of user operation and improving the efficiency of group creation.
此外,第一电子设备在未保存联系人信息的情况下,也可快速完成群组的创建。比如,在聚会场景中,多个未保存联系人信息的用户,可近距离通信的方式创建群组卡片,便于后续联系。In addition, the first electronic device can also quickly complete the creation of a group without saving the contact information. For example, in a party scene, multiple users who have not saved the contact information can create a group card in a close range communication mode to facilitate subsequent contact.
在一些实施例中,群组卡片上显示的第一标识数量小于或等于预设数量,第一标识在群组卡片上按照预设规则排布显示。In some embodiments, the number of first identifiers displayed on the group card is less than or equal to a preset number, and the first identifiers are arranged and displayed on the group card according to a preset rule.
可选的,预设规则例如包括按照群组成员的活跃度,依次显示多个群组成员对应的用户头像。可选的,第一电子设备可通过判断与群组成员联系的频次、最近联系时间、加入群组的时间、是否有未读消息、未读消息接收时间等多种方式,确定群组成员的活跃度。Optionally, the preset rules include, for example, displaying user avatars corresponding to multiple group members in sequence according to the activity of the group members. Optionally, the first electronic device can determine the activity of the group members by judging the frequency of contact with the group members, the last contact time, the time of joining the group, whether there are unread messages, the time of receiving unread messages, etc.
如此,群组卡片上显示的用户头像数量也可小于或等于预设数量,从而保证显示效果,也便于用户操作群组成员。In this way, the number of user avatars displayed on the group card can be less than or equal to the preset number, thereby ensuring the display effect and facilitating users to operate group members.
S2102、第一电子设备检测到用户对第一标识中的目标标识的第一操作,获取目标标识对应的目标群组成员附近的第二电子设备的第一设备信息。S2102: The first electronic device detects a first operation of a user on a target identifier in the first identifier, and obtains first device information of a second electronic device near a target group member corresponding to the target identifier.
在一些实施例中,第一设备信息包括第二电子设备对应的设备标识、设备类型、设备图标、设备名称、设备昵称中的一项或几项。In some embodiments, the first device information includes one or more of a device identification, a device type, a device icon, a device name, and a device nickname corresponding to the second electronic device.
在一些实施例中,第二电子设备为与目标群组成员位于同一空间,且距离最近的电子设备。In some embodiments, the second electronic device is an electronic device that is located in the same space as the target group member and is closest to the target group member.
在一些实施例中,第一电子设备向服务器发送第一请求,该第一请求携带有目标群组成员对应的第一账户信息。之后,第一电子设备可接收服务器发送的第一设备信息,第一设备信息为服务器根据第一账户信息匹配到的设备信息。In some embodiments, the first electronic device sends a first request to the server, the first request carrying the first account information corresponding to the target group member. Afterwards, the first electronic device can receive the first device information sent by the server, the first device information being the device information matched by the server according to the first account information.
示例性的,在智能家居系统中,目标群组成员的位置信息可通过其中包括的智能家居设备、智能家居控制面板等设备确定。并且,可确定位于目标群组成员附近的第二电子设备的设备信息。之后,智能家居控制面板可将该第二电子设备的设备信息上报到服务器。那么后续,第一电子设备可从服务器获取到相应的第二电子设备的设备信息。For example, in a smart home system, the location information of the target group member can be determined by the smart home device, smart home control panel and other devices included therein. In addition, the device information of the second electronic device located near the target group member can be determined. Afterwards, the smart home control panel can report the device information of the second electronic device to the server. Then, the first electronic device can obtain the device information of the corresponding second electronic device from the server.
如此,实现第一电子设备显示目标群组成员附近的第二电子设备。In this way, the first electronic device can display the second electronic devices near the target group members.
S2103、第一电子设备根据第一设备信息,在目标标识上显示第二电子设备的第一设备标识。S2103: The first electronic device displays the first device identifier of the second electronic device on the target identifier according to the first device information.
在一些实施例中,第一电子设备在获取到目标标识对应的目标群组成员附近的第二电子设备的第一设备信息后,可在目标标识上显示第二电子设备的第一设备标识,以便于用户确认位于目标群组成员附近的第二电子设备。In some embodiments, after obtaining the first device information of the second electronic device near the target group member corresponding to the target identifier, the first electronic device may display the first device identifier of the second electronic device on the target identifier to facilitate the user to confirm the second electronic device near the target group member.
在一些实施例中,第一电子设备检测到用户对第一设备标识的第二操作,向第二电子设备发起通信。In some embodiments, the first electronic device detects a second operation of the user on the first device identifier and initiates communication with the second electronic device.
如此,用户通过第一电子设备的群组卡片,能够确定位于群组卡片中目标群组成员附近的第二电子设备。这样,用户可以选择通过第一电子设备向第二电子设备发起通信,便于快速联系到目标群组成员。Thus, the user can determine the second electronic device located near the target group member in the group card through the group card of the first electronic device. In this way, the user can choose to initiate communication with the second electronic device through the first electronic device, so as to quickly contact the target group member.
并且,用户可确定该第二电子设备是不是当前想要联系的电子设备,有选择的进行通信,满足用户的使用需求。Furthermore, the user can determine whether the second electronic device is the electronic device that the user wants to contact currently, and selectively communicate with the second electronic device to meet the user's usage needs.
在一些实施例中,第一电子设备在检测到用户对第一标识中的目标标识的第一操作之后,还可以在第一群组卡片上,按照预设方式突出显示目标标识。以及在第一群组卡片上的按照预设方式突出显示的目标标识上,显示第二电子设备的设备标识。In some embodiments, after detecting the user's first operation on the target identifier in the first identifier, the first electronic device may also highlight the target identifier in a preset manner on the first group card, and display the device identifier of the second electronic device on the target identifier highlighted in a preset manner on the first group card.
可选的,预设方式例如包括放大显示等。Optionally, the preset method includes, for example, enlarged display, etc.
示例性的,如图14中(a)所示界面1401,电子设备显示群组卡片141。响应于用户点击用户头像142的操作,电子设备显示如图14中(b)所示界面1402。如界面1402所示,在群组卡片141上放大显示用户头像142,并显示用户头像142对应的群组成员附近的电子设备的设备标识,如图标143。For example, as shown in interface 1401 in (a) of FIG14 , the electronic device displays a group card 141. In response to the user clicking on the user avatar 142, the electronic device displays an interface 1402 as shown in (b) of FIG14 . As shown in interface 1402, the user avatar 142 is enlarged and displayed on the group card 141, and the device identifiers of the electronic devices near the group members corresponding to the user avatar 142 are displayed, such as icon 143.
如此,通过预设方式突出显示目标标识,便于用户确认待联系的目标群组成员。并且,便于用户确认该目标群组成员附件的第二电子设备,从而提升用户的使用体验。In this way, the target identifier is highlighted in a preset manner, which facilitates the user to confirm the target group member to be contacted, and also facilitates the user to confirm the second electronic device attached to the target group member, thereby improving the user experience.
在一些实施例中,第一电子设备显示第一文件。检测到用户将第一文件向目标标识拖动的第三操作,向第二电子设备发送第一文件。In some embodiments, the first electronic device displays the first file, detects a third operation of the user dragging the first file toward the target identifier, and sends the first file to the second electronic device.
示例性的,如图18A中(a)所示界面1801,第一电子设备显示群组卡片181,响应于用户点击群组卡片上显示的用户头像182的操作,第一电子设备显示如图18A中(b)所示界面1802。如界面1802所示,在群组卡片181上,第一电子设备放大显示用户头像182,并显示用户头像182对应的群组成员附近的第二电子设备的设备标识,如大屏标识183。第一电子设备桌面上显示有图片184(如第一文件)。第一电子设备检测到用户沿箭头185所示方向,将图片184拖入群组卡片181的显示区域内的操作后,可确定用户指示将图片184发送至大屏标识183对应的第二电子设备,如大屏设备。Exemplarily, as shown in interface 1801 in (a) of FIG. 18A , the first electronic device displays a group card 181. In response to the user clicking on the user avatar 182 displayed on the group card, the first electronic device displays interface 1802 as shown in (b) of FIG. 18A . As shown in interface 1802, on the group card 181, the first electronic device enlarges and displays the user avatar 182, and displays the device identifier of the second electronic device near the group member corresponding to the user avatar 182, such as the large screen identifier 183. A picture 184 (such as the first file) is displayed on the desktop of the first electronic device. After the first electronic device detects the user's operation of dragging the picture 184 into the display area of the group card 181 in the direction indicated by the arrow 185, it can be determined that the user instructs to send the picture 184 to the second electronic device corresponding to the large screen identifier 183, such as the large screen device.
如此,实现文件的快速传输。并且,可保证接收文件的第二电子设备在目标群组成员附近,目标群组成员可快速确定接收文件。In this way, the file can be quickly transmitted. In addition, it can be ensured that the second electronic device receiving the file is near the target group member, and the target group member can quickly determine the received file.
在一些实施例中,第一电子设备检测到用户对第一群组卡片的第四操作,显示多个群组成员中各个群组成员附近的电子设备的设备信息。In some embodiments, the first electronic device detects a fourth operation of the user on the first group card, and displays device information of electronic devices near each of the plurality of group members.
示例性的,如图15中(a)所示界面1501,第一电子设备显示群组卡片151。第一电子设备检测到用户长按群组卡片151上空白显示区域的操作后,可显示如图15中(b)所示界面1502。在界面1502上,第一电子设备可显示群组卡片151包括的全部群组成员,以及群组成员附近电子设备的详情,便于用户快速了解群组成员附近设备情况。For example, as shown in interface 1501 in (a) of FIG. 15 , the first electronic device displays a group card 151. After the first electronic device detects that the user has long pressed the blank display area on the group card 151, an interface 1502 as shown in (b) of FIG. 15 may be displayed. On interface 1502, the first electronic device may display all group members included in the group card 151, as well as details of electronic devices near the group members, so that the user can quickly understand the status of devices near the group members.
在一些实施例中,目标群组成员对应于第一账户。第一电子设备接收第一账户发送的第一信息后,在目标标识上显示第一提示信息,第一提示信息用于提示用户目标群组成员发送的第一信息。In some embodiments, the target group member corresponds to a first account. After receiving the first information sent by the first account, the first electronic device displays first prompt information on the target identifier, and the first prompt information is used to prompt the user of the first information sent by the target group member.
示例性的,如图20B中(a)所示界面2005,第一电子设备接收到求助信息后,可确定求助信息对应的第一账户,进而确定发送该求助信息的第一账户对应的群组成员,以及对应的用户头像。之后,第一电子设备可在确定群组头像后,在显示的群组卡片205中显示的该确定的用户头像206附近显示标识207,该标识207用于提示用户接收到该用户头像206对应的群组成员发送的求助信息。For example, as shown in interface 2005 in (a) of FIG. 20B , after receiving the help-seeking information, the first electronic device may determine the first account corresponding to the help-seeking information, and then determine the group member corresponding to the first account that sent the help-seeking information, and the corresponding user avatar. Afterwards, after determining the group avatar, the first electronic device may display a logo 207 near the determined user avatar 206 displayed in the displayed group card 205, and the logo 207 is used to prompt the user to receive the help-seeking information sent by the group member corresponding to the user avatar 206.
如此,第一电子设备可通过群组卡片,帮助用户实现快速求助,满足用户的使用需求。In this way, the first electronic device can help the user to quickly seek help through the group card, thereby meeting the user's usage needs.
在一些实施例中,第一电子设备响应于用户指示向目标群组成员对应的第一账户发起通信的第八操作,确定第一电子设备附近的一个或多个第四电子设备。显示一个或多个第四电子设备对应的一个或多个第三设备标识。检测到用户对一个或多个第三设备标识中的第四设备标识的九操作,向第四设备标识对应的目标第四电子设备发送第一指示,第一指示携带有第一账户,第一指示用于指示目标第四电子设备向第一账户发起通信。In some embodiments, the first electronic device determines one or more fourth electronic devices near the first electronic device in response to the eighth operation of the user instructing to initiate communication to the first account corresponding to the target group member. Display one or more third device identifiers corresponding to the one or more fourth electronic devices. Detect the ninth operation of the user on the fourth device identifier among the one or more third device identifiers, send a first indication to the target fourth electronic device corresponding to the fourth device identifier, the first indication carries the first account, and the first indication is used to instruct the target fourth electronic device to initiate communication with the first account.
示例性的,如图19A所示场景,用户位于大屏设备前,正在使用手机。其中,手机(如第一电子设备)上已创建群组,显示有群组卡片。手机在显示群组卡片的过程中,如图19B中(a)所示,响应于用户操作,显示群组详情界面1901。手机检测到用户点击用户头像191的操作后,可显示如图19B中(b)所示界面1902。手机检测到用户点击控件192的操作后,确定用户指示通过其他设备拨打电话。那么,手机可搜索附近登录第一应用的电子设备,并显示如图19B中(c)所示界面1903。在界面1903上,手机可显示手机标识193,以及搜索到的第四电子设备的第三设备标识,如大屏设备的设备标识194。Exemplary, as shown in the scenario of FIG. 19A, the user is in front of a large-screen device and is using a mobile phone. Among them, a group has been created on the mobile phone (such as the first electronic device), and a group card is displayed. In the process of displaying the group card, as shown in FIG. 19B (a), the mobile phone displays a group details interface 1901 in response to the user operation. After the mobile phone detects that the user clicks on the user avatar 191, the interface 1902 shown in FIG. 19B (b) can be displayed. After the mobile phone detects that the user clicks on the control 192, it determines that the user instructs to make a call through other devices. Then, the mobile phone can search for nearby electronic devices logged in to the first application, and display an interface 1903 as shown in FIG. 19B (c). On the interface 1903, the mobile phone can display the mobile phone identification 193, and the third device identification of the searched fourth electronic device, such as the device identification 194 of the large-screen device.
之后,手机检测到用户点击设备标识194(如第四设备标识)的操作后,可确定用户指示通过设备标识194对应的大屏设备(如目标第四电子设备)发起通信。那么,手机向大屏设备发送通信指示,在该通信指示中可携带用户头像191对应的账户信息。大屏设备接收到通信指示后,可确定需要发起通信。大屏设备可向服务器发送通信请求,并在该通信请求中携带获取到的账户信息。之后,大屏设备可显示如图19C中(a)所示的电话呼叫界面。Afterwards, after the mobile phone detects that the user clicks on the device identifier 194 (such as the fourth device identifier), it can be determined that the user instructs to initiate communication through the large-screen device corresponding to the device identifier 194 (such as the target fourth electronic device). Then, the mobile phone sends a communication instruction to the large-screen device, and the communication instruction can carry the account information corresponding to the user avatar 191. After receiving the communication instruction, the large-screen device can determine that communication needs to be initiated. The large-screen device can send a communication request to the server and carry the acquired account information in the communication request. Afterwards, the large-screen device can display a phone call interface as shown in (a) in Figure 19C.
如此,用户在需要发起通信时,可选择通过正在使用的电子设备发起通信,也可选择附近的电子设备发起通信,以使得通信过程更加满足用户的使用需求。比如,如图19A所示场景,在求助过程中,用户可通过大屏设备更好的显示能力,获得更加清晰的帮助指导。In this way, when the user needs to initiate communication, he can choose to initiate communication through the electronic device he is using, or he can choose to initiate communication through a nearby electronic device, so that the communication process can better meet the user's usage needs. For example, in the scenario shown in Figure 19A, during the process of asking for help, the user can obtain clearer help guidance through the better display capability of the large-screen device.
在一些实施例中,第一电子设备显示第二群组卡片,第二群组卡片上显示有目标群组成员的目标标识。In some embodiments, the first electronic device displays a second group card, and the second group card displays a target identifier of a target group member.
示例性的,如图11所示界面1101,第一电子设备显示群组卡片111和群组卡片112,其中群组卡片111包括6个群组成员,群组卡片112包括2个群组成员。其中,群组卡片111上显示的用户头像113和群组卡片112上显示的用户头像114对应于相同的联系人。即,群组卡片111和群组卡片112对应的两个群组包括相同的群组成员。Exemplarily, as shown in interface 1101 of FIG. 11 , the first electronic device displays group card 111 and group card 112, wherein group card 111 includes 6 group members and group card 112 includes 2 group members. The user avatar 113 displayed on group card 111 and the user avatar 114 displayed on group card 112 correspond to the same contact. That is, the two groups corresponding to group card 111 and group card 112 include the same group members.
如此,便于用户对于群组卡片的灵活使用,提升用户的使用体验。In this way, users can use group cards flexibly, thereby improving their user experience.
以上结合图5-图21详细说明了本申请实施例提供的通信方法。以下结合图22详细说明本申请实施例提供的第一电子设备。The communication method provided in the embodiment of the present application is described in detail above in conjunction with Figures 5 to 21. The first electronic device provided in the embodiment of the present application is described in detail below in conjunction with Figure 22.
在一种可能的设计中,图22为本申请实施例提供的第一电子设备的结构示意图。如图22所示,第一电子设备2200可以包括:显示单元2201、收发单元2202以及处理单元2203。第一电子设备2200可用于实现上述方法实施例中涉及的第一电子设备或电子设备的功能。In one possible design, FIG22 is a schematic diagram of the structure of a first electronic device provided in an embodiment of the present application. As shown in FIG22, the first electronic device 2200 may include: a display unit 2201, a transceiver unit 2202, and a processing unit 2203. The first electronic device 2200 may be used to implement the functions of the first electronic device or electronic device involved in the above method embodiment.
可选地,显示单元2201,用于支持第一电子设备2200显示界面内容;和/或,支持第一电子设备2200执行图21中的S2102和S2103。Optionally, the display unit 2201 is used to support the first electronic device 2200 to display interface content; and/or support the first electronic device 2200 to execute S2102 and S2103 in Figure 21.
可选地,收发单元2202,用于支持第一电子设备2200执行图21中的S2102。Optionally, the transceiver unit 2202 is used to support the first electronic device 2200 to execute S2102 in Figure 21.
可选地,处理单元2203,用于支持第一电子设备2200执行图21中的S2103。Optionally, the processing unit 2203 is used to support the first electronic device 2200 to execute S2103 in Figure 21.
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。第一电子设备2200中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的通信方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。Among them, the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and/or functions of each unit in the first electronic device 2200 are respectively to implement the corresponding processes of the communication method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, they will not be repeated here.
可选地,图22所示的第一电子设备2200还可以包括存储单元(图22中未示出),该存储单元中存储有程序或指令。当显示单元2201、收发单元2202以及处理单元2203执行该程序或指令时,使得图22所示的第一电子设备2200可以执行上述方法实施例中所述的通信方法。Optionally, the first electronic device 2200 shown in FIG22 may further include a storage unit (not shown in FIG22 ), in which a program or instruction is stored. When the display unit 2201, the transceiver unit 2202, and the processing unit 2203 execute the program or instruction, the first electronic device 2200 shown in FIG22 may execute the communication method described in the above method embodiment.
图22所示的第一电子设备2200的技术效果可以参考上述方法实施例中所述的通信方法的技术效果,此处不再赘述。The technical effects of the first electronic device 2200 shown in FIG. 22 may refer to the technical effects of the communication method described in the above method embodiment, and will not be repeated here.
除了以第一电子设备2200的形式以外,本申请提供的技术方案也可以为第一电子设备中的功能单元或者芯片,或者与第一电子设备匹配使用的装置。In addition to being in the form of the first electronic device 2200, the technical solution provided in the present application may also be a functional unit or chip in the first electronic device, or a device used in conjunction with the first electronic device.
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gatearray,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processorunit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的通信方法。An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the communication method in the above-mentioned embodiment.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的通信方法。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 enabled to execute the above-mentioned related steps to implement the communication method in the above-mentioned embodiment.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的通信方法。In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the communication method in each of the above method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(application specific integrated circuit,ASIC)中。The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211311612.3ACN117938559A (en) | 2022-10-25 | 2022-10-25 | Communication method and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211311612.3ACN117938559A (en) | 2022-10-25 | 2022-10-25 | Communication method and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN117938559Atrue CN117938559A (en) | 2024-04-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211311612.3APendingCN117938559A (en) | 2022-10-25 | 2022-10-25 | Communication method and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN117938559A (en) |
| Publication | Publication Date | Title |
|---|---|---|
| US11385857B2 (en) | Method for displaying UI component and electronic device | |
| WO2020244495A1 (en) | Screen projection display method and electronic device | |
| WO2020244492A1 (en) | Screen projection display method and electronic device | |
| WO2020155014A1 (en) | Smart home device sharing system and method, and electronic device | |
| CN116095881A (en) | Multi-device cooperation method, electronic device and related products | |
| CN116489268A (en) | Equipment identification method and related device | |
| CN114422640B (en) | Equipment recommendation method and electronic equipment | |
| CN114079691B (en) | A device identification method and related device | |
| US20220124607A1 (en) | Method for Accessing Network by Smart Home Device and Related Device | |
| CN112130788A (en) | A content sharing method and device thereof | |
| WO2023030099A1 (en) | Cross-device interaction method and apparatus, and screen projection system and terminal | |
| US20240303024A1 (en) | Display method, electronic device, and system | |
| CN115700451A (en) | Service recommendation method and electronic equipment | |
| WO2022127670A1 (en) | Call method and system, and related device | |
| CN114244955B (en) | Service sharing method and system, electronic device and computer readable storage medium | |
| CN115460445A (en) | Screen projection method of electronic equipment and electronic equipment | |
| CN116301541A (en) | Method for sharing file, electronic device and computer readable storage medium | |
| WO2020051916A1 (en) | Method for transmitting information and electronic device | |
| JP2023534182A (en) | File opening methods and devices | |
| CN116016418B (en) | Information interaction method and electronic equipment | |
| CN115242994B (en) | Video call system, method and device | |
| CN118363506A (en) | Device interaction method and electronic device | |
| CN116541589A (en) | Play record display method and related equipment | |
| WO2022161058A1 (en) | Photographing method for panoramic image, and electronic device | |
| CN117938559A (en) | Communication method and electronic device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |