CN114117262A - Internet of things equipment network distribution method and device, intelligent terminal and storage medium - Google Patents
Internet of things equipment network distribution method and device, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN114117262A CN114117262A CN202010900770.7A CN202010900770A CN114117262A CN 114117262 A CN114117262 A CN 114117262A CN 202010900770 A CN202010900770 A CN 202010900770A CN 114117262 A CN114117262 A CN 114117262A
- Authority
- CN
- China
- Prior art keywords
- target
- internet
- things
- things equipment
- target internet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses a network distribution method for equipment of the Internet of things, which comprises the following steps: acquiring a graphic identification code, wherein the graphic identification code corresponds to target Internet of things equipment; analyzing the graphic identification code to obtain a target uniform resource locator; the preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion, wherein the parameter portion includes: and the product classification code is used for indicating the product characteristics of the target Internet of things equipment and distributing the network to the target Internet of things equipment according to the parameter part. The embodiment of the application also discloses a network distribution device of the Internet of things equipment, an intelligent terminal and a storage medium.
Description
Technical Field
The application relates to but is not limited to the technical field of the internet of things, and particularly relates to a network distribution method and device for internet of things equipment, an intelligent terminal and a storage medium.
Background
The Internet of things (IOT), i.e., the Internet with which everything is connected, is an extended and expanded network based on the Internet, and combines various information sensor devices with the Internet to form a huge network, thereby realizing interconnection and intercommunication of people, machines and things at any time and any place.
The internet of things products on the market are more and more, and all internet of things devices need to be distributed with a network. The network distribution refers to a process that the Internet of things equipment interacts with external equipment such as an intelligent terminal to obtain wireless network configuration information and is connected to a cloud server for binding. In the process of network distribution, some specific information which can be identified and approved by two parties or three parties needs to be interacted among the equipment of the internet of things, the intelligent terminal and the cloud server.
However, at present, in the process of a network distribution, at least, there is a problem that the format of the information associated with the internet of things device does not have a uniform definition standard.
Content of application
The embodiment of the application expects to provide a method and a device for distributing a network by using equipment of the internet of things, an intelligent terminal and a storage medium, and solves the problem that at present, in the process of distributing the network, the format of information associated with the equipment of the internet of things does not have a uniform definition standard.
The technical scheme of the application is realized as follows:
a network distribution method of Internet of things equipment is applied to an intelligent terminal, and comprises the following steps:
acquiring a graphic identification code, wherein the graphic identification code corresponds to target Internet of things equipment;
analyzing the graphic identification code to obtain a target uniform resource locator, wherein the preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion, wherein the parameter portion includes: the product classification code is used for indicating the product characteristics of the target Internet of things equipment;
and carrying out network distribution on the target Internet of things equipment according to the parameter part.
The utility model provides a net device is joined in marriage to thing networking device, thing networking device joins in marriage net device and includes:
the scanning processing module is used for acquiring a graphic identification code, and the graphic identification code corresponds to the target Internet of things equipment;
the analysis module is used for analyzing the graphic identification code to obtain a target uniform resource locator, and the preset format of the target uniform resource locator comprises: a prefix portion and a parameter portion, wherein the parameter portion includes: the product classification code is used for indicating the product characteristics of the target Internet of things equipment;
and the first processing module is used for carrying out network distribution on the target Internet of things equipment according to the parameter part.
An intelligent terminal, the intelligent terminal comprising: a processor, a memory, and a communication bus;
a memory for storing executable instructions; a processor, when executing executable instructions stored in the memory, implements the method described above.
A computer readable storage medium having stored thereon executable instructions for causing a processor to perform the method described above when executed.
According to the method and device for distributing the network to the internet of things equipment, the intelligent terminal and the storage medium, the graphic identification code is obtained and corresponds to the target internet of things equipment; analyzing the graphic identification code to obtain a target uniform resource locator, wherein the preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion, wherein the parameter portion includes: the product classification code is used for indicating the product characteristics of the target Internet of things equipment; according to the parameter part, a network is distributed to the target Internet of things equipment; therefore, the problem that at present, in the process of distribution network, at least the format of configuration parameters related to the Internet of things equipment does not have a unified definition standard is solved, the target uniform resource locator corresponding to the graphic identification code is obtained by at least uniformly setting the configuration parameters related to the process of distribution network according to the preset format, so that under the condition that the intelligent terminal obtains the graphic identification code, the parameters required by the distribution network can be quickly obtained based on the preset format, and the efficiency of the distribution network and the accuracy of the distribution network are further improved.
Drawings
Fig. 1 is a schematic network architecture diagram of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 2 is a first flowchart of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 3 is a schematic interface diagram of code scanning of a terminal according to an embodiment of the present application;
fig. 4 is a schematic flow diagram of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 5 is a third schematic flow chart of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 6 is a fourth schematic flowchart of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 7 is a fifth flowchart illustrating a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 8 is a sixth schematic flowchart of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 9 is a seventh flowchart of a network distribution method for devices of the internet of things according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a first distribution network device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a second distribution network device according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) Product ID (PID).
2) Personal Identification Number (PIN).
3) Media Access Control Address (MAC).
4) Uniform Resource Locator (URL).
5) A graphic identification code capable of graphically representing information in at least two orientations simultaneously. The graphic identification code includes, but is not limited to, a two-dimensional code. The two-dimensional code is a pattern which is distributed on a plane, namely a two-dimensional direction, by using a certain specific geometric figure according to a certain rule, is black and white and is alternated and records data symbol information; the concept of '0' and '1' bit stream forming the internal logic basis of computer is skillfully utilized in code making, a plurality of geometric shapes corresponding to binary system are used for representing character numerical value information, and the information is automatically read by an image input device or an optoelectronic scanning device so as to realize automatic information processing. Two-dimensional codes have some commonality of bar code technology, e.g., each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. The two-dimensional code defines the graphic rule and the coding mode thereof, and can be used for representing various text, binary system and other data information on the basis.
6) The network distribution refers to the whole process that the internet of things equipment acquires wireless network configuration information under the assistance of external equipment such as an intelligent terminal and the like and is connected to a cloud server for binding. In the process of network distribution, some specific information which can be identified and approved by two parties or three parties together needs to be interacted among the internet of things equipment, the intelligent terminal and the cloud server, for example, the information is used for realizing functions of type identification, identity authentication and the like of the internet of things equipment.
7) Target internet of things equipment refers to internet of things equipment hardware terminal. In the present application, the internet of things device may be a device without content input or output function, for example, a device without any keyboard and display interface. Here, the target internet of things device may be regarded as a "configuration receiver," and the "configuration receiver" is registered in a target service platform supported by the cloud server to obtain the PID allocated by the cloud server.
8) The intelligent terminal is provided with an Application program (APP) for scanning the graphic identification code on the Internet of things equipment. Furthermore, the intelligent terminal is also used for identifying the graphic identification code to obtain a target URL and analyzing the target URL to obtain configuration parameters of the Internet of things equipment. The configuration parameters include part or all of the following information: the system comprises an identity verification code, a media access control address, a product classification code, address information of a cloud server associated with the Internet of things equipment and version identification information in a preset format for identifying the URL. Here, the intelligent terminal may be regarded as a "configuration provider" and acquires configuration information required by the target internet of things device through the target service platform.
9) The cloud server is a cloud network service platform which provides technical interaction support for the Internet of things equipment and the terminal and provides services such as account number, equipment management, scene logic and the like for the Internet of things user. In the process that the cloud server distributes the network to the internet of things equipment, different business logics can be independently processed through the internal modules, and in order to conveniently explain the technology used in the network distribution process, the processing of the server side is uniformly expressed as a cloud server object to be processed in the embodiment of the application.
10) Production equipment refers to auxiliary equipment required by the Internet of things equipment during development and production.
In the related art, there is no uniform definition standard for the format of parameters required by the internet of things equipment in the distribution network. Meanwhile, after the intelligent terminal scans the image identification code on the internet of things device through the APP to obtain the configuration parameters, the triggered subsequent data transmission and logic interaction are not universal.
In the embodiment of the application, the intelligent terminal scans the graphic identification code through the APP to carry out distribution network, and identity information expressed by the Internet of things equipment in the specific graphic identification code is obtained and transmitted to the cloud server through the intelligent terminal to carry out account binding.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture of a method for implementing a network distribution method for devices of the internet of things, in order to support an exemplary application, when the network distribution is completed, an intelligent terminal 10, a device 11 of the internet of things, and a production device 12 are respectively connected to a cloud server 14 through a network 13, where the network 13 may be a wide area network or a local area network, or a combination of the two, and a wireless link is used to implement data transmission.
An embodiment of the application provides a network distribution method for internet of things equipment, which is applied to an intelligent terminal 10, and as shown in fig. 2, the method includes the following steps:
and 101, acquiring a graphic identification code.
In the embodiment of the present application, the smart terminal may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a wearable device, and a fixed terminal such as a desktop computer.
Here, the graphic identification code corresponds to the target internet of things device. The graphic identification code can be arranged on the target Internet of things equipment; for example, the graphic identification code is printed or pasted on the appearance or package of the target internet of things device. Illustratively, the graphic identification code comprises a two-dimensional code.
And 102, analyzing the graphic identification code to obtain a target uniform resource locator.
Here, the preset format of the target uniform resource locator includes: a prefix portion and a parameter portion, wherein the parameter portion includes: and the product classification code is used for indicating the product characteristics of the target Internet of things equipment. Illustratively, the product characteristics include, but are not limited to, a device type of the target internet of things device, and a function that the target internet of things device has.
In the embodiment of the application, the target URL is obtained by splicing the prefix part and the parameter part based on a preset format of the URL.
In the embodiment of the application, the cloud server or the production equipment splices the prefix part and the parameter part related in the distribution network process based on the URL preset format to obtain the target URL.
Illustratively, the target URL is spliced according to the following preset format of URL: "HTTPS:// SMARTHOME. IOT. HEYTAPMOBI. COM/v 1/app/act? "PARAMETERS. Wherein, HTTPS:///SMARTHOME. IOT. HEYTAPMOBI. COM/v 1/app/act? As prefix part, PARAMETERS is parameter part.
Referring to fig. 3, the intelligent terminal 10 aligns to the graphic identification code of the target internet of things device through the image input device or the photoelectric scanning device, and at this time, the graphic identification code 15 of the target internet of things device is presented in the display interface of the intelligent terminal 10. Further, under the condition that the intelligent terminal 10 obtains the graphic identification code on the target internet of things device through scanning, the graphic identification code is analyzed to obtain the target URL.
In the embodiment of the application, the terminal can analyze the target URL to obtain the prefix part and the parameter part under the condition of obtaining the target URL. Here, when the intelligent terminal obtains the target URL, different fields of the target URL record different configuration parameters related to the distribution network process. Parsing the target URL includes: and analyzing the configuration parameters of the field where the prefix part in the target URL is located, and analyzing the configuration parameters of the field where the parameter part in the target URL is located. Of course, the target URL may further include other fields, where the fields are used to record other configuration parameters in the distribution network process, and the other fields may also be reserved fields.
And 103, distributing the network to the target Internet of things equipment according to the parameter part.
In the embodiment of the application, the intelligent terminal analyzes the field where the parameter part is located to at least obtain the product classification code PID, and then the intelligent terminal distributes the network to the target Internet of things device according to the PID.
According to the method for distributing the network to the Internet of things equipment, the graphic identification code is obtained and corresponds to the target Internet of things equipment; analyzing the graphic identification code to obtain a target uniform resource locator, wherein the preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion, wherein the parameter portion includes: the product classification code is used for indicating the product characteristics of the target Internet of things equipment; according to the parameter part, a network is distributed to the target Internet of things equipment; therefore, the problem that at present, in the process of distribution network, at least the format of configuration parameters related to the Internet of things equipment does not have a unified definition standard is solved, the target uniform resource locator corresponding to the graphic identification code is obtained by at least uniformly setting the configuration parameters related to the process of distribution network according to the preset format, so that under the condition that the intelligent terminal obtains the graphic identification code, the parameters required by the distribution network can be quickly obtained based on the preset format, and the efficiency of the distribution network and the accuracy of the distribution network are further improved.
An embodiment of the application provides a network distribution method for internet of things equipment, which is applied to an intelligent terminal 10, and as shown in fig. 4, the method includes the following steps:
The graphic identification code corresponds to the target Internet of things equipment.
The preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion, wherein the parameter portion includes: and the product classification code is used for indicating the product characteristics of the target Internet of things equipment. The parameter part further includes: a format type to indicate a format standard of the target uniform resource locator. The prefix part comprises a target application program address, and the target application program is a control program of the target Internet of things equipment.
In the embodiment of the application, the cloud server or the production equipment splices the prefix part and the parameter part related in the distribution network process based on the URL preset format, wherein the parameter part comprises a PID (proportion integration differentiation) and a format Type so as to obtain the target URL.
Here, the format standards of the target URL are different for different types. The Type value can be a number, for example, when the Type value is 1, the format standard of the corresponding target URL is a first format standard, and the first format standard is a format standard corresponding to the two-dimensional code of the direct connection device; when the Type value is 2, the format standard of the corresponding target URL is a second format standard, and the second format standard is different from the first format standard.
Illustratively, in the process of splicing the target URL according to the preset format of the URL, the PARAMETER part includes PID and Type, where the PID value is 1234 and the Type value is 1, at this time, the target URL is obtained by splicing according to the preset format of the URL, and the target URL is as follows: HTTPS:// smart home. iot. heytapmobi.com/v1/app/actT ═ 1& pid ═ 123.
In the embodiment of the application, the intelligent terminal can quickly determine the format standard corresponding to the target URL based on the Type, and further determine the analysis mode corresponding to the format standard to analyze the target URL.
Illustratively, the intelligent terminal determines a value of Type, determines a format standard corresponding to the target URL based on the value of Type, and determines an analysis mode corresponding to the format standard to analyze the target URL to obtain a value of PID 1234.
And 204, displaying an interface corresponding to the target Internet of things equipment according to the product classification code.
The interface comprises a distribution network operation interface or an equipment information interface.
In the embodiment of the application, after the intelligent terminal obtains the PID, the interface corresponding to the target Internet of things device is displayed according to the PID, and the interface comprises a distribution network operation interface or a device information interface. Here, the distribution network operation Interface is a User Interface (UI) Interface for operating a distribution network process. The device information interface is used for displaying device information associated with the internet of things device, for example, displaying appearance information of the internet of things device and internal and/or external structure information of the internet of things device.
Therefore, the intelligent terminal in the embodiment can determine the parsing mode of the target URL based on the Type in the target URL, and then rapidly parse out the PID, and display the distribution network operation interface based on the PID so that the user can conveniently distribute the network to the target Internet of things equipment, or display the equipment information interface based on the PID so that the user can conveniently and rapidly know the equipment information of the Internet of things equipment, and accurately know the Internet of things equipment.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the application provides a network distribution method for internet of things equipment, which is applied to an intelligent terminal 10, and as shown in fig. 5, the method includes the following steps:
and 301, acquiring a graphic identification code.
The graphic identification code corresponds to the target Internet of things equipment.
And 302, analyzing the graphic identification code to obtain a target uniform resource locator.
The preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion.
Here, the parameter section includes: and the product classification code is used for indicating the product characteristics of the target Internet of things equipment. The parameter part further includes: and the identity verification code is used for uniquely identifying the target Internet of things equipment. The prefix part comprises a target application program address, and the target application program is a control program of the target Internet of things equipment.
Illustratively, in the process of splicing the target URL according to the preset format of the URL, the PARAMETER part includes PID and PIN, where the PID value is 1234 and the PIN value is 12345678. Splicing according to the preset format of the URL to obtain a target URL, wherein the target URL is as follows: HTTPS:// smart home. iot.heytapmobi.com/v1/app/actT ═ 1& pid ═ 123& pin ═ 12345678.
And step 303, determining a distribution network mode supported by the target Internet of things equipment according to the product classification code.
In the embodiment of the application, the network distribution mode supported by the target internet of things device comprises a wireless network distribution mode, such as a Wi-Fi network distribution mode, a bluetooth network distribution mode and the like. After the intelligent terminal obtains the PID of the target Internet of things device, the distribution network mode supported by the target Internet of things device can be determined according to the PID.
Illustratively, when the PARAMETER part of the target URL comprises PIN, the target Internet of things equipment supporting Wi-Fi communication is distributed according to EC-JPECK, and the target Internet of things equipment supporting Bluetooth communication is distributed according to BLE Secure Connection OOB; when the PARAMETER part of the target URL does not comprise PIN and the target Internet of things equipment does not have the capacity of inputting or outputting PIN out of band, the target Internet of things equipment supporting Wi-Fi communication is distributed according to ECDH, and the target Internet of things equipment supporting Bluetooth communication is distributed according to a just work mode.
And 304, performing identity verification on the target Internet of things equipment according to the distribution network mode and the identity verification code.
In the embodiment of the application, the intelligent terminal carries out identity verification on the target Internet of things device according to the distribution network mode and the identity verification code under the condition that the distribution network mode and the PIN of the target Internet of things device are determined, and then under the condition that the target Internet of things device is mistakenly distributed as legal equipment, the distribution network is distributed according to the distribution network mode supported by the target Internet of things device, so that the accurate distribution network and the safe distribution network are realized.
An embodiment of the application provides a network distribution method for internet of things equipment, which is applied to an intelligent terminal 10, and as shown in fig. 6, the method includes the following steps:
The graphic identification code corresponds to the target Internet of things equipment.
And step 402, analyzing the graphic identification code to obtain a target uniform resource locator.
The preset format of the target uniform resource locator comprises the following steps: a prefix portion and a parameter portion.
Here, the parameter section includes: and the product classification code is used for indicating the product characteristics of the target Internet of things equipment. The parameter part further includes: a media access control address. The prefix part comprises a target application program address, and the target application program is a control program of the target Internet of things equipment.
Illustratively, in the process of splicing the target URL according to the preset format of the URL, the PARAMETER portion includes PID and MAC, where the PID value is 1234 and the MAC value is aabbbccddeff. Splicing according to the preset format of the URL to obtain the following target URL: HTTPS:// smart home. iot.heytapmobi.com/v1/app/actT ═ 1& pid ═ 123& mac ═ aabbbccddeff.
And 403, displaying an interface corresponding to the target Internet of things equipment according to the product classification code.
The interface comprises a distribution network operation interface or an equipment information interface.
And step 404, connection is established with the target Internet of things equipment according to the media access control address.
It should be noted that, after the interface corresponding to the target internet of things device is displayed according to the product classification code in step 403, before the connection is established between the target internet of things device and the target internet of things device according to the media access control address in step 404, the target internet of things device is in a discovery mode to be connected. Illustratively, under the condition that the target internet of things device is in communication connection with other intelligent terminals, the user controls the target internet of things device to disconnect the communication connection with the other intelligent terminals by pressing an initialization button arranged on the target internet of things device, and at this time, the target internet of things device is in a discovery mode to be connected.
In this embodiment of the application, the step 404 of establishing a connection with a target internet of things device according to a media access control address includes the steps shown in fig. 7:
And the verification result is obtained by verifying the media access control address by the cloud server. Here, the cloud server verifies the MAC sent by the intelligent terminal in order to determine the validity of the target internet of things device, that is, whether the target internet of things device is a legally produced device.
In the embodiment of the application, the intelligent terminal determines that the verification result representation passes the MAC verification, namely the intelligent terminal determines that the target Internet of things equipment is legally produced equipment. Further, the intelligent terminal obtains the correlation information of the MAC sent by the target Internet of things equipment. It should be noted that, in the process of network distribution, the intelligent terminal must strictly determine whether the correlation information of the MAC sent by the target internet-of-things device matches the MAC on the two-dimensional code, and only in the case of matching, the intelligent terminal and the target internet-of-things device perform network distribution to establish connection.
In the embodiment of the application, the intelligent terminal determines that the associated information is matched with the media access control address, including the intelligent terminal determining that the associated information is the last two digits of the MAC. For example, when the target internet of things device only supports a Wi-Fi communication mode or supports a Wi-Fi + bluetooth communication mode, the related information broadcast by the target internet of things device is the last two bits of the MAC of the Wi-Fi communication module; when the target internet of things device only supports the Bluetooth communication mode, the related information broadcasted by the target internet of things device is the last two bits of the MAC of the Bluetooth communication module.
Therefore, in the embodiment, through the association information broadcasted by the target internet of things device and the MAC analyzed by the intelligent terminal, the intelligent device can be ensured to be accurately connected to the AP hotspot or the Bluetooth of the target internet of things device, and the target internet of things device is prevented from mistakenly distributing to other APP accounts.
In other embodiments of the present application, the parameter part includes: PID, Type, MAC, and PIN. At this time, in the process of splicing the target URL according to the preset format of the URL, the PARAMETER portion includes PID, Type, MAC, and PIN, where the PID value is 1234, the Type value is 1, the MAC value is aabbbccddeff, and the PIN value is 12345678. Further, the target URL is obtained by splicing according to the preset format of the URL, and the target URL is as follows: HTTPS:// smart home. iot.heytapmobi.com/v1/app/actT ═ 1& pid ═ 1234& pin ═ 12345678& mac ═ aabbbccddeff.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the application provides a network distribution method for devices of the internet of things, which is applied to a production device 12 or a cloud server 14, and as shown in fig. 8, the method includes the following steps:
and step 501, obtaining the target application program address and the product classification code.
The target application program is a control program of the target Internet of things equipment, and the product classification code is used for indicating the product characteristics of the target Internet of things equipment.
And 502, splicing the target application program and the product classification code based on the preset format of the target uniform resource locator to obtain the target uniform resource locator.
The target uniform resource locator obtained by splicing comprises a prefix part and a parameter part, wherein the prefix part comprises a target application program address, and the parameter part comprises: and (5) product classification codes.
In other embodiments of the present application, the production device 12 or the cloud server 14 may further obtain at least one of the format type, the authentication code, and the media access control address, and add at least one of the format type, the authentication code, and the media access control address to the parameter portion in the splicing process to obtain the target uniform resource locator.
The graphic identification code is used for being arranged on the target Internet of things device, so that the intelligent terminal tries to be connected with the target Internet of things device in a network through scanning the graphic identification code.
Therefore, the production equipment or the cloud server provided by the application solves the problem that at present, in the process of distribution network, at least the format of configuration parameters related to the Internet of things equipment does not have a uniform definition standard, the target uniform resource locator corresponding to the graphic identification code is obtained by uniformly setting the configuration parameters related to the distribution network process according to the preset format, so that under the condition that the intelligent terminal obtains the graphic identification code, the parameters required by the distribution network can be quickly obtained based on the preset format, and the efficiency of the distribution network and the accuracy of the distribution network are further improved.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described. With reference to fig. 1 and fig. 9, a network distribution method for devices of the internet of things according to the present application is further described.
The target internet of things device 11 will apply for allocation of PID from the cloud server 14 in advance during development and production, and the PID is used for uniquely corresponding to the type of device. The target internet of things device 11 also has a PIN, which is randomly generated by the production device 12. Before the target internet of things device 11 leaves a factory, a specific PID and PIN are burned for the target internet of things device 11.
Here, the production device 12 concatenates the PID, PIN, MAC, and target application address of each target internet of things device 11 with a specific format and a Type indicating a format standard of the target uniform resource locator, and generates a specific URL, i.e., a target URL. Further, the URL unique to each target internet of things device 11 may be converted into a graphic identification code such as a two-dimensional code, and printed or attached on the appearance or package of the target internet of things device 11.
Illustratively, the target URL may be as follows:
HTTPS://SMARTHOME.IOT.HEYTAPMOBI.COM/v1/app/actT=1&PID=1234&PIN=12345678&MAC=aabbccddeeff。
the intelligent terminal 10 obtains the target URL through the two-dimensional code of the APP scanning device.
The intelligent terminal 10 analyzes the PID field in the target URL through the APP, and is used for subsequently calling and displaying the network distribution method and the operation interface of the target internet of things device 11 of the type. For example, the terminal pops up an appearance picture of the target internet of things device 11 and a corresponding distribution network operation guidance instruction, and the distribution network is interactively switched to a Wi-Fi or bluetooth communication mode supported by the target internet of things device 11.
The intelligent terminal 10 parses the PIN field in the target URL for authentication with the device to be configured.
The intelligent terminal 10 analyzes the MAC field in the target URL, and is used to confirm that the target internet of things device 11 is a legally generated product with the cloud server 14, and facilitate the intelligent terminal 10 to be accurately connected to the AP hotspot or bluetooth corresponding to the target internet of things device 11 through the APP.
Finally, the intelligent terminal 10 calls a related method of a subsequent process through the APP based on the information obtained from the two-dimensional code to complete the safe distribution network of the equipment.
The embodiment of the application can realize the following beneficial effects: the terminal scans the graphic identification code such as the two-dimensional code to obtain information distributed during production of the Internet of things equipment, and automatically pulls resources and configuration of a related equipment distribution network from the cloud server according to content in the information to perform next display and interaction. Meanwhile, the PIN code and the MAC carried by the two-dimensional code are consistent with the built-in information of the equipment, the identity of the Internet of things equipment is confirmed, the APP at the terminal can be directly and accurately connected to the AP hotspot or the Bluetooth of the Internet of things equipment, and the phenomenon that the Internet of things equipment is mistakenly connected with other APP accounts is prevented.
Continuing to describe the network distribution device of the internet of things device provided in the embodiment of the present application, in some embodiments, as shown in fig. 10, the network distribution device of the internet of things device may be a first network distribution device 600 in the intelligent terminal 10, including:
the scanning processing module 601 is configured to acquire a graphic identification code, where the graphic identification code corresponds to a target internet of things device;
the parsing module 602 is configured to parse the graphic identifier to obtain a target uniform resource locator, where a preset format of the target uniform resource locator includes: a prefix portion and a parameter portion, wherein the parameter portion includes: the product classification code is used for indicating the product characteristics of the target Internet of things equipment;
the first processing module 603 is configured to perform network distribution on the target internet of things device according to the parameter part.
In some embodiments, the parameter section includes: a format type to indicate a format standard of the target uniform resource locator.
In some embodiments, the parsing module 602 is further configured to parse the target uniform resource locator according to the format type to obtain the product classification code.
In some embodiments, the first processing module 603 includes a display unit (not shown in the figure) for displaying an interface corresponding to the target internet of things device according to the product classification code, where the interface includes a distribution network operation interface or a device information interface.
In some embodiments, the first processing module 603 is further configured to determine, according to the product classification code, a distribution network mode supported by the target internet of things device.
In some embodiments, the parameter section includes: the identity verification code uniquely identifies the target internet of things device, and the first processing module 603 is further configured to perform identity verification on the target internet of things device according to the distribution network mode and the identity verification code.
In some embodiments, the parameter section includes: the mac address and the first processing module 603 are further configured to establish a connection with a target internet of things device according to the mac address.
In some embodiments, the first processing module 603 is further configured to send the media access control address to a cloud server; receiving a verification result fed back by the cloud server; the verification result is obtained by verifying the media access control address by the cloud server; determining that the verification result representation passes the verification of the media access control address, and acquiring the associated information of the media access control address sent by the target Internet of things equipment; and determining that the associated information is matched with the media access control address, and establishing connection with the target Internet of things equipment according to the matching of the media access control address.
In some embodiments, the prefix portion includes a target application address, the target application being a control program of the target internet of things device.
Therefore, the problem that at present, in the process of distribution of the network, at least the format of configuration parameters associated with the Internet of things equipment does not have a unified definition standard is solved through the first network distribution device, the target uniform resource locator corresponding to the graphic identification code is obtained by at least uniformly setting the configuration parameters related in the process of distribution of the network according to the preset format, so that under the condition that the intelligent terminal obtains the graphic identification code, the parameters required by the distribution of the network can be quickly obtained based on the preset format, and the efficiency of the distribution network and the accuracy of the distribution network are further improved.
Continuing to describe the network distribution device of the internet of things equipment provided in the embodiment of the present application, in some embodiments, as shown in fig. 11, the network distribution device of the internet of things equipment may be a second network distribution device 700 in the cloud server 14, including:
an obtaining module 701, configured to obtain a target application address and a product classification code;
a second processing module 702, configured to perform splicing processing on the target application program and the product classification code based on a preset format of the target uniform resource locator, to obtain the target uniform resource locator;
the target uniform resource locator obtained by splicing comprises a prefix part and a parameter part, wherein the prefix part comprises a target application program address, and the parameter part comprises: and (5) product classification codes.
A third processing module 703 for generating a graphic identification code based on the target uniform resource locator.
In some embodiments, the obtaining module is further configured to obtain at least one of a format type, an authentication code, and a media access control address;
the second processing module 702 is further configured to obtain a target uniform resource locator based on adding at least one of a format type, an authentication code, and a mac address to the parameter portion during the splicing process.
Therefore, the problem that at present, in the process of distribution of the network, at least the format of configuration parameters associated with the Internet of things equipment does not have a unified definition standard is solved through the second network distribution device, the target uniform resource locator corresponding to the graphic identification code is obtained by at least uniformly setting the configuration parameters related in the process of distribution of the network according to the preset format, so that under the condition that the intelligent terminal obtains the graphic identification code, the parameters required by the distribution of the network can be quickly obtained based on the preset format, and the efficiency of the distribution network and the accuracy of the distribution network are further improved.
In the embodiment of the present application, the cloud server may be a single server, or may be a server cluster, a cloud computing center, and the like, which are formed by a plurality of servers. The cloud server includes: at least one processor, memory, at least one network interface, and a user interface. Each of the components in the terminal are coupled together by a bus system. It will be appreciated that a bus system is used to enable communications among the components. The bus system includes a power bus, a control bus, and a status signal bus in addition to a data bus. The user interface may include a display, a keyboard, a mouse, a touch-sensitive pad, a touch screen, and the like.
The memory may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM). The volatile Memory may be a Random Access Memory (RAM). The memories described in the embodiments of the present application are intended to comprise any suitable type of memory.
The memory in the embodiments of the present application is capable of storing data to support the operation of the cloud server. Examples of such data include: any computer program for operating on a cloud server, such as an operating system and an application program. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program may include various application programs.
By way of example, the Processor may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor or the like.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (11)
1. A network distribution method for Internet of things equipment is applied to an intelligent terminal, and comprises the following steps:
acquiring a graphic identification code, wherein the graphic identification code corresponds to target Internet of things equipment;
analyzing the graphic identification code to obtain a target uniform resource locator, wherein the preset format of the target uniform resource locator comprises: a prefix portion and a parameter portion, wherein the parameter portion comprises: a product classification code for indicating a product characteristic of the target Internet of things device;
and carrying out network distribution on the target Internet of things equipment according to the parameter part.
2. The method of claim 1, wherein the parameter portion comprises: a format type to indicate a format standard of the target uniform resource locator;
before the network distribution of the target Internet of things equipment according to the parameter part, the method comprises the following steps:
and analyzing the target uniform resource locator according to the format type to obtain the product classification code.
3. The method of claim 1, wherein the configuring the target internet of things device according to the parameter portion comprises:
and displaying an interface corresponding to the target Internet of things equipment according to the product classification code, wherein the interface comprises a distribution network operation interface or an equipment information interface.
4. The method of claim 1, wherein the configuring the target internet of things device according to the parameter portion comprises:
and determining a distribution network mode supported by the target Internet of things equipment according to the product classification code.
5. The method of claim 4, wherein the parameter portion comprises: the identity verification code uniquely identifies the target Internet of things device;
after the network distribution mode supported by the target Internet of things equipment is determined according to the product classification code, the method comprises the following steps:
and performing identity verification on the target Internet of things equipment according to the distribution network mode and the identity verification code.
6. The method of claim 3, wherein the parameter portion comprises: a media access control address;
after displaying an interface corresponding to the target internet of things device according to the product classification code, the method comprises:
and establishing connection with the target Internet of things equipment according to the media access control address.
7. The method of claim 6, wherein the establishing a connection with the target IOT device according to the MAC address comprises:
sending the media access control address to a cloud server;
receiving a verification result fed back by the cloud server; the verification result is obtained by the cloud server verifying the media access control address;
determining that the verification result representation passes the verification of the media access control address, and acquiring the associated information of the media access control address sent by the target Internet of things equipment;
and determining that the associated information is matched with the media access control address, and establishing connection with the target Internet of things equipment according to the matching of the media access control address.
8. The method of claim 1, wherein the prefix portion comprises a target application address, and wherein the target application is a control program of the target internet of things device.
9. The utility model provides a net device is joined in marriage to thing networking device which characterized in that, thing networking device joins in marriage net device and includes:
the scanning processing module is used for acquiring a graphic identification code, and the graphic identification code corresponds to target Internet of things equipment;
the analysis module is used for analyzing the graphic identification code to obtain a target uniform resource locator, and the preset format of the target uniform resource locator comprises: a prefix portion and a parameter portion, wherein the parameter portion comprises: a product classification code for indicating a product characteristic of the target Internet of things device;
and the first processing module is used for carrying out network distribution on the target Internet of things equipment according to the parameter part.
10. An intelligent terminal, characterized in that, intelligent terminal includes: a processor, a memory, and a communication bus;
a memory for storing executable instructions; a processor for implementing the method of any one of claims 1 to 8 when executing executable instructions stored in the memory.
11. A computer-readable storage medium having stored thereon executable instructions for causing a processor, when executed, to implement the method of any one of claims 1 to 8.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900770.7A CN114117262A (en) | 2020-08-31 | 2020-08-31 | Internet of things equipment network distribution method and device, intelligent terminal and storage medium |
PCT/CN2020/125488 WO2022041472A1 (en) | 2020-08-31 | 2020-10-30 | Network distribution method and apparatus, and device and storage medium |
CN202080104739.0A CN116261722A (en) | 2020-08-31 | 2020-10-30 | Distribution network method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900770.7A CN114117262A (en) | 2020-08-31 | 2020-08-31 | Internet of things equipment network distribution method and device, intelligent terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114117262A true CN114117262A (en) | 2022-03-01 |
Family
ID=80354474
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010900770.7A Pending CN114117262A (en) | 2020-08-31 | 2020-08-31 | Internet of things equipment network distribution method and device, intelligent terminal and storage medium |
CN202080104739.0A Pending CN116261722A (en) | 2020-08-31 | 2020-10-30 | Distribution network method, device, equipment and storage medium |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202080104739.0A Pending CN116261722A (en) | 2020-08-31 | 2020-10-30 | Distribution network method, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN114117262A (en) |
WO (1) | WO2022041472A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106411508A (en) * | 2016-09-30 | 2017-02-15 | 宁波方太厨具有限公司 | Authentication method of intelligent device terminal |
CN112217831B (en) * | 2017-09-18 | 2023-04-25 | 创新先进技术有限公司 | Information interaction method, device and equipment for Internet of things equipment |
CN110098984B (en) * | 2018-01-29 | 2022-06-28 | 九阳股份有限公司 | Household appliance networking realization method |
CN109151772A (en) * | 2018-08-09 | 2019-01-04 | 珠海格力电器股份有限公司 | Network distribution method and network distribution device based on graphic identifier |
CN110784865A (en) * | 2019-12-16 | 2020-02-11 | 宁波奥克斯电气股份有限公司 | Network distribution method and terminal of Internet of things equipment, Internet of things equipment and network distribution system |
-
2020
- 2020-08-31 CN CN202010900770.7A patent/CN114117262A/en active Pending
- 2020-10-30 CN CN202080104739.0A patent/CN116261722A/en active Pending
- 2020-10-30 WO PCT/CN2020/125488 patent/WO2022041472A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022041472A1 (en) | 2022-03-03 |
CN116261722A (en) | 2023-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612909B (en) | Information interaction method, device and equipment about Internet of things equipment | |
KR101270323B1 (en) | Methods, apparatuses, and computer program products for providing a single service sign-on | |
CN112073307B (en) | Mail processing method, mail processing device, electronic equipment and computer readable medium | |
CN111475788A (en) | Cross-border e-commerce platform account registration method, device, terminal and storage medium | |
CN113141671B (en) | Communication method and device of wifi device and computer readable storage medium | |
CN105426448A (en) | Method, device and system for interface display | |
CN107368334B (en) | Business plug-in interaction system and method | |
WO2023236512A1 (en) | Information code display method and apparatus, and terminal device and storage medium | |
CN104811485A (en) | Resource sharing method | |
CN111901151A (en) | Method, device, equipment and medium for gateway equipment to manage IOT equipment | |
CN105577603A (en) | Method and device for broadcasting multimedia messages | |
CN110995577B (en) | Multi-channel adaptation method and device for message and storage medium | |
CN112988311A (en) | On-line experimental method based on WEB server | |
CN112614049A (en) | Image processing method, image processing device, storage medium and terminal | |
CN114117262A (en) | Internet of things equipment network distribution method and device, intelligent terminal and storage medium | |
CN109656647B (en) | Chart picture generation method, device and equipment and computer readable storage medium | |
CN114039754B (en) | Security verification method and device | |
CN115793936A (en) | Information processing method and device and electronic equipment | |
CN114025349B (en) | Network service method, device, system and storage medium | |
CN110636114B (en) | Customer service access method, access system, service system and cloud platform | |
CN114417318A (en) | Third-party page jumping method and device and electronic equipment | |
CN114064165A (en) | Application page processing method and device | |
CN115250259B (en) | Information interaction method and device and electronic equipment | |
CN112988170B (en) | Application display method and device | |
CN114697713B (en) | Voice assistant control method and device, storage medium and intelligent television |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |