Terminal network distribution method and computer storage medium
By generating wireless access point information and creating wireless hotspots, the existing batch sensorless distribution network time and network access information leakage are solved, and efficient terminal distribution network and information security is achieved.
Patent Information
- Application Number
- CN202411793050.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-22
AI Technical Summary
The existing batch sensorless distribution network solution needs to traverse all terminals to be distributed during the distribution process, resulting in a long distribution time and a risk of leakage of network access information.
By obtaining current location information and time information, generating wireless access point information, creating wireless hotspots, and distributing network devices that have successfully accessed hotspots, avoiding the existence and interaction of wireless frame detection distribution devices.
The distribution steps are reduced, the possibility of leakage of network access information is eliminated, a large amount of interaction time is omitted, and the efficiency of terminal distribution is improved.
Smart Images

Figure CN119865869A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent wireless terminals, and in particular to a terminal network configuration method and a computer storage medium. Background Art
[0002] With the development of Internet of Things technology, the current network configuration method of smart wireless terminals has changed from the user manually entering the SSID (Service Set Identifier) and password to a method that does not require the user to enter the WiFi SSID and password. This method is called non-sensing network configuration in the industry. Non-sensing network configuration has been widely used in the industry as a basic function of the product. Non-sensing network configuration has developed from a single one-to-one network configuration to a one-to-many network configuration.
[0003] One-to-many non-sensing network configuration is also called batch non-sensing network configuration, which is mostly based on broadcasting. In the existing batch non-sensing network configuration scheme, the network configuration information such as SSID and key (password) needs to traverse the list of all terminals to be configured, and send the network configuration information to them one by one. In the process of sending the network configuration information to each device to be configured, there may be multiple interactions. In this process, it takes a certain amount of time to send the network configuration information to a certain device to be configured. If there are a large number of terminals to be configured in batches, and the network configuration information is sent serially one by one in sequence, the total time of the entire batch non-sensing network configuration will be greatly increased, slowing down the time of the batch non-sensing network configuration. Summary of the invention
[0004] In order to solve the above technical problems, the present application proposes a terminal network configuration method and a computer storage medium.
[0005] In order to solve the above technical problems, the present application proposes a terminal network configuration method, which is applied to a terminal network configuration device, and the terminal network configuration method includes:
[0006] In response to the network configuration instruction, obtain current location information and current time information;
[0007] Generate wireless access point information based on the current location information and the current time information;
[0008] Creating a wireless hotspot based on the wireless access point information;
[0009] Perform network configuration on the device to be configured that has successfully accessed the wireless hotspot.
[0010] In order to solve the above technical problems, the present application also proposes a terminal network configuration method, which is applied to a device to be configured, and the terminal network configuration method includes:
[0011] In response to the network configuration instruction, obtain current location information and current time information;
[0012] Generate wireless access point information based on the current location information and the current time information;
[0013] A wireless hotspot created by a terminal network configuration device is accessed based on the wireless access point information to perform network configuration through the terminal network configuration device.
[0014] In order to solve the above technical problems, the present application also proposes a terminal network configuration method, which is applied to a network configuration system, wherein the network configuration system includes a terminal network configuration device and at least one network configuration device; the terminal network configuration method includes:
[0015] The terminal network configuration device generates first wireless access point information based on its own first current location information and first current time information;
[0016] The terminal network configuration device creates a wireless hotspot according to the first wireless access point information;
[0017] The device to be networked generates second wireless access point information based on its own second current location information and second current time information;
[0018] The device to be networked uses the second wireless access point information to access the wireless hotspot;
[0019] The terminal network configuration device performs network configuration on the device to be configured that has successfully accessed the wireless hotspot.
[0020] In order to solve the above technical problems, the present application also proposes a computer storage medium, which is used to store program data. When the program data is executed by a computer, it is used to implement the above terminal network configuration method.
[0021] Compared with the prior art, the beneficial effects of the present application are: the terminal network configuration device responds to the network configuration instruction, obtains the current location information and the current time information; generates the wireless access point information based on the current location information and the current time information; creates a wireless hotspot based on the wireless access point information; and performs network configuration on the network configuration device to be configured that successfully accesses the wireless hotspot. Through the above-mentioned terminal network configuration method, there is no need to send wireless frames to detect the existence of the network configuration device and the network configuration device to be configured, which reduces the network configuration steps, eliminates the possibility of network access information leakage on the one hand, and omits a lot of interaction time on the other hand, thereby improving the terminal network configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] in:
[0024] Figure 1 It is a schematic diagram of the framework of the terminal distribution network solution provided by this application;
[0025] Figure 2 It is a schematic diagram of the overall process of the terminal network configuration solution provided by this application;
[0026] Figure 3 It is a flowchart of the first embodiment of the terminal network configuration method provided by the present application;
[0027] Figure 4 It is a schematic diagram of the framework of the terminal distribution network device provided by this application;
[0028] Figure 5 yes Figure 3 The specific flow chart of step S12 of the terminal network configuration method shown;
[0029] Figure 6 It is a flowchart of the second embodiment of the terminal network configuration method provided by the present application;
[0030] Figure 7 It is a schematic diagram of the framework of the network device to be configured provided by this application;
[0031] Figure 8 It is a flowchart of the third embodiment of the terminal network configuration method provided by the present application;
[0032] Fig. 9 It is a structural diagram of an embodiment of a terminal network distribution device provided by the present application;
[0033] Fig.10 It is a structural schematic diagram of an embodiment of a network configuration device provided by the present application;
[0034] Fig.11 It is a structural diagram of an embodiment of a computer storage medium provided by the present application. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] The problem to be solved by the terminal network configuration method of the present application is to avoid sending wireless frames to exchange network configuration information, thereby preventing the network configuration information from being intercepted and cracked during the interaction, and solving the problem of long total time in batch network configuration.
[0038] Specifically, the terminal network configuration method of the present application does not require any wireless data frames to exchange SSID information and key information for network access. Using the location longitude and latitude information of the network configuration area and the time information during network configuration, the network configuration device generates a wireless AP, and the network configuration terminal calculates the SSID and key of the target wireless AP. The SSID and key information of the two are consistent, thus achieving network configuration. The terminal network configuration method of the present application eliminates the need to send wireless frames to detect the existence of the network configuration device, eliminates the need to send wireless frames to exchange SSID and key information, and eliminates the possibility of network access information leakage.
[0039] See also Figure 1 and Figure 2 , Figure 1 It is a schematic diagram of the framework of the terminal distribution network solution provided by this application. Figure 2 It is a schematic diagram of the overall process of the terminal distribution network solution provided in this application.
[0040] like Figure 1 and Figure 2 As shown, the present application does not require the steps of exchanging network configuration information between wireless probe request frames and wireless response frames.
[0041] When configuring the network, the "network configuration device" calculates and opens a new wireless AP (wireless access point) hotspot through time and space information, and the "terminal to be configured" calculates and connects to the above new wireless AP hotspot to achieve one-step network configuration.
[0042] Specifically, the ssid and key of the new wireless AP hotspot are generated according to the location information and time information of the network configuration device itself. The ssid and key of the target wireless AP hotspot to which the network configuration terminal is to be connected are generated according to the location information and time information of the network configuration terminal itself.
[0043] Because the "terminal to be configured" and the "network configuration device" have the same SSID and key generation algorithm for the wireless AP hotspot, the "terminal to be configured" and the "network configuration device" have the same time and space when configuring the network, that is, the location information and time information are consistent, the time and space information are consistent and the generation algorithm is consistent, so the wireless AP hotspot information generated by the two will eventually be consistent.
[0044] In this way, after the "terminal to be networked" calculates and generates the ssid and key of the wireless AP hotspot, it can directly connect to the new wireless AP hotspot opened by the "network configuration device" to achieve network configuration.
[0045] The following will continue to introduce the terminal network configuration method provided by this application from the terminal network configuration device side. For details, please refer to Figure 3 and Figure 4 , Figure 3 is a flowchart of the first embodiment of the terminal network configuration method provided by the present application, Figure 4 It is a schematic diagram of the framework of the terminal distribution network device provided in this application.
[0046] like Figure 4 As shown, the terminal network configuration device of the present application includes a microprocessor chip, a memory, a wifi module, a button module, a Beidou module, a fingerprint module and an Internet access module.
[0047] Specifically, the microprocessor chip controls its own functional logic and network configuration functional logic. The memory stores the necessary data for product operation. The Internet access module is mainly used to connect to the Internet of Things and the Internet. The wifi module is mainly used to communicate with the terminal to be configured and provide a communication link for Internet access. The fingerprint module is used to identify the user's fingerprint feature information. The Beidou module is used to obtain the location information of the terminal configuration device.
[0048] like Figure 3 As shown, the specific steps are as follows:
[0049] Step S11: In response to the network configuration instruction, obtain current location information and current time information.
[0050] In the embodiment of the present application, the terminal network configuration device and the device to be matched, that is, the terminal to be matched, need to be powered on in advance, and Figure 4 The terminal network distribution device shown is already connected to the Internet.
[0051] like Figure 2 As shown, the user presses the network configuration button of the terminal network configuration device, and the terminal network configuration device obtains the current location information of the current location, such as longitude and latitude information, and obtains the current time information through the Beidou module.
[0052] Step S12: Generate wireless access point information based on the current location information and the current time information.
[0053] In the embodiment of the present application, the terminal network configuration device generates wireless access point information according to its current location information and current time information, which is used to open the AP hotspot. It can be understood that the access point information of the AP hotspot contains the time and space information of the terminal network configuration device and has a certain uniqueness.
[0054] Specifically, the terminal network configuration device can encode the current location information and the current time information according to a common encoding algorithm to obtain the access point information of the AP hotspot, or can encode the current location information and the current time information according to a common hash function to obtain the access point information of the AP hotspot.
[0055] Furthermore, for the generation method of wireless access point information, this application provides a specific implementation method. Figure 5 , Figure 5 yes Figure 3 The specific flow chart of step S12 of the terminal network configuration method is shown.
[0056] like Figure 5 As shown, the specific steps are as follows:
[0057] Step S121: Convert the current location information into a location character string.
[0058] In the embodiment of the present application, the location information obtained by the Beidou module of the terminal distribution network device is "120°12′32.400″ East longitude, 30°14′49.560″ North latitude", which means "120 degrees 12 minutes 32.400 seconds East longitude, 30 degrees 14 minutes 49.560 seconds North latitude".
[0059] The Beidou module of the terminal network distribution device removes the decimal places of the longitude and latitude in seconds. The location information of the terminal network distribution device without decimal places is "120 degrees 12 minutes 32 seconds east longitude, 30 degrees 14 minutes 49 seconds north latitude". The terminal network distribution device assembles the processed location information into a string, such as a fixed 14-byte location description string "1201232301449".
[0060] Step S122: Convert the current time information into a time character string.
[0061] In the embodiment of the present application, the time information obtained by the Beidou module of the terminal distribution network device is "10:20:30 on August 29, 2024".
[0062] The time information obtained by the Beidou module of the terminal network configuration device removes the seconds. The time information of the above terminal network configuration device removes the seconds, which is "August 29, 2024 10:20". The processed time information is pieced together into a string, such as a fixed 12-byte time representation string "202408291020".
[0063] Step S123: Generate a space-time character string based on the position character string and the time character string.
[0064] In the embodiment of the present application, the terminal network configuration device combines the position description string and the time description string into a 32-byte space-time description string (if less than 32 bytes, 0 is added at the end). For example, the position description string "1201232301449" and the time description string "202408291020" are combined into a 32-byte space-time description string "1201232301449202408291020000000".
[0065] Step S124: Generate wireless access point information according to the time-space character string and the pre-buried first encryption identifier.
[0066] In the embodiment of the present application, the ssid and key of the wireless AP hotspot are generated based on the salt1 pre-buried by the manufacturer, that is, the first encryption identifier and the latitude and longitude information and time information, and salt2, that is, the time and space description string combined into salt3, that is, the second encryption identifier. The terminal network configuration device generates ssid1 according to the manufacturer's private generation algorithm A, and generates key1 according to the manufacturer's private generation algorithm B.
[0067] Among them, salt1 is the encrypted salt value embedded in the program by the manufacturer for all its products. The salt value is determined and kept confidential by a very small number of people in the manufacturer, who can be the president or chairman of the company, and belongs to the data assets of the manufacturer. Salt1 in this application can be a set of 32-byte random strings.
[0068] Specifically, the terminal network configuration device performs bitwise XOR on 32-byte salt1 and 32-byte salt2 to obtain a 32-byte salt3 value. The terminal network configuration device performs SHA-256 hash calculation on salt3 to obtain a 32-byte hash1 value, performs base64 encoding on the hash1 value, takes the first 27 bytes of the string, and concatenates them with the fixed string "ssid-". The final 32-character ssid of the wireless AP hotspot is "ssid-TWFuIGlzIGRpc3Rpbmd1aXNoZg".
[0069] The terminal network configuration device first performs bitwise AND operation on salt3 and salt1, and then performs SHA-256 hash calculation to obtain a 32-byte hash2 value. The hash2 value is base64 encoded, and the first 28 bytes are taken and combined with the fixed string "key-". The final 32-character wireless AP hotspot key is "key-5IGJ5IGhpcyByZWFzb24sIGJ1dx".
[0070] Step S13: Create a wireless hotspot based on the wireless access point information.
[0071] In the embodiment of the present application, the terminal network configuration device uses the wireless AP hotspot key and the ssid of the wireless AP hotspot generated in step S12 to create a wireless hotspot.
[0072] Step S14: network configuration is performed on the device to be networked that has successfully accessed the wireless hotspot.
[0073] In the embodiments of the present application, Figure 1 As shown, after the terminal network configuration device starts the wireless hotspot, it detects whether there is a network configuration device that has successfully accessed the wireless hotspot. If so, the network configuration is performed on the network configuration device that has successfully accessed the wireless hotspot to connect the network configuration device to the Internet.
[0074] In the present application, the terminal network configuration device responds to the network configuration instruction, obtains the current location information and the current time information; generates the wireless access point information based on the current location information and the current time information; creates a wireless hotspot based on the wireless access point information; and performs network configuration on the network configuration device to be configured that successfully accesses the wireless hotspot. Through the above-mentioned terminal network configuration method, there is no need to send wireless frames to detect the existence of the network configuration device and the network configuration device to be configured, which reduces the network configuration steps, eliminates the possibility of network access information leakage on the one hand, and omits a lot of interaction time on the other hand, thereby improving the terminal network configuration efficiency.
[0075] The following will continue to introduce the terminal network configuration method provided by this application from the side of the network device to be configured. For details, please refer to Figure 6 and Figure 7 , Figure 6is a flow chart of the second embodiment of the terminal network configuration method provided by the present application, Figure 7 It is a schematic diagram of the framework of the network device to be configured provided in this application.
[0076] like Figure 7 As shown, the network configuration device of the present application includes a microprocessor chip, a memory, a wifi module, a button module, a Beidou module and a fingerprint module.
[0077] Specifically, the microprocessor chip controls its own functional logic and network distribution functional logic. The memory stores the necessary data for product operation. The wifi module is mainly used to connect to the wifi module of the "network distribution device" to achieve communication with the Internet of Things and the Internet. The fingerprint module is used to identify the user's fingerprint feature information. The Beidou module is used to obtain the location information of the terminal network distribution device.
[0078] like Figure 6 As shown, the specific steps are as follows:
[0079] Step S21: In response to the network configuration instruction, obtain current location information and current time information.
[0080] In the embodiment of the present application, the user presses the network configuration button of the device to be configured. The device to be configured obtains the ssid information and key information of the target AP hotspot according to the generation algorithm based on the current location longitude and latitude information and current time information obtained through the Beidou module.
[0081] Among them, the generation algorithm A and generation algorithm B of the network device to be configured are consistent with the generation algorithm of the terminal network configuration device. Because the generation algorithms of ssid and key are consistent, it is only necessary to ensure that the spatiotemporal descriptor is consistent with that generated by the terminal network configuration device, that is, it is necessary to ensure that the location description string and time description string of the network device to be configured are consistent with those generated by the terminal network configuration device.
[0082] Step S22: Generate wireless access point information based on the current location information and the current time information.
[0083] In the embodiment of the present application, because the device to be configured is near the terminal configuration device during network configuration, there is also a sequence in the time for pressing the configuration button of the device to be configured and the configuration button of the terminal configuration device. This will inevitably lead to the latitude and longitude information and time information obtained by the device to be configured and the terminal configuration device being different, with slight differences, such as a few seconds more or less, a few seconds east of the location, or a few seconds north of the location.
[0084] In order to ensure that the location descriptor and time descriptor of the network device to be configured and the terminal network configuration device are consistent, this application proposes a method that can eliminate the impact of the inconsistency of longitude and latitude information and time information. The specific processing process is as follows:
[0085] The device to be configured rounds the longitude and latitude data, retaining only the seconds, and discarding the decimal places of the seconds. Assuming that longitude and latitude are used as horizontal and vertical coordinates, the data with the same seconds in the longitude and latitude position information will eventually form the same position description string. The entire longitude and latitude data form a grid with spaces, and the device to be configured and the terminal configuration device located in the same grid will have the same position description string.
[0086] Assume that the longitude and latitude data of the network device to be configured are rounded and recorded as A, and the longitude and latitude data of the terminal network device are rounded and recorded as B. Taking A as the reference system, the possible positions of B are shown in the following table:
[0087] latitude B1 B2 B3 B4 A, B5 B6 B7 B8 B9 0 longitude
[0088] Because when the longitude and latitude are rounded, the distance per second of latitude is approximately equal to 30 meters, and the distance per second of longitude is also approximately equal to 30 meters. The network device to be configured and the terminal network device are very close, and the distance between them is required to be less than 30 meters during network configuration. This ensures that after rounding, the longitude second digits of the two can only be the same, or the difference is 1, and the latitude second digits of the two can only be the same, or the difference is 1. If after rounding, the longitude of the network device to be configured and the terminal network device have the same second digits, and the latitude also has the same second digits, then A and B fall into the same area, such as A and B5 in the table. If after rounding, the longitude of the network device to be configured and the terminal network device have different second digits, the difference is 1, and the latitude has different second digits, the difference is 1, then A and B fall into different areas. Taking A as the reference system, the position of B has 8 possibilities: B1, B2, B3, B4, B6, B7, B8, B9.
[0089] In general, among the 9 positions B1 to B9, there is always a position Bx that makes Bx and A the same. Therefore, when the network configuration device generates the SSID of the target AP hotspot, it generates 9 types of location description strings according to the location area of B1 to B9, and one of the 9 types must be the same as the location description symbol of the terminal network configuration device.
[0090] Similarly, assume that the time data of the network device to be configured is rounded and recorded as M, and the time data of the terminal network device is rounded and recorded as N. Taking M as the reference system, the possible positions of N are shown in the following table:
[0091] N1 M, N2 N3 time
[0092] Because the seconds are removed when the time information is rounded, the maximum time difference is 1 minute. This application requires that when configuring the network, the time for pressing the network configuration buttons of the terminal network configuration device and the network configuration device to be configured cannot be greater than 1 minute. This ensures that after rounding, the fractional digits of the two can only be the same, or the difference is 1. As shown in the table above, if the fractional digits of the network configuration device to be configured and the terminal network configuration device are the same after the time data is rounded, the position of N is N2. If the fractional digits of the network configuration device to be configured and the terminal network configuration device differ by 1 after rounding, the position of N is N1 and N3.
[0093] In general, among the three positions N1 to N3, there is always a position Nx that makes Nx and M the same. Therefore, when the network configuration device generates the key of the target AP hotspot, it generates three time description strings according to the location area of N1 to N3, and one of the three must be the same as the time description symbol of the terminal network configuration device.
[0094] In summary, the network configuration device obtains 9 possible ssids and 3 possible keys. The network configuration device generates 27 location description strings and time description strings of the target AP hotspot, and correspondingly generates 27 time-space description strings, and correspondingly generates 27 ssid and key value pairs, among which there must be one ssid-key value pair, which is consistent with the wireless AP hotspot ssid, key generated by the terminal network configuration device.
[0095] Step S23: accessing the wireless hotspot created by the terminal network configuration device based on the wireless access point information, so as to perform network configuration through the terminal network configuration device.
[0096] In the embodiment of the present application, because the terminal network configuration device opens a new wireless AP hotspot, the network configuration device calculates and generates 27 ssid-key value pairs, among which there must be a pair of ssid-key that is consistent with the wireless AP hotspot ssid,key generated by the terminal network configuration device.
[0097] Therefore, as long as the device to be networked traverses these 27 ssid-keys to connect to the wireless AP hotspot, it will be successfully connected and network configuration will be achieved.
[0098] The following is an introduction to the terminal network configuration method provided by this application from a system perspective. Figure 8 , Figure 8 It is a flowchart of the third embodiment of the terminal network configuration method provided in this application.
[0099] like Figure 8 As shown, the specific steps are as follows:
[0100] Step S31: the terminal network configuration device generates first wireless access point information based on its own first current location information and first current time information.
[0101] Step S32: the terminal network configuration device creates a wireless hotspot according to the first wireless access point information.
[0102] Step S33: the device to be networked generates second wireless access point information based on its own second current location information and second current time information.
[0103] Step S34: the device to be networked uses the second wireless access point information to access the wireless hotspot.
[0104] Step S35: the terminal network configuration device performs network configuration on the device to be configured that has successfully accessed the wireless hotspot.
[0105] In the embodiments of the present application, the processing flows of the terminal network configuration device and the device to be configured have been described in detail in the above embodiments and will not be repeated here.
[0106] The present application does not need to send wireless frames to detect the existence of the network configuration device and the terminal to be configured, thus reducing the network configuration steps.
[0107] This application does not need to send wireless frames to exchange network configuration information, and third parties cannot intercept the network configuration information.
[0108] This application proposes a new network configuration method, which generates the wireless AP hotspot and the corresponding SSID and key information of the network configuration area through the longitude and latitude information of the network configuration area and the time information of the network configuration.
[0109] This application can support batch seamless network configuration without the need for the network configuration device to send ssid and key to the terminal to be configured.
[0110] This application eliminates the possibility of network access information leakage, and generates salt2 through the pre-buried manufacturer salt1 and the latitude and longitude information of the network distribution area, and salt3 through the network distribution time information. Use salt1, salt2, and salt3 to merge into a new salt. Then use the private generation algorithm pre-buried by the manufacturer to generate ssid and key, ensuring that the ssid and key of the AP generated by the network distribution device in real time are consistent with the ssid and key calculated by the terminal to be configured. In this way, it is ensured that the network access information is only known by the network distribution device and the terminal to be configured, and cannot be intercepted and cracked by a third party.
[0111] This application proposes an algorithm for generating SSID and key, which can ensure that the SSID and key values calculated by the network configuration device to be configured and the terminal network configuration device are consistent.
[0112] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0113] In order to implement the above terminal network configuration method, this application also proposes a terminal network configuration device, please refer to Fig. 9 , Fig. 9 It is a structural diagram of an embodiment of a terminal distribution network device provided in this application.
[0114] The terminal network distribution device 400 of this embodiment includes a processor 41 , a memory 42 , an input / output device 43 , and a bus 44 .
[0115] The processor 41 , the memory 42 , and the input / output device 43 are respectively connected to the bus 44 . The memory 42 stores program data. The processor 41 is used to execute the program data to implement the terminal network configuration method described in the above embodiment.
[0116] In the embodiment of the present application, the processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having the ability to process signals. The processor 41 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or the processor 41 may also be any conventional processor, etc.
[0117] In order to implement the above-mentioned terminal network configuration method, this application also proposes a network configuration device, please refer to Fig.10 , Fig.10 It is a structural diagram of an embodiment of a network configuration device provided in the present application.
[0118] The network configuration device 500 of this embodiment includes a processor 51 , a memory 52 , an input / output device 53 , and a bus 54 .
[0119] The processor 51 , the memory 52 , and the input / output device 53 are respectively connected to the bus 54 . The memory 52 stores program data. The processor 51 is used to execute the program data to implement the terminal network configuration method described in the above embodiment.
[0120] This application also provides a computer storage medium, please continue to refer to Fig.11 , Fig.11It is a structural diagram of an embodiment of a computer storage medium provided in the present application. The computer storage medium 600 stores a computer program 61. When the computer program 61 is executed by a processor, it is used to implement the terminal network configuration method of the above embodiment.
[0121] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0122] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A terminal network configuration method, characterized in that: The terminal network configuration method is applied to a terminal network configuration device, and the terminal network configuration method includes: In response to the network configuration instruction, obtain current location information and current time information; Generate wireless access point information based on the current location information and the current time information; Creating a wireless hotspot based on the wireless access point information; Perform network configuration on the device to be configured that has successfully accessed the wireless hotspot.
2. The terminal network distribution method according to claim 1, characterized in that: Generating wireless access point information based on the current location information and the current time information includes: Convert the current location information into a location string; Convert the current time information into a time string; Generate a space-time character string based on the position character string and the time character string; The wireless access point information is generated according to the space-time character string and the pre-buried first encryption identifier.
3. The terminal network configuration method according to claim 2, It is characterized in that in, The wireless access point information includes: a service set identifier and a hotspot password; The generating the wireless access point information according to the time-space character string and the pre-buried first encryption identifier includes: Generate a second encryption identifier according to the first encryption identifier and the space-time character string; Performing hash calculation on the second encrypted identifier to obtain the service set identifier; Generate a third encryption identifier according to the second encryption identifier and the first encryption identifier; The third encryption identifier is hashed to obtain the hotspot password.
4. The terminal network distribution method according to claim 3, characterized in that: The step of generating a second encryption identifier according to the first encryption identifier and the space-time character string includes: Performing a bitwise XOR operation on the first encryption identifier and the space-time character string to generate the second encryption identifier; The step of generating a third encryption identifier according to the second encryption identifier and the first encryption identifier includes: Perform a bitwise AND operation on the second encryption identifier and the first encryption identifier to generate the third encryption identifier.
5. A terminal network configuration method, characterized in that: The terminal network configuration method is applied to a device to be configured, and the terminal network configuration method includes: In response to the network configuration instruction, obtain current location information and current time information; Generate wireless access point information based on the current location information and the current time information; A wireless hotspot created by a terminal network configuration device is accessed based on the wireless access point information to perform network configuration through the terminal network configuration device.
6. According to the terminal network configuration method of claim 5, It is characterized in that in, The wireless access point information includes: a service set identifier and a hotspot password; The generating wireless access point information based on the current location information and the current time information includes: Convert the current location information into a location string; Convert the current time information into a time string; Generate a time-space string based on the location string and the time string Generate a second encryption identifier according to the pre-buried first encryption identifier and the space-time character string; Performing hash calculation on the second encrypted identifier to obtain the service set identifier; Generate a third encryption identifier according to the second encryption identifier and the first encryption identifier; The third encryption identifier is hashed to obtain the hotspot password.
7. The terminal network configuration method according to claim 6, characterized in that: in, The generation algorithm of the service set identifier obtained by the network device to be configured is the same as the generation algorithm of the service set identifier obtained by the terminal network configuration device; the generation algorithm of the hotspot password obtained by the network device to be configured is the same as the generation algorithm of the hotspot password obtained by the terminal network configuration device.
8. The terminal network configuration method according to claim 6, characterized in that: The converting the current location information into a location character string includes: Rounding the longitude and latitude in the current location information to obtain the target longitude and latitude; Generate a plurality of candidate longitudes and latitudes according to the first preset accuracy value and the target longitude and latitude; The target longitude and latitude and each of the candidate longitude and latitude are converted into corresponding position character strings respectively.
9. The terminal network distribution method according to claim 6 or 8, characterized in that: The converting the current time information into a time character string comprises: Rounding the time in the current time information to obtain the target time; Generate a plurality of candidate times according to the second preset accuracy value and the target time; The target time and each of the candidate times are converted into corresponding time strings respectively.
10. The terminal network configuration method according to claim 9, characterized in that: The wireless hotspot created by the terminal network configuration device based on the wireless access point information access includes: Each wireless access point information is traversed, and each wireless access point information is used to connect to the wireless hotspot created by the terminal network configuration device, until any wireless access point information successfully accesses the wireless hotspot, or all wireless access information is traversed.
11. A terminal network configuration method, characterized in that: The terminal network configuration method is applied to a network configuration system, wherein the network configuration system includes a terminal network configuration device and at least one network configuration device to be configured; the terminal network configuration method includes: The terminal network configuration device generates first wireless access point information based on its own first current location information and first current time information; The terminal network configuration device creates a wireless hotspot according to the first wireless access point information; The device to be networked generates second wireless access point information based on its own second current location information and second current time information; The device to be networked uses the second wireless access point information to access the wireless hotspot; The terminal network configuration device performs network configuration on the device to be configured that has successfully accessed the wireless hotspot.
12. A computer storage medium, characterized in that: The computer storage medium is used to store program data, and when the program data is executed by a computer, it is used to implement the terminal network configuration method according to any one of claims 1 to 11.