Network distribution method of intelligent equipment, mobile terminal and metering medium
Through the NFC technology of mobile terminals, the smart device information is obtained and the network is automatically configured, which solves the problem of user interaction difficulties in the distribution process of IoT devices, and realizes the fast and convenient distribution of smart devices, improving user experience and distribution efficiency.
Patent Information
- Application Number
- CN202510346627.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, IoT devices lack human-computer interaction interfaces, which leads to frequent difficulties for users in the distribution process, resulting in high failure rate for distribution networks.
Through the near-field communication (NFC) technology of mobile terminals, the device information of smart devices is obtained, the network distribution mode is generated, network information is obtained, and written into the smart device to realize automatic network distribution.
It realizes the fast and convenient network configuration of smart devices, improves distribution network efficiency and user experience, reduces hardware costs, and is suitable for most smart devices.
Smart Images

Figure CN120186590A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a method for configuring a network for an intelligent device, a mobile terminal, and a computer-readable medium. Background Art
[0002] With the rapid development of Internet of Things (IoT) technology, the popularity of intelligent devices (such as smart home devices, smart wearable devices, smart home appliances, etc.) has increased year by year. These devices need to be connected to the Internet through wireless communication technologies such as Wi-Fi and Bluetooth to achieve remote control, data interaction, and intelligent management.
[0003] However, the network configuration (network setup) of intelligent devices is the primary problem faced by users during use and is also a key link affecting user experience. In recent years, due to the lack of human-computer interaction in many IoT devices, users frequently encounter difficulties during the network setup process, resulting in a high network setup failure rate, which has become a major pain point in the industry.
[0004] Furthermore, currently, the network setup of intelligent devices mainly relies on the following several technologies, but these technologies all have certain limitations: (1) Manual input for network setup. The method of manual input for network setup is cumbersome to operate, has poor user experience, is prone to input errors, resulting in network setup failure, and is not applicable to devices without a display screen; (2) QR code scanning for network setup. The method of QR code scanning for network setup requires the device to have a display screen or a camera; the QR code generation and scanning process may be affected by ambient light; (3) Bluetooth network setup. The pairing process of the Bluetooth network setup method is complex and has poor user experience; the Bluetooth transmission speed is relatively slow, and the network setup efficiency is low; (4) Acoustic wave network setup. The acoustic wave network setup method is greatly affected by ambient noise; the network setup success rate is relatively low; (5) AP mode network setup. The operation of the AP mode network setup method is complex and has poor user experience; the device cannot be connected to the target Wi-Fi network simultaneously in the AP mode.
[0005] The above content is only used to assist in understanding the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The main object of the present invention is to provide a method for configuring a network for an intelligent device, a mobile terminal, and a computer-readable medium, aiming to solve the technical problem that in the prior art, IoT devices lack a human-computer interaction interface, and users frequently encounter difficulties during the network setup process, resulting in a high network setup failure rate.
[0007] To achieve the above object, the present invention provides a method for configuring a network for an intelligent device, which is applied to a mobile terminal. The method for configuring a network for the intelligent device includes:
[0008] When the mobile terminal approaches the intelligent device, obtain the device information of the intelligent device through near-field communication;
[0009] Generate a corresponding network configuration mode according to the device information;
[0010] Obtain the corresponding network information according to the network configuration mode determined by the user;
[0011] Write the network information into the intelligent device so that the intelligent device can read the network information and perform network configuration operations.
[0012] Preferably, in the network configuration method of the intelligent device, the intelligent device includes an NFC tag;
[0013] Correspondingly, the step of writing the network information into the intelligent device so that the intelligent device can read the network information and perform network configuration operations includes:
[0014] Write the network information into the NFC tag of the intelligent device through near-field communication so that the intelligent device can read the network information and perform network configuration operations.
[0015] Preferably, in the network configuration method of the intelligent device, the step of writing the network information into the intelligent device so that the intelligent device can read the network information and perform network configuration operations includes:
[0016] Perform encryption processing on the network information to obtain an encrypted data packet;
[0017] Write the encrypted data packet into the intelligent device so that the intelligent device can read the network information and perform network configuration operations.
[0018] Preferably, in the network configuration method of the intelligent device, the step of performing encryption processing on the network information to obtain an encrypted data packet includes:
[0019] Generate a random number key;
[0020] According to the generated key, perform encryption processing on the network information to obtain a first-level data packet;
[0021] Scramble and insert the key bits into the first-level data packet to obtain the encrypted data packet.
[0022] Preferably, in the network configuration method of the intelligent device, the step of obtaining the corresponding network information according to the network configuration mode determined by the user includes:
[0023] When the network configuration mode selected by the user is to input network information, determine the input network information as the target network information;
[0024] When the network configuration mode selected by the user is the automatic network configuration mode, the network information is automatically obtained and determined as the target network information; or, when the network configuration mode selected by the user is the automatic network configuration mode, the network information currently connected by the mobile terminal is determined as the target network information.
[0025] To achieve the above object, the present invention provides a network configuration method for an intelligent device, which is applied to the intelligent device. The network configuration method for the intelligent device includes:
[0026] Read the network information written by the mobile terminal through near-network communication, and send the network configuration information to the server;
[0027] When receiving the network configuration instruction fed back by the server based on the network configuration information, complete the network configuration.
[0028] To achieve the above object, the present invention provides a network configuration method for an intelligent device. The network configuration method for the intelligent device includes:
[0029] When the mobile terminal approaches the intelligent device, the mobile terminal obtains the device information of the intelligent device;
[0030] The mobile terminal generates a corresponding network configuration mode according to the device information;
[0031] The mobile terminal obtains the corresponding network information according to the network configuration mode determined by the user;
[0032] The mobile terminal writes the network information into the intelligent device;
[0033] The intelligent device reads the network information written by the mobile terminal and sends network configuration information to the server;
[0034] The server receives and verifies the network configuration information sent by the intelligent device;
[0035] Send a network configuration instruction to the intelligent device;
[0036] When receiving the network configuration instruction fed back by the server based on the network configuration information, complete the network configuration.
[0037] To achieve the above object, the present invention provides a mobile terminal, which includes:
[0038] At least one processor; and,
[0039] A memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the network configuration method of the intelligent device described above.
[0041] To achieve the above object, the present invention provides an intelligent device, which includes:
[0042] At least one processor; and,
[0043] A memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the network configuration method of the intelligent device described above.
[0045] To achieve the above object, the present invention provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the network configuration method of the intelligent device described above is implemented.
[0046] The present invention has at least the following beneficial effects:
[0047] In the network configuration method of the intelligent device provided by the present invention, when a mobile terminal approaches the intelligent device, device information of the intelligent device is obtained through near-field communication; according to the device information, a corresponding network configuration mode is generated; according to the network configuration mode determined by the user, corresponding network information is obtained; and the network information is written into the intelligent device so that the intelligent device reads the network information and performs a network configuration operation. In this way, the fast and convenient network configuration of the intelligent device can be realized in a low-cost and intelligent manner.
[0048] Furthermore, the present invention transmits network configuration information quickly through NFC technology, improving the network configuration efficiency and user experience.
[0049] Furthermore, in the network configuration method of the intelligent device provided by the present invention, the user only needs to bring a mobile terminal (such as a mobile phone) close to the NFC tag of the intelligent device to automatically obtain network configuration information without manually inputting Wi-Fi information; it is convenient to realize one-key network configuration, significantly improving the network configuration efficiency, with low hardware cost and applicable to most intelligent devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 Schematically shows a schematic diagram of the network configuration method of the intelligent device provided by the present invention;
[0051] Figure 2 Schematically shows a schematic diagram of the intelligent device or mobile terminal provided by the present invention.
[0052] The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with embodiments. Detailed implementation manners
[0053] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some but not all of the embodiments of the present invention. The present invention will be described in detail below with reference to the drawings and in conjunction with embodiments. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0054] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0055] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and do not have to be used to describe a specific order or sequence.
[0056] In the embodiments of the present invention, the term "plurality" means two or more, and other quantifiers are similar thereto.
[0057] In the present invention, unless otherwise stated, the orientation terms such as "upper", "lower", "top", "bottom" are usually in the direction shown in the accompanying drawings, or in the vertical, perpendicular or gravitational direction of the component itself; similarly, for the convenience of understanding and description, "inner" and "outer" refer to the inner and outer of the contour of each component itself, but the above orientation terms do not limit the present invention.
[0058] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in the embodiments of the present invention, many technical details are provided to help readers better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed by the present invention can still be implemented. The following division of each embodiment is for the convenience of description and should not constitute any limitation to the specific implementation manner of the present invention. Each embodiment can be combined and cross-referenced with each other without conflict.
[0059] To solve the above problems, this embodiment relates to a method for network configuration of intelligent devices, which can be applied to mobile terminals, such as smart phones, tablet computers, mobile Internet devices, smart watches and other electronic devices with data processing capabilities; it can also be other electronic devices with data processing capabilities, which are not specifically limited here.
[0060] The implementation details of the method for network configuration of intelligent devices in the first embodiment of the present invention will be described below. The following content is only the implementation details provided for convenient understanding and is not necessary for implementing this solution. Figure 1 The schematic diagram of the method for network configuration of intelligent devices of the present invention is shown.
[0061] The specific process of this embodiment is as Figure 1 shown, specifically including:
[0062] Step S100, when the mobile terminal approaches the intelligent device, obtain the device information of the intelligent device through near-field communication;
[0063] It should be noted that the execution subject of this embodiment is the mobile terminal. When the mobile terminal approaches the intelligent device, it can be that the fitting distance between the mobile terminal and the intelligent device reaches the threshold, then it is considered that the mobile terminal approaches the intelligent device; of course, it can also be that the intelligent device approaches the mobile terminal. In short, as long as the fitting distance between the mobile terminal and the intelligent device reaches the threshold, it can be considered that the mobile terminal and the intelligent device meet the connection requirements, so as to facilitate operations such as controlling the intelligent device and sending network configuration information.
[0064] In some embodiments, it can also be that when the mobile terminal approaches the intelligent device, the mobile terminal sends a connection request to the intelligent device to obtain control of the intelligent device. For example, when the mobile terminal receives the connection confirmation information of the intelligent device, it can control the intelligent device.
[0065] In some embodiments, the intelligent device integrates an NFC tag and an NFC module, which can be used to store device information and network configuration instructions.
[0066] Near Field Communication (NFC) is a short-range high-frequency wireless communication technology. In some embodiments, by providing an NFC tag on the intelligent device, when the mobile device approaches the NFC tag of the intelligent device, the mobile device automatically obtains the device information of the intelligent device.
[0067] Among them, the intelligent device can be but not limited to a smart TV, a smart refrigerator, a smart washing machine, a smart air conditioner, a smart sweeping robot, etc. In some other embodiments, the intelligent device can also be any electronic device with intelligent functions and capable of performing near-field communication with the mobile terminal.
[0068] Step S200: Generate a corresponding network configuration mode according to the device information.
[0069] It should be understood that for different intelligent devices, different network configuration modes can be provided. Among them, the network configuration mode can include, but is not limited to, manual input network configuration by the user and automatic network configuration. The automatic network configuration includes automatically configuring the WIFI network connected by the current mobile terminal or the mobile hotspot of the mobile terminal. When the user manually inputs the network configuration, the network name and password need to be manually input.
[0070] Step S300: Obtain the corresponding network information according to the network configuration mode determined by the user.
[0071] It should be understood that the user determines the network configuration mode, which can be that the user selects one of the network configuration modes, or can be based on the default mode determined by the user, and can be specifically set according to needs.
[0072] When the network configuration mode selected by the user is to input network information, the input network information is determined as the target network information; when the network configuration mode selected by the user is the automatic network configuration mode, the network information is automatically obtained and determined as the target network information; or, when the network configuration mode selected by the user is the automatic network configuration mode, the network information currently connected by the mobile terminal is determined as the target network information.
[0073] Step S400: Write the network information into the intelligent device so that the intelligent device reads the network information and performs network configuration operations.
[0074] It should be noted that when writing the network information into the intelligent device, the mobile terminal and the intelligent device need to be placed close to each other to avoid affecting the writing of the network information by the mobile terminal.
[0075] Specifically, the intelligent device includes an NFC tag; correspondingly, step S400 includes:
[0076] Write the network information into the NFC tag of the intelligent device through near-field communication so that the intelligent device reads the network information and performs network configuration operations.
[0077] In some embodiments, in order to ensure the security of the network information, the network information can be encrypted, specifically including step S410 and step S420.
[0078] Among them, at step S410, the network information is encrypted to obtain an encrypted data packet.
[0079] It should be noted that the data packets of the original network information usually include keys and data streams carrying network configuration information. By encrypting the network information, generally, the data stream is encrypted according to the key encryption settings. Specifically, it includes generating a random number as the key; encrypting the network information according to the generated key to obtain a first-level data packet; scrambling and inserting the key bits into the first-level data packet to obtain the encrypted data packet.
[0080] For example, generate an 8-digit random number, then convert the random number into a string as the key; then combine the key of the random number string and the network information to form an original data packet; then combine the original data packet with the key, and perform operations such as AND, OR, addition, and subtraction on each data of the original data packet according to the encryption rules, so as to encrypt the original data packet to form a first-level data packet; then insert the key into the first-level data packet, and perform verification on the first-level data packet, and put the verification value into the first-level data packet to obtain a second-level data packet.
[0081] At step S420, write the encrypted data packet into the intelligent device, so that the intelligent device reads the network information and performs network configuration operations.
[0082] The network configuration method of the intelligent device provided by the present invention, when the mobile terminal is close to the intelligent device, obtains the device information of the intelligent device through near-field communication; generates a corresponding network configuration mode according to the device information; obtains the corresponding network information according to the network configuration mode determined by the user; writes the network information into the intelligent device, so that the intelligent device reads the network information and performs network configuration operations, so that the rapid and convenient network configuration of the intelligent device can be realized in a low-cost and intelligent manner.
[0083] To solve the above problems, this embodiment relates to a network configuration method for an intelligent device, which can be applied to intelligent devices, such as smart TVs, smart refrigerators, smart washing machines, smart air conditioners, smart floor sweeping robots, etc., without specific limitations here.
[0084] The implementation details of the network configuration method of the intelligent device in the second embodiment of the present invention will be described below. The following content is only the implementation details provided for convenient understanding and is not necessary for implementing this solution. Figure 1 The schematic diagram of the network configuration method of the intelligent device of the present invention is shown.
[0085] The specific process of this embodiment is as Figure 1 shown, and specifically includes:
[0086] Step S500, read the network information written by the mobile terminal through near-network communication, and send the network configuration information to the server;
[0087] It should be noted that the execution subject of this embodiment is an intelligent device. The intelligent device reads the network information written by the mobile terminal through near-network communication. When the written network information is an encrypted data packet.
[0088] Taking the written network information as an encrypted secondary data packet as an example, first verify the read data to obtain the secondary data packet; then obtain the key and the primary data packet from the secondary data packet; and then decrypt the primary data packet according to the key based on the encryption rule to obtain the original data.
[0089] Step S800, when receiving the network configuration instruction feedback by the server based on the network configuration information, complete the network configuration.
[0090] It should be understood that the server can be but is not limited to a cloud server. In some embodiments, the server is a cloud server, and the network configuration instruction is verified and executed through the cloud to ensure the security and reliability of the network configuration process.
[0091] To solve the above problems, this embodiment relates to a network configuration method for an intelligent device. The implementation details of the network configuration method for the intelligent device in the third embodiment of the present invention will be described below. The following content is only the implementation details provided for convenience of understanding and is not necessary for implementing this solution. Figure 1 The schematic diagram of the network configuration method for the intelligent device of the present invention is shown.
[0092] The specific process of this embodiment is as Figure 1 shown, specifically including:
[0093] Step S100, when the mobile terminal approaches the intelligent device, the mobile terminal obtains the device information of the intelligent device;
[0094] It should be noted that when the mobile terminal approaches the intelligent device, it can be considered that the mobile terminal approaches the intelligent device when the fitting distance between the mobile terminal and the intelligent device reaches the threshold; of course, it can also be that the intelligent device approaches the mobile terminal. In short, as long as the fitting distance between the mobile terminal and the intelligent device reaches the threshold, it can be considered that the mobile terminal and the intelligent device meet the connection requirements, so as to facilitate operations such as controlling the intelligent device and sending network configuration information.
[0095] In some embodiments, it can also be that when the mobile terminal approaches the intelligent device, the mobile terminal sends a connection request to the intelligent device to obtain control of the intelligent device. For example, when the mobile terminal receives the connection confirmation information of the intelligent device, it can control the intelligent device.
[0096] In some embodiments, the intelligent device integrates an NFC tag and an NFC module, which can be used to store device information and network configuration instructions.
[0097] Near Field Communication (NFC) is a short-range high-frequency wireless communication technology. In some embodiments, an NFC tag is provided on a smart device. When a mobile device approaches the NFC tag of the smart device, the mobile device automatically obtains the device information of the smart device.
[0098] Among them, the smart device can be but is not limited to a smart TV, a smart refrigerator, a smart washing machine, a smart air conditioner, a smart floor cleaning robot, etc. In some other embodiments, the smart device can also be an electronic device that has intelligent functions and can perform near-field communication with a mobile terminal.
[0099] Step S200, the mobile terminal generates a corresponding network configuration mode according to the device information;
[0100] It should be understood that for different smart devices, different network configuration modes can be provided. Among them, the network configuration mode can be but is not limited to including manual input of network configuration by the user and automatic network configuration. Among them, automatic network configuration includes automatically configuring the WIFI network connected by the current mobile terminal or the mobile hotspot of the mobile terminal. When the user manually enters the network configuration, the network name and password need to be manually entered.
[0101] Step S300, the mobile terminal obtains the corresponding network information according to the network configuration mode determined by the user;
[0102] It should be understood that the user determines the network configuration mode. It can be that the user selects one of the network configuration modes, or it can be according to the default mode determined by the user, which can be specifically set according to needs.
[0103] When the network configuration mode selected by the user is to input network information, the input network information is determined as the target network information; when the network configuration mode selected by the user is the automatic network configuration mode, the network information is automatically obtained and determined as the target network information; or, when the network configuration mode selected by the user is the automatic network configuration mode, the network information currently connected by the mobile terminal is determined as the target network information.
[0104] Step S400, the mobile terminal writes the network information into the smart device;
[0105] It should be noted that when writing the network information into the smart device, the mobile terminal and the smart device need to be kept close to avoid affecting the mobile terminal from writing the network information.
[0106] Specifically, the smart device includes an NFC tag; correspondingly, step S400 includes:
[0107] Write the network information into the NFC tag of the smart device through near-field communication, so that the smart device can read the network information and perform network configuration operations.
[0108] In some embodiments, to ensure the security of network information, the network information can be encrypted, specifically including step S410 and step S420.
[0109] Among them, at step S410, the network information is encrypted to obtain an encrypted data packet.
[0110] It should be noted that the data packet of the original network information usually includes a key and a data stream carrying network configuration information. By encrypting the network information, usually according to the key encryption setting, the data stream is encrypted. Specifically, it includes generating a random number key; according to the generated key, encrypting the network information to obtain a first-level data packet; scrambling and inserting the key bits into the first-level data packet to obtain the encrypted data packet.
[0111] For example, generate an 8-digit random number, then convert the random number into a string as the key; then put the key of the random number string and the network information together to form an original data packet; then combine the original data packet with the key, and perform operations such as AND, OR, addition, and subtraction on each data of the original data packet according to the encryption rule, so as to encrypt the original data packet to form a first-level data packet; then insert the key into the first-level data packet, and perform verification on the first-level data packet, and put the verification value into the first-level data packet to obtain a second-level data packet.
[0112] At step S420, the encrypted data packet is written into the smart device, so that the smart device can read the network information and perform network configuration operations.
[0113] Step S500, the smart device reads the network information written by the mobile terminal and sends network configuration information to the server;
[0114] It should be noted that the execution subject of this embodiment is the smart device. Read the network information written by the mobile terminal through near-network communication. When the written network information is an encrypted data packet.
[0115] Taking the written network information as an encrypted second-level data packet as an example, first verify the read data, and obtain a second-level data packet after verification; then obtain the key and the first-level data packet from the second-level data packet; then according to the key, decrypt the first-level data packet according to the encryption rule to obtain the original data.
[0116] Step S600, the server receives and verifies the network configuration information sent by the smart device;
[0117] It should be understood that the server can be, but is not limited to, a cloud server. In some embodiments, the server is a cloud server, and the network configuration instruction is verified and executed through the cloud to ensure the security and reliability of the network configuration process.
[0118] Step S700: Send the network configuration instruction to the intelligent device;
[0119] It should be understood that after receiving and verifying the network configuration information sent by the intelligent device, the server sends the replied network configuration instruction back to the intelligent device.
[0120] Step S800: When receiving the network configuration instruction fed back by the server based on the network configuration information, complete the network configuration.
[0121] To achieve the above object, the present invention further provides a mobile terminal or an intelligent device. As Figure 2 shown, the mobile terminal or the intelligent device includes at least one processor 301; and a memory 302 communicatively connected to the at least one processor 301; wherein, the memory 302 stores instructions executable by the at least one processor 301, and the instructions are executed by the at least one processor 301 to enable the at least one processor 301 to execute the network configuration method of the intelligent device as described above.
[0122] Among them, the memory 302 and the processor 301 are connected by a bus. The bus can include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 301 and the memory 302 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and therefore, they will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one component or multiple components, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on the transmission medium. The data processed by the processor 301 is transmitted on the wireless medium through the antenna. Further, the antenna also receives data and transmits the data to the processor 301.
[0123] The processor 301 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory 302 can be used to store the data used by the processor 301 when performing operations.
[0124] To achieve the above object, the present invention provides a computer-readable storage medium storing a computer program, and when the computer program is executed by the processor 301, the network configuration method of the intelligent device as described above is implemented.
[0125] That is, those skilled in the art can understand that all or part of the steps in the above-described implementation methods can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor 3014 to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.
[0126] Obviously, the above-described embodiments are only part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, those of ordinary skill in the art can make other different forms of changes or modifications without making creative efforts, and all of them should fall within the scope of protection of the present invention.
Claims
1. A network configuration method for smart devices, applied to mobile terminals, characterized in that: include: When the mobile terminal is close to the smart device, the device information of the smart device is obtained through near field communication; Generate a corresponding network configuration mode according to the device information; According to the network configuration mode determined by the user, obtain the corresponding network information; The network information is written into the smart device so that the smart device reads the network information and performs network configuration operations.
2. The network configuration method for smart devices according to claim 1, characterized in that: The smart device includes an NFC tag; Correspondingly, the step of writing the network information into the smart device so that the smart device reads the network information and performs network configuration operation includes: The network information is written into the NFC tag of the smart device through near field communication, so that the smart device reads the network information and performs network configuration operation.
3. The network configuration method for smart devices according to claim 1 or 2, characterized in that: The step of writing the network information into the smart device so that the smart device reads the network information and performs network configuration operation includes: Encrypting the network information to obtain an encrypted data packet; The encrypted data packet is written into the smart device so that the smart device reads the network information and performs network configuration operations.
4. The network configuration method for smart devices according to claim 3, characterized in that: The step of encrypting the network information to obtain an encrypted data packet includes: Generate a key for random numbers; The network information is encrypted according to the generated key to obtain a primary data packet; The key bits are shuffled and inserted into the primary data packet to obtain the encrypted data packet.
5. The network configuration method for smart devices according to claim 1 or 2, characterized in that: The step of obtaining corresponding network information according to the network configuration mode determined by the user includes: When the network configuration mode selected by the user is inputting network information, the input network information is determined as the target network information; When the network configuration mode selected by the user is the automatic network configuration mode, the network information is automatically acquired and determined as the target network information; or, when the network configuration mode selected by the user is the automatic network configuration mode, the network information to which the mobile terminal is currently connected is determined as the target network information.
6. A network configuration method for smart devices, applied to smart devices, characterized in that: include: Read the network information written by the mobile terminal through near-network communication, and send the network configuration information to the server; When the network configuration instruction fed back by the server based on the network configuration information is received, the network configuration is completed.
7. A network configuration method for smart devices, characterized in that: include: When the mobile terminal is close to the smart device, the mobile terminal obtains device information of the smart device; The mobile terminal generates a corresponding network configuration mode according to the device information; The mobile terminal obtains corresponding network information according to the network configuration mode determined by the user; The mobile terminal writes the network information into the smart device; The smart device reads the network information written by the mobile terminal and sends the network configuration information to the server; The server receives and verifies the network configuration information sent by the smart device; Sending a network configuration instruction to the smart device; When the network configuration instruction fed back by the server based on the network configuration information is received, the network configuration is completed.
8. A mobile terminal, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network configuration method for a smart device as described in any one of claims 1 to 5.
9. A smart device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network configuration method for a smart device as claimed in claim 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network configuration method for a smart device as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Network environment configuration method, product, equipment and storage medium
CN121056318A