Methods, devices, electronic devices and readable storage media for connecting smart devices

By identifying the device model and downloading the corresponding device certificate file, the problem of smart devices being unable to connect to the network was solved, eliminating the need to carry multiple WiFi module models for re-burning, and improving after-sales flexibility.

CN116260593BActive Publication Date: 2025-10-31GUANGDONG HOTATA TECH GRP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310251897.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2025-10-31
Estimated Expiration
2043-03-14

AI Technical Summary

Technical Problem

Smart devices may be unable to connect to the internet due to incorrect or missing certificate burning during manufacturing, and after-sales personnel need to carry multiple models or types of WiFi modules for replacement, causing inconvenience.

Method used

By determining the device model of the smart device, the corresponding device certificate file is downloaded to the local machine, and a communication connection is established based on the hotspot emitted by the device. The device certificate file is then sent to the WiFi module to achieve re-burning.

Benefits of technology

It eliminates the need for after-sales personnel to carry multiple models or types of WiFi modules, increasing after-sales flexibility and simplifying the device networking process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116260593B_ABST
    Figure CN116260593B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, electronic device, and computer-readable storage medium for connecting a smart device to the network, relating to the field of communication technology. The method includes: determining the device model of the smart device to be connected to the network, downloading a device certificate file corresponding to the device model to a local machine; establishing a communication connection with the smart device based on a hotspot emitted by the smart device; and sending the device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device has the ability to connect to the network after the device certificate file is burned into its WiFi module. This application embodiment enables the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or types, thus increasing after-sales flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a networking method, apparatus, electronic device, and readable storage medium for a smart device. Background Technology

[0002] With the continuous advancement of technology, smart devices (such as smart home products) are becoming increasingly common in daily life, bringing great convenience to people. Smart devices generally use a unique device license ("one device, one password") to ensure the security of the connection link to the Internet of Things (IoT) platform and the reliability of the device. This device license verifies the identity of the smart device, enabling it to connect to the network.

[0003] Device certificates are typically burned into the WiFi module during manufacturing or installation. During the burning process, errors or omissions may occur, preventing smart devices from connecting to the internet. To reduce costs, manufacturers usually conduct random checks on smart devices before they leave the factory to verify their connectivity. However, these checks can miss some devices, potentially leading to the sale of non-connected smart devices to users. This necessitates after-sales personnel replacing the sold smart devices with a new, pre-burned WiFi module.

[0004] Smart devices may have multiple models or types of WiFi modules. When replacing a WiFi module, the after-sales personnel mentioned above need to carry multiple models or types of pre-programmed WiFi modules. If the model or type cannot be matched, they may need to return to the factory to bring a matching WiFi module. The entire after-sales process is too restricted, causing great inconvenience to after-sales personnel and customers. Summary of the Invention

[0005] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for networking smart devices, which are used to solve the technical problems in the background art.

[0006] According to a first aspect of the embodiments of this application, a method for connecting a smart device to the network is provided, the method comprising:

[0007] Determine the device model of the smart device to be connected to the network, and download the device certificate file corresponding to the device model to your local machine;

[0008] Establish a communication connection with the smart device based on the hotspot emitted by the smart device;

[0009] Based on the communication connection, a device certificate file corresponding to the device model is sent to the smart device, so that the smart device can connect to the Internet after the device certificate file is burned to the smart device's WiFi module.

[0010] In one possible implementation, a communication connection is established with the smart device based on a hotspot emitted by the smart device, including:

[0011] Hotspots for connecting smart devices;

[0012] The terminal's HTTP interface address is sent to the smart device via a hotspot, so that the smart device can establish an HTTP connection with the terminal based on the HTTP interface address. The communication connection includes the HTTP connection between the terminal and the smart device.

[0013] Based on the communication connection, send the device certificate file corresponding to the device model to the smart device, including:

[0014] Based on the HTTP connection established with the smart device, the device certificate file is sent to the smart device.

[0015] In one possible implementation, the device certificate file corresponding to the device model is downloaded to the local machine, including:

[0016] Display the target interface, which includes the device model;

[0017] In response to the submission of a device model, display the device certificate file corresponding to the device model;

[0018] In response to the download operation of the device certificate file, the device certificate file is downloaded to the local machine.

[0019] In one possible implementation, the device certificate file is downloaded locally, including:

[0020] Generate a certificate download request and send it to the IoT platform of the smart device. The certificate download request includes the device model and is used to instruct the IoT platform to download and return the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device.

[0021] Receive and store the device certificate file returned by the IoT platform in response to the certificate download request to the local machine.

[0022] In one possible implementation, downloading the device certificate file corresponding to the device model to the local machine, before which the following is also included:

[0023] Generate and send a certificate query request to the IoT platform of the smart device. The certificate query request includes the module identifier of the WiFi module. The certificate query request is used to instruct the IoT platform to query whether the device certificate file has been successfully burned into the WiFi module of the smart device based on the module identifier.

[0024] In response to feedback from the IoT platform that the device certificate file was not successfully burned into the WiFi module, it is determined that the WiFi module of the smart device does not have the ability to connect to the network.

[0025] In one possible implementation, a device certificate file corresponding to the device model is sent to the smart device based on the communication connection, followed by:

[0026] In response to receiving the burning result sent by the smart device, the burning result is used to indicate that the device certificate file has been burned. A report result is generated and sent to the IoT platform of the smart device. The report result is used to indicate that the WiFi module of the smart device has the ability to connect to the network. The report result includes the module identifier of the WiFi module.

[0027] In one possible implementation, a communication connection is established with the smart device based on a hotspot emitted by the smart device, which also includes the following prior steps:

[0028] Generate and send a firmware query request to the IoT platform of the smart device. The firmware query request includes the module identifier of the WiFi module. The firmware query request is used to instruct the IoT platform to query whether the firmware in the WiFi module is the latest version based on the module identifier.

[0029] If the IoT platform responds to the firmware query request and indicates that the firmware is not the latest version, a firmware download request is generated and sent to the IoT platform. The firmware download request is used to request the IoT platform to obtain the firmware file corresponding to the latest version of the firmware from the smart device's over-the-air (OTA) download technology system.

[0030] Receive the firmware file returned by the IoT platform in response to the firmware download request;

[0031] The process includes establishing a communication connection with the smart device based on the hotspot emitted by the smart device, followed by:

[0032] Send the firmware file to the smart device so that the smart device can upgrade the firmware.

[0033] According to a second aspect of the present application, a networking device for a smart device is provided, the device comprising:

[0034] The certificate download module is used to determine the device model of the smart device to be connected to the network and download the device certificate file corresponding to the device model to the local machine.

[0035] The communication connection establishment module is used to establish a communication connection with the smart device based on the hotspot emitted by the smart device.

[0036] The certificate sending module is used to send the device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device can have the ability to connect to the Internet after the device certificate file is burned to the WiFi module of the smart device.

[0037] According to a third aspect of the embodiments of this application, an electronic device is provided, the electronic device including a memory, a processor and a computer program stored in the memory, wherein the processor executes the program to implement the steps of the method provided in the first aspect.

[0038] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps of the method provided in the first aspect.

[0039] According to a fifth aspect of the present application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, causing the computer device to perform steps implementing the method provided in the first aspect.

[0040] The beneficial effects of the technical solution provided in this application embodiment are as follows: This application embodiment determines the device model of the smart device to be connected to the network, downloads the device certificate file corresponding to the device model to the local machine; establishes a communication connection with the smart device based on the hotspot emitted by the smart device; and sends the device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device has the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device. This realizes the re-burning of the device certificate file for the device to be connected to the network based on the terminal, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or categories, and increasing after-sales flexibility. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0042] Figure 1 This is a schematic diagram of the system architecture for implementing a network connection method for smart devices provided in an embodiment of this application;

[0043] Figure 2 A flowchart illustrating a method for connecting a smart device to the network, as provided in an embodiment of this application;

[0044] Figure 3 A schematic diagram illustrating the interaction between a terminal, a smart device, and an IoT platform provided in an embodiment of this application;

[0045] Figure 4 This application provides an interactive diagram illustrating a method for connecting a smart device to the network in a specific scenario, as described in an embodiment of the present application.

[0046] Figure 5 This is a schematic diagram of the structure of a networking device for a smart device provided in an embodiment of this application;

[0047] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0048] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0049] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0051] First, let's introduce and explain several terms used in this application:

[0052] WiFi module: Also known as a serial Wi-Fi module or Wi-Fi module, it belongs to the IoT transmission layer. It is an embedded module that converts serial or TTL level signals to Wi-Fi wireless network communication standards, and has a built-in IEEE 802.11b.gn wireless network protocol stack and TCP / IP protocol stack. Traditional hardware devices with embedded Wi-Fi modules can directly connect to the Internet using Wi-Fi, and are an important component for realizing IoT applications such as wireless smart homes and M2M, and are an important part of smart hardware.

[0053] Internet of Things (IoT) platform: The Internet of Things (IoT) is an extension and expansion of the Internet, which combines various information sensing devices with the network to form a huge network that enables people, machines and things to be interconnected anytime and anywhere.

[0054] Production testing system: Generally refers to the production testing system. In this case, it refers to the production and testing process of the complete intelligent device (with WiFi module), which requires the issuance of IoT-related licenses.

[0055] Over-the-Air (OTA) technology is a technology that enables remote management of mobile terminal devices and SIM card data through the air interface of mobile communication.

[0056] OTA system: refers to a system with over-the-air (OTA) download technology; in this case, it specifically refers to a system that downloads WiFi firmware over the air.

[0057] Firmware: In this case, the firmware refers to WiFi firmware, specifically for WiFi modules. Firmware is the program written into EPROM (Erasable Programmable Read-Only Memory) or EEPROM (Electrically Erasable Programmable Read-Only Memory). It refers to the device "driver" stored inside the device. Through firmware, the operating system can implement the specific machine's operation according to standard device drivers. For example, optical drives and CD burners all have internal firmware. Firmware is the software that performs the most basic and lowest-level work of a system. In hardware devices, firmware is the soul of the hardware device, because some hardware devices have no other software components besides firmware. Therefore, firmware determines the functionality and performance of the hardware device.

[0058] The networking methods, apparatuses, electronic devices, computer-readable storage media, and computer program products for smart devices provided in this application are intended to solve the above-mentioned technical problems of the prior art.

[0059] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0060] Figure 1This is a schematic diagram of the system architecture for implementing a network connection method for smart devices provided in this application embodiment. It includes a terminal 110, a smart device 120 to be connected to the network, and an IoT platform 130 for the smart device. The terminal 110 can be a personal computer, tablet, mobile phone, or other device; the smart device can be a smart home device, such as a clothes dryer, smart lock, or smart air conditioner. The terminal 110 can include a target application 111, which can be an after-sales application for the smart device. The target application 111 can access the IoT platform 130 of the smart device 120 and download the device certificate file of the smart device from the IoT platform 130. A communication connection can also be established between the target application 111 and the smart device 120. Through this communication connection, the target application 111 can send the device certificate file corresponding to the device model of the smart device to the smart device 120, enabling the smart device 120 to have network connectivity after burning the device certificate file to its WiFi module. After having network connectivity, the smart device 120 can access the IoT platform 130.

[0061] This application provides a method for connecting a smart device to the network, wherein the execution subject of the method can be... Figure 1 Terminal 110 in the middle, such as Figure 2 As shown, the method includes the following steps:

[0062] Step S201: Determine the device model of the smart device to be connected to the network, and download the device certificate file corresponding to the device model to the local machine;

[0063] In this embodiment of the application, the smart device to be connected to the network lacks a device certificate file. In real life, some operators in traditional manufacturing industries may not be familiar with the network registration process for smart devices or the network conditions may be poor during registration, which may result in the device certificate not being successfully registered to the WiFi module of the smart device, causing the smart device to be unable to connect to the network due to the lack of a device certificate file.

[0064] In real-world scenarios, if a user (who could be an after-sales representative or a customer who purchased a smart device) determines that the smart device cannot connect to the internet during installation, they can log in to the target program or webpage corresponding to the smart device, which provides an after-sales access point.

[0065] After entering the after-sales service portal, the terminal can scan the QR code on the shell or outer packaging of the smart device to determine the device identifier (such as SN code) of the smart device, and generate a certificate query request to the IoT platform of the smart device. The certificate query request includes the module identifier of the WiFi module in the smart device. The module identifier is generally the MAC address of the module. The certificate query request is used to instruct the IoT platform to query whether the device certificate file has been successfully burned into the WiFi module of the smart device based on the module identifier.

[0066] Generally, after a WiFi module successfully programs its device certificate file, it reports a message indicating successful program programming to the corresponding IoT platform. This message includes the WiFi module's identifier. Therefore, the IoT platform stores the module identifier of the WiFi module whose device certificate file was successfully programmed. Upon receiving a certificate query request from a terminal, the IoT platform can determine whether the smart device seeking to connect has successfully programmed its device certificate based on the module identifier in the query request. Specifically, the IoT platform can query a first preset database. If it determines that the module identifier is not in the first preset database, it reports that the smart device has not successfully programmed its device certificate file; if it determines that the module identifier is in the first preset database, it reports that the smart device has successfully programmed its device certificate file.

[0067] Upon receiving feedback from the IoT platform that the smart device's device certificate file was not successfully burned, the terminal determines that the smart device lacks network connectivity, meaning it cannot access the IoT platform. Conversely, upon receiving feedback from the IoT platform that the smart device's device certificate file was successfully burned, the terminal determines that the smart device possesses network connectivity, and that its current inability to connect is not due to the device certificate file.

[0068] After determining that the smart device does not have the ability to connect to the network, the terminal obtains the device certificate file that matches the device model of the smart device from the Internet of Things platform and downloads the device certificate file to the local machine.

[0069] Step S202: Establish a communication connection with the smart device based on the hotspot emitted by the smart device.

[0070] In this embodiment of the application, the smart device can generate a hotspot. The smart device needs to be configured before it can generate a hotspot. Specifically, the target application can display a network configuration diagram, which includes a guide diagram for setting up hotspot information for the smart device. The guide diagram includes the triggering method, triggering order, and triggering duration of each button on the smart device. After-sales personnel can operate each button based on the guide diagram to enable the smart device to generate a hotspot.

[0071] After a smart device emits a hotspot, the terminal can display a hotspot connection interface, which can include the hotspot information of the smart device. After-sales personnel can trigger this hotspot information to connect to the hotspot of the smart device.

[0072] It is worth noting that after connecting to this hotspot, the terminal cannot use its own mobile network and instead uses the hotspot of the smart device. However, the bandwidth of the hotspot emitted by the smart device is relatively small and unstable, which is insufficient to support the terminal in downloading the device certificate file corresponding to its device model. Therefore, the terminal needs to download the device certificate file corresponding to its device model from the smart device's IoT platform before connecting to the smart device's hotspot.

[0073] In this embodiment of the application, after the terminal connects to the hotspot emitted by the smart device, it establishes a communication connection with the smart device. This communication connection is an HTTP connection, and the process of establishing the HTTP connection will be described in the following section.

[0074] Step S203: Send the device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device can have the ability to connect to the Internet after the device certificate file is burned to the WiFi module of the smart device.

[0075] After establishing a communication connection with the smart device, the terminal can send a device certificate file matching its device model to the smart device based on the communication connection, so that the smart device can have the ability to connect to the Internet after the device certificate file is burned to the smart device's WiFi module.

[0076] In practical applications, if it is determined that the original WiFi module of the smart device is not damaged, the device certificate file can be directly burned into the original WiFi module, meaning that the device certificate file can be re-burned without disassembling the device. If it is determined that the original WiFi module of the smart device is damaged, a new blank WiFi module needs to be replaced. This blank WiFi module has been pre-burned and also lacks a device certificate file. Therefore, the device certificate file can be burned into the new blank WiFi module, and the device certificate file in the original WiFi module can be retrieved. In cases where it is determined that the original WiFi module is damaged, after-sales personnel only need to carry a new blank WiFi module, without having to carry multiple models or types of WiFi modules with burned device certificate files, increasing after-sales flexibility.

[0077] This application embodiment determines the device model of the smart device to be connected to the network, downloads the device certificate file corresponding to the device model to the local machine, establishes a communication connection with the smart device based on the hotspot emitted by the smart device, and sends the device certificate file corresponding to the device model to the smart device based on the communication connection. This enables the smart device to have the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device. This realizes the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or types, and increasing after-sales flexibility.

[0078] This application provides a possible implementation method for establishing a communication connection with a smart device based on a hotspot emitted by the smart device, including:

[0079] Hotspots for connecting smart devices;

[0080] The terminal's HTTP interface address is sent to the smart device via a hotspot, so that the smart device can establish an HTTP connection with the terminal based on the HTTP interface address. The communication connection includes the HTTP connection between the terminal and the smart device.

[0081] Based on the communication connection, send the device certificate file corresponding to the device model to the smart device, including:

[0082] Based on the HTTP connection established with the smart device, the device certificate file is sent to the smart device.

[0083] Although smart devices cannot connect to the internet, they can generate a hotspot. After a smart device is powered on and generates a hotspot, a terminal can connect to the hotspot. The bandwidth of a smart device's hotspot is extremely limited, typically used for transmitting commands or small files. However, device certificate files are large files with high bandwidth requirements. Therefore, the device certificate file cannot be transmitted through the hotspot. Instead, an initialization command can be sent to the smart device through the hotspot. This initialization command includes the terminal's HTTP interface address, allowing the smart device to establish an HTTP connection with the terminal based on the HTTP interface address. In this case, the terminal can be considered an HTTP protocol server. HTTP connections can transmit large files and are relatively stable. Therefore, the smart certificate file can be sent to the smart device through this HTTP connection.

[0084] This application provides a possible implementation method for downloading the device certificate file corresponding to the device model to the local machine, including:

[0085] Display the target interface, which includes the device model;

[0086] In response to the submission of a device model, display the device certificate file corresponding to the device model;

[0087] In response to the download operation of the device certificate file, the device certificate file is downloaded to the local machine.

[0088] The terminal does not originally have the device certificate file for the smart device. Users can download the device certificate file by operating the target application. Specifically, users can scan the QR code on the smart device's casing or outer packaging to determine the device model, or they can directly select the device model from a list of several models, or they can enter the smart device's SN code to determine the device model. The device model is displayed on the target interface.

[0089] After the user selects the device model of the smart device, they submit the device model on the target interface. The backend will determine the device certificate file corresponding to the device model and display the device certificate file. The user can trigger the download control to download the device certificate file. The backend will respond to the download operation and download the device certificate file to the local machine.

[0090] This application provides a possible implementation method for downloading the device certificate file to the local machine, including:

[0091] Generate a certificate download request and send it to the IoT platform of the smart device. The certificate download request includes the device model and is used to instruct the IoT platform of the smart device to download and return the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device.

[0092] Receive and store the device certificate file returned by the IoT platform in response to the certificate download request to the local machine.

[0093] After logging into the target application, users can access the IoT platform of the smart device and obtain the device certificate file from the IoT platform. Specifically, a certificate download request is generated and sent to the IoT platform of the smart device. The certificate download request includes the device model of the smart device and is used to request the device certificate file corresponding to the device model. After receiving the certificate download request, the IoT platform downloads the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device. The WiFi module production and testing system includes device certificate files corresponding to each device model. After downloading the device certificate file from the WiFi module production and testing system, the IoT platform returns the device certificate file to the terminal. The terminal receives the device certificate file and stores it locally.

[0094] This application embodiment provides a possible implementation method, which involves downloading the device certificate file corresponding to the device model to the local machine, and prior to this, it also includes:

[0095] Generate and send a certificate query request to the IoT platform of the smart device. The certificate query request includes the module identifier of the WiFi module. The certificate query request is used to instruct the IoT platform of the smart device to query whether the device certificate file has been successfully burned into the WiFi module of the smart device based on the module identifier.

[0096] In response to feedback from the IoT platform that the device certificate file was not successfully burned into the WiFi module, it is determined that the WiFi module of the smart device does not have the ability to connect to the network.

[0097] A smart device's inability to connect to the internet due to a lack of device certificate files indicates a lack of internet connectivity. However, this inability may not always be due to a missing device certificate file; other factors, such as poor network conditions, could also be the cause. Therefore, it is necessary to determine whether the smart device's inability to connect to the internet is due to a missing device certificate file. Specifically, a certificate query request can be generated and sent to the smart device's IoT platform. The smart device's IoT platform includes the module identifier of the WiFi module that has successfully burned the device certificate file.

[0098] Upon receiving a certificate query request from a terminal, the IoT platform can determine whether the WiFi module in the smart device seeking network access has successfully had its device certificate file burned, based on the module identifier in the query request. If the IoT platform's first preset database does not contain the module identifier, it will report that the WiFi module of the smart device has not successfully had its device certificate file burned. Upon receiving this feedback from the IoT platform, the terminal determines that the smart device's WiFi module lacks network connectivity and therefore needs to re-burn the device certificate file for the WiFi module.

[0099] This application embodiment provides a possible implementation method, which involves sending a device certificate file corresponding to the device model to a smart device based on a communication connection, and then further includes:

[0100] In response to receiving the burning result from the smart device, the burning result is used to indicate that the device certificate file has been burned.

[0101] Generate and send the reporting results to the IoT platform of the smart device. The reporting results are used to indicate that the WiFi module of the smart device has the ability to connect to the network; the reporting results include the module identifier of the WiFi module.

[0102] The smart device to be connected to the network obtains its device certificate file from the terminal. After burning the device certificate file to the WiFi module, the smart device sends the burning result to the terminal, indicating that the device certificate file has been successfully burned. Upon receiving the burning result, the terminal generates and sends a report to the IoT platform. The report indicates that the smart device's WiFi module has network connectivity. The report includes the WiFi module's identifier, which the IoT platform stores in a first preset database, confirming that the smart device has network connectivity. After receiving the report, the IoT platform synchronizes it to the WiFi module production and testing system.

[0103] like Figure 3 As shown, it exemplarily illustrates the interaction between the terminal, smart device, and IoT platform provided in the embodiments of this application, including the following steps:

[0104] Step S301: The terminal generates and sends a certificate query request to the IoT platform. The certificate query request includes the module identifier of the WiFi module in the smart device. The certificate query request is used to instruct the IoT platform to query whether the device certificate file has been successfully burned into the WiFi module of the smart device based on the module identifier.

[0105] In step S302, the IoT platform determines whether the module identifier is located in the first preset database. If not, proceed to step S303; if yes, proceed to step S315.

[0106] Step S303: The IoT platform sends a message to the terminal indicating that the WiFi module has not successfully burned the device certificate file.

[0107] In step S304, the terminal responds to feedback from the IoT platform that the device certificate file was not successfully burned into the WiFi module, and determines that the WiFi module of the smart device does not have the ability to connect to the network.

[0108] Step S305: The terminal generates a certificate download request and sends the certificate download request to the IoT platform of the smart device; the certificate download request includes the device model and is used to obtain the device certificate file corresponding to the device model;

[0109] Step S306: The IoT platform downloads the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device, and returns the device certificate file.

[0110] Step S307: The terminal receives and stores the device certificate file returned by the IoT platform in response to the certificate download request to its local machine;

[0111] Step S308: The terminal connects to the hotspot of the smart device and sends the terminal's HTTP interface address to the smart device through the hotspot of the smart device;

[0112] Step S309: The smart device establishes an HTTP connection with the terminal based on the HTTP interface address;

[0113] Step S310: Based on the HTTP connection established with the smart device, send the device certificate file to the smart device;

[0114] Step S311: The smart device burns the device certificate file to the WiFi module;

[0115] Step S312: After the burning is completed, send the burning result to the terminal. The burning result is used to indicate that the device certificate file has been burned.

[0116] Step S313: The smart device responds to receiving the burning result sent by the smart device and generates a reporting result. The reporting result is used to indicate that the WiFi module of the smart device has the ability to connect to the network. The reporting result is sent to the Internet of Things platform. The reporting result includes the module identifier of the WiFi module.

[0117] In step S314, the IoT platform receives and stores the module identifier in the first preset database.

[0118] Step S315: The IoT platform sends a notification to the terminal that the WiFi module has successfully burned the device certificate file (not shown in the figure).

[0119] The specific implementation methods of steps S301 to S315 are the same as those in the previous embodiments, and will not be described in detail here.

[0120] This application provides a possible implementation method, which establishes a communication connection with the smart device based on a hotspot emitted by the smart device, and further includes:

[0121] Generate and send a firmware query request to the IoT platform. The firmware query request includes the module identifier of the WiFi module. The firmware query request is used to instruct the IoT platform to query whether the firmware in the WiFi module is the latest version based on the module identifier.

[0122] If the IoT platform responds to the firmware query request and indicates that the firmware is not the latest version, a firmware download request is generated and sent to the IoT platform. The firmware download request is used to request the IoT platform to obtain the firmware file corresponding to the latest version of the firmware from the smart device's over-the-air (OTA) download technology system.

[0123] Receive the firmware file returned by the IoT platform in response to the firmware download request;

[0124] The process includes establishing a communication connection with the smart device based on the hotspot emitted by the smart device, followed by:

[0125] Send the firmware file to the smart device so that the smart device can upgrade the firmware.

[0126] Firmware refers to the device "driver" stored inside the device. Through firmware, the operating system can implement the specific machine's operation according to the standard device driver. For example, optical drives and burners all have internal firmware, and WiFi modules also have firmware. Firmware is also managed by the Internet of Things platform.

[0127] Firmware upgrade, also known as firmware refresh, firmware rewrite, firmware burning, or flashing, refers to the process of writing the latest version of firmware into a chip / module to replace the original firmware. Some WiFi modules do not have the latest version of firmware. If it is determined that the firmware in the WiFi module is not the latest version, the firmware needs to be updated.

[0128] The second preset database of the IoT platform records the current firmware version information of each smart device. The terminal can also generate a firmware query request to the IoT platform. This request includes the module identifier of the WiFi module and instructs the IoT platform to check if the firmware in the WiFi module is the latest version based on the device identifier. The IoT platform determines the current firmware version of the WiFi module based on the module identifier. If the firmware is the latest version, there is no need to download it. If the firmware is determined to be outdated, the platform will notify the terminal that it is not the latest version. In response, the terminal generates a firmware download request to the IoT platform. This request requests the IoT platform to obtain the firmware file corresponding to the latest version of the firmware from the smart device's Over-The-Air (OTA) system. After obtaining the firmware file from the OTA system, the IoT platform establishes a communication connection with the smart device based on the hotspot emitted by the smart device. The terminal then sends the firmware file to the smart device via an HTTP connection. The smart device restarts after flashing the firmware file.

[0129] It is worth noting that, due to the instability of the hotspot connected to the terminal and the limited bandwidth of the hotspot, large files cannot be transferred. After connecting to the hotspot, the terminal cannot access its own mobile network. Therefore, the download of the latest firmware version file occurs before the terminal connects to the hotspot, and the firmware file can be downloaded based on its own mobile network.

[0130] In practical applications, if the WiFi module of a smart device lacks a device certificate file, the terminal needs to download the device certificate file for the WiFi module of the smart device, and / or if the firmware in the WiFi module of the smart device is not the latest version, the terminal needs to download the latest version firmware file for the WiFi module of the smart device, and send the device certificate file and / or firmware file to the smart device through the HTTP connection between the terminal and the smart device. The smart device will then burn the device certificate file and / or firmware file.

[0131] like Figure 4As shown, this example illustrates an interaction diagram of a method for implementing network connectivity for a smart device in a specific application scenario. In this scenario, the smart device's WiFi module lacks a device certificate file, and the firmware in the WiFi module is not the latest version. It involves the interaction between the terminal, the smart device, the IoT platform, the WiFi module production and testing system, and the OTA system. Figure 4 As shown, the terminal sends a certificate acquisition request and a firmware acquisition request. The certificate acquisition request is used to obtain the device certificate file corresponding to the device model, and the firmware acquisition request is used to obtain the latest version of the firmware. The IoT platform downloads the device certificate file matching the device model of the smart device from the WiFi module production and testing system. The IoT platform obtains the firmware file corresponding to the latest version of the firmware from the OTA system and returns the downloaded device certificate file and firmware file to the terminal. After downloading the device certificate file and firmware file, the terminal establishes an HTTP connection with the smart device based on the hotspot emitted by the smart device. The terminal sends the device certificate file and firmware file to the smart device through the established HTTP connection. The smart device burns the device certificate file and firmware file to the WiFi module. The terminal generates and sends the certificate burning result and firmware burning result to the terminal. The certificate burning result indicates that the certificate burning is complete, and the firmware burning result indicates that the firmware burning is complete. The terminal reports the certificate burning result and firmware burning result to the IoT platform. The IoT platform synchronizes the certificate burning result to the WiFi module production and testing system and the firmware burning result to the OTA system.

[0132] This application provides a network connection device for smart devices, such as... Figure 5 As shown, the networking device 50 of the smart device may include:

[0133] The certificate download module 510 is used to determine the device model of the smart device to be connected to the network and download the device certificate file corresponding to the device model to the local machine.

[0134] The communication connection establishment module 520 is used to establish a communication connection with the smart device based on the hotspot emitted by the smart device;

[0135] The certificate sending module 530 is used to send the device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device can have the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device.

[0136] This application embodiment determines the device model of the smart device to be connected to the network, downloads the device certificate file corresponding to the device model to the local machine, establishes a communication connection with the smart device based on the hotspot emitted by the smart device, and sends the device certificate file corresponding to the device model to the smart device based on the communication connection. This enables the smart device to have the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device. This realizes the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or types, and increasing after-sales flexibility.

[0137] This application embodiment provides a possible implementation, wherein the communication connection establishment module includes:

[0138] The hotspot connection submodule is used to connect to the hotspot of smart devices;

[0139] The HTTP connection establishment submodule is used to send the terminal's HTTP interface address to the smart device via a hotspot, so that the smart device can establish an HTTP connection with the terminal based on the HTTP interface address. The communication connection includes the HTTP connection between the terminal and the smart device.

[0140] The certificate sending module is specifically used to send device certificate files to smart devices based on the HTTP connection established with the smart devices.

[0141] This application provides a possible implementation, and the device further includes:

[0142] The device model display module is used to display the target interface, which includes the device model.

[0143] The device certificate file display module is used to display the device certificate file corresponding to the device model in response to the submission operation of the device model;

[0144] The device certificate file download module is used to download the device certificate file to the local machine in response to the download operation.

[0145] This application provides a possible implementation method in which the device certificate file download module is specifically used to generate a certificate download request and send the certificate download request to the IoT platform of the smart device. The certificate download request includes the device model and is used to instruct the IoT platform of the smart device to download and return the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device. The module receives and stores the device certificate file returned by the IoT platform of the smart device in response to the certificate download request to the local machine.

[0146] This application provides a possible implementation, and the device further includes:

[0147] The device certificate file query module is used to generate and send a certificate query request to the IoT platform. The certificate query request includes the module identifier of the WiFi module. The certificate query request is used to instruct the IoT platform to query whether the device certificate file has been successfully burned into the WiFi module of the smart device based on the module identifier.

[0148] The network capability determination module is used to determine that the WiFi module of the smart device does not have the ability to connect to the network in response to feedback from the IoT platform that the device certificate file was not successfully burned into the WiFi module.

[0149] This application provides a possible implementation, and the device further includes:

[0150] The burning and reporting module is used to respond to the burning result sent by the smart device. The burning result indicates that the device certificate file has been burned. The module generates and sends a reporting result to the IoT platform. The reporting result indicates that the smart device's WiFi module has network connectivity. The reporting result includes the module identifier of the WiFi module.

[0151] This application provides a possible implementation, and the device further includes:

[0152] The firmware query module is used to generate and send firmware query requests to the IoT platform of the smart device. The firmware query request includes the module identifier of the WiFi module and is used to instruct the IoT platform to query whether the firmware in the WiFi module is the latest version based on the module identifier.

[0153] The firmware download request sending module is used to generate and send a firmware download request to the IoT platform of the smart device if the IoT platform of the smart device responds to the firmware query request and the firmware is not the latest version. The firmware download request is used to request the IoT platform to obtain the firmware file corresponding to the latest version of the firmware from the over-the-air (OTA) system of the smart device.

[0154] Firmware file receiving module, used to receive firmware files returned by the IoT platform of smart devices in response to firmware download requests;

[0155] The firmware file sending module is used to establish a communication connection with the smart device based on the hotspot emitted by the smart device, and then send the firmware file to the smart device so that the smart device can upgrade the firmware.

[0156] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0157] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of a network connection method for a smart device, which can achieve the following compared to related technologies:

[0158] This application embodiment determines the device model of the smart device to be connected to the network, downloads the device certificate file corresponding to the device model to the local machine, establishes a communication connection with the smart device based on the hotspot emitted by the smart device, and sends the device certificate file corresponding to the device model to the smart device based on the communication connection. This enables the smart device to have the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device. This realizes the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or types, and increasing after-sales flexibility.

[0159] In one alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The illustrated electronic device 6000 includes a processor 6001 and a memory 6003. The processor 6001 and the memory 6003 are connected, for example, via a bus 6002. Optionally, the electronic device 6000 may further include a transceiver 6004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 6004 is not limited to one type, and the structure of the electronic device 6000 does not constitute a limitation on the embodiments of this application.

[0160] Processor 6001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 6001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0161] Bus 6002 may include a pathway for transmitting information between the aforementioned components. Bus 6002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 6002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0162] The memory 6003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0163] The memory 6003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 6001. The processor 6001 executes the computer programs stored in the memory 6003 to implement the steps shown in the foregoing method embodiments.

[0164] The electronic device package may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0165] This application provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, this application achieves the following: by determining the device model of the smart device to be connected to the network, downloading the device certificate file corresponding to the device model to the local machine; establishing a communication connection with the smart device based on the hotspot emitted by the smart device; and sending the device certificate file corresponding to the device model to the smart device based on the communication connection. This enables the smart device to have network connectivity after the device certificate file is burned to the smart device's WiFi module. This realizes the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or types, thus increasing after-sales flexibility.

[0166] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium, a computer-readable medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0167] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, this application embodiment achieves the following: by determining the device model of the smart device to be connected to the network, downloading the device certificate file corresponding to the device model to the local machine; establishing a communication connection with the smart device based on the hotspot emitted by the smart device; and sending the device certificate file corresponding to the device model to the smart device based on the communication connection. This enables the smart device to have network connectivity after the device certificate file is burned to the smart device's WiFi module. This realizes the re-burning of device certificate files for devices to be connected to the network, eliminating the need for after-sales personnel to carry multiple WiFi modules of different models or categories, thus increasing after-sales flexibility.

[0168] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text.

[0169] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0170] The above are only optional implementation methods for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application, without departing from the technical concept of this application, also fall within the protection scope of the embodiments of this application.

Claims

1. A method for connecting a smart device to the network, characterized in that, Applied to terminals, including: Determine the device model of the smart device to be connected to the network, and download the device certificate file corresponding to the device model to the local machine; A communication connection is established with the smart device based on the hotspot emitted by the smart device; Based on the communication connection, a device certificate file corresponding to the device model is sent to the smart device, so that the smart device has the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device; Before downloading the device certificate file corresponding to the device model to the local machine, the following steps are also included: If it is determined that the smart device cannot connect to the network, a certificate query request is generated and sent to the IoT platform of the smart device. The certificate query request includes the module identifier of the WiFi module. The certificate query request is used to instruct the IoT platform of the smart device to query whether the device certificate file has been successfully burned into the WiFi module of the smart device according to the module identifier. In response to receiving feedback from the IoT platform of the smart device that the device certificate file was not successfully burned into the WiFi module, it is determined that the WiFi module of the smart device does not have the ability to connect to the network.

2. The method according to claim 1, characterized in that, The establishment of a communication connection between the smart device and the hotspot emitted by the smart device includes: Hotspot connected to the smart device; The hotspot sends the terminal's HTTP interface address to the smart device, so that the smart device can establish an HTTP connection with the terminal based on the HTTP interface address. The communication connection includes an HTTP connection between the terminal and the smart device. Sending the device certificate file corresponding to the device model to the smart device based on the communication connection includes: Based on the HTTP connection established with the smart device, the device certificate file is sent to the smart device.

3. The method according to claim 1, characterized in that, The step of downloading the device certificate file corresponding to the device model to the local machine includes: Display the target interface, which includes the device model; In response to the submission operation for the device model, the device certificate file corresponding to the device model is displayed; In response to the download operation of the device certificate file, the device certificate file is downloaded to the local machine.

4. The method according to claim 3, characterized in that The step of downloading the device certificate file to the local machine includes: A certificate download request is generated and sent to the IoT platform of the smart device. The certificate download request includes the device model and is used to instruct the IoT platform of the smart device to download and return the device certificate file corresponding to the device model from the WiFi module production and testing system of the smart device. Receive and store the device certificate file returned by the IoT platform in response to the certificate download request to the local machine.

5. The method according to claim 1, characterized in that, The step of sending the device certificate file corresponding to the device model to the smart device based on the communication connection further includes: In response to receiving the burning result sent by the smart device, the burning result is used to indicate that the device certificate file has been burned. A report result is generated and sent to the IoT platform of the smart device. The report result is used to indicate that the WiFi module of the smart device has the ability to connect to the network. The report result includes the module identifier of the WiFi module.

6. The method according to claim 1, characterized in that, The process of establishing a communication connection with the smart device based on the hotspot emitted by the smart device also includes, prior to: A firmware query request is generated and sent to the IoT platform of the smart device. The firmware query request includes the module identifier of the WiFi module. The firmware query request is used to instruct the IoT platform to query whether the firmware in the WiFi module is the latest version based on the module identifier. If the IoT platform responds to the firmware query request and indicates that the firmware is not the latest version, a firmware download request is generated and sent to the IoT platform. The firmware download request is used to request the IoT platform to obtain the firmware file corresponding to the latest version of the firmware from the over-the-air download technology system of the smart device. Receive the firmware file returned by the IoT platform in response to the firmware download request; The process of establishing a communication connection with the smart device based on the hotspot emitted by the smart device, and then further includes: The firmware file is sent to the smart device so that the smart device can upgrade the firmware.

7. A networking device for intelligent devices, characterized in that, include: The certificate download module is used to determine the device model of the smart device to be connected to the network and download the device certificate file corresponding to the device model to the local machine. A communication connection establishment module is used to establish a communication connection with the smart device based on the hotspot emitted by the smart device; The certificate sending module is used to send a device certificate file corresponding to the device model to the smart device based on the communication connection, so that the smart device has the ability to connect to the network after the device certificate file is burned to the WiFi module of the smart device; Before downloading the device certificate file corresponding to the device model to the local machine, the following steps are also included: If it is determined that the smart device cannot connect to the network, a certificate query request is generated and sent to the IoT platform of the smart device. The certificate query request includes the module identifier of the WiFi module. The certificate query request is used to instruct the IoT platform of the smart device to query whether the device certificate file has been successfully burned into the WiFi module of the smart device according to the module identifier. In response to receiving feedback from the IoT platform of the smart device that the device certificate file was not successfully burned into the WiFi module, it is determined that the WiFi module of the smart device does not have the ability to connect to the network.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Intelligent equipment maintenance method and system, computer equipment and storage medium

    CN112565397A