CN116963027A - Network distribution method and device for dual-mode Internet of things equipment - Google Patents

Network distribution method and device for dual-mode Internet of things equipment Download PDF

Info

Publication number
CN116963027A
CN116963027A CN202210386928.2A CN202210386928A CN116963027A CN 116963027 A CN116963027 A CN 116963027A CN 202210386928 A CN202210386928 A CN 202210386928A CN 116963027 A CN116963027 A CN 116963027A
Authority
CN
China
Prior art keywords
network
internet
information
app
binding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210386928.2A
Other languages
Chinese (zh)
Inventor
代国军
赵勇
侯文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202210386928.2A priority Critical patent/CN116963027A/en
Priority to PCT/CN2022/134482 priority patent/WO2023197610A1/en
Publication of CN116963027A publication Critical patent/CN116963027A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a network distribution method grade device of dual-mode internet of things equipment, wherein the network distribution method applied to APP comprises the following steps: establishing BLE connection with target Internet of things equipment; according to a preset communication data protocol and a packetizing protocol, a message for requesting a session key is packetized and sent to target Internet of things equipment; after receiving a session key returned by the target Internet of things equipment, generating encryption distribution network information based on the session key; and sending the encrypted distribution network information to the target Internet of things equipment, so that the target Internet of things equipment performs distribution network binding according to the encrypted distribution network information. The distribution network information is transmitted in a point-to-point connection mode by using BLE connection, so that the method has the advantages of high transmission efficiency, short distribution network time, high distribution network success rate and the like; the data communication protocol based on the application layer is used for compiling data, the capability of the bottom layer of the chip is not bound, and the sub-packaging is carried out based on the data type, so that specific functions corresponding to the data are not required, and the network distribution method has universal applicability.

Description

Network distribution method and device for dual-mode Internet of things equipment
Technical Field
The application relates to the technical field of network distribution of Internet of things equipment, in particular to a network distribution method and device of dual-mode Internet of things equipment.
Background
At present, two network allocation methods of the internet of things equipment are mainly adopted, namely SmartConfig and a wireless access point (Wireless Access Point, abbreviated as AP) mode.
Wherein, smartConfig distribution network basic principle:
the device enters a WiFi promiscuous mode (Wi-Fi) to listen for wireless fidelity (wireless fidelity, abbreviated Wi-Fi) messages around the acquisition. A mobile phone Application (APP) APP codes a service set identifier (Service Set Identifier, SSID) of a router and a character string of a password according to a convention by utilizing length change, and sends the character string through a broadcast packet or a multicast packet of a user datagram protocol (User Datagram Protocol, UDP); after capturing the UDP message, the equipment end decodes the UDP message according to a stipulated mode, and the SSID and the password of the target wireless fidelity (wireless fidelity, wi-Fi for short) router can be obtained for active networking.
Basic principle of AP distribution network:
the APP end is connected with the target router, and obtains the SSID of the target router and the manually input password; ) Triggering the WiFi module to enter an AP distribution network mode; requesting to connect the AP hot spot sent by the WiFi module, and sending the SSID and the password of the target router to the module end; and after the WiFi module takes the router SSID and the password information, networking can be performed.
The existing SmartConfig network distribution method is often limited to a certain model of WiFi module, the network distribution time is long, the network distribution success rate is low, and the popularization of the network distribution of the Internet of things equipment is not facilitated. The existing SmartConfig distribution network method is usually customized for specific WiFi chips of manufacturers, some manufacturers support length change coding, some manufacturers support multicast address change coding, the coding modes of all chip manufacturers are different, and an APP end is complex to realize and has no universality because of being compatible with SmartConfig distribution network methods of multiple manufacturers.
For the AP network distribution method, although the network distribution success rate is improved, the working mode is not supported by a plurality of WiFi modules, the network distribution process is complex, and the user experience is poor.
Therefore, how to improve the success rate and the universality of the distribution network of the Internet of things equipment and simplify the distribution network process become an urgent problem to be solved in the field.
Disclosure of Invention
The technical aim to be achieved by the embodiment of the application is to provide a network distribution method and device of dual-mode internet of things equipment, which are used for solving the problems that the network distribution flow is complex and the success rate and/or the universality are low in the current network distribution method of the internet of things equipment.
In order to solve the above technical problems, an embodiment of the present application provides a network allocation method for a dual-mode internet of things device, applied to an APP, including:
Establishing a low-power Bluetooth (Bluetooth Low Energy, BLE for short) connection with the target Internet of things device;
according to a preset communication data protocol and a packetizing protocol, a message requesting a session key is packetized to a target internet of things device, and a data structure in the communication data protocol comprises: an operation code, a function point identifier, and function point data;
after receiving a session key returned by the target Internet of things equipment, generating encryption distribution network information based on the session key;
and sending the encrypted distribution network information to the target Internet of things equipment, so that the target Internet of things equipment performs distribution network binding according to the encrypted distribution network information.
Specifically, the network allocation method of the dual-mode internet of things device, which is described above, generates encrypted network allocation information based on a session key, and includes:
sending a request for binding token information of the distribution network to a server;
after receiving the network allocation binding token information fed back by the server, encrypting the network allocation binding token information, the SSID of the predetermined router and the connection password according to the session key to obtain encrypted network allocation information.
Further, the network allocation method of the dual-mode internet of things device as described above further includes, after sending the encrypted network allocation information to the target internet of things device:
After determining that the target internet of things equipment receives the encrypted network distribution information, polling a server whether network distribution binding is successful or not;
and when receiving the successful network allocation binding information fed back by the server, displaying the first information of the successful network allocation binding.
Specifically, the network allocation method establishes BLE connection with the target internet of things device, and includes:
searching a BLE broadcast frame, wherein the BLE broadcast frame carries a device identifier, a media access control bit address (Media Access Control, abbreviated as MAC) and an application identifier;
when a BLE broadcast frame is searched, judging whether the BLE broadcast frame is matched with the APP or not according to the application identifier;
when the BLE broadcast frame is matched with the APP, inquiring detailed information of corresponding equipment from a server according to the equipment identifier, wherein the detailed information at least comprises an initialization key;
displaying an alternative device list after the detailed information is queried;
and determining one of the internet of things devices in the alternative device list as the target internet of things device according to the selection input of the user, and establishing BLE connection.
Preferably, the network allocation method as described above further includes:
when the BLE broadcast frame is determined to be not matched with the APP according to the application identifier, or detailed information cannot be queried, discarding the BLE broadcast frame;
And when the alternative device list is not displayed within the first preset time, displaying second information of the search failure.
Specifically, the network allocation method described above, before searching for BLE broadcast frames, further includes:
according to the user input, the SSID and the connection password of the router to be connected are determined.
Preferably, the network allocation method further includes, after sending a packet requesting a session key to the target internet of things device according to the communication data protocol and the packetization protocol, the method further includes:
and when receiving initialization key verification failure information returned by the target Internet of things equipment, displaying third information of network allocation failure.
Specifically, the network allocation method described above further includes, after polling the server whether the network allocation binding is successful:
and when the result information related to the target internet of things equipment is not polled in the second preset time, displaying fourth information of the failure of the network distribution binding.
Another embodiment of the present application further provides a network allocation method of a dual-mode internet of things device, applied to an internet of things device, including:
establishing BLE connection with an APP;
receiving a message which is sent by an APP according to a preset communication data protocol and a packet protocol and requests a session key;
Assembling the messages according to the packetizing protocol, and disassembling the assembled messages according to the communication data protocol to obtain an initialization key related to the Internet of things equipment;
checking the initialization key, and feeding back a session key when the checking is successful;
after receiving the encrypted network distribution information sent by the APP and encrypted according to the session key, network distribution binding is carried out according to the encrypted network distribution information.
Specifically, the network allocation method of the dual-mode internet of things device according to the above description, performing network allocation binding according to the encrypted network allocation information includes:
decrypting the encrypted distribution network information according to the session key to obtain distribution network binding token information, SSID (service set identifier) of the router and a connection password, and feeding back a receiving success signal to the APP;
sending a networking request to a corresponding router according to the SSID and the connection password of the router;
and after the networking is successful, a registration or login request is initiated to the server according to the network allocation binding token information.
Preferably, the network allocation method described above, before establishing a BLE connection with an APP, further includes:
after entering the distribution network state, a BLE broadcast frame carrying the equipment identifier, the MAC and the application identifier is sent according to a preset format.
Another embodiment of the present application provides a network allocation method for a dual-mode internet of things device, applied to a server,
Comprising the following steps:
after receiving a request for the network binding token information sent by an APP, feeding back the network binding token information to the APP;
after the networking is successful, if a registration or login request sent by the Internet of things equipment after the networking is successful is received, checking is carried out according to the network allocation binding token information carried in the registration or login request;
and when the verification is successful, registering or logging in the Internet of things equipment, and binding the Internet of things equipment under the user name of the APP.
Preferably, the network allocation method of the dual-mode internet of things device as described above, when the verification is successful, performs registration or login of the internet of things device, and binds the internet of things device under the user name of the APP, further includes:
based on the polling request sent by the APP whether the network binding is successful or not, the successful network binding information is fed back.
Yet another embodiment of the present application provides an APP comprising:
the first processing module is used for establishing low-power consumption Bluetooth BLE connection with the target internet of things equipment;
the second processing module is configured to send a message requesting a session key to the target internet of things device in a packet according to a preset communication data protocol and a packet protocol, where a data structure in the communication data protocol includes: an operation code, a function point identifier, and function point data;
The third processing module is used for generating encryption distribution network information based on the session key after receiving the session key returned by the target internet of things device;
and the fourth processing module is used for sending the encrypted distribution network information to the target Internet of things equipment, so that the target Internet of things equipment performs distribution network binding according to the encrypted distribution network information.
Specifically, as described above, the APP, the third processing module, includes:
the first sub-processing module is used for sending a network allocation binding token information request to the server;
and the second sub-processing module is used for encrypting the distribution network binding token information, a predetermined service set identifier SSID of the router and a connection password according to the session key after receiving the distribution network binding token information fed back by the server, so as to obtain encrypted distribution network information.
Further, the APP as described above further includes:
the thirteenth processing module is used for polling whether the network allocation binding is successful or not to the server after determining that the target internet of things equipment receives the encrypted network allocation information;
and the fourteenth processing module is used for displaying the first information of successful network allocation binding when receiving the successful network allocation binding information fed back by the server.
Specifically, as described above, the APP, the first processing module, includes:
A third sub-processing module, configured to search for a BLE broadcast frame, where the BLE broadcast frame carries a device identifier, a medium access control bit address MAC, and an application identifier;
a fourth sub-processing module, configured to determine, when a BLE broadcast frame is searched, whether the BLE broadcast frame matches with the APP according to the application identifier;
a fifth sub-processing module, configured to query, when the BLE broadcast frame matches with the APP, the server for detailed information of the corresponding device according to the device identifier, where the detailed information includes at least an initialization key;
the sixth sub-processing module is used for displaying an alternative device list after the detailed information is queried;
and the seventh sub-processing module is used for determining one of the internet of things devices in the alternative device list as the target internet of things device according to the selection input of the user, and establishing BLE connection.
Preferably, the APP as described above further comprises:
a fifteenth processing module, configured to discard the BLE broadcast frame when it is determined that the BLE broadcast frame does not match with the APP according to the application identifier, or detailed information cannot be queried;
and a sixteenth processing module, configured to display second information of search failure when the candidate device list is not displayed within the first preset time.
Specifically, the APP, as described above, further includes, before searching for BLE broadcast frames:
Seventeenth processing module, is used for confirming the SSID of the router to be connected and connecting the password according to user's input.
Preferably, the APP as described above further comprises:
and the eighteenth processing module is used for displaying third information of network allocation failure when receiving the initialization key verification failure information returned by the target internet of things equipment.
Specifically, the APP as described above further includes:
and the nineteenth processing module is used for displaying fourth information of the network distribution binding failure when the result information related to the target internet of things device is not polled in the second preset time.
Still another embodiment of the present application provides an internet of things device, including:
a fifth processing module, configured to establish BLE connection with an APP;
the sixth processing module is used for receiving a message which is sent by the APP in a packetized mode and requests a session key according to a preset communication data protocol and a packetizing protocol;
the seventh processing module is used for assembling the message according to the packetizing protocol, and disassembling the assembled message according to the communication data protocol to obtain an initialization key related to the Internet of things equipment;
the eighth processing module is used for checking the initialization key and feeding back a session key when the checking is successful;
And the ninth processing module is used for carrying out network distribution binding according to the encrypted network distribution information after receiving the encrypted network distribution information sent by the APP and encrypted according to the session key.
Specifically, as described above, the ninth processing module includes:
the eighth sub-processing module is used for decrypting the encrypted distribution network information according to the session key to obtain distribution network binding token information, the SSID of the router and the connection password, and feeding back a receiving success signal to the APP;
a ninth sub-processing module, configured to send a networking request to a corresponding router according to an SSID and a connection password of the router;
and the tenth sub-processing module is used for initiating a registration or login request to the server according to the network allocation binding token information after the networking is successful.
Preferably, the internet of things device as described above further comprises:
and the twentieth processing module is used for sending the BLE broadcast frame carrying the equipment identifier, the MAC and the application identifier according to a preset format after entering the distribution network state.
Another embodiment of the present application provides a server including:
the tenth processing module is used for feeding back the network binding token information to the APP after receiving the network binding token information request sent by the APP;
The eleventh processing module is configured to, after the networking is successful, verify according to the network configuration binding token information carried in the registration or login request if the received registration or login request sent by the internet of things device after the networking is successful;
and the twelfth processing module is used for registering or logging in the Internet of things equipment when the verification is successful, and binding the Internet of things equipment under the user name of the APP.
Preferably, the server as described above further comprises:
and the twenty-first processing module is used for feeding back successful network allocation binding information based on the polling request sent by the APP whether the network allocation binding is successful or not.
Still another embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements a step of a network allocation method applied to an APP dual-mode internet of things device as described above, or implements a step of a network allocation method applied to a dual-mode internet of things device of an internet of things device as described above, or implements a step of a network allocation method applied to a server dual-mode internet of things device as described above.
Compared with the prior art, the network distribution method and device for the dual-mode Internet of things equipment provided by the embodiment of the application have the following beneficial effects:
The application uses BLE connection to perform point-to-point connection transmission of the distribution network information, and does not use broadcasting, multicasting and other low-efficiency transmission modes, so that the distribution network method has the advantages of high transmission efficiency, short distribution network time, high distribution network success rate and the like; encryption is carried out based on the currently acquired session key, so that the data security of the distribution network is improved; the data communication protocol based on the application layer is used for compiling data, the capability of the bottom layer of the chip is not bound any more, chips of different manufacturers are enabled to be effective, subpackaging is carried out based on data types, specific functions corresponding to the data are not required, and the network distribution method has general applicability.
Drawings
FIG. 1 is a schematic flow chart of a network allocation method of a dual-mode Internet of things device applied to APP;
FIG. 2 is a second flow chart of the network configuration method of the dual-mode Internet of things device applied to APP of the present application;
FIG. 3 is a third flow chart of the network configuration method applied to the APP dual-mode Internet of things device according to the present application;
FIG. 4 is a flow chart of a network configuration method of the dual-mode Internet of things device applied to APP according to the present application;
FIG. 5 is a schematic flow chart of a network configuration method of a dual-mode Internet of things device applied to an Internet of things device according to the present application;
Fig. 6 is a second flow chart of the network allocation method of the dual-mode internet of things device applied to the internet of things device according to the present application;
fig. 7 is a schematic flow chart of a network allocation method of the dual-mode internet of things device applied to a server according to the present application;
FIG. 8 is a schematic diagram of the structure of the APP of the present application;
fig. 9 is a schematic structural diagram of an internet of things device according to the present application;
fig. 10 is a schematic structural diagram of a server according to the present application.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided merely to facilitate a thorough understanding of embodiments of the application. It will therefore be apparent to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B may be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
Referring to fig. 1, a preferred embodiment of the present application provides a network allocation method of a dual-mode internet of things device, applied to APP, including:
step S101, BLE connection is established with target Internet of things equipment;
step S102, according to a preset communication data protocol and a packetizing protocol, a message for requesting a session key is packetized to a target Internet of things device, and a data structure in the communication data protocol comprises: an operation code, a function point identifier, and function point data;
Step S103, after receiving a session key returned by the target Internet of things equipment, generating encryption distribution network information based on the session key;
and step S104, the encrypted distribution network information is sent to the target Internet of things equipment, so that the target Internet of things equipment performs distribution network binding according to the encrypted distribution network information.
In an embodiment of the present application, when an APP performs network allocation of an internet of things device, BLE connection is first established with a target internet of things device that needs the network allocation, that is, point-to-point connection between the APP and the target internet of things device is first established through BIE, so as to facilitate accurate transmission of subsequent data information and the like; after BLE connection is established, a message requesting a session key is generated based on a preset data communication protocol based on an application layer, the message is packetized through a preset packetizing protocol and then sent to target internet of things equipment, so that the target internet of things equipment can acquire an APP request and give a reply after receiving the message, when receiving the reply of the target internet of things equipment into the session key, encryption network allocation information is generated based on the session key, the encryption network allocation information is sent to the target internet of things equipment, and the target internet of things equipment can decrypt the encryption network allocation information based on the session key to obtain specific network allocation information, so that network allocation binding is carried out.
In summary, the application uses BLE connection to perform point-to-point connection transmission on the distribution network information, and does not use broadcasting, multicasting and other low-efficiency transmission modes, so that the distribution network method has the advantages of high transmission efficiency, short distribution network time, high distribution network success rate and the like; encryption is carried out based on the currently acquired session key, so that the data security of the distribution network is improved; the data communication protocol based on the application layer is used for compiling data, the capability of the bottom layer of the chip is not bound any more, chips of different manufacturers are enabled to be effective, subpackaging is carried out based on data types, specific functions corresponding to the data are not required, and the network distribution method has general applicability.
It should be noted that, the data structure in the preset communication data protocol includes: an opcode, a function point identifier, and function point data, the opcode being used to represent the purpose of the data, for example: APP reads and writes data to the equipment; the equipment responds to the success or failure of the APP operation; the equipment actively reports to the APP, etc., which generally occupies 1byte; the function point identifier represents the specific function of the data, and as for the distribution network of the application, the function points such as SSID, password and the like of the sending router can be identified, and generally, the function points occupy 2byte; the function point data sends specific parameter information, wherein the length identifies the number of bytes occupied by the data field, typically 2 bytes, and the data field represents parameters of specific delivery, such as: initialization key, router SSID, password, etc. Since the total length of the BLE single transmission data frame cannot exceed 20 bytes, when the length of the data field is greater than 15 bytes, the whole data information (including the operation code, the function point identifier and the function point data) needs to be packetized according to the packetizing protocol, where the packetized data structure includes: the method comprises the steps of packet ID, total number of packets, packet index, packet length and data, wherein the packet ID occupies 1byte, and when data information needs to be packetized, the packet ID of each packet is the same; the total number of packets occupies 1byte, which indicates the number of packets of all packets; the packet length occupies 1byte, representing the length of the data in the current packetization, with a maximum length of 16 bytes, preferably the last one packet outer length of all packetization is 16 bytes; the data is specific data for each packet.
In the present application, all information transmitted or received through the BLE connection is processed according to the communication data protocol and the packetization protocol described above.
Referring to fig. 2, specifically, the network allocation method of the dual-mode internet of things device, which generates encrypted network allocation information based on a session key, includes:
step S201, sending a request for binding token information of the distribution network to a server;
step S202, after receiving the network binding token information fed back by the server, encrypting the network binding token information, the SSID of the predetermined router and the connection password according to the session key to obtain encrypted network binding information.
In another embodiment of the present application, when the encrypted network allocation information is generated based on the session key, a network allocation binding token information request is sent to the server, so as to obtain the binding token information from the server, and further, after the network allocation binding token information fed back by the server is received, the network allocation binding token information, and the SSID and the connection password of the predetermined router are encrypted according to the session key, so as to obtain the encrypted network allocation information. The distribution network binding token information is used for indicating that the target Internet of things equipment is legal equipment, and the SSID and the connection password of the router are used for enabling the server to distribute the network to the target Internet of things equipment.
Referring to fig. 3, further, the network allocation method of the dual-mode internet of things device as described above further includes, after sending the encrypted network allocation information to the target internet of things device:
step S301, after determining that the target Internet of things device receives the encrypted network allocation information, polling a server whether the network allocation binding is successful or not;
step S302, when successful network allocation binding information fed back by the server is received, first information of successful network allocation binding is displayed.
In a specific embodiment of the present application, after the encrypted network allocation information is sent to the target internet of things device, in order to ensure that the target internet of things successfully receives the encrypted network allocation information, the feedback of the target internet of things device is waited, and subsequent operations are performed after the feedback of the target internet of things device is received, when the target internet of things device is determined according to the feedback to receive the encrypted network allocation information, the target internet of things device is determined to be capable of performing network allocation with the server according to the encrypted network allocation information, so as to poll the server whether network allocation is successful or not, so as to acquire network allocation results in time, and when the successful network allocation binding information fed back by the server is received, the first information of the successful network allocation binding is displayed, so that the user is informed that the target internet of things device has successfully allocated the network, and user experience is improved.
Referring to fig. 4, specifically, the network allocation method, as described above, establishes BLE connection with a target internet of things device, including:
step S401, searching a BLE broadcast frame, wherein the BLE broadcast frame carries a device identifier, a MAC and an application identifier;
step S402, when a BLE broadcast frame is searched, judging whether the BLE broadcast frame is matched with the APP according to the application identifier;
step S403, when the BLE broadcast frame is matched with the APP, inquiring the detailed information of the corresponding equipment from the server according to the equipment identifier, wherein the detailed information at least comprises an initialization key;
step S404, after the detailed information is queried, displaying an alternative device list;
step S405, according to the selection input of the user, determining that one Internet of things device in the candidate device list is the target Internet of things device, and establishing BLE connection.
In a specific embodiment of the present application, specific steps for establishing BLE connection between an APP and a target internet of things device are described, where after the APP enters a network configuration flow, it searches for a BLE broadcast frame, where the BLE broadcast frame carries a device identifier, a MAC, an application identifier, etc. for verifying whether the device is a legal device and notifying address information thereof; after searching a BLE broadcast frame, the APP can at least acquire a device identifier and an application identifier carried in the BLE broadcast frame, where according to the application identifier, it can be verified whether the BLE broadcast frame is sent by a legal device matched with the APP, if the BLE broadcast frame and the application identifier are matched, the APP queries, according to the device identifier, detailed information of a corresponding device to a server, where the detailed information includes at least an initialization key, and may further include: a Write universal unique identifier (Write Universally Unique Identifier, abbreviated as Write UUID) for APP to Write data to the device, and a Notify universal unique identifier (Notify Universally Unique Identifier, abbreviated as Notify UUID) for device box APP to send data; when the detailed information of the corresponding equipment is queried, the APP jumps to a search result page, and an equipment identifier corresponding to the equipment, the detailed information and the like are added into an alternative equipment list so as to enable a user to select equipment needing to be allocated with a network; when a plurality of legitimate devices are searched, the devices are preferably arranged according to the device identifiers. After receiving the selection input of the user, the internet of things device corresponding to the selection operation in the alternative device list can be determined as the target internet of things device, and BLE connection is established with the target internet of things device.
Preferably, the network allocation method as described above further includes:
when the BLE broadcast frame is determined to be not matched with the APP according to the application identifier, or detailed information cannot be queried, discarding the BLE broadcast frame;
and when the alternative device list is not displayed within the first preset time, displaying second information of the search failure.
In another embodiment of the present application, after judging whether the BLE broadcast frame is matched with the APP according to the application identifier, if the obtained judgment result is that the BLE broadcast frame is determined to be not matched with the APP, or after inquiring the detailed information of the corresponding device from the server according to the device identifier, the corresponding device is determined not to be a legal device related to the APP, and at this time, the BLE broadcast frame is discarded, which is favorable for ensuring the success rate of the distribution network.
In addition, if the candidate device list is not displayed in the first preset time after the search is started, indicating that the device with the blade meeting the condition is not searched in the first preset time, the APP jumps to a search failure page at the moment, prompts the user to search for failure, so that the user can check the device conveniently, the user experience is ensured, and the user can find out the problem in time and correct the problem.
Specifically, the network allocation method described above, before searching for BLE broadcast frames, further includes:
according to the user input, the SSID and the connection password of the router to be connected are determined.
In a specific embodiment of the present application, before searching for the BLE broadcast frame, the APP also determines the SSID of the router to be connected and the corresponding connection password, so that after searching for the target internet of things device, the APP sends the SSID as a part of the encrypted network allocation information to the target internet of things device, so that the target internet of things device enters the network.
Preferably, the network allocation method further includes, after sending a packet requesting a session key to the target internet of things device according to the communication data protocol and the packetization protocol, the method further includes:
and when receiving initialization key verification failure information returned by the target Internet of things equipment, displaying third information of network allocation failure.
In still another embodiment of the present application, after a packet of a request session key is sent to a target internet of things device, if initialization key verification failure information returned by the target internet of things device is received, it is determined that an initialization key error about a target internet of things device in the packet of the request session key sent by the APP to the target internet of things device is determined, and the target internet of things device at this time is not a legal device, so that third information of network allocation failure is displayed, and a user can acquire in time and process the information.
Specifically, the network allocation method described above further includes, after polling the server whether the network allocation binding is successful:
and when the result information related to the target internet of things equipment is not polled in the second preset time, displaying fourth information of the failure of the network distribution binding.
In still another embodiment of the present application, after polling whether the network allocation binding is successful from the server, if the result information related to the target internet of things device is not polled within the second preset time, it is determined that the target internet of things device cannot complete the network allocation, or the network allocation cannot be completed within the specified time, at this time, fourth information of the network allocation binding failure is displayed, so that the user can acquire in time and process the information.
Referring to fig. 5, another embodiment of the present application further provides a network allocation method of a dual-mode internet of things device, which is applied to the internet of things device, including:
step S501, BLE connection is established with an APP;
step S502, receiving a message which is sent by an APP according to a preset communication data protocol and a packetization protocol and requests a session key;
step S503, assembling the message according to the sub-packaging protocol, and disassembling the assembled message according to the communication data protocol to obtain an initialization key related to the Internet of things equipment;
Step S504, checking the initialization key, and feeding back a session key when the checking is successful;
step S505, after receiving the encrypted network distribution information sent by the APP and encrypted according to the session key, network distribution binding is performed according to the encrypted network distribution information.
In an embodiment of the present application, there is also provided a network allocation method applied to an internet of things device, including: firstly establishing BLE connection with an APP, after establishing connection, receiving a message which is sent by the APP and requests a session key in a subpacket mode according to a preset communication data protocol and a subpacket protocol, assembling the message according to the subpacket protocol, and disassembling the assembled message according to the communication data protocol to obtain data information carried in the message, wherein the data information comprises but is not limited to an initialization key related to Internet of things equipment; after the initialization key is obtained, verification is performed based on the initialization key stored by the device, if the verification is successful, the message is a message corresponding to the device, an APP session key is generated and fed back according to the message so as to carry out encrypted communication with the APP, after encrypted network allocation information sent by the APP and encrypted according to the session key is received, network allocation binding is carried out according to the encrypted network allocation information, specifically, the encrypted network allocation information is decrypted according to the session key, and specific network allocation information is obtained, and then network allocation is carried out according to the network allocation information.
In summary, the application uses BLE connection to perform point-to-point connection transmission on the distribution network information, and does not use broadcasting, multicasting and other low-efficiency transmission modes, so that the distribution network method has the advantages of high transmission efficiency, short distribution network time, high distribution network success rate and the like; encryption is carried out on the distribution network information based on the session key, so that the data security of the distribution network is improved; the data communication protocol based on the application layer is used for compiling data, the capability of the bottom layer of the chip is not bound any more, chips of different manufacturers are enabled to be effective, subpackaging is carried out based on data types, specific functions corresponding to the data are not required, and the network distribution method has general applicability.
Referring to fig. 6, specifically, the network allocation method of the dual-mode internet of things device according to the above-mentioned network allocation method includes:
step S601, decrypting the encrypted distribution network information according to the session key to obtain distribution network binding token information, SSID (service set identifier) and connection password of the router, and feeding back a receiving success signal to the APP;
step S602, a networking request is sent to a corresponding router according to the SSID and the connection password of the router;
step S603, after the networking is successful, a registration or login request is initiated to the server according to the network allocation binding token information.
In another embodiment of the present application, the step of performing the network binding according to the encrypted network information includes: firstly, decrypting the encrypted distribution network information according to the generated session key to obtain specific distribution network information, wherein the specific distribution network information comprises, but is not limited to, distribution network binding token information, an SSID (service set identifier) of a router and a connection password; further, a networking request is sent to a corresponding router for networking according to the SSID and the connection password of the router; if the networking is successful, a registration or login request is initiated to the server according to the network allocation binding token information, and the registration or login request is used for binding the equipment under the name of the APP user or logging in.
Preferably, the network allocation method described above, before establishing a BLE connection with an APP, further includes:
after entering the distribution network state, a BLE broadcast frame carrying the equipment identifier, the MAC and the application identifier is sent according to a preset format.
In another embodiment of the present application, before the internet of things device establishes a BLE connection with an APP, if entering a network configuration state, a BLE broadcast frame carrying a device identifier, a MAC and an application identifier is sent according to a preset format, so that a user in a communication range can search, identify and connect through the APP.
Referring to fig. 7, another embodiment of the present application provides a network allocation method of a dual-mode internet of things device, applied to a server,
comprising the following steps:
step S701, after receiving a request for network binding token information sent by an APP, feeding back the network binding token information to the APP;
step S702, if a registration or login request sent by the Internet of things equipment after successful networking is received, checking according to the network allocation binding token information carried in the registration or login request;
in step S703, when the verification is successful, the registration or login of the internet of things device is performed, and the internet of things device is bound under the user name of the APP.
In another embodiment of the present application, a network allocation method applied to a server is provided, where after receiving a network allocation binding token information request sent by an APP in communication connection with the server, the server feeds back the network allocation binding token information for subsequent verification and legal confirmation, if a registration or login request sent by an internet of things device after successful networking is received, the server performs verification according to the network allocation binding token information carried in the registration or login request, and if the network allocation binding token information carried in the registration or login request is the same as or matches with the network allocation binding token information sent to the APP, the server determines that the internet of things device is a device corresponding to the APP, further performs registration or login on the internet of things device, and binds the internet of things device under a user name of the APP. Preferably, the binding operation may be performed only at registration.
Preferably, the network allocation method of the dual-mode internet of things device as described above, when the verification is successful, performs registration or login of the internet of things device, and binds the internet of things device under the user name of the APP, further includes:
based on the polling request sent by the APP whether the network binding is successful or not, the successful network binding information is fed back.
In another embodiment of the present application, after the registration or login of the internet of things device is performed and the internet of things device is bound under the user name of the APP, if a polling request sent by the APP is received, if the polling request is successful in network allocation binding, the successful network allocation binding information is fed back to the APP. So that the user can accurately learn this information through the APP.
When the server does not receive the registration or login request sent by the internet of things device or does not complete registration or login according to the registration or login request, if the server receives the polling request sent by the APP, no information is fed back.
Referring to fig. 8, yet another embodiment of the present application provides an APP comprising:
a first processing module 801, configured to establish a bluetooth low energy BLE connection with a target internet of things device;
the second processing module 802 is configured to packetize, according to a preset communication data protocol and a packetizing protocol, a message for requesting a session key to a target internet of things device, where a data structure in the communication data protocol includes: an operation code, a function point identifier, and function point data;
A third processing module 803, configured to generate encrypted network allocation information based on the session key after receiving the session key returned by the target internet of things device;
the fourth processing module 804 is configured to send the encrypted distribution network information to the target internet of things device, so that the target internet of things device performs distribution network binding according to the encrypted distribution network information.
Specifically, as described above, the APP, the third processing module, includes:
the first sub-processing module is used for sending a network allocation binding token information request to the server;
and the second sub-processing module is used for encrypting the distribution network binding token information, a predetermined service set identifier SSID of the router and a connection password according to the session key after receiving the distribution network binding token information fed back by the server, so as to obtain encrypted distribution network information.
Further, the APP as described above further includes:
the thirteenth processing module is used for polling whether the network allocation binding is successful or not to the server after determining that the target internet of things equipment receives the encrypted network allocation information;
and the fourteenth processing module is used for displaying the first information of successful network allocation binding when receiving the successful network allocation binding information fed back by the server.
Specifically, as described above, the APP, the first processing module, includes:
A third sub-processing module, configured to search for a BLE broadcast frame, where the BLE broadcast frame carries a device identifier, a medium access control bit address MAC, and an application identifier;
a fourth sub-processing module, configured to determine, when a BLE broadcast frame is searched, whether the BLE broadcast frame matches with the APP according to the application identifier;
a fifth sub-processing module, configured to query, when the BLE broadcast frame matches with the APP, the server for detailed information of the corresponding device according to the device identifier, where the detailed information includes at least an initialization key;
the sixth sub-processing module is used for displaying an alternative device list after the detailed information is queried;
and the seventh sub-processing module is used for determining that one of the internet of things devices in the alternative device list is the internet of things device according to the selection input of the user, and establishing BLE connection.
Preferably, the APP as described above further comprises:
a fifteenth processing module, configured to discard the BLE broadcast frame when it is determined that the BLE broadcast frame does not match with the APP according to the application identifier, or detailed information cannot be queried;
and a sixteenth processing module, configured to display second information of search failure when the candidate device list is not displayed within the first preset time.
Specifically, the APP, as described above, further includes, before searching for BLE broadcast frames:
Seventeenth processing module, is used for confirming the SSID of the router to be connected and connecting the password according to user's input.
Preferably, the APP as described above further comprises:
and the eighteenth processing module is used for displaying third information of network allocation failure when receiving the initialization key verification failure information returned by the target internet of things equipment.
Specifically, the APP as described above further includes:
and the nineteenth processing module is used for displaying fourth information of the network distribution binding failure when the result information related to the target internet of things device is not polled in the second preset time.
The embodiment of the APP is a device corresponding to the embodiment of the network distribution method of the dual-mode Internet of things equipment applied to the APP, and all implementation means in the embodiment of the method are applicable to the embodiment of the APP, so that the same technical effects can be achieved.
Referring to fig. 9, still another embodiment of the present application provides an internet of things device, including:
a fifth processing module 901, configured to establish BLE connection with an APP;
a sixth processing module 902, configured to receive a packet sent by the APP according to a preset communication data protocol and a packetization protocol, where the packet requests a session key;
The seventh processing module 903 is configured to assemble the packet according to the packetizing protocol, and disassemble the assembled packet according to the communication data protocol, so as to obtain an initialization key related to the internet of things device;
an eighth processing module 904, configured to verify the initialization key, and when the verification is successful, feed back a session key;
and a ninth processing module 905, configured to perform network distribution binding according to the encrypted network distribution information after receiving the encrypted network distribution information sent by the APP and encrypted according to the session key.
Specifically, as described above, the ninth processing module includes:
the eighth sub-processing module is used for decrypting the encrypted distribution network information according to the session key to obtain distribution network binding token information, the SSID of the router and the connection password, and feeding back a receiving success signal to the APP;
a ninth sub-processing module, configured to send a networking request to a corresponding router according to an SSID and a connection password of the router;
and the tenth sub-processing module is used for initiating a registration or login request to the server according to the network allocation binding token information after the networking is successful.
Preferably, the internet of things device as described above further comprises:
and the twentieth processing module is used for sending the BLE broadcast frame carrying the equipment identifier, the MAC and the application identifier according to a preset format after entering the distribution network state.
The embodiment of the Internet of things equipment is a device corresponding to the embodiment of the network distribution method of the dual-mode Internet of things equipment applied to the Internet of things equipment, and all implementation means in the embodiment of the method are applicable to the embodiment of the Internet of things equipment, so that the same technical effect can be achieved.
Referring to fig. 10, another embodiment of the present application provides a server including:
a tenth processing module 1001, configured to feedback, to an APP, network binding token information after receiving a network binding token information request sent by the APP;
an eleventh processing module 1002, configured to verify according to the network binding token information carried in the registration or login request if the received registration or login request sent by the internet of things device after the internet of things device is successfully connected;
and a twelfth processing module 1003, configured to register or log in the internet of things device when the verification is successful, and bind the internet of things device under the user name of the APP.
Preferably, the server as described above further comprises:
and the twenty-first processing module is used for feeding back successful network allocation binding information based on the polling request sent by the APP whether the network allocation binding is successful or not.
The embodiment of the server of the application is a device corresponding to the embodiment of the network distribution method of the dual-mode internet of things equipment applied to the server, and all the implementation means in the embodiment of the method are applicable to the embodiment of the server, so that the same technical effect can be achieved.
Still another embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements a step of a network allocation method applied to an APP dual-mode internet of things device as described above, or implements a step of a network allocation method applied to a dual-mode internet of things device of an internet of things device as described above, or implements a step of a network allocation method applied to a server dual-mode internet of things device as described above.
Furthermore, the present application may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprise," "include," or any other variation thereof, are intended to cover a non-exclusive inclusion.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (17)

1. A network allocation method of a dual-mode internet of things device, applied to an application APP, comprising:
establishing low-power consumption Bluetooth BLE connection with target Internet of things equipment;
according to a preset communication data protocol and a packetizing protocol, a message requesting a session key is packetized to the target internet of things device, and a data structure in the communication data protocol comprises: an operation code, a function point identifier, and function point data;
after receiving a session key returned by the target internet of things device, generating encryption distribution network information based on the session key;
and sending the encrypted distribution network information to the target internet of things equipment, so that the target internet of things equipment carries out distribution network binding according to the encrypted distribution network information.
2. The method for provisioning of a dual-mode internet of things device of claim 1, wherein the generating encrypted provisioning information based on the session key comprises:
sending a request for binding token information of the distribution network to the server;
and after receiving the distribution network binding token information fed back by the server, encrypting the distribution network binding token information, a service set identifier SSID of a predetermined router and a connection password according to the session key to obtain the encrypted distribution network information.
3. The network deployment method of the dual-mode internet of things device according to claim 1, further comprising, after the sending the encrypted network deployment information to the target internet of things device:
after the target internet of things device is determined to receive the encrypted network distribution information, polling the server whether network distribution binding is successful or not;
and when receiving the successful network allocation binding information fed back by the server, displaying the first information of the successful network allocation binding.
4. The network deployment method of claim 1, wherein the establishing BLE connection with the target internet of things device comprises:
searching a BLE broadcast frame, wherein the BLE broadcast frame carries a device identifier, a Media Access Control (MAC) bit address and an application identifier;
when a BLE broadcast frame is searched, judging whether the BLE broadcast frame is matched with the APP or not according to the application identifier;
when the BLE broadcast frame is matched with the APP, inquiring detailed information of corresponding equipment from the server according to the equipment identifier, wherein the detailed information at least comprises an initialization key;
displaying an alternative device list after the detailed information is queried;
and determining one internet of things device in the alternative device list as the target internet of things device according to the selection input of the user, and establishing the BLE connection.
5. The method of network deployment of claim 4, further comprising:
discarding the BLE broadcast frame when it is determined that the BLE broadcast frame does not match the APP or the detailed information cannot be queried according to the application identifier;
and when the alternative equipment list is not displayed in the first preset time, displaying second information of search failure.
6. The network allocation method according to claim 4, further comprising, prior to said searching for BLE broadcast frames:
and determining the SSID of the router to be connected and the connection password according to user input.
7. The network allocation method according to claim 1, further comprising, after the sending the message requesting the session key to the target internet of things device according to the communication data protocol and the packetization protocol:
and when the initialization key verification failure information returned by the target internet of things equipment is received, displaying third information of network allocation failure.
8. The network provisioning method of claim 1, further comprising, after said polling the server for successful network provisioning binding:
and when the result information related to the target internet of things equipment is not polled in the second preset time, displaying fourth information of the network distribution binding failure.
9. The network distribution method of the dual-mode Internet of things equipment is applied to the Internet of things equipment and is characterized by comprising the following steps of:
establishing BLE connection with an APP;
receiving a message which is sent by the APP according to a preset communication data protocol and a packet protocol and requests a session key;
assembling the message according to the sub-packaging protocol, and disassembling the assembled message according to the communication data protocol to obtain an initialization key related to the Internet of things equipment;
checking the initialization key, and feeding back a session key when the checking is successful;
and after receiving the encrypted distribution network information sent by the APP and encrypted according to the session key, performing distribution network binding according to the encrypted distribution network information.
10. The network allocation method of the dual-mode internet of things device according to claim 9, wherein the performing network allocation binding according to the encrypted network allocation information comprises:
decrypting the encrypted distribution network information according to the session key to obtain distribution network binding token information, SSID (service set identifier) and connection password of a router, and feeding back a receiving success signal to the APP;
sending a networking request to a corresponding router according to the SSID and the connection password of the router;
And after the networking is successful, a registration or login request is initiated to the server according to the network allocation binding token information.
11. The network deployment method of claim 9, wherein prior to establishing a BLE connection with an APP, further comprising:
after entering the distribution network state, a BLE broadcast frame carrying the equipment identifier, the MAC and the application identifier is sent according to a preset format.
12. The network distribution method of the dual-mode Internet of things equipment is applied to a server and is characterized by comprising the following steps of:
after receiving a request for binding token information of a distribution network sent by an APP, feeding back the binding token information of the distribution network to the APP;
if a registration or login request sent by the Internet of things equipment after successful networking is received, checking according to the network allocation binding token information carried in the registration or login request;
and when the verification is successful, registering or logging in the internet of things equipment, and binding the internet of things equipment under the user name of the APP.
13. The network allocation method of the dual-mode internet of things device according to claim 12, wherein after registering or logging in the internet of things device and binding the internet of things device under the user name of the APP when the verification is successful, further comprising:
And feeding back successful network allocation binding information based on the polling request sent by the APP whether the network allocation binding is successful or not.
14. An APP, comprising:
the first processing module is used for establishing low-power consumption Bluetooth BLE connection with the target internet of things equipment;
the second processing module is configured to send a packet for requesting a session key to the target internet of things device in a packet manner according to a preset communication data protocol and a packet protocol, where a data structure in the communication data protocol includes: an operation code, a function point identifier, and function point data;
the third processing module is used for generating encryption distribution network information based on the session key after receiving the session key returned by the target internet of things device;
and the fourth processing module is used for sending the encrypted distribution network information to the target internet of things equipment, so that the target internet of things equipment carries out distribution network binding according to the encrypted distribution network information.
15. An internet of things device, comprising:
a fifth processing module, configured to establish BLE connection with an APP;
a sixth processing module, configured to receive a packet, sent by the APP, of a request for a session key according to a preset communication data protocol and a packetization protocol;
The seventh processing module is configured to assemble the packet according to the packetizing protocol, and disassemble the assembled packet according to the communication data protocol, so as to obtain an initialization key related to the internet of things device;
the eighth processing module is used for checking the initialization key and feeding back a session key when the checking is successful;
and the ninth processing module is used for carrying out network distribution binding according to the encrypted network distribution information after receiving the encrypted network distribution information sent by the APP and encrypted according to the session key.
16. A server, comprising:
the tenth processing module is used for feeding back the network binding token information to the APP after receiving the network binding token information request sent by the APP;
the eleventh processing module is configured to verify according to the network configuration binding token information carried in the registration or login request if the received registration or login request sent by the internet of things device after the internet of things device is successfully connected;
and the twelfth processing module is used for registering or logging in the internet of things equipment when the verification is successful, and binding the internet of things equipment under the user name of the APP.
17. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when executed by a processor, the computer program implements the steps of the network allocation method of the dual mode internet of things device applied to APP according to any one of claims 1 to 8, or the steps of the network allocation method of the dual mode internet of things device applied to the internet of things device according to any one of claims 9 to 11, or the steps of the network allocation method of the dual mode internet of things device applied to a server according to claim 12 or 13.
CN202210386928.2A 2022-04-13 2022-04-13 Network distribution method and device for dual-mode Internet of things equipment Pending CN116963027A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210386928.2A CN116963027A (en) 2022-04-13 2022-04-13 Network distribution method and device for dual-mode Internet of things equipment
PCT/CN2022/134482 WO2023197610A1 (en) 2022-04-13 2022-11-25 Network distribution method and apparatus for dual-mode internet-of-things device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210386928.2A CN116963027A (en) 2022-04-13 2022-04-13 Network distribution method and device for dual-mode Internet of things equipment

Publications (1)

Publication Number Publication Date
CN116963027A true CN116963027A (en) 2023-10-27

Family

ID=88328884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210386928.2A Pending CN116963027A (en) 2022-04-13 2022-04-13 Network distribution method and device for dual-mode Internet of things equipment

Country Status (2)

Country Link
CN (1) CN116963027A (en)
WO (1) WO2023197610A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113039566A (en) * 2018-12-12 2021-06-25 西门子股份公司 Application program configuration method, device, system, computer software product and readable medium for industrial Internet of things solution
CN112202758B (en) * 2020-09-27 2023-01-20 北京金山云网络技术有限公司 Internet of things equipment access method and device, electronic equipment and storage medium
CN112492608B (en) * 2020-11-16 2023-03-24 杭州萤石软件有限公司 Wireless network distribution method and device for Internet of things equipment, electronic equipment and storage medium
CN113489630A (en) * 2021-06-09 2021-10-08 深圳Tcl新技术有限公司 Network distribution method, device, storage medium and electronic terminal
CN114257624B (en) * 2021-12-24 2023-03-21 北京深盾科技股份有限公司 Configuration method, device and equipment of Internet of things equipment and storage medium

Also Published As

Publication number Publication date
WO2023197610A1 (en) 2023-10-19

Similar Documents

Publication Publication Date Title
EP3445094B1 (en) Wifi configuration methods, wifi mobile terminal, and wifi device
US8446843B2 (en) Rapid local address assignment for wireless communication networks
US9602365B2 (en) System and method of infrastructure service discovery
WO2019205952A1 (en) Information processing method and apparatus
US9906491B2 (en) Improving transmission efficiency of data frames by using shorter addresses in the frame header
WO2020147647A1 (en) Message sending method and related device
US11647388B2 (en) Method, control terminal and system for accessing device to network
KR102015236B1 (en) A method, terminal device, and server system for connecting communication devices
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
US11153207B2 (en) Data link layer-based communication method, device, and system
KR20080014788A (en) Establishing wireless universal serial bus(wusb) connecti0n via a trusted medium
CN113271579A (en) Bluetooth device control method, client, computer device and readable storage medium
US20150055642A1 (en) System and method for delivering push message
JP2015501605A (en) Data security channel processing method and device
WO2021077930A1 (en) Automatic networking method, apparatus, device, and readable medium
CN105119900B (en) Information secure transmission method, networking cut-in method and corresponding terminal
WO2023005410A1 (en) Information synchronization method and system, storage medium, and electronic device
WO2013075415A1 (en) Download method and system by way of broadcast in ubiquitous network
US20170099289A1 (en) Temporary Mac Address-Based Access Method, Apparatus, and System
CN207652705U (en) A kind of system of control terminal and the equipment access network based on wifi Beacon frames
CN116963027A (en) Network distribution method and device for dual-mode Internet of things equipment
TW200807988A (en) Configuring a host device by way of MMP
CN103188662B (en) A kind of method and device verifying WAP (wireless access point)
US20200274847A1 (en) Access device for analysis of physical links and method thereof
WO2011035577A1 (en) Method and sysytem for realizing trans-province transmission of multimedia messages over an industry application platform

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