Networking processing method of equipment, equipment and medium
Through periodic hotspot scanning and device identification, combined with network connection information processing with security policies, the problem of home appliances not being able to automatically connect to the network without the network is solved, and automatic networking and security repair of the equipment is realized.
Patent Information
- Application Number
- CN202410122165.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2025-07-29
AI Technical Summary
The existing home appliance networking methods are cumbersome to operate, resulting in the inability to fix program vulnerabilities in a timely manner without the network, posing security risks.
Through periodic hotspot scanning, monitor the surrounding networked devices to be distributed, connect and identify the device identifier, and send network connection information based on security policies for automatic network binding, including authorization verification and encryption and decryption processing.
It realizes automatic repair of software vulnerabilities for home appliances in the networked state, improving device security and networking efficiency.
Smart Images

Figure CN120389920A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and particularly relates to a method, a device, and a medium for networking processing of a device. Background Art
[0002] With the development of technology, household appliances with networking functions are increasingly popular among users. After the household appliances are networked, users can remotely control the household appliances through a mobile phone, which greatly facilitates the use of users.
[0003] Currently, the networking method of household appliances mainly requires users to use a mobile phone to network the household appliances. Specifically, when networking a household appliance, the user needs to first start the access point mode through a button on the household appliance, such as starting a Wi-Fi hotspot, and then use a mobile phone installed with a corresponding application to connect to the Wi-Fi hotspot. After the connection is successful, the user enters the network name and network password of the wireless network to be connected on the application of the mobile phone and sends them to the household appliance for the household appliance to perform networking operations based on the network name and network password.
[0004] However, the existing networking method of household appliances requires users to manually perform networking operations through a mobile phone, and the operation is relatively cumbersome. At the same time, it may also lead to the inability to repair the program vulnerabilities of the household appliances in a timely manner when the household appliances are not networked automatically by the mobile phone, resulting in certain security risks. Summary of the Invention
[0005] To solve the above problems, that is, the existing networking method of household appliances, due to the cumbersome operation of manually networking through a mobile phone, causes the household appliances not to be networked automatically by the mobile phone, resulting in the inability to repair the program vulnerabilities of the household appliances in a timely manner through the network when the household appliances are not networked, and further leading to security risks of the household appliances. The present application provides a method, a device, and a medium for networking processing of a device.
[0006] In a first aspect, an embodiment of the present application provides a method for networking processing of a device, which is applied to a device that has been networked. The method includes:
[0007] When it is determined that the current state is in a networked state, perform hotspot scanning periodically to monitor whether there is a device to be networked around;
[0008] When a device to be networked is monitored around, connect to the hotspot of the device to be networked, and after connecting to the device to be networked, identify the device identifier of the device to be networked;
[0009] Based on the device identifier of the device to be networked, determine the security policy of the device to be networked, and based on the security policy, send the network connection information to the device to be networked, or perform corresponding processing on the network connection information and then send it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information.
[0010] In a preferred technical solution of the above network connection processing method for a device, when it is determined that the security policy of the device to be networked is the first security policy based on the device identifier of the device to be networked, the step of sending the network connection information to the device to be networked based on the security policy, or performing corresponding processing on the network connection information and then sending it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information, further includes:
[0011] Based on the first security policy, obtain the information to be authorized and send the information to be authorized to the device to be networked, so that the device to be networked can perform authorization verification processing based on the information to be authorized and feedback the authorization verification result;
[0012] After receiving the authorization verification result fed back by the device to be networked based on the information to be authorized, send the network connection information to the device to be networked, so that the device to be networked can perform network connection binding processing based on the network connection information.
[0013] In a preferred technical solution of the above network connection processing method for a device, when it is determined that the security policy of the device to be networked is the second security policy based on the device identifier of the device to be networked, the step of sending the network connection information to the device to be networked based on the security policy, or performing corresponding processing on the network connection information and then sending it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information, includes:
[0014] Based on the second security policy, perform missing processing on the user identifier in the network connection information, and perform encryption processing on the router SSID, password, and user token in the network connection information, so as to send the processed network connection information to the device to be networked, so that the device to be networked can perform decryption processing on the encrypted router SSID, password, and user token based on the decryption key calculated by using the missing processed user identifier, and perform network connection binding processing according to the decrypted router SSID, password, and user token.
[0015] In the preferred technical solution of the above-mentioned networking processing method for a device, when it is determined that the security policy of the device to be networked is the third security policy based on the device identifier of the device to be networked, based on the security policy, the network connection information is sent to the device to be networked, or the network connection information is correspondingly processed and then sent to the device to be networked, so that the device to be networked can perform networking binding processing based on the received network connection information, including:
[0016] Based on the third security policy, perform a missing processing on the user identifier in the network connection information, and encrypt the user token in the network connection information, so as to send the processed network connection information to the device to be networked, so that the device to be networked can perform a decryption process on the encrypted user token based on the decryption key calculated by the missing processed user identifier, and perform networking binding processing according to the decrypted user token, and the router SSID and password in the network connection information.
[0017] In the preferred technical solution of the above-mentioned networking processing method for a device, when applied to a device to be networked, the method includes:
[0018] When it is determined that the current state is an un-networked state, start the AP mode;
[0019] After making a hotspot connection with the networked device, obtain the network connection information of the networked device, and perform networking binding processing based on the network connection information. In the preferred technical solution of the above-mentioned networking processing method for a device, the obtaining the network connection information of the networked device and performing networking processing based on the network connection information includes:
[0020] Obtain the authorization information sent by the networked device, and perform authorization verification processing based on the authorization information, so as to send the obtained authorization verification result to the networked device;
[0021] Receive the network connection information sent by the networked device based on the authorization verification result, and perform networking binding processing based on the network connection information. In the preferred technical solution of the above-mentioned networking processing method for a device, the obtaining the network connection information of the networked device and performing networking binding processing based on the network connection information includes:
[0022] Receive the network connection information sent by the networked device, and when it is determined that the user identifier in the network connection information is missing, perform a complement processing based on the missing user identifier, and calculate and obtain the decryption key;
[0023] According to the decryption key, decrypt the encrypted router SSID, password, and user token in the network connection information, and perform network connection binding processing based on the decrypted router SSID, password, and user token obtained.
[0024] In a preferred technical solution of the above network connection processing method for a device, the obtaining the network connection information of the networked device and performing network connection binding processing based on the network connection information includes: Receive the network connection information sent by the networked device. When it is determined that the user identifier in the network connection information is missing, perform a completion process based on the missing user identifier, and calculate the obtained decryption key;
[0025] According to the decryption key, decrypt the encrypted user token in the network connection information, and perform network connection binding processing based on the decrypted user token, the router SSID, and the password in the network connection information.
[0026] In a second aspect, an embodiment of the present application provides an electronic device, including at least one processor and a memory;
[0027] The memory stores computer execution instructions;
[0028] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes a network connection processing method for a device as described in any item of the first aspect.
[0029] In a third aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements a network connection processing method for a device as described in any item of the first aspect.
[0030] Those skilled in the art can understand that the present application provides a network connection processing method, device, and medium for a device. Specifically, when it is determined that the current state is in a networked state, perform hotspot scanning periodically to monitor whether there are devices to be networked around; when it is detected that there are devices to be networked around, perform a hotspot connection to the device to be networked, and after connecting to the device to be networked, identify the device identifier of the device to be networked; based on the device identifier of the device to be networked, determine the security policy of the device to be networked, and based on the security policy, send the network connection information to the device to be networked, or perform corresponding processing on the network connection information and then send it to the device to be networked, so that the device to be networked performs network connection binding processing based on the received network connection information, realizes automatic device networking, and further realizes repairing software vulnerabilities in the networked state of the device and improving device security. Description of the Drawings
[0031] The preferred embodiments of a method, device, and medium for network connection processing of a device according to the present application will be described below with reference to the accompanying drawings, where the drawings are as follows:
[0032] Figure 1 It is a schematic flowchart of the first embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0033] Figure 2 It is a schematic flowchart of the second embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0034] Figure 3 It is a schematic flowchart of the third embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0035] Figure 4 It is a schematic flowchart of the fourth embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0036] Figure 5 It is a schematic flowchart of the fifth embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0037] Figure 6 It is a schematic flowchart of the sixth embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0038] Figure 7 It is a schematic flowchart of the seventh embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0039] Figure 8 It is a schematic flowchart of the eighth embodiment of a method for network connection processing of a device provided by an embodiment of the present application;
[0040] Figure 9 It is a signaling flowchart of a method for network connection processing of a device provided by an embodiment of the present application;
[0041] Figure 10 It is a schematic structural diagram of the first embodiment of an electronic device provided by an embodiment of the present application. Specific embodiments
[0042] First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application. Those skilled in the art can adjust them as needed to adapt to specific application scenarios.
[0043] Secondly, it should be noted that in the description of the embodiments of the present application, the terms indicating the direction or positional relationship such as "inside" and "outside" are based on the direction or positional relationship shown in the drawings. This is only for the convenience of description, rather than indicating or implying that the device or component must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application.
[0044] In addition, it should also be noted that in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those skilled in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific situations.
[0045] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without making creative efforts belong to the scope of protection of the present application.
[0046] In the prior art, the user needs to connect to the home appliance through the mobile phone APP, and then fill in the name and password of the wireless network in the mobile phone APP, and then send the wireless name and password to the home appliance. The home appliance performs network connection processing according to the wireless name and password. Since this method is complicated to operate, it may cause the program loopholes of the home appliance to not be repaired in time when the home appliance device is not connected to the network automatically by the mobile phone, thus there are certain security risks.
[0047] Based on the above problems, the technical concept of the present application is: how to provide a new method for network connection processing of a device to achieve automatic network connection of the device.
[0048] Figure 1 It is a schematic flowchart of Embodiment 1 of a method for network connection processing of a device provided for the embodiments of the present application. As Figure 1 shown, the method includes the following steps:
[0049] Step S101: When it is determined that the current state is in a network-connected state, perform hotspot scanning periodically to monitor whether there are devices to be network-configured around.
[0050] In this embodiment, the networked device queries the memory to check if network connection information is saved. If the network connection information is saved, network connection processing is performed according to the network connection information. If the network connection is successful, it is determined that the current state is the networked state.
[0051] Step S102: When a device to be networked is detected in the vicinity, establish a hotspot connection with the device to be networked. After connecting to the device to be networked, identify the device identifier of the device to be networked.
[0052] In this embodiment, after the device to be networked is started, the WIFI module is switched to the access point mode to start a hotspot. After the networked device detects the hotspot, it connects to the hotspot. When the networked device and the device to be networked are successfully connected, the device identifier of the device to be networked is identified.
[0053] Step S103: Based on the device identifier of the device to be networked, determine the security policy of the device to be networked. Based on this security policy, send the network connection information to the device to be networked, or perform corresponding processing on the network connection information and then send it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information.
[0054] In this embodiment, the device identifier represents different device types, and each device type corresponds to a different security policy. The networked device determines the security policy of the device to be networked according to the device identifier of the device to be networked. Based on this security policy, send the network connection information to the device to be networked, or perform corresponding processing on the network connection information and then send it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information.
[0055] In this embodiment, when it is determined that the current state is the networked state, hotspot scanning is performed periodically to monitor whether there is a device to be networked in the vicinity; when a device to be networked is detected in the vicinity, establish a hotspot connection with the device to be networked. After connecting to the device to be networked, identify the device identifier of the device to be networked; based on the device identifier of the device to be networked, determine the security policy of the device to be networked. Based on this security policy, send the network connection information to the device to be networked, or perform corresponding processing on the network connection information and then send it to the device to be networked, so that the device to be networked can perform network connection binding processing based on the received network connection information, realizing automatic networking of the device to be networked, so as to realize timely update of device vulnerabilities and further improve device security.
[0056] Figure 2 This is a schematic flowchart of the second embodiment of the network connection processing method for a device provided by the embodiment of the present application. On the basis of the above embodiment, as Figure 2 shown, specifically, when it is determined that the security policy of the device to be networked is the first security policy, a specific implementation manner of step S103 is:
[0057] Step S201: Based on the device identifier of the device to be networked, determine that the security policy of the device to be networked is the first security policy, and based on the first security policy, obtain the information to be authorized, and send the information to be authorized to the device to be networked, so that the device to be networked can perform authorization verification processing based on the information to be authorized and feedback the authorization verification result.
[0058] In this embodiment, for example, the networked device obtains the information to be authorized from the cloud server, and sends the information to be authorized to the device to be networked through the hotspot. The device to be networked performs authorization verification processing according to the authorization information and sends the authorization success result to the networked device.
[0059] Step S202: After receiving the authorization verification result feedback by the device to be networked based on the information to be authorized, send the network connection information to the device to be networked, so that the device to be networked can perform network connection and binding processing based on the network connection information.
[0060] In this embodiment, for example, the network information includes the router SSID, password, and user token. Among them, network connection is performed according to the router SSID and password, and the device is bound to the user according to the user token.
[0061] In this embodiment, based on the first security policy, obtain the information to be authorized, and send the information to be authorized to the device to be networked, so that the device to be networked can perform authorization verification processing based on the information to be authorized and feedback the authorization verification result; after receiving the authorization verification result feedback by the device to be networked based on the information to be authorized, send the network connection information to the device to be networked, so that the device to be networked can perform network connection and binding processing based on the network connection information, ensuring the security of automatic network connection and binding.
[0062] Figure 3 It is a schematic flowchart of the third embodiment of the network connection processing method for a device provided by an embodiment of the present application. Specifically, when it is determined that the security policy of the device to be networked is the second security policy, a specific implementation manner of step S103 is:
[0063] Step S301: Based on the device identifier of the device to be networked, determine that the security policy of the device to be networked is the second security policy, and based on the second security policy, perform missing processing on the user identifier in the network connection information, and perform encryption processing on the router SSID, password, and user token in the network connection information, so as to send the processed network connection information to the device to be networked, so that the device to be networked can perform decryption processing on the encrypted router SSID, password, and user token based on the decryption key calculated by the missing processed user identifier, and perform network connection and binding processing according to the decrypted router SSID, password, and user token.
[0064] In this embodiment, for example, the user identification in the network connection information is the user's mobile phone number, and the last four digits of the mobile phone number are hidden. The router SSID, password, and user token in the network connection are encrypted, and the processed network connection information is sent to the device to be network-configured. The device to be network-configured calculates and obtains a decryption key based on the missing user identification, decrypts the encrypted router SSID, password, and user token according to the decryption key, and performs network connection binding processing according to the decrypted router SSID, password, and user token, ensuring the security of the user's information.
[0065] Figure 4 FIG. 4 is a schematic flowchart of Embodiment 4 of a method for network connection processing of a device provided in an embodiment of the present application. Specifically, when it is determined that the security policy of the device to be network-configured is the third security policy, a specific implementation manner of step S103 is as follows:
[0066] Step S401: Based on the device identification of the device to be network-configured, it is determined that the security policy of the device to be network-configured is the third security policy. Based on the third security policy, the user identification in the network connection information is processed to be missing, and the user token in the network connection information is encrypted. The processed network connection information is sent to the device to be network-configured, so that the device to be network-configured calculates and obtains a decryption key based on the missing user identification, decrypts the encrypted user token, and performs network connection binding processing according to the decrypted user token, the router SSID, and the password in the network connection information.
[0067] In this embodiment, for example, the last four digits of the user's mobile phone number in the network connection information are deleted, the user token is encrypted, and the encrypted network connection information is sent to the device to be network-configured. The device to be network-configured calculates and obtains a decryption key based on the deleted mobile phone number, then decrypts the encrypted user token according to the key, and performs network connection binding processing according to the decrypted user token, the router SSID, and the password.
[0068] In this embodiment, based on the third security policy, the user identification in the network connection information is processed to be missing, and the user token in the network connection information is encrypted. The processed network connection information is sent to the device to be network-configured, so that the device to be network-configured calculates and obtains a decryption key based on the missing user identification, decrypts the encrypted user token, and performs network connection binding processing according to the decrypted user token, the router SSID, and the password in the network connection information, ensuring that the device to be network-configured can achieve secure automatic network connection binding.
[0069] Figure 5 Schematic diagram of the fifth embodiment of a method for networking processing of a device provided in an embodiment of the present application. As Figure 5 shown, the method includes:
[0070] Step S501: When it is determined that the current state is an unconnected state, start the AP mode.
[0071] In this embodiment, for example, the device to be network-configured obtains the network connection information in the memory. If there is no network connection information, it is determined that the device to be networked is in an unconnected state. If there is network connection information and the network cannot be connected using this network connection information, it is determined that the device to be networked is in an unconnected state.
[0072] Step S502: After making a hotspot connection with the network-configured device, obtain the network connection information of the network-configured device, and perform network connection binding processing based on the network connection information.
[0073] In this embodiment, after the network-configured device connects to the hotspot started by the un-network-configured device, obtain the network connection information of the network-configured device, and perform network connection binding processing based on the network connection information.
[0074] In this embodiment, when it is determined that the current state is an unconnected state, start the AP mode; after making a hotspot connection with the network-configured device, obtain the network connection information of the network-configured device, and perform network connection binding processing based on the network connection information to achieve automatic network connection binding of the device to be network-configured.
[0075] Figure 6 Schematic diagram of the sixth embodiment of a method for networking processing of a device provided in an embodiment of the present application. On the basis of the above embodiment, as Figure 6 shown, a specific implementation manner of step S502 is:
[0076] Step S601: After making a hotspot connection with the network-configured device, obtain the authorization information sent by the network-configured device, and perform authorization verification processing based on the authorization information to send the obtained authorization verification result to the network-configured device.
[0077] In this embodiment, after the network-configured device connects to the hotspot started by the un-network-configured device, the network-configured device sends the authorization information to the un-network-configured device through the hotspot. After receiving the authorization information, the un-network-configured device performs authorization verification on the authorization information. If the verification passes, the authorization verification passed information is sent to the network-configured device.
[0078] Step S602: Receive the network connection information sent by the network-configured device based on the authorization verification result, and perform network connection binding processing based on the network connection information.
[0079] In this embodiment, after the authorized verification of the networked device is passed, the network connection information is sent to the device to be networked. After receiving the network connection information, the device to be networked performs networking and binding processing.
[0080] In this embodiment, after connecting to the hotspot of the networked device, the device to be networked obtains the authorization information sent by the networked device, and performs authorization verification processing based on the authorization information, so as to send the obtained authorization verification result to the networked device; the device to be networked receives the network connection information sent by the networked device based on the authorization verification result, and performs networking and binding processing based on the network connection information, so as to improve the security of the networking and binding process of the device to be networked.
[0081] Figure 7 It is a schematic flowchart of the seventh embodiment of the networking processing method for a device provided by an embodiment of the present application. On the basis of the above embodiment, as Figure 7 shown, a specific implementation manner of step S502 is:
[0082] Step S701: After connecting to the hotspot of the networked device, the device to be networked receives the network connection information sent by the networked device. When it is determined that the user identifier in the network connection information is missing, the missing user identifier is supplemented, and a decryption key is calculated and obtained.
[0083] In this embodiment, for example, the device to be networked receives the network connection information sent by the networked device. When it is determined that the user mobile phone number in the network connection information is missing, the user is prompted to input the missing part of the mobile phone number, the missing mobile phone number is supplemented based on the missing part of the mobile phone number, and a decryption key is calculated and obtained according to the complete mobile phone number.
[0084] Step S702: According to the decryption key, the encrypted router SSID, password, and user token in the network connection information are decrypted, and networking and binding processing are performed according to the decrypted router SSID, password, and user token.
[0085] In this embodiment, the device to be networked receives the network connection information sent by the networked device. When it is determined that the user identifier in the network connection information is missing, the missing user identifier is supplemented, and a decryption key is calculated and obtained; according to the decryption key, the encrypted router SSID, password, and user token in the network connection information are decrypted, and networking and binding processing are performed according to the decrypted router SSID, password, and user token, so as to improve the security of the networking and binding of the device to be networked and improve the success rate of network configuration.
[0086] Figure 8 It is a schematic flowchart of the eighth embodiment of the networking processing method for a device provided by an embodiment of the present application, as Figure 8As shown, a specific implementation of step S502 is as follows:
[0087] Step S801: After establishing a hotspot connection with a pre-configured device, receive the network connection information sent by the pre-configured device. When it is determined that the user identifier in the network connection information is missing, perform a completion process based on the missing user identifier and calculate the obtained decryption key.
[0088] Step S802: According to the decryption key, decrypt the encrypted user token in the network connection information, and perform network connection binding processing based on the decrypted user token, the router SSID, and the password in the network connection information.
[0089] In this embodiment, after establishing a hotspot connection with a pre-configured device, receive the network connection information sent by the pre-configured device. When it is determined that the user identifier in the network connection information is missing, perform a completion process based on the missing user identifier and calculate the obtained decryption key; according to the decryption key, decrypt the encrypted user token in the network connection information, and perform network connection binding processing based on the decrypted user token, the router SSID, and the password in the network connection information to ensure the secure network connection binding of the device to be configured.
[0090] Figure 9 It is a signaling flow diagram of a network connection processing method for a device provided by an embodiment of the present application. As Figure 9 shown, the method includes:
[0091] Step S901: When the pre-configured device determines that it is in a network-connected state, perform periodic hotspot scanning to monitor whether there is a device to be configured around.
[0092] Step S902: When the pre-configured device detects a device to be configured around, establish a hotspot connection with the device to be configured.
[0093] Step S903: When detecting a device to be configured around, establish a hotspot connection with the device to be configured, and identify the device identifier of the device to be configured after connecting to the device to be configured.
[0094] Step S904: The pre-configured device determines the security policy of the device to be configured according to the device identifier of the device to be configured.
[0095] Step S905: The pre-configured device sends the network connection information to the device to be configured based on the security policy.
[0096] In addition, another replacement method for step S905 is: The pre-configured device processes the network connection information accordingly based on the security policy and then sends it to the device to be configured.
[0097] Step S906: The device to be network-configured performs network connection binding processing based on the network connection information.
[0098] In this embodiment, when the network-configured device determines that it is in a network-connected state, it periodically performs hotspot scanning to monitor whether there is a device to be network-configured in the vicinity; when the network-configured device detects a device to be network-configured in the vicinity, it makes a hotspot connection to the device to be network-configured; after the network-configured device is connected to the device to be network-configured, it identifies the device identifier of the device to be network-configured; the network-configured device determines the security policy of the device to be network-configured according to the device identifier of the device to be network-configured; the network-configured device sends the network connection information to the device to be network-configured based on the security policy; the device to be network-configured performs network connection binding processing based on the network connection information, realizing automatic network connection binding of the device to be network-configured and improving the network connection efficiency of the device to be networked.
[0099] Figure 10 FIG. 7 is a schematic structural diagram of Embodiment 1 of an electronic device provided in an embodiment of the present application, including at least one processor 101 and a memory 102. Among them, the processor 101 and the memory 102 are connected through a bus 103.
[0100] The specific implementation process of the processor 101 can be referred to in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0101] In the above Figure 10 shown embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application-specific integrated circuits (English: Application SpecificIntegrated Circuit, abbreviated: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0102] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0103] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
[0104] This application also provides a computer-readable storage medium, on which a computer program is stored. When the processor executes the computer program, the networking processing method of a device as described above is implemented.
[0105] The above computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk. The computer-readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.
[0106] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.
[0107] The division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0108] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] In addition, in each embodiment of the present invention, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0110] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs and other various media that can store program codes.
[0111] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the aforementioned storage medium includes: ROMs, RAMs, magnetic disks, or optical discs and other various media that can store program codes.
[0112] Finally, it should be noted that: after considering the specification and practicing the invention disclosed herein, those skilled in the art will readily think of other implementation schemes of the present invention. The present invention aims to cover any variations, uses, or adaptive changes of the present invention. These variations, uses, or adaptive changes follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A networking processing method for a device, characterized in that, When applied to the already networked device, the method includes: When it is determined that the current state is the networked state, perform hotspot scanning periodically to monitor whether there is a device to be networked around; When it is monitored that there is a device to be networked around, connect to the hotspot of the device to be networked, and after connecting to the device to be networked, identify the device identifier of the device to be networked; Based on the device identifier of the device to be networked, determine the security policy of the device to be networked, and based on the security policy, send the network connection information to the device to be networked, or send the network connection information to the device to be networked after corresponding processing, so that the device to be networked performs network connection binding processing based on the received network connection information.
2. The method according to claim 1, wherein When it is determined that the security policy of the device to be networked is the first security policy based on the device identifier of the device to be networked, the step of sending the network connection information to the device to be networked, or sending the network connection information to the device to be networked after corresponding processing, so that the device to be networked performs network connection binding processing based on the received network connection information includes: Based on the first security policy, obtain the information to be authorized, and send the information to be authorized to the device to be networked, so that the device to be networked performs authorization verification processing based on the information to be authorized and feedbacks the authorization verification result; After receiving the authorization verification result feedback by the device to be networked based on the information to be authorized, send the network connection information to the device to be networked, so that the device to be networked performs network connection binding processing based on the network connection information.
3. The method according to claim 1, characterized in that, When it is determined that the security policy of the device to be networked is the second security policy based on the device identifier of the device to be networked, the step of sending the network connection information to the device to be networked, or sending the network connection information to the device to be networked after corresponding processing, so that the device to be networked performs network connection binding processing based on the received network connection information includes: Based on the second security policy, perform missing processing on the user identifier in the network connection information, and perform encryption processing on the router SSID, password, and user token in the network connection information, so as to send the processed network connection information to the device to be networked, so that the device to be networked performs decryption processing on the encrypted router SSID, password, and user token based on the decryption key calculated by the missing processed user identifier, and performs network connection binding processing according to the decrypted router SSID, password, and user token.
4. The method according to claim 1, characterized in that, When it is determined that the security policy of the device to be networked is the third security policy based on the device identifier of the device to be networked, the step of sending the network connection information to the device to be networked, or sending the network connection information to the device to be networked after corresponding processing, so that the device to be networked performs network connection binding processing based on the received network connection information includes: Based on the third security policy, perform missing processing on the user identification in the network connection information, and encrypt the user token in the network connection information, so as to send the processed network connection information to the device to be networked, for the device to be networked to calculate and obtain a decryption key based on the missing processed user identification, decrypt the encrypted user token, and perform network connection binding processing according to the decrypted user token, and the router SSID and password in the network connection information.
5. A method for networking processing of a device, characterized in that, When applied to a device to be networked, the method includes: When it is determined that the current state is an un-networked state, start the AP mode; After establishing a hotspot connection with the networked device, obtain the network connection information of the networked device, and perform network connection binding processing based on the network connection information.
6. The method according to claim 5, characterized in that, The obtaining the network connection information of the networked device and performing network connection processing based on the network connection information includes: Obtain the information to be authorized sent by the networked device, and perform authorization verification processing based on the information to be authorized, so as to send the obtained authorization verification result to the networked device; Receive the network connection information sent by the networked device based on the authorization verification result, and perform network connection binding processing based on the network connection information.
7. The method according to claim 5, wherein The obtaining the network connection information of the networked device and performing network connection binding processing based on the network connection information includes: Receive the network connection information sent by the networked device, and when it is determined that the user identification in the network connection information is missing, perform completion processing based on the missing user identification, and calculate and obtain a decryption key; According to the decryption key, decrypt the encrypted router SSID and password, and the user token in the network connection information, and perform network connection binding processing according to the decrypted router SSID and password, and the user token.
8. The method according to claim 5, characterized in that The obtaining the network connection information of the networked device and performing network connection binding processing based on the network connection information includes: Receive the network connection information sent by the networked device, and when it is determined that the user identification in the network connection information is missing, perform completion processing based on the missing user identification, and calculate and obtain the decryption key; According to the decryption key, decrypt the encrypted user token in the network connection information, and perform network connection binding processing according to the decrypted user token, and the router SSID and password in the network connection information.
9. An electronic device, characterized in that, It includes at least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes a network connection processing method of a device according to any one of claims 1 to 8.
10. A readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements a network connection processing method of a device according to any one of claims 1 to 8.