CN114785541B - Binding method and device of equipment, electronic equipment and storage medium - Google Patents

Binding method and device of equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114785541B
CN114785541B CN202210231617.9A CN202210231617A CN114785541B CN 114785541 B CN114785541 B CN 114785541B CN 202210231617 A CN202210231617 A CN 202210231617A CN 114785541 B CN114785541 B CN 114785541B
Authority
CN
China
Prior art keywords
target equipment
target
current user
equipment
binding
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
CN202210231617.9A
Other languages
Chinese (zh)
Other versions
CN114785541A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210231617.9A priority Critical patent/CN114785541B/en
Publication of CN114785541A publication Critical patent/CN114785541A/en
Application granted granted Critical
Publication of CN114785541B publication Critical patent/CN114785541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a binding method and device of equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a general broadcast sent by target equipment; wherein the generic broadcast reports at least status information of the target device; determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment; if the target equipment is determined to be in a to-be-bound and unconfigured state, acquiring Bluetooth signal strength connected with the target equipment; determining whether the permission of operating the target equipment exists or not according to the Bluetooth signal strength connected with the target equipment; if the permission of operating the target equipment is determined, binding the target equipment with a current user; and transmitting the unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user.

Description

Binding method and device of equipment, electronic equipment and storage medium
Technical Field
The application relates to the technical field of smart home, in particular to a binding method and device of equipment, electronic equipment and a storage medium.
Background
With the continuous development of smart home, all the current home appliances can be controlled by mobile phones and the like. In order to avoid that any user can control the device, when the control of the home appliance is realized, the user and the device are usually required to be bound in advance.
Currently, a user and a device are bound, mainly the user logs in through a device such as a mobile phone, then the mobile phone and home appliances needing to be bound are connected to the same router, namely the same wireless network, and then the binding is performed through the wireless network.
However, this method can only be used when the wireless network is installed, so when the wireless network is not installed by the user, the binding between the user and the home appliance cannot be realized timely.
Disclosure of Invention
Based on the defects of the prior art, the application provides a binding method and device of equipment, electronic equipment and a storage medium, so as to solve the problem that the prior art cannot ensure that the binding of a user and household appliances can be realized in time.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the present application provides a binding method for a device, including:
receiving a general broadcast sent by target equipment; wherein the generic broadcast reports at least status information of the target device;
determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment;
if the target equipment is determined to be in a to-be-bound and unconfigured state, acquiring Bluetooth signal strength connected with the target equipment;
determining whether the permission of operating the target equipment exists or not according to the Bluetooth signal strength connected with the target equipment;
if the permission of operating the target equipment is determined, binding the target equipment with a current user;
and transmitting the unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user.
Optionally, in the above method for binding a device, before the binding the target device with the current user, the method further includes:
when the current user is registered, if the current user is a main user, a main user registration request is sent to a cloud background to trigger the cloud background to register for the current user and generate a unique identification code corresponding to the current user;
receiving a unique identification code corresponding to the current user returned by the cloud background;
if the current user is a home user, a home user registration request containing a unique identification code corresponding to a main user of the current user is sent to the cloud background, so that the cloud background is triggered to register for the current user, and the unique identification code corresponding to the main user in the home user registration request is determined to be the unique identification code corresponding to the current user.
Optionally, in the above binding method of a device, the determining whether there is a right to operate the target device according to a bluetooth signal strength of a connection with the target device includes:
judging whether the Bluetooth signal strength connected with the target equipment is larger than a target preset threshold value or not; if the Bluetooth signal strength of the target equipment connection is judged to be greater than the target preset threshold, determining that the permission of operating the target equipment exists; and if the Bluetooth signal strength of the target equipment connection is not greater than the target preset threshold, determining that the permission of operating the target equipment is not available.
Optionally, in the above binding method of a device, the method further includes:
if the permission of operating the target equipment is not determined, a prompt message is fed back to the current user; the prompt message is at least used for prompting that the target equipment is not authorized to be operated.
Optionally, in the above method for binding devices, before determining whether the bluetooth signal strength of the target device connection is greater than a target preset threshold, the method further includes:
acquiring the type of the target device from the general broadcast;
and determining a preset threshold corresponding to the type of the target equipment as a target preset threshold.
Optionally, in the above method for binding a device, after the sending the unique identifier corresponding to the current user to the target device, triggering the target device to update the general broadcast by using the unique identifier corresponding to the current user further includes:
and after the wireless network is connected, configuring information of the wireless network for the target equipment so as to connect the target equipment with the wireless network.
Optionally, in the above method for binding a device, after the wireless network is connected, configuring information of the wireless network for the target device, so as to connect the target device with the wireless network, the method further includes:
sending the binding relation between the target equipment and the current user to a cloud background;
and responding to the control operation of the current user on the target equipment, sending a control instruction to the cloud background so as to send the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user, and controlling the target equipment.
A second aspect of the present application provides a binding apparatus for a device, including:
a first receiving unit, configured to receive a general broadcast sent by a target device; wherein the generic broadcast reports at least status information of the target device;
the state determining unit is used for determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment;
the signal strength acquisition unit is used for acquiring Bluetooth signal strength connected with the target equipment when the target equipment is determined to be in a to-be-bound and unconfigured state;
a permission determination unit for determining whether to have permission to operate the target device according to the bluetooth signal strength connected with the target device;
the binding unit is used for binding the target equipment with the current user if the permission of operating the target equipment is determined;
and the first sending unit is used for sending the unique identification code corresponding to the current user to the target equipment and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user.
Optionally, in the binding apparatus of the device, the binding apparatus further includes:
the second sending unit is used for sending a main user registration request to a cloud background if the current user is a main user when the current user is registered, so as to trigger the cloud background to register for the current user and generate a unique identification code corresponding to the current user;
the second generation unit is used for receiving the unique identification code corresponding to the current user returned by the cloud background;
and the third sending unit is used for sending a home user registration request containing a unique identification code corresponding to a main user of the current user to the cloud background when the current user is a home user, triggering the cloud background to register for the current user, and determining the unique identification code corresponding to the main user in the home user registration request as the unique identification code corresponding to the current user.
Optionally, in the binding apparatus of the device, the right determining unit includes:
the judging unit is used for judging whether the Bluetooth signal strength connected with the target equipment is larger than a target preset threshold value or not;
the first determining unit is used for determining that the permission of operating the target equipment exists when the Bluetooth signal strength of the target equipment connection is larger than the target preset threshold value;
and the second determining unit is used for determining that the permission of operating the target equipment is not available when judging that the Bluetooth signal strength of the target equipment connection is not greater than the target preset threshold value.
Optionally, in the binding apparatus of the device, the binding apparatus further includes:
if the permission of operating the target equipment is not determined, a prompt message is fed back to the current user; the prompt message is at least used for prompting that the target equipment is not authorized to be operated.
Optionally, in the binding apparatus of the device, the binding apparatus further includes:
a type acquisition unit configured to acquire a type of the target device from the general broadcast;
and the threshold value determining unit is used for determining a preset threshold value corresponding to the type of the target equipment as a target preset threshold value.
Optionally, in the binding apparatus of the device, the binding apparatus further includes:
and the configuration unit is used for configuring the information of the wireless network for the target equipment after the wireless network is connected so as to connect the target equipment with the wireless network.
Optionally, in the binding apparatus of the device, the binding apparatus further includes:
the fourth sending unit is used for sending the binding relation between the target equipment and the current user to a cloud background;
the control unit is used for responding to the control operation of the current user on the target equipment, sending a control instruction to the cloud background, and sending the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user to control the target equipment.
A third aspect of the present application provides an electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, where the program is executed, and specifically configured to implement a binding method of a device according to any one of the foregoing claims.
A fourth aspect of the present application provides a computer storage medium storing a computer program for implementing a binding method of a device as claimed in any one of the preceding claims when executed.
The application provides a binding method of equipment, which is used for receiving general broadcasting sent by target equipment; wherein the generic broadcast reports at least the status information of the target device. And then determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment. And acquiring the Bluetooth signal intensity connected with the target equipment when the target equipment is determined to be in the to-be-bound and unconfigured state, and determining whether the permission of operating the target equipment exists or not according to the Bluetooth signal intensity connected with the target equipment. If the permission of operating the target equipment is determined, binding the target equipment with the current user, and finally sending a unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user, so that the binding of the user and the equipment is realized based on Bluetooth, a wireless network is not required to be connected, and the binding of the user and the equipment can be guaranteed to be realized in time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flow chart of a binding method of a device according to an embodiment of the present application;
fig. 2 is a flowchart of a method for determining a unique identifier corresponding to a user according to an embodiment of the present application;
FIG. 3 is a flow chart diagram of another method of binding devices provided in accordance with another embodiment of the present application;
fig. 4 is a schematic structural diagram of a binding apparatus of a device according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a rights determining unit according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a binding method of equipment, as shown in fig. 1, comprising the following steps:
s101, receiving a general broadcast sent by the target device, wherein the general broadcast at least reports the state information of the target device.
In this embodiment, after the target device is started, the target device may send its universal broadcast through bluetooth. The general broadcast includes, in addition to the status information of the target device, other basic information of the target device, such as a device number. Therefore, when the user needs to bind with the target equipment, the target equipment can be started, and then the information broadcasted by the target equipment is received by the electronic equipment such as a mobile phone or a tablet personal computer.
S102, determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment.
Specifically, after receiving the general broadcast of the target device, the general broadcast of the target device is parsed to obtain the state information of the target device, and whether the target device is in a to-be-bound and unconfigured state is determined according to the state information of the target device. If it is determined that the target device is in the to-be-bound and unconfigured state, it indicates that the target device is not used yet, and binding can be performed, and configuration is performed after binding, so step S103 is performed at this time. If the target device is determined not to be bound or not to be in an unconfigured state, the device is bound, even configured, and no binding is needed. Alternatively, the user may be prompted at this point that the target device is bound.
S103, acquiring Bluetooth signal strength connected with the target device.
It should be noted that, in order to avoid connecting to other devices, even devices of other people, so as to bind other devices, and also avoid binding configuration of other people to their own devices, in this embodiment of the present application, whether the permission to operate the target device is provided is determined by bluetooth signal strength (RSSI) connected to the target device.
Specifically, after the client device performs bluetooth connection with the target device, the bluetooth signal strength connected with the target device can be obtained.
S104, determining whether the permission of operating the target equipment exists or not according to the Bluetooth signal strength connected with the target equipment.
It should be noted that, if a device belongs to a certain user, the distance between the device and the client device may be very close to the user, so the bluetooth signal strength of the connection between the client device and the target device may be relatively strong. In the embodiment of the application, it is determined whether the permission to operate the target device is available according to the bluetooth signal strength of the connection with the target device. Therefore, when the user needs to bind with the device, in order to ensure that the device is determined to have the right to operate the target device, the user should bring the client device into possible proximity with the device to be bound.
If it is determined that the operation target device has the authority, step S105 is executed. If it is determined that the permission to operate the target device is available, the target device cannot be bound, and at this time, optionally, a prompt may be given to the user to determine whether the user is far away from the target device or connected to a device other than the user.
Optionally, in an embodiment of the present application, a specific implementation manner of step S104 includes:
and judging whether the Bluetooth signal strength connected with the target equipment is larger than a target preset threshold value.
And if the Bluetooth signal strength of the connection of the target equipment is larger than the target preset threshold, determining that the permission of operating the target equipment exists. And if the Bluetooth signal strength of the target equipment connection is not larger than the target preset threshold value, determining that the permission of operating the target equipment is not available.
Of course, the above is only one alternative, and other ways may be adopted, for example, when considering factors such as environment, which affect the bluetooth signal strength between devices, and it may be further considered that, based on the bluetooth signal strength of the connection with the target device, the ranking among all the connected devices, or the bluetooth connection strength of the bluetooth signal strength of the connection with the target device, the bluetooth connection strength of other devices, etc., whether the permission of operating the target device is provided or not is determined.
S105, binding the target device with the current user.
The current user refers to a user logged on a client device which is currently connected with the target device for binding.
Specifically, the basic information of the target device and the basic information such as the unique identification code corresponding to the current user can be bound to obtain a binding relationship between the basic information and the unique identification code, and the binding relationship can be uploaded to the cloud end, so that the follow-up cloud end background can conveniently realize remote control of the current user on the target device based on the binding relationship.
Since the unique identification code corresponding to the user is required at the time of binding, the unique identification code corresponding to the user is also determined before step S105 is performed. Therefore, optionally, in another embodiment of the present application, before performing step S105, a manner of determining the unique identification code corresponding to the user is further performed, specifically as shown in fig. 2, including:
s201, when the previous user is registered, judging whether the current user is a main user or not.
In the embodiment of the application, when the user logs in the client and registers, the unique identification code corresponding to the user is determined for the user. It should be noted that, since one device is often controlled by multiple members in a home, in the embodiment of the present application, each member shares a corresponding unique identification code, so that each member can control the target device through the unique identification code.
In the embodiment of the application, only the unique identification code is generated for the main user, and other members in the family can only directly share the unique identification code when registering. Therefore, when the current user registers, it is necessary to determine whether the current user is the master user.
Alternatively, when the current user registers, whether to register with the main user identity is selected, so that whether the current user is the main user can be determined. Of course, it may also be determined whether the current user is the primary user according to whether the current user has a unique identification code to be shared when registering, or in other manners.
If it is determined that the current user is the primary user, step S202 is performed. If it is determined that the current user is not the home user, step S204 is executed.
S202, a main user registration request is sent to a cloud background to trigger the cloud background to register for the current user and generate a unique identification code corresponding to the current user.
It should be noted that, the generated unique identification code corresponding to the current user may be shared for other users to use.
S203, receiving a unique identification code corresponding to the current user returned by the cloud background.
S204, sending a home user registration request containing a unique identification code corresponding to a main user of the current user to the cloud end background, triggering the cloud end background to register for the current user, and determining the unique identification code corresponding to the main user in the home user registration request as the unique identification code corresponding to the current user.
In the embodiment of the present application, when registering, the home user needs to carry the unique identification code corresponding to the master user that needs to be shared.
And S106, transmitting the unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by using the unique identification code corresponding to the current user.
After the client device binds the information of the current user and the target device, the unique identification code corresponding to the current user is required to be sent to the target device, so that the target device is triggered to update the universal broadcast by using the unique identification code corresponding to the current user, and the target device only responds to the operation of the user corresponding to the unique identification code, and the final binding is completed.
Specifically, the target device updates the unique identification code corresponding to the current user into the universal broadcast, and sets unbound state information in the universal broadcast as bound.
According to the binding method of the device, the universal broadcast sent by the target device is received; wherein the generic broadcast reports at least the status information of the target device. And then determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment. And acquiring the Bluetooth signal strength connected with the target equipment when the target equipment is determined to be in a to-be-bound and unconfigured state, and determining whether the permission of operating the target equipment exists according to the Bluetooth signal strength connected with the target equipment. If the permission of operating the target equipment is determined, binding the target equipment with the current user, and finally sending a unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user, so that the binding of the user and the equipment is realized based on Bluetooth, a wireless network is not required to be connected, and the binding of the user and the equipment can be guaranteed to be realized in time.
Another embodiment of the present application provides another binding method of a device, as shown in fig. 3, including the following steps:
s301, receiving a general broadcast sent by the target device, wherein the general broadcast at least reports the state information of the target device.
It should be noted that, in the specific implementation manner of step S301, reference may be made to step S101 in the above method embodiment, which is not described herein.
S302, determining whether the target device is in a to-be-bound and unconfigured state according to the state information of the target device.
If it is determined that the target device is in the to-be-bound and unconfigured state, step S303 is executed.
It should be noted that, in the specific implementation manner of step S302, reference may be made to step S102 in the above method embodiment, which is not described herein.
S303, acquiring the Bluetooth signal strength of the connection with the target device.
It should be noted that, in the specific implementation manner of step S303, reference may be made to step S103 in the above method embodiment, which is not described herein.
S304, the type of the target device is obtained from the general broadcast.
In the embodiment of the application, the general broadcast further includes basic information of the target device, where the basic information includes at least a type of the target device.
It should be noted that, in the embodiment of the present application, whether the permission to operate the target device is provided is determined by comparing the bluetooth signal front level connected with the target device with a preset threshold value. While different types of devices may differ in their bluetooth signal strengths, so that the right to operate the target device is used in order to be able to make a more ready determination, it is necessary in the present application to acquire the type of target device from the general broadcast first, and then to perform step S305.
S305, determining a preset threshold corresponding to the type of the target equipment as a target preset threshold.
It should be noted that, corresponding preset thresholds are set in advance according to the bluetooth signal strength characteristics of different device types, so that the preset threshold corresponding to the type of the target device can be determined from the set preset thresholds, and the preset threshold is used as the target preset threshold.
S306, judging whether the Bluetooth signal strength of the target equipment connection is larger than a target preset threshold value.
If it is determined that the bluetooth signal strength of the target device connection is not greater than the target preset threshold, step S307 is performed. If it is determined that the bluetooth signal strength of the target device connection is greater than the target preset threshold, step S309 is performed.
S307, it is determined that the operation target device is not authorized.
S308, feeding back prompt information to the current user.
The prompting information is at least used for prompting that the user does not have the authority to operate the target device, and of course, the prompting information can also be used for prompting the user to reduce the distance between the user and the target device or confirming whether the target device belongs to the device of the user or not.
S309, determining the authority of the operation target device.
S310, binding the target device with the current user.
It should be noted that, in the specific implementation manner of step S310, reference may be made to step S105 in the above method embodiment correspondingly, and details are not repeated here.
And S311, transmitting the unique identification code corresponding to the current user to the target device, and triggering the target device to update the universal broadcast by using the unique identification code corresponding to the current user.
It should be noted that, in the specific implementation manner of step S311, reference may be made to step S106 in the above method embodiment, which is not described herein.
S312, after the wireless network is connected, configuring information of the wireless network for the target device so as to connect the target device with the wireless network.
Specifically, after the user follows the wifi network, the client device may connect to the wireless network. Since the client device and the target device are already bound, the information of the wireless network can be configured for the target device by the client device, so that the target device is connected with the wireless network.
S313, sending the binding relation between the target device and the current user to the cloud background.
It should be noted that, in the embodiment of the present application, after the wireless network is connected, the binding relationship between the target device and the current user is selected and then sent to the cloud background, so that the subsequent cloud background can control the target device by using the binding relationship. Of course, since the target device may be connected to a mobile network, the binding relationship between the target device and the current user may be transmitted to the cloud background after the target device and the current user are bound. However, since the target device is not networked at this time, even if the binding relationship is uploaded, the control of the target device cannot be achieved through the cloud background.
S314, responding to the control operation of the current user on the target equipment, and sending a control instruction to the cloud background so as to send the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user, and controlling the target equipment.
Specifically, when the current user needs to control the target device, the control operation can be performed on the client device, at this time, the client device responds to the control operation and sends a control instruction corresponding to the control operation to the cloud background, the cloud background searches the target device based on the binding relationship between the current user and the target device, and sends the control instruction to the target device, and the target device responds to the control instruction.
Another embodiment of the present application provides a binding apparatus for a device, as shown in fig. 4, including:
a first receiving unit 401, configured to receive a general broadcast sent by a target device.
Wherein the generic broadcast reports at least the status information of the target device.
The state determining unit 402 is configured to determine whether the target device is in a to-be-bound and unconfigured state according to the state information of the target device.
And the signal strength obtaining unit 403 is configured to obtain the bluetooth signal strength connected to the target device when it is determined that the target device is in a state to be bound and not configured.
And a permission determination unit 404 for determining whether or not to have permission to operate the target device according to the bluetooth signal strength of the connection with the target device.
And a binding unit 405, configured to bind the target device with the current user if it is determined that the target device has the authority to operate.
The first sending unit 406 is configured to send the unique identifier corresponding to the current user to the target device, and trigger the target device to update the universal broadcast with the unique identifier corresponding to the current user.
Optionally, in the binding apparatus of the device provided in another embodiment of the present application, the binding apparatus further includes:
and the second sending unit is used for sending a main user registration request to the cloud background if the current user is the main user when the current user is registered, so as to trigger the cloud background to register for the current user and generate a unique identification code corresponding to the current user.
The second generation unit is used for receiving the unique identification code corresponding to the current user returned by the cloud background.
And the third sending unit is used for sending a home user registration request containing the unique identification code corresponding to the main user of the current user to the cloud background when the current user is the home user, triggering the cloud background to register for the current user, and determining the unique identification code corresponding to the main user in the home user registration request as the unique identification code corresponding to the current user.
Optionally, the permission determining unit in the binding apparatus of the device provided in another embodiment of the present application, as shown in fig. 5, includes:
a determining unit 501, configured to determine whether the bluetooth signal strength connected to the target device is greater than a target preset threshold.
The first determining unit 502 is configured to determine that the permission to operate the target device is provided when it is determined that the bluetooth signal strength of the connection of the target device is greater than the target preset threshold.
A second determining unit 503, configured to determine that the permission of operating the target device is not available when it is determined that the bluetooth signal strength of the target device connection is not greater than the target preset threshold.
Optionally, in the binding apparatus of the device provided in another embodiment of the present application, the binding apparatus further includes:
and if the permission of operating the target equipment is not determined, feeding back prompt information to the current user. The prompt information is at least used for prompting that the operation target equipment is not authorized.
Optionally, in the binding apparatus of the device provided in another embodiment of the present application, the binding apparatus further includes:
and a type acquisition unit for acquiring the type of the target device from the general broadcast.
And the threshold value determining unit is used for determining a preset threshold value corresponding to the type of the target equipment as a target preset threshold value.
Optionally, in the binding apparatus of the device provided in another embodiment of the present application, the binding apparatus further includes:
and the configuration unit is used for configuring the information of the wireless network for the target equipment after the wireless network is connected so as to connect the target equipment with the wireless network.
Optionally, in the binding apparatus of the device provided in another embodiment of the present application, the binding apparatus further includes:
and the fourth sending unit is used for sending the binding relation between the target equipment and the current user to the cloud background.
The control unit is used for responding to the control operation of the current user on the target equipment, sending a control instruction to the cloud background, and sending the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user to control the target equipment.
It should be noted that, the specific working process of each unit provided in the foregoing embodiment of the present application may refer to the corresponding steps in the foregoing method embodiment, which is not described herein again.
Another embodiment of the present application provides an electronic device, as shown in fig. 6, including:
a memory 601 and a processor 602.
Wherein the memory 601 is used for storing programs.
The processor 602 is configured to execute a program stored in the memory 601, and when the program is executed, the program is specifically configured to implement a binding method of a device provided in any one of the embodiments described above.
It should be noted that, the specific implementation process may correspondingly refer to the implementation of the binding method of the device provided by the above method embodiment, which is not described herein again.
Another embodiment of the present application provides a computer storage medium storing a computer program, where the computer program is executed to implement a binding method of a device provided in any one of the method embodiments described above.
It should be noted that, the specific implementation process may correspondingly refer to the implementation of the binding method of the device provided by the above method embodiment, which is not described herein again.
Wherein the computer storage media in the embodiments of the present application, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A method of binding a device, comprising:
receiving a general broadcast sent by target equipment; wherein the generic broadcast reports at least status information of the target device;
determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment;
if the target equipment is determined to be in a to-be-bound and unconfigured state, acquiring Bluetooth signal strength connected with the target equipment;
acquiring the type of the target device from the general broadcast; determining a preset threshold corresponding to the type of the target equipment as a target preset threshold;
judging whether the Bluetooth signal strength connected with the target equipment is larger than a target preset threshold value or not; if the Bluetooth signal strength of the target equipment connection is judged to be greater than the target preset threshold, determining that the permission of operating the target equipment exists; if the Bluetooth signal strength connected with the target equipment is not larger than the target preset threshold value, determining that the permission of operating the target equipment is not available;
if the permission of operating the target equipment is determined, binding the target equipment with a current user;
transmitting the unique identification code corresponding to the current user to the target equipment, and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user;
after the wireless network is connected, configuring information of the wireless network for the target equipment so as to connect the target equipment with the wireless network;
sending the binding relation between the target equipment and the current user to a cloud background;
and responding to the control operation of the current user on the target equipment, sending a control instruction to the cloud background so as to send the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user, and controlling the target equipment.
2. The method of claim 1, wherein prior to binding the target device with the current user, further comprising:
when the current user is registered, if the current user is a main user, a main user registration request is sent to a cloud background to trigger the cloud background to register for the current user and generate a unique identification code corresponding to the current user;
receiving a unique identification code corresponding to the current user returned by the cloud background;
if the current user is a home user, a home user registration request containing a unique identification code corresponding to a main user of the current user is sent to the cloud background, so that the cloud background is triggered to register for the current user, and the unique identification code corresponding to the main user in the home user registration request is determined to be the unique identification code corresponding to the current user.
3. The method as recited in claim 1, further comprising:
if the permission of operating the target equipment is not determined, a prompt message is fed back to the current user; the prompt message is at least used for prompting that the target equipment is not authorized to be operated.
4. A binding apparatus for a device, comprising:
a first receiving unit, configured to receive a general broadcast sent by a target device; wherein the generic broadcast reports at least status information of the target device;
the state determining unit is used for determining whether the target equipment is in a to-be-bound and unconfigured state according to the state information of the target equipment;
the signal strength acquisition unit is used for acquiring Bluetooth signal strength connected with the target equipment when the target equipment is determined to be in a to-be-bound and unconfigured state;
a type acquisition unit configured to acquire a type of the target device from the general broadcast;
a threshold determining unit, configured to determine a preset threshold corresponding to the type of the target device as a target preset threshold;
a right determination unit comprising: the device comprises a judging unit, a first determining unit and a second determining unit;
the judging unit is used for judging whether the Bluetooth signal strength connected with the target equipment is larger than a target preset threshold value or not;
the first determining unit is used for determining that the permission of operating the target equipment exists when the Bluetooth signal strength of the target equipment is larger than the target preset threshold value;
the second determining unit is used for determining that the permission of operating the target equipment is not available when the Bluetooth signal strength of the target equipment connection is not larger than the target preset threshold value;
the binding unit is used for binding the target equipment with the current user if the permission of operating the target equipment is determined;
the first sending unit is used for sending the unique identification code corresponding to the current user to the target equipment and triggering the target equipment to update the universal broadcast by utilizing the unique identification code corresponding to the current user;
a configuration unit, configured to configure information of a wireless network for the target device after connecting the wireless network, so as to connect the target device with the wireless network;
the fourth sending unit is used for sending the binding relation between the target equipment and the current user to a cloud background;
the control unit is used for responding to the control operation of the current user on the target equipment, sending a control instruction to the cloud background, and sending the control instruction to the target equipment through the cloud background based on the binding relation between the target equipment and the current user to control the target equipment.
5. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, in particular when the program is executed, for implementing a binding method of a device according to any one of claims 1 to 3.
6. A computer storage medium storing a computer program which, when executed, is adapted to carry out the method of binding a device as claimed in any one of claims 1 to 3.
CN202210231617.9A 2022-03-10 2022-03-10 Binding method and device of equipment, electronic equipment and storage medium Active CN114785541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210231617.9A CN114785541B (en) 2022-03-10 2022-03-10 Binding method and device of equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210231617.9A CN114785541B (en) 2022-03-10 2022-03-10 Binding method and device of equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114785541A CN114785541A (en) 2022-07-22
CN114785541B true CN114785541B (en) 2024-03-22

Family

ID=82422781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210231617.9A Active CN114785541B (en) 2022-03-10 2022-03-10 Binding method and device of equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114785541B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115376229B (en) * 2022-08-26 2023-11-07 广东好太太智能家居有限公司 Intelligent lock binding method and device, storage medium and computer equipment
CN116866860B (en) * 2023-07-13 2024-06-25 重庆赛力斯凤凰智创科技有限公司 Method and device for accessing VR equipment to vehicle-mounted system and vehicle-mounted system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039739A (en) * 2020-08-31 2020-12-04 海信(山东)空调有限公司 Method for controlling binding of household appliance distribution network and household appliance
CN112731877A (en) * 2020-12-22 2021-04-30 福建爱迪生科技有限公司 Control method of smart home
CN112804651A (en) * 2020-12-29 2021-05-14 武汉联影智融医疗科技有限公司 Binding method and device and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039739A (en) * 2020-08-31 2020-12-04 海信(山东)空调有限公司 Method for controlling binding of household appliance distribution network and household appliance
CN112731877A (en) * 2020-12-22 2021-04-30 福建爱迪生科技有限公司 Control method of smart home
CN112804651A (en) * 2020-12-29 2021-05-14 武汉联影智融医疗科技有限公司 Binding method and device and computer equipment

Also Published As

Publication number Publication date
CN114785541A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN114785541B (en) Binding method and device of equipment, electronic equipment and storage medium
CN110602692B (en) Data updating method and device and electronic equipment
US11979274B2 (en) Network management method and apparatus
CN110505606B (en) Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
US9899873B2 (en) System and method for generating a power receiver identifier in a wireless power network
CN105683845B (en) System and method for device detection and APP configuration
US11277278B2 (en) Smart home service server and control method therefor
US20150006296A1 (en) NOTIFICATION DISMISSAL IN AN INTERNET OF THINGS (IoT) ENVIRONMENT
CN107342933B (en) Activation and binding method and device for intelligent equipment
CN110636483A (en) Network distribution method and system
JP2016505942A (en) Method and apparatus for access authorization authentication in a wireless communication system
CN113259921B (en) Household appliance product
CN111371657A (en) Network configuration method and system of intelligent household appliance and intelligent household appliance
CN111263338B (en) Network distribution method of Bluetooth Mesh network, related network distribution equipment and system
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN111406397A (en) Method and apparatus for managing events in a communication system
WO2013191515A1 (en) Method and device for enabling or disabling server in wireless communication system
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN115022353B (en) Network connection method, device and system of intelligent equipment
CN113709239A (en) Intelligent household equipment communication method, equipment and medium
CN113434766B (en) Subscription information pushing method and device, storage medium and electronic device
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
CN111478816B (en) Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment
CN116192546A (en) Control method of intelligent equipment, control terminal and control system
CN113300922B (en) Information reminding method, equipment and 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