CN118174979A - Binding method and device of target account number, storage medium and electronic device - Google Patents

Binding method and device of target account number, storage medium and electronic device Download PDF

Info

Publication number
CN118174979A
CN118174979A CN202410322348.6A CN202410322348A CN118174979A CN 118174979 A CN118174979 A CN 118174979A CN 202410322348 A CN202410322348 A CN 202410322348A CN 118174979 A CN118174979 A CN 118174979A
Authority
CN
China
Prior art keywords
devices
information
local area
area network
target account
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.)
Pending
Application number
CN202410322348.6A
Other languages
Chinese (zh)
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
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202410322348.6A priority Critical patent/CN118174979A/en
Publication of CN118174979A publication Critical patent/CN118174979A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a binding method and device of a target account, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the binding method of the target account comprises the following steps: setting N devices in the same area in the same local area network, wherein N is an integer greater than 1; under the condition that a first device in the N devices is bound with a target account, the first device is instructed to broadcast account information in the local area network through a diffusion message mechanism, so that other devices in a first device set are instructed to bind the target account according to the account information, wherein the account information comprises: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices. By adopting the technical scheme, the problem that the existing equipment binding scheme has higher dependence on the router is solved.

Description

Binding method and device of target account number, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a binding method and device of a target account, a storage medium and an electronic device.
Background
Along with the current intelligent scene becoming more and more perfect and more complex, the existing scene has stronger dependence on routers and networks, and once the routers and networks are not available, equipment cannot be on line, users cannot use the equipment, or the equipment can only be subjected to one-to-one reconfiguration and binding from a factory mode. In addition, there is currently no existing network environment, but there is also a need for a special scenario that can be controlled, and all devices can be bound in batches once the network environment changes.
Aiming at the problem that the existing device binding scheme has higher dependence on a router in the related technology, no effective solution is proposed at present.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the application provides a binding method and device of a target account, a storage medium and an electronic device, which are used for at least solving the problem that the existing equipment binding scheme has higher dependence on a router.
According to an aspect of the embodiment of the present application, there is provided a binding method for a target account, including: setting N devices in the same area in the same local area network, wherein N is an integer greater than 1; under the condition that a first device in the N devices is bound with a target account, the first device is instructed to broadcast account information in the local area network through a diffusion message mechanism, so that other devices in a first device set are instructed to bind the target account according to the account information, wherein the account information comprises: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
In an exemplary embodiment, setting N devices located in the same area in the same local area network includes: transmitting local area network information to each of the N devices to indicate the N devices to set the N devices in the same local area network according to the local area network information; and under the condition that acknowledgement messages sent by the N devices respectively are received, the N devices in the same area are confirmed to be arranged in the same local area network.
In an exemplary embodiment, after setting N devices located in the same area in the same local area network, the method further includes: acquiring the equipment information of the N pieces of equipment which are added into the same local area network; and sending the device information of the N devices to each device in the N devices to indicate each device to store the device information of the N devices.
In an exemplary embodiment, after setting N devices located in the same area in the same local area network, the method further includes: establishing network connection with a cloud server; receiving account information of the target account distributed by the cloud server under the condition that the network connection is successfully established; and binding the first equipment and the target account according to the account information.
In an exemplary embodiment, instructing the first device to broadcast account information in the local area network through a diffusion message mechanism to instruct other devices to bind the target account according to the account information includes: indicating the first equipment to broadcast the account information in the local area network; under the condition that the second equipment receives the account information, the second equipment is instructed to bind the target account according to the account information; and under the condition that the second device successfully binds the target account, indicating the second device to continuously broadcast account information in the local area network according to the diffusion message mechanism so as to indicate other devices in a second device set to bind the target account according to the account information, wherein the other devices in the second device set are devices except the first device and the second device in the N devices.
In an exemplary embodiment, the method further includes, in a process of instructing the first device to broadcast account information in the local area network through a diffusion message mechanism to instruct other devices to bind the target account according to the account information: sending a query request to a cloud server, wherein the query request is used for querying equipment information bound with the target account; receiving a query result fed back by the cloud server based on the query request; and under the condition that the equipment information bound with the target account number comprises the equipment information of the N pieces of equipment according to the query result, stopping broadcasting the account number information in the local area network through the diffusion message mechanism.
In an exemplary embodiment, after receiving a query result fed back by the cloud server based on the query request, if it is determined that the device information bound to the target account does not include the device information of the N devices according to the query result, continuing to broadcast the account information in the local area network through a diffusion message mechanism; and stopping broadcasting the account information in the local area network through the diffusion message mechanism under the condition that the duration of broadcasting the account information in the local area network reaches the allowable diffusion duration.
According to another aspect of the embodiment of the present application, there is also provided a binding apparatus for a target account, including: the setting module is used for setting N devices positioned in the same area in the same local area network, wherein N is an integer greater than 1; the broadcasting module is configured to instruct a first device of the N devices to broadcast account information in the local area network through a diffusion message mechanism when the first device has been bound with a target account, so as to instruct other devices in a first device set to bind the target account according to the account information, where the account information includes: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
According to still another aspect of the embodiments of the present application, there is further provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above binding method of the target account number when running.
According to still another aspect of the embodiment of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the binding method of the target account number through the computer program.
According to the method and the device, N devices in the same area are arranged in the same local area network, and further, when a first device in the N devices is bound with a target account, the first device is instructed to broadcast account information in the local area network through a diffusion message mechanism, so that other devices except the first device in the N devices are instructed to bind the target account according to the account information. Because the binding of the equipment is realized through the local area network, the dependence of the equipment binding on the router is reduced, and the problem that the dependence of the existing equipment binding scheme on the router is higher is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a binding method of a target account according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of binding a target account number according to an embodiment of the present application;
FIG. 3 is an overall interactive flow chart of a binding method for a target account number according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the structure of an Action frame according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a Payload structure according to an embodiment of the present application;
fig. 6 is a block diagram of a binding apparatus of a target account number according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a binding method of a target account is provided. The binding method of the target account number is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (IntelligenceHouse) ecology and the like. Alternatively, in the present embodiment, the above-described binding method of the target account number may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (WIRELESS FIDELITY ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to solve the above-mentioned problem, in this embodiment, a binding method of a target account is provided, and fig. 2 is a flowchart of a binding method of a target account according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, setting N devices in the same area in the same local area network, wherein N is an integer greater than 1;
as an alternative example, each of the N devices may be the terminal device 102.
It should be noted that, the lan includes, but is not limited to, a lan under a router, and may also be private lan information.
In an exemplary embodiment, the above step S202 may be implemented by the following steps S11-S12:
Step S11: transmitting local area network information to each of the N devices to indicate the N devices to set the N devices in the same local area network according to the local area network information;
As an alternative example, the local area network information includes, but is not limited to: tmpkey, ttpid. Tmpkey is a temporarily generated encryption key for encryption and decryption of temporary data transmissions. Tmpid is a temporary generated identity identifier for authentication in a temporary session or interaction.
Step S12: and under the condition that acknowledgement messages sent by the N devices respectively are received, the N devices in the same area are confirmed to be arranged in the same local area network.
That is, after receiving the lan information, each of the N devices joins the lan according to the lan information, and sends acknowledgement information to the SDK to inform the SDK that the SDK itself has joined the lan.
In an exemplary embodiment, after the step S202, the method further includes the following steps S21 to S22:
step S21: acquiring the equipment information of the N pieces of equipment which are added into the same local area network;
it should be noted that the device information includes, but is not limited to, a Media Access Control (MAC) address of the device.
Step S22: and sending the device information of the N devices to each device in the N devices to indicate each device to store the device information of the N devices.
As an optional example, after each of the N devices receives the device information of the N devices, it may determine whether the remaining storage space of the N devices is sufficient (for example, whether the remaining storage space is greater than a preset storage space), and if it is determined that the remaining storage space of the N devices is sufficient, save the device information of the N devices, otherwise not save the device information of the N devices.
As an alternative example, the SDK may also determine whether the remaining storage space of each device is sufficient before transmitting the device information of the N devices to each device of the N devices, and if it is determined that the remaining storage space of the device is sufficient, transmit the device information of the N devices to the device, otherwise not transmit the device information of the N devices.
In an exemplary embodiment, after the step S202, the method further includes the following steps S31 to S33:
step S31: establishing network connection with a cloud server;
step S32: receiving account information of the target account distributed by the cloud server under the condition that the network connection is successfully established;
step S33: and binding the first equipment and the target account according to the account information.
Optionally, the step S33 includes: the SDK sends the account information to the first device, and further indicates the first device to establish a binding relationship with the target account according to the account information.
It should be noted that the target account number may be an account number to be bound by the N devices.
As an optional example, the SDK may connect to the cloud server, obtain unique account information allocated to the SDK by the cloud server, where the information includes Netkey and Netid, which are used to encrypt and bind with the device communication process, and unique and independent, so that the SDK binds the device by using a private protocol, so that the device connects to the cloud server after connecting to the router, and then binds by using Netkey and Netid.
Step S204, when a first device of the N devices has been bound to a target account, indicating the first device to broadcast account information in the local area network through a diffusion message mechanism, so as to indicate other devices in a first device set to bind the target account according to the account information, where the account information includes: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
Optionally, the account information includes, but is not limited to: identification of the target account number and binding password, binding mode, etc.
In an exemplary embodiment, the foregoing indicates that the first device broadcasts account information in the local area network through a diffusion message mechanism, so as to instruct other devices to bind the target account according to the account information, and includes steps S41-S43:
step S41: indicating the first equipment to broadcast the account information in the local area network;
As an alternative example, the first device may be instructed to send an Action frame (a detailed description of the Action frame is described below) to each device in the first set of devices over the local area network to broadcast account information.
Step S42: under the condition that the second equipment receives the account information, the second equipment is instructed to bind the target account according to the account information;
Step S43: and under the condition that the second device successfully binds the target account, indicating the second device to continuously broadcast account information in the local area network according to the diffusion message mechanism so as to indicate other devices in a second device set to bind the target account according to the account information, wherein the other devices in the second device set are devices except the first device and the second device in the N devices.
It should be noted that, in this embodiment, through the above-mentioned diffusion message mechanism, each device of the N devices may be enabled to bind the target account rapidly.
In an exemplary embodiment, the foregoing process of instructing the first device to broadcast account information in the local area network through a diffusion message mechanism to instruct other devices to bind the target account according to the account information further includes the following steps S51-S53:
Step S51: sending a query request to a cloud server, wherein the query request is used for querying equipment information bound with the target account;
It should be noted that, when the cloud server detects that the device is already bound with the target account, the cloud server records the device information of the device, so that the cloud server can know how many devices are currently bound with the target account.
Step S52: receiving a query result fed back by the cloud server based on the query request;
Step S53: and under the condition that the equipment information bound with the target account number comprises the equipment information of the N pieces of equipment according to the query result, stopping broadcasting the account number information in the local area network through the diffusion message mechanism.
As an optional example, stopping the broadcasting of the account information within the local area network via the flooding message mechanism includes: and indicating the equipment which is bound with the target account number in the N pieces of equipment to stop broadcasting the account number information in the local area network through a diffusion message mechanism.
In an exemplary embodiment, following the step S52, the following steps S54 to S55 are further included:
step S54: under the condition that the equipment information bound with the target account number does not comprise the equipment information of the N pieces of equipment according to the query result, continuing broadcasting the account number information in the local area network through a diffusion message mechanism;
As an alternative example, continuing to broadcast account information within the local area network via a flooding message mechanism includes: and indicating the equipment which is bound with the target account number in the N pieces of equipment to continuously broadcast the account number information in the local area network through a diffusion message mechanism.
Step S55: and stopping broadcasting the account information in the local area network through the diffusion message mechanism under the condition that the duration of broadcasting the account information in the local area network reaches the allowable diffusion duration.
Optionally, the allowable diffusion duration is proportional to the number of devices which are not bound to the target account number in the N devices, that is, the greater the number of devices which are not bound to the target account number in the N devices, the greater the allowable diffusion duration.
Optionally, the allowable diffusion duration is less than or equal to a preset threshold, and optionally, the preset threshold is 30 seconds.
The step S53 and the steps S54 to S55 are performed in different cases.
Setting N devices in the same area in the same local area network, and further, under the condition that a first device in the N devices is bound with the target account, indicating the first device to broadcast account information in the local area network through a diffusion message mechanism so as to indicate other devices except the first device in the N devices to bind the target account according to the account information. Because the binding of the equipment is realized through the local area network, the dependence of the equipment binding on the router is reduced, and the problem that the dependence of the existing equipment binding scheme on the router is higher is solved.
As an alternative example, the execution subject of the above steps is a software development kit (Software Development Kit, abbreviated as SDK).
In short, the application provides a method for binding devices without normal network environment through batch proxy, which can rapidly and automatically bind the following cloud servers when the network is normal, thereby reducing the workload of multi-device binding, reducing repeated operation and improving the binding efficiency under special scenes.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the application. For better understanding of the above method, the following description will explain the above process with reference to the examples, but is not intended to limit the technical solution of the embodiments of the present application, specifically:
In an alternative embodiment, fig. 3 is an overall interaction flow chart of a binding method of a target account according to an embodiment of the present application, and as shown in fig. 3, the present application may be generally divided into three parts of a cloud Server, an SDK and a device, where the cloud Server is a cloud Server, the SDK is a mobile phone or an upper computer software, and the device is a base plate with an Access Point (AP) function.
For a better understanding, the relevant content of fig. 3 is explained below:
Setting local area network information: setting a local area network information request for configuring equipment to a certain local area network, wherein the local area network is not limited to the local area network under a router, and can also be private local area network information, and the private local area network information comprises the following key information: ttpid and Tmpkey, which are data information self-generated by the SDK, are unique and independent, and are used as the unique information of the user local area network. It should be noted that Tmpkey is an encryption key that is temporarily generated, and is used for encryption and decryption of temporary data transmission. Tmpid is a temporary generated identity identifier for authentication in a temporary session or interaction.
Updating local area network equipment information: the SDK caches the set device information (including the MAC address), and issues the set device information to the device, so that the device stores the device information in the local area network, and the information is mainly used for later checking the use of the bound device, for example, the device with insufficient resources can skip the step, namely, the set device information is not cached.
Connecting a cloud server to acquire current user information: the SDK is connected with a cloud server, the server distributes unique account information to the SDK, the information comprises Netkey and Netid, the function and the device communication process are encrypted and bound, and the unique account information is independent.
And (3) performing configuration binding: the SDK binds the device using a proprietary protocol, so that the device connects to the router first and then to the cloud server, and then binds using Netkey and Netid.
Diffusion message mechanism: after receiving the response of successful binding, the device packages Netkey, netid, ssid, password, devid and the like together into an Action frame, encrypts the Action frame and then broadcasts and sends out the encrypted Action frame. Optionally, ssid, password is pre-stored in the device, or may be acquired from the cloud server.
(1) The structure of the Action frame is shown in fig. 4, where OUI is vendor custom data, and two fields of TYPE and SUBTYPE are defined in Vendor specific content later to indicate the current frame TYPE, and the present application does not specify this value, and the custom is just needed, and the structure of Payload is shown in fig. 5, where NOUNCE: deriving an AES encryption Key for random numbers generated before each encryption and decryption and Tmpkey; ENERYPTED DATA: encrypted data; MIC: calculating an integrity check value of MD5 for ENERYPTED DATA and NETID; NETID: currently Tmpid, if the message is not matched, the subsequent message processing is not performed.
(2) Diffusion mechanism: diffusion starts after receiving a successful binding ACK, once every 1 second, for a maximum of 30 seconds. Inquiring the information of the current bound equipment in the local area network from the cloud server from the 5 th second, and stopping diffusion if the information is matched with the equipment cache information. Meanwhile, in order to reduce the diffusion duration, the communication transceiving conditions of other modules are affected, and each module determines the diffusion time (namely the diffusion duration allowed) according to the number of the devices which are not bound, wherein the number of the devices which are not bound is in direct proportion to the diffusion time, and the diffusion time is longer as the number of the devices which are not bound is larger. Each device is diffused in the broadcasting range of the device after being bound, until all devices are automatically bound, and the bound devices do not process diffusion messages any more.
Initiating binding: after receiving the diffusion message, the router is connected by Ssid, password, after connection is completed, the self-binding data is packaged by Netkey, netid, devid, binding is initiated to the cloud server, and the filled Devid is information of the bound device, so that the cloud server can check and pass.
It should be noted that, in this embodiment, for a large number of devices that have been set, whether or not they are currently in the coverage of the AP signal, batch binding can be performed quickly and in a short time. In addition, in the embodiment, the data encryption algorithm and verification in the binding process can ensure confidentiality of the whole communication process, and the cracking probability is reduced.
The application is applicable to environments insensitive to network environments or free from immediate networking and temporary networking conditions, can provide a solution for effectively carrying out batch cloud binding, can reduce error phenomenon in the data transmission process, can be used in places with complex environments such as factories, exhibition halls and the like, and can fully reduce the burden of field staff, improve automation and meet various special scenes.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
The embodiment also provides a binding device for the target account, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 6 is a block diagram of a binding apparatus for a target account number according to an embodiment of the present application, the apparatus including:
A setting module 62, configured to set N devices located in the same area in the same local area network, where N is an integer greater than 1;
A broadcasting module 64, configured to instruct a first device of the N devices to broadcast account information in the local area network through a diffusion message mechanism, where the first device has been bound to a target account, so as to instruct other devices in a first device set to bind the target account according to the account information, where the account information includes: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
According to the device, N devices in the same area are arranged in the same local area network, and further, when a first device in the N devices is bound with the target account, the first device is instructed to broadcast account information in the local area network through a diffusion message mechanism, so that other devices except the first device in the N devices are instructed to bind the target account according to the account information. Because the binding of the equipment is realized through the local area network, the dependence of the equipment binding on the router is reduced, and the problem that the dependence of the existing equipment binding scheme on the router is higher is solved.
In an exemplary embodiment, the setting module is further configured to send local area network information to each of the N devices, so as to instruct the N devices to set the N devices in the same local area network according to the local area network information; and under the condition that acknowledgement messages sent by the N devices respectively are received, the N devices in the same area are confirmed to be arranged in the same local area network.
In an exemplary embodiment, the apparatus further comprises: the processing module is used for acquiring the equipment information of the N pieces of equipment which are added into the same local area network after the N pieces of equipment which are positioned in the same area are arranged in the same local area network; and sending the device information of the N devices to each device in the N devices to indicate each device to store the device information of the N devices.
In an exemplary embodiment, the processing module is further configured to establish a network connection with the cloud server after setting N devices located in the same area in the same local area network; receiving account information of the target account distributed by the cloud server under the condition that the network connection is successfully established; and binding the first equipment and the target account according to the account information.
In an exemplary embodiment, the broadcasting module 64 is further configured to instruct the first device to broadcast the account information in the local area network; under the condition that the second equipment receives the account information, the second equipment is instructed to bind the target account according to the account information; and under the condition that the second device successfully binds the target account, indicating the second device to continuously broadcast account information in the local area network according to the diffusion message mechanism so as to indicate other devices in a second device set to bind the target account according to the account information, wherein the other devices in the second device set are devices except the first device and the second device in the N devices.
In an exemplary embodiment, the broadcasting module 64 is further configured to, in a process of instructing the first device to broadcast account information in the local area network through a diffusion message mechanism, instruct other devices to bind the target account according to the account information, send a query request to a cloud server, where the query request is used for querying device information bound to the target account; receiving a query result fed back by the cloud server based on the query request; and under the condition that the equipment information bound with the target account number comprises the equipment information of the N pieces of equipment according to the query result, stopping broadcasting the account number information in the local area network through the diffusion message mechanism.
In an exemplary embodiment, the broadcasting module 64 is further configured to, after receiving a query result fed back by the cloud server based on the query request, continue broadcasting account information in the local area network through a diffusion message mechanism if it is determined that the device information bound to the target account does not include the device information of the N devices according to the query result; and stopping broadcasting the account information in the local area network through the diffusion message mechanism under the condition that the duration of broadcasting the account information in the local area network reaches the allowable diffusion duration.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, setting N devices in the same area in the same local area network, wherein N is an integer greater than 1;
S2, under the condition that a first device in the N devices is bound with a target account, indicating the first device to broadcast account information in the local area network through a diffusion message mechanism so as to indicate other devices in a first device set to bind the target account according to the account information, wherein the account information comprises: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, setting N devices in the same area in the same local area network, wherein N is an integer greater than 1;
S2, under the condition that a first device in the N devices is bound with a target account, indicating the first device to broadcast account information in the local area network through a diffusion message mechanism so as to indicate other devices in a first device set to bind the target account according to the account information, wherein the account information comprises: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for binding a target account number, comprising:
setting N devices in the same area in the same local area network, wherein N is an integer greater than 1;
under the condition that a first device in the N devices is bound with a target account, the first device is instructed to broadcast account information in the local area network through a diffusion message mechanism, so that other devices in a first device set are instructed to bind the target account according to the account information, wherein the account information comprises: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
2. The method for binding a target account number according to claim 1, wherein the step of setting N devices located in the same area in the same local area network includes:
transmitting local area network information to each of the N devices to indicate the N devices to set the N devices in the same local area network according to the local area network information;
and under the condition that acknowledgement messages sent by the N devices respectively are received, the N devices in the same area are confirmed to be arranged in the same local area network.
3. The method for binding a target account number according to claim 1, wherein after N devices located in the same area are disposed in the same local area network, the method further comprises:
Acquiring the equipment information of the N pieces of equipment which are added into the same local area network;
and sending the device information of the N devices to each device in the N devices to indicate each device to store the device information of the N devices.
4. The method for binding a target account number according to claim 1, wherein after N devices located in the same area are disposed in the same local area network, the method further comprises:
establishing network connection with a cloud server;
receiving account information of the target account distributed by the cloud server under the condition that the network connection is successfully established;
and binding the first equipment and the target account according to the account information.
5. The method for binding a target account according to claim 1, wherein instructing the first device to broadcast account information in the local area network through a diffusion message mechanism to instruct other devices to bind the target account according to the account information includes:
Indicating the first equipment to broadcast the account information in the local area network;
under the condition that the second equipment receives the account information, the second equipment is instructed to bind the target account according to the account information;
And under the condition that the second device successfully binds the target account, indicating the second device to continuously broadcast account information in the local area network according to the diffusion message mechanism so as to indicate other devices in a second device set to bind the target account according to the account information, wherein the other devices in the second device set are devices except the first device and the second device in the N devices.
6. The method according to claim 1, wherein the method further comprises, in the process of instructing the first device to broadcast account information in the local area network through a diffusion message mechanism to instruct other devices to bind the target account according to the account information:
Sending a query request to a cloud server, wherein the query request is used for querying equipment information bound with the target account;
receiving a query result fed back by the cloud server based on the query request;
And under the condition that the equipment information bound with the target account number comprises the equipment information of the N pieces of equipment according to the query result, stopping broadcasting the account number information in the local area network through the diffusion message mechanism.
7. The method for binding a target account according to claim 6, wherein after receiving a query result fed back by the cloud server based on the query request, the method further comprises:
Under the condition that the equipment information bound with the target account number does not comprise the equipment information of the N pieces of equipment according to the query result, continuing broadcasting the account number information in the local area network through a diffusion message mechanism;
and stopping broadcasting the account information in the local area network through the diffusion message mechanism under the condition that the duration of broadcasting the account information in the local area network reaches the allowable diffusion duration.
8. A binding device for a target account, comprising:
the setting module is used for setting N devices positioned in the same area in the same local area network, wherein N is an integer greater than 1;
The broadcasting module is configured to instruct a first device of the N devices to broadcast account information in the local area network through a diffusion message mechanism when the first device has been bound with a target account, so as to instruct other devices in a first device set to bind the target account according to the account information, where the account information includes: binding data needed by the target account, wherein other devices in the first device set are devices except the first device in the N devices.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202410322348.6A 2024-03-20 2024-03-20 Binding method and device of target account number, storage medium and electronic device Pending CN118174979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410322348.6A CN118174979A (en) 2024-03-20 2024-03-20 Binding method and device of target account number, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410322348.6A CN118174979A (en) 2024-03-20 2024-03-20 Binding method and device of target account number, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN118174979A true CN118174979A (en) 2024-06-11

Family

ID=91354124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410322348.6A Pending CN118174979A (en) 2024-03-20 2024-03-20 Binding method and device of target account number, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN118174979A (en)

Similar Documents

Publication Publication Date Title
CN106301785B (en) Method and system for binding intelligent household equipment and intelligent terminal
US10057813B1 (en) Onboarding and configuring Wi-Fi enabled devices
WO2019128906A1 (en) Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
CN113347741B (en) Online method and system of gateway equipment
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
JP2019509703A (en) Cloud-based control of Wi-Fi networks
CN109639542B (en) Network distribution method and system based on intelligent home gateway
CN110856121A (en) Internet of things network distribution method and system, network distribution equipment and Internet of things equipment
CN105007164B (en) Centralized safety control method and device
EP3128773B1 (en) Processing method and apparatus for d2d discovery
CN113055411A (en) Control method of home networking system, server and electronic equipment
CN106953782A (en) Method and device for controlling intelligent household electrical appliance to access network
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN112506069A (en) Authentication method and device of intelligent household appliance and intelligent household appliance
CN112672352B (en) Network distribution method for intelligent equipment, mesh relay node, intelligent equipment and server
CN112055341A (en) Networking method, device and equipment of low-power-consumption Bluetooth Mesh network
CN118174979A (en) Binding method and device of target account number, storage medium and electronic device
CN115484115B (en) Binding method and device, storage medium and electronic device
CN112087745A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN116847431A (en) Information transmission method and device, storage medium and electronic device
CN116437348A (en) Network connection establishment method and system, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN115297345B (en) Method and device for processing screen-throwing request, storage medium and electronic device
CN114826901B (en) Device networking method and device, storage medium and electronic device
CN115174513B (en) Message pushing method and device, storage medium and electronic device

Legal Events

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