[0034] In order to make the objectives, technical solutions and advantages of the present invention clearer, the following describes specific implementations of the WIFI network device and the WIFI network access method of the present invention with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0035] See figure 1 In an embodiment, the WIFI network device may include a WIFI network generating device 100, a communication device 200, and a communication terminal 300. The WIFI network generating device 100 is used to generate configuration information including the identifier of the WIFI network access point and the WIFI network access password. The communication device 200 is configured to communicate with the WIFI network generating device 100, obtain configuration information generated by the WIFI network generating device 100, encode the configuration information to generate coded configuration information, and send it out. The communication terminal 300 is used to search for the coded configuration information sent by the communication device 200, decode the coded configuration information to obtain the configuration information, and establish a network connection with the WIFI network generating device 100 according to the configuration information.
[0036] For the above-mentioned WIFI network device, after the communication device 200 communicates with the WIFI network generating device 100, it obtains configuration information and encodes the configuration information to generate coded configuration information; the communication terminal 300 then receives the coded configuration information sent by the communication device 200, and according to the decoded configuration The information establishes a WIFI network connection with the WIFI network generating device 100, so that the user no longer needs to manually input relevant configuration information, the communication terminal 300 and the WIFI network generating device 100 can establish a connection, and the communication terminal 300 is located in an unknown network environment Next, the communication device 200 can still automatically complete the authentication connection with the WIFI network generating device 100 conveniently.
[0037] In one embodiment, the communication device 200 fills the coded configuration information into the network packet before sending it out. After the communication terminal 300 searches for the network packet, it determines whether the network packet matches the preset identification code: if so, decodes the encoding configuration information in the network packet to obtain the identification of the WIFI network access point and the WIFI network connection. Enter the configuration information of the password; otherwise, the network packet will not be decoded.
[0038] By judging whether the searched network packet matches the preset identification code, it can be ensured that the network packet received by the communication terminal 300 is sent by the communication device 200, and the security of the network can also be ensured to prevent malicious attacks on the communication terminal 300 .
[0039] See figure 2 In one embodiment, the communication terminal 300 includes a WIFI module 310, a processor 320, and a memory 330. The WIFI module 310 is used to receive network packets sent by the communication device 200. The processor 320 is configured to determine whether the network packet matches the preset identification code, and if so, decode the encoded configuration information in the network packet to obtain configuration information including the identification of the WIFI network access point and the WIFI network access password; Otherwise, the network packet will not be decoded. The memory 330 is used to store configuration information.
[0040] The following describes the WIFI network device in detail through a specific example. In this embodiment, the number of the WIFI network generating device 100 is one, the number of the communication device 200 is one, and the number of the communication terminal 300 is one. The WIFI network generating device 100 is a router.
[0041] Specifically, the router generates configuration information including the identification of the WIFI network access point and the WIFI network access password. Among them, the identifier of the WIFI network access point is the SSID.
[0042] The communication device 200 is connected to the router, and encodes the configuration information generated by the router to generate the encoded configuration information, and then fills the encoded configuration information into the network packet and sends it out.
[0043] The communication terminal 300 searches for the network packet. After searching for the network packet, it matches the network packet with the preset identification code. If the matching is successful, the encoding configuration information in the network packet is decoded to obtain the SSID and WIFI network connection. Enter the configuration information of the password; if the match is not successful, the information in the network packet will not be decoded.
[0044] The communication terminal 300 performs an authentication connection with the router through the configuration information of the SSID and the WIFI network access password. After the communication terminal 300 is successfully connected to the router, the communication terminal 300, the communication device 200, and the router are established in the same network communication system. At this time, the communication terminal 300 can notify the communication device 200 that the connection is successful, and perform further configuration settings. The communication terminal 300 and the communication device 200 can also exchange information. The information interaction may be an update of configuration information.
[0045] It can be understood that, in this embodiment, the WIFI network generating apparatus 100 may also be an AP. When the WIFI network generating device 100 is an AP, the working process of the WIFI network device is the same as that of the WIFI network device when the WIFI network generating device 100 is a router, so it will not be repeated here. Of course, the WIFI network generating device 100 may also be other devices capable of generating a WIFI network.
[0046] See image 3 In an embodiment, the WIFI network generating device 100 may include a first WIFI network generating device 110 and a second WIFI network generating device 120. The configuration information generated by the first WIFI network generating device 110 is the first configuration information, and the configuration information generated by the second WIFI network generating device 120 is the second configuration information.
[0047] The communication device 200 may include a first communication device 210 and a second communication device 220. The first communication device 210 encodes the first configuration information to generate first encoded configuration information, and the second communication device 220 encodes the second configuration information to generate second encoded configuration information.
[0048] The communication terminal 300 searches for the first coding configuration information and the second coding configuration information, decodes the first coding configuration information to obtain the first configuration information, decodes the second coding configuration information to obtain the second configuration information, and determines that the first WIFI network generates The signal strength of the device 110 and the second WIFI network generating device 120 is generated, and the WIFI network generating device with higher signal strength is selected from the first WIFI network generating device 110 and the second WIFI network generating device 120 for connection.
[0049] Specifically, the first WIFI network generating device 110 generates the first configuration information including the identifier of the first WIFI network access point and the first WIFI network access password. The second WIFI network generating device 120 generates the second configuration information including the identifier of the second WIFI network access point and the second WIFI network access password. Wherein, the identity of the first WIFI network access point and the identity of the second WIFI network access point may both be SSIDs.
[0050] The first communication device 210 is connected to the first WIFI network generating device 110, and encodes the first configuration information generated by the first WIFI network generating device 110 to generate first coded configuration information, and then fills the first coded configuration information to the first Send out in a network packet. The second communication device 220 is connected to the second WIFI network generating device 120, and encodes the second configuration information generated by the second WIFI network generating device 120 to generate second coded configuration information, and then fills the second coded configuration information to the first 2. Send out in network packets.
[0051] The communication terminal 300 searches for network packets. After the communication terminal 300 searches for the first network packet, it matches the first network packet with the preset identification code. If the matching is successful, it decodes the first encoding configuration information in the first network packet to obtain the first network packet containing the SSID and the first network packet. The first configuration information of a WIFI network access password; if the matching is not successful, the information in the first network packet is not decoded.
[0052] After the communication terminal 300 searches for the second network packet, it matches the second network packet with the preset identification code. If the match is successful, it decodes the second encoding configuration information in the second network packet to obtain the SSID and the first 2. The second configuration information of the WIFI network access password; if the match is not successful, the information in the second network packet is not decoded. The communication terminal 300 stores the decoded first configuration information and second configuration information in the memory 330.
[0053] The communication terminal 300 compares the signal strength of the first WIFI network generating device 110 and the signal strength of the second WIFI network generating device 120, and selects the signal strength of the first WIFI network generating device 110 and the second WIFI network generating device 120. The WIFI network generating device performs authentication connection. For example, the signal strength of the first WIFI network generating device 110 is relatively high, and the communication terminal 300 is connected to the first WIFI network generating device 110 for authentication. After the connection is successful, the first WIFI network generating device 110, the second communication device 220 and the communication terminal 300 are located in the same network communication system. At this time, the communication terminal 300 can notify the first communication device 210 that the connection is successful, and perform further configuration settings. The communication terminal 300 and the communication device 200 can also exchange information. The information interaction may be an update of configuration information.
[0054] Similarly, in this embodiment, the WIFI network generating device 100 may be a router or an AP, and may also be other devices capable of generating a WIFI network.
[0055] In addition, the communication device 200 in the foregoing embodiment may be a mobile phone, a palmtop computer, a notebook computer, or a vehicle-mounted computer. The communication terminal 300 may be a smart phone, a palmtop computer, a notebook computer, a vehicle-mounted computer, or a desktop computer.
[0056] It should be noted that the number of WIFI network generating devices 100 in the WIFI network device can also be more than three, and the number of communication devices 200 can also be more than three. When the number of WIFI network generating devices 100 is three or more and the number of communication devices 200 is three or more, the workflow of the WIFI network device and the number of WIFI network generating devices 100 are two and the number of communication devices 200 The working procedures of the two WIFI network devices are the same, so they will not be repeated here.
[0057] The holder of the above-mentioned WIFI network access device, the communication device 200 and the WIFI signal can authorize the holder of the communication terminal 300 to connect to the network, which not only ensures that the WIFI signal will not be provided for free, but also allows the communication terminal 300 to connect easily WIFI signal.
[0058] After the above-mentioned WIFI network device, the communication device 200 is in communication with the WIFI network generating device 100, obtains the configuration information generated by the WIFI network generating device 100, and encodes the configuration information to generate coded configuration information; the communication terminal 300 receives the code sent by the communication device 200 Configuration information, according to the decoded configuration information to establish a WIFI authentication connection with the WIFI network generating device 100, the user no longer needs to manually input the relevant configuration information, the communication terminal 300 and the WIFI network generating device 100 can easily establish a connection and communicate When the terminal 300 is located in an unknown network environment, it can still conveniently complete the authentication connection with the WIFI network generating device 100 through the communication device 200 automatically.
[0059] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
[0060] Based on the same inventive concept, the embodiments of the present invention also provide a WIFI network access method. Since the principle of this method to solve the problem is similar to the aforementioned WIFI network device, the method can be implemented by the aforementioned device, and the repetition will not be omitted. Go into details.
[0061] See Figure 4 In one embodiment, the WIFI network access method includes the following steps:
[0062] S401: The WIFI network generating device generates configuration information including the identifier of the WIFI network access point and the WIFI network access password.
[0063] Wherein, the identifier of the WIFI network access point may be an SSID.
[0064] S402: The configuration information is coded by the communication device to generate coded configuration information and sent out.
[0065] Wherein, the communication device can be communicatively connected with the WIFI network generating device to obtain the configuration information generated by the WIFI network generating device, and then the configuration information is coded to generate coded configuration information and sent.
[0066] S403: Search for the coded configuration information sent by the communication device, decode the coded configuration information to obtain the configuration information, and connect the communication terminal to the WIFI network generating device according to the configuration information.
[0067] The communication terminal searches for the coded configuration information sent by the communication device, decodes the coded configuration information to obtain the configuration information, and then establishes a network connection with the WIFI network generating device according to the configuration information.
[0068] In an embodiment, the encoding configuration information can also be filled into the network packet through the communication device, and then sent out. The communication terminal searches for the network packet, and after searching for the network packet, determines whether the network packet matches the preset identification code: if so, decodes the encoding configuration information in the network packet to obtain a WIFI network access point The configuration information of the ID and WIFI network access password; otherwise, the network packet will not be decoded.
[0069] In an embodiment, the configuration information may include first configuration information and second configuration information. The communication device may include a first communication device and a second communication device. The first configuration information is encoded by the first communication device to generate the first configuration information. The second configuration information is encoded by the second communication device to generate the second configuration information.
[0070] At this time, step S403 may specifically be: searching for the first coding configuration information and the second coding configuration information, decoding the first coding configuration information to obtain the first configuration information, and decoding the second coding configuration information to obtain the second configuration information. The magnitude relationship between the signal strength of the WIFI network generating device corresponding to the first configuration information and the WIFI network generating device corresponding to the second configuration information is determined, and the communication terminal is connected with the WIFI network generating device with higher signal strength.
[0071] Of course, the number of WIFI network generating devices can also be more than three, and the number of communication devices can also be more than three. The workflow when the number of WIFI network generation devices is three or more and the number of communication devices is three or more is the same as the workflow when the number of WIFI network generation devices is two and the number of communication devices is two , So I won’t repeat it here.
[0072] In the above-mentioned WIFI network access method, the WIFI network generating device generates configuration information including the identification of the WIFI network access point and the WIFI network access password, and the configuration information is encoded by the communication device to generate the encoded configuration information and then sent out, searching for the communication device The coded configuration information is sent out, and the coded configuration information is decoded to obtain the configuration information, and the communication terminal is connected to the WIFI network generating device according to the configuration information, so that the user no longer needs to manually input the relevant configuration information, the communication terminal is connected to the WIFI network The generating device can easily establish a connection, and when the communication terminal is located in an unknown network environment, it is still convenient to automatically complete the authentication connection with the WIFI network generating device through the communication device.
[0073] The above-mentioned embodiments only express several implementation modes of the present invention, and their description is more specific and detailed, but they should not be interpreted as a limitation on the patent scope of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, and these all fall within the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.