Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description of the embodiments of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The device binding refers to establishing a mapping relationship between the device identifier and the user identifier, and further determining the usage right of the device, where the mapping relationship may be a one-to-one mapping relationship, a one-to-many mapping relationship from the user identifier to the device identifier, a one-to-many mapping relationship from the device identifier to the user identifier, or a many-to-many mapping relationship.
During the process of using the device, the user needs to be bound with the device to determine the usage right of the device. On one hand, from the safety point of view, the binding of the user and the equipment can prevent the equipment from being controlled by other people; on the other hand, for the equipment capable of being intelligently controlled, due to the consideration of convenience of use, the user equipment is bound, and the user can realize control and authority management of the equipment after logging in an account at the user terminal, for example, an intelligent air conditioner installed at a user home, and after the equipment identifier of the intelligent air conditioner is bound with the user identifier, the user can remotely control the intelligent air conditioner through equipment such as a mobile phone and a tablet, or check running data, historical data and the like of the air conditioner.
In the related art, a binding method of a user equipment includes: when the configured device is networked, the user terminal receives the prompt information, the user executes target operation on the device according to the prompt information, for example, the user presses a designated button to complete binding, and the user executes the target operation on the device according to the prompt information, which is equivalent to binding and rechecking verification.
In the device configuration method provided by the embodiment of the invention, data are interacted among the mall server, the logistics platform (logistics server) and the device management platform, and the automatic binding of the device identifier and the user identifier can be realized through the data interaction among the three platforms.
After a shopping user purchases a certain device, order information is generated in a mall server, and an alternative user identifier can be analyzed based on the order information. The logistics platform is also connected with a logistics terminal, the logistics terminal can be a scanning gun, and the logistics platform can obtain the equipment identification through the logistics terminal; the logistics platform can be in communication connection with the mall server, so that order information can be obtained. In some embodiments, the device management platform may be communicatively connected to the logistics platform, or the device management platform may be communicatively connected to the logistics platform and the mall server, or the device management platform may be communicatively connected to the logistics terminal and the mall server.
The device configuration method of the embodiment of the present invention is described below with reference to fig. 1 to 2. The execution main body of the method can be an equipment management platform, the equipment management platform is used for establishing and storing the mapping relation between the equipment and the user, and the equipment management platform can be an equipment management server.
As shown in fig. 1, the device configuration method provided by the embodiment of the present invention includes steps 110 to 120.
Step 110, receiving a binding request, where the binding request includes a device identifier and a target user identifier.
It will be appreciated that when a device needs to be bound to a user, the device needs to be network configured. The network configuration of the device can be performed through manual network configuration of a user, or through a mode that a distribution network auxiliary tool such as an APP automatically discovers peripheral new devices, for example, a user terminal logs in a user account through the APP, and then initiates the network configuration on the APP.
The device identifier included in the binding request is the device identifier of the device to be bound, the target user identifier included in the binding request is the target user identifier of the user to be bound, and the target user identifier can be an account number, a mobile phone number, a mailbox or other unique identifiers of the user.
In actual implementation, step 100, receiving a binding request, where the binding request includes a device identifier and a target user identifier, and includes at least the following three implementation manners.
The first implementation mode comprises the following steps: and receiving a first binding request sent by the equipment, wherein the first binding request comprises an equipment identifier and a target user identifier.
In other words, the binding request is sent by the device, for example, the device has a data sending module, and the data sending module sends the device identifier and the target user identifier to the device management platform. In actual execution, the device may have a scanning module, and the scanning module of the device may scan the two-dimensional code of the user terminal to obtain a target user identifier, and send the target user identifier and the device identifier to the device management platform; of course, it may also be initiated by other means, including but not limited to NFC tags.
The second embodiment: and receiving a second binding request sent by the user terminal, wherein the second binding request comprises the target user identifier and the equipment identifier.
When the user terminal performs network configuration on the device, the user terminal may send a second binding request to the device management platform, where the second binding request may include a target user identifier corresponding to the user terminal, where the target user identifier may be an account, a mobile phone number, a mailbox, or another unique identifier of the user, or multiple target user identifiers may be used, and the multiple target user identifiers form a group, and the group may be a family group, a company group, or a user-defined group, according to different usage scenarios. In actual execution, the user terminal may have a scanning module, and the scanning module of the user terminal may scan the two-dimensional code of the device to obtain a device identifier, and send the target user identifier and the device identifier to the device management platform; of course, it may also be initiated by other means, including but not limited to NFC tags.
The third embodiment is as follows: receiving a first binding request sent by a device, wherein the first binding request comprises a device identifier and a target user identifier, and receiving a second binding request sent by a user terminal, and the second binding request comprises the target user identifier and the device identifier.
In actual execution, the user terminal may have a scanning module, and the scanning module of the user terminal may scan the two-dimensional code of the device to obtain a device identifier, and send the target user identifier and the device identifier to the device management platform; of course, it may also be initiated by other means, including but not limited to NFC tags. The user terminal also sends the target user identification to the equipment, and the equipment also sends the target user identification and the equipment identification to the equipment management platform.
In other words, when a binding request is initiated, both the device and the user terminal send a binding request, and the device management platform performs the next determination after receiving the first binding request and the second binding request, and the device identifiers included in the two binding requests are the same and the target user identifier is the same.
Step 120, determining that an alternative user identifier corresponding to the device identifier in the pre-stored mapping relationship information of the user device is consistent with the target user identifier, and binding the device identifier and the target user identifier, wherein the alternative user identifier is confirmed based on the order information of the device corresponding to the device identifier.
It can be understood that the device management platform prestores user device mapping relationship information, where the user device mapping relationship information includes mappings between at least one pair of alternative user identifiers and device identifiers, and for each pair of mappings between an alternative user identifier and a device identifier, the alternative user identifier and the device identifier have a possibility of being bound.
The alternative user identities are confirmed based on the order information of the devices to which the device identities correspond, in other words, the device to which each device identity corresponds must correspond to a certain order information, and the alternative user identities are also confirmed based on the order information. Such as the user corresponding to the alternative user identification purchased the device corresponding to the device identification.
When the candidate user identifier corresponding to the device identifier in the user device mapping relationship information is determined to be consistent with the target user identifier, the reasonability and correctness of the current binding can be determined according to the pre-stored user device mapping relationship information and the current binding request, and the device identifier and the target user identifier are directly bound.
Step 120 includes: based on the equipment identification, searching for an alternative user identification corresponding to the equipment identification from prestored user equipment mapping relation information; and determining that the alternative user identification is consistent with the target user identification, and binding the equipment identification and the target user identification.
It can be understood that, in the pre-stored mapping relationship information of the user equipment, the equipment identifier has a unique corresponding alternative user identifier, and if the alternative user identifier is consistent with the target user identifier currently requested to be bound, the equipment identifier and the target user identifier can be directly bound, so as to implement the physical control right of the user on the equipment. The method is simple, convenient and accurate.
That is, when the device identifier and the target user identifier corresponding to the first binding request and the second binding request exist in the mapping relationship information of the user device, the physical control right of the user to the device can be realized without the user confirming the current binding request again.
According to the equipment configuration method provided by the embodiment of the invention, before the equipment is configured with the network, the equipment-user mapping relation is stored in the equipment management platform, so that the automatic binding of the equipment identifier and the user identifier can be realized, the user operation is simplified, and the user experience is improved.
It can be understood that, in the first embodiment, if technologies such as "automatic device discovery" and "automatic configuration" are combined, after the device is powered on, the distribution network binding can be completed fully automatically, and then the distribution network binding of batch devices can be completed automatically.
In some embodiments, the alternative user identification includes an order user identification corresponding to the order information. In this way, automatic binding can only be achieved if the target user identity is identical to the alternative user identity. The binding accuracy of the device configuration method is high.
In other embodiments, the alternative user identifier includes an order user identifier corresponding to the order information and a user identifier having a target association relationship with the order user identifier.
It should be noted that the user identifier having the target association relationship with the order user identifier may be determined based on a target group in which the order user identifier is located, including a family group or other user-defined groups.
The alternative user identifiers comprise a plurality of alternative user identifiers, and the alternative user identifiers are determined based on the group relationship of the user corresponding to the order user identifier, so that the mapping relationship of one device identifier corresponding to the plurality of alternative user identifiers can be formed in the generated user device mapping relationship information, and the automatic binding can be realized only if the target user identifier is any one of the alternative user identifiers. The above group relationship may be stored in the mall platform or in the device management platform.
Therefore, the applicable scene of automatic binding can be expanded, for example, a wife purchases a certain device, a family group of the wife includes a husband, and the husband can also realize automatic binding when the husband uses the mobile terminal of the husband to carry out network distribution on the device. In some embodiments, the device configuration method further comprises: determining that the corresponding alternative user identifier of the device identifier in the pre-stored mapping relation information of the user equipment is inconsistent with the target user identifier, and sending a confirmation request to the user terminal; and receiving confirmation information sent by the user terminal based on the confirmation request, and binding the equipment identifier and the target user identifier.
For example, when the user a purchases a certain device and sends the device to the user B, the alternative user identifier corresponds to the user a, the user B is an actual user, and the target user identifier corresponds to the user B, and then the alternative user identifier and the target user identifier are inconsistent.
It can be understood that, in the pre-stored mapping relationship information of the user equipment, the device identifier has a unique corresponding alternative user identifier, if the alternative user identifier is not consistent with the target user identifier currently requested to be bound, there may be a possibility of mis-binding, and by re-confirming, the binding recheck may be implemented. The reconfirmation can be realized by a mode that the verification code is displayed by the equipment and the verification code is input by the user terminal, or a mode that the user terminal receives the prompt message and executes the target operation on the equipment according to the prompt message.
In some embodiments, the user device mapping relationship information is generated based on the alternative user identification and the device identification corresponding to the order information. The alternative user identification is determined based on order information stored in a mall server, and the equipment identification is acquired by a logistics terminal connected with the logistics platform.
The alternative user identifier is confirmed based on the order information, the device identifier also corresponds to the order information, and there is a high possibility that the alternative user identifier and the device identifier corresponding to the same order information need to be bound. The reference value of the generated user equipment mapping relation information is high.
It should be noted that, after a shopping user places an order from a mall (such as an e-commerce platform), order information is generated and stored in a mall server, and in different embodiments, the order information may be sent from the mall server to different platforms, including but not limited to a logistics platform and an equipment management platform; the logistics platform can acquire the equipment identification through the logistics terminal, and the equipment identification can be sent to the equipment management platform from the logistics platform, or sent to the equipment management platform after the logistics platform generates the user equipment mapping relationship information.
In some embodiments, as shown in fig. 2, the user equipment mapping relationship information is generated for the logistics platform, and correspondingly, before determining that the candidate user identifier corresponding to the device identifier in the pre-stored user equipment mapping relationship information is consistent with the target user identifier in step 120, the device configuration method further includes: and receiving user equipment mapping relation information sent by the logistics platform.
It should be noted that, after the user purchases the device, the device is sent from the warehousing location to the receiving location selected by the user through logistics, and the logistics platform records the device identifier and the user identifier, so that the mapping relationship information of the user device is stored and established in the logistics platform, and the mapping relationship information of the user device can be sent to the device management platform.
Specifically, after a user places an order from a purchase, order information is generated and stored in a mall server, the order information is sent to a logistics platform from the mall server, an alternative user identifier (user ID) can be determined based on the order information, or the order information can be obtained through scanning of a logistics terminal when logistics is delivered, an equipment identifier (equipment ID) can be obtained through scanning of the logistics terminal when logistics is delivered, the logistics platform forms a mapping between the alternative user identifier and the equipment identifier to obtain user equipment mapping relation information, and the user equipment mapping relation information is sent to an equipment management platform. When the equipment management platform receives the equipment identification and the target user identification, the mapping relation information of the equipment identification and the target user identification is compared, and if the mapping relation information is consistent, automatic binding can be achieved. Of course, the order information or the alternative user identification needs to be encrypted to be sent from the logistics terminal to the logistics platform.
In other embodiments, before determining that the candidate user identifier corresponding to the device identifier in the pre-stored mapping relationship information of the user equipment is consistent with the target user identifier in step 120, the device configuration method further includes: receiving an alternative user identifier and an equipment identifier sent by a logistics terminal; and generating user equipment mapping relation information based on the equipment identification and the alternative user identification.
A user generates order information after ordering from purchase and stores the order information in a mall server, the order information is sent to a logistics platform from the mall server, when logistics are delivered, a device identification and an alternative user identification can be obtained through scanning of a logistics terminal, the device identification and the alternative user identification are sent to a device management platform by the logistics terminal, certainly, data can be encrypted when the data are sent, and after the device management platform receives the alternative user identification and the device identification sent by the logistics terminal, the alternative user identification and the device identification can be mapped to obtain user device mapping relation information. When the equipment management platform receives the equipment identification and the target user identification, the mapping relation information of the equipment identification and the target user identification is compared, and if the mapping relation information is consistent, automatic binding can be achieved.
In still other embodiments, before determining that the candidate user identifier corresponding to the device identifier in the pre-stored mapping relationship information of the user equipment is consistent with the target user identifier in step 120, the device configuration method further includes: receiving order information and equipment identification sent by a logistics terminal; determining an alternative user identifier corresponding to the order information based on the order information; and generating user equipment mapping relation information based on the equipment identification and the alternative user identification.
A user generates order information after ordering from purchase and stores the order information in a mall server, the order information is sent to a logistics platform from the mall server, when logistics are delivered, equipment identification and the order information can be obtained through scanning of a logistics terminal, the logistics terminal sends the equipment identification and the order information to an equipment management platform, certainly, data can be encrypted when the order information and the equipment identification are sent, the equipment management platform receives the order information and the equipment identification sent by the logistics terminal, analyzes the order information to obtain an alternative user identification, and then mapping is formed between the alternative user identification and the equipment identification to obtain user equipment mapping relation information. When the equipment management platform receives the equipment identification and the target user identification, the mapping relation information of the equipment identification and the target user identification is compared, and if the mapping relation information is consistent, automatic binding can be achieved.
In still other embodiments, before determining that the candidate user identifier corresponding to the device identifier in the pre-stored mapping relationship information of the user equipment is consistent with the target user identifier in step 120, the device configuration method further includes: receiving order information and equipment identification sent by a logistics terminal; sending the order information to a mall server, and receiving an alternative user identifier corresponding to the order information returned by the mall server; and generating user equipment mapping relation information based on the equipment identification and the alternative user identification.
After a user places an order from a purchase, order information is generated and stored in a mall server, when logistics are delivered, equipment identification and order information can be obtained through scanning of a logistics terminal, the logistics terminal sends the equipment identification and the order information to an equipment management platform, certainly, data can be encrypted when the data are sent, the equipment management platform sends the order information to the mall server after receiving the order information and the equipment identification sent by the logistics terminal, an alternative user identification corresponding to the order information is analyzed by the mall server, the mall server sends the alternative user identification back to the equipment management platform, and then the equipment management platform forms mapping between the alternative user identification and the equipment identification to obtain user equipment mapping relation information. When the equipment management platform receives the equipment identification and the target user identification, the mapping relation information of the equipment identification and the target user identification is compared, and if the mapping relation information is consistent, automatic binding can be achieved.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform a device configuration method comprising: receiving a binding request, wherein the binding request comprises a device identifier and a target user identifier; and determining that the corresponding alternative user identifier of the device identifier in the pre-stored mapping relationship information of the user device is consistent with the target user identifier, and binding the device identifier and the target user identifier, wherein the alternative user identifier is confirmed based on the order information of the device corresponding to the device identifier.
It should be noted that, when being implemented specifically, the electronic device in this embodiment may be a server, a PC, or other devices, as long as the structure includes the processor 410, the communication interface 420, the memory 430, and the communication bus 440 shown in fig. 3, where the processor 410, the communication interface 420, and the memory 430 complete mutual communication through the communication bus 440, and the processor 410 may call the logic instruction in the memory 430 to execute the above method. The embodiment does not limit the specific implementation form of the electronic device.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the device configuration method provided by the above method embodiments, the method includes: receiving a binding request, wherein the binding request comprises a device identifier and a target user identifier; and determining that the corresponding alternative user identifier of the device identifier in the pre-stored mapping relationship information of the user device is consistent with the target user identifier, and binding the device identifier and the target user identifier, wherein the alternative user identifier is confirmed based on the order information of the device corresponding to the device identifier.
In another aspect, an embodiment of 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 to perform, when executed by a processor, the apparatus configuration method provided in the foregoing embodiments, where the method includes: receiving a binding request, wherein the binding request comprises a device identifier and a target user identifier; and determining that the corresponding alternative user identifier of the device identifier in the pre-stored mapping relationship information of the user device is consistent with the target user identifier, and binding the device identifier and the target user identifier, wherein the alternative user identifier is confirmed based on the order information of the device corresponding to the device identifier.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.