CN114124915A - Method and device for establishing binding relationship, storage medium and electronic device - Google Patents

Method and device for establishing binding relationship, storage medium and electronic device Download PDF

Info

Publication number
CN114124915A
CN114124915A CN202111243786.6A CN202111243786A CN114124915A CN 114124915 A CN114124915 A CN 114124915A CN 202111243786 A CN202111243786 A CN 202111243786A CN 114124915 A CN114124915 A CN 114124915A
Authority
CN
China
Prior art keywords
bound
binding
equipment
main
devices
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
CN202111243786.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
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 CN202111243786.6A priority Critical patent/CN114124915A/en
Publication of CN114124915A publication Critical patent/CN114124915A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements

Abstract

The invention discloses a method and a device for establishing a binding relationship, a storage medium and an electronic device, wherein the method comprises the following steps: determining whether the main equipment has a preset function, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; the technical scheme is adopted, and the problems that the main equipment and the equipment to be bound can only be bound one by one, and the scenes that a large amount of equipment to be bound needs to be bound are too complicated and time-consuming are solved.

Description

Method and device for establishing binding relationship, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for establishing a binding relationship, a storage medium, and an electronic apparatus.
Background
With the coming of the era of internet of things, intelligent devices gradually enter families and lives of people, while the intelligent devices bring people intelligence, convenience and simple life, simplification and reduction of use difficulty are one of main pursuit targets of intelligent household appliances, at present, the intelligent devices need to be bound with main devices, after the intelligent devices are bound, the bound networks need to be changed, and the bound networks need to be bound with the main devices again, and users who slightly and initially try intelligent life can accept the intelligent devices because the devices are few in number, but in the case of beginning to use a large number of intelligent families, the network replacement is undoubtedly a big project.
For the era that the number of intelligent devices climbs the internet of things year by year, although technically, the simple binding of the devices is not a technical problem, better experience can be provided for users only by combining a systematic integral scheme of an internet of things platform, the traditional main devices and the devices to be bound can only be bound one by one, and the situation that a large number of devices to be bound need to be bound is complex and time-consuming.
Aiming at the problems that in the related art, the main equipment and the equipment to be bound can only be bound one by one, and the scenes that a large amount of equipment to be bound needs to be bound are excessively complicated and long in time consumption, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for establishing a binding relationship, a storage medium and an electronic device, which are used for at least solving the problems that in the related art, main equipment and equipment to be bound can only be bound one by one, and the scenes that a large amount of equipment to be bound needs to be bound are excessively complicated and time-consuming.
According to an embodiment of the present invention, a method for establishing a binding relationship is provided, including: determining whether the main equipment has a preset function, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; and sending a binding instruction to the device to be bound in the device list to be bound so as to indicate that the device to be bound establishes a binding relationship with the master device according to the binding instruction.
In an exemplary embodiment, when the master device has a preset function, acquiring a device list to be bound through a device capability layer of the master device includes: receiving the number of the devices to be bound of the main device, which is sent by the device capability layer of the main device; under the condition that the number of the devices to be bound is larger than a preset threshold value, sending an acquisition request for acquiring the device list to be bound to an intermediate plug-in layer of the main device, so that the intermediate plug-in layer forwards the acquisition request to a device capability layer; and receiving the device list to be bound sent by the device capability layer under the condition that the device capability layer receives the acquisition request.
In an exemplary embodiment, before receiving the number of devices to be bound of the master device sent by the device capability layer of the master device, the method further includes: acquiring a device list having a binding relationship with the master device at a cloud platform, wherein the device list having the binding relationship comprises: the device which has a binding relationship with the main device before the main device disconnects the network connection; under the condition that the device capability layer detects an unbound device which is not bound with the main device, matching the unbound device with the device list with the binding relationship; and when the device consistent with the unbound device exists in the device list with the binding relationship, taking the unbound device as the device to be bound.
In one exemplary embodiment, determining whether the master device has a preset function includes: calling a preset interface through an intermediate plug-in layer of the main equipment, and inquiring equipment fields of the main equipment through the preset interface; and determining whether the main equipment has a preset function or not according to the equipment field, wherein the main equipment is determined to have the preset function under the condition that the equipment field is a first value, and the main equipment is determined not to have the preset function under the condition that the equipment field is a second value.
In an exemplary embodiment, after sending the binding instruction to the device to be bound in the device to be bound list, the method further includes: receiving the binding state of the equipment to be bound and the main equipment; and receiving first prompt information under the condition that the binding state indicates that the device to be bound and the main device are successfully bound, wherein the first prompt information is used for indicating that the device to be bound and the main device are successfully bound.
In an exemplary embodiment, after receiving the binding status of the device to be bound and the master device, the method further includes: receiving second prompt information under the condition that the binding state indicates that the device to be bound and the main device are not successfully bound, wherein the second prompt information is used for indicating that the device to be bound and the main device are not successfully bound; and under the condition of receiving the second prompt message, sending a binding instruction to the equipment to be bound in the equipment list to be bound again so that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
In an exemplary embodiment, after receiving the first prompt message, the method further comprises at least one of: simultaneously sending password information to all the devices to be bound so that all the devices to be bound are accessed to a wireless access point according to the password information; and sending password information to any one of the devices to be bound until the master device sends the password information to all the devices to be bound, so that all the devices to be bound are accessed to the wireless access point according to the password information.
According to another embodiment of the present invention, there is provided an apparatus for establishing a binding relationship, including: the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether the main device has a preset function, the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound; an obtaining module, configured to obtain, through a device capability layer of the master device, a device list to be bound when the master device has a preset function, where the device list to be bound includes: one or more devices to be bound to which the master device is to be bound; and the sending module is used for sending a binding instruction to the equipment to be bound in the equipment list to be bound so as to indicate that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for establishing a binding relationship when the computer program runs.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for establishing the binding relationship through the computer program.
In the embodiment of the invention, whether the main equipment has a preset function is determined, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; sending a binding instruction to the equipment to be bound in the equipment list to be bound so as to indicate that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction; by adopting the technical scheme, the problem that the main equipment and the equipment to be bound can only be bound one by one and the scenes that a large amount of equipment to be bound needs to be bound are too complicated and time-consuming is solved, and then all the equipment to be bound in batches is bound.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal of a method for establishing a binding relationship according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for establishing a binding relationship according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a method for establishing a binding relationship in accordance with an alternative embodiment of the present invention;
FIG. 4 is a timing diagram of a method of establishing a binding relationship in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram of a device for establishing a binding relationship according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the example of running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of the method for establishing a binding relationship according to the embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for establishing a binding relationship in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for establishing a binding relationship is provided, which is applied to the computer terminal, specifically, a master device, and fig. 2 is a flowchart of a method for establishing a binding relationship according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, determining whether the main device has a preset function, wherein the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound;
step S204, under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound;
step S206, sending a binding instruction to the device to be bound in the device list to be bound to indicate that the device to be bound establishes a binding relationship with the master device according to the binding instruction.
Through the steps, whether the main equipment has a preset function is determined, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; sending a binding instruction to the devices to be bound in the device list to be bound to indicate the devices to be bound to establish a binding relationship with the master device according to the binding instruction, so that the problems that the master device and the devices to be bound can only be bound one by one in the related art, and the scenes that a large number of devices to be bound need to be bound are excessively complicated and long in time consumption are solved, and further all the devices to be bound in batches are bound.
It should be noted that, in the above steps, since the master device has the preset function, that is, the master device quickly binds the devices to be bound through the preset function, the speed of binding all the devices to be bound is increased.
In an exemplary embodiment, when the master device has a preset function, obtaining the device list to be bound through the device capability layer of the master device may be implemented in the following manner: receiving the number of the devices to be bound of the main device, which is sent by the device capability layer of the main device; under the condition that the number of the devices to be bound is larger than a preset threshold value, sending an acquisition request for acquiring the device list to be bound to an intermediate plug-in layer of the main device, so that the intermediate plug-in layer forwards the acquisition request to a device capability layer; and receiving the device list to be bound sent by the device capability layer under the condition that the device capability layer receives the acquisition request.
It should be noted that the device list may be specifically presented in a computer in the form of images, texts, and the like, and then the device capability layer may first send the number of the devices to be bound of the master device to the master device page, and the master device page determines whether to send an acquisition request for acquiring the device list to be bound to the device capability layer according to the number of the devices to be bound, and under the condition that the master device page sends the acquisition request for acquiring the device list to be bound, the device capability can send the device list to be bound according to the acquisition request.
Specifically, the master device page may determine whether to send an acquisition request for acquiring the to-be-bound device list to the device capability layer according to one of the following manners: the method comprises the steps of determining the number of devices bound by a main device in advance, and sending an acquisition request for acquiring a device list to be bound to a device capability layer under the condition that the number of the devices to be bound is equal to the number of the devices in advance; determining the number of devices bound by the master device before the master device disconnects the network, and sending an acquisition request for acquiring the device list to be bound to a device capability layer under the condition that the number of the devices to be bound is equal to the number of the devices to be bound.
In an exemplary embodiment, before receiving the number of devices to be bound of the master device sent by the device capability layer of the master device, obtaining, at a cloud platform, a device list having a binding relationship with the master device, where the device list having a binding relationship includes: the device which has a binding relationship with the main device before the main device disconnects the network connection; under the condition that the device capability layer detects an unbound device which is not bound with the main device, matching the unbound device with the device list with the binding relationship; and when the device consistent with the unbound device exists in the device list with the binding relationship, taking the unbound device as the device to be bound.
That is, the device to be bound may be determined according to the following manner: firstly, acquiring first or second equipment which is bound with the main equipment before the main equipment is disconnected from a network by a cloud server corresponding to the main equipment; and then under the condition of the detected unbound device which is not bound with the main device, determining whether the unbound device is consistent with the first device or the first devices which have the binding relationship with the main device before the network connection is disconnected according to the device information of the unbound device, and under the condition that the unbound device is consistent with the first device or the first devices which have the binding relationship with the main device before the network connection is disconnected, determining that the unbound device is the device to be bound.
Further, determining whether the master device has a preset function includes: calling a preset interface through an intermediate plug-in layer of the main equipment, and inquiring equipment fields of the main equipment through the preset interface; and determining whether the main equipment has a preset function or not according to the equipment field, wherein the main equipment is determined to have the preset function under the condition that the equipment field is a first value, and the main equipment is determined not to have the preset function under the condition that the equipment field is a second value.
That is to say, if it is determined whether the master device has the preset function, the device field of the master device needs to be obtained in a preset manner, and then it is determined whether the master device has the preset function according to the device field, and the master device can be quickly bound with the device to be bound only when the master device has the preset function. Determining that the master device has a preset function when the device field is a first value, and determining that the master device does not have the preset function when the device field is a second value, which can be understood as determining that the master device has the preset function when the device field is "1"; in the case that the device field is "0", it is determined that the master device does not have the preset function, and it should be noted that the specific content of the device field is not limited in the embodiment of the present invention.
In an exemplary embodiment, after sending a binding instruction to a device to be bound in the device to be bound list, receiving a binding state between the device to be bound and the master device; and receiving first prompt information under the condition that the binding state indicates that the device to be bound and the main device are successfully bound, wherein the first prompt information is used for indicating that the device to be bound and the main device are successfully bound.
And when all the devices to be bound in the device list to be bound are successfully bound with the main device, informing the page of the main device of successful binding, and executing subsequent network access operation.
In an exemplary embodiment, after receiving a binding state of the device to be bound and the master device, if the binding state indicates that the device to be bound and the master device are not successfully bound, receiving second prompt information, where the second prompt information is used to indicate that the device to be bound and the master device are not successfully bound; and under the condition of receiving the second prompt message, sending a binding instruction to the equipment to be bound in the equipment list to be bound again so that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
In other words, when any one of the band-bound devices in the device list to be bound is not successfully bound with the master device, the page binding failure of the master device and the reason of the binding failure are notified, and when the page of the master device receives the prompt information of the binding failure, the binding instruction is sent to all the devices in the device list to be bound again.
In an exemplary embodiment, after receiving the first prompt message, the method further comprises at least one of: simultaneously sending password information to all the devices to be bound so that all the devices to be bound are accessed to a wireless access point according to the password information; and sending password information to any one of the devices to be bound until the master device sends the password information to all the devices to be bound, so that all the devices to be bound are accessed to the wireless access point according to the password information.
Further, in the case that the master device is successfully bound with the device to be bound, the master device may send the password information to the device to be bound in one of the following manners: and simultaneously sending password information to all the devices to be bound, and respectively sending the password information to all the devices to be bound so that all the devices to be bound are connected with a new network.
In order to better understand the process of the method for establishing the binding relationship, the following describes a flow of the method for establishing the binding relationship with an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a method for establishing a binding relationship is provided, and fig. 3 is a flowchart of a method for establishing a binding relationship according to an optional embodiment of the present invention, as shown in fig. 3, specifically including the following steps:
step S301: opening a main equipment page;
step S302: detecting whether the master device supports the one-key fast connection capability (corresponding to the preset capability in the above embodiment), if the master device does not support the one-key fast connection, executing step S311; if the main device supports one-key fast connection, executing step S303;
step S303: subscribing to the number change of the device list to be bound;
step S304: acquiring a device list to be bound;
step S305: judging the length of the device list to be bound, executing a step S306 under the condition that the length of the device list to be bound is equal to 0, and executing a step S307 under the condition that the length of the device list to be bound is greater than 0;
step S306: waiting;
step S307: the method comprises the steps that main equipment binds to-be-bound equipment in batches;
step S308: monitoring the binding state of each device in the list, and executing step S309 if the device which fails to be bound exists in the list; if the list has the device with the binding failure, executing step S310;
step S309: the main device page prompts the device to be bound that the binding is failed, and asks to retry (which is equivalent to the second prompt message in the above embodiment);
step S310: the main device page prompts that the binding is successful (equivalent to the first prompt message in the above embodiment);
step S311: the flow ends.
In this embodiment, a method for establishing a binding relationship is provided, and fig. 4 is a timing diagram of a method for establishing a binding relationship according to an alternative embodiment of the present invention, as shown in fig. 4, specifically including the following steps:
step S401: detecting whether the current equipment supports one-key quick connection;
step S402: the intermediate plug-in layer sends a request for detecting whether one-key fast connection is supported to the equipment capability layer;
step S403: the device capability layer judges whether the main device supports one-key fast connection, and executes the steps S404-S405 under the condition that the main device supports one-key fast connection; in the case that the master device does not support the one-key quick connection, executing steps S406-S408;
step S404: the equipment capability layer returns information supporting one-key quick connection to the middle plug-in layer;
step S405: the intermediate plug-in layer returns information supporting one-key quick connection to the page of the main equipment;
step S406: the equipment capability layer returns information that the one-key quick connection is not supported to the middle plug-in layer;
step S407: the intermediate plug-in layer returns information which does not support one-key quick connection to the page of the main equipment;
step S408: ending the flow;
step S409: the main device page subscribes to scan bindable devices (equivalent to the devices to be bound in the above embodiment) towards the middle plug-in layer;
step S410: the intermediate plug-in layer subscribes and scans bindable equipment to the equipment capability layer;
step S411: the device capability layer subscribes to scan the bindable devices;
step S412: the device capability layer reports the bindable devices to the middle plug-in layer in real time;
step S413: informing the main device page of the current available device number (which is equivalent to the device number to be bound in the above embodiment);
step S414: determining that bindable equipment exists on a page;
step S415: sending a request for acquiring a bindable list to an intermediate plug-in layer;
step S416: sending a request for acquiring a bindable list to a device capability layer;
step S417: the equipment capability layer sends and acquires a bindable list;
step S418: the equipment capability layer returns the obtained bindable list to the intermediate plug-in layer;
step S419: the intermediate plug-in layer returns a bindable list to the page of the main equipment;
step S420: after the main equipment page obtains the bindable list, starting a one-key binding function;
step S421: the intermediate plug-in layer calls a one-key binding interface of the equipment capability layer;
step S422: the device capability layer binds the bindable devices in the bindable list in a one-key mode;
step S423: the equipment capacity layer returns the binding progress of each equipment to the middle plug-in layer;
step S424: the intermediate plug-in layer returns the binding progress of each device to the page of the main device, and the page of the main device displays the binding progress of each device;
step S425: under the condition that any bindable device fails in binding, the device capability layer returns prompt information of the binding failure of each device to the middle plug-in layer;
step S426: the intermediate plug-in layer returns prompt information of binding failure to the page of the main equipment, and the page of the main equipment displays the prompt information of binding failure;
step S427: under the condition that all the bindable devices are bound successfully, the device capability layer returns prompt information of successful binding of each device to the middle plug-in layer;
step S428: and the intermediate plug-in layer returns prompt information of successful binding to the page of the main equipment, and the page of the main equipment displays the prompt information of successful binding.
According to the optional embodiment, whether the main device has a preset function is determined, wherein the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; sending a binding instruction to the devices to be bound in the device list to be bound to indicate the devices to be bound to establish a binding relationship with the master device according to the binding instruction, so that the problems that the master device and the devices to be bound can only be bound one by one in the related art, and the scenes that a large number of devices to be bound need to be bound are excessively complicated and long in time consumption are solved, and further all the devices to be bound in batches are bound.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Fig. 5 is a block diagram of a device for establishing a binding relationship according to an embodiment of the present invention; as shown in fig. 5, includes:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether the main device has a preset function, the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound;
an obtaining module, configured to obtain, through a device capability layer of the master device, a device list to be bound when the master device has a preset function, where the device list to be bound includes: one or more devices to be bound to which the master device is to be bound;
and the sending module is used for sending a binding instruction to the equipment to be bound in the equipment list to be bound so as to indicate that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
By the device, whether the main equipment has a preset function is determined, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound; under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound; sending a binding instruction to the devices to be bound in the device list to be bound to indicate the devices to be bound to establish a binding relationship with the master device according to the binding instruction, so that the problems that the master device and the devices to be bound can only be bound one by one in the related art, and the scenes that a large number of devices to be bound need to be bound are excessively complicated and long in time consumption are solved, and further all the devices to be bound in batches are bound.
It should be noted that, because the master device has the preset function, that is, the master device quickly binds the devices to be bound through the preset function, the speed of binding all the devices to be bound is increased.
In an exemplary embodiment, the obtaining module is further configured to receive the number of devices to be bound of the master device, where the number is sent by the device capability layer of the master device; under the condition that the number of the devices to be bound is larger than a preset threshold value, sending an acquisition request for acquiring the device list to be bound to an intermediate plug-in layer of the main device, so that the intermediate plug-in layer forwards the acquisition request to a device capability layer; and receiving the device list to be bound sent by the device capability layer under the condition that the device capability layer receives the acquisition request.
It should be noted that the device list may be specifically presented in a computer in the form of images, texts, and the like, and then the device capability layer may first send the number of the devices to be bound of the master device to the master device page, and the master device page determines whether to send an acquisition request for acquiring the device list to be bound to the device capability layer according to the number of the devices to be bound, and under the condition that the master device page sends the acquisition request for acquiring the device list to be bound, the device capability can send the device list to be bound according to the acquisition request.
Specifically, the master device page may determine whether to send an acquisition request for acquiring the to-be-bound device list to the device capability layer according to one of the following manners: the method comprises the steps of determining the number of devices bound by a main device in advance, and sending an acquisition request for acquiring a device list to be bound to a device capability layer under the condition that the number of the devices to be bound is equal to the number of the devices in advance; determining the number of devices bound by the master device before the master device disconnects the network, and sending an acquisition request for acquiring the device list to be bound to a device capability layer under the condition that the number of the devices to be bound is equal to the number of the devices to be bound.
In an exemplary embodiment, the obtaining module is further configured to obtain, at a cloud platform, a device list having a binding relationship with the master device, where the device list having a binding relationship includes: the device which has a binding relationship with the main device before the main device disconnects the network connection; under the condition that the device capability layer detects an unbound device which is not bound with the main device, matching the unbound device with the device list with the binding relationship; and when the device consistent with the unbound device exists in the device list with the binding relationship, taking the unbound device as the device to be bound.
That is, the device to be bound may be determined according to the following manner: firstly, acquiring first or second equipment which is bound with the main equipment before the main equipment is disconnected from a network by a cloud server corresponding to the main equipment; and then under the condition of the detected unbound device which is not bound with the main device, determining whether the unbound device is consistent with the first device or the first devices which have the binding relationship with the main device before the network connection is disconnected according to the device information of the unbound device, and under the condition that the unbound device is consistent with the first device or the first devices which have the binding relationship with the main device before the network connection is disconnected, determining that the unbound device is the device to be bound.
Further, the determining module is further configured to call a preset interface through an intermediate plug-in layer of the main device, and query a device field of the main device through the preset interface; and determining whether the main equipment has a preset function or not according to the equipment field, wherein the main equipment is determined to have the preset function under the condition that the equipment field is a first value, and the main equipment is determined not to have the preset function under the condition that the equipment field is a second value.
That is to say, if it is determined whether the master device has the preset function, the device field of the master device needs to be obtained in a preset manner, and then it is determined whether the master device has the preset function according to the device field, and the master device can be quickly bound with the device to be bound only when the master device has the preset function. Determining that the master device has a preset function when the device field is a first value, and determining that the master device does not have the preset function when the device field is a second value, which can be understood as determining that the master device has the preset function when the device field is "1"; in the case that the device field is "0", it is determined that the master device does not have the preset function, and it should be noted that the specific content of the device field is not limited in the embodiment of the present invention.
In an exemplary embodiment, the obtaining module is further configured to receive a binding state between the device to be bound and the master device; and receiving first prompt information under the condition that the binding state indicates that the device to be bound and the main device are successfully bound, wherein the first prompt information is used for indicating that the device to be bound and the main device are successfully bound.
And when all the devices to be bound in the device list to be bound are successfully bound with the main device, informing the page of the main device of successful binding, and executing subsequent network access operation.
In an exemplary embodiment, the obtaining module is further configured to receive second prompt information when the binding status indicates that the device to be bound and the master device are not successfully bound, where the second prompt information is used to indicate that the device to be bound and the master device are not successfully bound; and under the condition of receiving the second prompt message, sending a binding instruction to the equipment to be bound in the equipment list to be bound again so that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
In other words, when any one of the band-bound devices in the device list to be bound is not successfully bound with the master device, the page binding failure of the master device and the reason of the binding failure are notified, and when the page of the master device receives the prompt information of the binding failure, the binding instruction is sent to all the devices in the device list to be bound again.
In an exemplary embodiment, the sending module is further configured to send password information to all the devices to be bound at the same time, so that all the devices to be bound access a wireless access point according to the password information; and sending password information to any one of the devices to be bound until the master device sends the password information to all the devices to be bound, so that all the devices to be bound are accessed to the wireless access point according to the password information.
Further, in the case that the master device is successfully bound with the device to be bound, the master device may send the password information to the device to be bound in one of the following manners: and simultaneously sending password information to all the devices to be bound, and respectively sending the password information to all the devices to be bound so that all the devices to be bound are connected with a new network.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, determining whether the main device has a preset function, wherein the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound;
s2, acquiring, by the device capability layer of the master device, a device list to be bound under the condition that the master device has a preset function, where the device list to be bound includes: one or more devices to be bound to which the master device is to be bound;
s3, sending a binding instruction to the device to be bound in the device list to be bound to indicate that the device to be bound establishes a binding relationship with the master device according to the binding instruction.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining whether the main device has a preset function, wherein the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound;
s2, acquiring, by the device capability layer of the master device, a device list to be bound under the condition that the master device has a preset function, where the device list to be bound includes: one or more devices to be bound to which the master device is to be bound;
s3, sending a binding instruction to the device to be bound in the device list to be bound to indicate that the device to be bound establishes a binding relationship with the master device according to the binding instruction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for establishing a binding relationship is applied to a main device, and is characterized by comprising the following steps:
determining whether the main equipment has a preset function, wherein the preset function is used for indicating that the binding speed of the binding equipment is greater than a preset threshold value, and the main equipment is used for binding the equipment to be bound;
under the condition that the main device has a preset function, obtaining a device list to be bound through a device capability layer of the main device, wherein the device list to be bound comprises: one or more devices to be bound to which the master device is to be bound;
and sending a binding instruction to the device to be bound in the device list to be bound so as to indicate that the device to be bound establishes a binding relationship with the master device according to the binding instruction.
2. The method for establishing a binding relationship according to claim 1, wherein acquiring, by a device capability layer of the master device, a device list to be bound when the master device has a preset function includes:
receiving the number of the devices to be bound of the main device, which is sent by the device capability layer of the main device;
under the condition that the number of the devices to be bound is larger than a preset threshold value, sending an acquisition request for acquiring the device list to be bound to an intermediate plug-in layer of the main device, so that the intermediate plug-in layer forwards the acquisition request to a device capability layer;
and receiving the device list to be bound sent by the device capability layer under the condition that the device capability layer receives the acquisition request.
3. The method for establishing a binding relationship according to claim 2, wherein before receiving the number of devices to be bound sent by the device capability layer of the master device, the method further comprises:
acquiring a device list having a binding relationship with the master device at a cloud platform, wherein the device list having the binding relationship comprises: the device which has a binding relationship with the main device before the main device disconnects the network connection;
under the condition that the device capability layer detects an unbound device which is not bound with the main device, matching the unbound device with the device list with the binding relationship;
and when the device consistent with the unbound device exists in the device list with the binding relationship, taking the unbound device as the device to be bound.
4. The method for establishing a binding relationship according to claim 1, wherein determining whether the master device has a preset function comprises:
calling a preset interface through an intermediate plug-in layer of the main equipment, and inquiring equipment fields of the main equipment through the preset interface;
and determining whether the main equipment has a preset function or not according to the equipment field, wherein the main equipment is determined to have the preset function under the condition that the equipment field is a first value, and the main equipment is determined not to have the preset function under the condition that the equipment field is a second value.
5. The method for establishing a binding relationship according to claim 1, wherein after sending a binding instruction to the device to be bound in the device to be bound list, the method further comprises:
receiving the binding state of the equipment to be bound and the main equipment;
and receiving first prompt information under the condition that the binding state indicates that the device to be bound and the main device are successfully bound, wherein the first prompt information is used for indicating that the device to be bound and the main device are successfully bound.
6. The method for establishing a binding relationship according to claim 5, wherein after receiving the binding status between the device to be bound and the master device, the method further comprises:
receiving second prompt information under the condition that the binding state indicates that the device to be bound and the main device are not successfully bound, wherein the second prompt information is used for indicating that the device to be bound and the main device are not successfully bound;
and under the condition of receiving the second prompt message, sending a binding instruction to the equipment to be bound in the equipment list to be bound again so that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
7. The method for establishing a binding relationship according to claim 5, wherein after receiving the first prompt message, the method further comprises at least one of:
simultaneously sending password information to all the devices to be bound so that all the devices to be bound are accessed to a wireless access point according to the password information;
and sending password information to any one of the devices to be bound until the master device sends the password information to all the devices to be bound, so that all the devices to be bound are accessed to the wireless access point according to the password information.
8. An apparatus for establishing a binding relationship, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether the main device has a preset function, the preset function is used for indicating that the binding speed of the binding device is greater than a preset threshold value, and the main device is used for binding the device to be bound;
an obtaining module, configured to obtain, through a device capability layer of the master device, a device list to be bound when the master device has a preset function, where the device list to be bound includes: one or more devices to be bound to which the master device is to be bound;
and the sending module is used for sending a binding instruction to the equipment to be bound in the equipment list to be bound so as to indicate that the equipment to be bound establishes a binding relationship with the main equipment according to the binding instruction.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform 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 of any of claims 1 to 7 by means of the computer program.
CN202111243786.6A 2021-10-25 2021-10-25 Method and device for establishing binding relationship, storage medium and electronic device Pending CN114124915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111243786.6A CN114124915A (en) 2021-10-25 2021-10-25 Method and device for establishing binding relationship, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111243786.6A CN114124915A (en) 2021-10-25 2021-10-25 Method and device for establishing binding relationship, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114124915A true CN114124915A (en) 2022-03-01

Family

ID=80376902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111243786.6A Pending CN114124915A (en) 2021-10-25 2021-10-25 Method and device for establishing binding relationship, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114124915A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300117A (en) * 2019-07-05 2019-10-01 杭州博联智能科技股份有限公司 Authentication method, equipment and the medium of IOT equipment and user's binding
CN111885144A (en) * 2020-07-20 2020-11-03 青岛易来智能科技股份有限公司 Equipment binding method and device
CN112437462A (en) * 2020-11-23 2021-03-02 青岛海尔科技有限公司 Quality determination method and device for WIFI module, storage medium and electronic device
CN112737816A (en) * 2020-12-15 2021-04-30 青岛海尔科技有限公司 Equipment binding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300117A (en) * 2019-07-05 2019-10-01 杭州博联智能科技股份有限公司 Authentication method, equipment and the medium of IOT equipment and user's binding
CN111885144A (en) * 2020-07-20 2020-11-03 青岛易来智能科技股份有限公司 Equipment binding method and device
CN112437462A (en) * 2020-11-23 2021-03-02 青岛海尔科技有限公司 Quality determination method and device for WIFI module, storage medium and electronic device
CN112737816A (en) * 2020-12-15 2021-04-30 青岛海尔科技有限公司 Equipment binding method and device

Similar Documents

Publication Publication Date Title
CN105188048A (en) Method, device and terminal equipment for loading customized applications for mobile terminal
US20220361068A1 (en) Communication method and system, base station and terminal
CN107371234B (en) Registration method, device and terminal
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN105828402A (en) Blind redirection method, core network and base station
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN107548054B (en) Master-slave equipment switching method of eSIM card, slave equipment and eSIM card management server
CN107295500B (en) SIM card data control method and device and computer equipment
CN107466022B (en) SIM card switching method, mobile terminal and storage medium
CN112737816B (en) Equipment binding method and device
CN113242542B (en) Network searching control method and device of mobile terminal and mobile terminal
CN109219070B (en) Supplementary service configuration method and device and electronic equipment
CN111818611B (en) Equipment binding method and device
CN107466087B (en) Network searching method and mobile terminal
CN113285810A (en) Target equipment login method and device, storage medium and electronic device
CN111757317B (en) Request processing method, related device and system
CN114124915A (en) Method and device for establishing binding relationship, storage medium and electronic device
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN113613239B (en) Network mode switching method, network mode switching device, medium, and electronic device
CN106993324B (en) Cell selection method and device
CN113676894B (en) Service processing method and equipment
CN107547723B (en) Method and device for receiving information by application
CN110769408A (en) Communication service distribution method, device and computer readable storage medium
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN112332998B (en) Network allocation method and system for equipment and computer readable storage medium

Legal Events

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