技术领域technical field
本公开涉及通信领域,尤其涉及一种设备共享方法、装置及存储介质。The present disclosure relates to the communication field, and in particular to a device sharing method, device and storage medium.
背景技术Background technique
随着科技的发展,诸如智能空调、智能水壶、智能空气净化器等智能设备逐渐出现在人们的视野中。实际应用中,智能设备的拥有者可以通过手机等终端远程控制智能设备,也可以将自己的智能设备共享给其他用户。为了便于后续说明,可以将其他用户称为第一用户,将智能设备的拥有者称为第二用户。With the development of science and technology, smart devices such as smart air conditioners, smart kettles, and smart air purifiers have gradually appeared in people's field of vision. In practical applications, the owner of the smart device can remotely control the smart device through a terminal such as a mobile phone, and can also share his smart device with other users. For the convenience of subsequent description, other users may be referred to as a first user, and the owner of the smart device may be referred to as a second user.
目前,当第二用户将自己的智能设备共享给第一用户时,第二用户可以在第二终端的设备共享界面中输入第一用户账号,这样,第二终端可以通过服务器向第一终端发送共享通知,第二终端为第二用户对应的终端,第一终端为第一用户对应的终端。当第一终端接收到该共享通知后,可以显示该共享通知,如果第一用户接受共享,则在第一终端上触发确认共享操作。此时,第一终端可以向服务器发送共享接受消息。当服务器接收到该共享接受消息时,可以将第一用户账号与该智能设备进行绑定,这样,第一用户便获得了对该智能设备的使用权和操作权。At present, when the second user shares his smart device with the first user, the second user can enter the first user account in the device sharing interface of the second terminal, so that the second terminal can send the smart device to the first terminal through the server. For sharing notifications, the second terminal is a terminal corresponding to the second user, and the first terminal is a terminal corresponding to the first user. After receiving the sharing notification, the first terminal may display the sharing notification, and if the first user accepts the sharing, trigger a confirmation sharing operation on the first terminal. At this point, the first terminal may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the smart device, so that the first user obtains the right to use and operate the smart device.
发明内容Contents of the invention
为了解决相关技术中的问题,本公开实施例提供了一种设备共享方法、装置及存储介质。所述技术方案如下:In order to solve problems in related technologies, embodiments of the present disclosure provide a device sharing method, device, and storage medium. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种设备共享方法,应用于第一终端,所述方法包括:According to the first aspect of the embodiments of the present disclosure, there is provided a device sharing method applied to a first terminal, the method comprising:
向服务器发送设备查询请求,所述设备查询请求中携带所述第一终端当前接入的无线网络的网络标识和第一用户账号,所述第一用户账号为所述第一终端当前登录的账号,所述设备查询请求用于指示所述服务器获取并返回目标智能设备的描述信息,所述目标智能设备为与所述第一用户账号未绑定且允许共享的智能设备;sending a device query request to the server, the device query request carrying the network identifier of the wireless network currently accessed by the first terminal and a first user account, the first user account being the account currently logged in by the first terminal The device query request is used to instruct the server to obtain and return description information of a target smart device, where the target smart device is a smart device that is not bound to the first user account and is allowed to be shared;
当接收到所述服务器发送的所述目标智能设备的描述信息时,显示第一提示消息,所述第一提示消息用于提示是否通过所述第一终端对所述目标智能设备进行控制;When receiving the description information of the target smart device sent by the server, displaying a first prompt message, where the first prompt message is used to prompt whether to control the target smart device through the first terminal;
当检测到对所述第一提示消息的确认操作时,向所述服务器发送共享接受消息,所述共享接受消息用于指示所述服务器将所述第一用户账号与所述目标智能设备进行绑定。When a confirmation operation on the first prompt message is detected, a sharing acceptance message is sent to the server, where the sharing acceptance message is used to instruct the server to bind the first user account with the target smart device Certainly.
可选地,所述目标智能设备的描述信息中包括所述目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
所述向所述服务器发送共享接受消息之后,还包括:After sending the sharing acceptance message to the server, it also includes:
向所述服务器发送控制消息,所述控制消息中至少携带所述第一用户账号、所述目标智能设备的标识和控制操作,所述控制消息用于指示所述服务器控制所述目标智能设备执行所述控制操作;sending a control message to the server, where the control message at least carries the first user account, the identification of the target smart device, and a control operation, and the control message is used to instruct the server to control the target smart device to perform said control operation;
接收所述服务器发送的控制成功消息或者无权限操作提示消息,所述控制成功消息用于提示已成功控制所述目标智能设备执行所述控制操作,所述无权限操作提示消息用于提示所述第一终端没有控制所述目标智能设备的权限,且所述无权限操作提示消息为所述服务器在确定所述第一用户账号与所述目标智能设备之间的绑定关系已解除时发送。Receive a control success message or an unauthorized operation prompt message sent by the server, the control success message is used to prompt that the target smart device has been successfully controlled to perform the control operation, and the unauthorized operation prompt message is used to prompt the The first terminal has no authority to control the target smart device, and the unauthorized operation prompt message is sent by the server when it is determined that the binding relationship between the first user account and the target smart device has been released.
可选地,所述控制消息中还携带所述第一终端当前接入的无线网络的网络标识。Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal.
可选地,所述控制消息中携带的网络标识与所述设备查询请求中携带的网络标识不同。Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
可选地,所述向所述服务器发送共享接受消息之后,还包括:Optionally, after sending the sharing acceptance message to the server, the method further includes:
接收所述服务器发送的共享解除通知消息,所述共享解除通知消息用于通知所述第一终端与所述目标智能设备的绑定关系已解除。and receiving a sharing release notification message sent by the server, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
根据本公开实施例的第二方面,提供一种设备共享方法,应用于服务器,所述方法包括:According to a second aspect of an embodiment of the present disclosure, there is provided a device sharing method applied to a server, the method comprising:
接收第一终端发送的设备查询请求,所述设备查询请求中携带所述第一终端当前接入的无线网络的网络标识和第一用户账号,所述第一用户账号为所述第一终端当前登录的账号;Receive a device query request sent by the first terminal, where the device query request carries the network identifier of the wireless network currently accessed by the first terminal and a first user account, where the first user account is the current login account;
根据所述设备查询请求中携带的网络标识和所述第一用户账号,获取目标智能设备的描述信息,所述目标智能设备为与所述第一用户账号未绑定且允许共享的智能设备;Obtain description information of a target smart device according to the network identifier carried in the device query request and the first user account, where the target smart device is a smart device that is not bound to the first user account and is allowed to be shared;
向所述第一终端发送所述目标智能设备的描述信息;sending description information of the target smart device to the first terminal;
当接收到所述第一终端发送的共享接受消息时,将所述第一用户账号与所述目标智能设备进行绑定。When receiving the sharing acceptance message sent by the first terminal, bind the first user account with the target smart device.
可选地,所述根据所述设备查询请求中携带的网络标识和所述第一用户账号,获取目标智能设备的描述信息,包括:Optionally, the acquiring the description information of the target smart device according to the network identifier carried in the device query request and the first user account includes:
从存储的共享设备信息表中获取至少一个智能设备的描述信息,所述共享设备信息表用于存储允许共享的各个智能设备接入的无线网络的网络标识、描述信息,以及拥有者的账号,所述至少一个智能设备接入的无线网络的网络标识与所述设备查询请求中携带的网络标识相同;Acquiring the description information of at least one smart device from the stored shared device information table, the shared device information table is used to store the network identification and description information of the wireless network that each smart device is allowed to share, and the account number of the owner, The network identifier of the wireless network accessed by the at least one smart device is the same as the network identifier carried in the device query request;
将所述至少一个智能设备中拥有者的账号与所述第一用户账号不同的智能设备确定为所述目标智能设备;determining a smart device whose owner account of the at least one smart device is different from the first user account as the target smart device;
从所述共享设备信息表中获取所述目标智能设备的描述信息。Obtain the description information of the target smart device from the shared device information table.
可选地,所述从存储的共享设备信息表中获取至少一个智能设备的描述信息之前,还包括:Optionally, before obtaining the description information of at least one smart device from the stored shared device information table, the method further includes:
接收第二终端发送的设备共享请求,所述设备共享请求中携带第二用户账号、所述目标智能设备的描述信息,以及所述目标智能设备接入的无线网络的网络标识,所述第二用户账号为所述目标智能设备的拥有者的账号;receiving the device sharing request sent by the second terminal, the device sharing request carrying the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device, the second The user account is the account of the owner of the target smart device;
将所述第二用户账号、所述目标智能设备的描述信息,以及所述目标智能设备接入的无线网络的网络标识,存储至所述共享设备信息表中。The second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device are stored in the shared device information table.
可选地,所述目标智能设备的描述信息中包括所述目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
所述将所述第一用户账号与所述目标智能设备进行绑定之后,还包括:After the binding of the first user account and the target smart device, further includes:
接收所述第一终端发送的控制消息,所述控制消息中至少携带所述第一用户账号、所述目标智能设备的标识和控制操作;Receiving a control message sent by the first terminal, where the control message at least carries the first user account, the identification of the target smart device, and a control operation;
当根据所述第一用户账号和所述目标智能设备的标识,确定所述第一用户账号与所述目标智能设备之间存在绑定关系时,控制所述目标智能设备执行所述控制操作,并向所述第一终端发送控制成功消息,所述控制成功消息用于指示已成功控制所述目标智能设备执行所述控制操作;When it is determined according to the first user account and the identifier of the target smart device that there is a binding relationship between the first user account and the target smart device, controlling the target smart device to perform the control operation, and sending a control success message to the first terminal, where the control success message is used to indicate that the target smart device has been successfully controlled to perform the control operation;
当根据所述第一用户账号和所述目标智能设备的标识,确定所述第一用户账号与所述目标智能设备之间的绑定关系已解除时,向所述第一终端发送无权限操作提示消息,所述无权限操作提示消息用于提示所述第一终端没有控制所述目标智能设备的权限。When it is determined according to the first user account and the target smart device that the binding relationship between the first user account and the target smart device has been released, send an unauthorized operation to the first terminal A prompt message, the unauthorized operation prompt message is used to prompt that the first terminal has no authority to control the target smart device.
可选地,所述控制消息中还携带所述第一终端当前接入的无线网络的网络标识;Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal;
所述控制所述目标智能设备执行所述控制操作之前,还包括:Before controlling the target smart device to perform the control operation, it also includes:
获取所述目标智能设备的共享方式,所述共享方式包括第一共享方式或第二共享方式,所述第一共享方式是指在同一无线网络下共享所述目标智能设备的方式,所述第二共享方式是指共享所述目标智能设备的网络不做限制的方式;Obtain the sharing method of the target smart device, the sharing method includes a first sharing method or a second sharing method, the first sharing method refers to a method of sharing the target smart device under the same wireless network, and the second sharing method The second sharing method refers to the method of sharing the network of the target smart device without limitation;
当所述目标智能设备的共享方式为所述第一共享方式,且所述控制消息中携带的网络标识与所述目标智能设备接入的无线网络的网络标识相同时,执行控制所述目标智能设备执行所述控制操作的步骤;When the sharing method of the target smart device is the first sharing method, and the network identifier carried in the control message is the same as the network identifier of the wireless network accessed by the target smart device, perform control of the target smart device. the step of the device performing said control operation;
当所述目标智能设备的共享方式为所述第二共享方式时,直接执行控制所述目标智能设备执行所述控制操作的步骤。When the sharing mode of the target smart device is the second sharing mode, directly execute the step of controlling the target smart device to perform the control operation.
可选地,所述将所述第一用户账号与所述目标智能设备进行绑定之后,还包括:Optionally, after the binding of the first user account and the target smart device, further includes:
接收第二终端发送的移除指令,所述移除指令中携带第二用户账号、所述目标智能设备的标识和所述第一用户账号;receiving a removal instruction sent by the second terminal, where the removal instruction carries a second user account, an identifier of the target smart device, and the first user account;
根据所述第二用户账号和所述目标智能设备的标识,解除所述第一用户账号与所述目标智能设备之间的绑定关系;According to the identification of the second user account and the target smart device, release the binding relationship between the first user account and the target smart device;
向所述第一终端发送共享解除通知消息,所述共享解除通知消息用于通知所述第一终端与所述目标智能设备的绑定关系已解除。Sending a sharing release notification message to the first terminal, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
根据本公开实施例的第三方面,提供一种设备共享装置,应用于第一终端,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing equipment, which is applied to a first terminal, and the apparatus includes:
第一发送模块,用于向服务器发送设备查询请求,所述设备查询请求中携带所述第一终端当前接入的无线网络的网络标识和第一用户账号,所述第一用户账号为所述第一终端当前登录的账号,所述设备查询请求用于指示所述服务器获取并返回目标智能设备的描述信息,所述目标智能设备为与所述第一用户账号未绑定且允许共享的智能设备;The first sending module is configured to send a device query request to the server, the device query request carrying the network identifier of the wireless network currently accessed by the first terminal and a first user account, the first user account being the The account currently logged in by the first terminal, the device query request is used to instruct the server to obtain and return the description information of the target smart device, the target smart device is a smart device that is not bound to the first user account and allows sharing equipment;
显示模块,用于当接收到所述服务器发送的所述目标智能设备的描述信息时,显示第一提示消息,所述第一提示消息用于提示是否通过所述第一终端对所述目标智能设备进行控制;A display module, configured to display a first prompt message when receiving the description information of the target smart device sent by the server, and the first prompt message is used to prompt whether to send the target smart device through the first terminal. device control;
第二发送模块,用于当检测到对所述第一提示消息的确认操作时,向所述服务器发送共享接受消息,所述共享接受消息用于指示所述服务器将所述第一用户账号与所述目标智能设备进行绑定。The second sending module is configured to send a sharing acceptance message to the server when a confirmation operation on the first prompt message is detected, and the sharing acceptance message is used to instruct the server to associate the first user account with the first prompt message. The target smart device is bound.
可选地,所述目标智能设备的描述信息中包括所述目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
所述装置还包括:The device also includes:
第三发送模块,用于向所述服务器发送控制消息,所述控制消息中至少携带所述第一用户账号、所述目标智能设备的标识和控制操作,所述控制消息用于指示所述服务器控制所述目标智能设备执行所述控制操作;A third sending module, configured to send a control message to the server, where the control message at least carries the first user account, the identification of the target smart device, and a control operation, and the control message is used to instruct the server controlling the target smart device to perform the control operation;
第一接收模块,用于接收所述服务器发送的控制成功消息或者无权限操作提示消息,所述控制成功消息用于提示已成功控制所述目标智能设备执行所述控制操作,所述无权限操作提示消息用于提示所述第一终端没有控制所述目标智能设备的权限,且所述无权限操作提示消息为所述服务器在确定所述第一用户账号与所述目标智能设备之间的绑定关系已解除时发送。The first receiving module is configured to receive a control success message or an unauthorized operation prompt message sent by the server, the control success message is used to prompt that the target smart device has been successfully controlled to perform the control operation, and the unauthorized operation The prompt message is used to prompt that the first terminal does not have the authority to control the target smart device, and the unauthorized operation prompt message is when the server determines the binding between the first user account and the target smart device. Sent when the contract has been released.
可选地,所述控制消息中还携带所述第一终端当前接入的无线网络的网络标识。Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal.
可选地,所述控制消息中携带的网络标识与所述设备查询请求中携带的网络标识不同。Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
可选地,所述装置还包括:Optionally, the device also includes:
第二接收模块,用于接收所述服务器发送的共享解除通知消息,所述共享解除通知消息用于通知所述第一终端与所述目标智能设备的绑定关系已解除。The second receiving module is configured to receive a sharing release notification message sent by the server, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
根据本公开实施例的第四方面,提供一种设备共享装置,应用于服务器,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing equipment, which is applied to a server, and the apparatus includes:
第一接收模块,用于接收第一终端发送的设备查询请求,所述设备查询请求中携带所述第一终端当前接入的无线网络的网络标识和第一用户账号,所述第一用户账号为所述第一终端当前登录的账号;The first receiving module is configured to receive a device query request sent by the first terminal, the device query request carrying the network identifier of the wireless network currently accessed by the first terminal and a first user account, the first user account is the account currently logged in by the first terminal;
第一获取模块,用于根据所述设备查询请求中携带的网络标识和所述第一用户账号,获取目标智能设备的描述信息,所述目标智能设备为与所述第一用户账号未绑定且允许共享的智能设备;A first obtaining module, configured to obtain description information of a target smart device according to the network identifier carried in the device query request and the first user account, the target smart device is not bound to the first user account Smart devices that allow sharing;
第一发送模块,用于向所述第一终端发送所述目标智能设备的描述信息;A first sending module, configured to send description information of the target smart device to the first terminal;
绑定模块,用于当接收到所述第一终端发送的共享接受消息时,将所述第一用户账号与所述目标智能设备进行绑定。A binding module, configured to bind the first user account with the target smart device when receiving the sharing acceptance message sent by the first terminal.
可选地,所述第一获取模块包括:Optionally, the first acquisition module includes:
第一获取子模块,用于从存储的共享设备信息表中获取至少一个智能设备的描述信息,所述共享设备信息表用于存储允许共享的各个智能设备接入的无线网络的网络标识、描述信息,以及拥有者的账号,所述至少一个智能设备接入的无线网络的网络标识与所述设备查询请求中携带的网络标识相同;The first obtaining submodule is used to obtain the description information of at least one smart device from the stored shared device information table, and the shared device information table is used to store the network identification and description of the wireless network that each smart device is allowed to share. Information, and the account number of the owner, the network identifier of the wireless network accessed by the at least one smart device is the same as the network identifier carried in the device query request;
确定子模块,用于将所述至少一个智能设备中拥有者的账号与所述第一用户账号不同的智能设备确定为所述目标智能设备;A determining submodule, configured to determine, among the at least one smart device, a smart device whose owner's account is different from the first user account as the target smart device;
第二获取子模块,用于从所述共享设备信息表中获取所述目标智能设备的描述信息。The second acquiring submodule is configured to acquire the description information of the target smart device from the shared device information table.
可选地,所述第一获取模块还包括:Optionally, the first acquisition module also includes:
接收子模块,用于接收第二终端发送的设备共享请求,所述设备共享请求中携带第二用户账号、所述目标智能设备的描述信息,以及所述目标智能设备接入的无线网络的网络标识,所述第二用户账号为所述目标智能设备的拥有者的账号;The receiving submodule is configured to receive the device sharing request sent by the second terminal, the device sharing request carrying the second user account, the description information of the target smart device, and the network of the wireless network accessed by the target smart device Identifying that the second user account is the account of the owner of the target smart device;
存储子模块,用于将所述第二用户账号、所述目标智能设备的描述信息,以及所述目标智能设备接入的无线网络的网络标识,存储至所述共享设备信息表中。The storage submodule is configured to store the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device into the shared device information table.
可选地,所述目标智能设备的描述信息中包括所述目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
所述装置还包括:The device also includes:
第二接收模块,用于接收所述第一终端发送的控制消息,所述控制消息中至少携带所述第一用户账号、所述目标智能设备的标识和控制操作;The second receiving module is configured to receive a control message sent by the first terminal, where the control message at least carries the first user account, the identification of the target smart device, and a control operation;
控制模块,用于当根据所述第一用户账号和所述目标智能设备的标识,确定所述第一用户账号与所述目标智能设备之间存在绑定关系时,控制所述目标智能设备执行所述控制操作,并向所述第一终端发送控制成功消息,所述控制成功消息用于指示已成功控制所述目标智能设备执行所述控制操作;a control module, configured to control the target smart device to execute the The control operation, and sending a control success message to the first terminal, where the control success message is used to indicate that the target smart device has been successfully controlled to perform the control operation;
第二发送模块,用于当根据所述第一用户账号和所述目标智能设备的标识,确定所述第一用户账号与所述目标智能设备之间的绑定关系已解除时,向所述第一终端发送无权限操作提示消息,所述无权限操作提示消息用于提示所述第一终端没有控制所述目标智能设备的权限。The second sending module is configured to, when it is determined according to the first user account and the identifier of the target smart device that the binding relationship between the first user account and the target smart device has been released, send the message to the The first terminal sends an unauthorized operation prompt message, where the unauthorized operation prompt message is used to prompt that the first terminal has no authority to control the target smart device.
可选地,所述控制消息中还携带所述第一终端当前接入的无线网络的网络标识;Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal;
所述装置还包括:The device also includes:
第二获取模块,用于获取所述目标智能设备的共享方式,所述共享方式包括第一共享方式或第二共享方式,所述第一共享方式是指在同一无线网络下共享所述目标智能设备的方式,所述第二共享方式是指共享所述目标智能设备的网络不做限制的方式;The second obtaining module is used to obtain the sharing method of the target smart device, the sharing method includes a first sharing method or a second sharing method, and the first sharing method refers to sharing the target smart device under the same wireless network device, the second sharing method refers to the method of sharing the network of the target smart device without limitation;
第一触发模块,用于当所述目标智能设备的共享方式为所述第一共享方式,且所述控制消息中携带的网络标识与所述目标智能设备接入的无线网络的网络标识相同时,触发所述控制模块控制所述目标智能设备执行所述控制操作;A first trigger module, configured to when the sharing mode of the target smart device is the first sharing mode, and the network identifier carried in the control message is the same as the network identifier of the wireless network accessed by the target smart device , triggering the control module to control the target smart device to perform the control operation;
第二触发模块,用于当所述目标智能设备的共享方式为所述第二共享方式时,直接触发所述控制模块控制所述目标智能设备执行所述控制操作。The second triggering module is configured to directly trigger the control module to control the target smart device to perform the control operation when the sharing mode of the target smart device is the second sharing mode.
可选地,所述装置还包括:Optionally, the device also includes:
第三接收模块,用于接收第二终端发送的移除指令,所述移除指令中携带第二用户账号、所述目标智能设备的标识和所述第一用户账号;A third receiving module, configured to receive a removal instruction sent by a second terminal, where the removal instruction carries a second user account, an identifier of the target smart device, and the first user account;
解除模块,用于根据所述第二用户账号和所述目标智能设备的标识,解除所述第一用户账号与所述目标智能设备之间的绑定关系;A release module, configured to release the binding relationship between the first user account and the target smart device according to the second user account and the identifier of the target smart device;
第三发送模块,用于向所述第一终端发送共享解除通知消息,所述共享解除通知消息用于通知所述第一终端与所述目标智能设备的绑定关系已解除。A third sending module, configured to send a sharing release notification message to the first terminal, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
根据本公开实施例的第五方面,提供一种设备共享装置,所述装置包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided an apparatus for sharing equipment, the apparatus including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为执行上述第一方面所述的设备共享方法的步骤。Wherein, the processor is configured to execute the steps of the device sharing method described in the first aspect above.
根据本公开实施例的第六方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第一方面所述的设备共享方法的步骤。According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the device sharing method described in the above-mentioned first aspect is implemented. A step of.
根据本公开实施例的第七方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的设备共享方法的步骤。According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer program product including instructions, which, when run on a computer, cause the computer to execute the steps of the device sharing method described in the first aspect above.
根据本公开实施例的第八方面,提供一种设备共享装置,所述装置包括:According to an eighth aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing equipment, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为执行上述第二方面所述的设备共享方法的步骤。Wherein, the processor is configured to execute the steps of the device sharing method described in the second aspect above.
根据本公开实施例的第九方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第二方面所述的设备共享方法的步骤。According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the device sharing method described in the second aspect above is implemented A step of.
根据本公开实施例的第十方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面所述的设备共享方法的步骤。According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer program product including instructions, which, when run on a computer, cause the computer to execute the steps of the device sharing method described in the second aspect above.
本公开的实施例提供的技术方案至少可以包括以下有益效果:第一终端向服务器发送设备查询请求。由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器在接收到该设备查询请求后,可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。当第一终端接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,当第一终端检测到对该第一提示消息的确认操作时,可以向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得所有满足条件的第一终端均可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。The technical solutions provided by the embodiments of the present disclosure may at least include the following advantageous effects: the first terminal sends a device query request to the server. Since the device query request carries the network identifier and the first user account of the wireless network currently accessed by the first terminal, after receiving the device query request, the server can obtain the target smart device according to the network identifier and the first user account and send the description information of the target smart device to the first terminal. When the first terminal receives the description information of the target smart device sent by the server, it may display a first prompt message, and when the first terminal detects a confirmation operation on the first prompt message, it may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, all the first terminals that meet the conditions can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是本公开实施例提供的一种设备共享的实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment for device sharing provided by an embodiment of the present disclosure;
图2是根据一示例性实施例示出的一种设备共享方法的流程图;Fig. 2 is a flow chart showing a device sharing method according to an exemplary embodiment;
图3是根据一示例性实施例示出的另一种设备共享方法的流程图;Fig. 3 is a flow chart showing another device sharing method according to an exemplary embodiment;
图4是根据一示例性实施例示出的又一种设备共享方法的流程图;Fig. 4 is a flow chart showing another device sharing method according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种设备共享设置界面示意图;Fig. 5 is a schematic diagram of a device sharing setting interface according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种提示消息显示界面示意图;Fig. 6 is a schematic diagram of a prompt message display interface according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种绑定进度提示界面示意图;Fig. 7 is a schematic diagram of a binding progress prompt interface according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种绑定成功消息显示界面示意图;Fig. 8 is a schematic diagram of a binding success message display interface according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种设备共享提示消息显示界面示意图;Fig. 9 is a schematic diagram of a device sharing prompt message display interface according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种共享方式设置和用户移除界面示意图;Fig. 10 is a schematic diagram of an interface for setting a sharing mode and removing a user according to an exemplary embodiment;
图11是根据一示例性实施例示出的一种共享解除通知消息显示界面示意图;Fig. 11 is a schematic diagram of a display interface of a sharing cancellation notification message according to an exemplary embodiment;
图12是根据一示例性实施例示出的一种设备共享装置的框图;Fig. 12 is a block diagram of an apparatus for sharing equipment according to an exemplary embodiment;
图13是根据一示例性实施例示出的另一种设备共享装置的框图;Fig. 13 is a block diagram of another device sharing apparatus according to an exemplary embodiment;
图14是根据一示例性实施例示出的又一种设备共享装置的框图;Fig. 14 is a block diagram of another device sharing device according to an exemplary embodiment;
图15是根据一示例性实施例示出的再一种设备共享装置的框图。Fig. 15 is a block diagram of another device sharing apparatus according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在对本公开实施例提供的方法进行详细的解释说明之前,先对本公开实施例涉及的名词、应用场景和实施环境进行介绍。Before explaining the methods provided by the embodiments of the present disclosure in detail, the nouns, application scenarios, and implementation environments involved in the embodiments of the present disclosure are introduced.
首先,对本公开实施例涉及的名词进行说明。First, nouns involved in the embodiments of the present disclosure will be described.
第一终端:为第一用户对应的终端,第一用户为除智能设备的拥有者以外的其他用户。第一终端可以是移动终端,也可以是固定终端。移动终端包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、平板电脑、便携设备(例如,便携式计算机、袖珍式计算机或手持式计算机)等具有安装应用软件且具有操作显示屏的移动设备。固定终端包括但不限于门禁、智能固定电话、控制台等具有图像采集功能的固定设备。本公开实施例对此不作限定。The first terminal: the terminal corresponding to the first user, where the first user is other users except the owner of the smart device. The first terminal may be a mobile terminal or a fixed terminal. Mobile terminals include but are not limited to mobile phones, personal digital assistants (Personal Digital Assistant, PDA), tablet computers, portable devices (such as portable computers, pocket computers or handheld computers) and other mobile devices with installed application software and operating display screens. equipment. Fixed terminals include but are not limited to access control, smart fixed phones, consoles and other fixed devices with image acquisition functions. The embodiment of the present disclosure does not limit this.
第二终端:为第二用户对应的终端,第二用户为智能设备的拥有者。第二终端可以是移动终端,也可以是固定终端。移动终端包括但不限于手机、PDA、平板电脑、便携设备(例如,便携式计算机、袖珍式计算机或手持式计算机)等具有安装应用软件且具有操作显示屏的移动设备。固定终端包括但不限于门禁、智能固定电话、控制台等具有图像采集功能的固定设备。本公开实施例对此不作限定。Second terminal: a terminal corresponding to a second user, and the second user is the owner of the smart device. The second terminal may be a mobile terminal or a fixed terminal. Mobile terminals include but are not limited to mobile phones, PDAs, tablet computers, portable devices (eg, portable computers, pocket computers, or handheld computers) and other mobile devices with installed application software and operating display screens. Fixed terminals include but are not limited to access control, smart fixed phones, consoles and other fixed devices with image acquisition functions. The embodiment of the present disclosure does not limit this.
其次,对本公开实施例涉及的应用场景进行说明。Secondly, the application scenarios involved in the embodiments of the present disclosure are described.
现代生活中,人们可能拥有类似智能空调、智能水壶、智能空气净化器等多个智能设备,第二用户可以通过第二终端远程控制智能设备,也可以将自己的智能设备共享给第一用户。目前,第二用户在将智能设备共享给第一用户时,需要在第二终端的设备共享界面中手动输入第一用户账号,之后,第二终端通过服务器向第一终端发送共享通知,第一终端接收到共享通知后可以将该共享通知显示给第一用户,如果第一用户接受共享,则可以在第一终端上触发确认共享操作。此时,第一终端可以向服务器发送共享接受消息。当服务器接收到该共享接受消息时,可以将第一用户账号与该智能设备进行绑定,这样,第一用户便获得了对该智能设备的使用权和操作权。然而,当第二用户想要将自己的智能设备共享给多个第一用户,则需要分次添加多个第一用户账号,并分次向多个第一终端发送共享通知,这样就会导致设备共享效率低,操作过程复杂,成本高,且容易出错。另外,由于第一用户账号为第二用户指定的,这样就限制了智能设备的共享范围。In modern life, people may have multiple smart devices such as smart air conditioners, smart kettles, and smart air purifiers. The second user can remotely control the smart devices through the second terminal, or share their smart devices with the first user. At present, when the second user shares the smart device with the first user, he needs to manually enter the first user account in the device sharing interface of the second terminal. After that, the second terminal sends a sharing notification to the first terminal through the server. After receiving the sharing notification, the terminal may display the sharing notification to the first user, and if the first user accepts the sharing, a confirmation sharing operation may be triggered on the first terminal. At this time, the first terminal may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the smart device, so that the first user obtains the right to use and operate the smart device. However, when the second user wants to share his smart device with multiple first users, he needs to add multiple first user accounts in batches, and send sharing notifications to multiple first terminals in batches, which will lead to The efficiency of equipment sharing is low, the operation process is complicated, the cost is high, and it is easy to make mistakes. In addition, since the first user account is designated for the second user, the sharing range of the smart device is limited.
最后,对本公开实施例涉及的实施环境进行说明。Finally, the implementation environment involved in the embodiments of the present disclosure will be described.
图1是本公开实施例提供的一种设备共享的实施环境示意图。参见图1,该实施环境包括:第一终端101、第二终端102和服务器103,第一终端101与服务器103之间可以通过有线或者无线连接以进行通信,第二终端102与服务器103之间也可以通过有线或者无线连接以进行通信。其中,第二终端102可以向服务器103发送设备共享请求,服务器103可以将该设备共享请求中的信息存储至共享设备信息表中。第一终端101可以向服务器103发送设备查询请求,该设备查询请求中可以携带第一终端101当前接入的无线网络的网络标识和第一用户账号。服务器103在接收到第一终端101发送的设备查询请求时,可以获取并返回目标智能设备的描述信息。当第一终端101接收到服务器103发送的目标智能设备的描述信息时,可以显示第一提示消息,这样,在第一用户接受共享时可以在第一终端101上触发确认共享操作。此时,第一终端101可以向服务器103发送共享接受消息。当服务器103接收到该共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现智能设备的共享。Fig. 1 is a schematic diagram of an implementation environment of device sharing provided by an embodiment of the present disclosure. Referring to FIG. 1 , the implementation environment includes: a first terminal 101, a second terminal 102, and a server 103. The first terminal 101 and the server 103 can communicate through a wired or wireless connection. Between the second terminal 102 and the server 103 Wired or wireless connections may also be used for communication. Wherein, the second terminal 102 may send a device sharing request to the server 103, and the server 103 may store information in the device sharing request into a shared device information table. The first terminal 101 may send a device query request to the server 103, and the device query request may carry a network identifier of a wireless network currently accessed by the first terminal 101 and a first user account. When the server 103 receives the device query request sent by the first terminal 101, it may acquire and return the description information of the target smart device. When the first terminal 101 receives the description information of the target smart device sent by the server 103, it may display a first prompt message, so that when the first user accepts sharing, a confirmation sharing operation may be triggered on the first terminal 101. At this point, the first terminal 101 may send a sharing acceptance message to the server 103 . When the server 103 receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the smart device.
接下来对本公开实施例提供的设备共享方法进行解释说明。Next, the device sharing method provided by the embodiment of the present disclosure will be explained.
图2是根据一示例性实施例示出的一种设备共享方法的流程图,该方法应用于第一终端。如图2所示,该方法包括以下步骤。Fig. 2 is a flow chart showing a device sharing method according to an exemplary embodiment, and the method is applied to a first terminal. As shown in Figure 2, the method includes the following steps.
在步骤201中,向服务器发送设备查询请求,设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,第一用户账号为第一终端当前登录的账号,设备查询请求用于指示服务器获取并返回目标智能设备的描述信息,目标智能设备为与第一用户账号未绑定且允许共享的智能设备。In step 201, a device query request is sent to the server, the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, the first user account is the account currently logged in by the first terminal, and the device query The request is used to instruct the server to obtain and return the description information of the target smart device, where the target smart device is a smart device that is not bound to the first user account and is allowed to be shared.
在步骤202中,当接收到服务器发送的目标智能设备的描述信息时,显示第一提示消息,第一提示消息用于提示是否通过第一终端对目标智能设备进行控制。In step 202, when the description information of the target smart device sent by the server is received, a first prompt message is displayed, and the first prompt message is used to prompt whether to control the target smart device through the first terminal.
在步骤203中,当检测到对第一提示消息的确认操作时,向服务器发送共享接受消息,共享接受消息用于指示服务器将第一用户账号与目标智能设备进行绑定。In step 203, when a confirmation operation on the first prompt message is detected, a sharing acceptance message is sent to the server, where the sharing acceptance message is used to instruct the server to bind the first user account with the target smart device.
在本公开实施例中,第一终端向服务器发送设备查询请求。由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器在接收到该设备查询请求后,可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。当第一终端接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,当第一终端检测到对该第一提示消息的确认操作时,可以向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得所有满足条件的第一终端均可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。In the embodiment of the present disclosure, the first terminal sends a device query request to the server. Since the device query request carries the network identifier and the first user account of the wireless network currently accessed by the first terminal, after receiving the device query request, the server can obtain the target smart device according to the network identifier and the first user account and send the description information of the target smart device to the first terminal. When the first terminal receives the description information of the target smart device sent by the server, it may display a first prompt message, and when the first terminal detects a confirmation operation on the first prompt message, it may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, all the first terminals that meet the conditions can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
可选地,目标智能设备的描述信息中包括目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
向服务器发送共享接受消息之后,还包括:After sending the share accept message to the server, also include:
向服务器发送控制消息,控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作,控制消息用于指示服务器控制目标智能设备执行控制操作;Sending a control message to the server, where the control message carries at least the first user account, the identification of the target smart device, and a control operation, and the control message is used to instruct the server to control the target smart device to perform the control operation;
接收服务器发送的控制成功消息或者无权限操作提示消息,控制成功消息用于提示已成功控制目标智能设备执行控制操作,无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限,且无权限操作提示消息为服务器在确定第一用户账号与目标智能设备之间的绑定关系已解除时发送。Receive a control success message or an unauthorized operation prompt message sent by the server, the control success message is used to prompt that the target smart device has been successfully controlled to perform a control operation, and the unauthorized operation prompt message is used to prompt that the first terminal does not have permission to control the target smart device, and The unauthorized operation prompt message is sent by the server when it is determined that the binding relationship between the first user account and the target smart device has been released.
可选地,控制消息中还携带第一终端当前接入的无线网络的网络标识。Optionally, the control message also carries the network identifier of the wireless network currently accessed by the first terminal.
可选地,控制消息中携带的网络标识与设备查询请求中携带的网络标识不同。Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
可选地,向服务器发送共享接受消息之后,还包括:Optionally, after sending the sharing acceptance message to the server, further include:
接收服务器发送的共享解除通知消息,共享解除通知消息用于通知第一终端与目标智能设备的绑定关系已解除。The sharing release notification message sent by the server is received, and the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.
图3是根据一示例性实施例示出的一种设备共享方法的流程图,该方法应用于服务器。如图3所示,该方法包括以下步骤。Fig. 3 is a flow chart showing a device sharing method according to an exemplary embodiment, and the method is applied to a server. As shown in Figure 3, the method includes the following steps.
在步骤301中,接收第一终端发送的设备查询请求,设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,第一用户账号为第一终端当前登录的账号;In step 301, a device query request sent by the first terminal is received, the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, and the first user account is the account currently logged in by the first terminal ;
在步骤302中,根据设备查询请求中携带的网络标识和第一用户账号,获取目标智能设备的描述信息,目标智能设备为与第一用户账号未绑定且允许共享的智能设备;In step 302, according to the network identification and the first user account carried in the device query request, the description information of the target smart device is obtained, and the target smart device is a smart device that is not bound to the first user account and allows sharing;
在步骤303中,向第一终端发送目标智能设备的描述信息;In step 303, sending the description information of the target smart device to the first terminal;
在步骤304中,当接收到第一终端发送的共享接受消息时,将第一用户账号与目标智能设备进行绑定。In step 304, when receiving the sharing acceptance message sent by the first terminal, bind the first user account with the target smart device.
在本公开实施例中,服务器接收第一终端发送的设备查询请求,由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。第一终端在接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,获取并向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得所有满足条件的第一终端均可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。In this embodiment of the present disclosure, the server receives the device query request sent by the first terminal. Since the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, the server can Obtain the description information of the target smart device with the first user account, and send the description information of the target smart device to the first terminal. When receiving the description information of the target smart device sent by the server, the first terminal may display a first prompt message, obtain and send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, all the first terminals that meet the conditions can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
可选地,根据设备查询请求中携带的网络标识和第一用户账号,获取目标智能设备的描述信息,包括:Optionally, according to the network identifier and the first user account carried in the device query request, the description information of the target smart device is obtained, including:
从存储的共享设备信息表中获取至少一个智能设备的描述信息,共享设备信息表用于存储允许共享的各个智能设备接入的无线网络的网络标识、描述信息,以及拥有者的账号,至少一个智能设备接入的无线网络的网络标识与设备查询请求中携带的网络标识相同;Obtain the description information of at least one smart device from the stored shared device information table. The shared device information table is used to store the network identification, description information, and account number of the owner of the wireless network that each smart device is allowed to share, and at least one The network identifier of the wireless network accessed by the smart device is the same as the network identifier carried in the device query request;
将至少一个智能设备中拥有者的账号与第一用户账号不同的智能设备确定为目标智能设备;Determining at least one smart device whose owner's account is different from the first user account as the target smart device;
从共享设备信息表中获取目标智能设备的描述信息。Obtain the description information of the target smart device from the shared device information table.
可选地,从存储的共享设备信息表中获取至少一个智能设备的描述信息之前,还包括:Optionally, before obtaining the description information of at least one smart device from the stored shared device information table, the method further includes:
接收第二终端发送的设备共享请求,设备共享请求中携带第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,第二用户账号为目标智能设备的拥有者的账号;Receive the device sharing request sent by the second terminal, the device sharing request carries the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device, the second user account is the owner of the target smart device the account number of the user;
将第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,存储至共享设备信息表中。The second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device are stored in the shared device information table.
可选地,目标智能设备的描述信息中包括目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
将第一用户账号与目标智能设备进行绑定之后,还包括:After binding the first user account with the target smart device, it also includes:
接收第一终端发送的控制消息,控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作;receiving a control message sent by the first terminal, where the control message at least carries the first user account, the target smart device's identification, and the control operation;
当根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间存在绑定关系时,控制目标智能设备执行控制操作,并向第一终端发送控制成功消息,控制成功消息用于指示已成功控制目标智能设备执行控制操作;When it is determined that there is a binding relationship between the first user account and the target smart device according to the identification of the first user account and the target smart device, control the target smart device to perform a control operation, and send a control success message to the first terminal, indicating that the control is successful The message is used to indicate that the target smart device has been successfully controlled to perform a control operation;
当根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间的绑定关系已解除时,向第一终端发送无权限操作提示消息,无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限。When it is determined that the binding relationship between the first user account and the target smart device has been released according to the first user account and the identification of the target smart device, an unauthorized operation prompt message is sent to the first terminal, and the unauthorized operation prompt message is used to It prompts that the first terminal does not have the authority to control the target smart device.
可选地,控制消息中还携带第一终端当前接入的无线网络的网络标识;Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal;
控制目标智能设备执行控制操作之前,还包括:Before controlling the target smart device to perform the control operation, it also includes:
获取目标智能设备的共享方式,共享方式包括第一共享方式或第二共享方式,第一共享方式是指在同一无线网络下共享目标智能设备的方式,第二共享方式是指共享目标智能设备的网络不做限制的方式;Obtain the sharing method of the target smart device. The sharing method includes the first sharing method or the second sharing method. The first sharing method refers to the method of sharing the target smart device under the same wireless network, and the second sharing method refers to the sharing method of the target smart device. The way the network does not limit;
当目标智能设备的共享方式为第一共享方式,且控制消息中携带的网络标识与目标智能设备接入的无线网络的网络标识相同时,执行控制目标智能设备执行控制操作的步骤;When the sharing method of the target smart device is the first sharing method, and the network identifier carried in the control message is the same as the network identifier of the wireless network accessed by the target smart device, perform the step of controlling the target smart device to perform a control operation;
当目标智能设备的共享方式为第二共享方式时,直接执行控制目标智能设备执行控制操作的步骤。When the sharing mode of the target smart device is the second sharing mode, directly execute the step of controlling the target smart device to perform a control operation.
可选地,将第一用户账号与目标智能设备进行绑定之后,还包括:Optionally, after binding the first user account with the target smart device, it also includes:
接收第二终端发送的移除指令,移除指令中携带第二用户账号、目标智能设备的标识和第一用户账号;receiving a removal instruction sent by the second terminal, where the removal instruction carries the second user account, the identification of the target smart device, and the first user account;
根据第二用户账号和目标智能设备的标识,解除第一用户账号与目标智能设备之间的绑定关系;According to the identification of the second user account and the target smart device, release the binding relationship between the first user account and the target smart device;
向第一终端发送共享解除通知消息,共享解除通知消息用于通知第一终端与目标智能设备的绑定关系已解除。A sharing release notification message is sent to the first terminal, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.
图4是根据一示例性实施例示出的一种设备共享方法的流程图。该方法的交互主体为第一终端、第二终端和服务器,如图4所示,该方法包括以下步骤。Fig. 4 is a flow chart showing a device sharing method according to an exemplary embodiment. The interaction subjects of the method are the first terminal, the second terminal and the server. As shown in FIG. 4 , the method includes the following steps.
在步骤401中,第一终端向服务器发送设备查询请求,该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,第一用户账号为第一终端当前登录的账号。In step 401, the first terminal sends a device query request to the server, the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, and the first user account is the current login account of the first terminal. account.
在本公开实施例中,由于第一终端为第一用户对应的终端,第二终端为第二用户对应的终端,且第二用户为智能设备的拥有者,第一用户为想要共享第二用户拥有的智能设备的用户,因此,当第一终端想要获取第二用户拥有的智能设备的操作权和使用权时,可以向服务器发送设备查询请求。在一种可能的实现方式中,当第一终端成功接入无线网络时,可以向服务器发送设备查询请求。当然,第一终端也可以在其他时机向服务器发送设备查询请求,比如,检测到设备查询指令时发送,对此本公开实施例不予限定。In the embodiment of the present disclosure, since the first terminal is the terminal corresponding to the first user, the second terminal is the terminal corresponding to the second user, and the second user is the owner of the smart device, the first user wants to share the second The user of the smart device owned by the user, therefore, when the first terminal wants to obtain the operation right and use right of the smart device owned by the second user, it can send a device query request to the server. In a possible implementation manner, when the first terminal successfully accesses the wireless network, it may send a device query request to the server. Of course, the first terminal may also send the device query request to the server at other timings, for example, when a device query instruction is detected, which is not limited in this embodiment of the present disclosure.
需要说明的是,第一终端当前接入的无线网络的网络标识可以为该无线网络的名称。另外,本公开实施例主要应用在智能家居领域中,也即是,本公开实施例涉及的服务器和智能设备可以为智能家居服务器和智能家居设备。这样,第一终端当前登录的账号为智能家居应用中登录的账号,也即是,第一用户账号为智能家居应用中登录的账号。当然,本公开实施例也可以应用在其他领域,对此本公开实施例不予限定。It should be noted that the network identifier of the wireless network currently accessed by the first terminal may be the name of the wireless network. In addition, the embodiments of the present disclosure are mainly applied in the smart home field, that is, the servers and smart devices involved in the embodiments of the present disclosure may be smart home servers and smart home devices. In this way, the account currently logged in by the first terminal is the account logged in in the smart home application, that is, the first user account is the account logged in in the smart home application. Of course, the embodiments of the present disclosure may also be applied in other fields, which are not limited by the embodiments of the present disclosure.
在步骤402中,当服务器接收到第一终端发送的设备查询请求时,根据该设备查询请求中携带的网络标识和第一用户账号,获取目标智能设备的描述信息,目标智能设备为与第一用户账号未绑定且允许共享的智能设备。In step 402, when the server receives the device query request sent by the first terminal, it obtains the description information of the target smart device according to the network identifier and the first user account carried in the device query request. A smart device that is not bound to the user account and allows sharing.
需要说明的是,目标智能设备的描述信息可以包括智能设备的名称、型号、颜色、图标等。另外,由于目标智能设备为与第一用户账号未绑定且允许共享的智能设备,而与第一用户账号未绑定且允许共享的智能设备可以是一个,也可以是多个,因此,目标智能设备可以是一个设备,也可以是多个设备。It should be noted that the description information of the target smart device may include the name, model, color, icon, etc. of the smart device. In addition, since the target smart device is not bound to the first user account and allowed to be shared, and there may be one or more smart devices not bound to the first user account and allowed to be shared, therefore, the target A smart device can be one device or multiple devices.
其中,根据设备查询请求中携带的网络标识和第一用户账号,获取目标智能设备的描述信息的实现过程可以为:从存储的共享设备信息表中获取至少一个智能设备的描述信息,该共享设备信息表用于存储允许共享的各个智能设备接入的无线网络的网络标识、描述信息,以及拥有者的账号,该至少一个智能设备接入的无线网络的网络标识与设备查询请求中携带的网络标识相同。将该至少一个智能设备中拥有者的账号与第一用户账号不同的智能设备确定为目标智能设备,并从共享设备信息表中获取目标智能设备的描述信息。Wherein, according to the network identifier and the first user account carried in the device query request, the implementation process of obtaining the description information of the target smart device may be: obtaining the description information of at least one smart device from the stored shared device information table, the shared device The information table is used to store the network identification and description information of the wireless networks that are allowed to be shared by each smart device, as well as the account number of the owner, the network identification of the wireless network that the at least one smart device accesses and the network information carried in the device query request ID is the same. The at least one smart device whose owner's account is different from the first user account is determined as the target smart device, and the description information of the target smart device is acquired from the shared device information table.
另外,在本公开实施例中,可以将与第一终端当前接入相同无线网络的智能设备作为第一终端能够共享的智能设备,而且由于第一用户账号为第一终端当前登录的用户账号,且第一终端当前是为了获取第二用户拥有的智能设备的操作权和使用权,所以服务器在确定目标智能设备时,可以先确定接入的无线网络与第一终端当前接入的无线网络相同的智能设备,也即是,上述提到的至少一个智能设备。之后,服务器可以将拥有者的账号与第一用户账号不同的智能设备确定为目标智能设备。这样,可以保证服务器不会将拥有者的智能设备的描述信息发送给拥有者,从而可以节省服务器资源。In addition, in the embodiment of the present disclosure, the smart device that is currently connected to the same wireless network as the first terminal can be used as the smart device that the first terminal can share, and since the first user account is the user account currently logged in by the first terminal, And the first terminal is currently to obtain the operation right and use right of the smart device owned by the second user, so when the server determines the target smart device, it can first determine that the wireless network accessed is the same as the wireless network currently accessed by the first terminal smart device, that is, at least one smart device mentioned above. Afterwards, the server may determine the smart device whose owner account is different from the first user account as the target smart device. In this way, it can be guaranteed that the server will not send the description information of the owner's smart device to the owner, thereby saving server resources.
其中,服务器从存储的共享设备信息表中获取至少一个智能设备的描述信息之前,还可以在共享设备信息表中存储第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识。其实现过程可以为:第二终端向服务器发送设备共享请求,该设备共享请求中携带第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,第二用户账号为目标智能设备的拥有者的账号。当服务器接收到第二终端发送的设备共享请求时,将第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,存储至共享设备信息表中。Wherein, before the server obtains the description information of at least one smart device from the stored shared device information table, the server may also store the second user account, the description information of the target smart device, and the wireless device accessed by the target smart device in the shared device information table. The network ID of the network. The implementation process may be as follows: the second terminal sends a device sharing request to the server, the device sharing request carries the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device, the second user The account is an account of an owner of the target smart device. When the server receives the device sharing request sent by the second terminal, it stores the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device in the shared device information table.
也即是,当第二终端确定需要将目标智能设备共享给其他用户时,可以向服务器发送设备共享请求,以便于服务器在共享设备信息表中存储目标智能设备相关的信息。这样,当服务器接收到第一终端发送的设备查询请求时,可以获取与第一用户账号未绑定且允许共享的智能设备,也即是目标智能设备。That is, when the second terminal determines that the target smart device needs to be shared with other users, it may send a device sharing request to the server, so that the server stores information related to the target smart device in the shared device information table. In this way, when the server receives the device query request sent by the first terminal, it can acquire a smart device that is not bound to the first user account and allowed to be shared, that is, a target smart device.
其中,本公开实施例以目标智能设备为例,按照上述方式对第二终端共享设备时,将设备的相关信息存储至共享设备信息表的实现过程进行说明,对于其他的设备也可以参照上述方式,本公开实施例对此不再详细阐述。Among them, the embodiment of the present disclosure takes the target smart device as an example, and describes the implementation process of storing the relevant information of the device in the shared device information table when the second terminal shares the device according to the above method. For other devices, the above method can also be referred to. , which will not be described in detail in the embodiments of the present disclosure.
例如,服务器可以将第二用户账号、目标智能设备接入的无线网络的网络标识、目标智能设备的描述信息之间的对应关系存储至如下表1所示的共享设备信息表中。For example, the server may store the correspondence between the second user account, the network identifier of the wireless network accessed by the target smart device, and the description information of the target smart device in the shared device information table shown in Table 1 below.
表1Table 1
需要说明的是,本公开实施例中,仅以上述表1所示的共享设备信息表为例进行说明,上述表1并不对本公开实施例构成限定。It should be noted that, in the embodiment of the present disclosure, only the shared device information table shown in Table 1 is used as an example for illustration, and the above Table 1 does not limit the embodiment of the present disclosure.
可选地,当服务器从存储的共享设备信息表中没有获取到至少一个智能设备的描述信息时,可以向第一终端发送查询失败提示消息,该查询失败提示消息用于提示当前未查询到目标智能设备的描述信息,这样,当第一终端接收到该查询失败提示消息时,可以确定当前没有可进行共享的智能设备。Optionally, when the server does not obtain the description information of at least one smart device from the stored shared device information table, it may send a query failure prompt message to the first terminal, and the query failure prompt message is used to prompt that no target is currently queried The description information of the smart device, so that when the first terminal receives the query failure prompt message, it can determine that there is currently no smart device that can be shared.
进一步地,当服务器根据第二终端发送的设备共享请求,将第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识存储至共享设备信息表中之后,还可以接收第二终端发送的取消共享请求,该取消共享请求中可以携带第二用户账号和目标智能设备的描述信息。也即是,第二终端不仅可以按照上述方式来共享目标智能设备,也可以在共享目标智能设备之后,取消对目标智能设备的共享。这样,服务器可以根据第二用户账号和目标智能设备的描述信息,将共享设备信息表中对应的记录删除。Further, after the server stores the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device in the shared device information table according to the device sharing request sent by the second terminal, A share cancellation request sent by the second terminal may be received, and the share cancellation request may carry the second user account and description information of the target smart device. That is, the second terminal can not only share the target smart device according to the above method, but also cancel the sharing of the target smart device after sharing the target smart device. In this way, the server can delete the corresponding record in the shared device information table according to the second user account and the description information of the target smart device.
比如,第二终端可以在设备共享设置界面中显示与第二用户账号绑定的智能设备的描述信息、“允许被发现和添加”选项、共享用户列表,以及“移除设备”选项。如图5所示的设备共享设置界面中,智能空气净化器以及其图标即为与第二用户账号绑定的智能设备的描述信息,小西和王卷卷即为共享该智能空气净化器的用户。在“允许被发现和添加”选项未被选中的情况下,当用户点击“允许被发现和添加”选项时,第二终端可以确定该智能空气净化器是允许共享的智能设备。此时,第二终端可以向服务器发送设备共享请求,该设备共享请求中携带第二用户账号、该智能空气净化器的描述信息,以及该智能空气净化器接入的无线网络的网络标识,进而由服务器将第二用户账号、该智能空气净化器的描述信息,以及该智能空气净化器接入的无线网络的网络标识,存储至共享设备信息表中。For example, the second terminal may display the description information of the smart device bound to the second user account, the "allow to be discovered and added" option, the shared user list, and the "remove device" option in the device sharing setting interface. In the device sharing setting interface shown in Figure 5, the smart air purifier and its icon are the description information of the smart device bound to the second user account, and Xiaoxi and Wang Juanjuan are the users sharing the smart air purifier . When the "allow to be discovered and added" option is not selected, when the user clicks the "allow to be discovered and added" option, the second terminal may determine that the smart air purifier is a smart device that allows sharing. At this time, the second terminal may send a device sharing request to the server, the device sharing request carrying the second user account, the description information of the smart air purifier, and the network identifier of the wireless network connected to the smart air purifier, and then The server stores the second user account, the description information of the smart air purifier, and the network identifier of the wireless network connected to the smart air purifier into the shared device information table.
然而,在“允许被发现和添加”选项被选中的情况下,当用户点击“允许被发现和添加”选项时,第二终端可以确定当前需要取消该智能空气净化器的共享。此时,第二终端可以向服务器发送取消共享请求,该取消共享请求中可以携带第二用户账号和该智能空气净化器的描述信息,进而由服务器根据第二用户账号和该智能空气净化器的描述信息,将共享设备信息表中对应的记录删除。However, when the "allow to be discovered and added" option is selected, when the user clicks the "allow to be discovered and added" option, the second terminal may determine that the sharing of the smart air purifier needs to be cancelled. At this point, the second terminal may send a share cancellation request to the server, and the share cancellation request may carry the second user account and the description information of the smart air purifier, and then the server may use the second user account and the description information of the smart air purifier to Descriptive information, delete the corresponding record in the shared device information table.
在步骤403中,服务器向第一终端发送目标智能设备的描述信息。In step 403, the server sends the description information of the target smart device to the first terminal.
在步骤404中,当第一终端接收到服务器发送的目标智能设备的描述信息时,显示第一提示消息,第一提示消息用于提示是否通过第一终端对目标智能设备进行控制。In step 404, when the first terminal receives the description information of the target smart device sent by the server, it displays a first prompt message, and the first prompt message is used to prompt whether to control the target smart device through the first terminal.
需要说明的是,由于第一提示消息用于提示是否通过第一终端对目标智能设备进行控制,因此,第一提示消息中可以包括目标智能设备的描述信息,这样,可以便于用户获知目标智能设备是哪个设备。It should be noted that since the first prompt message is used to prompt whether to control the target smart device through the first terminal, the first prompt message may include the description information of the target smart device, so that the user can easily know the target smart device Which device is it.
由上述步骤402的描述可知,目标智能设备可以为一个设备,也可以为多个设备。当目标智能设备为多个设备时,第一提示消息中还可以针对各个设备设置选项,也即是,还可以通过第一提示消息,从该多个设备中选择当前需要获取操作权和使用权的设备。It can be known from the above description of step 402 that the target smart device may be one device or multiple devices. When the target smart device is multiple devices, options can also be set for each device in the first prompt message. device of.
比如,目标智能设备包括智能空气净化器、智能吸顶灯、智能床头灯和智能扫地机这四台智能设备,且第二用户账号的昵称可以为CaptainQ。这样,第一终端可以显示如图6所示的提示消息显示界面,在该提示消息显示界面中显示有“发现CaptainQ的4台共享设备,且连接后可控制或使用这些设备”的第一提示消息,以及“开始连接”选项。当第一用户点击“开始连接”选项时,可以确定第一用户需要获取这4台智能设备的操作权和使用权,此时,第一终端可以确定检测到对第一提示消息的确认操作。当然,第一提示消息中还可以显示这四台智能设备的名称和图标,且每台智能设备还设置有选择选项,第一用户可以从这四台智能设备中选择一部分需要获取操作权和使用权的设备,然后再点击“开始连接”选项。此时,可以确定第一用户只需要获取这四台智能设备中的部分智能设备的操作权和使用权,且第一终端可以确定检测到对第一提示消息的确认操作。For example, the target smart devices include four smart devices: a smart air purifier, a smart ceiling lamp, a smart bedside lamp, and a smart sweeper, and the nickname of the second user account may be CaptainQ. In this way, the first terminal can display a prompt message display interface as shown in FIG. 6 , in which there is displayed a first prompt of “found 4 shared devices of CaptainQ, and these devices can be controlled or used after connection” message, and the "Start Connection" option. When the first user clicks the "start connection" option, it can be determined that the first user needs to obtain the operation and use rights of the four smart devices. At this time, the first terminal can determine that a confirmation operation on the first prompt message has been detected. Of course, the names and icons of these four smart devices can also be displayed in the first prompt message, and each smart device is also provided with a selection option. right device, and then tap the "Start Connection" option. At this time, it can be determined that the first user only needs to obtain the operation rights and usage rights of some of the four smart devices, and the first terminal can determine that a confirmation operation on the first prompt message has been detected.
在步骤405中,当第一终端检测到对第一提示消息的确认操作时,向服务器发送共享接受消息。In step 405, when the first terminal detects a confirmation operation on the first prompt message, it sends a sharing acceptance message to the server.
由于目标智能设备可以为一个设备,也可以为多个设备。在一种可能的实现方式中,不管目标智能设备是一个设备还是多个设备,可以将目标智能设备作为一个整体,也即是,当第一终端检测到对第一提示消息的确认操作时,表明当前需要获取目标智能设备中的所有设备的操作权和使用权,此时,向服务器发送的共享接受消息中可以不用携带其他信息。在另一种可能的实现方式中,当目标智能设备为多个设备且第一终端检测到对第一提示消息的确认操作时,可以将该确认操作中携带的描述信息对应的设备确定为第一终端当前需要获取操作权和使用权的设备,此时,向服务器发送的共享接受消息中可以携带需要获取操作权和使用权的设备的描述信息。其中,该确认操作中携带的描述信息可以为第一用户从第一提示消息中选择的。Since the target smart device may be one device, it may also be multiple devices. In a possible implementation manner, regardless of whether the target smart device is one device or multiple devices, the target smart device may be regarded as a whole, that is, when the first terminal detects a confirmation operation on the first prompt message, It indicates that it is necessary to obtain the operation right and use right of all devices in the target smart device at present, and at this time, the sharing acceptance message sent to the server does not need to carry other information. In another possible implementation manner, when the target smart device is multiple devices and the first terminal detects a confirmation operation on the first prompt message, the device corresponding to the description information carried in the confirmation operation may be determined as the first A terminal currently needs to obtain the device with the operation right and the use right. At this time, the sharing acceptance message sent to the server may carry the description information of the device that needs to obtain the operation right and the use right. Wherein, the description information carried in the confirmation operation may be selected by the first user from the first prompt message.
可选地,当第一终端检测到对第一提示消息的拒绝操作时,可以确定当前不需要通过第一终端对目标智能设备进行控制,此时,可以向服务器发送共享拒绝消息。当服务器接收到该共享拒绝消息时,可以不执行任何操作。另外,当第一终端检测到对第一提示消息的拒绝操作时,为了节省内存,可以删除步骤404中接收到的目标智能设备的描述信息。Optionally, when the first terminal detects a rejection operation on the first prompt message, it may determine that the target smart device does not need to be controlled by the first terminal at present, and at this time, may send a sharing rejection message to the server. When the server receives the share rejection message, it may not perform any operation. In addition, when the first terminal detects a rejection operation on the first prompt message, in order to save memory, the description information of the target smart device received in step 404 may be deleted.
在步骤406中,当服务器接收到第一终端发送的共享接受消息时,将第一用户账号与目标智能设备进行绑定。In step 406, when the server receives the sharing acceptance message sent by the first terminal, the server binds the first user account with the target smart device.
由上述描述可知,目标智能设备可以为一个设备,也可以为多个设备,当目标智能设备为多个设备时,第一用户可以从该多个设备中选择部分设备,并确定当前需要获取该部分设备的操作权和使用权。但是不管是一个设备还是多个设备,后续的操作都是相同的,因此,接下来本公开实施例对此不做区分,直接以目标智能设备为例进行说明。It can be seen from the above description that the target smart device can be one device or multiple devices. When the target smart device is multiple devices, the first user can select some devices from the multiple devices and determine that the current need to obtain the The right to operate and use some equipment. However, regardless of whether it is one device or multiple devices, the subsequent operations are the same. Therefore, the following embodiments of the present disclosure will not distinguish between them, and directly use the target smart device as an example for description.
当服务器接收到第一终端发送的共享接受消息时,可以将第一用户账号和目标智能设备进行绑定。在一种可能的实现方式中,可以将第一用户账号和目标智能设备的描述信息对应存储,以实现第一用户账号与目标智能设备的绑定。When the server receives the sharing acceptance message sent by the first terminal, it can bind the first user account with the target smart device. In a possible implementation manner, the description information of the first user account and the target smart device may be stored correspondingly, so as to realize the binding of the first user account and the target smart device.
进一步地,在服务器将第一用户账号与目标智能设备绑定的过程中,为了告知第一用户当前的绑定进度,服务器还可以向第一终端发送绑定进度提示消息。这样,第一终端可以显示该绑定进度提示消息。另外,当服务器将第一用户账号与目标智能设备进行绑定之后,可以向第一终端发送绑定成功消息,这样,第一终端可以显示目标智能设备的描述信息,以及能够控制目标智能设备的控制选项。同时,服务器还可以向第二终端发送设备共享提示消息,这样,第二终端可以显示当前共享目标智能设备的用户有哪些。Further, during the process of the server binding the first user account with the target smart device, in order to inform the first user of the current binding progress, the server may also send a binding progress prompt message to the first terminal. In this way, the first terminal can display the binding progress prompt message. In addition, after the server binds the first user account with the target smart device, it can send a binding success message to the first terminal. In this way, the first terminal can display the description information of the target smart device and can control the target smart device. control options. At the same time, the server can also send a device sharing prompt message to the second terminal, so that the second terminal can display the users of the current sharing target smart device.
继续上面的举例,目标智能设备包括智能空气净化器、智能吸顶灯、智能床头灯和智能扫地机这四台智能设备。当服务器将这四台智能设备分别与第一用户账号绑定的过程中,可以向第一终端发送绑定进度提示消息。当第一终端接收到该绑定进度提示消息时,可以显示如图7所示的绑定进度提示界面,该绑定进度提示界面中显示有绑定进度提示消息,该绑定进度提示消息包括当前正在绑定的智能设备的描述信息,即智能空气净化器的图标和名称,以及当前的绑定进度“正在连接(1/4)”,即当前正在绑定这四台智能设备中的第一台智能设备。进一步地,当服务器将第一用户账号与目标智能设备绑定成功之后,还可以向第一终端发送绑定成功消息,此时,第一终端可以显示如图8所示的绑定成功消息。并且,服务器还可以向第二终端发送设备共享提示消息,假设第一用户账号的昵称为小西,这样,当第二终端接收到该设备共享提示消息时,可以显示如图9所示的设备共享提示消息。Continuing with the above example, the target smart devices include four smart devices: smart air purifier, smart ceiling lamp, smart bedside lamp and smart sweeper. When the server binds the four smart devices to the first user account respectively, it may send a binding progress prompt message to the first terminal. When the first terminal receives the binding progress prompt message, it can display the binding progress prompt interface as shown in Figure 7, the binding progress prompt message is displayed in the binding progress prompt interface, and the binding progress prompt message includes The description information of the smart device currently being bound, that is, the icon and name of the smart air purifier, and the current binding progress "connecting (1/4)", that is, the fourth smart device currently being bound A smart device. Further, after the server successfully binds the first user account with the target smart device, it may also send a binding success message to the first terminal, and at this time, the first terminal may display the binding success message as shown in FIG. 8 . In addition, the server can also send a device sharing prompt message to the second terminal, assuming that the nickname of the first user account is Xiaoxi, so that when the second terminal receives the device sharing prompt message, it can display the device sharing prompt message as shown in Figure 9 Prompt message.
进一步地,当服务器将第一用户账号与目标智能设备进行绑定之后,第二用户也可以移除部分共享目标智能设备的用户,也即是,以第一用户为例,第二终端可以解除第一用户账号与目标智能设备之间的绑定关系,从而移除第一用户针对目标智能设备的操作权和使用权。其实现过程可以为:第二终端向服务器发送移除指令,该移除指令中携带第二用户账号、目标智能设备的标识和第一用户账号。当服务器接收到第二终端发送的移除指令时,根据第二用户账号和目标智能设备的标识,解除第一用户账号与目标智能设备之间的绑定关系,并向第一终端发送共享解除通知消息,当第一终端接收到服务器发送的共享解除通知消息时,可以确定第一终端与目标智能设备的绑定关系已解除,并显示该共享解除通知消息。在一种可能的实现方式中,服务器接收到第二终端发送的移除指令时,可以将存储的第一用户账号和目标智能设备的描述信息的对应关系删除,从而实现第一终端与目标智能设备的绑定关系的解除。Further, after the server binds the first user account with the target smart device, the second user can also remove some users who share the target smart device, that is, taking the first user as an example, the second terminal can remove the The binding relationship between the first user account and the target smart device removes the first user's right to operate and use the target smart device. The implementation process may be as follows: the second terminal sends a removal instruction to the server, and the removal instruction carries the second user account, the identifier of the target smart device, and the first user account. When the server receives the removal instruction sent by the second terminal, according to the identification of the second user account and the target smart device, the server releases the binding relationship between the first user account and the target smart device, and sends a share release command to the first terminal. Notification message, when the first terminal receives the sharing release notification message sent by the server, it can determine that the binding relationship between the first terminal and the target smart device has been released, and display the sharing release notification message. In a possible implementation, when the server receives the removal instruction sent by the second terminal, it may delete the stored correspondence between the first user account and the description information of the target smart device, so as to realize the connection between the first terminal and the target smart device. Release of the binding relationship of the device.
比如,请继续参照图5,当用户在图5所示的设备共享设置界面的共享用户列表中点击“小西”时,可以显示如图10所示的界面,该界面中包括“移除用户”选项。当第二用户点击“移除用户”选项时,可以确定第二用户当前需要移除第一用户“小西”针对智能空气净化器的操作权和使用权。此时,第二终端可以向服务器发送移除指令,该移除指令中携带第二用户账号、智能空气净化器的标识和第一用户账号。当服务器接收到第二终端发送的移除指令时,根据第二用户账号和智能空气净化器的标识,解除第一用户账号与智能空气净化器之间的绑定关系,并向第一终端发送共享解除通知消息。当第一终端接收到该共享解除通知消息时,可以在如图11所示的界面中显示该共享解除通知消息。For example, please continue to refer to Figure 5. When the user clicks "Xiaoxi" in the shared user list of the device sharing setting interface shown in Figure 5, the interface shown in Figure 10 can be displayed, which includes "Remove User" option. When the second user clicks the "remove user" option, it can be determined that the second user currently needs to remove the first user "Xiaoxi"'s right to operate and use the smart air purifier. At this time, the second terminal may send a removal instruction to the server, where the removal instruction carries the second user account, the identifier of the smart air purifier, and the first user account. When the server receives the removal instruction sent by the second terminal, according to the second user account and the identification of the smart air purifier, the binding relationship between the first user account and the smart air purifier is released, and a message is sent to the first terminal. Share dismissal notification message. When the first terminal receives the sharing cancellation notification message, it may display the sharing cancellation notification message on the interface as shown in FIG. 11 .
在通过上述步骤401至步骤406将第一用户账号与目标智能设备进行绑定之后,第一终端便获得了该目标智能设备的使用权和操作权,进而第一用户可以通过第一终端对该目标智能设备进行控制。其中,通过第一终端对目标智能设备进行控制可以通过如下步骤407至步骤409来实现,或者通过如下步骤410和步骤411来实现。After the first user account is bound to the target smart device through the above steps 401 to 406, the first terminal obtains the right to use and operate the target smart device, and then the first user can use the first terminal to The target smart device is controlled. Wherein, controlling the target smart device through the first terminal can be realized through the following steps 407 to 409 , or through the following steps 410 and 411 .
在步骤407中,第一终端向服务器发送控制消息,该控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作。In step 407, the first terminal sends a control message to the server, and the control message at least carries the first user account, the target smart device identifier and the control operation.
需要说明的是,目标智能设备的描述信息中可以包括目标智能设备的标识。这样,当第一终端控制目标智能设备时,向服务器发送的控制消息中可以携带目标智能设备的标识。这样,服务器便可以根据该控制消息确定第一终端当前需要控制哪个智能设备。该控制消息中携带的控制操作为第一终端控制目标智能设备所执行的操作,比如,以智能设备是智能水壶为例,控制操作可以是控制智能水壶进行12h(小时)的保温,也可以是控制智能水壶进行80℃(摄氏度)的保温,本公开实施例对此不作限定。It should be noted that the description information of the target smart device may include the identifier of the target smart device. In this way, when the first terminal controls the target smart device, the control message sent to the server may carry the identifier of the target smart device. In this way, the server can determine which smart device the first terminal currently needs to control according to the control message. The control operation carried in the control message is the operation performed by the first terminal to control the target smart device. For example, if the smart device is a smart kettle as an example, the control operation can be to control the smart kettle to keep warm for 12 hours (hours), or it can be The smart kettle is controlled to keep warm at 80° C. (Celsius), which is not limited in the embodiments of the present disclosure.
另外,通过上述步骤406可知,服务器将第一用户账号和目标智能设备绑定之后,还可以向第一终端发送绑定成功消息,这样第一终端可以显示目标智能设备的描述信息,以及能够控制目标智能设备的控制选项。因此,当第一用户需要控制目标智能设备时,可以从显示的控制选项中选择一个选项,并向服务器发送控制消息,该控制消息中携带的控制操作为选择的选项对应的操作。In addition, it can be seen from the above step 406 that after the server binds the first user account and the target smart device, it can also send a binding success message to the first terminal, so that the first terminal can display the description information of the target smart device and be able to control Control options for the target smart device. Therefore, when the first user needs to control the target smart device, he can select an option from the displayed control options, and send a control message to the server, and the control operation carried in the control message is the operation corresponding to the selected option.
在步骤408中,当服务器接收到第一终端发送的控制消息,且根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间存在绑定关系时,控制目标智能设备执行控制操作,并向第一终端发送控制成功消息。In step 408, when the server receives the control message sent by the first terminal and determines that there is a binding relationship between the first user account and the target smart device according to the identifier of the first user account and the target smart device, control the target smart device The device executes a control operation, and sends a control success message to the first terminal.
由于服务器在接收到第一终端发送的共享接受消息时,将第一用户账号与目标智能设备的描述信息进行了对应存储,以实现第一用户账号与目标智能设备的绑定,而且由于目标智能设备的描述信息中包括目标智能设备的标识,所以服务器在接收到第一终端发送的控制消息时,可以根据第一用户账号和目标智能设备的标识,查找是否存储有第一用户账号与目标智能设备的描述信息之间的对应关系,如果有,则确定第一用户账号与目标智能设备之间存在绑定关系,反之则确定第一用户账号与目标智能设备之间不存在绑定关系。When the server receives the sharing acceptance message sent by the first terminal, it stores the description information of the first user account and the target smart device correspondingly, so as to realize the binding of the first user account and the target smart device, and because the target smart device The description information of the device includes the identifier of the target smart device, so when the server receives the control message sent by the first terminal, it can search whether the first user account and the target smart device are stored according to the first user account and the identifier of the target smart device. If there is a corresponding relationship between the description information of the devices, it is determined that there is a binding relationship between the first user account and the target smart device; otherwise, it is determined that there is no binding relationship between the first user account and the target smart device.
当确定第一用户账号与目标智能设备之间存在绑定关系时,服务器可以直接控制目标智能设备执行控制操作。然而,在另一种可选的实现方式中,当第二终端向服务器发送设备共享请求时,该设备共享请求中还可以携带目标智能设备的共享方式。该共享方式包括第一共享方式或第二共享方式,第一共享方式是指在同一无线网络下共享目标智能设备的方式,第二共享方式是指共享目标智能设备的网络不做限制的方式。在这种情况下,当服务器控制目标智能设备执行控制操作之前,还可以获取目标智能设备的共享方式,当目标智能设备的共享方式为第一共享方式,且控制消息中携带的网络标识与目标智能设备接入的无线网络的网络标识相同时,再控制目标智能设备执行控制操作。当目标智能设备的共享方式为第二共享方式时,可以直接控制目标智能设备执行控制操作。When it is determined that there is a binding relationship between the first user account and the target smart device, the server may directly control the target smart device to perform a control operation. However, in another optional implementation manner, when the second terminal sends the device sharing request to the server, the device sharing request may also carry the sharing method of the target smart device. The sharing method includes a first sharing method or a second sharing method, the first sharing method refers to the method of sharing the target smart device under the same wireless network, and the second sharing method refers to the method of sharing the target smart device with no restriction on the network. In this case, before the server controls the target smart device to perform the control operation, it can also obtain the sharing mode of the target smart device. When the network identifiers of the wireless networks accessed by the smart devices are the same, the target smart device is controlled to perform the control operation. When the sharing mode of the target smart device is the second sharing mode, the target smart device may be directly controlled to perform a control operation.
可选地,第二终端在设备共享请求中携带目标智能设备的共享方式仅是一种示例性的实现方式,在本公开实施例中,该设备共享请求中也可以不用携带目标智能设备的共享方式,这样,当第一终端需要通过服务器控制目标智能设备时,服务器可以向第二终端询问目标智能设备的共享方式。也即是,服务器可以向第二终端发送共享方式询问请求,第二终端接收到共享方式询问请求时,可以显示共享方式设置界面,这样,第二终端可以将第二用户通过该共享方式设置界面设置的共享方式发送给服务器。Optionally, the sharing method of the second terminal carrying the target smart device in the device sharing request is only an exemplary implementation. In the embodiment of the present disclosure, the device sharing request may not include the sharing method of the target smart device. In this way, when the first terminal needs to control the target smart device through the server, the server can inquire the second terminal about the sharing method of the target smart device. That is to say, the server may send a sharing method inquiry request to the second terminal, and when the second terminal receives the sharing method inquiry request, it may display a sharing method setting interface, so that the second terminal may set the second user through the sharing method setting interface. The set sharing method is sent to the server.
上述实现过程均是针对目标智能设备设置一个通用的共享方式,也即是,针对每个第一用户,目标智能设备的共享方式均是相同的。然而,在另一种可能的实现方式中,第二终端也可以不用按照上述方式设置目标智能设备的共享方式,也即是,在第一用户账号与目标智能设备绑定之后,第二用户可以针对每个第一用户设置不同的共享方式。比如,如图10所示的界面中,可以针对第一用户“小西”设置智能空气净化器的共享方式,在该界面中包括“同WLAN下使用”选项和“不限使用条件”选项。当用户点选“同WLAN下使用”选项时,可以确定第二用户需要将第一用户“小西”针对智能空气净化器的共享方式设置为第一共享方式。当用户点选“不限使用条件”选项时,可以确定第二用户需要将第一用户“小西”针对智能空气净化器的共享方式设置为第二共享方式。The above implementation process is to set a common sharing method for the target smart device, that is, for each first user, the sharing method of the target smart device is the same. However, in another possible implementation, the second terminal does not need to set the sharing mode of the target smart device according to the above method, that is, after the first user account is bound with the target smart device, the second user can Different sharing methods are set for each first user. For example, in the interface shown in FIG. 10 , the sharing mode of the smart air purifier can be set for the first user "Xiaoxi", and the interface includes the options "Use under the same WLAN" and "Unlimited usage conditions". When the user clicks the option "Use under the same WLAN", it can be determined that the second user needs to set the sharing method of the first user "Xiaoxi" for the smart air purifier as the first sharing method. When the user clicks the option of "unlimited use conditions", it can be determined that the second user needs to set the sharing method of the first user "Xiaoxi" for the smart air purifier as the second sharing method.
由于第一共享方式是指在同一无线网络下共享目标智能设备的方式,因此,当按照第一共享方式对目标智能设备进行共享时,需要将目标智能设备接入的无线网络的网络标识与第一终端当前接入的无线网络的网络标识进行对比。在一种可能的实现方式中,第一终端向服务器发送的控制消息中可以携带第一终端当前接入的无线网络的网络标识。这样,当服务器控制目标智能设备执行控制操作之前,可以将该控制消息中携带的网络标识与目标智能设备接入的无线网络的网络标识进行对比,如果两个网络标识相同,则可控制目标智能设备执行控制操作;如果两个网络标识不同,则不控制目标智能设备执行控制操作。在另一种可能的实现方式中,服务器可以向第一终端询问第一终端当前接入的无线网络的网络标识。也即是,服务器向第一终端发送网络询问请求,当第一终端接收到该网络询问请求时,可以将自身当前接入的无线网络的网络标识发送给服务器。这样,当服务器控制目标智能设备执行控制操作之前,可以将第一终端发送的无线网络的网络标识与目标智能设备接入的无线网络的网络标识进行对比,如果两个网络标识相同,则可控制目标智能设备执行控制操作;如果两个网络标识不同,则不控制目标智能设备执行控制操作。Since the first sharing method refers to the method of sharing the target smart device under the same wireless network, when the target smart device is shared according to the first sharing method, it is necessary to combine the network identifier of the wireless network that the target smart device accesses with the first The network identifiers of the wireless networks currently accessed by a terminal are compared. In a possible implementation manner, the control message sent by the first terminal to the server may carry the network identifier of the wireless network currently accessed by the first terminal. In this way, before the server controls the target smart device to perform a control operation, it can compare the network identifier carried in the control message with the network identifier of the wireless network connected to the target smart device. If the two network identifiers are the same, the target smart device can be controlled. The device executes the control operation; if the two network identifiers are different, the target smart device is not controlled to execute the control operation. In another possible implementation manner, the server may query the first terminal for the network identifier of the wireless network currently accessed by the first terminal. That is, the server sends a network query request to the first terminal, and when the first terminal receives the network query request, it may send the network identifier of the wireless network it currently accesses to the server. In this way, before the server controls the target smart device to perform the control operation, it can compare the network identifier of the wireless network sent by the first terminal with the network identifier of the wireless network accessed by the target smart device, and if the two network identifiers are the same, it can control The target smart device performs the control operation; if the two network identifiers are different, the target smart device is not controlled to perform the control operation.
需要说明的是,为了节省第一终端与服务器之间的信令开销,不管目标智能设备的共享方式是第一共享方式还是第二共享方式,该控制消息中都携带第一终端当前接入的无线网络的网络标识。在这种情况下,当目标智能设备的共享方式为第二共享方式时,该控制消息中携带的网络标识可能与目标智能设备接入的无线网络的网络标识不同,也即是,该控制消息中携带的网络标识可能与设备查询请求中携带的网络标识不同。It should be noted that, in order to save the signaling overhead between the first terminal and the server, regardless of whether the sharing method of the target smart device is the first sharing method or the second sharing method, the control message will carry the information currently accessed by the first terminal. The network ID of the wireless network. In this case, when the sharing method of the target smart device is the second sharing method, the network identifier carried in the control message may be different from the network identifier of the wireless network accessed by the target smart device, that is, the control message The network identifier carried in may be different from the network identifier carried in the device query request.
在步骤409中,第一终端接收服务器发送的控制成功消息。In step 409, the first terminal receives the control success message sent by the server.
需要说明的是,控制成功消息用于指示已成功控制目标智能设备执行控制操作。因此,当第一终端接收到服务器发送的控制成功消息时,可以确定已成功控制目标智能设备执行对应的控制操作。It should be noted that the control success message is used to indicate that the target smart device has been successfully controlled to perform the control operation. Therefore, when the first terminal receives the control success message sent by the server, it can determine that the target smart device has been successfully controlled to perform the corresponding control operation.
在步骤410中,当服务器接收到第一终端发送的控制消息,且根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间的绑定关系已解除时,向第一终端发送无权限操作提示消息,该无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限。In step 410, when the server receives the control message sent by the first terminal and determines that the binding relationship between the first user account and the target smart device has been released according to the identifier of the first user account and the target smart device, send the The first terminal sends an unauthorized operation prompt message, where the unauthorized operation prompt message is used to prompt that the first terminal has no authority to control the target smart device.
当服务器接收到第一终端发送的控制消息,且根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间的绑定关系已解除时,表明第一终端当前没有控制目标智能设备的权限,也即是,第一终端没有目标智能设备的操作权和使用权,此时,服务器可以向第一终端发送无权限操作提示消息。When the server receives the control message sent by the first terminal and determines that the binding relationship between the first user account and the target smart device has been released according to the first user account and the identifier of the target smart device, it indicates that the first terminal currently has no Control the authority of the target smart device, that is, the first terminal does not have the right to operate and use the target smart device. At this time, the server may send an unauthorized operation prompt message to the first terminal.
在步骤411中,第一终端接收服务器发送的无权限操作提示消息,并显示该无权限操作提示消息。In step 411, the first terminal receives an unauthorized operation prompt message sent by the server, and displays the unauthorized operation prompt message.
在本公开实施例中,第一终端向服务器发送设备查询请求,由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器在接收到该设备查询请求后,可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。当第一终端接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,当第一终端检测到对该第一提示消息的确认操作时,可以向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得第一终端可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。In the embodiment of the present disclosure, the first terminal sends a device query request to the server. Since the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, the server receives the device query After the request, the description information of the target smart device may be obtained according to the network identifier and the first user account, and the description information of the target smart device may be sent to the first terminal. When the first terminal receives the description information of the target smart device sent by the server, it may display a first prompt message, and when the first terminal detects a confirmation operation on the first prompt message, it may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, the first terminal can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
再者,在绑定操作完成之后,第一终端可以向服务器发送控制消息,该控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作。当服务器接收到第一终端发送的控制消息,且根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间存在绑定关系时,控制目标智能设备执行控制操作,并向第一终端发送控制成功消息。当根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间的绑定关系已解除时,向第一终端发送无权限操作提示消息,该无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限。由于第一用户通过第一终端执行对目标智能设备的使用权和操作权时,只需要在第一终端的界面上进行简单的点选操作,因而简化了操作过程,降低了用户的操作成本及理解成本。另外,由于第一用户只需要在第一终端的界面上进行简单的点选操作便可通过第一终端执行对目标智能设备的使用权和操作权,因此扩大了智能设备的适用范围。Furthermore, after the binding operation is completed, the first terminal may send a control message to the server, where the control message at least carries the first user account, the target smart device identifier, and the control operation. When the server receives the control message sent by the first terminal and determines that there is a binding relationship between the first user account and the target smart device according to the first user account and the identifier of the target smart device, control the target smart device to perform a control operation, And send a control success message to the first terminal. When it is determined according to the identification of the first user account and the target smart device that the binding relationship between the first user account and the target smart device has been released, an unauthorized operation prompt message is sent to the first terminal, and the unauthorized operation prompt message uses to prompt that the first terminal does not have the authority to control the target smart device. Because the first user only needs to perform a simple click operation on the interface of the first terminal when performing the right to use and operate the target smart device through the first terminal, thus simplifying the operation process and reducing the user's operating cost and understanding cost. In addition, because the first user only needs to perform a simple click operation on the interface of the first terminal to execute the right to use and operate the target smart device through the first terminal, thus expanding the scope of application of the smart device.
图12是根据一示例性实施例示出的一种设备共享装置的框图。参照图12,该装置包括第一发送模块1201、显示模块1202和第二发送模块1203。Fig. 12 is a block diagram showing a device sharing apparatus according to an exemplary embodiment. Referring to FIG. 12 , the device includes a first sending module 1201 , a display module 1202 and a second sending module 1203 .
第一发送模块1201,用于向服务器发送设备查询请求,设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,第一用户账号为第一终端当前登录的账号,设备查询请求用于指示服务器获取并返回目标智能设备的描述信息,目标智能设备为与第一用户账号未绑定且允许共享的智能设备;The first sending module 1201 is configured to send a device query request to the server, where the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, where the first user account is the account currently logged in by the first terminal , the device query request is used to instruct the server to acquire and return the description information of the target smart device, where the target smart device is a smart device that is not bound to the first user account and is allowed to be shared;
显示模块1202,用于当接收到服务器发送的目标智能设备的描述信息时,显示第一提示消息,第一提示消息用于提示是否通过第一终端对目标智能设备进行控制;The display module 1202 is configured to display a first prompt message when receiving the description information of the target smart device sent by the server, and the first prompt message is used to prompt whether to control the target smart device through the first terminal;
第二发送模块1203,用于当检测到对第一提示消息的确认操作时,向服务器发送共享接受消息,共享接受消息用于指示服务器将第一用户账号与目标智能设备进行绑定。The second sending module 1203 is configured to send a sharing acceptance message to the server when a confirmation operation on the first prompt message is detected, and the sharing acceptance message is used to instruct the server to bind the first user account with the target smart device.
可选地,目标智能设备的描述信息中包括目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
该装置还包括:The unit also includes:
第三发送模块,用于向服务器发送控制消息,控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作,控制消息用于指示服务器控制目标智能设备执行控制操作;The third sending module is configured to send a control message to the server, the control message carries at least the first user account, the identification of the target smart device and a control operation, and the control message is used to instruct the server to control the target smart device to perform the control operation;
第一接收模块,用于接收服务器发送的控制成功消息或者无权限操作提示消息,控制成功消息用于提示已成功控制目标智能设备执行控制操作,无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限,且无权限操作提示消息为服务器在确定第一用户账号与目标智能设备之间的绑定关系已解除时发送。The first receiving module is used to receive a control success message or an unauthorized operation prompt message sent by the server. The control success message is used to prompt that the target smart device has been successfully controlled to perform a control operation, and the unauthorized operation prompt message is used to prompt that the first terminal does not have control The permission of the target smart device, and the operation prompt message without permission is sent by the server when it is determined that the binding relationship between the first user account and the target smart device has been released.
可选地,控制消息中还携带第一终端当前接入的无线网络的网络标识。Optionally, the control message also carries the network identifier of the wireless network currently accessed by the first terminal.
可选地,控制消息中携带的网络标识与设备查询请求中携带的网络标识不同。Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
可选地,该装置还包括:Optionally, the device also includes:
第二接收模块,用于接收服务器发送的共享解除通知消息,共享解除通知消息用于通知第一终端与目标智能设备的绑定关系已解除。The second receiving module is configured to receive a sharing release notification message sent by the server, and the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
在本公开实施例中,第一终端向服务器发送设备查询请求。由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器在接收到该设备查询请求后,可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。当第一终端接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,当第一终端检测到对该第一提示消息的确认操作时,可以向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得所有满足条件的第一终端均可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。In the embodiment of the present disclosure, the first terminal sends a device query request to the server. Since the device query request carries the network identifier and the first user account of the wireless network currently accessed by the first terminal, after receiving the device query request, the server can obtain the target smart device according to the network identifier and the first user account and send the description information of the target smart device to the first terminal. When the first terminal receives the description information of the target smart device sent by the server, it may display a first prompt message, and when the first terminal detects a confirmation operation on the first prompt message, it may send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, all the first terminals that meet the conditions can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图13是根据一示例性实施例示出的一种设备共享装置的框图。参照图13,该装置包括第一接收模块1301、第一获取模块1302、第一发送模块1303和绑定模块1304。Fig. 13 is a block diagram showing a device sharing apparatus according to an exemplary embodiment. Referring to FIG. 13 , the device includes a first receiving module 1301 , a first acquiring module 1302 , a first sending module 1303 and a binding module 1304 .
第一接收模块1301,用于接收第一终端发送的设备查询请求,设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,第一用户账号为第一终端当前登录的账号;The first receiving module 1301 is configured to receive the device query request sent by the first terminal, the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, the first user account is the current login account;
第一获取模块1302,用于根据设备查询请求中携带的网络标识和第一用户账号,获取目标智能设备的描述信息,目标智能设备为与第一用户账号未绑定且允许共享的智能设备;The first obtaining module 1302 is configured to obtain the description information of the target smart device according to the network identifier and the first user account carried in the device query request, where the target smart device is a smart device that is not bound to the first user account and is allowed to be shared;
第一发送模块1303,用于向第一终端发送目标智能设备的描述信息;The first sending module 1303 is configured to send the description information of the target smart device to the first terminal;
绑定模块1304,用于当接收到第一终端发送的共享接受消息时,将第一用户账号与目标智能设备进行绑定。The binding module 1304 is configured to bind the first user account with the target smart device when receiving the sharing acceptance message sent by the first terminal.
可选地,第一获取模块1302包括:Optionally, the first obtaining module 1302 includes:
第一获取子模块,用于从存储的共享设备信息表中获取至少一个智能设备的描述信息,共享设备信息表用于存储允许共享的各个智能设备接入的无线网络的网络标识、描述信息,以及拥有者的账号,至少一个智能设备接入的无线网络的网络标识与设备查询请求中携带的网络标识相同;The first obtaining submodule is used to obtain the description information of at least one smart device from the stored shared device information table, and the shared device information table is used to store the network identification and description information of the wireless network that each smart device is allowed to share, As well as the owner's account, the network identifier of at least one wireless network accessed by the smart device is the same as the network identifier carried in the device query request;
确定子模块,用于将至少一个智能设备中拥有者的账号与第一用户账号不同的智能设备确定为目标智能设备;A determining submodule, configured to determine at least one smart device whose owner's account is different from the first user account as a target smart device;
第二获取子模块,用于从共享设备信息表中获取目标智能设备的描述信息。The second obtaining sub-module is used to obtain the description information of the target smart device from the shared device information table.
可选地,第一获取模块1302还包括:Optionally, the first obtaining module 1302 also includes:
接收子模块,用于接收第二终端发送的设备共享请求,设备共享请求中携带第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,第二用户账号为目标智能设备的拥有者的账号;The receiving submodule is configured to receive the device sharing request sent by the second terminal, the device sharing request carries the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device, and the second user account is the account of the owner of the target smart device;
存储子模块,用于将第二用户账号、目标智能设备的描述信息,以及目标智能设备接入的无线网络的网络标识,存储至共享设备信息表中。The storage sub-module is used to store the second user account, the description information of the target smart device, and the network identifier of the wireless network accessed by the target smart device in the shared device information table.
可选地,目标智能设备的描述信息中包括目标智能设备的标识;Optionally, the description information of the target smart device includes an identifier of the target smart device;
该装置还包括:The unit also includes:
第二接收模块,用于接收第一终端发送的控制消息,控制消息中至少携带第一用户账号、目标智能设备的标识和控制操作;The second receiving module is configured to receive a control message sent by the first terminal, where the control message at least carries the first user account, the identification of the target smart device, and the control operation;
控制模块,用于当根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间存在绑定关系时,控制目标智能设备执行控制操作,并向第一终端发送控制成功消息,控制成功消息用于指示已成功控制目标智能设备执行控制操作;A control module, configured to control the target smart device to perform a control operation and send a control message to the first terminal when it is determined that there is a binding relationship between the first user account and the target smart device according to the first user account and the identifier of the target smart device. Success message, the control success message is used to indicate that the target smart device has been successfully controlled to perform the control operation;
第二发送模块,用于当根据第一用户账号和目标智能设备的标识,确定第一用户账号与目标智能设备之间的绑定关系已解除时,向第一终端发送无权限操作提示消息,无权限操作提示消息用于提示第一终端没有控制目标智能设备的权限。The second sending module is configured to send an unauthorized operation prompt message to the first terminal when it is determined that the binding relationship between the first user account and the target smart device has been released according to the first user account and the identification of the target smart device, The unauthorized operation prompt message is used to prompt that the first terminal has no authority to control the target smart device.
可选地,控制消息中还携带第一终端当前接入的无线网络的网络标识;Optionally, the control message also carries a network identifier of the wireless network currently accessed by the first terminal;
该装置还包括:The unit also includes:
第二获取模块,用于获取目标智能设备的共享方式,共享方式包括第一共享方式或第二共享方式,第一共享方式是指在同一无线网络下共享目标智能设备的方式,第二共享方式是指共享目标智能设备的网络不做限制的方式;The second acquisition module is used to acquire the sharing method of the target smart device. The sharing method includes the first sharing method or the second sharing method. The first sharing method refers to the method of sharing the target smart device under the same wireless network, and the second sharing method Refers to the way in which the network of the shared target smart device is not restricted;
第一触发模块,用于当目标智能设备的共享方式为第一共享方式,且控制消息中携带的网络标识与目标智能设备接入的无线网络的网络标识相同时,触发控制模块执行控制目标智能设备执行控制操作的步骤;The first trigger module is used to trigger the control module to execute the control target smart device when the sharing method of the target smart device is the first sharing method, and the network identifier carried in the control message is the same as the network identifier of the wireless network accessed by the target smart device. the steps by which the device performs the control operation;
第二触发模块,用于当目标智能设备的共享方式为第二共享方式时,直接触发控制模块控制目标智能设备执行控制操作的步骤。The second triggering module is used for directly triggering the step of controlling the target smart device to perform a control operation by the control module when the sharing mode of the target smart device is the second sharing mode.
可选地,该装置还包括:Optionally, the device also includes:
第三接收模块,用于接收第二终端发送的移除指令,移除指令中携带第二用户账号、目标智能设备的标识和第一用户账号;The third receiving module is configured to receive a removal instruction sent by the second terminal, where the removal instruction carries the second user account, the target smart device identifier, and the first user account;
解除模块,用于根据第二用户账号和目标智能设备的标识,解除第一用户账号与目标智能设备之间的绑定关系;A release module, configured to release the binding relationship between the first user account and the target smart device according to the identification of the second user account and the target smart device;
第三发送模块,用于向第一终端发送共享解除通知消息,共享解除通知消息用于通知第一终端与目标智能设备的绑定关系已解除。The third sending module is configured to send a sharing release notification message to the first terminal, where the sharing release notification message is used to notify that the binding relationship between the first terminal and the target smart device has been released.
在本公开实施例中,服务器接收第一终端发送的设备查询请求,由于该设备查询请求中携带第一终端当前接入的无线网络的网络标识和第一用户账号,所以服务器可以根据该网络标识和第一用户账号获取目标智能设备的描述信息,并将目标智能设备的描述信息发送给第一终端。第一终端在接收到服务器发送的目标智能设备的描述信息时,可以显示第一提示消息,获取并向服务器发送共享接受消息。当服务器接收到共享接受消息时,可以将第一用户账号与目标智能设备进行绑定,从而实现设备的共享。这样使得所有满足条件的第一终端均可快速获得目标智能设备的使用权和操作权,提高了设备共享的效率。另外,拥有者不用逐个指定并添加其他用户账号就可实现设备共享,简化了操作过程,节省了成本,并降低了添加第一用户账号的出错率,且由于第一用户账号不限于拥有者指定,从而扩大了智能设备的共享范围。In this embodiment of the present disclosure, the server receives the device query request sent by the first terminal. Since the device query request carries the network identifier of the wireless network currently accessed by the first terminal and the first user account, the server can Obtain the description information of the target smart device with the first user account, and send the description information of the target smart device to the first terminal. When receiving the description information of the target smart device sent by the server, the first terminal may display a first prompt message, obtain and send a sharing acceptance message to the server. When the server receives the sharing acceptance message, it can bind the first user account with the target smart device, so as to realize the sharing of the device. In this way, all the first terminals that meet the conditions can quickly obtain the right to use and operate the target smart device, which improves the efficiency of device sharing. In addition, the owner does not need to specify and add other user accounts one by one to realize device sharing, which simplifies the operation process, saves costs, and reduces the error rate of adding the first user account. , thereby expanding the sharing scope of smart devices.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图14是根据一示例性实施例示出的一种设备共享装置1400的框图。例如,装置1400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 14 is a block diagram showing a device sharing apparatus 1400 according to an exemplary embodiment. For example, the apparatus 1400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图14,装置1400可以包括以下一个或多个组件:处理组件1402,存储器1404,电源组件1407,多媒体组件1408,音频组件1410,输入/输出(I/O)的接口1412,传感器组件1414,以及通信组件1417。14, device 1400 may include one or more of the following components: processing component 1402, memory 1404, power supply component 1407, multimedia component 1408, audio component 1410, input/output (I/O) interface 1412, sensor component 1414, and a communication component 1417 .
处理组件1402通常控制装置1400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1402可以包括一个或多个处理器1420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1402可以包括一个或多个模块,便于处理组件1402和其他组件之间的交互。例如,处理组件1402可以包括多媒体模块,以方便多媒体组件1408和处理组件1402之间的交互。The processing component 1402 generally controls the overall operations of the device 1400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1402 may include one or more processors 1420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1402 may include one or more modules that facilitate interaction between processing component 1402 and other components. For example, processing component 1402 may include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402 .
存储器1404被配置为存储各种类型的数据以支持在装置1400的操作。这些数据的示例包括用于在装置1400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1404 is configured to store various types of data to support operations at the device 1400 . Examples of such data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件1407为装置1400的各种组件提供电源。电源组件1407可以包括电源管理系统,一个或多个电源,及其他与为装置1400生成、管理和分配电源相关联的组件。The power supply component 1407 provides power to various components of the device 1400 . Power components 1407 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 1400 .
多媒体组件1408包括在所述装置1400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1408包括一个前置摄像头和/或后置摄像头。当装置1400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1408 includes a front camera and/or a rear camera. When the device 1400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1410被配置为输出和/或输入音频信号。例如,音频组件1410包括一个麦克风(MIC),当装置1400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1404或经由通信组件1417发送。在一些实施例中,音频组件1410还包括一个扬声器,用于输出音频信号。The audio component 1410 is configured to output and/or input audio signals. For example, the audio component 1410 includes a microphone (MIC) configured to receive external audio signals when the device 1400 is in operation modes, such as call mode, recording mode and voice recognition mode. The received audio signal may be further stored in the memory 1404 or sent via the communication component 1417 . In some embodiments, the audio component 1410 also includes a speaker for outputting audio signals.
I/O接口1412为处理组件1402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1412 provides an interface between the processing component 1402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1414包括一个或多个传感器,用于为装置1400提供各个方面的状态评估。例如,传感器组件1414可以检测到装置1400的打开/关闭状态,组件的相对定位,例如所述组件为装置1400的显示器和小键盘,传感器组件1414还可以检测装置1400或装置1400一个组件的位置改变,用户与装置1400接触的存在或不存在,装置1400方位或加速/减速和装置1400的温度变化。传感器组件1414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1414 includes one or more sensors for providing various aspects of status assessment for device 1400 . For example, the sensor component 1414 can detect the open/closed state of the device 1400, the relative positioning of components, such as the display and keypad of the device 1400, and the sensor component 1414 can also detect a change in the position of the device 1400 or a component of the device 1400 , the presence or absence of user contact with the device 1400 , the device 1400 orientation or acceleration/deceleration and the temperature change of the device 1400 . Sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1414 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1417被配置为便于装置1400和其他设备之间有线或无线方式的通信。装置1400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1417经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1417还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1417 is configured to facilitate wired or wireless communication between the apparatus 1400 and other devices. The device 1400 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1417 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1417 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图2或图4实施例提供的设备共享方法。In an exemplary embodiment, apparatus 1400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Implemented by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the device sharing method provided in the embodiment of FIG. 2 or FIG. 4 above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1404,上述指令可由装置1400的处理器1420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1404 including instructions, which can be executed by the processor 1420 of the device 1400 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行上述图2或4实施例提供的设备共享方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the device sharing method provided in the embodiment of FIG. 2 or 4 above.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述图2或4实施例提供的设备共享方法的步骤。A computer program product containing instructions, when running on a computer, causes the computer to execute the steps of the device sharing method provided in the embodiment of FIG. 2 or 4 above.
图15是根据一示例性实施例示出的一种设备共享装置1500的框图。例如,装置1500可以被提供为一服务器。参照图15,装置1500包括处理器1522,其进一步包括一个或多个处理器,以及由存储器1532所代表的存储器资源,用于存储可由处理器1522的执行的指令,例如应用程序。存储器1532中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理器1522被配置为执行指令,以执行上述图3或图4所示实施例提供的方法。Fig. 15 is a block diagram showing a device sharing apparatus 1500 according to an exemplary embodiment. For example, the apparatus 1500 may be provided as a server. Referring to FIG. 15 , the apparatus 1500 includes a processor 1522 , which further includes one or more processors, and a memory resource represented by a memory 1532 for storing instructions executable by the processor 1522 , such as application programs. The application programs stored in memory 1532 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1522 is configured to execute instructions to perform the method provided by the embodiment shown in FIG. 3 or FIG. 4 above.
装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1500 may also include a power component 1526 configured to perform power management of device 1500 , a wired or wireless network interface 1550 configured to connect device 1500 to a network, and an input-output (I/O) interface 1558 . The apparatus 1500 can operate based on an operating system stored in the memory 1532, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1532,上述指令可由装置1500的处理器1522执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1532 including instructions, which can be executed by the processor 1522 of the device 1500 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行上述图3或图4所示实施例提供的方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the server, the server can execute the method provided by the embodiment shown in FIG. 3 or FIG. 4 above.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述图3或4实施例提供的设备共享方法的步骤。A computer program product containing instructions, when running on a computer, causes the computer to execute the steps of the device sharing method provided in the embodiment of FIG. 3 or 4 above.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810524886.8ACN108809968B (en) | 2018-05-28 | 2018-05-28 | Device sharing method, device and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810524886.8ACN108809968B (en) | 2018-05-28 | 2018-05-28 | Device sharing method, device and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN108809968Atrue CN108809968A (en) | 2018-11-13 |
| CN108809968B CN108809968B (en) | 2021-05-04 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810524886.8AActiveCN108809968B (en) | 2018-05-28 | 2018-05-28 | Device sharing method, device and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN108809968B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110012455A (en)* | 2019-01-25 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of management method of account information, device and electronic equipment |
| CN110011884A (en)* | 2019-04-01 | 2019-07-12 | 宁波奥克斯电气股份有限公司 | A distribution network progress display method, device and air conditioner |
| CN110062341A (en)* | 2019-04-25 | 2019-07-26 | 深圳市融智联科技有限公司 | A kind of method, apparatus and system that device data is shared |
| CN110166439A (en)* | 2019-04-23 | 2019-08-23 | 维沃移动通信有限公司 | Collaborative share method, terminal, router and server |
| CN110535738A (en)* | 2019-09-27 | 2019-12-03 | 四川长虹电器股份有限公司 | Intelligent housing permission sharing method |
| CN110602216A (en)* | 2019-09-16 | 2019-12-20 | 宁波奥克斯电气股份有限公司 | Method and device for using single account by multiple terminals, cloud server and storage medium |
| CN110703621A (en)* | 2019-10-31 | 2020-01-17 | 宁波奥克斯电气股份有限公司 | Household appliance control method, household appliance control device, server and computer readable storage medium |
| CN110768992A (en)* | 2019-10-30 | 2020-02-07 | 广东美的制冷设备有限公司 | Shared device operation monitoring method, device, server and storage medium |
| CN111181903A (en)* | 2019-06-04 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Information acquisition method and apparatus, storage medium, and electronic apparatus |
| CN111313131A (en)* | 2020-03-24 | 2020-06-19 | 广东通宇通讯股份有限公司 | A dielectric waveguide filter |
| CN111353141A (en)* | 2018-12-20 | 2020-06-30 | 美的集团股份有限公司 | Intelligent device authority control method, server, user side device and electronic device |
| CN112419026A (en)* | 2020-11-25 | 2021-02-26 | 山东浪潮商用系统有限公司 | Method for realizing interaction with tax terminal equipment based on mobile intelligent terminal |
| CN112689274A (en)* | 2020-12-22 | 2021-04-20 | 未来穿戴技术有限公司 | Short-distance wireless communication connection prompting method and device and massage equipment |
| CN113011943A (en)* | 2021-03-11 | 2021-06-22 | 北京骑胜科技有限公司 | Interaction method, interaction system, storage medium and electronic device |
| WO2021121305A1 (en)* | 2019-12-19 | 2021-06-24 | 华为技术有限公司 | Method for managing smart device, mobile terminal, and communication system |
| WO2021179944A1 (en)* | 2020-03-09 | 2021-09-16 | 维沃移动通信有限公司 | Device sharing method and server |
| CN113723126A (en)* | 2021-08-31 | 2021-11-30 | 北京市商汤科技开发有限公司 | Data acquisition method and device, electronic equipment and storage medium |
| CN113839991A (en)* | 2021-08-30 | 2021-12-24 | 青岛海尔科技有限公司 | Method and device for confirming equipment information, storage medium and electronic device |
| CN114726664A (en)* | 2022-03-23 | 2022-07-08 | 青岛海信智慧生活科技股份有限公司 | Household equipment binding method and equipment |
| CN114785913A (en)* | 2022-03-14 | 2022-07-22 | 海信视像科技股份有限公司 | Display device and device information processing method |
| CN115114607A (en)* | 2021-03-22 | 2022-09-27 | 华为技术有限公司 | Sharing authorization method, device and storage medium |
| CN115129194A (en)* | 2022-05-24 | 2022-09-30 | 武汉擎朗智能科技有限公司 | Cleaning robot sharing method, device, equipment and storage medium |
| CN115442170A (en)* | 2019-03-22 | 2022-12-06 | 华为技术有限公司 | Communication method, device and system |
| WO2023184559A1 (en)* | 2022-04-02 | 2023-10-05 | Oppo广东移动通信有限公司 | Device sharing method and apparatus, and device, storage medium and program product |
| CN111885594B (en)* | 2020-06-30 | 2024-03-22 | 海尔优家智能科技(北京)有限公司 | Equipment binding method and device |
| CN118947100A (en)* | 2022-04-02 | 2024-11-12 | Oppo广东移动通信有限公司 | Equipment sharing method, device, equipment, storage medium and program product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101141360A (en)* | 2007-09-14 | 2008-03-12 | 四川长虹电器股份有限公司 | Equipment management and control method of family network |
| US20150077231A1 (en)* | 2013-05-17 | 2015-03-19 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for intelligently controlling device, and plug-and-play device |
| CN105353625A (en)* | 2015-10-12 | 2016-02-24 | 珠海格力电器股份有限公司 | Method, device and system for binding intelligent equipment |
| CN105592454A (en)* | 2014-10-21 | 2016-05-18 | 中兴通讯股份有限公司 | Method and system for realizing WLAN sharing and WLAN sharing register server |
| CN106100891A (en)* | 2016-06-30 | 2016-11-09 | 北京小米移动软件有限公司 | The method and device that intelligent scene is quickly shared |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101141360A (en)* | 2007-09-14 | 2008-03-12 | 四川长虹电器股份有限公司 | Equipment management and control method of family network |
| US20150077231A1 (en)* | 2013-05-17 | 2015-03-19 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for intelligently controlling device, and plug-and-play device |
| CN105592454A (en)* | 2014-10-21 | 2016-05-18 | 中兴通讯股份有限公司 | Method and system for realizing WLAN sharing and WLAN sharing register server |
| CN105353625A (en)* | 2015-10-12 | 2016-02-24 | 珠海格力电器股份有限公司 | Method, device and system for binding intelligent equipment |
| CN106100891A (en)* | 2016-06-30 | 2016-11-09 | 北京小米移动软件有限公司 | The method and device that intelligent scene is quickly shared |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111353141A (en)* | 2018-12-20 | 2020-06-30 | 美的集团股份有限公司 | Intelligent device authority control method, server, user side device and electronic device |
| CN111353141B (en)* | 2018-12-20 | 2022-05-24 | 美的集团股份有限公司 | Intelligent device authority control method, server, user side device and electronic device |
| CN110012455B (en)* | 2019-01-25 | 2021-10-22 | 创新先进技术有限公司 | Account information management method and device and electronic equipment |
| CN110012455A (en)* | 2019-01-25 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of management method of account information, device and electronic equipment |
| CN115442170A (en)* | 2019-03-22 | 2022-12-06 | 华为技术有限公司 | Communication method, device and system |
| CN110011884A (en)* | 2019-04-01 | 2019-07-12 | 宁波奥克斯电气股份有限公司 | A distribution network progress display method, device and air conditioner |
| CN110011884B (en)* | 2019-04-01 | 2022-01-11 | 宁波奥克斯电气股份有限公司 | Distribution network progress display method and device and air conditioner |
| CN110166439A (en)* | 2019-04-23 | 2019-08-23 | 维沃移动通信有限公司 | Collaborative share method, terminal, router and server |
| CN110062341A (en)* | 2019-04-25 | 2019-07-26 | 深圳市融智联科技有限公司 | A kind of method, apparatus and system that device data is shared |
| CN111181903A (en)* | 2019-06-04 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Information acquisition method and apparatus, storage medium, and electronic apparatus |
| CN110602216B (en)* | 2019-09-16 | 2022-06-07 | 宁波奥克斯电气股份有限公司 | Method and device for using single account by multiple terminals, cloud server and storage medium |
| CN110602216A (en)* | 2019-09-16 | 2019-12-20 | 宁波奥克斯电气股份有限公司 | Method and device for using single account by multiple terminals, cloud server and storage medium |
| CN110535738A (en)* | 2019-09-27 | 2019-12-03 | 四川长虹电器股份有限公司 | Intelligent housing permission sharing method |
| CN110768992A (en)* | 2019-10-30 | 2020-02-07 | 广东美的制冷设备有限公司 | Shared device operation monitoring method, device, server and storage medium |
| CN110703621A (en)* | 2019-10-31 | 2020-01-17 | 宁波奥克斯电气股份有限公司 | Household appliance control method, household appliance control device, server and computer readable storage medium |
| WO2021121305A1 (en)* | 2019-12-19 | 2021-06-24 | 华为技术有限公司 | Method for managing smart device, mobile terminal, and communication system |
| WO2021179944A1 (en)* | 2020-03-09 | 2021-09-16 | 维沃移动通信有限公司 | Device sharing method and server |
| CN111313131A (en)* | 2020-03-24 | 2020-06-19 | 广东通宇通讯股份有限公司 | A dielectric waveguide filter |
| CN111885594B (en)* | 2020-06-30 | 2024-03-22 | 海尔优家智能科技(北京)有限公司 | Equipment binding method and device |
| CN112419026A (en)* | 2020-11-25 | 2021-02-26 | 山东浪潮商用系统有限公司 | Method for realizing interaction with tax terminal equipment based on mobile intelligent terminal |
| CN112689274B (en)* | 2020-12-22 | 2023-10-24 | 未来穿戴技术有限公司 | Prompting method and device for short-distance wireless communication connection and massaging equipment |
| CN112689274A (en)* | 2020-12-22 | 2021-04-20 | 未来穿戴技术有限公司 | Short-distance wireless communication connection prompting method and device and massage equipment |
| CN113011943A (en)* | 2021-03-11 | 2021-06-22 | 北京骑胜科技有限公司 | Interaction method, interaction system, storage medium and electronic device |
| CN115114607A (en)* | 2021-03-22 | 2022-09-27 | 华为技术有限公司 | Sharing authorization method, device and storage medium |
| CN113839991A (en)* | 2021-08-30 | 2021-12-24 | 青岛海尔科技有限公司 | Method and device for confirming equipment information, storage medium and electronic device |
| CN113723126A (en)* | 2021-08-31 | 2021-11-30 | 北京市商汤科技开发有限公司 | Data acquisition method and device, electronic equipment and storage medium |
| CN114785913B (en)* | 2022-03-14 | 2024-04-19 | 海信视像科技股份有限公司 | Display device and device information processing method |
| CN114785913A (en)* | 2022-03-14 | 2022-07-22 | 海信视像科技股份有限公司 | Display device and device information processing method |
| CN114726664B (en)* | 2022-03-23 | 2023-10-27 | 青岛海信智慧生活科技股份有限公司 | Binding method and binding equipment for household equipment |
| CN114726664A (en)* | 2022-03-23 | 2022-07-08 | 青岛海信智慧生活科技股份有限公司 | Household equipment binding method and equipment |
| WO2023184559A1 (en)* | 2022-04-02 | 2023-10-05 | Oppo广东移动通信有限公司 | Device sharing method and apparatus, and device, storage medium and program product |
| CN118947100A (en)* | 2022-04-02 | 2024-11-12 | Oppo广东移动通信有限公司 | Equipment sharing method, device, equipment, storage medium and program product |
| CN115129194A (en)* | 2022-05-24 | 2022-09-30 | 武汉擎朗智能科技有限公司 | Cleaning robot sharing method, device, equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN108809968B (en) | 2021-05-04 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108809968A (en) | Collaborative share method, apparatus and storage medium | |
| CN105487389B (en) | Method and device for controlling intelligent equipment | |
| CN108810861B (en) | Smart device connection method, device and storage medium | |
| CN106487622B (en) | Device control right sharing method and device | |
| CN106549977B (en) | A method, device and system for establishing a binding relationship between an account and a device | |
| CN108768803A (en) | Add the method, apparatus and storage medium of smart machine | |
| CN106209800B (en) | Equipment Authority sharing method and apparatus | |
| CN105162668B (en) | Connect method and device for removing | |
| WO2016183992A1 (en) | Method, apparatus and system for managing control relationship between account and device | |
| JP2017513161A (en) | Transfer processing method and apparatus | |
| CN106547216B (en) | The method and device of intelligent scene trigger condition is set | |
| CN108848484B (en) | Equipment sharing method, device and storage medium | |
| CN105162728A (en) | Network access method, network access device and network access system | |
| CN106535191A (en) | Network connection establishing method and device | |
| CN107948926A (en) | The method and apparatus that smart machine is shared | |
| CN106371327A (en) | Control right sharing method and device | |
| CN105812515A (en) | Protection cover of mobile terminal, and method, device and terminal for setting system themes | |
| CN106056010A (en) | Method and apparatus for processing messages by terminal, and terminal | |
| CN105763601A (en) | File sharing method and device | |
| CN108319835B (en) | User space access control method, device, device and storage medium | |
| CN106658467A (en) | Virtual SIM card management method and device | |
| CN108156647A (en) | Password acquisition methods and device | |
| CN106559479A (en) | Multimedia file downloading method, designated equipment and terminal | |
| CN107734139A (en) | The control method and device of terminal device | |
| CN106611112A (en) | Application program safe processing method, device and equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |