CN108809968B - Equipment sharing method, device and storage medium - Google Patents

Equipment sharing method, device and storage medium Download PDF

Info

Publication number
CN108809968B
CN108809968B CN201810524886.8A CN201810524886A CN108809968B CN 108809968 B CN108809968 B CN 108809968B CN 201810524886 A CN201810524886 A CN 201810524886A CN 108809968 B CN108809968 B CN 108809968B
Authority
CN
China
Prior art keywords
terminal
target intelligent
sharing
user account
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810524886.8A
Other languages
Chinese (zh)
Other versions
CN108809968A (en
Inventor
范林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810524886.8A priority Critical patent/CN108809968B/en
Publication of CN108809968A publication Critical patent/CN108809968A/en
Application granted granted Critical
Publication of CN108809968B publication Critical patent/CN108809968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • H04L41/0293Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP] for accessing web services by means of a binding identification of the management service or element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a device sharing method, a device and a storage medium, and belongs to the field of communication. The method comprises the following steps: a device query request is sent to a server. Since the device query request carries the network identifier and the first user account of the wireless network to which the first terminal is currently accessed, after receiving the device query request, the server can obtain the description information of the target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When the first terminal receives description information of the target intelligent device sent by the server, a first prompt message is displayed, and when confirmation operation of the first prompt message is detected, a sharing acceptance message is sent to the server. When the server receives the sharing acceptance message, the first user account is bound with the target intelligent device, so that the first terminal can quickly obtain the use right and the operation right of the target intelligent device, and the device sharing efficiency is improved.

Description

Equipment sharing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications, and in particular, to a device sharing method and apparatus, and a storage medium.
Background
With the development of science and technology, intelligent devices such as intelligent air conditioners, intelligent kettles, intelligent air purifiers and the like gradually appear in the visual field of people. In practical application, an owner of the intelligent device can remotely control the intelligent device through a mobile phone and other terminals, and can share the intelligent device with other users. For convenience of the following description, the other users may be referred to as first users, and the owner of the smart device may be referred to as second users.
At present, when a second user shares own intelligent device with a first user, the second user may input a first user account in a device sharing interface of a second terminal, so that the second terminal may send a sharing notification to the first terminal through a server, the second terminal is a terminal corresponding to the second user, and the first terminal is a terminal corresponding to the first user. And after the first terminal receives the sharing notification, the sharing notification can be displayed, and if the first user accepts sharing, the sharing operation is triggered and confirmed on the first terminal. At this time, the first terminal may transmit a sharing acceptance message to the server. When the server receives the sharing acceptance message, the first user account can be bound with the intelligent device, so that the first user obtains the use right and the operation right of the intelligent device.
Disclosure of Invention
In order to solve the problems in the related art, embodiments of the present disclosure provide a device sharing method, apparatus, and storage medium. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a device sharing method applied to a first terminal, the method including:
sending an equipment query request to a server, wherein the equipment query request carries a network identifier of a wireless network currently accessed by the first terminal and a first user account, the first user account is an account currently logged in by the first terminal, the equipment query request is used for indicating the server to acquire and return description information of a target intelligent device, and the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared;
when the description information of the target intelligent equipment sent by the server is received, displaying a first prompt message, wherein the first prompt message is used for prompting whether the target intelligent equipment is controlled through the first terminal;
and when the confirmation operation of the first prompt message is detected, sending a sharing acceptance message to the server, wherein the sharing acceptance message is used for indicating the server to bind the first user account with the target intelligent device.
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, the method further includes:
sending a control message to the server, where the control message at least carries the first user account, the identifier of the target intelligent device, and a control operation, and the control message is used to instruct the server to control the target intelligent device to execute the control operation;
receiving a control success message or an unauthorized operation prompting message sent by the server, wherein the control success message is used for prompting that the target intelligent device is successfully controlled to execute the control operation, the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority to control the target intelligent device, and the unauthorized operation prompting message is sent when the server determines that the binding relationship between the first user account and the target intelligent device is released.
Optionally, the control message further carries a network identifier of a wireless network to which the first terminal is currently accessing.
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, wherein the sharing release notification message is used for notifying that the binding relationship between the first terminal and the target intelligent device is released.
According to a second aspect of the embodiments of the present disclosure, there is provided a device sharing method applied to a server, the method including:
receiving an equipment query request sent by a first terminal, wherein the equipment query request carries a network identifier of a wireless network currently accessed by the first terminal and a first user account, and the first user account is an account currently logged in by the first terminal;
acquiring description information of a target intelligent device according to a network identifier and the first user account carried in the device query request, wherein the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared;
sending description information of the target intelligent device to the first terminal;
and when a sharing acceptance message sent by the first terminal is received, binding the first user account with the target intelligent equipment.
Optionally, the obtaining, according to the network identifier and the first user account carried in the device query request, description information of the target intelligent device includes:
acquiring description information of at least one intelligent device from a stored shared device information table, wherein the shared device information table is used for storing network identifiers and description information of wireless networks allowing the shared intelligent devices to access, and an account of an owner, and the network identifier of the wireless network accessed by the at least one intelligent device is the same as the network identifier carried in the device query request;
determining a smart device with an account of an owner of the at least one smart device different from the first user account as the target smart device;
and acquiring the description information of the target intelligent 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 an equipment sharing request sent by a second terminal, wherein the equipment sharing request carries a second user account, description information of the target intelligent equipment and a network identifier of a wireless network accessed by the target intelligent equipment, and the second user account is an account of an owner of the target intelligent equipment;
and storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent device into 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, the method further includes:
receiving a control message sent by the first terminal, wherein the control message at least carries the first user account, the identifier of the target intelligent device and a control operation;
when it is determined that a binding relationship exists between the first user account and the target intelligent device according to the first user account and the identifier of the target intelligent device, controlling the target intelligent device to execute the control operation, and sending a control success message to the first terminal, wherein the control success message is used for indicating that the target intelligent device is successfully controlled to execute the control operation;
and when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, sending an unauthorized operation prompting message to the first terminal, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
Optionally, the control message further carries a network identifier of a wireless network to which the first terminal is currently accessed;
before the controlling the target smart device to execute the control operation, the method further includes:
acquiring a sharing mode of the target intelligent device, wherein the sharing mode comprises a first sharing mode or a second sharing mode, the first sharing mode refers to a mode of sharing the target intelligent device under the same wireless network, and the second sharing mode refers to a mode of not limiting the network of sharing the target intelligent device;
when the sharing mode of the target intelligent 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 intelligent device, executing a step of controlling the target intelligent device to execute the control operation;
and when the sharing mode of the target intelligent equipment is the second sharing mode, directly executing the step of controlling the target intelligent equipment to execute the control operation.
Optionally, after the binding the first user account and the target smart device, the method further includes:
receiving a removing instruction sent by a second terminal, wherein the removing instruction carries a second user account, the identifier of the target intelligent device and the first user account;
removing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
and sending a sharing release notification message to the first terminal, wherein the sharing release notification message is used for notifying that the binding relationship between the first terminal and the target intelligent equipment is released.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing a device, which is applied to a first terminal, the apparatus including:
a first sending module, configured to send an equipment query request to a server, where the equipment query request carries a network identifier of a wireless network to which a first terminal is currently connected and a first user account, the first user account is an account to which the first terminal is currently logged, the equipment query request is used to instruct the server to obtain and return description information of a target intelligent device, and the target intelligent device is an intelligent device that is not bound to the first user account and is allowed to be shared;
the display module is used for displaying a first prompt message when the description information of the target intelligent equipment sent by the server is received, wherein the first prompt message is used for prompting whether the target intelligent equipment is controlled by the first terminal;
a second sending module, configured to send a sharing acceptance message to the server when a confirmation operation of the first prompt message is detected, where 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 device further comprises:
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 identifier of the target intelligent device, and a control operation, and the control message is used to instruct the server to control the target intelligent device to execute the control operation;
the first receiving module is configured to receive a control success message or an unauthorized operation prompting message sent by the server, where the control success message is used to prompt that the target intelligent device has been successfully controlled to execute the control operation, the unauthorized operation prompting message is used to prompt that the first terminal does not have an authority to control the target intelligent device, and the unauthorized operation prompting message is sent by the server when it is determined that the binding relationship between the first user account and the target intelligent device has been released.
Optionally, the control message further carries a network identifier of a wireless network to which the first terminal is currently accessing.
Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive a sharing release notification message sent by the server, where the sharing release notification message is used to notify that a 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 devices, which is applied to a server, the apparatus including:
a first receiving module, configured to receive an equipment query request sent by a first terminal, where the equipment query request carries a network identifier of a wireless network to which the first terminal currently accesses and a first user account, and the first user account is an account to which the first terminal currently logs in;
a first obtaining module, configured to obtain description information of a target smart device according to a 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;
the first sending module is used for sending the description information of the target intelligent equipment to the first terminal;
and the binding module is used for binding the first user account with the target intelligent equipment when receiving the sharing acceptance message sent by the first terminal.
Optionally, the first obtaining module includes:
the first obtaining sub-module is used for obtaining description information of at least one intelligent device from a stored shared device information table, the shared device information table is used for storing network identifiers and description information of wireless networks allowing the shared intelligent devices to access, and an account of an owner, and the network identifier of the wireless network accessed by the at least one intelligent device is the same as the network identifier carried in the device query request;
a determining submodule, configured to determine, as the target smart device, a smart device in which an account of an owner of the at least one smart device is different from the first user account;
and the second obtaining submodule is used for obtaining the description information of the target intelligent equipment from the shared equipment information table.
Optionally, the first obtaining module further includes:
the receiving submodule is used for receiving an equipment sharing request sent by a second terminal, wherein the equipment sharing request carries a second user account, the description information of the target intelligent equipment and a network identifier of a wireless network accessed by the target intelligent equipment, and the second user account is an account of an owner of the target intelligent equipment;
and the storage submodule is used for storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent 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 further comprises:
a second receiving module, configured to receive a control message sent by the first terminal, where the control message at least carries the first user account, the identifier of the target intelligent device, and a control operation;
the control module is used for controlling the target intelligent device to execute the control operation and sending a control success message to the first terminal when the binding relationship between the first user account and the target intelligent device is determined according to the first user account and the identification of the target intelligent device, wherein the control success message is used for indicating that the target intelligent device is successfully controlled to execute the control operation;
and the second sending module is used for sending an unauthorized operation prompting message to the first terminal when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
Optionally, the control message further carries a network identifier of a wireless network to which the first terminal is currently accessed;
the device further comprises:
a second obtaining module, configured to obtain a sharing mode of the target smart device, where the sharing mode includes a first sharing mode or a second sharing mode, the first sharing mode refers to a mode in which the target smart device is shared under the same wireless network, and the second sharing mode refers to a mode in which a network sharing the target smart device is not limited;
a first triggering module, configured to trigger the control module to control the target intelligent device to execute the control operation when the sharing mode of the target intelligent device is the first sharing mode and a network identifier carried in the control message is the same as a network identifier of a wireless network to which the target intelligent device accesses;
and the second triggering module is used for directly triggering the control module to control the target intelligent device to execute the control operation when the sharing mode of the target intelligent device is the second sharing mode.
Optionally, the apparatus further comprises:
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;
the release module is used for releasing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
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 is released.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing devices, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the device sharing method of the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions that, when executed by a processor, implement the steps of the device sharing method according to the first aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the device sharing method according to the first aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing devices, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the device sharing method of the second aspect.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of the device sharing method of the second aspect described above.
According to a tenth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the device sharing method of the second aspect described above.
The technical scheme provided by the embodiment of the disclosure at least has the following beneficial 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 to which the first terminal is currently accessed, after receiving the device query request, the server can obtain the description information of the target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When the first terminal receives description information of a target intelligent device sent by the server, a first prompt message can be displayed, and when the first terminal detects a confirmation operation of the first prompt message, a sharing acceptance message can be sent to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, all the first terminals meeting the conditions can quickly obtain the use right and the operation right of the target intelligent equipment, and the equipment sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of an implementation environment for device sharing provided by an embodiment of the present disclosure;
FIG. 2 is a flow diagram illustrating a method of device sharing in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another method of device sharing in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating yet another method of device sharing in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a device sharing settings interface in accordance with an illustrative embodiment;
FIG. 6 is a schematic diagram illustrating a prompt message display interface in accordance with an illustrative embodiment;
FIG. 7 is a diagram illustrating a binding progress prompt interface in accordance with an illustrative embodiment;
FIG. 8 is a diagram illustrating a binding success message display interface in accordance with an illustrative embodiment;
FIG. 9 is a diagram illustrating a device sharing alert message display interface in accordance with an exemplary embodiment;
FIG. 10 is a schematic diagram illustrating a share mode setup and user removal interface in accordance with an illustrative embodiment;
FIG. 11 is a schematic diagram illustrating a share release notification message display interface in accordance with an illustrative embodiment;
FIG. 12 is a block diagram illustrating an apparatus for device sharing in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating another apparatus sharing device in accordance with an illustrative embodiment;
FIG. 14 is a block diagram illustrating yet another apparatus sharing device, according to an example embodiment;
fig. 15 is a block diagram illustrating yet another apparatus sharing device according to an example embodiment.
Detailed Description
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, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before explaining the method provided by the embodiments of the present disclosure in detail, terms, application scenarios and implementation environments related to the embodiments of the present disclosure will be introduced.
First, terms related to the embodiments of the present disclosure will be described.
A first terminal: the terminal corresponding to the first user is the first user, and the first user is the other user except the owner of the intelligent device. The first terminal may be a mobile terminal or a fixed terminal. The mobile terminal includes, but is not limited to, a mobile device having an installed application software and having an operation display screen, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, a portable device (e.g., a laptop computer, a pocket computer, or a handheld computer), and the like. The fixed terminal includes but is not limited to a fixed device with an image acquisition function, such as an entrance guard, a smart fixed phone, a console and the like. The embodiments of the present disclosure are not limited thereto.
A second terminal: the terminal corresponding to the second user is the owner of the intelligent equipment. The second terminal may be a mobile terminal or a fixed terminal. Mobile terminals include, but are not limited to, mobile devices having installed application software and having an operating display screen, such as cell phones, PDAs, tablet computers, portable devices (e.g., laptop computers, pocket computers, or handheld computers). The fixed terminal includes but is not limited to a fixed device with an image acquisition function, such as an entrance guard, a smart fixed phone, a console and the like. The embodiments of the present disclosure are not limited thereto.
Next, an application scenario according to the embodiment of the present disclosure will be described.
In modern life, people may possess a plurality of intelligent equipment such as similar intelligent air conditioner, intelligent kettle, intelligent air purifier, and the second user can also give first user with the intelligent equipment sharing of oneself through second terminal remote control intelligent equipment. At present, when a second user shares an intelligent device with a first user, a first user account needs to be manually input in a device sharing interface of a second terminal, then the second terminal sends a sharing notification to the first terminal through a server, the first terminal can display the sharing notification to the first user after receiving the sharing notification, and if the first user accepts sharing, a sharing operation can be triggered and confirmed on the first terminal. At this time, the first terminal may transmit a sharing acceptance message to the server. When the server receives the sharing acceptance message, the first user account can be bound with the intelligent device, so that the first user obtains the use right and the operation right of the intelligent device. However, when a second user wants to share his/her own smart device to multiple first users, multiple first user accounts need to be added in multiple times, and a sharing notification needs to be sent to multiple first terminals in multiple times, which results in low device sharing efficiency, complex operation process, high cost, and easy error. In addition, the first user account is specified by the second user, so that the sharing range of the intelligent device is limited.
Finally, an implementation environment related to the embodiments of the present disclosure is explained.
Fig. 1 is a schematic diagram of an implementation environment for device sharing according to an embodiment of the present disclosure. Referring to fig. 1, the implementation environment includes: the system comprises a first terminal 101, a second terminal 102 and a server 103, wherein the first terminal 101 and the server 103 can be connected through wires or wirelessly for communication, and the second terminal 102 and the server 103 can also be connected through wires or wirelessly for communication. 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 in the shared device information table. The first terminal 101 may send a device query request to the server 103, where the device query request may carry a network identifier and a first user account of a wireless network to which the first terminal 101 is currently connected. The server 103 may obtain and return the description information of the target smart device when receiving the device query request sent by the first terminal 101. When the first terminal 101 receives the description information of the target smart device sent by the server 103, a first prompt message may be displayed, so that when the first user accepts sharing, a confirmation sharing operation may be triggered on the first terminal 101. At this time, the first terminal 101 may transmit a share acceptance message to the server 103. When the server 103 receives the sharing acceptance message, the first user account may be bound with the target smart device, so as to implement sharing of the smart device.
Next, a device sharing method provided by the embodiment of the present disclosure is explained.
Fig. 2 is a flowchart illustrating a device sharing method applied to a first terminal according to an exemplary embodiment. As shown in fig. 2, the method includes the following steps.
In step 201, an equipment query request is sent to a server, where the equipment query request carries a network identifier of a wireless network to which a first terminal is currently connected and a first user account, the first user account is an account to which the first terminal is currently logged in, the equipment query request is used to instruct the server to obtain and return description information of a target intelligent device, and the target intelligent device is an intelligent device that is not bound to the first user account and is allowed to be shared.
In step 202, when the description information of the target intelligent device sent by the server is received, a first prompt message is displayed, where the first prompt message is used to prompt whether to control the target intelligent device through the first terminal.
In step 203, when a confirmation operation on the first prompt message is detected, a sharing acceptance message is sent to the server, and the sharing acceptance message is used for instructing the server to bind the first user account with the target smart device.
In the embodiment of the present disclosure, a first terminal sends a device query request to a server. Since the device query request carries the network identifier and the first user account of the wireless network to which the first terminal is currently accessed, after receiving the device query request, the server can obtain the description information of the target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When the first terminal receives description information of a target intelligent device sent by the server, a first prompt message can be displayed, and when the first terminal detects a confirmation operation of the first prompt message, a sharing acceptance message can be sent to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, all the first terminals meeting the conditions can quickly obtain the use right and the operation right of the target intelligent equipment, and the equipment sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
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, the method further comprises:
sending a control message to a server, wherein the control message at least carries a first user account, an identifier of a target intelligent device and a control operation, and the control message is used for indicating the server to control the target intelligent device to execute the control operation;
and receiving a control success message or an unauthorized operation prompting message sent by the server, wherein the control success message is used for prompting that the target intelligent device is successfully controlled to execute the control operation, the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority to control the target intelligent device, and the unauthorized operation prompting message is sent when the server determines that the binding relationship between the first user account and the target intelligent device is released.
Optionally, the control message also carries a network identifier of a wireless network to which the first terminal is currently accessing.
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 cancellation notification message sent by the server, wherein the sharing cancellation notification message is used for notifying that the binding relationship between the first terminal and the target intelligent device is cancelled.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 3 is a flowchart illustrating a device sharing method applied to a server according to an exemplary embodiment. As shown in fig. 3, the method includes the following steps.
In step 301, an equipment query request sent by a first terminal is received, where the equipment query request carries a network identifier of a wireless network to which the first terminal is currently accessed and a first user account, and the first user account is an account to which the first terminal is currently logged in;
in step 302, according to the network identifier and the first user account carried in the device query request, obtaining description information of a target intelligent device, where the target intelligent device is an intelligent device that is not bound to the first user account and is allowed to be shared;
in step 303, sending description information of the target intelligent device to the first terminal;
in step 304, when a sharing acceptance message sent by the first terminal is received, the first user account is bound with the target smart device.
In the embodiment of the disclosure, a server receives an equipment query request sent by a first terminal, and since the equipment query request carries a network identifier and a first user account of a wireless network to which the first terminal is currently accessed, the server can obtain description information of a target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When receiving the description information of the target intelligent device sent by the server, the first terminal may display the first prompt message, acquire and send a sharing acceptance message to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, all the first terminals meeting the conditions can quickly obtain the use right and the operation right of the target intelligent equipment, and the equipment sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
Optionally, obtaining description information of the target intelligent device according to the network identifier and the first user account carried in the device query request includes:
acquiring description information of at least one intelligent device from a stored shared device information table, wherein the shared device information table is used for storing network identifiers and description information of wireless networks allowing the shared intelligent devices to access, and an account of an owner, and the network identifier of the wireless network accessed by the at least one intelligent device is the same as the network identifier carried in the device query request;
determining the intelligent device with the account number of the owner different from the first user account number in at least one intelligent device as a target intelligent device;
and obtaining the description information of the target intelligent 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 a device sharing request sent by a second terminal, wherein the device sharing request carries a second user account, description information of a target intelligent device and a network identifier of a wireless network accessed by the target intelligent device, and the second user account is an account of an owner of the target intelligent device;
and storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent device into a shared device information table.
Optionally, the description information of the target smart device includes an identifier of the target smart device;
after the first user account and the target intelligent device are bound, the method further includes:
receiving a control message sent by a first terminal, wherein the control message at least carries a first user account, an identifier of a target intelligent device and a control operation;
when the binding relationship between the first user account and the target intelligent device is determined according to the first user account and the identification of the target intelligent device, controlling the target intelligent device to execute control operation, and sending a control success message to the first terminal, wherein the control success message is used for indicating that the target intelligent device is successfully controlled to execute the control operation;
and when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, sending an unauthorized operation prompting message to the first terminal, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
Optionally, the control message also carries a network identifier of a wireless network to which the first terminal is currently accessed;
before the control target smart device executes the control operation, the method further includes:
acquiring a sharing mode of target intelligent equipment, wherein the sharing mode comprises a first sharing mode or a second sharing mode, the first sharing mode refers to a mode of sharing the target intelligent equipment under the same wireless network, and the second sharing mode refers to a mode of not limiting the network of sharing the target intelligent equipment;
when the sharing mode of the target intelligent equipment is a 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 intelligent equipment, executing a step of controlling the target intelligent equipment to execute control operation;
and when the sharing mode of the target intelligent equipment is the second sharing mode, directly executing the step of controlling the target intelligent equipment to execute the control operation.
Optionally, after the binding the first user account and the target smart device, the method further includes:
receiving a removing instruction sent by a second terminal, wherein the removing instruction carries a second user account, an identifier of a target intelligent device and a first user account;
removing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
and sending a sharing cancellation notification message to the first terminal, wherein the sharing cancellation notification message is used for notifying that the binding relationship between the first terminal and the target intelligent device is cancelled.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 4 is a flow chart illustrating a method of device sharing according to an example embodiment. The interaction subjects of the method are a first terminal, a second terminal and a server, and as shown in fig. 4, the method comprises the following steps.
In step 401, the first terminal sends an equipment query request to the server, where the equipment query request carries a network identifier of a wireless network to which the first terminal currently accesses and a first user account, and the first user account is an account to which the first terminal currently logs in.
In this embodiment of the disclosure, since the first terminal is a terminal corresponding to the first user, the second terminal is a terminal corresponding to the second user, the second user is an owner of the smart device, and the first user is a user who wants to share the smart device owned by the second user, when the first terminal wants to acquire the operation right and the use right of the smart device owned by the second user, the first terminal may send a device query request to the server. In one possible implementation, the device query request may be sent to the server when the first terminal successfully accesses the wireless network. Of course, the first terminal may also send the device query request to the server at other occasions, for example, send the device query request when detecting the device query instruction, which is not limited in this embodiment of the disclosure.
It should be noted that the network identifier of the wireless network to which the first terminal currently accesses may be a name of the wireless network. In addition, the embodiment of the disclosure is mainly applied to the field of smart home, that is, the server and the smart device related to the embodiment of the disclosure may be a smart home server and a smart home device. In this way, the current login account of the first terminal is the login account in the smart home application, that is, the first user account is the login account in the smart home application. Of course, the embodiments of the present disclosure may also be applied in other fields, and the embodiments of the present disclosure are not limited thereto.
In step 402, when the server receives an equipment query request sent by the first terminal, the server obtains description information of a target intelligent device according to a network identifier and a first user account carried in the equipment query request, where the target intelligent device is an intelligent device that is not bound to the first user account and is allowed to be shared.
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 a smart device that is not bound to the first user account and is allowed to be shared, and one or more smart devices that are not bound to the first user account and are allowed to be shared may be used, the target smart device may be one device or may be multiple devices.
The implementation process of obtaining the description information of the target intelligent device according to the network identifier and the first user account carried in the device query request may be: the description information of at least one intelligent device is obtained from a stored shared device information table, the shared device information table is used for storing network identifications and description information of wireless networks allowing shared intelligent devices to access, and accounts of owners, and the network identifications of the wireless networks accessed by the at least one intelligent device are the same as the network identifications carried in the device query request. And determining the intelligent device with the account number of the owner different from the first user account number in the at least one intelligent device as the target intelligent device, and acquiring the description information of the target intelligent device from the shared device information table.
In addition, in the embodiment of the present disclosure, the smart device currently accessing the same wireless network as the first terminal may be used as the smart device that can be shared by the first terminal, and since the first user account is a user account currently logged in by the first terminal and the first terminal is currently used to acquire the operation right and the use right of the smart device owned by the second user, when determining the target smart device, the server may first determine the smart device that is currently accessing the same wireless network as the first terminal, that is, at least one of the smart devices mentioned above. Thereafter, the server may determine the smart device with the account of the owner different from the first user account as the target smart device. Therefore, the server can be ensured not to send the description information of the intelligent device of the owner to the owner, and the server resource can be saved.
Before the server obtains the description information of at least one intelligent device from the stored shared device information table, a second user account, the description information of the target intelligent device and a network identifier of a wireless network accessed by the target intelligent device can be stored in the shared device information table. The implementation process can be as follows: and the second terminal sends a device sharing request to the server, wherein the device sharing request carries a second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent device, and the second user account is the account of the owner of the target intelligent device. And when the server receives the equipment sharing request sent by the second terminal, storing the second user account, the description information of the target intelligent equipment and the network identification of the wireless network accessed by the target intelligent equipment into a sharing equipment information table.
That is, when the second terminal determines that the target smart device needs to be shared with another user, the second terminal 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, the smart device which is not bound to the first user account and is allowed to be shared, that is, the target smart device, may be acquired.
In the embodiment of the present disclosure, a target intelligent device is taken as an example, and when the second terminal shares a device in the above manner, a process of storing relevant information of the device in the shared device information table is described.
For example, the server may store a corresponding relationship 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 a shared device information table shown in table 1 below.
TABLE 1
Figure BDA0001675753410000171
In the embodiment of the present disclosure, only the shared device information table shown in table 1 is described as an example, and 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, a query failure prompt message may be sent to the first terminal, where the query failure prompt message is used to prompt that the description information of the target smart device is not queried currently, so that when the first terminal receives the query failure prompt message, it may be determined that there is no smart device that can be shared currently.
Further, after the server stores the second user account, the description information of the target intelligent device, and the network identifier of the wireless network to which the target intelligent device is accessed into the shared device information table according to the device sharing request sent by the second terminal, a request for canceling the sharing sent by the second terminal may also be received, and the request for canceling the sharing may carry the second user account and the description information of the target intelligent device. That is, the second terminal may not only share the target smart device in the above manner, but also cancel the sharing of the target smart device after sharing the target smart device. In this way, the server may 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.
For example, the second terminal may display description information of the smart device bound to the second user account, a "allow discovery and add" option, a sharing user list, and a "remove device" option in the device sharing setting interface. In the device sharing setting interface shown in fig. 5, the smart air purifier and its icon are description information of the smart device bound to the second user account, and the xiaoshi and the wangchang are users sharing the smart air purifier. In a case where the "allow found and add" option is not selected, when the user clicks the "allow found and add" option, the second terminal may determine that the smart air purifier is a smart device that allows sharing. At this moment, the second terminal can send an equipment sharing request to the server, the equipment sharing request carries the second user account number, the description information of the intelligent air purifier and the network identifier of the wireless network accessed by the intelligent air purifier, and the server stores the second user account number, the description information of the intelligent air purifier and the network identifier of the wireless network accessed by the intelligent air purifier into the shared equipment information table.
However, in a case where the "allow found and add" option is selected, when the user clicks the "allow found and add" option, the second terminal may determine that the sharing of the intelligent air purifier needs to be cancelled currently. At this time, the second terminal may send a request for cancelling sharing to the server, where the request for cancelling sharing may carry the second user account and the description information of the intelligent air purifier, and the server deletes the corresponding record in the shared device information table according to the second user account and the description information of the intelligent air purifier.
In step 403, the server sends the description information of the target smart device to the first terminal.
In step 404, when the first terminal receives the description information of the target smart device sent by the server, a first prompt message is displayed, where the first prompt message is used to prompt whether to control the target smart device through the first terminal.
It should be noted that, because the first prompt message is used to prompt whether the target intelligent device is controlled by the first terminal, the first prompt message may include description information of the target intelligent device, so that a user may conveniently know which device the target intelligent device is.
As can be seen from the above description of step 402, the target smart device may be one device or multiple devices. When the target intelligent device is a plurality of devices, the first prompt message may further set an option for each device, that is, a device that needs to acquire the operation right and the use right currently may be selected from the plurality of devices through the first prompt message.
For example, the target smart device includes four smart devices, namely, 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 may display a prompt message display interface as shown in fig. 6, in which a first prompt message of "find CaptainQ 4 shared devices and control or use these devices" after connection, and a "start connection" option are displayed. When the first user clicks the "start connection" option, it may be determined that the first user needs to acquire the operation rights and the use rights of the 4 pieces of smart devices, and at this time, the first terminal may determine that the confirmation operation on the first prompt message is detected. Of course, the names and icons of the four pieces of intelligent equipment may also be displayed in the first prompt message, and each piece of intelligent equipment is further provided with a selection option, and the first user may select a part of equipment that needs to acquire the operation right and the use right from the four pieces of intelligent equipment, and then click on the "start connection" option. At this time, it may be determined that the first user only needs to acquire the operation right and the use right of some of the four smart devices, and the first terminal may determine that the confirmation operation of the first prompt message is detected.
In step 405, when the first terminal detects a confirmation operation on the first prompt message, a sharing acceptance message is sent to the server.
The target intelligent device can be one device or a plurality of devices. In a possible implementation manner, regardless of whether the target intelligent device is one device or multiple devices, the target intelligent device may be taken as a whole, that is, when the first terminal detects the confirmation operation on the first prompt message, it indicates that the operation rights and the use rights of all the devices in the target intelligent device need to be obtained currently, and at this time, the shared acceptance message sent to the server may not carry other information. In another possible implementation manner, when the target smart device is a plurality of 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 a device for which the first terminal currently needs to acquire the operation right and the usage right, and at this time, the shared acceptance message sent to the server may carry the description information of the device for which the operation right and the usage right need to be acquired. The description information carried in the confirmation operation may be selected by the first user from the first prompt message.
Optionally, when the first terminal detects a rejection operation of the first prompt message, it may be determined that the target smart device is not currently required to be controlled by the first terminal, and at this time, a sharing rejection message may be sent to the server. When the server receives the sharing reject message, no operation may be performed. In addition, when the first terminal detects that the operation is rejected for the first prompt message, the description information of the target smart device received in step 404 may be deleted in order to save memory.
In step 406, when the server receives the sharing acceptance message sent by the first terminal, the first user account is bound with the target smart device.
As can be seen from the above description, the target smart device may be one device or multiple devices, and when the target smart device is multiple devices, the first user may select a part of the devices from the multiple devices and determine that the operation right and the use right of the part of the devices need to be acquired currently. However, the subsequent operations are the same regardless of one device or a plurality of devices, and therefore, the embodiments of the present disclosure are not distinguished in the following, and the target smart device is taken as an example for explanation.
When the server receives the sharing acceptance message sent by the first terminal, the first user account and the target intelligent device can be bound. In a possible implementation manner, the first user account and the description information of the target smart device may be correspondingly stored, so as to implement the binding between the first user account and the target smart device.
Further, in the process that the server binds the first user account with the target intelligent 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 may display the binding progress prompt message. In addition, after the server binds the first user account with the target intelligent device, a binding success message may be sent to the first terminal, so that the first terminal may display the description information of the target intelligent device and control options capable of controlling the target intelligent device. Meanwhile, the server can also send a device sharing prompt message to the second terminal, so that the second terminal can display the number of users sharing the target intelligent device currently.
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 pieces of intelligent equipment with the first user account respectively, a binding progress prompting message can be sent to the first terminal. When the first terminal receives the binding progress prompt message, a binding progress prompt interface as shown in fig. 7 may be displayed, where the binding progress prompt interface displays the binding progress prompt message, and the binding progress prompt message includes description information of the smart device currently being bound, that is, an icon and a name of the smart air purifier, and a current binding progress "connecting (1/4)", that is, a first smart device of the four smart devices is currently being bound. Further, after the server successfully binds the first user account with the target smart device, a binding success message may be sent to the first terminal, and at this time, the first terminal may display the binding success message as shown in fig. 8. Moreover, the server may further send a device sharing alert message to the second terminal, assuming that the nickname of the first user account is xiaoshi, so that when the second terminal receives the device sharing alert message, the device sharing alert message as shown in fig. 9 may be displayed.
Further, after the server binds the first user account with the target smart device, the second user may also remove a part of the users sharing the target smart device, that is, taking the first user as an example, the second terminal may release the binding relationship between the first user account and the target smart device, so as to remove the operation right and the use right of the first user for the target smart device. The implementation process can be as follows: and the second terminal sends a removing instruction to the server, wherein the removing instruction carries the second user account, the identification of the target intelligent device and the first user account. When the server receives a removal instruction sent by the second terminal, the server releases the binding relationship between the first user account and the target intelligent device according to the second user account and the identification of the target intelligent device, and sends a sharing release notification message to the first terminal. In a possible implementation manner, when the server receives a removal instruction sent by the second terminal, the server may delete the stored corresponding relationship between the first user account and the description information of the target intelligent device, so as to release the binding relationship between the first terminal and the target intelligent device.
For example, continuing with FIG. 5, when the user clicks "Xiaoxi" on the sharing user list of the device sharing settings interface shown in FIG. 5, an interface as shown in FIG. 10 may be displayed that includes a "remove user" option. When the second user clicks the "remove user" option, it may be determined that the second user currently needs to remove the operating and usage rights of the first user "xiao xi" for the intelligent 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. And when the server receives a removal instruction sent by the second terminal, removing the binding relationship between the first user account and the intelligent air purifier according to the second user account and the identification of the intelligent air purifier, and sending a sharing removal notification message to the first terminal. When the first terminal receives the share release notification message, the share release notification message may be displayed in an interface as shown in fig. 11.
After the first user account and the target smart device are bound through the steps 401 to 406, the first terminal obtains the usage right and the operation right of the target smart device, and the first user can control the target smart device through the first terminal. The control of the target smart device by the first terminal may be implemented by the following steps 407 to 409, or by the following steps 410 and 411.
In step 407, the first terminal sends a control message to the server, where the control message at least carries the first user account, the identifier of the target smart device, and the control operation.
It should be noted that the description information of the target smart device may include an identifier of the target smart device. In this way, when the first terminal controls the target intelligent device, the control message sent to the server may carry the identifier of the target intelligent device. In this way, the server can determine which intelligent device the first terminal currently needs to control according to the control message. The control operation carried in the control message is an operation executed by the first terminal to control the target smart device, for example, taking the smart device as a smart kettle as an example, the control operation may be to control the smart kettle to perform heat preservation for 12 hours (hours), or may be to control the smart kettle to perform heat preservation for 80 ℃ (celsius), which is not limited in this disclosure.
In addition, as can be seen from the foregoing step 406, after the server binds the first user account and the target intelligent device, the server may further send a binding success message to the first terminal, so that the first terminal may display the description information of the target intelligent device and the control options capable of controlling the target intelligent device. Therefore, when the first user needs to control the target intelligent device, one option can be selected from the displayed control options, and a control message is sent to the server, wherein the control operation carried in the control message is the operation corresponding to the selected option.
In step 408, when the server receives the control message sent by the first terminal and determines that the binding relationship exists between the first user account and the target intelligent device according to the first user account and the identifier of the target intelligent device, the server controls the target intelligent device to execute a control operation and sends a control success message to the first terminal.
The server correspondingly stores the first user account and the description information of the target intelligent device when receiving the sharing acceptance message sent by the first terminal so as to realize the binding between the first user account and the target intelligent device, and the description information of the target intelligent device comprises the identification of the target intelligent device, so that when receiving the control message sent by the first terminal, the server can search whether the corresponding relationship between the first user account and the description information of the target intelligent device is stored or not according to the first user account and the identification of the target intelligent device, if so, the binding relationship between the first user account and the target intelligent device is determined, otherwise, the binding relationship between the first user account and the target intelligent device is determined not to exist.
When it is determined that the binding relationship exists between the first user account and the target intelligent device, the server may directly control the target intelligent device to execute the 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 manner of the target smart device. The sharing mode comprises a first sharing mode or a second sharing mode, wherein the first sharing mode refers to a mode of sharing the target intelligent device under the same wireless network, and the second sharing mode refers to a mode of not limiting the network of sharing the target intelligent device. In this case, before the server controls the target intelligent device to perform the control operation, the sharing mode of the target intelligent device may also be obtained, and when the sharing mode of the target intelligent 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 to which the target intelligent device is accessed, the server controls the target intelligent device to perform the control operation. When the sharing mode of the target intelligent device is the second sharing mode, the target intelligent device can be directly controlled to execute the control operation.
Optionally, the sharing mode in which the second terminal carries the target smart device in the device sharing request is only an exemplary implementation mode, and in the embodiment of the present disclosure, the device sharing request may not also need to carry the sharing mode of the target smart device, so that when the first terminal needs to control the target smart device through the server, the server may inquire the second terminal about the sharing mode of the target smart device. That is, the server may send a request for inquiring about the sharing mode to the second terminal, and the second terminal may display the setting interface of the sharing mode when receiving the request for inquiring about the sharing mode, so that the second terminal may send the sharing mode set by the second user through the setting interface of the sharing mode to the server.
The above implementation processes are all to set a common sharing mode for the target intelligent device, that is, the sharing mode of the target intelligent device is the same for each first user. However, in another possible implementation manner, the second terminal may not set the sharing manner of the target smart device in the above manner, that is, after the first user account is bound to the target smart device, the second user may set a different sharing manner for each first user. For example, as shown in the interface shown in fig. 10, the sharing mode of the intelligent air purifier can be set for the first user "xianxi", and the interface comprises an option of "using under WLAN" and an option of "unlimited use condition". When the user clicks the "use under WLAN" option, it may be determined that the second user needs to set the sharing mode of the first user "xiao xi" for the intelligent air purifier to the first sharing mode. When the user clicks the "unlimited use condition" option, it may be determined that the second user needs to set the sharing mode of the first user "xianxi" for the intelligent air purifier as the second sharing mode.
Since the first sharing mode refers to a mode of sharing the target intelligent device under the same wireless network, when the target intelligent device is shared according to the first sharing mode, the network identifier of the wireless network to which the target intelligent device is accessed needs to be compared with the network identifier of the wireless network to which the first terminal is currently accessed. In a possible implementation manner, the control message sent by the first terminal to the server may carry a network identifier of a wireless network to which the first terminal currently accesses. Thus, before the server controls the target intelligent device to execute the control operation, the network identifier carried in the control message can be compared with the network identifier of the wireless network accessed by the target intelligent device, and if the two network identifiers are the same, the target intelligent device can be controlled to execute the control operation; and if the two network identifications are different, not controlling the target intelligent equipment to execute the control operation. In another possible implementation, the server may query the first terminal for a network identification of a wireless network to which the first terminal is currently accessing. That is, the server sends a network query request to the first terminal, and when the first terminal receives the network query request, the first terminal may send the network identifier of the wireless network to which the first terminal is currently connected to the server. In this way, before the server controls the target intelligent device to execute the control operation, the network identifier of the wireless network sent by the first terminal can be compared with the network identifier of the wireless network accessed by the target intelligent device, and if the two network identifiers are the same, the target intelligent device can be controlled to execute the control operation; and if the two network identifications are different, not controlling the target intelligent equipment to execute the control operation.
It should be noted that, in order to save signaling overhead between the first terminal and the server, regardless of whether the sharing mode of the target smart device is the first sharing mode or the second sharing mode, the control message carries the network identifier of the wireless network to which the first terminal is currently accessed. In this case, when the sharing mode of the target intelligent device is the second sharing mode, the network identifier carried in the control message may be different from the network identifier of the wireless network to which the target intelligent device accesses, that is, the network identifier carried in the control message may be different from the network identifier carried in the device query request.
In step 409, the first terminal receives a 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 be determined that the target smart device has been successfully controlled to perform the corresponding control operation.
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 is released according to the first user account and the identifier of the target smart device, the server sends an unauthorized operation prompt message to the first terminal, where the unauthorized operation prompt message is used to prompt that the first terminal does not have an 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 intelligent device is released according to the first user account and the identifier of the target intelligent device, it indicates that the first terminal does not have the authority to control the target intelligent device currently, that is, the first terminal does not have the operation right and the use right of the target intelligent device, and at this time, the server may send an operation prompt message without the authority to the first terminal.
In step 411, the first terminal receives the unauthorized operation prompting message sent by the server, and displays the unauthorized operation prompting message.
In the embodiment of the disclosure, a first terminal sends an equipment query request to a server, and since the equipment query request carries a network identifier and a first user account of a wireless network to which the first terminal is currently accessed, after receiving the equipment query request, the server may obtain description information of a target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When the first terminal receives description information of a target intelligent device sent by the server, a first prompt message can be displayed, and when the first terminal detects a confirmation operation of the first prompt message, a sharing acceptance message can be sent to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, the first terminal can quickly obtain the use right and the operation right of the target intelligent device, and the device sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
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 identifier of the target smart device, and the control operation. When the server receives a control message sent by the first terminal and determines that a binding relationship exists between the first user account and the target intelligent device according to the first user account and the identification of the target intelligent device, the server controls the target intelligent device to execute a control operation and sends a control success message to the first terminal. When the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, an unauthorized operation prompting message is sent to the first terminal, and the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device. When the first user executes the use right and the operation right of the target intelligent device through the first terminal, only simple click operation needs to be carried out on the interface of the first terminal, so that the operation process is simplified, and the operation cost and the understanding cost of the user are reduced. In addition, the first user can execute the use right and the operation right of the target intelligent device through the first terminal only by performing simple clicking operation on the interface of the first terminal, so that the application range of the intelligent device is expanded.
Fig. 12 is a block diagram illustrating a device sharing apparatus according to an example embodiment. Referring to fig. 12, the apparatus includes a first transmission module 1201, a display module 1202, and a second transmission module 1203.
A first sending module 1201, configured to send an equipment query request to a server, where the equipment query request carries a network identifier of a wireless network to which a first terminal is currently connected and a first user account, the first user account is an account to which the first terminal is currently logged in, the equipment query request is used to instruct the server to obtain and return description information of a target intelligent device, and the target intelligent device is an intelligent device that is not bound to the first user account and is allowed to be shared;
a display module 1202, configured to display a first prompt message when receiving description information of a target intelligent device sent by a server, where the first prompt message is used to prompt whether to control the target intelligent device through a first terminal;
a second sending module 1203, configured to send a sharing acceptance message to the server when a confirmation operation on the first prompt message is detected, where 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 device also includes:
the third sending module is used for sending a control message to the server, wherein the control message at least carries the first user account, the identification of the target intelligent device and the control operation, and the control message is used for indicating the server to control the target intelligent device to execute the control operation;
the first receiving module is used for receiving a control success message or an unauthorized operation prompting message sent by the server, wherein the control success message is used for prompting that the target intelligent device is successfully controlled to execute the control operation, the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority to control the target intelligent device, and the unauthorized operation prompting message is sent when the server determines that the binding relationship between the first user account and the target intelligent device is released.
Optionally, the control message also carries a network identifier of a wireless network to which the first terminal is currently accessing.
Optionally, the network identifier carried in the control message is different from the network identifier carried in the device query request.
Optionally, the apparatus further comprises:
and the second receiving module is used for receiving a sharing release notification message sent by the server, wherein the sharing release notification message is used for notifying that the binding relationship between the first terminal and the target intelligent device is released.
In the embodiment of the present disclosure, a first terminal sends a device query request to a server. Since the device query request carries the network identifier and the first user account of the wireless network to which the first terminal is currently accessed, after receiving the device query request, the server can obtain the description information of the target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When the first terminal receives description information of a target intelligent device sent by the server, a first prompt message can be displayed, and when the first terminal detects a confirmation operation of the first prompt message, a sharing acceptance message can be sent to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, all the first terminals meeting the conditions can quickly obtain the use right and the operation right of the target intelligent equipment, and the equipment sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating an apparatus for device sharing according to an example embodiment. Referring to fig. 13, the apparatus includes a first receiving module 1301, a first obtaining module 1302, a first transmitting module 1303, and a binding module 1304.
A first receiving module 1301, configured to receive an equipment query request sent by a first terminal, where the equipment query request carries a network identifier of a wireless network to which the first terminal currently accesses and a first user account, and the first user account is an account to which the first terminal currently logs in;
a first obtaining module 1302, configured to obtain description information of a target smart device according to a network identifier and a first user account carried in an 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;
a first sending module 1303, configured to send description information of the target intelligent device to the first terminal;
the binding module 1304 is configured to bind the first user account with the target smart device when receiving a sharing acceptance message sent by the first terminal.
Optionally, the first obtaining module 1302 includes:
the first obtaining sub-module is used for obtaining description information of at least one intelligent device from a stored shared device information table, the shared device information table is used for storing network identifiers and description information of wireless networks allowing the shared intelligent devices to access, and an account number of an owner, and the network identifier of the wireless network accessed by the at least one intelligent device is the same as the network identifier carried in the device query request;
the determining submodule is used for determining the intelligent equipment with the account number of the owner different from the first user account number in the at least one intelligent equipment as target intelligent equipment;
and the second acquisition submodule is used for acquiring the description information of the target intelligent equipment from the shared equipment information table.
Optionally, the first obtaining module 1302 further includes:
the receiving submodule is used for receiving an equipment sharing request sent by a second terminal, wherein the equipment sharing request carries a second user account, the description information of the target intelligent equipment and the network identification of the wireless network accessed by the target intelligent equipment, and the second user account is the account of the owner of the target intelligent equipment;
and the storage submodule is used for storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent 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 used for receiving a control message sent by the first terminal, wherein the control message at least carries the first user account, the identification of the target intelligent device and the control operation;
the control module is used for controlling the target intelligent equipment to execute the control operation and sending a control success message to the first terminal when the binding relationship between the first user account and the target intelligent equipment is determined according to the first user account and the identification of the target intelligent equipment, wherein the control success message is used for indicating that the target intelligent equipment is successfully controlled to execute the control operation;
and the second sending module is used for sending an unauthorized operation prompting message to the first terminal when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
Optionally, the control message also carries a network identifier of a wireless network to which the first terminal is currently accessed;
the device also includes:
the second acquisition module is used for acquiring a sharing mode of the target intelligent device, wherein the sharing mode comprises a first sharing mode or a second sharing mode, the first sharing mode refers to a mode of sharing the target intelligent device under the same wireless network, and the second sharing mode refers to a mode of not limiting the network of sharing the target intelligent device;
the first trigger module is used for triggering the control module to execute the step of controlling the target intelligent equipment to execute the control operation when the sharing mode of the target intelligent equipment 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 intelligent equipment;
and the second triggering module is used for directly triggering the control module to control the target intelligent equipment to execute the step of the control operation when the sharing mode of the target intelligent equipment is the second sharing mode.
Optionally, the apparatus further comprises:
the third receiving module is used for receiving a removing instruction sent by the second terminal, wherein the removing instruction carries the second user account, the identifier of the target intelligent device and the first user account;
the release module is used for releasing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
and the third sending module is used for sending a sharing cancellation notification message to the first terminal, wherein the sharing cancellation notification message is used for notifying that the binding relationship between the first terminal and the target intelligent equipment is cancelled.
In the embodiment of the disclosure, a server receives an equipment query request sent by a first terminal, and since the equipment query request carries a network identifier and a first user account of a wireless network to which the first terminal is currently accessed, the server can obtain description information of a target intelligent device according to the network identifier and the first user account, and send the description information of the target intelligent device to the first terminal. When receiving the description information of the target intelligent device sent by the server, the first terminal may display the first prompt message, acquire and send a sharing acceptance message to the server. When the server receives the sharing acceptance message, the first user account and the target intelligent device can be bound, so that the sharing of the device is realized. Therefore, all the first terminals meeting the conditions can quickly obtain the use right and the operation right of the target intelligent equipment, and the equipment sharing efficiency is improved. In addition, the owner can realize equipment sharing without appointing and adding other user accounts one by one, the operation process is simplified, the cost is saved, the error rate of adding the first user account is reduced, and the sharing range of the intelligent equipment is expanded because the first user account is not limited to the appointing of the owner.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 14 is a block diagram illustrating a device sharing apparatus 1400 according to an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 14, apparatus 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1407, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, a sensor component 1414, and a communication component 1417.
The processing component 1402 generally controls the overall operation of the device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1402 can include one or more modules that facilitate interaction between processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate interaction between the multimedia component 1408 and the processing component 1402.
The memory 1404 is configured to store various types of data to support operations at the apparatus 1400. Examples of such data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1404 may be implemented by any type of volatile or non-volatile storage device or combination of devices, 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 disks.
The power supply component 1407 provides power for the various components of the device 1400. The power components 1407 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1408 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1400 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 apparatus 1400 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1404 or transmitted via the communication component 1417. In some embodiments, audio component 1410 further includes a speaker for outputting audio signals.
I/O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1414 includes one or more sensors for providing various aspects of state assessment for the apparatus 1400. For example, the sensor component 1414 may detect an open/closed state of the apparatus 1400, a relative positioning of components, such as a display and keypad of the apparatus 1400, a change in position of the apparatus 1400 or a component of the apparatus 1400, the presence or absence of user contact with the apparatus 1400, an orientation or acceleration/deceleration of the apparatus 1400, and a change in temperature of the apparatus 1400. The sensor assembly 1414 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1414 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1417 is configured to facilitate wired or wireless communication between the apparatus 1400 and other devices. The device 1400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1417 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1417 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the device sharing methods provided by the fig. 2 or fig. 4 embodiments described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1404 that includes instructions executable by the processor 1420 of the apparatus 1400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the device sharing method provided in the above-described embodiments of fig. 2 or 4.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the device sharing method provided in the embodiments of fig. 2 or 4 above.
Fig. 15 is a block diagram illustrating a device sharing apparatus 1500 according to an example embodiment. For example, the apparatus 1500 may be provided as a server. Referring to fig. 15, the apparatus 1500 includes a processor 1522 that further includes one or more processors and memory resources, represented by the memory 1532, for storing instructions, such as applications, that are executable by the processor 1522. The application programs stored in the memory 1532 may include one or more modules that each correspond to a set of instructions. Further, the processor 1522 is configured to execute instructions to perform the methods provided by the embodiments shown in fig. 3 or fig. 4 described above.
The device 1500 can also include a power component 1526 configured to perform power management of the device 1500, a wired or wireless network interface 1550 configured to connect the device 1500 to a network, and an input-output (I/O) interface 1558. The apparatus 1500 may operate based on an operating system stored in the memory 1532, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1532 comprising instructions, executable by the processor 1522 of the apparatus 1500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a server, enable the server to perform the method provided by the embodiment shown in fig. 3 or fig. 4 described above.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the device sharing method provided in the embodiments of fig. 3 or 4 above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that 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.

Claims (24)

1. A device sharing method is applied to a first terminal, and comprises the following steps:
sending an equipment query request to a server so that the server can acquire and return the description information of the target intelligent equipment from a stored shared equipment information table; the device query request carries a network identifier of a wireless network currently accessed by the first terminal and a first user account, the first user account is an account currently logged in by the first terminal, and the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared; the network identification is the name of the wireless network; the shared device information table is used for storing network identification and description information of wireless networks which are allowed to be shared and accessed by each intelligent device, and an account number of an owner; the target intelligent device is an intelligent device with an account of an owner different from the first user account in at least one intelligent device; the network identification of the wireless network accessed by at least one intelligent device is the same as the network identification in the device query request;
when the description information of the target intelligent equipment sent by the server is received, displaying a first prompt message, wherein the first prompt message is used for prompting whether the target intelligent equipment is controlled through the first terminal;
when the confirmation operation of the first prompt message is detected, sending a sharing acceptance message to the server, wherein the sharing acceptance message is used for indicating the server to bind the first user account with the target intelligent device; the sharing acceptance message includes description information of the device for which the first terminal needs to acquire the operation right and the use right.
2. The method of claim 1, wherein the description information of the target smart device includes an identification of the target smart device;
after sending the sharing acceptance message to the server, the method further includes:
sending a control message to the server, where the control message at least carries the first user account, the identifier of the target intelligent device, and a control operation, and the control message is used to instruct the server to control the target intelligent device to execute the control operation;
receiving a control success message or an unauthorized operation prompting message sent by the server, wherein the control success message is used for prompting that the target intelligent device is successfully controlled to execute the control operation, the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority to control the target intelligent device, and the unauthorized operation prompting message is sent when the server determines that the binding relationship between the first user account and the target intelligent device is released.
3. The method according to claim 2, wherein the control message further carries a network identifier of a wireless network currently accessed by the first terminal.
4. The method of claim 3, wherein the network identifier carried in the control message is different from the network identifier carried in the device query request.
5. The method of claim 1, wherein after sending the share accept message to the server, further comprising:
and receiving a sharing release notification message sent by the server, wherein the sharing release notification message is used for notifying that the binding relationship between the first terminal and the target intelligent device is released.
6. A device sharing method is applied to a server, and comprises the following steps:
receiving an equipment query request sent by a first terminal, wherein the equipment query request carries a network identifier of a wireless network currently accessed by the first terminal and a first user account, and the first user account is an account currently logged in by the first terminal; the network identification is the name of the wireless network;
acquiring description information of at least one intelligent device from a stored shared device information table, wherein the shared device information table is used for storing network identifiers and description information of wireless networks allowing the shared intelligent devices to access, and an account of an owner, and the network identifier of the wireless network accessed by the at least one intelligent device is the same as the network identifier carried in the device query request;
determining a smart device with an account of an owner of the at least one smart device different from the first user account as a target smart device; the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared;
acquiring description information of the target intelligent device from the shared device information table;
sending description information of the target intelligent device to the first terminal;
when a sharing acceptance message sent by the first terminal is received, binding the first user account with the target intelligent equipment; the sharing acceptance message includes description information of the device for which the first terminal needs to acquire the operation right and the use right.
7. The method according to claim 6, wherein before obtaining the description information of the at least one smart device from the stored shared device information table, the method further comprises:
receiving an equipment sharing request sent by a second terminal, wherein the equipment sharing request carries a second user account, description information of the target intelligent equipment and a network identifier of a wireless network accessed by the target intelligent equipment, and the second user account is an account of an owner of the target intelligent equipment;
and storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent device into the shared device information table.
8. The method of claim 6, wherein the description information of the target smart device includes an identification of the target smart device;
after the binding of the first user account and the target smart device, the method further includes:
receiving a control message sent by the first terminal, wherein the control message at least carries the first user account, the identifier of the target intelligent device and a control operation;
when it is determined that a binding relationship exists between the first user account and the target intelligent device according to the first user account and the identifier of the target intelligent device, controlling the target intelligent device to execute the control operation, and sending a control success message to the first terminal, wherein the control success message is used for indicating that the target intelligent device is successfully controlled to execute the control operation;
and when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, sending an unauthorized operation prompting message to the first terminal, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
9. The method according to claim 8, wherein the control message further carries a network identifier of a wireless network currently accessed by the first terminal;
before the controlling the target smart device to execute the control operation, the method further includes:
acquiring a sharing mode of the target intelligent device, wherein the sharing mode comprises a first sharing mode or a second sharing mode, the first sharing mode refers to a mode of sharing the target intelligent device under the same wireless network, and the second sharing mode refers to a mode of not limiting the network of sharing the target intelligent device;
when the sharing mode of the target intelligent 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 intelligent device, executing a step of controlling the target intelligent device to execute the control operation;
and when the sharing mode of the target intelligent equipment is the second sharing mode, directly executing the step of controlling the target intelligent equipment to execute the control operation.
10. The method of claim 6, wherein after binding the first user account with the target smart device, further comprising:
receiving a removing instruction sent by a second terminal, wherein the removing instruction carries a second user account, the identifier of the target intelligent device and the first user account;
removing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
and sending a sharing release notification message to the first terminal, wherein the sharing release notification message is used for notifying that the binding relationship between the first terminal and the target intelligent equipment is released.
11. An apparatus for sharing device, applied to a first terminal, the apparatus comprising:
the first sending module is used for sending an equipment query request to the server so that the server can acquire and return the description information of the target intelligent equipment from the stored shared equipment information table; the device query request carries a network identifier of a wireless network currently accessed by the first terminal and a first user account, the first user account is an account currently logged in by the first terminal, and the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared; the network identification is the name of the wireless network; the shared device information table is used for storing network identification and description information of wireless networks which are allowed to be shared and accessed by each intelligent device, and an account number of an owner; the target intelligent device is an intelligent device with an account of an owner different from the first user account in at least one intelligent device; the network identification of the wireless network accessed by at least one intelligent device is the same as the network identification in the device query request;
the display module is used for displaying a first prompt message when the description information of the target intelligent equipment sent by the server is received, wherein the first prompt message is used for prompting whether the target intelligent equipment is controlled by the first terminal;
a second sending module, configured to send a sharing acceptance message to the server when a confirmation operation on the first prompt message is detected, where the sharing acceptance message is used to instruct the server to bind the first user account with the target smart device; the sharing acceptance message includes description information of the device for which the first terminal needs to acquire the operation right and the use right.
12. The apparatus of claim 11, wherein the description information of the target smart device includes an identification of the target smart device;
the device further comprises:
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 identifier of the target intelligent device, and a control operation, and the control message is used to instruct the server to control the target intelligent device to execute the control operation;
the first receiving module is configured to receive a control success message or an unauthorized operation prompting message sent by the server, where the control success message is used to prompt that the target intelligent device has been successfully controlled to execute the control operation, the unauthorized operation prompting message is used to prompt that the first terminal does not have an authority to control the target intelligent device, and the unauthorized operation prompting message is sent by the server when it is determined that the binding relationship between the first user account and the target intelligent device has been released.
13. The apparatus according to claim 12, wherein the control message further carries a network identifier of a wireless network currently accessed by the first terminal.
14. The apparatus of claim 13, wherein the network identifier carried in the control message is different from the network identifier carried in the device query request.
15. The apparatus of claim 11, further comprising:
a second receiving module, configured to receive a sharing release notification message sent by the server, where the sharing release notification message is used to notify that a binding relationship between the first terminal and the target smart device has been released.
16. An apparatus for sharing a device, applied to a server, the apparatus comprising:
a first receiving module, configured to receive an equipment query request sent by a first terminal, where the equipment query request carries a network identifier of a wireless network to which the first terminal currently accesses and a first user account, and the first user account is an account to which the first terminal currently logs in; the network identification is the name of the wireless network;
the device comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring the description information of at least one intelligent device from a stored shared device information table, the shared device information table is used for storing the network identification and the description information of the wireless network to which each intelligent device allowed to be shared is accessed, and the account number of an owner, and the network identification of the wireless network to which the at least one intelligent device is accessed is the same as the network identification carried in the device query request; determining a smart device with an account of an owner of the at least one smart device different from the first user account as a target smart device; the target intelligent device is an intelligent device which is not bound with the first user account and is allowed to be shared; acquiring description information of the target intelligent device from the shared device information table;
the first sending module is used for sending the description information of the target intelligent equipment to the first terminal;
the binding module is used for binding the first user account with the target intelligent equipment when receiving a sharing acceptance message sent by the first terminal; the sharing acceptance message comprises the description information of the equipment needing to acquire the operation right and the use right.
17. The apparatus of claim 16, wherein the first obtaining module further comprises:
the receiving submodule is used for receiving an equipment sharing request sent by a second terminal, wherein the equipment sharing request carries a second user account, the description information of the target intelligent equipment and a network identifier of a wireless network accessed by the target intelligent equipment, and the second user account is an account of an owner of the target intelligent equipment;
and the storage submodule is used for storing the second user account, the description information of the target intelligent device and the network identifier of the wireless network accessed by the target intelligent device into the shared device information table.
18. The apparatus of claim 16, wherein the description information of the target smart device includes an identification of the target smart device;
the device further comprises:
a second receiving module, configured to receive a control message sent by the first terminal, where the control message at least carries the first user account, the identifier of the target intelligent device, and a control operation;
the control module is used for controlling the target intelligent device to execute the control operation and sending a control success message to the first terminal when the binding relationship between the first user account and the target intelligent device is determined according to the first user account and the identification of the target intelligent device, wherein the control success message is used for indicating that the target intelligent device is successfully controlled to execute the control operation;
and the second sending module is used for sending an unauthorized operation prompting message to the first terminal when the binding relationship between the first user account and the target intelligent device is determined to be released according to the first user account and the identification of the target intelligent device, wherein the unauthorized operation prompting message is used for prompting that the first terminal does not have the authority for controlling the target intelligent device.
19. The apparatus according to claim 18, wherein the control message further carries a network identifier of a wireless network to which the first terminal currently accesses;
the device further comprises:
a second obtaining module, configured to obtain a sharing mode of the target smart device, where the sharing mode includes a first sharing mode or a second sharing mode, the first sharing mode refers to a mode in which the target smart device is shared under the same wireless network, and the second sharing mode refers to a mode in which a network sharing the target smart device is not limited;
a first triggering module, configured to trigger the control module to control the target intelligent device to execute the control operation when the sharing mode of the target intelligent device is the first sharing mode and a network identifier carried in the control message is the same as a network identifier of a wireless network to which the target intelligent device accesses;
and the second triggering module is used for directly triggering the control module to control the target intelligent device to execute the control operation when the sharing mode of the target intelligent device is the second sharing mode.
20. The apparatus of claim 16, further comprising:
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;
the release module is used for releasing the binding relationship between the first user account and the target intelligent equipment according to the second user account and the identification of the target intelligent equipment;
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 is released.
21. An apparatus for sharing a device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any one of claims 1-5.
22. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-5.
23. An apparatus for sharing a device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any one of claims 6-10.
24. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 6-10.
CN201810524886.8A 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium Active CN108809968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810524886.8A CN108809968B (en) 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810524886.8A CN108809968B (en) 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108809968A CN108809968A (en) 2018-11-13
CN108809968B true CN108809968B (en) 2021-05-04

Family

ID=64090624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810524886.8A Active CN108809968B (en) 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108809968B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110011884B (en) * 2019-04-01 2022-01-11 宁波奥克斯电气股份有限公司 Distribution network progress display method and device and air conditioner
CN110166439B (en) * 2019-04-23 2021-07-23 维沃移动通信有限公司 Equipment sharing 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
CN111181903B (en) * 2019-06-04 2021-08-17 腾讯科技(深圳)有限公司 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
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
CN111162975B (en) * 2019-12-19 2021-09-21 华为技术有限公司 Method for managing intelligent equipment, mobile terminal and communication system
CN111404788A (en) * 2020-03-09 2020-07-10 维沃移动通信有限公司 Equipment sharing method and server
CN111885594B (en) * 2020-06-30 2024-03-22 海尔优家智能科技(北京)有限公司 Equipment binding method and device
CN112419026B (en) * 2020-11-25 2022-11-01 浪潮软件科技有限公司 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
CN113011943A (en) * 2021-03-11 2021-06-22 北京骑胜科技有限公司 Interaction method, interaction system, storage medium and electronic device
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
CN114726664B (en) * 2022-03-23 2023-10-27 青岛海信智慧生活科技股份有限公司 Binding method and binding equipment for household equipment
WO2023184559A1 (en) * 2022-04-02 2023-10-05 Oppo广东移动通信有限公司 Device sharing method and apparatus, and device, storage medium and program product
CN115129194A (en) * 2022-05-24 2022-09-30 武汉擎朗智能科技有限公司 Cleaning robot sharing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141360A (en) * 2007-09-14 2008-03-12 四川长虹电器股份有限公司 Equipment management and control method of family network
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309308B (en) * 2013-05-17 2016-08-10 华为技术有限公司 A kind of device intelligence control method and device, system, PnP device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141360A (en) * 2007-09-14 2008-03-12 四川长虹电器股份有限公司 Equipment management and control method of family network
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

Also Published As

Publication number Publication date
CN108809968A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108809968B (en) Equipment sharing method, device and storage medium
CN108810861B (en) Connection method and device of intelligent equipment and storage medium
US10291713B2 (en) Smart device control method and apparatus
JP6186508B2 (en) Network connection method and terminal
EP3136793B1 (en) Method and apparatus for awakening electronic device
CN107948926B (en) Intelligent device sharing method and device
US20170064182A1 (en) Method and device for acquiring image file
KR101732559B1 (en) Methodsdevices system program and recording medium for accessing network
CN106385351B (en) Control method and device of intelligent household equipment
KR101684814B1 (en) Method, apparatus, program and recording medium for accessing wi-fi network
EP3145124A1 (en) Method and device for releasing connection
US9954691B2 (en) Method and apparatus for binding intelligent device
EP3745747A1 (en) Method and apparatus for controlling electronic device
CN109314913B (en) Access control limiting method and device
WO2020097845A1 (en) Method and device for using network slice
CN107071862B (en) Account number binding method and device and intelligent equipment
CN109644457B (en) Resource allocation method and device
CN108173744B (en) Information processing method and device
CN108848484B (en) Equipment sharing method, device and storage medium
WO2020132868A1 (en) Direct-connection resource configuration method and apparatus
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
CN106507282B (en) Wireless connection control method and device
US20170019482A1 (en) Method and apparatus for downloading control program
CN109525966B (en) Intelligent device query method and device and storage medium
CN109040651B (en) Video communication method and device

Legal Events

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