Method and device for associating equipment with account, electronic equipment and system
Technical Field
The embodiment of the specification relates to the technical field of communication, in particular to a method, a device, electronic equipment and a system for associating equipment with an account.
Background
The internet of things is rapidly developing as a new generation of information technology, and meanwhile, internet of things equipment derived from the internet of things is gradually popularized in life and work of people. At present, more and more internet of things devices can establish association with an account of a user terminal to realize information (user-related service information or application data information) interaction between the internet of things devices and the user terminal, and even can control one or more internet of things devices through the user terminal (or application of the user terminal).
The traditional correlation between the Internet of things equipment and an account of a user terminal is established, the user terminal scans a graphic code of the Internet of things equipment through a scanning device so as to acquire equipment information of the Internet of things equipment, then the user terminal uploads an account identification of the user terminal and the acquired equipment information to a server, and the server establishes the correlation between the account identification and the equipment information so as to realize the correlation between the account of the user terminal and the equipment.
However, in the above-mentioned related art, the graphic code needs to be scanned by the scanning device, and thus, there are certain requirements on the generation of the graphic code and the scanning accuracy of the scanning device.
Disclosure of Invention
The embodiment of the specification provides a method, a device, an electronic device and a system for associating equipment with an account, and aims to solve the problem that in the prior art, an association scheme of the equipment and the account is too limited to implement.
In order to solve the above technical problem, the embodiments of the present specification adopt the following technical solutions:
in a first aspect, an embodiment of the present specification provides a method for associating a device with an account, including:
the method comprises the steps that the Internet of things equipment uploads equipment information representing the Internet of things equipment to a server;
the server generates first verification information according to the received equipment information and returns the first verification information to the Internet of things equipment;
the Internet of things equipment sends the first verification information;
after the user terminal obtains second verification information based on the first verification information, uploading the second verification information and the account identification of the user terminal to the server;
and the server searches the matched equipment information according to the second verification information and associates the searched equipment information with the account identification.
In a second aspect, an embodiment of the present specification provides a method for associating a device with an account, including:
the method comprises the steps that the Internet of things equipment uploads equipment information representing the Internet of things equipment to a cloud server;
receiving first verification information returned by the server according to the equipment information;
and sending the first verification information, so that after a server receives an account identification sent by user equipment and second verification information is obtained based on the first verification information, equipment information is searched according to the second verification information, and the searched equipment information is associated with the account identification.
In a third aspect, an embodiment of the present specification provides a method for associating a device with an account, including:
the method comprises the steps that a server receives equipment information uploaded by the Internet of things equipment, wherein the equipment information represents the Internet of things equipment;
generating first verification information according to the equipment information, and returning the first verification information to the Internet of things equipment;
receiving an account identification sent by a user terminal and second verification information obtained based on the first verification information;
and searching matched equipment information according to the second verification information, and associating the equipment information with the account identification.
In a fourth aspect, an embodiment of the present specification provides a method for associating a device with an account, including:
the user terminal receives second verification information, wherein the second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by the server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment;
and sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
In a fifth aspect, an embodiment of the present specification provides a system for associating a device with an account, including: the system comprises the Internet of things equipment, a server and a user terminal; wherein the content of the first and second substances,
the Internet of things equipment uploads equipment information representing the Internet of things equipment to a cloud server, receives first verification information returned by the server according to the equipment information, and sends the first verification information;
the server receives equipment information uploaded by the Internet of things equipment, generates first verification information according to the equipment information, returns the first verification information to the Internet of things equipment, receives an account number identification sent by a user terminal and second verification information obtained based on the first verification information after the Internet of things equipment sends the first verification information, searches matched equipment information according to the second verification information, and associates the equipment information with the account number identification;
and the user terminal receives second verification information and sends the account identification and the second verification information to the server.
In a sixth aspect, an embodiment of the present specification provides an internet of things device, including:
the uploading module uploads the equipment information representing the Internet of things equipment to a server;
the receiving module is used for receiving first verification information returned by the server according to the equipment information;
and the playing module is used for sending the first verification information so as to search equipment information according to the second verification information after the server receives the account identification sent by the user equipment and obtains the second verification information based on the first verification information, and establish association between the searched equipment information and the account identification.
In a seventh aspect, an embodiment of the present specification provides a server, including:
the receiving module is used for receiving equipment information uploaded by the Internet of things equipment, and the equipment information represents the Internet of things equipment;
the sending module is used for generating first verification information according to the equipment information and returning the first verification information to the Internet of things equipment;
the receiving module is also used for receiving an account identification sent by the user terminal and second verification information obtained based on the first verification information;
and the association module is used for searching matched equipment information according to the second verification information and associating the equipment information with the account identification.
In an eighth aspect, an embodiment of the present specification provides a user terminal, including:
the receiving module is used for receiving second verification information, wherein the second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by the server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment;
and the sending module is used for sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
In a ninth aspect, an embodiment of the present specification provides an internet of things device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to:
uploading equipment information representing the Internet of things equipment to a cloud server;
receiving first verification information returned by the server according to the equipment information;
and sending the first verification information, so that after a server receives an account identification sent by user equipment and second verification information is obtained based on the first verification information, equipment information is searched according to the second verification information, and the searched equipment information is associated with the account identification.
In a tenth aspect, an embodiment of the present specification provides a server, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to:
receiving equipment information uploaded by Internet of things equipment, wherein the equipment information represents the Internet of things equipment;
generating first verification information according to the equipment information, and returning the first verification information to the Internet of things equipment;
receiving an account identification sent by a user terminal and second verification information obtained based on the first verification information;
and searching matched equipment information according to the second verification information, and associating the equipment information with the account identification.
In an eleventh aspect, an embodiment of the present specification provides a user terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to:
receiving second verification information, wherein the second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by a server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment;
and sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
In a twelfth aspect, embodiments of the present specification provide a computer readable storage medium storing one or more programs that, when executed by an internet of things device that includes a plurality of applications, cause the internet of things device to:
uploading equipment information representing the Internet of things equipment to a cloud server;
receiving first verification information returned by the server according to the equipment information;
and sending the first verification information, so that after a server receives an account identification sent by user equipment and second verification information is obtained based on the first verification information, equipment information is searched according to the second verification information, and the searched equipment information is associated with the account identification.
In a thirteenth aspect, embodiments of the present specification provide a computer readable storage medium storing one or more programs which, when executed by a server comprising a plurality of application programs, cause the server to:
receiving equipment information uploaded by Internet of things equipment, wherein the equipment information represents the Internet of things equipment;
generating first verification information according to the equipment information, and returning the first verification information to the Internet of things equipment;
receiving an account identification sent by a user terminal and second verification information obtained based on the first verification information;
and searching matched equipment information according to the second verification information, and associating the equipment information with the account identification.
In a fourteenth aspect, embodiments of the present specification provide a computer-readable storage medium storing one or more programs which, when executed by a user terminal comprising a plurality of application programs, cause the user terminal to perform the following:
receiving second verification information, wherein the second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by a server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment;
and sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
according to the technical scheme, the equipment information is uploaded to the server by the equipment of the Internet of things, and the server generates first verification information according to the equipment information and returns the first verification information to the equipment of the Internet of things; the method comprises the steps that the Internet of things equipment sends first verification information, the user terminal uploads second verification information and an account identification of the user terminal to a server after obtaining the second verification information based on the first verification information, and the server searches matched equipment information according to the second verification information and associates the searched equipment information with the account identification. In the association process, the equipment information does not need to be transmitted by using the two-dimensional code, but the identification of the equipment information and the legal verification of the association operation are realized by the first verification information and the second verification information, so that the limitation of the association scheme in the prior art is avoided, and the flexibility, the accuracy and the effectiveness of the association scheme are improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative efforts.
Fig. 1a is a schematic view of a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 1b is a second schematic diagram illustrating a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 1c is a third schematic diagram of a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 2 is a fourth schematic view of a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 3 is a fifth schematic view of a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 4 is a sixth schematic view of a method for associating a device with an account according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a system for associating a device with an account according to an embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of an electronic device provided in an embodiment of the present specification;
fig. 7 is a schematic structural diagram of an apparatus for associating a device with an account according to an embodiment of the present disclosure;
fig. 8 is a second schematic structural diagram of a device and account association apparatus provided in the embodiment of the present disclosure;
fig. 9 is a third schematic structural diagram of a device and account association apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the embodiments in the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Example one
Referring to fig. 1a, a schematic diagram of a method for associating a device with an account provided in an embodiment of the present description is shown, where an execution main body of the method includes: the system comprises the Internet of things equipment, a server and a user terminal; the user terminal can be a mobile phone, a tablet computer, a personal computer and the like; the internet of things device may be a voice playing device, an intelligent household appliance (such as an intelligent television, an intelligent sound box, an intelligent air conditioner, and the like), an intelligent wearable device (such as an intelligent bracelet, an intelligent watch, a Virtual Reality (VR) device, an Augmented Reality (AR) device), and the like); the server can correspond to the user terminals and the internet of things devices and can provide background services for the user terminals and the internet of things devices. The method mainly comprises the following steps:
step 102 a: and the Internet of things equipment uploads equipment information representing the Internet of things equipment to a server.
The device information may be understood as a device Identity (ID), a Media Access Control (MAC) address, and the like, which characterize the uniqueness of the internet of things device, and a specific form may be a random serial number or a random character string.
It should be understood that, in the embodiments of the present specification, the internet of things device may be the above-mentioned voice playing apparatus, an intelligent appliance, and the like. This thing networking device can be built-in or plug-in communication module, specifically can built-in WIreless communication module, for example WIreless Fidelity (WIFI) chip. In this way, the internet of things device can establish a network link with a server or other devices through the wireless communication module.
Step 104 a: and the server generates first verification information according to the received equipment information and returns the first verification information to the Internet of things equipment.
In the step, the server generates first verification information according to the equipment information uploaded by the Internet of things equipment, and returns the first verification information to the Internet of things equipment. Considering that subsequent information transmission may be intercepted or maliciously changed, the first verification information may serve as a secondary identifier of the device information to identify the internet of things device, and may also verify whether the association operation is legal.
It should be understood that, in the embodiment of the present specification, the first authentication information may be random authentication information, a random character string generated according to a preset rule, or a random question.
Step 106 a: and the Internet of things equipment sends the first verification information.
Correspondingly, after the internet of things equipment receives the first verification information returned by the server, the first verification information can be sent to the user terminal. Because the internet of things equipment and the user terminal are not associated or bound, information interaction cannot be performed through a network communication link, and therefore, the fact that the internet of things equipment sends the first verification information can be understood that the internet of things equipment broadcasts or plays the first verification information through sound wave data. The sound wave data here includes sound wave data of an audible frequency band and sound wave data of an inaudible frequency band.
Step 108 a: and after the user terminal obtains second verification information based on the first verification information, uploading the second verification information and the account identification of the user terminal to the server.
And the user terminal receives second verification information, wherein the second verification information is obtained based on the first verification information sent by the Internet of things equipment.
The account id of the user terminal may be an account id of an application installed in the user terminal or a mobile phone number of the user.
Correspondingly, the user terminal can receive first verification information which is played by the Internet of things device and transmitted by sound wave data through the audio receiving device, and the first verification information is used as second verification information and uploaded to the server together with the account identification of the user terminal; or the user terminal receives second authentication information input by the user based on the first authentication information, and uploads the second authentication information and the account identification of the user terminal to the server together.
It should be noted that, when the second verification information is input by the user, the input may be understood as being input by voice or touch.
Step 110 a: and the server searches the matched equipment information according to the second verification information and associates the searched equipment information with the account identification.
According to the technical scheme, firstly, the equipment information is uploaded to the server by the equipment of the Internet of things, and the server generates first verification information according to the equipment information and returns the first verification information to the equipment of the Internet of things; and then, the Internet of things equipment sends first verification information, the user terminal uploads the second verification information and the account identification of the user terminal to the server after obtaining the second verification information based on the first verification information, and the server searches matched equipment information according to the second verification information and associates the searched equipment information with the account identification. In the association process, the two-dimensional code is not needed to be used for transmitting the equipment information, but the identification of the equipment information and the legal verification of the association operation are realized through the first verification information and the second verification information, so that the limitation of the association scheme in the prior art is avoided, and the flexibility, the accuracy, the effectiveness and the safety of the association scheme are improved.
It should be understood that in the embodiments of the present specification, step 106 may be specifically implemented as: and the Internet of things equipment plays the first verification information through voice in an audible wave band.
After the internet of things equipment receives the first verification information returned by the server, the first verification information is converted into voice capable of being transmitted in an audible wave band to be played, the playing can be understood as broadcasting, and when the voice strength reaches a certain degree, the equipment with a voice receiving function in a close range can receive the voice. Therefore, by the broadcasting mode, the first verification information is transmitted and played, and the limitation of two-dimensional code transmission is avoided.
It should be understood that, in the embodiment of the present specification, step 106 may also be specifically executed as: and the Internet of things equipment plays the first verification information through sound wave data in the inaudible frequency band.
The internet of things equipment can also convert the received first verification information into sound wave data capable of being transmitted in the inaudible frequency band for playing, the playing can also be understood as a broadcast mode, and the sound wave data transmitted in the inaudible frequency band is a sound wave signal which encodes the first verification information into sound wave signals transmitted in the inaudible frequency band. When sound wave data is played through the inaudible frequency band, the sound wave data is inaudible but can be received by the audio receiving apparatus. Moreover, in the actual playing process, in order to prompt the user, the sound wave data of the inaudible frequency bands can be disguised by using the sound wave signals of the audible frequency bands. The examples in this specification do not limit this.
As described above, the first authentication information according to the embodiments of the present disclosure may be a character string or an authentication question, and other information forms having the authentication and identification functions required in the embodiments of the present disclosure are not limited. The following describes the string and the authentication problem separately.
-the first authentication information is a character string
When the first verification information is a character string, the second verification information is also the character string. For example, the first verification information is a first character string, and the second verification information is a second character string. The first character string may be matched with the second character string, for example, the second character string may be a partial character in the first character string, or the second character string may be a character obtained by subjecting the first character string to some conversion processing, or the first character string may be identical to the second character string, and so on.
When the server executes the operation of step 104a, the method may specifically include:
processing the equipment information by adopting the preset algorithm to generate a first character string; and establishing and storing the corresponding relation between the first character string and the equipment information.
The preset algorithm according to the embodiments of the present disclosure may be a hash operation or other algorithms that can generate a character string, and is not limited thereto. The number of digits of the first character string is not limited, and may be any combination of numbers, letters, and special characters. The first character string is generated according to the equipment information, so that a corresponding relation exists between the first character string and the equipment information, and the server stores the corresponding relation for later use.
Accordingly, the number of the first and second electrodes,
when the server executes step 110a, the method may specifically include:
traversing a first character string in the server according to the second character string; and when a first character string matched with the second character string exists in the server, searching the equipment information corresponding to the first character string.
After receiving the second character string, the server firstly traverses the first character string stored by the server according to the second character string, and only when the first character string matched with the second character string is traversed, the associated operation can be verified to be legal. Then, the device information corresponding to the first character string can be further searched, and the device information is identified, that is, the first character string is restored to the device information. Therefore, not only is the legal verification of the association operation realized, but also the association can be realized by recovering the device information.
The second character string is obtained by the user terminal based on the first character string played by the internet of things device, and specifically:
the Internet of things equipment plays the first character string through voice, the user terminal receives a second character string input by a user through voice input or touch control, and the heard first character string is input to the user terminal as the second character string through voice sent by the user or touch control input on a touch control panel by the user needing participation of the user; alternatively, the first and second electrodes may be,
the Internet of things equipment plays the first character string through sound wave data (here, sound wave signals transmitted in an inaudible frequency band), the user terminal takes the received sound wave data as the second character string, and the user terminal and the Internet of things equipment can transmit the sound wave signals through the audio frequency receiving and transmitting device of the user terminal and the Internet of things equipment without participation of a user.
-the first authentication information is an authentication question
And when the first verification information is a verification question, the second verification information is a received input answer aiming at the verification question.
When the server executes the operation of step 104a, the method may specifically include:
processing the equipment information by adopting the preset algorithm to generate a verification question and a standard answer corresponding to the verification question; and establishing and storing a corresponding relation between the standard answer and the equipment information.
The preset algorithm may be a hash algorithm or other similar algorithms that can generate various types of verification problems, which is not limited in this specification.
Different from the above algorithm for generating the character string, the standard answer needs to be generated correspondingly in this step, so that the verification question and the standard answer are generated in pair, and each verification question corresponds to a unique standard answer. However, the server does not store the authentication questions, but stores the correspondence between the standard answers and the device information.
Accordingly, the number of the first and second electrodes,
when the server executes step 110a, the method may specifically include:
traversing standard answers in the server according to the input answers; and when the server has a standard answer matched with the input answer, searching the equipment information corresponding to the standard answer from the corresponding relation.
After the server receives the input answer, firstly, whether the input answer is correct is verified, that is, the standard answer stored in the server is traversed, and only when the input answer matched with the standard answer (the answer content is the same or the answer content is related) is traversed, the association operation can be verified to be legal. Then, the device information corresponding to the standard answer can be further searched, so that the device information is identified, that is, the standard answer is restored to the device information. Therefore, not only is the legal verification of the association operation realized, but also the association can be realized by recovering the device information.
The input answer is obtained by the user terminal based on the verification question played by the internet of things equipment, and specifically comprises the following steps:
the internet of things equipment plays the verification problem through voice, the user terminal receives an input answer input by a user through voice input or touch input, the user needs to participate, and the heard verification problem is understood by the user (such as simple calculation or reasoning), and the voice sent by the user or the touch input on the touch panel is used as the input answer to be input to the user terminal; alternatively, the first and second electrodes may be,
the internet of things equipment plays and verifies the problem through sound wave data (here, the sound wave signal of the transmission of the inaudible frequency band), and the user terminal has an artificial intelligence function, can resolve the received sound wave data into an input answer, and here can not need the user to participate in, and the user terminal and the internet of things equipment carry out the transmission of sound wave signals through the audio frequency transceiver of the user terminal and the internet of things equipment.
As shown in fig. 1b, the association method further includes a networking process before step 102a, considering that the internet-of-things device needs to establish a communication link with the server or other devices through the wireless communication module to upload device information to the server. Consider that thing networking device probably is simpler and easier smart machine, for example, possess socket, speaker equipment, intelligent bracelet etc. of WIFI chip. Then, networking can be performed in a one-key configuration (SmartConfig) manner. The method specifically comprises the following steps:
step 102 b: the method comprises the steps that the Internet of things equipment receives a data packet sent by a user terminal, wherein the data packet carries access configuration parameters of a target access network.
The access configuration parameters include at least: a network identification and a network password of the target access network.
The data packets may be understood as a User Datagram Protocol (UDP) data packet sequence transmitted by the mobile device in the local WIFI network at a preset frequency.
Step 104 b: and the Internet of things equipment performs networking operation according to the access configuration parameters obtained by analyzing the data packet.
Specifically, the internet of things device can analyze the received UPD data packet sequence to obtain the access configuration parameters hidden therein, and select the target access network to perform networking operation according to the obtained network identifier and network password.
Referring to fig. 1c, in the networking process, the method further includes:
step 102 c: and the Internet of things equipment sends an access configuration progress to the user terminal through sound wave data in the inaudible frequency band.
After the internet of things equipment analyzes and obtains the access configuration parameters, the distribution network processing is started to be executed. At the moment, the internet of things equipment is not accessed to the network, so that information interaction cannot be carried out through network communication, and effective feedback of access configuration progress cannot be realized through a network communication mode; meanwhile, in consideration of the limitation of the hardware structure of the internet of things equipment, the functions of subtitle display, voice playing and the like may not be realized. In order to realize effective feedback of the access configuration progress, the internet of things equipment can send the access configuration progress to the mobile equipment through sound wave data which is played in the inaudible frequency band and carries specific information.
Wherein the access configuration schedule comprises: the distribution network schedule related to the process of connecting to the target access network, for example, the schedule and the result of analyzing the received data packet, the schedule and the result of networking according to the network identifier and the network password obtained by analysis, and the like.
In the specific implementation of this step, the internet of things device encodes the current access configuration progress as specific information into a sound wave signal, and sends the sound wave signal to one or more user terminals (which may be mobile devices) located close to the current access configuration progress. Optionally, the internet of things device may play the access configuration progress transmitted in the form of sound wave data through its own audio playing device, so that the user terminal may receive the sound wave data through its own audio collecting device, analyze the sound wave data to obtain the access configuration progress therein, and display the access configuration progress. Specifically, the user terminal may display text and image information capable of reflecting the access configuration progress through a screen, or may play voice capable of reflecting the access configuration progress through an audio playing device such as a speaker.
Through the technical scheme, in the process of the internet of things equipment distribution network, the access configuration progress capable of reflecting the distribution network progress is fed back to the mobile equipment through the sound wave data, so that the access configuration progress can be effectively displayed by the mobile equipment. Therefore, timeliness and accuracy of distribution network progress feedback are improved, and the problem that distribution network progress feedback of the Internet of things equipment is inaccurate and unintuitive is avoided.
It should be understood that, in the embodiments of the present specification, the first authentication information is random authentication information, and then, when the first authentication information is a first character string and the second authentication information is a second character string, the first character string and the second character string may be the same random character string. When the first verification information is a verification question and the second verification information is a received input answer aiming at the verification question, the verification question is a random question and the input answer is the input answer aiming at the random question.
Example two
Referring to fig. 2, a schematic diagram of a method for associating a device with an account provided in an embodiment of the present disclosure is shown, where an execution subject of the method is an internet of things device, and the internet of things device may be understood as an electronic device capable of connecting to the internet or a local area network through a wireless communication module, and the method mainly includes the following steps:
step 202: and uploading the equipment information representing the equipment of the Internet of things to a cloud server.
The equipment information capable of representing the uniqueness of the equipment in the Internet of things can be selected by the equipment in the Internet of things according to the hardware condition of the equipment.
Step 204: and receiving first verification information returned by the server according to the equipment information.
Step 206: and sending the first verification information.
The internet of things equipment receives first verification information returned by the server, and then the first verification information is played through sound wave data, so that the user terminal can obtain second verification information based on the received first verification information, and the second verification information is uploaded to the server together with an account number identifier of the user terminal to correlate equipment information with the account number identifier, and actually, the internet of things equipment is correlated with the account number of the user terminal.
Optionally, step 206 may be specifically performed as: and the Internet of things equipment plays the first verification information through voice in an audible wave band. Therefore, by the broadcasting mode, the first verification information is transmitted and played, the limitation of two-dimensional code mode transmission in the prior art is avoided, and the associated flexibility, effectiveness and safety are improved.
Optionally, step 206 may be specifically performed as: and the Internet of things equipment plays the first verification information through sound wave data in the inaudible frequency band. Therefore, by the broadcasting mode, the first verification information is transmitted and played, the limitation of two-dimensional code mode transmission in the prior art is avoided, and the association flexibility, effectiveness and safety are improved.
Optionally, before step 202, further comprising:
the method comprises the steps that the Internet of things equipment receives a data packet sent by a user terminal, wherein the data packet carries access configuration parameters of a target access network; and the Internet of things equipment performs networking operation according to the access configuration parameters obtained by analyzing the data packet.
Optionally, in the networking process of the internet of things device, the method further includes: and the Internet of things equipment sends an access configuration progress to the user terminal through sound wave data in the inaudible frequency band.
The access configuration progress of the distribution network progress can be reflected by feeding back the sound wave data to the mobile equipment, so that the access configuration progress can be effectively displayed by the mobile equipment. Therefore, timeliness and accuracy of distribution network progress feedback are improved, and the problem that distribution network progress feedback of the Internet of things equipment is inaccurate and unintuitive is avoided.
It should be understood that, in the embodiments of the present specification, the first authentication information referred to is random authentication information.
Referring to fig. 3, an execution subject of the method for associating the device with the account provided in the embodiment of the present specification is a server, and the method mainly includes the following steps:
step 302: and the server receives the equipment information uploaded by the Internet of things equipment.
The device information characterizes the internet of things device.
Step 304: and generating first verification information according to the equipment information, and returning the first verification information to the Internet of things equipment.
Step 306: and receiving an account identification sent by the user terminal and second verification information obtained based on the first verification information.
Step 308: and searching matched equipment information according to the second verification information, and associating the equipment information with the account identification.
Optionally, the first verification information is a first character string, and the second verification information is a second character string;
step 304 may be specifically performed as: processing the equipment information by adopting the preset algorithm to generate a first character string; and establishing and storing the corresponding relation between the first character string and the equipment information.
Accordingly, the number of the first and second electrodes,
step 308 may be specifically performed as: traversing a first character string in the server according to the second character string; and when a first character string matched with the second character string exists in the server, searching the equipment information corresponding to the first character string.
Optionally, the first verification information is a verification question, and the second verification information is a received input answer to the verification question;
step 304 may be specifically performed as: processing the equipment information by adopting the preset algorithm to generate a verification question and a standard answer corresponding to the verification question; establishing and storing a corresponding relation between the standard answer and the equipment information;
accordingly, the number of the first and second electrodes,
step 308 may be specifically performed as: traversing standard answers in the server according to the input answers; and when the server has a standard answer matched with the input answer, searching the equipment information corresponding to the standard answer from the corresponding relation.
Optionally, the first authentication information is random authentication information.
Referring to fig. 4, an execution subject of the method for associating the device with the account provided in the embodiment of the present specification is a user terminal, and the method mainly includes the following steps:
step 402: the user terminal receives the second authentication information.
The second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by the server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment.
Step 404: and sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
Optionally, the first authentication information is random authentication information.
According to the technical scheme, the equipment information is uploaded to the server by the equipment of the Internet of things, and the server generates first verification information according to the equipment information and returns the first verification information to the equipment of the Internet of things; the method comprises the steps that the Internet of things equipment sends first verification information, the user terminal uploads second verification information and an account identification of the user terminal to a server after obtaining the second verification information based on the first verification information, and the server searches matched equipment information according to the second verification information and associates the searched equipment information with the account identification. In the association process, the two-dimensional code is not needed to be used for transmitting the equipment information, but the identification of the equipment information and the legal verification of the association operation are realized through the first verification information and the second verification information, so that the limitation of the association scheme is avoided, and the flexibility, the accuracy, the effectiveness and the safety of the association scheme are improved.
EXAMPLE III
Referring to fig. 5, a schematic structural diagram of a system for associating a device with an account provided in an embodiment of the present specification is shown, where the system mainly includes: an internet of things device 502, a server 504, and a user terminal 506; wherein the content of the first and second substances,
the internet of things device 502 uploads device information representing the uniqueness of the internet of things device 502 to the cloud server 504, receives first verification information returned by the server 504 according to the device information, and sends the first verification information;
the server 504 is configured to receive device information uploaded by the internet of things device 502, generate first verification information according to the device information, return the first verification information to the internet of things device 502, receive an account id sent by the user terminal 506 and second verification information obtained based on the first verification information after the internet of things device 502 sends the first verification information, search matched device information according to the second verification information, and associate the device information with the account id;
the user terminal 506 receives the second verification information, and sends the account id and the second verification information to the server 504.
In the embodiment of the specification, the internet of things equipment uploads equipment information to the server, and the server generates first verification information according to the equipment information and returns the first verification information to the internet of things equipment; the method comprises the steps that the Internet of things equipment sends first verification information, the user terminal uploads second verification information and an account identification of the user terminal to a server after obtaining the second verification information based on the first verification information, and the server searches matched equipment information according to the second verification information and associates the searched equipment information with the account identification. In the association process, the equipment information does not need to be transmitted by using the two-dimensional code, but the identification of the equipment information and the legal verification of the association operation are realized by the first verification information and the second verification information, so that the limitation of the association scheme in the prior art is avoided, and the flexibility, the accuracy and the effectiveness of the association scheme are improved.
The internet of things device, the server, and the user terminal (which may be collectively referred to as an electronic device) in the embodiments of the present disclosure are described in detail below with reference to fig. 6. Referring to fig. 6, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a Non-Volatile Memory (Non-Volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be interconnected by an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an extended EISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads a corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form the device and account number association device on a logic level. The processor executes the program stored in the memory, and is specifically configured to execute the method operations executed when the internet of things device, the server, and the user terminal are respectively used as execution subjects.
The methods disclosed in the embodiments of fig. 1 a-4 in this specification can be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method in fig. 1a to 4, and implement the functions of the device and account association apparatus in the embodiments shown in fig. 1a to 4, which are not described herein again in this specification.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Example four
Embodiments of the present specification also provide a computer-readable storage medium storing one or more programs that, when executed by an internet of things device including a plurality of applications, cause the internet of things device to:
uploading equipment information representing the Internet of things equipment to a cloud server;
receiving first verification information returned by the server according to the equipment information;
and sending the first verification information, so that after a server receives an account identification sent by user equipment and second verification information is obtained based on the first verification information, equipment information is searched according to the second verification information, and the searched equipment information is associated with the account identification.
The present specification embodiments also provide a computer readable storage medium storing one or more programs that, when executed by a server including a plurality of application programs, cause the server to:
receiving equipment information uploaded by Internet of things equipment, wherein the equipment information represents the Internet of things equipment;
generating first verification information according to the equipment information, and returning the first verification information to the Internet of things equipment;
receiving an account identification sent by a user terminal and second verification information obtained based on the first verification information;
and searching matched equipment information according to the second verification information, and associating the equipment information with the account identification.
The present specification embodiments also provide a computer-readable storage medium storing one or more programs that, when executed by a user terminal including a plurality of application programs, cause the user terminal to:
receiving second verification information, wherein the second verification information is obtained based on first verification information sent by the Internet of things equipment, and the first verification information is generated by a server according to equipment information uploaded by the Internet of things equipment and representing the Internet of things equipment;
and sending the account identification and the second verification information to a server so that the server can search matched equipment information according to the second verification information and associate the equipment information with the account identification.
The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
EXAMPLE five
Referring to fig. 7, a schematic structural diagram of an internet of things device provided in an embodiment of the present specification is shown, where the internet of things device mainly includes:
an upload module 702 configured to upload device information representing the internet of things device to a server;
a receiving module 704, configured to receive first verification information returned by the server according to the device information;
a sending module 706, configured to send the first verification information.
Referring to fig. 8, a schematic structural diagram of a server provided in the embodiment of the present disclosure is shown, where the server mainly includes:
the receiving module 802 receives device information uploaded by an internet of things device, wherein the device information represents the internet of things device;
the sending module 804 generates first verification information according to the device information, and returns the first verification information to the internet of things device;
the receiving module 802 further receives an account identifier sent by the user terminal and second verification information obtained based on the first verification information;
the associating module 806 searches for the matched device information according to the second verification information, and associates the device information with the account id.
Referring to fig. 9, a schematic structural diagram of a user terminal provided in an embodiment of this specification is shown, where the user terminal mainly includes:
the receiving module 902 is configured to receive second verification information, where the second verification information is obtained based on first verification information sent by an internet of things device, and the first verification information is generated by a server according to device information uploaded by the internet of things device and representing the internet of things device;
the sending module 904 sends the account id and the second verification information to the server, so that the server searches for the matched device information according to the second verification information, and associates the device information with the account id.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the embodiments of the present disclosure should be included in the protection scope of the embodiments of the present disclosure.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are all described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.