WiFi-based AP mode free network configuration method and related equipment

Through the WiFi-based AP mode free distribution network method, the problem of cumbersome and harsh distribution process of traditional smart devices is solved, and the normal operation and efficient distribution of smart devices in an environment without relay equipment is achieved.

CN114554433BActive Publication Date: 2025-02-28HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210210233.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2025-02-28
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

The distribution process of traditional smart devices is cumbersome and harsh, and smart devices need to be connected in advance, and it needs to be completed together by smart devices, mobile terminals, and cloud terminals, resulting in strict distribution conditions and time-consuming processes.

Method used

Using WiFi-based AP mode, the identification data of the smart device is obtained through the mobile terminal, the device hotspot of the smart device is connected, the device identification data is sent to activate the smart device, and the initial connection is disconnected, and finally the target connection is established to control the smart device.

Benefits of technology

The distribution process of smart devices is simplified and the dependence on relay devices is reduced. Smart devices can work normally in an environment without relay devices, and are suitable for outdoor scenarios with WiFi-free devices, improving the efficiency and realization of distribution networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554433B_ABST
    Figure CN114554433B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a network configuration-free method based on the AP mode of WiFi, which is used to reduce the network configuration process. The method of the embodiment of the present application includes: the mobile terminal obtains the identification data of the smart device; the mobile terminal obtains the device identification data of the smart device from the cloud according to the identification data, and the device identification data is bound to the identification data; after the mobile terminal obtains the device identification data, the mobile terminal connects to the device hotspot of the smart device so that the mobile terminal establishes an initial connection with the smart device; the mobile terminal sends the device identification data to the smart device to activate the smart device, and disconnects the initial connection between the smart device and the mobile terminal; after the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of smart device network configuration, and more particularly to a network configuration method. Background Art

[0002] More and more IoT products are entering our lives, and smart devices have become part of our lives. If you want to control such smart devices, you must first configure and activate the smart devices. However, the operation process of connecting the WiFi module to the network in the IoT is very cumbersome, and there needs to be a relay device with Internet access nearby. The conditions for the entire smart device to access the network are very harsh.

[0003] The current process of configuring smart devices to join the network is basically as follows: the mobile terminal scans the QR code to obtain the smart device serial number, applies for the activation key from the cloud based on the smart device serial number, the smart device is in monitoring mode after initialization and starts up, and listens to the broadcast or multicast data packets of all hotspots, and then the mobile terminal packages the activation key and other information and sends it to the smart device via broadcast or multicast, the smart device receives the data and registers and activates it with the cloud, and the mobile terminal can view the activation result of the smart device.

[0004] Therefore, traditional distribution network technology requires smart devices to be connected to the Internet in advance, which makes the entire distribution network conditions very harsh and the process very cumbersome and time-consuming. Summary of the invention

[0005] The embodiment of the present application provides a configuration-free network based on the AP mode of WiFi, which is used to reduce the network configuration process.

[0006] A first aspect of an embodiment of the present application provides a free network configuration method based on a WiFi AP mode, comprising:

[0007] The mobile terminal obtains identification data of the smart device;

[0008] The mobile terminal obtains the device identification data of the smart device from the cloud according to the identification data, and the device identification data is bound to the identification data;

[0009] After the mobile terminal obtains the device identification data, the mobile terminal connects to the device hotspot of the smart device, so that the mobile terminal establishes an initial connection with the smart device;

[0010] The mobile terminal sends the device identification data to the smart device to activate the smart device, and disconnects the initial connection between the smart device and the mobile terminal;

[0011] After the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device.

[0012] In the embodiment of the present application, the mobile terminal can control the smart device by obtaining the identification data of the smart device, thereby improving the feasibility of the solution.

[0013] A second aspect of the embodiment of the present application provides a free network configuration method based on the AP mode of WiFi, comprising:

[0014] The mobile terminal obtains identification data of the smart device;

[0015] The mobile terminal obtains the device identification data of the smart device from the cloud according to the identification data, and the device identification data is bound to the identification data;

[0016] After the mobile terminal obtains the device identification data, the mobile terminal connects to the device hotspot of the smart device, so that the mobile terminal establishes an initial connection with the smart device;

[0017] The mobile terminal sends the device identification data to the smart device to activate the smart device, and disconnects the initial connection between the smart device and the mobile terminal;

[0018] After the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device.

[0019] Optionally, the mobile terminal obtains identification data of the smart device including:

[0020] The mobile terminal obtains the identification data by scanning the QR code of the smart device.

[0021] Optionally, the mobile terminal acquiring the device identification data of the smart device from the cloud according to the identification data includes:

[0022] The mobile terminal sends the identification data to the cloud;

[0023] When the cloud verifies the identification data and authorizes and activates the smart device, the mobile terminal receives the device identification data sent by the cloud.

[0024] Optionally, the mobile terminal connects to a device hotspot of the smart device, and enables the mobile terminal to establish an initial connection with the smart device, including:

[0025] The mobile terminal is connected to the device hotspot of the smart device in wireless access point AP mode;

[0026] When the mobile terminal is connected to the device hotspot, the mobile terminal monitors the broadcast data information of the smart device;

[0027] The mobile terminal establishes the initial connection with the smart device through the broadcast data information.

[0028] Optionally, the mobile terminal establishing an initial connection with the smart device includes:

[0029] The mobile terminal establishes a transmission control protocol TCP connection with the smart device and starts a secure transport layer protocol service TLS;

[0030] After the mobile terminal establishes an initial connection with the smart device, the method further includes:

[0031] When the smart device monitors that the transmission control protocol TCP connection is established, the mobile terminal receives the secure transport layer protocol service TLS verification sent by the smart device;

[0032] If the mobile terminal passes the TLS verification, the mobile terminal establishes a TLS connection with the smart device.

[0033] Optionally, after the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device, including:

[0034] When the mobile terminal receives the device activation information sent by the smart device through the secure transport layer protocol service TLS connection, the mobile terminal establishes the transmission control protocol TCP connection with the smart device;

[0035] The mobile terminal sends a control instruction to the smart device through the transmission control protocol TCP connection to control the smart device.

[0036] Optionally, the smart device includes a driving recorder, a smart toy, a visual ear pick or an outdoor camera.

[0037] The embodiment of the present application provides a method for device network configuration-free. There is no need for smart devices to execute the network configuration process. The device hotspot can be connected only by scanning the code to obtain smart device information. The user does not need to actively enter verification information. The smart device can be in an environment without a relay device. It has certain implementation significance for scenarios where there are no WiFi devices outdoors. Therefore, it solves the problem of cumbersome network configuration process for smart devices and the inability to meet network configuration conditions in traditional technologies.

[0038] A third aspect of the embodiment of the present application provides a network configuration-free system based on the AP mode of WiFi, including:

[0039] An acquisition unit, used to acquire identification data of a smart device;

[0040] The acquisition unit is further used to acquire device identification data of the smart device from the cloud according to the identification data, and the device identification data is in a binding relationship with the identification data;

[0041] A connection unit, configured to connect to a device hotspot of the smart device after the mobile terminal acquires the device identification data, so that the mobile terminal establishes an initial connection with the smart device;

[0042] a sending unit, configured to send the device identification data to the smart device to activate the smart device, and disconnect the initial connection between the smart device and the mobile terminal;

[0043] The establishing unit is used to establish a target connection with the smart device to control the smart device after the mobile terminal receives the device activation information sent by the smart device.

[0044] The WiFi-based AP mode free network system provided in the third aspect of the embodiment of the present application is used to execute the method described in the first aspect.

[0045] A fourth aspect of the embodiments of the present application provides a network configuration-free system based on a WiFi AP mode, including:

[0046] An acquisition unit, used to acquire identification data of a smart device;

[0047] The acquisition unit is further used to acquire device identification data of the smart device from the cloud according to the identification data, and the device identification data is in a binding relationship with the identification data;

[0048] A connection unit, configured to connect to a device hotspot of the smart device after the mobile terminal acquires the device identification data, so that the mobile terminal establishes an initial connection with the smart device;

[0049] a sending unit, configured to send the device identification data to the smart device to activate the smart device, and disconnect the initial connection between the smart device and the mobile terminal;

[0050] The establishing unit is used to establish a target connection with the smart device to control the smart device after the mobile terminal receives the device activation information sent by the smart device.

[0051] Optionally, the system further comprises a scanning unit.

[0052] The scanning unit is used to obtain the identification data by scanning the QR code of the smart device.

[0053] Optionally, the system further comprises a receiving unit.

[0054] The sending unit is specifically configured to send the identification data to the cloud;

[0055] The receiving unit is used to receive the device identification data sent by the cloud after the cloud verifies the identification data and authorizes and activates the smart device.

[0056] Optionally, the system further includes a monitoring unit.

[0057] The connecting unit is specifically used to connect to the device hotspot of the smart device in wireless access point AP mode;

[0058] The monitoring unit is used for monitoring the broadcast data information of the smart device by the mobile terminal after the mobile terminal is connected to the device hotspot;

[0059] The establishing unit is specifically configured to establish the initial connection with the smart device through the broadcast data information.

[0060] Optionally,

[0061] The establishing unit is specifically used to establish a transmission control protocol TCP connection with the smart device and start a secure transport layer protocol service TLS;

[0062] The receiving unit is further configured to receive a secure transport layer protocol service TLS checksum sent by the smart device after the smart device monitors that the transmission control protocol TCP connection is established;

[0063] The establishing unit is further configured to establish a Transport Layer Security (TLS) service connection with the smart device when the mobile terminal passes the Transport Layer Security (TLS) service verification.

[0064] Optionally,

[0065] The establishing unit is specifically configured to establish the transmission control protocol TCP connection with the smart device after the mobile terminal receives the device activation information sent by the smart device through the secure transport layer protocol service TLS connection;

[0066] The sending unit is specifically used to send a control instruction to the smart device through the transmission control protocol TCP connection to control the smart device.

[0067] The WiFi-based AP mode free network system provided in the fourth aspect of the embodiment of the present application is used to execute the method described in the second aspect.

[0068] A fifth aspect of the embodiments of the present application provides a network configuration-free device based on a WiFi AP mode, including:

[0069] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0070] The memory is a short-term storage memory or a persistent storage memory;

[0071] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method described in the first aspect or the second aspect.

[0072] A sixth aspect of an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer executes the method described in the first aspect or the second aspect.

[0073] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0074] The embodiment of the present application provides a method for device network configuration-free. There is no need for smart devices to execute the network configuration process. The device hotspot can be connected only by scanning the code to obtain smart device information. The user does not need to actively enter verification information. The smart device can be in an environment without a relay device. It has certain implementation significance for scenarios where there are no WiFi devices outdoors. Therefore, it solves the problem of cumbersome network configuration process for smart devices and the inability to meet network configuration conditions in traditional technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0076] Figure 1 A schematic diagram of a network-free communication device architecture disclosed in an embodiment of the present application;

[0077] Figure 2 A flowchart of a method for free network configuration based on WiFi AP mode disclosed in an embodiment of the present application;

[0078] Figure 3 A schematic diagram of a WiFi-based AP mode free network configuration system disclosed in an embodiment of the present application;

[0079] Figure 4 A schematic diagram of the structure of another WiFi-based AP mode free network system disclosed in an embodiment of the present application;

[0080] Figure 5The present invention is a schematic diagram of the structure of a WiFi-based AP mode free network device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0082] WiFi Direct technology allows any device that has been certified by WiFi Direct to work in both wireless access point (AP) mode and wireless terminal (STA) mode. It uses groups as units to achieve interconnection between two or more WiFi devices, of which one and only one WiFi device is used as a management center to centrally manage the connections of the remaining workstations in the group. WiFi Direct technology is also compatible with various encryption methods in the WiFi protocol, making it more secure. In addition, it has functions such as service discovery and basic device discovery, is easy to use, and has reliable access. Compared with other technologies, it is more popular and is currently being widely used. With these technologies, multiple devices can be interconnected without relying on intermediate devices such as routers.

[0083] In summary, the traditional QR code network configuration technology requires the smart device to be connected to the Internet in advance, and requires the smart device, mobile terminal, and cloud to work together, which is indispensable, making the entire network configuration conditions very harsh and the process very cumbersome and time-consuming. At the same time, in the form of broadcast and multicast, there is packet loss, the success rate of network configuration is low, and the security risk is high, and there is a risk of information leakage.

[0084] Therefore, the embodiment of the present application provides a network configuration-free method based on the AP mode of WiFi, which is used to reduce the network configuration process.

[0085] See also Figure 1 , Figure 1 The schematic diagram of a network-free communication device architecture disclosed in the embodiment of the present application includes a mobile terminal 101 and a smart device 102. The mobile terminal 101 is connected to the smart device 102.

[0086] Specifically, in the embodiment of the present application, the mobile terminal 101 mainly includes mobile phones, tablets, computers and other devices with the function or application of free network. For the convenience of understanding, the mobile terminal 101 can be an Apple mobile phone, a tablet computer, a Huawei mobile phone or a Xiaomi mobile phone, etc. It is not difficult to understand that the embodiment of the present application does not limit the specific implementation device of the mobile terminal 101, and no further description will be given later. At the same time, for the convenience of the subsequent description, in the embodiment of the present application, the mobile terminal 101 is divided into two major sections, one is the application software APP (application), and the other is the software development kit (SDK, software development kit). For the convenience of subsequent description, if APP or SDK is mentioned in the subsequent description, it is assumed to be a mobile terminal, and no further description will be given later. Among them, SDK can establish a transmission control protocol (TCP, transfer control protocol) connection and a secure transport layer protocol (TLS, transport layer security) connection with a smart device, but it should be noted that, in general, the establishment of a TLS connection needs to rely on a TCP connection. Therefore, if a TLS connection needs to be established, a TCP connection needs to be established first. For the convenience of description, no further description will be given later. It should also be noted that the port on the SDK can monitor the user datagram protocol (UDP).

[0087] The smart device 102 mainly includes smart devices with WIFI chips, such as driving recorders, smart toys, visual ear picks or outdoor cameras. It should be understood that the smart device 102 is mainly for outdoor scenes. When there is no network near the smart device 102, a WiFi-based AP mode-free network configuration method proposed in an embodiment of the present application can be used.

[0088] The above describes the connection method between the mobile terminal and the smart device. The following describes the steps for the mobile terminal to interact with the smart device. Figure 2 , Figure 2 The flowchart of a method for free network configuration based on the AP mode of WiFi disclosed in the embodiment of the present application is shown in FIG. Specifically, the method includes steps 201-205.

[0089] 201. The mobile terminal obtains identification data of the smart device.

[0090] Before the mobile terminal obtains the identification data of the smart device, the smart device needs to switch to the wireless access point (AP, access point) mode, turn on the device hotspot of the smart device, and wait for the mobile terminal to connect. It is understandable that the smart device only needs to switch to AP mode before the mobile terminal connects to the smart device, that is, before step 203. It should also be noted that due to the restrictions on automatically connected WIFI by various systems, automatically connecting to the device hotspot is a violation of privacy and security. If the user enters information such as the service set identifier (SSID, service set identifier) ​​and password, it is necessary to enter the network configuration process, which will not be described in detail here. This embodiment mainly describes the free network configuration method.

[0091] At this time, the mobile terminal starts the application APP, enters the code scanning interface, and scans the QR code on the packaging or instruction manual of the smart device to parse and obtain the serial number of the smart device. It should be noted that the serial number of the smart device is the identification data described in the previous section, that is, the number generated on a machine (UUID, universally unique identifier), which is guaranteed to be unique for all machines in the same time and space. At the same time, it is not difficult to understand that the UUID can be obtained not only by scanning the QR code, but also by querying on the official website of the smart device. This embodiment does not limit the method of obtaining the UUID of the smart device, and will not be repeated in the following. For ease of understanding, the subsequent descriptions of the serial number or identification data of the smart device are all described in terms of UUID, and will not be repeated in the following.

[0092] When the APP scans the QR code, the smart device will return the UUID to the APP.

[0093] 202. The mobile terminal obtains device identification data from the cloud based on the identification data.

[0094] When the mobile terminal obtains the UUID of the smart device, it will send a request to the cloud to download the preset model. It is not difficult to understand that the preset model mentioned in this embodiment is the device identification data described in the previous section. For the convenience of understanding, the subsequent description of the device identification data is described in terms of the preset model, and no further elaboration will be given later. It can also be understood that before the manufacturer sells the smart device, the UUID and the preset model have been bound in the cloud. The preset model is the information used to activate the smart device. When the device leaves the factory, the preset model is bound to the UUID and recorded in the cloud. When the mobile terminal requests through the UUID, the cloud will search for the corresponding preset model based on the serial number and return it to the mobile terminal. Thus, the mobile terminal can request to download the preset model based on the obtained UUID. The preset model is bound to the UUID.

[0095] When the cloud receives the request message sent by the mobile terminal, it will verify the received UUID information. It is not difficult to understand that the cloud verification requires the mobile terminal to be connected to the Internet, but the smart device does not need to be connected to the Internet. After the cloud verifies the UUID, the smart device will be authorized and activated in the cloud.

[0096] After the smart device is successfully authorized and activated in the cloud, the cloud will send the preset model bound to the UUID to the APP on the mobile terminal. At the same time, the APP will also cache the received preset model in the SDK.

[0097] After the mobile terminal obtains the preset model of the smart device, it enters the free network configuration link. For details, please refer to steps 201-202. For the convenience of description, this implementation will not be repeated.

[0098] 203. Device hotspot for connecting the mobile terminal to smart devices.

[0099] Before the mobile terminal connects to the device hotspot of the smart device, it is not difficult to understand that the smart device needs to switch to AP mode.

[0100] When the mobile terminal obtains the preset model and the smart device is in AP mode, the corresponding APP on the mobile terminal can connect to the device hotspot of the smart device. At this time, the mobile terminal will guide the user to actively connect to the device hotspot. After the hotspot is connected, the SDK on the mobile terminal will listen to the broadcast data packet of the smart device. Specifically, the broadcast data packet is always sent by the smart device and is a UDP broadcast message of the local area network. It is not difficult to understand that the smart device will send broadcast packets to the port of the mobile terminal in a loop. The broadcast packet frame type type is generally 0×11, and the data packet content data is generally encrypted using Key1. It should be understood that this embodiment does not limit the content or type of the broadcast data packet. The content or type of the broadcast data packet can also be in other forms, which will not be elaborated later. At this time, the smart device will listen to the message of the corresponding port. When the App initiates a TCP connection to this port, it will trigger subsequent operations.

[0101] When the mobile terminal receives data, it will establish a LAN connection with the smart device and start the TLS service. Specifically, when the SDK on the mobile terminal obtains the broadcast data packet, it will parse the data packet content of the broadcast data packet to obtain the IP address of the smart device. Then the SDK on the mobile terminal will initiate a TCP connection request to the smart device. If the TCP connection between the smart device and the SDK is successful, the mobile terminal will start the TLS service.

[0102] After the smart device detects that the LAN connection is established, that is, the TCP connection is established, it will initiate TLS verification to the mobile terminal. Specifically, when the smart device detects that the TCP connection is established, the smart device will send information about the specified TLS encryption suite to the SDK and start the TLS handshake. At this point, the mobile terminal and the smart device enter the step of sending device activation information.

[0103] Specifically, when the SDK in the mobile terminal successfully handshakes with the smart device through TLS, that is, the mobile terminal establishes a TLS connection with the smart device, it will send a device information query instruction to the smart device through the TLS connection, and the instruction is generally encrypted using Key1. It is understandable that in the subsequent description of this step, both the smart device and the mobile terminal can interact through the TLS channel, and this will not be repeated later. It is not difficult to understand that the smart device and the mobile terminal can also interact through other channels. This embodiment does not limit this interaction method. For example, the use of the TLS channel has high security and low risk of information leakage.

[0104] When the smart device receives the query device information instruction data, it will parse the query device information instruction. After successful parsing, the smart device will send the device information to the SDK on the mobile terminal, and the information can also be encrypted using Key1. It should be understood that for the convenience of description, the subsequent information interaction between the smart device and the mobile terminal can be encrypted using Key1, and this will not be repeated later.

[0105] When the SDK on the mobile terminal receives the device information, it will send a time zone correction instruction to the smart device. After the smart device receives the time zone correction instruction data, it will also parse the time zone correction instruction data. After the parsing is successful, the receiving result will be returned to the SDK.

[0106] 204. The mobile terminal sends device identification data to the smart device to activate the smart device and disconnect the initial connection.

[0107] When the mobile terminal receives the result of the time zone analysis and correction instruction sent by the smart device, it is not difficult to understand that the TLS verification passes at this time.

[0108] After the TLS verification is passed, the mobile terminal will send the preset model data to the smart device. Specifically, the SDK on the mobile terminal sends the cached preset model to the smart device through the TLS channel. It is understandable that the data information can also be encrypted using Key1. When the smart device receives the preset model data, it will parse the data and return the parsing result to the SDK on the mobile terminal. At this point, the smart device has been activated.

[0109] It should be noted that since the TLS channel is not implemented based on the existing LAN, the TCP connection needs to be re-established according to the existing LAN process.

[0110] After receiving the preset model, the smart device will disconnect the current connection and re-establish the LAN connection. Specifically, the current connection refers to the TCP connection and TLS connection, not the connection between the smart device and the network. Re-establishing the connection is to ensure that the smart device has received the preset model. The SDK on the mobile terminal disconnects the current connection with the smart device and re-establishes a TCP connection with the smart device.

[0111] 205. The mobile terminal establishes a target connection with the smart device to control the smart device.

[0112] When the mobile terminal disconnects the TCP connection and TLS connection with the smart device, the TCP connection will be re-established. When the mobile terminal establishes a TCP connection with the smart device, the SDK on the mobile terminal will send a query device information (version) to the smart device. After receiving the query device information, the smart device will send the corresponding device information to the SDK. At this time, the SDK can update the local device model based on the device information. At the same time, the SDK will also synchronize the device model in the cloud.

[0113] It is not difficult to understand that when the smart device establishes a TCP connection with the mobile terminal, the mobile terminal can control the smart device. Specifically, the user can issue control instructions through the operation panel of the APP on the mobile terminal. The specific operation can be the following steps: the user issues control instructions on the APP panel; the APP transmits the control instructions to the SDK; the SDK sends the control instructions to the smart device through the TCP connection; the smart device executes the control instructions and returns the results.

[0114] It should be noted that the mobile terminal can also perform other interactions with the smart device through a TCP connection, which is not specifically limited here.

[0115] This embodiment provides a method for device network configuration-free. There is no need for smart devices to execute the network configuration process. The device hotspot can be connected only by scanning the code to obtain smart device information. The user does not need to actively enter verification information. The smart device can be in an environment without a relay device. It has certain implementation significance for scenarios where there are no WiFi devices outdoors. Therefore, it solves the problem that the process of configuring the network for smart devices is complicated and the conditions for configuring the network cannot be met in traditional technologies.

[0116] The above describes the free network configuration method based on the WiFi AP mode in the embodiment of the present application. The following describes the structure of the free network configuration system based on the WiFi AP mode in the embodiment of the present application. Figure 3 , a structure of interaction of a free-network based on WiFi AP mode includes:

[0117] An acquisition unit 301 is used to acquire identification data of a smart device;

[0118] The acquisition unit 301 is further configured to acquire device identification data of the smart device from the cloud according to the identification data, wherein the device identification data is bound to the identification data;

[0119] A connecting unit 302 is configured to connect to a device hotspot of the smart device after the mobile terminal acquires the device identification data, so that the mobile terminal establishes an initial connection with the smart device;

[0120] A sending unit 303 is used to send the device identification data to the smart device to activate the smart device and disconnect the initial connection between the smart device and the mobile terminal;

[0121] The establishing unit 304 is configured to establish a target connection with the smart device to control the smart device after the mobile terminal receives the device activation information sent by the smart device.

[0122] In this embodiment, the mobile terminal can control the smart device by acquiring the identification data of the smart device, thereby improving the feasibility of the solution.

[0123] The structure of the free network configuration system based on the WiFi AP mode in the embodiment of the present application is described in detail below. Figure 4 The structure of another WiFi-based AP mode free network system disclosed in the embodiment of the present application includes:

[0124] The acquisition unit 401 is used to acquire identification data of the smart device;

[0125] The acquisition unit 401 is further used to acquire device identification data of the smart device from the cloud according to the identification data, and the device identification data is bound to the identification data;

[0126] A connection unit 402 is used to connect to a device hotspot of a smart device after the mobile terminal obtains the device identification data, so that the mobile terminal establishes an initial connection with the smart device;

[0127] The sending unit 403 is used to send device identification data to the smart device to activate the smart device and disconnect the initial connection between the smart device and the mobile terminal;

[0128] The establishing unit 404 is used to establish a target connection with the smart device to control the smart device after the mobile terminal receives the device activation information sent by the smart device.

[0129] Exemplarily, the system further includes a scanning unit 405 .

[0130] The scanning unit 405 is used to obtain identification data by scanning the QR code of the smart device.

[0131] Exemplarily, the system further includes a receiving unit 406 .

[0132] The sending unit 403 is specifically used to send identification data to the cloud;

[0133] The receiving unit 406 is used to receive the device identification data sent by the cloud after the cloud verifies the identification data and the smart device is authorized and activated.

[0134] Exemplarily, the system further includes a monitoring unit 407 .

[0135] The connection unit 402 is specifically used to connect to a device hotspot of a smart device in wireless access point AP mode;

[0136] The monitoring unit 407 is used for the mobile terminal to monitor the broadcast data information of the smart device after the mobile terminal is connected to the device hotspot;

[0137] The establishing unit 404 is specifically configured to establish an initial connection with the smart device by broadcasting data information.

[0138] For example,

[0139] The establishing unit 404 is specifically used to establish a transmission control protocol TCP connection with the smart device and start a secure transport layer protocol service TLS;

[0140] The receiving unit 406 is further configured to receive a secure transport layer protocol service TLS checksum sent by the smart device after the smart device monitors that a transmission control protocol TCP connection is established;

[0141] The establishing unit 404 is further configured to establish a secure transport layer protocol service TLS connection with the smart device when the mobile terminal passes the secure transport layer protocol service TLS verification.

[0142] For example,

[0143] The establishing unit 404 is specifically configured to establish a transmission control protocol TCP connection with the smart device after the mobile terminal receives the device activation information sent by the smart device through a secure transport layer protocol service TLS connection;

[0144] The sending unit 403 is specifically configured to send a control instruction to the smart device via a transmission control protocol TCP connection to control the smart device.

[0145] This embodiment provides a method for device network configuration-free. There is no need for smart devices to execute the network configuration process. The device hotspot can be connected only by scanning the code to obtain smart device information. The user does not need to actively enter verification information. The smart device can be in an environment without a relay device. It has certain implementation significance for scenarios where there are no WiFi devices outdoors. Therefore, it solves the problem that the process of configuring the network for smart devices is complicated and the conditions for configuring the network cannot be met in traditional technologies.

[0146] See below Figure 5 The structural diagram of a WiFi-based AP mode free network device disclosed in an embodiment of the present application includes:

[0147] CPU 501, memory 505, input / output interface 504, wired or wireless network interface 503 and power supply 502;

[0148] The memory 505 is a temporary storage memory or a permanent storage memory;

[0149] The CPU 501 is configured to communicate with the memory 505 and execute the instructions in the memory 505 to perform the aforementioned Figure 2 The method in the illustrated embodiment.

[0150] The embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Figure 2 The method in the illustrated embodiment.

[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0152] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A free network configuration method based on WiFi AP mode, characterized in that: The method comprises: The mobile terminal obtains identification data of the smart device; The mobile terminal obtains the device identification data of the smart device from the cloud according to the identification data, and the device identification data is bound to the identification data; After the mobile terminal obtains the device identification data, the mobile terminal connects to the device hotspot of the smart device, so that the mobile terminal establishes an initial connection with the smart device; The mobile terminal sends the device identification data to the smart device to activate the smart device, and disconnects the initial connection between the smart device and the mobile terminal; After the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device.

2. The method according to claim 1, characterized in that The identification data of smart devices obtained by the mobile terminal include: The mobile terminal obtains the identification data by scanning the QR code of the smart device.

3. The method according to claim 1, characterized in that The mobile terminal acquiring the device identification data of the smart device from the cloud according to the identification data includes: The mobile terminal sends the identification data to the cloud; When the cloud verifies the identification data and authorizes and activates the smart device, the mobile terminal receives the device identification data sent by the cloud.

4. The method according to claim 1, characterized in that: The mobile terminal connects to the device hotspot of the smart device, and enables the mobile terminal to establish an initial connection with the smart device, including: The mobile terminal is connected to the device hotspot of the smart device in wireless access point AP mode; When the mobile terminal is connected to the device hotspot, the mobile terminal monitors the broadcast data information of the smart device; The mobile terminal establishes the initial connection with the smart device through the broadcast data information.

5. The method according to claim 1 or 4, characterized in that: The mobile terminal establishing an initial connection with the smart device includes: The mobile terminal establishes a transmission control protocol TCP connection with the smart device and starts a secure transport layer protocol service TLS; After the mobile terminal establishes an initial connection with the smart device, the method further includes: When the smart device monitors that the transmission control protocol TCP connection is established, the mobile terminal receives the secure transport layer protocol service TLS verification sent by the smart device; If the mobile terminal passes the TLS verification, the mobile terminal establishes a TLS connection with the smart device.

6. The method according to claim 5, characterized in that When the mobile terminal receives the device activation information sent by the smart device, the mobile terminal establishes a target connection with the smart device to control the smart device, including: When the mobile terminal receives the device activation information sent by the smart device through the secure transport layer protocol service TLS connection, the mobile terminal establishes the transmission control protocol TCP connection with the smart device; The mobile terminal sends a control instruction to the smart device through the transmission control protocol TCP connection to control the smart device.

7. The method according to any one of claims 1 to 6, characterized in that The smart device includes a driving recorder, a smart toy, a visual ear pick or an outdoor camera.

8. A WiFi-based AP mode free network system, characterized in that: The system comprises: An acquisition unit, used to acquire identification data of a smart device; The acquisition unit is further used to acquire device identification data of the smart device from the cloud according to the identification data, and the device identification data is in a binding relationship with the identification data; A connection unit, configured to connect to a device hotspot of the smart device after the mobile terminal acquires the device identification data, so that the mobile terminal establishes an initial connection with the smart device; a sending unit, configured to send the device identification data to the smart device to activate the smart device, and disconnect the initial connection between the smart device and the mobile terminal; The establishing unit is used to establish a target connection with the smart device to control the smart device after the mobile terminal receives the device activation information sent by the smart device.

9. A network-free device based on WiFi AP mode, characterized in that: The device comprises: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Networking method and system, readable storage medium and equipment

    CN110740424A

  • WiFi network connection method and device

    CN111277985A