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

Equipment sharing method, device and storage medium Download PDF

Info

Publication number
CN108848484B
CN108848484B CN201810523514.3A CN201810523514A CN108848484B CN 108848484 B CN108848484 B CN 108848484B CN 201810523514 A CN201810523514 A CN 201810523514A CN 108848484 B CN108848484 B CN 108848484B
Authority
CN
China
Prior art keywords
terminal
target
sharing
bluetooth
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810523514.3A
Other languages
Chinese (zh)
Other versions
CN108848484A (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 CN201810523514.3A priority Critical patent/CN108848484B/en
Publication of CN108848484A publication Critical patent/CN108848484A/en
Application granted granted Critical
Publication of CN108848484B publication Critical patent/CN108848484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

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: when the sharing operation aiming at least two target intelligent devices is detected, a sharing data packet is generated according to the description information of the at least two target intelligent devices, the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a currently logged-in user account. And broadcasting the shared data packet through the Bluetooth, and establishing Bluetooth connection with the second terminal when receiving a Bluetooth connection request sent by the second terminal, so as to share the at least two target intelligent devices to the second terminal. Therefore, under the condition of not needing data network consumption, the sharing of the equipment is realized through the Bluetooth, the sharing mode of the equipment is enriched, the operation process is simplified, the sharing efficiency of the equipment is improved, the operation cost and the understanding cost of a user are reduced, and the error rate of adding a second user account is reduced.

Description

Equipment sharing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a device sharing method, apparatus, and 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 owner of the smart device may be referred to as a first user, and the other users may be referred to as second users.
At present, when a first user shares a self intelligent device with a second user, the first user may input a second user account in a device sharing interface of a first terminal, so that the first terminal may send a sharing notification to the second terminal through a server, where the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user. The sharing notification may be displayed when the second terminal receives the sharing notification, and a confirmation sharing operation may be triggered on the second terminal if the second user accepts the sharing. At this time, the second terminal may transmit a share acceptance message to the server. When the server receives the sharing acceptance message, the second user account can be bound with the intelligent device, so that the second user obtains the use right and the operation right of the intelligent device.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides 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:
when the sharing operation aiming at least two target intelligent devices is detected, generating a sharing data packet according to the description information of the at least two target intelligent devices;
the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account currently logged in by the first terminal;
broadcasting the shared data packet through Bluetooth;
and when a Bluetooth connection request sent by a second terminal is received, establishing Bluetooth connection with the second terminal so as to share the at least two target intelligent devices to the second terminal.
Optionally, before generating a shared data packet according to the description information of the at least two target smart devices when the sharing operation for the at least two target smart devices is detected, the method further includes:
displaying an equipment information editing interface, wherein the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with the first user account;
when a selection operation of at least two smart devices of the plurality of smart devices is detected, the at least two smart devices selected by the selection operation are determined as the at least two target smart devices.
Optionally, the method further comprises:
displaying a sharing management interface, wherein the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
when detecting a blacklist adding operation aiming at a target terminal, adding the target terminal into a blacklist according to Bluetooth information of the target terminal, wherein the target terminal is any one of the plurality of terminals;
optionally, the broadcasting the shared data packet via bluetooth includes:
and broadcasting the sharing data packet to terminals except the blacklist through Bluetooth.
Optionally, the plurality of terminals include terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices.
Optionally, the method further comprises:
and displaying a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating that the second terminal receives the sharing of the at least two target intelligent devices and currently establishes the Bluetooth connection with the first terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a device sharing method applied to a second terminal, the method including:
the method comprises the steps that a sharing data packet broadcasted by a first terminal is obtained through Bluetooth scanning, wherein the sharing data packet comprises description information of at least two target intelligent devices;
displaying a sharing prompt message, wherein the sharing prompt message is used for prompting whether the second terminal controls the at least two target intelligent devices or not;
when the confirmation operation of the sharing prompt message is detected, sending a Bluetooth connection request to the first terminal so as to establish Bluetooth connection with the first terminal;
and when the Bluetooth connection with the first terminal is successfully established, sending an information binding request to a server, wherein the information binding request carries the description information of the at least two target intelligent devices and the second user account, and the information binding request is used for indicating the server to bind the at least two target intelligent devices and the second user account.
Optionally, after the sending the information binding request to the server, the method further includes:
and displaying the description information of the at least two target intelligent devices in a device information interface, wherein the device information interface is used for displaying the description information of the controllable intelligent devices.
Optionally, after the sending the information binding request to the server, the method further includes:
sending a control message to the server, where the control message at least carries the second user account, the identifier of any one of the at least two target smart devices, and a control operation, and the control message is used to instruct the server to control the any one of the target smart devices to execute the control operation;
and receiving a control success message sent by the server, wherein the control success message is used for prompting that the target intelligent equipment is successfully controlled to execute the control operation.
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:
the generation module is used for generating a sharing data packet according to the description information of at least two target intelligent devices when the sharing operation aiming at the at least two target intelligent devices is detected;
the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account currently logged in by the first terminal;
the broadcast module is used for broadcasting the shared data packet through Bluetooth;
and the connection establishing module is used for establishing Bluetooth connection with the second terminal when a Bluetooth connection request sent by the second terminal is received so as to share the at least two target intelligent devices to the second terminal.
Optionally, the apparatus further comprises:
the first display module is used for displaying an equipment information editing interface, and the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with the first user account;
a determining module, configured to, when a selection operation of at least two smart devices of the plurality of smart devices is detected, determine the at least two smart devices selected by the selection operation as the at least two target smart devices.
Optionally, the apparatus further comprises:
the second display module is used for displaying a sharing management interface, and the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
the adding module is used for adding a target terminal into a blacklist according to Bluetooth information of the target terminal when a blacklist adding operation aiming at the target terminal is detected, wherein the target terminal is any one of the plurality of terminals;
the broadcast module is mainly used for broadcasting the shared data packet to terminals except the blacklist through Bluetooth.
Optionally, the plurality of terminals include terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices.
Optionally, the apparatus further comprises:
and the third display module is used for displaying a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating that the second terminal receives the sharing of the at least two target intelligent devices and currently establishes the Bluetooth connection with the first terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing a device, which is applied to a second terminal, the apparatus including:
the acquisition module is used for acquiring a shared data packet broadcasted by a first terminal through Bluetooth scanning, wherein the shared data packet comprises description information of at least two target intelligent devices;
the first display module is used for displaying a sharing prompt message, and the sharing prompt message is used for prompting whether the at least two target intelligent devices are controlled through the second terminal;
a first sending module, configured to send a bluetooth connection request to the first terminal to establish a bluetooth connection with the first terminal when a confirmation operation of the sharing prompt message is detected;
and the second sending module is used for sending an information binding request to a server when the Bluetooth connection between the first terminal and the server is successfully established, wherein the information binding request carries the description information of the at least two target intelligent devices and the second user account, and the information binding request is used for indicating the server to bind the at least two target intelligent devices and the second user account.
Optionally, the apparatus further comprises:
and the second display module is used for displaying the description information of the at least two target intelligent devices in an equipment information interface, and the equipment information interface is used for displaying the description information of the controllable intelligent devices.
Optionally, the apparatus further comprises:
a third sending module, configured to send a control message to the server, where the control message at least carries the second user account, an identifier of any one of the at least two target smart devices, and a control operation, and the control message is used to instruct the server to control the any one of the at least two target smart devices to execute the control operation;
and the receiving module is used for receiving a control success message sent by the server, wherein the control success message is used for prompting that the target intelligent equipment is successfully controlled to execute the control operation.
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: when the first terminal detects the sharing operation aiming at least two target intelligent devices, a sharing data packet is generated according to the description information of the at least two target intelligent devices. Because the at least two target intelligent devices are the at least two intelligent devices bound with the first user account, and the first user account is the user account currently logged in by the first terminal, after the first terminal broadcasts the sharing data packet through bluetooth, when a bluetooth connection request sent by the second terminal is received, bluetooth connection between the first terminal and the second terminal can be established, and the at least two target intelligent devices are shared to the second terminal. That is, the first terminal can realize batch sharing of the intelligent device through the Bluetooth without data network consumption, and the device sharing mode is enriched. And the owner of the intelligent device can realize device sharing without appointing and adding second user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and understanding cost of the user, and reducing the error rate of adding the second user accounts. In addition, the second user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
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 diagram illustrating a device information editing interface in accordance with an illustrative embodiment;
FIG. 6 is a diagram illustrating a sharing management interface in accordance with an exemplary embodiment;
FIG. 7 is a schematic illustration of a blacklist management interface shown according to an exemplary embodiment;
FIG. 8 is a diagram illustrating a wait for discovery alert message display interface in accordance with an exemplary embodiment;
FIG. 9 is a schematic diagram illustrating a shared alert message display interface in accordance with an exemplary embodiment;
FIG. 10 is a schematic diagram illustrating a connection prompt message display interface in accordance with an illustrative embodiment;
FIG. 11 is a schematic diagram illustrating a connection progress prompt message display interface in accordance with an illustrative embodiment;
FIG. 12 is a schematic diagram illustrating a connection success alert message display interface in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating an apparatus for device sharing in accordance with an exemplary embodiment;
FIG. 14 is a block diagram illustrating 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;
fig. 16 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 is corresponding to the first user, and the first user is 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 second user, and the second user is the other user except the owner of the intelligent device. 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 first user can also give the second user with the intelligent equipment sharing of oneself through first terminal remote control intelligent equipment. At present, when a first user shares an intelligent device with a second user, a second user account needs to be manually input in a device sharing interface of a first terminal, then, the first terminal sends a sharing notification to the second terminal through a server, the second terminal can display the sharing notification to the second user after receiving the sharing notification, and if the second user accepts sharing, a sharing operation can be triggered and confirmed on the second terminal. At this time, the second terminal may transmit a share acceptance message to the server. When the server receives the sharing acceptance message, the second user account can be bound with the intelligent device, so that the second user obtains the use right and the operation right of the intelligent device. However, the device sharing method is single, and the device sharing method consumes a large amount of network resources, and is high in cost and slow in sharing speed. In addition, when a first user wants to share his/her own smart device to multiple second users, multiple second user accounts need to be added in multiple times, and sharing notifications are sent to multiple second terminals in multiple times, which results in low device sharing efficiency, complex operation process, high cost, and easy error. And because the second user account is appointed by the second user, the sharing range of the intelligent equipment 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 second terminal 102 can communicate through Bluetooth technology, and the second terminal 102 and the server 103 can communicate through wired or wireless connection. When detecting a sharing operation for at least two target intelligent devices, the first terminal 101 may generate a sharing data packet according to the description information of the at least two target intelligent devices, then broadcast the sharing data packet through bluetooth, and when receiving a bluetooth connection request sent by the second terminal 102, establish a bluetooth connection with the second terminal 102, and further share the at least two target intelligent devices to the second terminal 102. When the bluetooth connection between the first terminal 101 and the second terminal 102 is successfully established, the second terminal 102 may send an information binding request to the server 103, and since the information binding request carries the description information of the at least two target smart devices and the second user account, when the server 103 receives the information binding request, the at least two target smart devices and the second user account may be bound, thereby implementing bluetooth sharing of the smart devices.
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, when a sharing operation for at least two target smart devices is detected, a sharing data packet is generated according to the description information of the at least two target smart devices.
The at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account where the first terminal currently logs in.
In step 202, the shared data packet is broadcast via bluetooth.
In step 203, when a bluetooth connection request sent by the second terminal is received, a bluetooth connection with the second terminal is established to share the at least two target smart devices to the second terminal.
In the embodiment of the present disclosure, when the first terminal detects a sharing operation for at least two target smart devices, a sharing data packet is generated according to the description information of the at least two target smart devices. Because the at least two target intelligent devices are the at least two intelligent devices bound with the first user account, and the first user account is the user account currently logged in by the first terminal, after the first terminal broadcasts the sharing data packet through bluetooth, when a bluetooth connection request sent by the second terminal is received, bluetooth connection between the first terminal and the second terminal can be established, and the at least two target intelligent devices are shared to the second terminal. That is, the first terminal can realize batch sharing of the intelligent device through the Bluetooth without data network consumption, and the device sharing mode is enriched. And the owner of the intelligent device can realize device sharing without appointing and adding second user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and understanding cost of the user, and reducing the error rate of adding the first user account. In addition, the first user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
Optionally, when a sharing operation for at least two target smart devices is detected, before generating a shared data packet according to the description information of the at least two target smart devices, the method further includes:
displaying an equipment information editing interface, wherein the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with a first user account;
when a selection operation of at least two intelligent devices in the plurality of intelligent devices is detected, the at least two intelligent devices selected by the selection operation are determined as at least two target intelligent devices.
Optionally, the method further comprises:
displaying a sharing management interface, wherein the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
when detecting the blacklist adding operation aiming at the target terminal, adding the target terminal into the blacklist according to the Bluetooth information of the target terminal, wherein the target terminal is any one of a plurality of terminals;
optionally, broadcasting the shared data packet via bluetooth includes:
and broadcasting the sharing data packet to the terminals except the blacklist through the Bluetooth.
Optionally, the plurality of terminals include terminals that do not share at least two target smart devices and/or terminals that share at least two target smart devices.
Optionally, the method further comprises:
and in the process of establishing Bluetooth connection with the second terminal, displaying a connection prompt message, wherein the connection prompt message is used for indicating that the second terminal receives sharing of at least two target intelligent devices and currently establishes Bluetooth connection with the first terminal.
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 second terminal according to an exemplary embodiment. As shown in fig. 3, the method includes the following steps.
In step 301, a shared data packet broadcasted by the first terminal is obtained through bluetooth scanning, where the shared data packet includes description information of at least two target smart devices.
In step 302, a sharing prompt message is displayed, where the sharing prompt message is used to prompt whether to control at least two target smart devices through the second terminal.
In step 303, when the confirmation operation of the sharing prompt message is detected, a bluetooth connection request is sent to the first terminal to establish a bluetooth connection with the first terminal.
In step 304, when the bluetooth connection with the first terminal is successfully established, an information binding request is sent to the server, where the information binding request carries description information of at least two target smart devices and a second user account, and the information binding request is used to instruct the server to bind the at least two target smart devices with the second user account.
In the embodiment of the disclosure, the second terminal scans and acquires the shared data packet broadcast by the first terminal through bluetooth. Since the shared data packet includes the description information of at least two target intelligent devices, after the second terminal acquires the shared data packet, the sharing prompt message can be displayed. Since the sharing prompt message is used for prompting whether to control at least two target intelligent devices through the second terminal, when the second terminal detects the confirmation operation of the sharing prompt message, the second terminal can send a bluetooth connection request to the first terminal, and then the bluetooth connection between the second terminal and the first terminal is established. Further, the second terminal may transmit an information binding request to the server when the bluetooth connection with the first terminal is successfully established. Since the information binding request carries the description information of the at least two target intelligent devices and the second user account, when the server receives the information binding request, the at least two target intelligent devices and the second user account can be bound, so that device sharing is achieved. Therefore, under the condition that data network consumption is not needed, the first terminal realizes batch sharing of the intelligent equipment through Bluetooth, and equipment sharing modes are enriched. And the owner of the intelligent device can realize device sharing without appointing and adding second user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and understanding cost of the user, and reducing the error rate of adding the first user account. In addition, the first user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
Optionally, after sending the information binding request to the server, the method further includes:
and displaying the description information of at least two target intelligent devices in a device information interface, wherein the device information interface is used for displaying the description information of the controllable intelligent devices.
Optionally, after sending the information binding request to the server, the method further includes:
sending a control message to a server, wherein the control message at least carries a second user account, an identifier of any one of at least two target intelligent devices and a control operation, and the control message is used for indicating the server to control any one target intelligent device to execute the control operation;
and receiving a control success message sent by the server, wherein the control success message is used for prompting the intelligent device which is successfully controlled to execute the control operation.
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, when the first terminal detects a sharing operation for at least two target smart devices, a sharing data packet is generated according to the description information of the at least two target smart devices.
It should be noted that the intelligent device includes, but is not limited to, intelligent kettles, intelligent bedside lamps, intelligent flower and plant detectors, and other intelligent devices including a bluetooth module. The embodiments of the present disclosure are not limited thereto.
In addition, the at least two target intelligent devices are at least two intelligent devices bound with the first user account, and the first user account is a user account which is currently logged in by the first terminal. The description information of the target smart device is used to describe the target smart device and includes, but is not limited to, information such as device icon, device name, device model, etc.
Optionally, before the first terminal detects the sharing operation of the at least two target smart devices, the at least two target smart devices may also be determined from the smart devices bound to the first user account. Wherein the process of determining the at least two target smart devices may be: the first terminal displays an equipment information editing interface, and the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with the first user account. When the first terminal detects the selection operation of at least two intelligent devices in the plurality of intelligent devices, the at least two intelligent devices selected by the selection operation are determined as at least two target intelligent devices.
Furthermore, because the at least two target intelligent devices are the at least two intelligent devices bound with the first user account, and the first user account is a user account currently logged in by the first terminal, the first terminal can acquire the description information of the at least two target intelligent devices. In this way, when the first terminal detects a sharing operation for the at least two target smart devices, a sharing data packet may be generated according to the description information of the at least two target smart devices.
For example, the first terminal detects the sharing operation of six target smart machines, and these six target smart machines are intelligent air purifier, intelligent ceiling lamp, intelligent bedside lamp, intelligent machine of sweeping the floor, intelligent desk lamp and intelligent bulb respectively. In this way, the first terminal may display a device information editing interface as shown in fig. 5, in which a prompt message of "drag added device to adjust order" and a "share device" option are displayed. When the first user clicks the "share device" option, it may be determined that the first user needs to share the six target smart devices to the second user, and at this time, the first terminal may determine that the sharing operation for the six target smart devices is detected. Of course, names and icons of the six target intelligent devices can be displayed in the device information editing interface, each target intelligent device is further provided with a selection option, the first user can select one part of the six target intelligent devices to share the target intelligent devices with the second user, and if the three target intelligent devices, namely the intelligent air purifier, the intelligent ceiling lamp and the intelligent bedside lamp, are selected, then the sharing device option is clicked. At this time, the first terminal may determine that the sharing operation for the three target smart devices is detected, and may further determine that the first user only needs to share the selected three target smart devices to the second user. In addition, the equipment information editing interface can also display an option of adding equipment and an option of deleting equipment, so that the first user can add equipment which is allowed to be shared to the second user in the equipment information editing interface and can delete the existing equipment in the equipment information editing interface, and the first user can conveniently edit the equipment.
It should be noted that, determining at least two target smart devices through the device information editing interface is only one possible implementation manner of the present disclosure, and in practical applications, at least two target smart devices may also be determined through other manners. For example, the smart device that is bound to the first user account but not shared is determined as the target smart device, that is, the smart device that is newly bound to the first user account is determined as the target smart device.
In step 402, the first terminal broadcasts the shared data packet via bluetooth.
It should be noted that the first terminal broadcast is in the form of a scannable non-directional broadcast, so that all other terminals that turn on the bluetooth function can scan the shared data packet being broadcast by the first terminal. The shared data packet comprises description information of at least two target intelligent devices.
Optionally, a blacklist may be further set in the embodiment of the present disclosure, where the blacklist stores a terminal that does not have the receiving permission of the shared data packet, that is, the terminal located in the blacklist does not have the permission to receive the shared data packet broadcasted by the first terminal through bluetooth. In this way, when the first terminal broadcasts the shared data packet through bluetooth, it can be considered that the first terminal broadcasts the shared data packet to terminals other than the blacklist through bluetooth.
In one possible implementation, the first terminal may display a shared management interface including bluetooth information of a plurality of terminals that are currently connectable. When the first terminal detects a blacklist adding operation aiming at the target terminal, the target terminal is added into the blacklist according to the Bluetooth information of the target terminal, and the target terminal is any one of the plurality of terminals. In this way, currently connectable terminals can be added to the black list. However, the first terminal may also remove the terminal in the blacklist, that is, re-acquire the right to receive the shared data packet, and the implementation process may be: and displaying a blacklist management interface, wherein the blacklist management interface comprises the Bluetooth information of the terminal in the blacklist, and when the first terminal detects the blacklist removal operation aiming at the target terminal, the target terminal can be removed from the blacklist according to the Bluetooth information of the target terminal, so that the target terminal can acquire the permission of receiving the shared data packet again.
It should be noted that the plurality of terminals include terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices. In addition, the bluetooth information may be a bluetooth address or a bluetooth name of the bluetooth device.
For example, the bluetooth names of the terminals not sharing the at least two target smart devices are aa, D5x, D8:63:75: BE:8D: D4 and E4, respectively, and the bluetooth names of the terminals sharing the at least two target smart devices are cell phone 1, cell phone 2, cell phone 3 and cell phone 4, respectively. So that the first terminal can display a sharing management interface as shown in fig. 6, for convenience of understanding, the terminal not sharing the at least two target smart devices is called a nearby bluetooth device, the terminal sharing the at least two target smart devices is called a joined sharing bluetooth device, so that aa, D5x, D8:63:75: BE:8D: D4 and E4 nearby bluetooth devices, and several joined sharing bluetooth devices of the mobile phone 1, the mobile phone 2, the mobile phone 3 and the mobile phone 4 are displayed in the sharing management interface, and the bluetooth name of each bluetooth device is further provided with a "joined blacklist" option, taking the bluetooth devices with bluetooth names of E4 and mobile phone 2 as examples, the first user can sequentially click on the "joined blacklist" option corresponding to E4 and the "joined blacklist" option corresponding to mobile phone 2, and join the bluetooth devices corresponding to E4 and mobile phone 2 into the blacklist, so that the bluetooth device corresponding to E4 and handset 2 will not scan for the shared data packet broadcast by the first terminal.
In addition, a "share blacklist" option is also displayed in the share management interface, and when the first user clicks the "share blacklist" option, the information of the bluetooth device that has been added to the blacklist can be seen, that is, the blacklist management interface shown in fig. 7 is displayed. For example, when the first user adds several bluetooth devices aa, d5x, E4, the mobile phone 2 and the mobile phone 4 to the blacklist, several bluetooth devices aa, d5x, E4, the mobile phone 2 and the mobile phone 4 may be displayed in the blacklist management interface, and the bluetooth name of each bluetooth device is further provided with a "remove blacklist" option, and when the first user clicks the "remove blacklist" option with the bluetooth name of the mobile phone 2, the first terminal may remove the bluetooth device with the bluetooth name of the mobile phone 2 from the blacklist, so that the bluetooth device with the bluetooth name of the mobile phone 2 may scan the shared data packet broadcast by the first terminal.
Further, in the process that the first terminal broadcasts the shared data packet through the bluetooth, in order to inform the first user whether the second terminal capable of scanning the shared data packet exists currently, the first terminal may further display a prompt interface for a message waiting for discovery.
For example, the nickname of the first user account may be captain q, so that the first terminal may display a prompt message display interface for waiting for discovery as shown in fig. 8, in which a prompt message of "waiting for discovery" is displayed, a prompt message of "waiting for discovery, please keep bluetooth of the mobile phone on" is displayed in the prompt message display interface for waiting for discovery, and a "complete" option. The prompt message of 'please keep the mobile phone bluetooth on in the process of waiting for discovery' is used for reminding the first user that the intelligent equipment which needs to be shared by the second user currently waits for discovery, and please not turn off the mobile phone bluetooth so as to avoid interrupting the broadcast of the first terminal. When the first user clicks the 'finish' option, a broadcast stop instruction can be triggered, and when the first terminal detects the broadcast stop instruction, the first terminal stops broadcasting the shared data packet through the Bluetooth, so that the second terminal cannot scan the shared data packet, and the first terminal cannot establish Bluetooth connection with the second terminal. In addition, the prompt message display interface for the waiting discovery also displays a prompt message of ' CaptainQ ' intelligent device ', and the first user can know what the nickname of the intelligent device currently required to be shared to the second user is according to the prompt message.
In step 403, after the second terminal scans and acquires the shared data packet broadcast by the first terminal through bluetooth, a sharing prompt message is displayed, where the sharing prompt message is used to prompt whether to control the at least two target smart devices through the second terminal.
It should be noted that, because the shared prompt message is used to prompt whether to control the at least two target intelligent devices through the second terminal, the shared prompt message may include description information of the at least two target intelligent devices, so that a user can know which devices the at least two target intelligent devices are specifically.
For example, the target smart device includes three smart devices, namely, a smart air purifier, a smart ceiling lamp, and a smart bedside lamp, and the nickname of the first user account may be CaptainQ. In this way, the second terminal may display a share prompt message display interface as shown in fig. 9, in which a share prompt message of "find smart device being shared" and a "connect" option are displayed. When the second user clicks the "connect" option, it may be determined that the second user needs to acquire the operation rights and the use rights of the three pieces of smart devices, and at this time, the second terminal may determine that the confirmation operation on the sharing prompt message is detected. Certainly, names and icons of the three pieces of intelligent equipment can be displayed in the sharing prompt message, each piece of intelligent equipment is also provided with a selection option, and the second user can select a part of equipment needing to acquire the operation right and the use right from the three pieces of intelligent equipment and then click the connection option. At this time, it may be determined that the second user only needs to acquire the operation right and the use right of some of the three smart devices, and the second terminal may determine that the confirmation operation of the sharing alert message is detected. In addition, the sharing prompt message display interface also displays a prompt message of ' CaptainQ ' intelligent device ', and the second user can know who the owner of the sharing intelligent device is according to the prompt message.
In step 404, when the second terminal detects the confirmation operation of the sharing prompt message, a bluetooth connection request is sent to the first terminal.
Since the second user can obtain the operation right and the use right of all the devices in the at least two target intelligent devices, the operation right and the use right of some devices in the at least two target intelligent devices can also be obtained. Therefore, in a possible implementation manner, the at least two target smart devices may be taken as a whole, that is, when the second terminal detects the confirmation operation of the sharing prompt message, it indicates that the operation rights and the use rights of all devices in the at least two target smart devices need to be obtained currently, and at this time, the bluetooth connection request sent to the first terminal may not carry other information. In another possible implementation manner, at least two target smart devices are not taken as a whole, that is, when the second terminal detects a confirmation operation on the sharing prompt message, a device corresponding to the description information carried in the confirmation operation may be determined as a device for which the second terminal currently needs to acquire the operation right and the usage right, and at this time, the bluetooth connection request sent to the first terminal 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 second user from the sharing prompt message.
In step 405, when the first terminal receives the bluetooth connection request sent by the second terminal, the bluetooth connection with the second terminal is established.
As can be seen from the above description, the bluetooth connection request sent by the second terminal to the first terminal may not carry other information, but may also carry description information of a device that needs to acquire the operation right and the usage right, so in a possible implementation manner, when the first terminal receives the bluetooth connection request sent by the second terminal and determines that the bluetooth connection request does not carry other information, the bluetooth connection with the second terminal may be established. In another possible implementation manner, when the first terminal receives a bluetooth connection request sent by the second terminal and determines that the bluetooth connection request carries description information of a device that needs to acquire the operation right and the usage right, the device corresponding to the description information carried in the bluetooth connection request may be determined as a device that needs to acquire the operation right and the usage right at present by the second terminal, and a bluetooth connection with the second terminal is established.
Further, when the first terminal receives the bluetooth connection request sent by the second terminal, it indicates that the second user has currently accepted the smart device shared by the first user through the second terminal. The first terminal can display a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating that the second terminal receives the sharing of the at least two target intelligent devices and currently establishes the Bluetooth connection with the first terminal.
For example, the second user account is 7654321, and the second user's nickname is xiaxin. In this way, the first terminal may display a connection prompting message display interface as shown in fig. 10, in which besides the prompting message of "waiting for discovery", the prompting message of "waiting for discovery, please keep the bluetooth of the mobile phone on" and the "complete" option shown in fig. 8, a nickname of the second user account and the second user, and the connection prompting message of "connecting in progress" are displayed, and the user may know that the second user, which is currently xiaoxinxin, is performing bluetooth connection with the first terminal through the second terminal according to the connection prompting message.
Further, in the process that the first terminal establishes the bluetooth connection with the second terminal, the second terminal may display a connection progress prompting message in order to inform the second user of the current connection progress.
Continuing with the example of fig. 9 above, the target smart devices for which the second user wants to obtain the operation rights and the usage rights include three smart devices, namely, a smart air purifier, a smart ceiling lamp, and a smart bedside lamp. When the bluetooth connection is established between the second terminal and the first terminal, the first terminal may display a connection progress prompting message display interface as shown in fig. 11, where a connection progress prompting message is displayed in the connection progress prompting message display interface, and the connection progress prompting message includes description information of the smart device currently being connected, that is, an icon and a name of the smart air purifier, and a current connection progress "in connection, please establish the bluetooth connection later (1/3)", that is, currently establishing the bluetooth connection with the first smart device among the three smart devices.
In step 406, when the bluetooth connection between the second terminal and the first terminal is successfully established, an information binding request is sent to the server, where the information binding request carries the description information of the at least two target smart devices and the second user account.
It should be noted that, after the bluetooth connection between the second terminal and the first terminal is successfully established, the second terminal may add the at least two target intelligent devices to the second user account according to the description information of the at least two target intelligent devices, that is, the first terminal may transmit the description information of the at least two target intelligent devices to the second terminal without consuming network data. However, the second terminal still cannot control the at least two target smart devices after adding the at least two target smart devices to the second user account. Therefore, in order to control the at least two target smart devices, the second terminal may further send an information binding request to the server, and after the server binds the at least two target smart devices with the second user account, the second terminal may control the at least two target smart devices, that is, the second terminal has the operation rights and the use rights of the at least two target smart devices.
Further, when the bluetooth connection between the second terminal and the first terminal is successfully established, a connection success prompt message display interface may be displayed to prompt that the bluetooth connection with the first terminal is currently established. For example, as shown in fig. 12, a connection success prompting message, "complete" option, and description information of the smart device that successfully establishes the bluetooth connection with the first terminal are displayed in the connection success prompting message display interface.
In step 407, when the server receives the information binding request sent by the second terminal, the server binds the at least two target intelligent devices and the second user account according to the description information of the at least two target intelligent devices and the second user account carried in the information binding request.
Since the information binding request carries the description information of the at least two target intelligent devices and the second user account, when the server receives the information binding request sent by the second terminal, the at least two target intelligent devices and the second user account can be bound. In a possible implementation manner, the server may correspondingly store the second user account and the description information of the at least two target smart devices, so as to implement the binding between the second user account and the at least two target smart devices.
For example, the second user account is an account 11, the description information of the at least two target smart devices is description information 1, description information 2, and description information 3, respectively, and the server may store the correspondence between the second user account and the description information of the at least two target smart devices in a correspondence table shown in table 1 below.
TABLE 1
Figure BDA0001675438240000181
In the embodiments of the present disclosure, only the correspondence table shown in table 1 is used as an example, and table 1 does not limit the embodiments of the present disclosure.
Further, after the server binds the at least two target smart devices with the second user account, a binding success message may be sent to the second terminal. In this way, when the second terminal receives the binding success message sent by the server, the description information of the at least two target intelligent devices and the control options capable of controlling the at least two target intelligent devices may be displayed in a device information interface, where the device information interface is used to display the description information of the controllable intelligent devices. In this way, when the second user needs to control the at least two target smart devices, one option may be selected from the displayed control options, that is, a control instruction to any one of the at least two target smart devices may be triggered.
In step 408, the second terminal sends a control message to the server, where the control message at least carries the second user account, the identifier of any one of the at least two target smart devices, and the control operation.
It should be noted that the Identifier of any target smart device may be at least a MAC (Medium Access Control) address of the device or a UUID (Universally Unique Identifier) of the device, and since the MAC address or the UUID are both Universally Unique identifiers, the target smart device may be uniquely determined by the MAC address of the device or the UUID of the device. The MAC address of the device or the UUID of the device may be carried in a shared data packet broadcast by the first terminal through bluetooth, so that after the second terminal scans and acquires the shared data packet broadcast by the first terminal through bluetooth, the shared data packet may be analyzed, and the MAC address of the device or the UUID of the device may be acquired from the analyzed shared data packet.
In addition, the control operation carried in the control message is an operation executed by the second terminal to control any one of the at least two target smart devices, for example, taking the target 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 embodiment of the disclosure.
In step 409, when the server receives the control message sent by the second terminal, according to the second user account carried in the control message, the identifier of any one of the at least two target intelligent devices, and the control operation, controlling the any one target intelligent device to execute the control operation, and sending a control success message to the second terminal.
Since the control message carries the identifier of any one of the at least two target intelligent devices, when receiving the control message sent by the second terminal, the server can determine which intelligent device the second terminal currently controls according to the control message, and further control the intelligent device the second terminal currently controls to execute the control operation.
In step 410, the second terminal receives a control success message sent by the server, where the control success message is used to prompt the target smart device that has been successfully controlled to perform the control operation.
Since the control success message is used to prompt the intelligent device that has successfully controlled the target to execute the control operation, when the second terminal receives the control success message sent by the server, the control success message can be displayed, and the second user can determine that the intelligent device that has successfully controlled the target executes the corresponding control operation according to the control success message.
In the embodiment of the disclosure, when the first terminal detects a sharing operation for at least two target smart devices, a sharing data packet is generated according to the description information of the at least two target smart devices, and the sharing data packet is broadcasted through bluetooth. Since the shared data packet includes the description information of the at least two target smart devices, after the second terminal scans and acquires the shared data packet through bluetooth, the shared prompt message may be displayed, and since the shared prompt message is used to prompt whether to control the at least two target smart devices through the second terminal, when the second terminal detects a confirmation operation on the shared prompt message, the bluetooth connection request may be sent to the first terminal. And when the first terminal receives the Bluetooth connection request, establishing Bluetooth connection with the second terminal. And then, the second terminal may send an information binding request to the server, and since the information binding request carries the description information of the at least two target intelligent devices and the second user account, when the server receives the information binding request sent by the second terminal, the at least two target intelligent devices and the second user account may be bound, so that the operation right and the use right of the at least two target intelligent devices are shared to the second terminal. Therefore, under the condition that data network consumption is not needed, the first terminal realizes batch sharing of the intelligent equipment through Bluetooth, and equipment sharing modes are enriched. And the owner of the intelligent device can realize device sharing without appointing and adding other user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and the understanding cost of the user, and reducing the error rate of adding the first user account. In addition, the first user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
Furthermore, after the binding operation is completed, the second terminal may send a control message to the server, and since the control message at least carries the second user account, the identifier of any one of the at least two target smart devices, and the control operation, when the server receives the control message sent by the second terminal, the server may control any one of the at least two target smart devices to execute the control operation according to the second user account carried in the control message, the identifier of any one of the at least two target smart devices, and the control operation, and send a control success message to the second terminal. And the second terminal receives a control success message sent by the server, wherein the control success message is used for prompting the intelligent device which is successfully controlled to execute the control operation. When the second user executes the use right and the operation right of the target intelligent device through the second terminal, only simple click operation needs to be carried out on the interface of the second terminal, so that the operation process is simplified, and the operation cost and the understanding cost of the user are reduced. In addition, the second user can execute the use right and the operation right of the target intelligent device through the second terminal only by performing simple clicking operation on the interface of the second terminal, so that the application range of the intelligent device is expanded.
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 generation module 1301, a broadcasting module 1302, and a connection establishment module 1303.
A generating module 1301, configured to generate a shared data packet according to description information of at least two target smart devices when a sharing operation for the at least two target smart devices is detected;
the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account currently logged in by the first terminal;
a broadcasting module 1302, configured to broadcast the shared data packet via bluetooth;
the connection establishing module 1303 is configured to establish a bluetooth connection with the second terminal when receiving a bluetooth connection request sent by the second terminal, so as to share the at least two target smart devices with the second terminal.
Optionally, the apparatus further comprises:
the first display module is used for displaying an equipment information editing interface, and the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with the first user account;
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining at least two intelligent devices selected by the selecting operation as at least two target intelligent devices when the selecting operation of at least two intelligent devices in the plurality of intelligent devices is detected.
Optionally, the apparatus further comprises:
the second display module is used for displaying a sharing management interface, and the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
the adding module is used for adding the target terminal into the blacklist according to the Bluetooth information of the target terminal when detecting the blacklist adding operation aiming at the target terminal, wherein the target terminal is any one of the plurality of terminals;
and the broadcasting module is mainly used for broadcasting the shared data packet to the terminals except the blacklist through the Bluetooth.
Optionally, the plurality of terminals include terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices.
Optionally, the apparatus further comprises:
and the third display module is used for displaying a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating the second terminal to accept the sharing of the at least two target intelligent devices and currently establishing the Bluetooth connection with the first terminal.
In the embodiment of the present disclosure, when the first terminal detects a sharing operation for at least two target smart devices, a sharing data packet is generated according to the description information of the at least two target smart devices. Because the at least two target intelligent devices are the at least two intelligent devices bound with the first user account, and the first user account is the user account currently logged in by the first terminal, after the first terminal broadcasts the sharing data packet through bluetooth, when a bluetooth connection request sent by the second terminal is received, bluetooth connection between the first terminal and the second terminal can be established, and the at least two target intelligent devices are shared to the second terminal. That is, the first terminal can realize the sharing of the intelligent device through the Bluetooth under the condition of not needing the consumption of the data network, and the device sharing mode is enriched. And the owner of the intelligent device can realize device sharing without appointing and adding second user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and understanding cost of the user, and reducing the error rate of adding the first user account. In addition, the first user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
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 according to an example embodiment. Referring to fig. 14, the apparatus includes an acquisition module 1401, a first display module 1402, a first transmission module 1403, and a second transmission module 1404.
An obtaining module 1401, configured to obtain, through bluetooth scanning, a shared data packet broadcasted by a first terminal, where the shared data packet includes description information of at least two target smart devices;
a first display module 1402, configured to display a sharing prompt message, where the sharing prompt message is used to prompt whether to control at least two target smart devices through a second terminal;
a first sending module 1403, configured to send a bluetooth connection request to the first terminal to establish a bluetooth connection with the first terminal when a confirmation operation of the sharing prompt message is detected;
a second sending module 1404, configured to send an information binding request to the server when the bluetooth connection with the first terminal is successfully established, where the information binding request carries description information of the at least two target smart devices and a second user account, and the information binding request is used to instruct the server to bind the at least two target smart devices and the second user account.
Optionally, the apparatus further comprises:
the second display module is used for displaying the description information of at least two target intelligent devices in a device information interface, and the device information interface is used for displaying the description information of the controllable intelligent devices.
Optionally, the apparatus further comprises:
a third sending module, configured to send a control message to the server, where the control message at least carries a second user account, an identifier of any one of the at least two target smart devices, and a control operation, and the control message is used to instruct the server to control the any one of the at least two target smart devices to execute the control operation;
and the receiving module is used for receiving a control success message sent by the server, wherein the control success message is used for prompting that the target intelligent equipment is successfully controlled to execute the control operation.
In the embodiment of the disclosure, the second terminal scans and acquires the shared data packet broadcast by the first terminal through bluetooth. Since the shared data packet includes the description information of at least two target intelligent devices, after the second terminal acquires the shared data packet, the sharing prompt message can be displayed. Since the sharing prompt message is used for prompting whether to control at least two target intelligent devices through the second terminal, when the second terminal detects the confirmation operation of the sharing prompt message, the second terminal can send a bluetooth connection request to the first terminal, and then the bluetooth connection between the second terminal and the first terminal is established. Further, the second terminal may transmit an information binding request to the server when the bluetooth connection with the first terminal is successfully established. Since the information binding request carries the description information of the at least two target intelligent devices and the second user account, when the server receives the information binding request, the at least two target intelligent devices and the second user account can be bound, so that device sharing is achieved. Therefore, under the condition that data network consumption is not needed, the first terminal realizes batch sharing of the intelligent equipment through Bluetooth, and equipment sharing modes are enriched. And the owner of the intelligent device can realize device sharing without appointing and adding second user accounts one by one, thereby simplifying the operation process, improving the device sharing efficiency, reducing the operation cost and understanding cost of the user, and reducing the error rate of adding the first user account. In addition, the first user account is not limited to the owner designation, so that the sharing range of the intelligent device is expanded.
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. 15 is a block diagram illustrating a device sharing apparatus 1500 according to an example embodiment. For example, the apparatus 1500 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. 15, apparatus 1500 may include one or more of the following components: processing components 1502, memory 1504, power components 1507, multimedia components 1508, audio components 1510, input/output (I/O) interfaces 1512, sensor components 1514, and communication components 1517.
The processing component 1502 generally controls overall operation of the device 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1502 may include one or more processors 1520 executing instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1502 may include one or more modules that facilitate interaction between processing component 1502 and other components. For example, processing component 1502 may include a multimedia module to facilitate interaction between multimedia component 1508 and processing component 1502.
The memory 1504 is configured to store various types of data to support operations at the apparatus 1500. Examples of such data include instructions for any application or method operating on the device 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1504 may be implemented by any type or combination of volatile or non-volatile memory 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 1507 provides power to the various components of the device 1500. The power components 1507 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1500.
The multimedia component 1508 includes a screen that provides an output interface between the device 1500 and a 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, multimedia component 1508 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 apparatus 1500 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 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1504 or transmitted via the communication component 1517. In some embodiments, audio component 1510 also includes a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can 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 assembly 1514 includes one or more sensors for providing status assessment of various aspects of the apparatus 1500. For example, the sensor assembly 1514 can detect an open/closed state of the device 1500, the relative positioning of components, such as a display and keypad of the device 1500, the sensor assembly 1514 can also detect a change in position of the device 1500 or a component of the device 1500, the presence or absence of user contact with the device 1500, orientation or acceleration/deceleration of the device 1500, and a change in temperature of the device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1517 is configured to facilitate wired or wireless communication between the apparatus 1500 and other devices. The apparatus 1500 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 1517 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1517 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 1500 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 any of the embodiments of fig. 2-4 described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1504 comprising instructions, executable by the processor 1520 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 mobile terminal, enable the mobile terminal to perform the device sharing method provided in any one of the embodiments of fig. 2 to 4.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the device sharing method provided in any of the embodiments of fig. 2 to 4 above.
Fig. 16 is a block diagram illustrating a device sharing apparatus 1600 according to an example embodiment. For example, the apparatus 1600 may be provided as a server. Referring to fig. 16, the apparatus 1600 includes a processor 1622, which further includes one or more processors, and memory resources, represented by memory 1632, for storing instructions, such as applications, that are executable by the processor 1622. The application programs stored in memory 1632 may include one or more modules that each correspond to a set of instructions. Further, the processor 1622 is configured to execute instructions to perform the methods provided by the embodiment illustrated in fig. 4 and described above.
The apparatus 1600 may also include a power component 1626 configured to perform power management for the apparatus 1600, a wired or wireless network interface 1650 configured to connect the apparatus 1600 to a network, and an input/output (I/O) interface 1658. The apparatus 1600 may operate based on an operating system stored in the memory 1632, 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 1632 comprising instructions, executable by the processor 1622 of the apparatus 1600 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. 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 by the embodiment of fig. 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 (14)

1. A device sharing method is applied to a first terminal, and comprises the following steps:
displaying an equipment information editing interface, wherein the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with a first user account;
when a selection operation of at least two intelligent devices in the plurality of intelligent devices is detected, determining the at least two intelligent devices selected by the selection operation as the at least two target intelligent devices;
when the sharing operation aiming at least two target intelligent devices is detected, generating a sharing data packet according to the description information of the at least two target intelligent devices;
the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account currently logged in by the first terminal;
displaying a sharing management interface, wherein the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
when detecting a blacklist adding operation aiming at a target terminal, adding the target terminal into a blacklist according to Bluetooth information of the target terminal, wherein the target terminal is any one of the plurality of terminals;
displaying a blacklist management interface, wherein the blacklist management interface comprises Bluetooth information of terminals located in the blacklist;
when detecting the operation of removing the blacklist aiming at the target terminal, removing the target terminal from the blacklist according to the Bluetooth information of the target terminal;
broadcasting the sharing data packet to terminals except the blacklist through Bluetooth;
when a Bluetooth connection request sent by a second terminal is received, establishing Bluetooth connection with the second terminal so as to share the at least two target intelligent devices to the second terminal;
and displaying a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating that the second terminal receives the sharing of the at least two target intelligent devices and currently establishes the Bluetooth connection with the first terminal.
2. The method according to claim 1, wherein the plurality of terminals include terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices.
3. A device sharing method is applied to a second terminal, and comprises the following steps:
the method comprises the steps that a shared data packet broadcasted by a first terminal is obtained through Bluetooth scanning, the shared data packet comprises description information of at least two target intelligent devices, the first terminal is used for displaying a device information editing interface, the device information editing interface comprises description information of a plurality of intelligent devices bound with a first user account, and when selection operation of at least two of the intelligent devices is detected, the at least two intelligent devices selected through the selection operation are determined to be the at least two target intelligent devices; the first terminal is further configured to display a sharing management interface, where the sharing management interface includes bluetooth information of multiple terminals that can be currently connected, and when detecting a blacklist joining operation for a target terminal, add the target terminal to a blacklist according to the bluetooth information of the target terminal, where the target terminal is any one of the multiple terminals, and displays a blacklist management interface, and the blacklist management interface includes bluetooth information of terminals located in the blacklist; the first terminal is used for removing the target terminal from the blacklist according to the Bluetooth information of the target terminal when detecting the operation of removing the blacklist aiming at the target terminal, and broadcasting the shared data packet to the terminals except the blacklist through Bluetooth;
displaying a sharing prompt message, wherein the sharing prompt message is used for prompting whether the second terminal controls the at least two target intelligent devices or not;
when the confirmation operation of the sharing prompt message is detected, sending a Bluetooth connection request to the first terminal to establish Bluetooth connection with the first terminal, wherein the first terminal is used for displaying a connection prompt message in the process of establishing the Bluetooth connection with the first terminal, and the connection prompt message is used for indicating the second terminal to accept the sharing of the at least two target intelligent devices and currently establishing the Bluetooth connection with the first terminal;
and when the Bluetooth connection with the first terminal is successfully established, sending an information binding request to a server, wherein the information binding request carries the description information of the at least two target intelligent devices and a second user account, and the information binding request is used for indicating the server to bind the at least two target intelligent devices and the second user account.
4. The method of claim 3, wherein after sending the information binding request to the server, further comprising:
and displaying the description information of the at least two target intelligent devices in a device information interface, wherein the device information interface is used for displaying the description information of the controllable intelligent devices.
5. The method of claim 3, wherein after sending the information binding request to the server, further comprising:
sending a control message to the server, where the control message at least carries the second user account, the identifier of any one of the at least two target smart devices, and a control operation, and the control message is used to instruct the server to control the any one of the target smart devices to execute the control operation;
and receiving a control success message sent by the server, wherein the control success message is used for prompting that the target intelligent equipment is successfully controlled to execute the control operation.
6. An apparatus for sharing device, applied to a first terminal, the apparatus comprising:
the first display module is used for displaying an equipment information editing interface, and the equipment information editing interface comprises description information of a plurality of intelligent equipment bound with a first user account;
a determining module, configured to, when a selection operation on at least two smart devices of the plurality of smart devices is detected, determine the at least two smart devices selected by the selection operation as the at least two target smart devices;
the generation module is used for generating a sharing data packet according to the description information of at least two target intelligent devices when the sharing operation aiming at the at least two target intelligent devices is detected;
the at least two target intelligent devices are at least two intelligent devices bound with a first user account, and the first user account is a user account currently logged in by the first terminal;
the second display module is used for displaying a sharing management interface, and the sharing management interface comprises Bluetooth information of a plurality of terminals which can be connected currently;
the second display module is further used for displaying a blacklist management interface, wherein the blacklist management interface comprises Bluetooth information of terminals located in the blacklist;
the adding module is used for adding a target terminal into a blacklist according to Bluetooth information of the target terminal when a blacklist adding operation aiming at the target terminal is detected, wherein the target terminal is any one of the plurality of terminals;
the removing module is used for removing the target terminal from the blacklist according to the Bluetooth information of the target terminal when the blacklist removing operation aiming at the target terminal is detected;
the broadcast module is mainly used for broadcasting the shared data packet to terminals except the blacklist through Bluetooth;
the connection establishing module is used for establishing Bluetooth connection with a second terminal when a Bluetooth connection request sent by the second terminal is received so as to share the at least two target intelligent devices to the second terminal;
and the third display module is used for displaying a connection prompt message in the process of establishing the Bluetooth connection with the second terminal, wherein the connection prompt message is used for indicating that the second terminal receives the sharing of the at least two target intelligent devices and currently establishes the Bluetooth connection with the first terminal.
7. The apparatus of claim 6, wherein the plurality of terminals comprise terminals that do not share the at least two target smart devices and/or terminals that share the at least two target smart devices.
8. An apparatus for sharing device, applied to a second terminal, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a shared data packet broadcasted by a first terminal through Bluetooth scanning, the shared data packet comprises description information of at least two target intelligent devices, the first terminal is used for displaying a device information editing interface, the device information editing interface comprises description information of a plurality of intelligent devices bound with a first user account, and when the selection operation of at least two of the plurality of intelligent devices is detected, the at least two intelligent devices selected by the selection operation are determined as the at least two target intelligent devices; the first terminal is further configured to display a sharing management interface, where the sharing management interface includes bluetooth information of multiple terminals that can be currently connected, and when detecting a blacklist joining operation for a target terminal, add the target terminal to a blacklist according to the bluetooth information of the target terminal, where the target terminal is any one of the multiple terminals, and displays a blacklist management interface, and the blacklist management interface includes bluetooth information of terminals located in the blacklist; the first terminal is used for removing the target terminal from the blacklist according to the Bluetooth information of the target terminal when detecting the operation of removing the blacklist aiming at the target terminal, and broadcasting the shared data packet to the terminals except the blacklist through Bluetooth;
the first display module is used for displaying a sharing prompt message, and the sharing prompt message is used for prompting whether the at least two target intelligent devices are controlled through the second terminal;
a first sending module, configured to send a bluetooth connection request to the first terminal to establish a bluetooth connection with the first terminal when a confirmation operation on the sharing prompt message is detected, where the first terminal is configured to display a connection prompt message in a process of establishing the bluetooth connection with the first terminal, and the connection prompt message is used to instruct the second terminal to accept sharing of the at least two target smart devices and currently establish the bluetooth connection with the first terminal;
and the second sending module is used for sending an information binding request to a server when the Bluetooth connection between the first terminal and the server is successfully established, wherein the information binding request carries the description information of the at least two target intelligent devices and a second user account, and the information binding request is used for indicating the server to bind the at least two target intelligent devices and the second user account.
9. The apparatus of claim 8, further comprising:
and the second display module is used for displaying the description information of the at least two target intelligent devices in an equipment information interface, and the equipment information interface is used for displaying the description information of the controllable intelligent devices.
10. The apparatus of claim 8, further comprising:
a third sending module, configured to send a control message to the server, where the control message at least carries the second user account, an identifier of any one of the at least two target smart devices, and a control operation, and the control message is used to instruct the server to control the any one of the at least two target smart devices to execute the control operation;
and the receiving module is used for receiving a control success message sent by the server, wherein the control success message is used for prompting that the target intelligent equipment is successfully controlled to execute the control operation.
11. 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 claim 1 or 2.
12. A computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of claim 1 or 2.
13. 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 of claims 3-5.
14. 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 3-5.
CN201810523514.3A 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium Active CN108848484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810523514.3A CN108848484B (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
CN201810523514.3A CN108848484B (en) 2018-05-28 2018-05-28 Equipment sharing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108848484A CN108848484A (en) 2018-11-20
CN108848484B true CN108848484B (en) 2021-10-26

Family

ID=64207906

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN108848484B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862399A (en) * 2019-12-30 2020-10-30 北京骑胜科技有限公司 Unlocking request generation method and device and electronic equipment
CN111464990B (en) * 2020-03-31 2021-10-22 联想(北京)有限公司 Information processing method and first device
CN115730343A (en) * 2021-08-31 2023-03-03 荣耀终端有限公司 Method and device for sharing equipment
WO2023184559A1 (en) * 2022-04-02 2023-10-05 Oppo广东移动通信有限公司 Device sharing method and apparatus, and device, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735057A (en) * 2015-02-13 2015-06-24 小米科技有限责任公司 Sharing device control right method and device
CN106357653A (en) * 2016-09-27 2017-01-25 深圳市欧瑞博电子有限公司 Control authority sharing method and system
CN106878120A (en) * 2017-03-14 2017-06-20 青岛海信电器股份有限公司 Device management method and device
CN107517438A (en) * 2017-09-01 2017-12-26 北京地平线机器人技术研发有限公司 Bluetooth electronic devices and its sharing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102183856B1 (en) * 2013-12-20 2020-11-30 삼성전자주식회사 Terminal and Method for sharing content thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735057A (en) * 2015-02-13 2015-06-24 小米科技有限责任公司 Sharing device control right method and device
CN106357653A (en) * 2016-09-27 2017-01-25 深圳市欧瑞博电子有限公司 Control authority sharing method and system
CN106878120A (en) * 2017-03-14 2017-06-20 青岛海信电器股份有限公司 Device management method and device
CN107517438A (en) * 2017-09-01 2017-12-26 北京地平线机器人技术研发有限公司 Bluetooth electronic devices and its sharing method

Also Published As

Publication number Publication date
CN108848484A (en) 2018-11-20

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
CN108520746B (en) Method and device for controlling intelligent equipment through voice and storage medium
EP3136793B1 (en) Method and apparatus for awakening electronic device
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
EP3133851B1 (en) Method and device for acquiring using authority
CN108848484B (en) Equipment sharing method, device and storage medium
WO2016192326A1 (en) Cloud business card transmission method and device
JP2017525067A (en) Method, apparatus, system, program and recording medium for managing control relationship between account and device
CN106385351B (en) Control method and device of intelligent household equipment
JP2016522477A (en) Group creation method, group withdrawal method, apparatus, program, and recording medium
WO2020097845A1 (en) Method and device for using network slice
JP2017531891A (en) Remote assistance method, client, program, and recording medium
WO2020097783A1 (en) Resource configuration method and device
JP2017531974A (en) Network connection method, device, system, program, and recording medium
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
WO2020132868A1 (en) Direct-connection resource configuration method and apparatus
CN112905089B (en) Equipment control method and device
EP3826228A1 (en) Broadcasting and discovering methods, broadcasting and discovering devices and storage medium
EP3565374A1 (en) Region configuration method and device
US20170019482A1 (en) Method and apparatus for downloading control program
CN109525966B (en) Intelligent device query method and device and storage medium
CN106292316B (en) Working mode switching method and device
CN111010721A (en) Wireless network distribution method, wireless network distribution device and computer readable storage medium

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