Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the rapid development of the internet of things technology, more and more intelligent devices are bound with a cloud platform server. The device binding refers to establishing a connection relationship between the intelligent device and user information stored by the cloud platform server through the APP, so that the intelligent device can be managed and controlled through the APP. It should be noted that, through device binding and device management and control, the smart device manufacturer finally needs to keep the current customer, and further develop the customer into the life customer of the brand, so the experience process of device binding is very important, and is very important as the first step of using the smart product by the user. Therefore, the device binding process is important for the user experience, and in order to improve the user experience, the time for each binding of the device needs to be shortened.
At present, the device binding modes comprise a Bluetooth binding mode, a wireless AP binding mode, an acoustic wave binding mode, a code scanning binding mode and the like, and based on the fact, the current device binding mode can only bind one device at a time. However, when there are more devices to be bound, for example, when there are multiple sub-devices in the packaged device that all need to be bound, each sub-device needs to be bound separately, so that it takes more binding time, and the user experience is further affected.
In addition, even though there is a method for binding devices in batches at present, that is, the device information of all devices to be bound is collected by using the IC card, then the APP reads the device information in the IC card, so as to implement the binding of devices in batches, specifically, see CN114495331a, which is a binding method, a binding device and a binding system of the intelligent lock. However, it can only bind the same type of device in batch and cannot bind a plurality of different types of devices at the same time, and thus, it is still impossible to shorten the binding time of the different types of devices. For example, for home users, the types of smart home devices used are diverse, and it is meaningless to bind only one type of batch method.
In addition, in the above binding manner, the code scanning binding manner generally generates a two-dimensional code based on device information of the device to be bound, for example, generates a two-dimensional code based on at least one information of mac, cmei, sn, and then, the APP of the client device scans the code to identify the corresponding device information, and the APP goes to the server to establish a binding relationship. However, the two-dimensional code information comprises equipment information, a certain potential safety hazard exists, and the user information can be leaked, so that the safety is reduced, and the user experience is finally influenced. For example, a user can discard the packaging box printed with the two-dimensional code at will, and a certain potential safety hazard can be generated after the packaging box is used by a careless person.
In addition, one intelligent device is bound to the cloud platform, at least 1 piece of hardware information (such as mac or sn) of the intelligent device is needed, and if the cloud platform is expected to correlate other information, a complete binding flow is needed, and at least two pieces of information or even more pieces of information of the device are needed. However, too much information is completely placed in the two-dimensional code, the generated two-dimensional code image is too complex, and the identification rate is not high due to the fact that the information capacity of the two-dimensional code which can be identified by the client device is relatively small, and finally complete device information cannot be identified, so that device binding cannot be successfully achieved. For example, the cloud platform performs advertisement information pushing and the like for a certain type of device, and needs to add a device type ID.
In view of the above problems, the present invention proposes the following embodiments. Fig. 1 is a flow chart of a binding method of a package device provided by the present invention, and as shown in fig. 1, the binding method of a package device applied to a gateway device includes:
step 110, judging whether the first information comprises second information, wherein the first information comprises sub-equipment identification information of the at least one sub-equipment received from a server, the server obtains the sub-equipment identification information of the at least one sub-equipment based on the packaged equipment identification information corresponding to the packaged equipment, and the second information is equipment identification information of equipment to be bound, which is obtained by analyzing the received broadcast information.
Here, the packaged device includes at least one sub-device. One suit device corresponds to one suit device identification information, namely at least one piece of sub-device corresponding to the suit device uniformly uses one suit device identification information, so that in a code scanning binding mode, too much information does not need to be completely placed in the two-dimension code, the generated two-dimension code format is simpler, and the code scanning identification rate of a client is improved. The package device identification information may be ID information, i.e. it is a package ID.
In an embodiment, the gateway device is a router, e.g., the gateway device is a router originally deployed by the user. In another embodiment, the gateway device is a gateway device matched with at least one sub-device corresponding to the packaged device, and the gateway device can be independently arranged, i.e. the gateway device is an independent device, and also can be one gateway device in the packaged device.
Here, the server is a server corresponding to at least one piece of sub-equipment corresponding to the packaged equipment. The server is used for establishing a binding relationship between the equipment identification information of the equipment to be bound and the user information of the client, namely the server is equipment for binding at least one piece of sub equipment corresponding to the packaged equipment, namely the server is equipment for establishing a connection relationship with at least one piece of sub equipment corresponding to the packaged equipment. For example, in an application scenario of a home service, the server is an intelligent home cloud platform.
Here, the sub device identification information of the sub device may be hardware information, and the sub device identification information may include, but is not limited to mac, sn, cmei, ID and the like. Further, device information (e.g., configurable information, etc.) of at least one child device may also be received from the server.
Here, the broadcast information is information received by the gateway device in its surrounding environment. It can be understood that if the device in the surrounding environment of the gateway device needs to be bound, the device to be bound needs to perform network access broadcast to enter the network distribution mode, so that the device to be bound needs to broadcast its device identification information. The device identification information may include, but is not limited to mac, sn, cmei, ID or the like. Further, the device to be bound may also broadcast its device information (e.g., configurable information, etc.).
Specifically, the first information and the second information are compared to determine whether the first information includes the second information.
Before the step 110, the server receives the package device identification information corresponding to the package device sent by the client, queries, based on the package device identification information, sub-device identification information of at least one sub-device corresponding to the package device, and sends the sub-device identification information of the at least one sub-device to the gateway device.
In an embodiment, a network access instruction sent by a server is received, and the network access instruction is analyzed to obtain first information. Further, the first information may be stored locally to the gateway device and a distribution mode of the gateway device may be turned on.
Further, whether the gateway equipment is bound with the server side or not is judged, namely whether the gateway equipment and the server side have a connection relation is judged, and if not, the gateway equipment is bound with the server side. In one embodiment, a client collects gateway equipment identification information of gateway equipment and sends the gateway equipment identification information to a server, the server receives the gateway equipment identification information corresponding to the gateway equipment sent by the client, establishes a binding relationship between the gateway equipment identification information and user information of the client, and pushes a message of successful binding to the client.
And 120, if so, determining the equipment to be bound as the child equipment in the packaged equipment, and sending an equipment binding request to the server, wherein the equipment binding request carries equipment identification information of the equipment to be bound.
Specifically, based on the device identification information of the device to be bound, a device binding request corresponding to the device to be bound is generated, so that the device binding request carries the device identification information of the device to be bound, the device binding request sent by the gateway device is received by the server, the device identification information of the device to be bound carried in the device binding request is obtained, and a binding relationship is established between the device identification information of the device to be bound and user information of the client.
The binding method of the package equipment provided by the embodiment of the invention determines whether the first information comprises the second information or not, if so, the equipment to be bound is the sub-equipment in the package equipment, and sends the equipment binding request carrying the equipment identification information of the equipment to be bound to the service end, so that the binding time of the different types of equipment can be shortened, and the service end obtains the sub-equipment identification information of at least one sub-equipment corresponding to the package equipment based on the package equipment identification information corresponding to the package equipment, so that in the code scanning binding mode, too much information is not required to be completely placed in the two-dimensional code, the generated two-dimensional code format is simpler, the code scanning identification rate of the client is further improved, and the user experience is finally improved, namely, the sub-equipment identification information of at least one sub-equipment is obtained at the service end, the client acquisition information does not have the limit of the quantity, the sub-equipment identification information of at least one sub-equipment corresponding to the package equipment does not need to be sent by the client, the safety of user data is further ensured, the safety of the equipment binding is improved, and the package experience is finally improved, and meanwhile, the package experience of the user experience can be greatly improved, and the package equipment can be further greatly received by the at least one sub-equipment is further realized by the first equipment. In summary, the embodiment of the invention can greatly shorten the binding time of the suit equipment, improve the binding efficiency of the suit equipment and further improve the user experience.
Based on any one of the above embodiments, the method in step 110 includes:
receiving a network access instruction sent by the server, and analyzing the network access instruction to obtain the first information;
Storing the first information and starting a distribution network mode;
The second information broadcast by surrounding devices in the environment is received.
Here, the network access instruction carries first information, that is, sub-device identification information of at least one sub-device. For the server, after the server obtains the sub-equipment identification information of at least one sub-equipment, the server generates a network access instruction based on the sub-equipment identification information of at least one sub-equipment, so that the network access instruction carries the sub-equipment identification information of at least one sub-equipment, and sends the network access instruction to the gateway equipment.
In the embodiment of the invention, the first information is stored, so that the subsequent judgment of whether the first information comprises the second information is facilitated. And starting a distribution network mode so as to receive the second information broadcast by surrounding devices in the surrounding environment of the gateway device. And for at least one piece of sub-equipment corresponding to the packaged equipment, all pieces of sub-equipment are powered on and are in a distribution network mode, and at the moment, each piece of sub-equipment broadcasts equipment identification information, namely each piece of sub-equipment sends out distribution network broadcasting.
The binding method of the package equipment receives the network access instruction sent by the server side, analyzes the network access instruction to obtain first information, namely the server side encapsulates the sub-equipment identification information of at least one sub-equipment corresponding to the package equipment in the network access instruction so as to better transmit the sub-equipment identification information of all the sub-equipment, ensure that the at least one sub-equipment corresponding to the package equipment is successfully bound, improve the binding accuracy of the package equipment, store the first information, facilitate the follow-up judgment of whether the first information comprises second information, improve the timeliness and accuracy of network access pairing, further improve the binding efficiency and the binding accuracy of the package equipment, and simultaneously, start a network allocation mode after analyzing the network access instruction to obtain the first information, and reduce the power consumption of the gateway equipment.
Based on any of the above embodiments, after the switching on the distribution network mode, the method further includes:
And/or closing the distribution network mode if the sub-equipment identification information of all the sub-equipment is sent to the server through the equipment binding request.
In consideration of that some surrounding devices do not enter the distribution network mode due to operation problems or failure reasons, the distribution network time of the gateway device can be set to be a preset time, and the distribution network mode of the gateway device is automatically closed after the preset time, namely if the opening time of the distribution network mode reaches the preset time, the distribution network mode is automatically closed. The preset time period can be set according to actual needs, for example, the preset time period is 5 minutes.
If the sub-equipment identification information of at least one sub-equipment is successfully compared with the second information, namely the at least one sub-equipment is successfully allocated, the network allocation mode is automatically closed. In other words, if the sub-device identification information of at least one sub-device is successfully matched with the device identification information of at least one device to be bound, which is obtained by parsing the received broadcast information, the network allocation is not needed, so that the network allocation mode is automatically closed.
According to the binding method for the packaged equipment, if the opening time of the distribution network mode reaches the preset time, the distribution network mode of the gateway equipment is closed, so that the distribution network mode is prevented from being opened for a long time, the power consumption of the gateway equipment is reduced, and if the sub-equipment identification information of at least one sub-equipment corresponding to the packaged equipment is sent to the server through the equipment binding request, the distribution network mode of the gateway equipment is closed, the distribution network mode which is still opened after the distribution network is completed is prevented, and the power consumption of the gateway equipment is reduced.
Based on any one of the above embodiments, the present invention further provides a binding method of a package device, where the method is applied to a server, and fig. 2 is a second schematic flow chart of the binding method of a package device provided by the present invention, as shown in fig. 2, and the method includes:
Step 210, receiving the package equipment identification information corresponding to the package equipment sent by the client.
Here, the packaged device includes at least one sub-device. One suit device corresponds to one suit device identification information, namely at least one piece of sub-device corresponding to the suit device uniformly uses one suit device identification information, so that in a code scanning binding mode, too much information does not need to be completely placed in the two-dimension code, the generated two-dimension code format is simpler, and the code scanning identification rate of a client is improved. The package device identification information is used to uniquely identify the package device, which may be ID information, i.e. it is a package ID.
Here, the client is a user terminal device for deploying an APP, such as a smart phone, a tablet computer, a notebook computer, and so on. The APP is used for binding at least one piece of sub-equipment corresponding to the packaged equipment to the service end, and the APP is also used for controlling the at least one piece of sub-equipment corresponding to the packaged equipment.
In a specific embodiment, a package device binding request sent by a client is received, where the package device binding request carries package device identification information corresponding to a package device. For example, the package device identification information is included in the request body of the package device binding request. More specifically, a package device binding request sent by an APP in a client is received.
Step 220, inquiring and obtaining sub-equipment identification information of the at least one sub-equipment corresponding to the packaged equipment based on the packaged equipment identification information.
Here, the sub device identification information of the sub device may be hardware information, and the sub device identification information may include, but is not limited to mac, sn, cmei, ID and the like. Further, device information (e.g., configurable information, etc.) of at least one child device may also be received from the server.
In some embodiments, the sub-device identification information of at least one sub-device corresponding to the packaged device is queried from the information stored in the server.
In an embodiment, sub-device identification information of at least one sub-device corresponding to the packaged device is queried from the mapping relationship based on the packaged device identification information. The mapping relation comprises the mapping relation of at least one piece of package equipment identification information, and the mapping relation of any piece of package equipment identification information comprises the mapping relation of the package equipment identification information and the piece of sub equipment identification information of at least one piece of sub equipment. In other words, the server stores the mapping relationship, so as to query the sub-device identification information of at least one sub-device through the packaged device identification information.
It can be understood that the sub-equipment identification information of at least one sub-equipment is stored in the server, so that the client does not need to send the sub-equipment identification information of at least one sub-equipment, further, the safety of user data is ensured, the safety is improved, and finally, the user experience is improved.
Further, considering that the number of the corresponding sub-devices can be increased or decreased for the packaged device, in the code scanning binding mode, the sub-device identification information of the fixed number of the sub-devices is placed in the two-dimensional code, and the packaged device cannot be updated, namely the application scene cannot be expanded due to the fact that the two-dimensional code is not easy to replace, in other words, the application surface of the current mode is narrower, and the expansibility is not strong. Based on the above, the invention stores the sub-equipment identification information of at least one sub-equipment in the server through the mapping relation, so that the user can modify the mapping relation, thereby improving the expansibility of the binding of the packaged equipment. The method comprises the steps of obtaining a mapping relation modifying instruction, modifying a mapping relation based on the mapping relation modifying instruction, and more specifically obtaining a mapping relation modifying instruction, determining package equipment identification information based on the mapping relation modifying instruction, and modifying the mapping relation corresponding to the package equipment identification information.
In other embodiments, the sub-device identification information of at least one sub-device corresponding to the packaged device is obtained by querying from other devices, so that the client does not need to send the sub-device identification information of at least one sub-device, further, the safety of user data is ensured, the safety is improved, and finally, the user experience is improved.
And step 230, transmitting the sub-device identification information of the at least one sub-device to the gateway device.
In an embodiment, the sub-device identification information of the at least one sub-device is directly sent to the gateway device.
In another embodiment, the network access instruction is generated based on the sub-device identification information of the at least one sub-device, so that the network access instruction carries the sub-device identification information of the at least one sub-device, and the network access instruction is sent to the gateway device. It can be understood that the server encapsulates the sub-device identification information of at least one sub-device corresponding to the packaged device in the network access instruction, so as to better transmit the sub-device identification information of all the sub-devices, ensure that the at least one sub-device corresponding to the packaged device is successfully bound, and improve the binding accuracy of the packaged device.
In one embodiment, gateway equipment identification information sent by a client is received, and gateway equipment for sending sub-equipment identification information is determined based on the gateway equipment identification information. The gateway device identification information is used to uniquely identify the gateway device, e.g. it is gateway ID information.
In another embodiment, the gateway device that is to send the sub-device identification information is directly determined based on the packaged device identification information. The server stores the mapping relation between the package equipment identification information and the gateway equipment.
Step 240, receiving a device binding request sent by the gateway device, and obtaining device identification information of the device to be bound carried in the device binding request.
Here, the device to be bound is a child device corresponding to the packaged device. The device identification information of the device to be bound is parsed based on broadcast information of the device to be bound, which may include, but is not limited to mac, sn, cmei, ID and the like.
Step 250, a binding relationship is established between the device identification information of the device to be bound and the user information of the client, and a message of successful binding is pushed to the client.
Specifically, a binding relationship is established between the device identification information of the device to be bound and the user information of the client, so that the device to be bound is bound to the server, and the device binding of the device to be bound is realized. Further, the binding relationship may be stored for subsequent further processing based on the binding relationship.
In a specific embodiment, based on the device identification information of the device to be bound, binding success information of the device to be bound is generated, and the binding success information is pushed to the client. More specifically, the binding success information is pushed to the APP of the client.
The message of successful binding is used for prompting that the equipment to be bound is successful in binding, namely, prompting that the equipment to be bound is successful in binding with the server side. Specifically, the information of successful binding is sent to the client, so that after the client receives the information of successful binding, the user is informed through prompt, and the user can be guided to go to a corresponding equipment management page to perform equipment management and control operation.
According to the binding method of the package equipment, the server receives package equipment identification information corresponding to the package equipment sent by the client, so that in a code scanning binding mode, too much information is not required to be completely placed in two-dimensional codes, the generated two-dimensional code format is simpler, the code scanning identification rate of the client is further improved, and finally the user experience is improved, namely, the piece of equipment identification information of at least one piece of equipment is obtained at the server, the client acquisition information is not limited in number, the piece of equipment identification information of at least one piece of equipment corresponding to the package equipment is obtained through inquiry based on the package equipment identification information, the piece of equipment identification information of at least one piece of equipment corresponding to the package equipment is not required to be sent by the client, the safety of package equipment binding is further guaranteed, and finally the user experience is improved, after that, the piece of equipment identification information of at least one piece of equipment is sent to the gateway equipment, so that the equipment identification information of equipment to be bound carried in the equipment binding request is obtained, the equipment identification information of equipment to be bound and the client are not limited in number, the binding relation between the equipment identification information of the equipment to be bound and the client is achieved, the user equipment can be bound by the same time can be greatly shortened, the user experience can be further improved, the user experience is further is improved, the user experience is better can be realized, and the user experience is better is achieved. In summary, the embodiment of the invention can greatly shorten the binding time of the suit equipment, improve the binding efficiency of the suit equipment and further improve the user experience.
Based on any of the above embodiments, before the step 230, the method further includes:
and receiving gateway equipment identification information sent by the client.
Here, the package device identification information is used to uniquely identify the package device, which may be ID information, i.e., it is a package ID.
In an embodiment, a package device binding request sent by a client is received, where the package device binding request carries package device identification information and gateway device identification information corresponding to a package device. For example, the request body of the package device binding request includes the package device identification information and the gateway device identification information. More specifically, a package device binding request sent by an APP in a client is received. For the client, the client generates a package device binding request based on the package device identification information and the gateway device identification information, and sends the package device binding request to the server.
Accordingly, the step 230 includes:
and transmitting the sub-equipment identification information of the at least one sub-equipment to gateway equipment corresponding to the gateway equipment identification information.
It can be understood that, receiving the gateway device identification information sent by the client may determine, by the client, the gateway device currently performing the network configuration, for example, in the case that there are multiple gateway devices, the user decides, by the client, which gateway device to use, and finally, the user experience is improved.
According to the binding method of the package equipment, which is the gateway equipment matched with the package equipment, can be accurately determined, so that the sub-equipment identification information of at least one sub-equipment is accurately sent to the gateway equipment, and the binding accuracy of the package equipment is improved.
Based on any of the above embodiments, after the step 250, the method further includes:
If the equipment identification information of the at least one piece of sub equipment and the user information of the client end all establish a binding relationship, acquiring a linkage rule corresponding to the packaged equipment from the mapping relationship of the identification information and the linkage rule based on the packaged equipment identification information, so as to control the at least one piece of sub equipment based on the linkage rule.
The mapping relationship between the identification information and the linkage rule comprises a mapping relationship between at least one piece of package equipment identification information, and the mapping relationship between any piece of package equipment identification information comprises a mapping relationship between the package equipment identification information and at least one linkage rule, namely a plurality of linkage rules recommended by one package equipment can be provided, so that one linkage rule is screened out from the plurality of recommended linkage rules. For example, in a smart home application scenario, the linkage rule is a basic rule that implements intelligent linkage for a whole house. The mapping relationship between the identification information and the linkage rule can be set in advance, or can be updated in real time, for example, based on a mapping relationship updating instruction of a user.
Specifically, based on the identification information of the packaged equipment, the recommended linkage rule of the packaged equipment is inquired and obtained from the mapping relation of the identification information and the linkage rule, so that the linkage rule is created for the packaged equipment based on the linkage rule.
Further, the linkage rule is sent to the client for the user to view the linkage rule through the client, i.e. the client displays the linkage rule, or for the client to guide the user to use the linkage rule. The mode of displaying the linkage rule can be a popup frame mode or a Toast popup window mode, so that a user is informed of the linkage rule in a friendly mode through the popup frame or the Toast prompt, and further user experience is improved.
Further, linkage rule creation success information is generated, and the linkage rule creation success information is sent to the client side so that a user can check the linkage rule creation success information through the client side. Specifically, the linkage rule can be informed of successful creation information through a bulletin frame or a Toast prompt, so that the user experience is further improved.
According to the binding method of the package equipment, provided by the embodiment of the invention, the fact that the current linkage rule is fixed and is not pushed to a user for viewing is considered, and for a common user, the linkage rule learning threshold is higher, so that the utilization rate of the linkage rule is lower, and the user experience is influenced. Therefore, if the device identification information of at least one piece of sub-equipment and the user information of the client end all establish a binding relationship, the linkage rule corresponding to the packaged equipment is obtained from the mapping relationship of the identification information and the linkage rule, so that automatic generation of the linkage rule is realized, the linkage rule is determined according to the type of the packaged equipment, namely, the linkage rule is determined according to the characteristics of the packaged equipment, thereby intelligently realizing establishment of the linkage rule, facilitating intelligent experience of a user, improving user experience sense and finally improving user viscosity.
Based on any of the above embodiments, after the linkage rule corresponding to the packaged device is obtained from the mapping relationship between the identification information and the linkage rule based on the identification information of the packaged device, the method further includes:
acquiring user portrait information corresponding to the client;
And adjusting the linkage rule based on the user portrait information.
Here, the user portrait information is information of a user who uses the package device, which is also information of a user who uses the client, that is, which is information of a user who uses the APP in the client.
In one embodiment, user portrait information sent by a client is received. In another embodiment, other relevant information sent by the client is received, and user portrait information is acquired based on the other relevant information.
It can be understood that under the same suit equipment identification information, namely under the same suit equipment, different user portrait information can correspond to different linkage rules, so that the linkage rules are automatically adjusted based on the user portrait information, namely, the linkage rules are automatically adjusted at a server according to the user portrait, so that different linkage rules (intelligent scenes) are recommended for binding the same suit equipment, thereby further improving the intelligent experience, namely, further improving the user experience sense and finally improving the user viscosity.
For example, the user profile information includes a habit of opening a mobile phone APP (client) by a user about 7:00 a day, based on which if a bedside lamp is included in the packaged device, the linkage rule may be "7:00 a morning-open bedroom bedside lamp". Further, the user portrait information can be recorded through APP background dotting and sent to the server.
According to the binding method of the package equipment, provided by the embodiment of the invention, the linkage rule is adjusted based on the user portrait information, so that the personalized adjustment of the linkage rule is realized, the establishment of the linkage rule is realized intelligently, the intelligent experience is further improved, namely the user experience sense is further improved, and finally the user viscosity is further improved.
Based on any of the above embodiments, after the linkage rule corresponding to the packaged device is obtained from the mapping relationship between the identification information and the linkage rule based on the identification information of the packaged device, the method further includes:
transmitting the linkage rule to the client for modifying the linkage rule by the client;
And receiving the modified linkage rule sent by the client.
For the client, the client displays the linkage rule for the client device to guide the user to modify the linkage rule. The mode of displaying the linkage rule can be a popup frame mode or a Toast popup window mode, so that a user is informed of the linkage rule in a friendly mode through the popup frame or the Toast prompt, the user is guided to change the linkage rule, and further user experience is improved.
Further, the linkage rule is adjusted based on the user portrait information, and then the adjusted linkage rule is sent to the client for modification of the adjusted linkage rule through the client. Or the linkage rule is sent to the client side for modifying the linkage rule by the client side, the modified linkage rule sent by the client side is received, and the modified linkage rule is adjusted based on the user portrait information.
The binding method of the packaged equipment provided by the embodiment of the invention sends the linkage rule to the client, for modifying the linkage rules by the client, receiving the modified linkage rules sent by the client, therefore, personalized adjustment of the linkage rules is achieved, establishment of the linkage rules is achieved intelligently, intelligent experience is further improved, namely user experience is further improved, and finally user viscosity is further improved.
Based on any one of the above embodiments, the present invention further provides a binding method of a package device, where the method is applied to a client, and fig. 3 is a third flow chart of the binding method of a package device provided by the present invention, as shown in fig. 3, and the method includes:
step 310, collecting the identification information of the suit device corresponding to the suit device.
Here, the packaged device includes at least one sub-device. One suit device corresponds to one suit device identification information, namely at least one piece of sub-device corresponding to the suit device uniformly uses one suit device identification information, so that in a code scanning binding mode, too much information does not need to be completely placed in the two-dimension code, the generated two-dimension code format is simpler, and the code scanning identification rate of a client is improved.
The package device identification information is used to uniquely identify the package device, and illustratively, the package device identification information may be ID information, i.e., it is a package ID.
The set equipment identification information can be obtained through a code scanning mode, and also can be obtained through a Bluetooth mode, an AP mode, a ZigBee mode, an acoustic wave mode and the like.
In an embodiment, after the step 310, it is determined whether the gateway device is bound to the server, that is, whether a connection relationship is established between the gateway device and the server, if so, no processing is required, and if not, a binding prompt message of the gateway device is displayed to prompt the user to unbind the gateway device. Further, judging whether the supported gateway equipment exists under the user information (such as a user name) corresponding to the client, and outputting prompt information to prompt the user to bind the gateway equipment if the supported gateway equipment does not exist.
Step 320, the package device identification information is sent to a server, so that the server can query and obtain sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
In one embodiment, the package device identification information is directly sent to the server.
In another embodiment, a package device binding request is generated based on the package device identification information, such that the package device binding request carries the package device identification information, and the package device binding request is sent to the server.
The method for binding the package equipment provided by the embodiment of the invention collects package equipment identification information corresponding to the package equipment, so that in a code scanning binding mode, too much information is not required to be completely placed in two-dimension codes, the generated two-dimension code format is simpler, the code scanning recognition rate of a client is further improved, and finally the user experience is improved, namely, the sub-equipment identification information of at least one sub-equipment is obtained at a server, the quantity of the acquired information of the client is not limited, the package equipment identification information is sent to the server, the client does not need to send the sub-equipment identification information of at least one sub-equipment corresponding to the package equipment, the user data safety is further ensured, the binding safety of the package equipment is improved, and finally the user experience is improved. In summary, the embodiment of the invention can greatly shorten the binding time of the suit equipment, improve the binding efficiency of the suit equipment and further improve the user experience.
Based on any of the above embodiments, the method further comprises:
identifying gateway equipment which establishes a binding relation with user information of the client, and acquiring gateway equipment identification information of the gateway equipment;
and sending the gateway equipment identification information to the server.
In an embodiment, user information of a client is sent to a server, so that the server determines at least one gateway device establishing a binding relationship with the user information based on the user information, and the server sends gateway device identification information of the at least one gateway device to the client, so that the client determines currently required gateway devices and gateway device identification information thereof based on the gateway device identification information of the at least one gateway device. If the number of the at least one gateway device is a plurality of gateway devices, a gateway selection instruction is received, and the currently required gateway device and the gateway device identification information thereof are determined based on the gateway selection instruction.
In another embodiment, a gateway selection instruction is received, gateway equipment establishing a binding relationship with user information of a client is identified based on the gateway selection instruction, and gateway equipment identification information of the gateway equipment is obtained.
In one embodiment, the gateway device identification information is directly sent to the server.
In another embodiment, a package device binding request is generated based on the package device identification information and the gateway device identification information, such that the package device binding request carries the package device identification information and the gateway device identification information, and the package device binding request is sent to the server.
According to the binding method of the package equipment, which is the gateway equipment matched with the package equipment, can be accurately determined, and the gateway equipment identification information of the gateway equipment is sent to the server side, so that the server side can accurately send the sub-equipment identification information of at least one sub-equipment corresponding to the package equipment to the gateway equipment, and the binding accuracy of the package equipment is further improved.
Based on any one of the above embodiments, the method in step 310 includes:
collecting two-dimensional code information corresponding to the packaged equipment;
and if the identification information of the client exists in the two-dimensional code information, acquiring the identification information of the packaged equipment in the two-dimensional code information.
It should be noted that, one suit device corresponds to one two-dimensional code, and the setting position of the two-dimensional code is not particularly limited, for example, any sub-device or gateway device set in the suit device, or a package paper box or a specification set on each device, and the like.
Specifically, the two-dimensional code information corresponding to the packaged equipment is obtained by scanning the two-dimensional code through the client. In an embodiment, a two-dimensional code scanning image of the packaged device is obtained, and the two-dimensional code scanning image is analyzed to obtain two-dimensional code information. The two-dimensional code scanning image can be obtained through shooting by the client device, for example, through scanning by the client device.
Here, the identification information is identification information matched with the client, and further, is identification information matched with the APP in the client device, so that whether the two-dimensional code information meets the requirement or not is judged based on the identification information, that is, whether the current two-dimensional code is the two-dimensional code supported by the client is judged, and further, whether the current two-dimensional code is the two-dimensional code supported by the APP is judged.
In an embodiment, whether identification information of a client exists in the two-dimensional code information is judged, if so, the package equipment identification information in the two-dimensional code information is acquired, and if not, prompt information is generated to prompt that the two-dimensional code is not supported.
In an embodiment, after determining that the identification information of the client exists in the two-dimensional code information, judging whether the two-dimensional code information includes the identification information of the packaged equipment, if so, acquiring the identification information of the packaged equipment in the two-dimensional code information, and if not, returning to the step of acquiring the two-dimensional code information corresponding to the packaged equipment.
In one embodiment, the two-dimensional code format is as follows:
https://yyyyyyysuitId=xxxxxxxx;
wherein yyyyyyy is identification information of the client, and xxxxxxx is identification information of the packaged device.
The binding method of the package equipment acquires package equipment identification information in the two-dimensional code information, so that the package equipment identification information in the two-dimensional code information is not required to be completely placed in the two-dimensional code, the generated two-dimensional code format is simpler, the code scanning identification rate of a client is improved, the user experience is finally improved, whether the identification information of the client equipment exists in the two-dimensional code information is firstly determined, other irrelevant two-dimensional codes are prevented from being identified, the binding safety of the package equipment is further improved, and the user experience is finally improved.
Based on any of the above embodiments, after step 320, the method further includes:
Receiving a linkage rule corresponding to the packaged equipment sent by the server;
Displaying the linkage rule;
Acquiring a rule modification instruction, and modifying the linkage rule based on the rule modification instruction;
And sending the modified linkage rule to the server.
The mode of displaying the linkage rule can be a popup frame mode or a Toast popup window mode, and the like, so that a user is informed of the linkage rule in a friendly manner through the popup frame or the Toast prompt, the user is guided to change the linkage rule, and the user experience is further improved.
Here, the rule modification instruction is an instruction triggered by the user based on the client.
According to the binding method of the package equipment, provided by the embodiment of the invention, the rule modification instruction is obtained, the linkage rule corresponding to the package equipment is modified based on the rule modification instruction, and the modified linkage rule is sent to the server, so that personalized adjustment of the linkage rule is realized, establishment of the linkage rule is realized intelligently, intelligent experience is further improved, namely user experience sense is further improved, and finally user viscosity is further improved.
In order to facilitate understanding of the above embodiments, a specific embodiment is described herein. As shown in fig. 4, the binding method of the packaged device includes:
step 401, binding the gateway device to the server through the client, so that the gateway device and the server establish a long connection. If the gateway equipment and the server are bound, the step is not needed.
Step 402, powering up at least one piece of sub-equipment corresponding to the packaged equipment and entering a distribution network state. And at least one piece of sub-equipment corresponding to the packaged equipment sends out distribution network broadcasting.
Step 403, scanning the two-dimension code of the packaged device through the client to obtain two-dimension code information.
Step 404, determining whether the identification information of the client exists in the two-dimensional code information.
Step 405, if the two-dimensional code information exists, obtaining the package equipment identification information of the package equipment based on the two-dimensional code information, and reporting the package equipment identification information to the server.
Step 406, if not, prompting the two-dimensional code error.
Step 407, inquiring sub-device identification information of at least one sub-device corresponding to the packaged device based on the packaged device identification information.
Step 408, if it is found, generating a network access instruction based on the identification information of each sub-device, and issuing the network access instruction to the gateway device.
Step 409, if the query is not found, prompting that the two-dimensional code is illegal.
In step 410, the gateway device opens a distribution network mode and parses and compares broadcast information of surrounding sub-devices.
In step 411, the successfully compared sub-devices are bound to the server. If there are unbound sub-devices in the packaged device, return to step 410.
Step 412, if the comparison is unsuccessful, prompting the corresponding sub-device to fail to access the network.
In step 413, if all the sub-devices in the packaged device are bound, the gateway device closes the distribution network mode.
In step 414, the server generates a linkage rule, and pushes the linkage rule to the client.
In step 415, the client performs intelligent scene display according to the linkage rule.
Based on the embodiments, the method and the device can bind a plurality of devices at the same time, can solve the problems of long flow, long time and poor experience caused by the fact that single-device binding is carried out for many times in the current market, and meanwhile, at least one piece of sub-device corresponding to the packaged device is placed at a server, and only the light-weight packaged device identification information is placed on the two-dimensional code, so that the code scanning recognition rate is higher, and the device information is safer.
The binding system of the packaged device provided by the invention is described below, and the binding system of the packaged device described below and the binding method of the packaged device described above can be referred to correspondingly. The binding system of the package equipment comprises a server side, a client side, gateway equipment and at least one piece of sub equipment corresponding to the package equipment. The binding method of any one of the package devices applied to the server is realized when the processor in the server executes the program. The binding method of the package equipment applied to the client is realized when the processor in the client executes the program. And when the processor in the gateway equipment executes the program, the binding method of any one of the package equipment applied to the gateway equipment is realized. For easy understanding of the binding system of the package device, an embodiment is described herein, and as shown in fig. 5, the binding system of the package device includes a package device, a service end, and a client, where the package device includes at least one sub-device and a gateway device, each sub-device in the package device needs to be connected to the service end, the client needs to obtain package device identification information of the package device, and the client needs to bind at least one sub-device to the service end, and the service end can push various relevant information to the client.
The binding device of the packaged equipment provided by the invention is described below, and the binding device of the packaged equipment described below and the binding method of the packaged equipment described above can be correspondingly referred to each other.
Fig. 6 is a schematic structural diagram of a binding apparatus of a packaged device provided by the present invention, as shown in fig. 6, the binding apparatus of a packaged device disposed in a gateway device includes:
an information determining module 610, configured to determine whether first information includes second information, where the first information includes sub-device identification information of the at least one sub-device received from a server, the server obtains sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information is device identification information of a device to be bound obtained by parsing from the received broadcast information;
And the request sending module 620 is configured to determine that the device to be bound is a child device in the set device if yes, and send a device binding request to the server, where the device binding request carries device identification information of the device to be bound.
Fig. 7 is a second schematic structural diagram of a binding device of a packaged device provided by the present invention, as shown in fig. 7, the binding device of a packaged device disposed at a server side includes:
An information receiving module 710, configured to receive package device identification information corresponding to the package device sent by the client;
an information query module 720, configured to query, based on the package device identification information, sub device identification information of the at least one sub device corresponding to the package device;
a first sending module 730, configured to send the sub-device identification information of the at least one sub-device to a gateway device;
The request receiving module 740 is configured to receive a device binding request sent by the gateway device, and obtain device identification information of a device to be bound carried in the device binding request;
And the device binding module 750 is configured to establish a binding relationship between the device identification information of the device to be bound and the user information of the client, and push a message that the binding is successful to the client.
Fig. 8 is a third schematic structural diagram of a binding apparatus of a packaged device according to the present invention, as shown in fig. 8, where the binding apparatus of a packaged device disposed at a client includes:
The information collection module 810 is configured to collect package device identification information corresponding to the package device;
And the second sending module 820 is configured to send the package device identification information to a server, so that the server obtains sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
Fig. 9 illustrates a physical schematic diagram of an electronic device, which may include a processor (processor) 910, a communication interface (Communications Interface) 920, a memory 930, and a communication bus 940, where the processor 910, the communication interface 920, and the memory 930 perform communication with each other through the communication bus 940, as shown in fig. 9. The processor 910 may call the logic instruction in the memory 930 to execute the binding method of the package device applied to the gateway device, where the method includes determining whether the first information includes the sub-device identification information of the at least one sub-device received from the server, where the server obtains the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, where the second information is the device identification information of the device to be bound obtained by parsing the received broadcast information, if yes, determining that the device to be bound is a sub-device in the package device, and sending a device binding request to the server, where the device binding request carries the device identification information of the device to be bound. Or executing the binding method of the package equipment applied to the server, the method comprises the steps of receiving package equipment identification information corresponding to the package equipment sent by a client, inquiring sub-equipment identification information of at least one sub-equipment corresponding to the package equipment based on the package equipment identification information, sending the sub-equipment identification information of the at least one sub-equipment to gateway equipment, receiving an equipment binding request sent by the gateway equipment, obtaining equipment identification information of equipment to be bound carried in the equipment binding request, establishing a binding relation between the equipment identification information of the equipment to be bound and user information of the client, and pushing a successful binding message to the client. Or executing the binding method of the package equipment applied to the client, wherein the binding method comprises the steps of collecting package equipment identification information corresponding to the package equipment, and sending the package equipment identification information to a server for the server to inquire and obtain sub-equipment identification information of at least one sub-equipment corresponding to the package equipment based on the package equipment identification information.
Further, the logic instructions in the memory 930 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented when executed by a processor to perform the binding method of the package device provided by the foregoing methods for a gateway device, where the method includes determining whether first information includes second information, where the first information includes sub-device identification information of the at least one sub-device received from a server, where the server obtains the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, where the second information is device identification information of a device to be bound that is parsed from received broadcast information, and if yes, determining that the device to be bound is a sub-device in the package device, and sending a device binding request to the server, where the device binding request carries the device identification information of the device to be bound. Or the computer program is implemented when being executed by a processor to execute the binding method of the package equipment applied to the server provided by the methods, the method comprises the steps of receiving package equipment identification information corresponding to the package equipment sent by a client, inquiring sub-equipment identification information of at least one sub-equipment corresponding to the package equipment based on the package equipment identification information, sending the sub-equipment identification information of the at least one sub-equipment to gateway equipment, receiving an equipment binding request sent by the gateway equipment, obtaining equipment identification information of equipment to be bound carried in the equipment binding request, establishing a binding relation between the equipment identification information of the equipment to be bound and user information of the client, and pushing a message of successful binding to the client. Or the computer program is implemented when being executed by a processor to execute the binding method of the package equipment applied to the client provided by the methods, and the method comprises the steps of collecting package equipment identification information corresponding to the package equipment, and sending the package equipment identification information to a server for the server to inquire and obtain sub-equipment identification information of at least one sub-equipment corresponding to the package equipment based on the package equipment identification information.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.