Terminal equipment network configuration method, device, electronic equipment and non-volatile storage medium
By establishing temporary access points in the terminal device distribution network and switching to the connectable network, the problems of complex distribution network operations and poor user experience in the existing technology are solved, intelligent configuration and network connection are realized, and user experience and management efficiency are improved.
Patent Information
- Application Number
- CN202411732030.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the terminal equipment distribution network operation is complicated and the user experience is poor.
By receiving the distribution network request initiated by the application, the first configuration command is sent to the networking device corresponding to the distribution network gateway based on the device information, and a temporary access point is established, allowing the distribution network terminal to establish a connection with the network through the temporary access point, and obtain the connectable network information reported by the distribution terminal, and switch it to the corresponding wireless network for connection.
The equipment access process has been optimized, the intelligent configuration and network connection of IoT devices have been realized, the user experience and management efficiency has been improved, and the problem of complex operation and poor user experience has been solved.
Smart Images

Figure CN119767335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology and network communication technology, and in particular, to a terminal device network configuration method, device, electronic device and non-volatile storage medium. Background Art
[0002] With the rapid development of Internet of Things technology, third-party terminal devices are becoming increasingly popular in various application scenarios. Users usually need to configure the terminal device, that is, they need to connect the device to the network before using it to achieve the connection between the device and the network. However, the network configuration method in related technologies often requires users to manually enter network parameters or perform complex settings, which leads to problems such as complex operation and poor user experience.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a terminal device network configuration method, apparatus, electronic device and non-volatile storage medium to at least solve the technical problems of complex network configuration operation and poor user experience in related technologies.
[0005] According to one aspect of an embodiment of the present application, a terminal device network configuration method is provided, comprising: receiving a network configuration request initiated by an application, wherein the network configuration request includes device information of a terminal to be configured; based on the device information, sending a first configuration instruction to a networking device corresponding to a network configuration gateway, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point, and allow the terminal to be configured to establish a connection with the network through the temporary access point; when the terminal to be configured establishes a connection with the network through the temporary access point, obtaining connectable network information reported by the terminal to be configured, and switching the terminal to be configured from the temporary access point to a wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
[0006] Optionally, the application is used to initiate a network configuration request based on the device information of the terminal to be configured when receiving a first notification message forwarded by the network configuration gateway through the proxy platform, wherein the first notification message is used to indicate that the networking device has discovered the terminal to be configured, and the networking device is used to notify the network configuration gateway that the terminal to be configured has been discovered when a detection request frame broadcast by the terminal to be configured is detected.
[0007] Optionally, before receiving the network configuration request initiated by the application, the method also includes: determining the support information of the network configuration gateway, wherein the support information is used to characterize whether the network configuration gateway supports seamless network configuration; when the support information characterizes that the network configuration gateway supports seamless network configuration, starting the seamless network configuration service of the network configuration gateway, and testing the communication connection capability and data interaction capability between the network configuration gateway and the communication equipment, wherein the communication equipment includes: terminal equipment that has been configured and terminal equipment to be configured; if the test fails, repeating the test process until the test passes.
[0008] Optionally, sending a first configuration instruction to a networking device corresponding to the network distribution gateway includes: using a message queue telemetry transmission protocol to instruct the networking device to create a temporary access point so that the terminal to be configured can establish a connection with the network through the temporary access point; obtaining connectable network information reported by the terminal to be configured includes: obtaining a list of locally connectable wireless networks reported by the terminal to be configured, and sending the wireless network list to an application for display; in response to a network selection instruction triggered by a user in the application, determining the wireless network in the wireless network list corresponding to the network selection instruction as the wireless network corresponding to the connectable network information.
[0009] Optionally, switching the terminal to be configured with the network from a temporary access point to a wireless network corresponding to the connectable network information for connection includes: sending encrypted configuration information to the terminal to be configured with the network, wherein the encrypted configuration information includes at least one of the following: a network name and password, an authentication token, and the terminal to be configured with the network is used to establish a connection with the wireless network corresponding to the connectable network information based on the encrypted configuration information; determining a reception status of the encrypted configuration information, wherein, in a case where a first confirmation response message returned by the terminal to be configured with the network is received, it is determined that the terminal to be configured with the network has received the encrypted configuration information, and in a case where the first confirmation response message returned by the terminal to be configured with the network is not received for more than a preset time, it is determined that the terminal to be configured with the network has not received the encrypted configuration information; in a case where it is determined that the terminal to be configured with the network has not received the encrypted configuration information, the encrypted configuration information is resent to the terminal to be configured with the network.
[0010] Optionally, after the terminal to be configured establishes a connection with the wireless network corresponding to the connectable network information, the method also includes: obtaining device status information sent by the terminal to be configured, wherein the device status information is used to characterize the network connection status of the terminal to be configured; returning a second confirmation response message to the terminal to be configured, wherein the second confirmation response message is used to characterize that the network configuration gateway has received the device status information, and the terminal to be configured is used to resend the device status information if the second confirmation response message is not received within a preset time; and sending the device status information to the application for display.
[0011] Optionally, the method also includes: upon receiving a network configuration request sent by a networking device, sending an authorization request to an application, wherein, after establishing a temporary access point, the networking device is used to send a network configuration request to the networking device upon detecting a detection request frame sent by the terminal to be configured, and the network configuration request is used to request whether the terminal to be configured is allowed to establish a connection with the network through the temporary access point; upon receiving an authorization pass message returned by the application, the networking device is instructed to allow the terminal to be configured to establish a connection with the network through the temporary access point.
[0012] According to another aspect of an embodiment of the present application, a terminal device network configuration apparatus is also provided, including: a network configuration request receiving module, used to receive a network configuration request initiated by an application, wherein the network configuration request includes device information of the terminal to be configured; a temporary connection establishment module, used to send a first configuration instruction to a networking device corresponding to a network configuration gateway based on the device information, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point, and allow the terminal to be configured to establish a connection with the network through the temporary access point; a terminal network configuration connection module, used to obtain connectable network information reported by the terminal to be configured when the terminal to be configured establishes a connection with the network through the temporary access point, and switch the terminal to be configured from the temporary access point to a wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
[0013] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the terminal device network configuration method is executed when the program is run.
[0014] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the terminal device network configuration method by running the computer program.
[0015] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which implements the steps of the terminal device network configuration method when the computer program is executed by a processor.
[0016] In an embodiment of the present application, a network configuration request initiated by an application is received, wherein the network configuration request includes device information of a terminal to be configured; based on the device information, a first configuration instruction is sent to a networking device corresponding to a network configuration gateway, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point, and allow the terminal to be configured to establish a connection with the network through the temporary access point; when the terminal to be configured is connected to the network through the temporary access point, connectable network information reported by the terminal to be configured is obtained, and the terminal to be configured is switched from the temporary access point to a wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize a wireless network to which the terminal to be configured can be connected, and by optimizing the device access process, intelligent configuration and network connection of IoT devices are realized, thereby achieving the purpose of improving user experience and management efficiency, thereby solving the technical problems of complex network configuration operation and poor user experience in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for terminal device network configuration provided in an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of a method flow for configuring a network for a terminal device according to an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of a method flow of a third-party terminal device senseless network configuration based on ICT provided according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of a device interaction process provided according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a confirmation mechanism provided according to an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of a data interface test process provided according to an embodiment of the present application;
[0024] Figure 7 is a schematic diagram of a data transmission process provided according to an embodiment of the present application;
[0025] Figure 8 It is a structural diagram of a terminal equipment network distribution device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] In order to facilitate those skilled in the art to better understand the embodiments of the present application, some technical terms or nouns involved in the embodiments of the present application are explained as follows:
[0029] ICT (Information and Communication Technology): covers a series of technologies and tools that use computers and communication technologies to process, transmit and store information. Specifically, ICT includes computer hardware, software, networks, devices, wireless communications, the Internet and other aspects. These technologies are integrated with each other and together constitute the infrastructure of the modern information society.
[0030] ICT platform: Information and communication technology platform, is a comprehensive system that integrates multiple technologies and tools, designed to process, store, transmit and retrieve information through electronic equipment and network technology. The platform not only covers computer hardware, software, network and communication equipment and other infrastructure, but also integrates advanced information processing technology and communication protocols to provide users with a full range of information services. Its main features include: 1) Integration: The ICT platform integrates multiple communication methods (such as telephone, Internet, wireless communication, etc.), realizing the rapid exchange and sharing of information. 2) Interactivity: Supports interaction between people and people, people and machines, and improves communication efficiency and user experience. 3) Intelligence: With the development of artificial intelligence technology, ICT platforms are becoming more and more intelligent, capable of performing complex tasks and providing decision support. 4) Accessibility: Makes information and services more accessible, helps narrow the digital divide and promotes information equality. 5) Security: With strong security measures, data and information are protected from illegal access or destruction.
[0031] Senseless network configuration: It is an innovative network connection technology that aims to simplify the network configuration process of terminal devices and improve user experience. The system uses advanced communication technology and intelligent algorithms to realize automatic identification and rapid access to the network of terminal devices, without the need for users to manually enter complex network parameters or perform tedious settings. The core advantage of the intelligent senseless network configuration system lies in its "senseless" feature, that is, the device can automatically complete the network connection without the user participating in any network configuration operation. This process usually relies on a variety of communication technologies such as sound waves, Bluetooth, and WiFi direct connection. Through specific network configuration protocols and intelligent interactions between devices, network parameters (such as passwords, etc.) are safely and quickly transmitted to terminal devices. Specifically, the workflow of the intelligent senseless network configuration system may include the following steps: First, the user starts the terminal device that needs to be configured; then, the system automatically detects and identifies nearby available networks through communication methods such as sound waves and Bluetooth; then, the device uses intelligent algorithms to parse and obtain network parameters; finally, the device automatically connects to the target network and completes the relevant network configuration.
[0032] MQTT (Message Queuing Telemetry Transport): is a lightweight, open message transmission protocol suitable for inter-device communication in Internet of Things (IoT) applications. Its features include: 1) Lightweight: The MQTT protocol is designed to be very lightweight, with a header of only 2 bytes and a minimum packet of only 2 bytes, making it very suitable for resource-constrained IoT devices. 2) Low bandwidth consumption: The MQTT protocol uses a binary format with high data transmission efficiency, which can effectively reduce network bandwidth consumption. 3) High reliability: The MQTT protocol supports multiple quality of service (QoS) levels, including at most once, at least once, and exactly once, to ensure the reliability of message delivery.
[0033] 4) Asynchronous communication: MQTT adopts a publish / subscribe model, decoupling publishers and subscribers and supporting asynchronous communication. 5) Scalability: The MQTT protocol supports many-to-many communication between devices and can be easily expanded to large-scale IoT networks. The MQTT protocol has been widely used in the IoT field due to its lightweight, high reliability, and low bandwidth consumption, providing strong support for real-time and reliable communication between devices.
[0034] The network distribution methods in related technologies have problems such as complex operation and poor user experience. In order to improve network distribution efficiency and user experience, an ICT-based senseless network distribution system is provided in the application embodiment, which uses advanced communication technology and intelligent algorithms to realize automatic identification and rapid access of terminal devices without manual intervention by users, greatly simplifying the network distribution process. At the same time, combined with ICT technologies such as cloud computing and big data, the system can monitor the status of equipment in real time, optimize resource allocation, and improve the overall performance and stability of the network. The following is a detailed description.
[0035] According to an embodiment of the present application, an embodiment of a method for configuring a terminal device for network configuration is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or electronic device) for implementing the terminal device network configuration method is shown. Figure 1 As shown, the computer terminal 10 (or electronic device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0037] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or electronic device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0038] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the terminal device network configuration method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the terminal device network configuration method described above is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0039] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or electronic device).
[0041] In the above operating environment, the embodiment of the present application provides a terminal device network configuration method, Figure 2 is a schematic diagram of a method flow for configuring a network for a terminal device according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0042] Step S202, receiving a network configuration request initiated by an application, wherein the network configuration request includes device information of a terminal to be configured;
[0043] Step S204: sending a first configuration instruction to a networking device corresponding to the network distribution gateway according to the device information, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point and allow the terminal to be configured to establish a connection with the network through the temporary access point;
[0044] Step S206, when the terminal to be configured establishes a connection with the network through a temporary access point, obtain the connectable network information reported by the terminal to be configured, and switch the terminal to be configured from the temporary access point to the wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can connect.
[0045] Through the above steps, by optimizing the device access process, the intelligent configuration and network connection of IoT devices are realized, the purpose of improving user experience and management efficiency is achieved, and the technical problems of complex network distribution operation and poor user experience in related technologies are solved.
[0046] The following further introduces the terminal device network configuration method in steps S202 to S206 of the embodiment of the present application.
[0047] In the era of the Internet of Things, the non-sensing network distribution technology has become a bridge connecting smart devices and the Internet with its convenience and efficiency. The embodiment of this application aims to achieve automation and intelligence of device access to the network through close collaboration between self-service APP (i.e., application program), ICT platform (agent platform), terminals to be configured, WIFI networking devices (terminals) and edge fusion gateways (i.e., network distribution gateways), thereby improving user experience and management efficiency. Figure 3 As shown, the specific description is given below.
[0048] In the embodiment of the present application, the non-sensing network configuration technology system is composed of a front-end user interaction layer, a mid-end processing layer, and a back-end execution layer. The front-end is centered on the self-service APP (application) and provides user authentication and device discovery functions; the mid-end is responsible for information transfer and preliminary processing by the ICT platform; the back-end relies on the edge fusion gateway and WIFI networking equipment to realize the intelligent configuration and network connection of the equipment.
[0049] Among them, the self-service APP (application) serves as the interactive interface between the user and the system. The APP supports device QR code scanning or ID input, quickly initiates access requests for terminals to be configured, and displays device status in real time, providing a user-friendly operation experience; the ICT platform, as the hub of information transmission, can receive device information from the APP and forward it to the edge fusion gateway, while receiving and feeding back device status information to ensure smooth information flow. The WIFI networking device is responsible for the network access of the terminal devices to be configured, automatically assigns IP addresses, configures network parameters, and monitors the network status of the devices in real time to ensure that the devices are stable online; the edge fusion gateway (network distribution gateway) is the core of the system, which is not only responsible for the intelligent configuration of the equipment, but also can optimize the equipment parameters through self-learning algorithms to improve network performance. At the same time, it undertakes the responsibility of equipment security management to ensure the safety and reliability of the network environment.
[0050] It should be noted that the edge fusion gateway in this embodiment adopts advanced device authentication and access control technology to ensure that only authorized devices can access the network. At the same time, both the distribution terminal and the WIFI networking terminal support data encryption and integrity verification, effectively preventing data from being tampered with or stolen during transmission, and ensuring the security of user information and device data.
[0051] The following is a further introduction to the network distribution workflow.
[0052] In some embodiments of the present application, the application is used to initiate a network configuration request based on the device information of the terminal to be configured, upon receiving a first notification message forwarded by the network configuration gateway through the proxy platform, wherein the first notification message is used to indicate that the networking device has discovered the terminal to be configured, and the networking device is used to notify the network configuration gateway that the terminal to be configured has been discovered, upon detecting a detection request frame broadcast by the terminal to be configured.
[0053] Specifically, when the terminal to be configured is in STA mode (Station mode), it will broadcast a Probe frame (i.e., a detection request frame). When the WiFi networking device detects the detection request frame in the working channel, it finds the terminal to be configured and notifies the configuration gateway that the terminal to be configured has been found. The configuration gateway will then notify the agent platform (ICT platform) that the terminal to be configured has been found, and the ICT platform will send a notification to the application.
[0054] After that, the user can initiate an access request (network configuration request) by scanning the QR code of the terminal device to be configured or entering the device ID through the application. After receiving the request, the ICT platform forwards it to the network configuration gateway to start the seamless network configuration process. The overall process is as follows: The network configuration gateway automatically configures according to the device information, including IP address allocation, network parameter setting, etc. The WIFI networking terminal assigns network access rights to the device according to the configuration information and monitors its status in real time. After the terminal device to be configured successfully accesses the network, the network configuration gateway can transmit the device status information back to the ICT platform. The ICT platform then synchronizes the status information to the self-service APP, and the user can view the device status and network connection status in real time. The following is a further introduction to the process of seamless network configuration.
[0055] First, after receiving the network configuration request initiated by the application, the network configuration gateway sends a first configuration instruction to the networking device corresponding to the network configuration gateway based on the device information to instruct the networking device to establish a temporary access point and allow the terminal to be configured to establish a connection with the network through the temporary access point. The specific steps are as follows.
[0056] In some embodiments of the present application, sending a first configuration instruction to a networking device corresponding to a network distribution gateway includes the following steps: using a message queue telemetry transmission protocol to instruct the networking device to create a temporary access point so that the terminal to be configured can establish a connection with the network through the temporary access point; obtaining connectable network information reported by the terminal to be configured includes: obtaining a list of locally connectable wireless networks reported by the terminal to be configured, and sending the wireless network list to an application for display; in response to a network selection instruction triggered by a user in the application, determining the wireless network in the wireless network list corresponding to the network selection instruction as the wireless network corresponding to the connectable network information.
[0057] Specifically, Figure 4 As shown, first, the network configuration gateway attempts to create a temporary WiFi network through the MQTT protocol (mqtt_m1), that is, to create a temporary access point to provide a connection environment for the device. The specific steps for the terminal to be configured to establish a connection with the network through the temporary access point are as follows.
[0058] In some embodiments of the present application, the method also includes the following steps: upon receiving a network configuration request sent by a networking device, sending an authorization request to an application, wherein, after establishing a temporary access point, the networking device is used to send a network configuration request to the networking device upon detecting a detection request frame sent by the terminal to be configured, and the network configuration request is used to request whether the terminal to be configured is allowed to establish a connection with the network through the temporary access point; upon receiving an authorization pass message returned by the application, instructing the networking device to allow the terminal to be configured to establish a connection with the network through the temporary access point.
[0059] Specifically, after the networking terminal has established a temporary access point, it waits for the device to be configured to initiate a detection request frame, and upon detecting the detection request frame sent by the terminal to be configured, it sends a network configuration request to the networking device; the network configuration gateway requests the customer to authorize network configuration through the application program, and after the authorization is passed, the network configuration gateway instructs the networking device to allow the terminal to be configured to establish a connection with the network through the temporary access point.
[0060] If the temporary access point is created successfully and a temporary connection is established with the terminal to be configured, the device is interacted with through mqtt_m3, and the device is immediately asked to report the local connectable WiFi list, that is, the local connectable wireless network list; if it fails, try again. This step ensures that the device can identify and report the surrounding network environment, providing basic data for subsequent user selection.
[0061] After the wireless network list is successfully reported, the network distribution gateway displays it to the user, allowing the user to select the WiFi network they want to connect to, that is, to determine the wireless network corresponding to the connectable network information. The gateway verifies again whether the temporary WiFi connection created by mqtt_m1 is stable to ensure that the device can successfully access the network selected by the user. This series of verification and confirmation steps greatly improves the success rate and stability of device networking and reduces the complexity and error rate of user operations. The entire process is not only efficient and user-friendly, but also ensures that the device can quickly and accurately connect to the network through real-time data transmission and multiple confirmation mechanisms. At the same time, the process is also flexible and can be adjusted and optimized according to different network environments and device characteristics to cope with various complex situations.
[0062] When ensuring that the terminal device to be configured can successfully access the network selected by the user (i.e. the wireless network corresponding to the connectable network information), the terminal to be configured is switched from the temporary access point to the wireless network corresponding to the connectable network information for connection. The specific steps are as follows.
[0063] In some embodiments of the present application, switching the terminal to be configured with the network from a temporary access point to a wireless network corresponding to the connectable network information for connection includes the following steps: sending encrypted configuration information to the terminal to be configured with the network, wherein the encrypted configuration information includes at least one of the following: a network name and password, an authentication token, and the terminal to be configured with the network is used to establish a connection with the wireless network corresponding to the connectable network information based on the encrypted configuration information; determining a reception status of the encrypted configuration information, wherein, in a case where a first confirmation response message returned by the terminal to be configured with the network is received, it is determined that the terminal to be configured with the network has received the encrypted configuration information, and in a case where the first confirmation response message returned by the terminal to be configured with the network is not received for more than a preset time, it is determined that the terminal to be configured with the network has not received the encrypted configuration information; in a case where it is determined that the terminal to be configured with the network has not received the encrypted configuration information, the encrypted configuration information is resent to the terminal to be configured with the network.
[0064] Specifically, Figure 5 As shown, configuration information is sent to the terminal device to be configured. Once the terminal device to be configured successfully receives this information, it will immediately feedback the reception status, that is, return the first confirmation response message, laying the foundation for subsequent operations. If the terminal device to be configured fails to receive the information, it will automatically trigger the re-configuration mechanism. This link effectively prevents the loss or improper processing of information.
[0065] Once the network configuration is successful, the terminal device to be configured will immediately report its status information. The specific steps are as follows.
[0066] In some embodiments of the present application, after the terminal to be configured establishes a connection with the wireless network corresponding to the connectable network information, the method also includes the following steps: obtaining device status information sent by the terminal to be configured, wherein the device status information is used to characterize the network connection status of the terminal to be configured; returning a second confirmation response message to the terminal to be configured, wherein the second confirmation response message is used to characterize that the network configuration gateway has received the device status information, and the terminal to be configured is used to resend the device status information if the second confirmation response message is not received within a preset time; and sending the device status information to an application for display.
[0067] Specifically, after the network configuration is successful, the terminal to be configured will report its status information to the platform and wait for the platform's confirmation response (ack). After receiving the reported information, the platform will immediately check its integrity and update the device status accordingly. If the platform confirms that the reported status is "yes", it means that the information has been successfully transmitted and processed by the device. At this time, the platform will update its own status, marking the successful completion of the entire data confirmation ack process. However, if the platform finds that the reported status is "no", that is, the device fails to successfully report the information, it will quickly start the retry mechanism. The platform will send the ack confirmation package again and wait patiently for the device's response. Once the device responds successfully, the platform will try to update the status information again until it confirms that the update is successful. This automatic retry and confirmation mechanism greatly improves the reliability and stability of data transmission.
[0068] The embodiment of the present application uses the data confirmation ack process between the seamless distribution network platform and the terminal device to ensure the accuracy of information transmission and the stable operation of the system through precise step division and efficient confirmation mechanism.
[0069] In addition, as an optional implementation, before receiving the network configuration request initiated by the application, the method also includes the following steps: determining the support information of the network configuration gateway, wherein the support information is used to characterize whether the network configuration gateway supports seamless network configuration; when the support information characterizes that the network configuration gateway supports seamless network configuration, starting the seamless network configuration service of the network configuration gateway, and testing the communication connection capability and data interaction capability between the network configuration gateway and the communication equipment, wherein the communication equipment includes: terminal equipment that has been configured and terminal equipment to be configured; if the test fails, repeating the test process until the test passes.
[0070] Specifically, the data interface process of the non-sensing network configuration in the embodiment of the present application is an efficient and rigorous process, which aims to ensure seamless connection between the gateway and the device. Figure 6 As shown in the figure, the process starts with the gateway Status query, which is to determine the support information of the distribution network gateway. This is a key step in determining whether the gateway supports the non-sensing distribution network. If the gateway does not support it, the process guides the user to other gateway configuration solutions, which reflects flexibility and user-friendliness.
[0071] Once it is confirmed that the gateway supports sensorless network distribution, the process immediately enters the start Sensor Less stage and starts the device test, that is, testing the communication connection capability and data interaction capability between the network distribution gateway and the communication device. This step verifies the initial interaction capability between the gateway and the device to ensure that both parties can communicate normally. If the test fails, the process will automatically backtrack to the starting point of the test and retry until it succeeds. This mechanism effectively improves the success rate of the configuration. After the test is successful, the process enters the internal interaction link, which is the core stage of establishing a stable connection. At this stage, data exchange and communication are carried out between the gateway and the device to ensure that the connection is both stable and reliable. Similarly, there is a success judgment mechanism for internal interaction. Once the interaction fails, the device test process will be automatically restarted until the internal interaction is successfully completed.
[0072] In addition, in the embodiment of the present application, the data flow between the non-sensing distribution network platform and the terminal device is a highly integrated and refined process, aiming to achieve seamless connection between the device and the platform, such as Figure 7 As shown in the figure, the process starts with the platform sending network configuration options to the terminal device. These options are first stored in the Redis cache to ensure fast access and consistency of data. If the cache is successful, the data will immediately enter the sending and reporting stage, and through efficient message queue systems such as RocketMQ, the efficient transmission of data between the platform and the device is ensured. The user makes a choice based on the received RocketMQ consumption results. The success or failure of this link directly determines the direction of the subsequent process. If the user fails to choose, the system will automatically trigger the retry mechanism to re-send and report the data until the user chooses successfully.
[0073] The MQTT protocol plays an important role in the key link of data flow. As a lightweight message transmission protocol, it ensures the reliable transmission of data in a complex network environment. When the data is successfully sent to the gateway through MQTT, the device will perform the rocketing operation. The success of this step indicates that the device is ready to receive further configuration information. If the rocketmq consumption operation fails, the system will automatically backtrack to the MQTT stage and retry to send data until it succeeds. Once rocketmq consumption is successful, the device will immediately report the network configuration information to the platform, and the platform will strictly verify this information to ensure the accuracy and integrity of the data.
[0074] In the whole process, any failure in any link will trigger the automatic retry mechanism. This design not only improves the success rate of network distribution, but also ensures the stability and reliability of device access. Through this efficient and reliable data flow between the non-sensing network distribution platform and the terminal equipment, seamless connection between the equipment and the platform is achieved.
[0075] The senseless network distribution method in the embodiment of the present application greatly simplifies the network distribution process through automatic identification and rapid access, so that users can easily complete network distribution without professional knowledge. Once the device is powered on or started, it can automatically connect to the network and be immediately available without the user having to wait or perform complex operations; the acquisition and configuration of network parameters can be completed automatically, greatly improving the efficiency of network distribution. For scenarios that require a large number of terminal devices to be deployed, such as smart homes, Internet of Things projects, etc., the senseless network distribution system can significantly shorten the deployment cycle and reduce labor costs. The system ensures the security of network parameters during transmission and prevents information leakage through encrypted communication protocols and security authentication mechanisms. At the same time, it can ensure the stability and reliability of terminal devices during network connection, and reduce connection problems caused by configuration errors or network fluctuations. The solution in the embodiment of the present application provides a convenient network access method for Internet of Things and smart home devices, which helps to promote the rapid development of these fields.
[0076] The design scheme of the non-sensing network distribution technology in this application achieves intelligent configuration and network connection of IoT devices by optimizing the device access process, greatly improving user experience and management efficiency. With the continuous development and popularization of IoT technology, non-sensing network distribution technology will show a broader application prospect in smart homes, smart cities, industrial IoT and other fields.
[0077] According to an embodiment of the present application, an embodiment of a terminal equipment network distribution device is also provided. Figure 8 Schematic diagram of a terminal equipment network distribution device provided according to an embodiment of the present application. Figure 8 As shown, the device comprises:
[0078] The network configuration request receiving module 80 is used to receive a network configuration request initiated by an application, wherein the network configuration request includes device information of a terminal to be configured;
[0079] A temporary connection establishment module 82 is used to send a first configuration instruction to a networking device corresponding to the network distribution gateway according to the device information, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point and allow the terminal to be configured to establish a connection with the network through the temporary access point;
[0080] The terminal network configuration connection module 84 is used to obtain the connectable network information reported by the terminal to be configured when the terminal to be configured establishes a connection with the network through a temporary access point, and switch the terminal to be configured from the temporary access point to the wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
[0081] Optionally, the application is used to initiate a network configuration request based on the device information of the terminal to be configured when receiving a first notification message forwarded by the network configuration gateway through the proxy platform, wherein the first notification message is used to indicate that the networking device has discovered the terminal to be configured, and the networking device is used to notify the network configuration gateway that the terminal to be configured has been discovered when a detection request frame broadcast by the terminal to be configured is detected.
[0082] Optionally, before receiving the network configuration request initiated by the application, the network configuration device of the terminal device is also used to: determine the support information of the network configuration gateway, wherein the support information is used to characterize whether the network configuration gateway supports seamless network configuration; when the support information characterizes that the network configuration gateway supports seamless network configuration, start the seamless network configuration service of the network configuration gateway, and test the communication connection capability and data interaction capability between the network configuration gateway and the communication equipment, wherein the communication equipment includes: terminal equipment that has been configured and terminal equipment to be configured; if the test fails, repeat the test process until the test passes.
[0083] Optionally, sending a first configuration instruction to a networking device corresponding to the network distribution gateway includes: using a message queue telemetry transmission protocol to instruct the networking device to create a temporary access point so that the terminal to be configured can establish a connection with the network through the temporary access point; obtaining connectable network information reported by the terminal to be configured includes: obtaining a list of locally connectable wireless networks reported by the terminal to be configured, and sending the wireless network list to an application for display; in response to a network selection instruction triggered by a user in the application, determining the wireless network in the wireless network list corresponding to the network selection instruction as the wireless network corresponding to the connectable network information.
[0084] Optionally, switching the terminal to be configured with the network from a temporary access point to a wireless network corresponding to the connectable network information for connection includes: sending encrypted configuration information to the terminal to be configured with the network, wherein the encrypted configuration information includes at least one of the following: a network name and password, an authentication token, and the terminal to be configured with the network is used to establish a connection with the wireless network corresponding to the connectable network information based on the encrypted configuration information; determining a reception status of the encrypted configuration information, wherein, in a case where a first confirmation response message returned by the terminal to be configured with the network is received, it is determined that the terminal to be configured with the network has received the encrypted configuration information, and in a case where the first confirmation response message returned by the terminal to be configured with the network is not received for more than a preset time, it is determined that the terminal to be configured with the network has not received the encrypted configuration information; in a case where it is determined that the terminal to be configured with the network has not received the encrypted configuration information, the encrypted configuration information is resent to the terminal to be configured with the network.
[0085] Optionally, after the terminal to be configured establishes a connection with the wireless network corresponding to the connectable network information, the terminal equipment network configuration device is also used to: obtain device status information sent by the terminal to be configured, wherein the device status information is used to characterize the network connection status of the terminal to be configured; return a second confirmation response message to the terminal to be configured, wherein the second confirmation response message is used to characterize that the network configuration gateway has received the device status information, and the terminal to be configured is used to resend the device status information if the second confirmation response message is not received within a preset time; send the device status information to the application for display.
[0086] Optionally, the terminal equipment network configuration device is also used to: send an authorization request to the application program when receiving a network configuration request sent by the networking device, wherein, after the networking device has established the temporary access point, when detecting a detection request frame sent by the terminal to be configured, the networking device sends a network configuration request to the networking device, and the network configuration request is used to request whether the terminal to be configured is allowed to establish a connection with the network through the temporary access point; when receiving an authorization pass message returned by the application program, the networking device is instructed to allow the terminal to be configured to establish a connection with the network through the temporary access point.
[0087] It should be noted that the various modules in the above-mentioned terminal equipment network distribution device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.
[0088] It should be noted that the terminal equipment network configuration device provided in this embodiment can be used to perform Figure 2 The terminal device network configuration method shown, therefore, the relevant explanations and instructions on the above-mentioned terminal device network configuration method are also applicable to the embodiments of the present application and will not be repeated here.
[0089] An embodiment of the present application also provides a non-volatile storage medium, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the following terminal device network configuration method by running the computer program: receiving a network configuration request initiated by an application, wherein the network configuration request includes device information of the terminal to be configured; based on the device information, sending a first configuration instruction to a networking device corresponding to a network configuration gateway, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point, and allow the terminal to be configured to establish a connection with the network through the temporary access point; when the terminal to be configured is connected to the network through the temporary access point, obtaining connectable network information reported by the terminal to be configured, and switching the terminal to be configured from the temporary access point to a wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
[0090] The embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the terminal device network configuration method described in each embodiment of the present application: receiving a network configuration request initiated by an application, wherein the network configuration request includes device information of the terminal to be configured; based on the device information, sending a first configuration instruction to a networking device corresponding to a network configuration gateway, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point and allow the terminal to be configured to establish a connection with the network through the temporary access point; when the terminal to be configured is connected to the network through the temporary access point, obtaining connectable network information reported by the terminal to be configured, and switching the terminal to be configured from the temporary access point to a wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
[0091] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0092] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0094] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0095] 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.
[0096] 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, server or 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, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0097] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A terminal device network configuration method, characterized in that: include: Receive a network configuration request initiated by an application, wherein the network configuration request includes device information of a terminal to be configured; According to the device information, a first configuration instruction is sent to a networking device corresponding to the network distribution gateway, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point and allow the terminal to be networked to establish a connection with the network through the temporary access point; When the terminal to be configured with the network establishes a connection with the network through the temporary access point, the connectable network information reported by the terminal to be configured with the network is obtained, and the terminal to be configured with the network is switched from the temporary access point to the wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured with the network can be connected.
2. The terminal device network configuration method according to claim 1, characterized in that: The application is used to initiate the network configuration request based on the device information of the terminal to be configured, when receiving the first notification message forwarded by the network configuration gateway through the proxy platform, wherein the first notification message is used to indicate that the networking device has discovered the terminal to be configured, and the networking device is used to notify the network configuration gateway that the terminal to be configured is discovered, when detecting a detection request frame broadcast by the terminal to be configured.
3. The terminal device network configuration method according to claim 1, characterized in that: Before receiving the network configuration request initiated by the application, the method further includes: Determine the support information of the distribution network gateway, wherein the support information is used to indicate whether the distribution network gateway supports sensorless distribution network; In the case where the support information indicates that the distribution network gateway supports the senseless distribution network, the senseless distribution network service of the distribution network gateway is started, and the communication connection capability and data interaction capability between the distribution network gateway and the communication equipment are tested, wherein the communication equipment includes: the terminal equipment that has been distributed and the terminal equipment to be distributed; If the test fails, the test process is repeated until the test passes.
4. The terminal device network configuration method according to claim 1, characterized in that: Sending a first configuration instruction to a networking device corresponding to the network distribution gateway includes: using a message queue telemetry transmission protocol to instruct the networking device to create a temporary access point so that the terminal to be networked can establish a connection with the network through the temporary access point; Acquiring the connectable network information reported by the terminal to be networked includes: acquiring a list of locally connectable wireless networks reported by the terminal to be networked, and sending the list of wireless networks to the application for display; In response to a network selection instruction triggered by a user in the application, the wireless network corresponding to the network selection instruction in the wireless network list is determined as the wireless network corresponding to the connectable network information.
5. The terminal equipment network configuration method according to claim 4, characterized in that: Switching the terminal to be networked from the temporary access point to the wireless network corresponding to the connectable network information for connection includes: Sending encrypted configuration information to the terminal to be configured, wherein the encrypted configuration information includes at least one of the following: a network name and password, and an authentication token, and the terminal to be configured is used to establish a connection with the wireless network corresponding to the connectable network information according to the encrypted configuration information; Determine the reception status of the encrypted configuration information, wherein, when a first confirmation response message returned by the terminal to be configured is received, it is determined that the terminal to be configured has received the encrypted configuration information; when the first confirmation response message returned by the terminal to be configured is not received within a preset time, it is determined that the terminal to be configured has not received the encrypted configuration information; When it is determined that the terminal to be networked has not received the encrypted configuration information, the encrypted configuration information is resent to the terminal to be networked.
6. The terminal equipment network configuration method according to claim 5, characterized in that: After the terminal to be networked establishes a connection with the wireless network corresponding to the connectable network information, the method further includes: Acquire device status information sent by the terminal to be networked, wherein the device status information is used to characterize the network connection status of the terminal to be networked; Returning a second confirmation response message to the network terminal to be configured, wherein the second confirmation response message is used to indicate that the network configuration gateway has received the device status information, and the network terminal to be configured is used to resend the device status information if the second confirmation response message is not received within a preset time period; The device status information is sent to the application for display.
7. The terminal equipment network configuration method according to claim 1, characterized in that: The method further comprises: In the case of receiving the network configuration request sent by the networking device, sending an authorization request to the application, wherein after the networking device has established the temporary access point, in the case of detecting the detection request frame sent by the terminal to be configured, the networking device sends the network configuration request to the networking device, and the network configuration request is used to request whether to allow the terminal to be configured to establish a connection with the network through the temporary access point; When receiving the authorization pass message returned by the application, the networking device is instructed to allow the terminal to be networked to establish a connection with the network through the temporary access point.
8. A terminal equipment network distribution device, characterized in that: include: A network configuration request receiving module, used to receive a network configuration request initiated by an application, wherein the network configuration request includes device information of a terminal to be configured; A temporary connection establishment module, used to send a first configuration instruction to a networking device corresponding to a distribution network gateway according to the device information, wherein the first configuration instruction is used to instruct the networking device to establish a temporary access point and allow the terminal to be configured to establish a connection with the network through the temporary access point; The terminal network configuration connection module is used to obtain the connectable network information reported by the terminal to be configured when the terminal to be configured establishes a connection with the network through the temporary access point, and switch the terminal to be configured from the temporary access point to the wireless network corresponding to the connectable network information for connection, wherein the connectable network information is used to characterize the wireless network to which the terminal to be configured can be connected.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the terminal device network configuration method described in any one of claims 1 to 7 is executed when the program is run.
10. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the terminal device network configuration method described in any one of claims 1 to 7 by running the computer program.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the terminal device network configuration method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Configuration information processing method and device, electronic equipment and storage medium
CN121357641A
Internet-of-things master station simulation communication system and method based on intelligent fusion terminal
CN121585590A