Wireless network connection method, device, equipment, storage medium and computer program
The dynamically generated wireless network password is obtained through electronic devices and server communication, which solves the problem of easy leakage of wireless network password fixation and improves the security of wireless networks.
Patent Information
- Application Number
- CN202410973769.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-26
AI Technical Summary
The existing wireless network password is fixed, which is easy to leak, reducing the security of the wireless network.
Communication with the server through electronic devices, receiving instructions to obtain the wireless network name, sending instructions to the server to obtain the dynamically generated network password, and connecting to the wireless network based on the name and password to avoid fixed password leakage.
Improves the security of wireless networks, prevents password leakage, and enhances the security of connection.
Smart Images

Figure CN119031512A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a wireless network connection method, apparatus, device, storage medium, and computer program. Background Art
[0002] With the development of wireless network technology, more and more users control vehicle-mounted devices through wireless networks. Specifically, the vehicle-mounted devices have built-in communication cards. The vehicle-mounted devices use the communication cards to activate the wireless network, and electronic devices connect to the vehicle-mounted devices through the wireless network to achieve control of the vehicle-mounted devices.
[0003] In the prior art, a method for connecting an electronic device to a wireless network is generally to scan a QR code, display the wireless network name and wireless network password, and connect to the corresponding wireless network according to the wireless network name and wireless network password.
[0004] However, in the prior art, the wireless network password is fixed, and any electronic device with a QR code scanning function can directly scan the code to obtain the wireless network password, which easily causes the wireless network password to be leaked, thereby reducing the security of the wireless network. Summary of the Invention
[0005] The main purpose of this application is to provide a wireless network connection method, apparatus, computer equipment, storage medium and computer program, aiming to solve the technical problem that the existing wireless network password is fixed, which easily causes the wireless network password to be leaked, thereby reducing the security of the wireless network.
[0006] To achieve the above objectives, the present application provides a wireless network connection method, which is applied to an electronic device, wherein the electronic device is communicatively connected to a server, and the method includes:
[0007] receiving a first instruction, wherein the first instruction is used to instruct connection to a wireless network;
[0008] In response to the first instruction, obtaining a network name of the wireless network;
[0009] sending a second instruction to the server;
[0010] receiving a network password of the wireless network sent by the server based on the second instruction;
[0011] Connecting to the wireless network based on the network name of the wireless network and the network password of the wireless network.
[0012] Optionally, receiving the first instruction includes:
[0013] Receive shooting instructions;
[0014] The acquiring, in response to the first instruction, a network name of the wireless network includes:
[0015] In response to the shooting instruction, scanning a graphic code associated with the wireless network;
[0016] Obtain the network name of the wireless network obtained by scanning the graphic code.
[0017] Optionally, the sending a second instruction to the server includes:
[0018] Sending a second instruction carrying the network name of the wireless network to the server, so that the server searches a preset first mapping table for a network password corresponding to the network name; the first mapping table is used to represent a mapping relationship between a name and a password;
[0019] The receiving the network password of the wireless network sent by the server based on the second instruction includes:
[0020] Receive the network password of the wireless network queried by the server based on the first mapping table.
[0021] Optionally, the sending a second instruction to the server includes:
[0022] Sending a second instruction carrying the device information of the electronic device to the server, so that the server searches for the device information in a preset second mapping table; the second mapping table stores the device information of the electronic device that has passed the device authentication;
[0023] When the device information is obtained through query, it is determined that the electronic device passes the device authentication.
[0024] Optionally, the second instruction carries the network name of the wireless network, and the receiving the network password of the wireless network sent by the server based on the second instruction includes:
[0025] When the electronic device passes the device authentication, the dynamic password sent by the server based on the network name of the wireless network is received.
[0026] Optionally, the receiving a dynamic password sent by the server based on the network name of the wireless network includes:
[0027] Sending the network name of the wireless network to the server, so that the server randomly generates a network password based on the network name of the wireless network;
[0028] Receive the randomly generated network password sent by the server.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a wireless network connection device, the wireless network connection device comprising:
[0030] A first receiving module is configured to receive a first instruction, where the first instruction is used to instruct connection to a wireless network;
[0031] an acquiring module, configured to acquire a network name of the wireless network in response to the first instruction;
[0032] A sending module, configured to send a second instruction to the server;
[0033] A second receiving module, configured to receive a network password of the wireless network sent by the server based on the second instruction;
[0034] The connection module is used to connect to the wireless network based on the network name of the wireless network and the network password of the wireless network.
[0035] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0036] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the wireless network connection methods proposed in the embodiments of the present application are implemented.
[0037] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0038] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the wireless network connection methods proposed in the embodiments of the present application are implemented.
[0039] In order to solve the above technical problems, the embodiments of the present application further provide a computer program that adopts the following technical solution:
[0040] When the computer program is executed by a processor, the steps of any one of the wireless network connection methods proposed in the embodiments of the present application are implemented.
[0041] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0042] The embodiment of the present application provides a wireless network connection method, which is applied to an electronic device, wherein the electronic device is connected to a server for communication, and the method includes: receiving a first instruction, the first instruction being used to instruct the connection to a wireless network; obtaining the network name of the wireless network in response to the first instruction; sending a second instruction to the server; receiving the network password of the wireless network sent by the server based on the second instruction; and connecting to the wireless network based on the network name of the wireless network and the network password of the wireless network. In the embodiment of the present application, the network password is determined by the server based on the second instruction, and is not a fixed network password, thereby avoiding the leakage of the wireless network password and improving the security of the wireless network. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the solutions in this application, a brief introduction will be given below to the drawings required for use in the description of the embodiments of this application. Obviously, the drawings described below are some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0044] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0045] Figure 2 is a flowchart of a wireless network connection method provided by an embodiment of the present application;
[0046] Figure 3 This is an application scenario diagram of the wireless network connection method provided in an embodiment of the present application;
[0047] Figure 4 This is a schematic structural diagram of an embodiment of a wireless network connection device provided in an embodiment of the present application;
[0048] Figure 5 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION
[0049] The wireless network connection method provided in the embodiments of the present application is applied to a wireless network connection device. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0050] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0052] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0053] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0054] Terminal devices 101, 102, and 103 can be various electronic devices with display screens and support web browsing, including but not limited to smartphones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0055] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0056] It should be noted that the wireless network connection method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the wireless network connection device is generally set in the server / terminal device. It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0057] Please refer to Figure 2 , shows a flow chart of an embodiment of the wireless network connection method proposed in this application. The embodiment of this application can acquire and process relevant data based on artificial intelligence technology.
[0058] The wireless network connection method provided in an embodiment of the present application is applied to an electronic device, wherein the electronic device is communicatively connected to a server, and the method includes the following steps:
[0059] S210, receiving a first instruction.
[0060] An optional application scenario is that the wireless network connection method provided in the embodiment of the present application is applied to an electronic device, and the electronic device is communicatively connected to a server.
[0061] In this embodiment, a first instruction is received.
[0062] In an optional implementation, the first instruction is a first instruction generated by a user operating the electronic device; in another optional implementation, the first instruction is an instruction sent by another device communicating with the electronic device.
[0063] The first instruction is used to instruct connection to a wireless network.
[0064] S220: In response to the first instruction, obtain a network name of the wireless network.
[0065] In this step, after receiving the first instruction, the electronic device obtains the network name of the wireless network in response to the first instruction.
[0066] S230: Send a second instruction to the server.
[0067] In this step, after the electronic device obtains the network name of the wireless network, it sends a second instruction to the communication connected server. Optionally, the second instruction carries the network name of the wireless network.
[0068] S240: Receive the network password of the wireless network sent by the server based on the second instruction.
[0069] In this step, after receiving the second instruction, the server obtains the network password of the wireless network based on the second instruction, and sends the network password of the wireless network to the electronic device in communication connection, so that the electronic device receives the network password of the wireless network.
[0070] For specific implementation of how to obtain the network password of the wireless network based on the second instruction, please refer to the subsequent embodiments.
[0071] S250: Connect to the wireless network based on the network name of the wireless network and the network password of the wireless network.
[0072] In this step, after obtaining the network name and password of the wireless network, the electronic device can connect to the wireless network based on the network name and password. Specifically, the electronic device requests to connect to the corresponding wireless network using the network name and enters the network password to establish a connection with the corresponding wireless network.
[0073] The embodiment of the present application provides a wireless network connection method, which is applied to an electronic device, wherein the electronic device is connected to a server for communication, and the method includes: receiving a first instruction, the first instruction being used to instruct the connection to a wireless network; obtaining the network name of the wireless network in response to the first instruction; sending a second instruction to the server; receiving the network password of the wireless network sent by the server based on the second instruction; and connecting to the wireless network based on the network name of the wireless network and the network password of the wireless network. In the embodiment of the present application, the network password is determined by the server based on the second instruction, and is not a fixed network password, thereby avoiding the leakage of the wireless network password and improving the security of the wireless network.
[0074] Optionally, receiving the first instruction includes:
[0075] Receive shooting instructions;
[0076] The acquiring, in response to the first instruction, a network name of the wireless network includes:
[0077] In response to the shooting instruction, scanning a graphic code associated with the wireless network;
[0078] Obtain the network name of the wireless network obtained by scanning the graphic code.
[0079] In this embodiment, the first instruction is a shooting instruction.
[0080] An optional application scenario is that a user performs a corresponding operation on an electronic device to generate a shooting instruction, and the electronic device receives the shooting instruction and turns on the camera in response to the shooting instruction to perform a shooting operation.
[0081] In the above application scenario, a graphic code is provided, and the graphic code is associated with a wireless network. Optionally, the graphic code is a QR code or a bar code.
[0082] The electronic device performing the shooting operation scans the graphic code associated with the wireless network and obtains the network name of the wireless network obtained by scanning the graphic code.
[0083] In this embodiment, the network name of the wireless network is obtained by scanning the graphic code, thereby ensuring the security and accuracy of obtaining the network name of the wireless network.
[0084] Optionally, the sending a second instruction to the server includes:
[0085] Sending a second instruction carrying the network name of the wireless network to the server, so that the server searches a preset first mapping table for a network password corresponding to the network name; the first mapping table is used to represent a mapping relationship between a name and a password;
[0086] The receiving the network password of the wireless network sent by the server based on the second instruction includes: receiving the network password of the wireless network found by the server based on the first mapping table.
[0087] As described above, in an optional embodiment, the second instruction carries the network name of the wireless network. Optionally, a first mapping table is pre-set in the server, and the first mapping table is used to represent the mapping relationship between the name and the password.
[0088] In this embodiment, the electronic device sends a second instruction carrying the network name of the wireless network to the server. The server queries the network name of the wireless network in the first mapping table. If the query obtains a password that is mapped to the network name, the server determines the password as the network password of the wireless network and sends the network password to the electronic device, so that the electronic device receives the network password.
[0089] In an optional implementation, if the server does not find a password with a mapping relationship with the network name in the first mapping table, the server returns a query result to the electronic device, and the electronic device outputs connection failure information based on the query result.
[0090] In this embodiment, a first mapping table is preset. By querying the network name in the first mapping table, the network password is obtained, thereby avoiding the leakage of the wireless network password and thus improving the security of the wireless network. For the convenience of understanding the overall technical solution of this embodiment, please refer to Figure 3 ,exist Figure 3 In the application scenario shown, the "vehicle-mounted device" can be understood as a wireless network gateway, and the "APP" can be understood as a related application on an electronic device that applies the wireless network generation method provided in the embodiment of the present application.
[0091] exist Figure 3In the illustrated application scenario, after the vehicle-mounted device is powered on, it generates a wireless network password and stores it on a server. Based on the first instruction, the electronic device scans the QR code to obtain the network name, sends it to the server, and receives the network password back. The electronic device then connects to the vehicle-mounted device's wireless network based on the network name and password.
[0092] Optionally, the sending a second instruction to the server includes:
[0093] Sending a second instruction carrying the device information of the electronic device to the server, so that the server searches for the device information in a preset second mapping table; the second mapping table stores the device information of the electronic device that has passed the device authentication;
[0094] When the device information is obtained through query, it is determined that the electronic device passes the device authentication.
[0095] In this embodiment, the second instruction also carries device information of the electronic device, and optionally, the device information is the SN code of the electronic device. In this embodiment, the server is pre-set with a second mapping table, which stores device information of electronic devices that have passed device authentication.
[0096] In this embodiment, the electronic device sends a second instruction carrying the device information of the electronic device to the server. The server queries the device information in the second mapping table. If the device information is obtained, it indicates that the electronic device has passed the device authentication.
[0097] In this embodiment, a second mapping table is preset. By querying the device information of the electronic device in the second mapping table, it is determined whether the electronic device is authenticated according to the query result, and then whether the electronic device is a secure device that can access the wireless network.
[0098] Optionally, the second instruction carries the network name of the wireless network, and the receiving the network password of the wireless network sent by the server based on the second instruction includes:
[0099] When the electronic device passes the device authentication, the dynamic password sent by the server based on the network name of the wireless network is received.
[0100] As described above, in an optional implementation, the second instruction carries the network name of the wireless network. In this embodiment, if the electronic device passes the device authentication, indicating that the electronic device can safely connect to the wireless network, the server sends a dynamic password to the electronic device.
[0101] The following describes in detail how the electronic device receives the dynamic password sent by the server:
[0102] Optionally, the receiving a dynamic password sent by the server based on the network name of the wireless network includes:
[0103] Sending the network name of the wireless network to the server, so that the server randomly generates a network password based on the network name of the wireless network;
[0104] Receive the randomly generated network password sent by the server.
[0105] In this embodiment, when the electronic device passes the device authentication, it sends the network name of the wireless network to the server, and the server randomly generates a network password based on the network name of the wireless network. Optionally, the network name can be binary processed, and the obtained binary number can be input into the random function to generate the network password.
[0106] Furthermore, the server sends the generated network password to the wireless network gateway and the electronic device. The wireless network gateway modifies the password to the network password sent by the server. The electronic device connects to the wireless network according to the network name and the received network password.
[0107] In the embodiment of the present application, the above-mentioned network password is a password randomly generated by the server, thereby avoiding password leakage by randomly generating the password and improving the security of the wireless network.
[0108] Further references Figure 4 , as a response to the above Figure 2 In order to realize the method shown in FIG. 1 , the present application provides an embodiment of a wireless network connection device 400. The embodiment of the device is similar to the embodiment of FIG. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0109] An embodiment of the present application provides a wireless network connection device 400, which includes:
[0110] A first receiving module 410 is configured to receive a first instruction, where the first instruction is used to instruct connection to a wireless network;
[0111] An acquisition module 420, configured to acquire a network name of the wireless network in response to the first instruction;
[0112] A sending module 430 is configured to send a second instruction to the server;
[0113] A second receiving module 440 is configured to receive a network password of the wireless network sent by the server based on the second instruction;
[0114] The connection module 450 is configured to connect to the wireless network based on the network name of the wireless network and the network password of the wireless network.
[0115] Optionally, the first receiving module 410 is specifically configured to:
[0116] Receive shooting instructions;
[0117] The acquisition module 420 is specifically configured to:
[0118] In response to the shooting instruction, scanning a graphic code associated with the wireless network;
[0119] Obtain the network name of the wireless network obtained by scanning the graphic code.
[0120] Optionally, the sending module 430 is specifically configured to:
[0121] Sending a second instruction carrying the network name of the wireless network to the server, so that the server searches a preset first mapping table for a network password corresponding to the network name; the first mapping table is used to represent a mapping relationship between a name and a password;
[0122] The second receiving module 440 is specifically configured to:
[0123] Receive the network password of the wireless network queried by the server based on the first mapping table.
[0124] Optionally, the sending module 430 is further configured to:
[0125] Sending a second instruction carrying the device information of the electronic device to the server, so that the server searches for the device information in a preset second mapping table; the second mapping table stores the device information of the electronic device that has passed the device authentication;
[0126] When the device information is obtained through query, it is determined that the electronic device passes the device authentication.
[0127] Optionally, the second instruction carries the network name of the wireless network, and the second receiving module 440 is further specifically configured to:
[0128] When the electronic device passes the device authentication, the dynamic password sent by the server based on the network name of the wireless network is received.
[0129] Optionally, the second receiving module 440 is further configured to:
[0130] Sending the network name of the wireless network to the server, so that the server randomly generates a network password based on the network name of the wireless network;
[0131] Receive the randomly generated network password sent by the server.
[0132] To solve the above technical problems, the present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.
[0133] The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with components 51-53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0134] The computer device may be a desktop computer, notebook computer, PDA, cloud server, etc. The computer device may interact with the user via a keyboard, mouse, remote control, touchpad, or voice control device.
[0135] The memory 51 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, magnetic disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as the hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk equipped on the computer device 5, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as the program code of the wireless network connection method. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.
[0136] In some embodiments, the processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to execute program code stored in the memory 51 or process data, such as executing the program code for the wireless network connection method.
[0137] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.
[0138] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores the wireless network connection program, and the wireless network connection program can be executed by at least one processor to enable the at least one processor to perform the steps of the wireless network connection method as described above.
[0139] The present application also provides another embodiment, that is, providing a computer program, which can be executed by at least one processor to enable the at least one processor to perform the steps of the wireless network connection method as described above.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware online platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0142] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the present application specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present application.
Claims
1. A wireless network connection method, characterized in that: Applied to an electronic device, the electronic device is communicatively connected with a server, and the method comprises: receiving a first instruction, wherein the first instruction is used to instruct connection to a wireless network; In response to the first instruction, obtaining a network name of the wireless network; Sending a second instruction to the server; receiving a network password of the wireless network sent by the server based on the second instruction; The wireless network is connected based on the network name of the wireless network and the network password of the wireless network.
2. The method according to claim 1, characterized in that The receiving the first instruction comprises: Receive shooting instructions; The acquiring, in response to the first instruction, a network name of the wireless network includes: In response to the shooting instruction, scanning a graphic code associated with the wireless network; The network name of the wireless network is obtained by scanning the graphic code.
3. The method according to claim 1, characterized in that The sending a second instruction to the server includes: Sending a second instruction carrying the network name of the wireless network to the server, so that the server searches a preset first mapping table for a network password corresponding to the network name; the first mapping table is used to represent a mapping relationship between a name and a password; The receiving the network password of the wireless network sent by the server based on the second instruction includes: Receive the network password of the wireless network queried by the server based on the first mapping table.
4. The method according to claim 1, characterized in that: The sending a second instruction to the server includes: Sending a second instruction carrying the device information of the electronic device to the server, so that the server searches for the device information in a preset second mapping table; the second mapping table stores the device information of the electronic device that has passed the device authentication; When the device information is obtained through query, it is determined that the electronic device passes the device authentication.
5. The method according to claim 4, characterized in that The second instruction carries the network name of the wireless network, and the receiving the network password of the wireless network sent by the server based on the second instruction includes: When the electronic device passes the device authentication, a dynamic password sent by the server based on the network name of the wireless network is received.
6. The method according to claim 5, characterized in that The receiving a dynamic password sent by the server based on the network name of the wireless network includes: Sending the network name of the wireless network to the server so that the server randomly generates a network password based on the network name of the wireless network; Receive the randomly generated network password sent by the server.
7. A wireless network connection device, characterized in that: include: A first receiving module, used for receiving a first instruction, where the first instruction is used for instructing to connect to a wireless network; an acquisition module, configured to acquire a network name of the wireless network in response to the first instruction; A sending module, used for sending a second instruction to the server; A second receiving module, used for receiving a network password of the wireless network sent by the server based on the second instruction; The connection module is used to connect to the wireless network based on the network name of the wireless network and the network password of the wireless network.
8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the wireless network connection method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the wireless network connection method according to any one of claims 1 to 6 are implemented.
10. A computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the wireless network connection method according to any one of claims 1 to 6.
