Method and device for switching AP on vehicle, storage medium and program product

By turning on the hidden AP on the vehicle, the target electronic device can automatically obtain and update the network configuration information of the target AP, solving the problem of equipment disconnection caused by AP handover in the prior art, realizing unsensed AP handover, and improving the switching speed and user experience.

CN119854894AActive Publication Date: 2025-04-18ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411754111.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-18
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

When switching Wi-Fi AP provided by the vehicle, the connected electronic device is disconnected due to AP information errors, and the user needs to manually reconfigure the device, which is cumbersome.

Method used

By turning on the hidden AP on the vehicle, the target electronic device can first access the hidden AP, obtain the network configuration information of the target AP from the vehicle through the AP, and automatically update its AP configuration information. When the target electronic device initiates an AP handover request, the vehicle migrates its communication link to the target AP.

Benefits of technology

It realizes the AP handover of the target electronic device without the user's perception, improves the speed and user experience of AP handover, and avoids interruption of device networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854894A_ABST
    Figure CN119854894A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for switching APs on a vehicle, a storage medium and a program product. The method is applied to a vehicle, and can comprise the following steps: acquiring network configuration information of a target AP, and switching an original AP to the target AP; opening a hidden AP, wherein the service set identifier of the hidden AP is not broadcasted; sending network configuration information of the target AP to the target electronic equipment through the hidden AP under the condition that the target electronic equipment is determined to be connected with the hidden AP, so that the target electronic equipment updates the current AP configuration information into the network configuration information of the target AP; the target electronic equipment comprises electronic equipment connected with the original AP; and in response to an AP switching request initiated by the target electronic equipment, migrating a communication link of the target electronic equipment from the hidden AP to the target AP. According to the technical scheme provided by the invention, the AP connected with the electronic equipment can be automatically switched under the condition that a user does not perceive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of AP technology, and in particular to a method, device, storage medium and program product for switching APs on a vehicle. Background Art

[0002] With the development of Internet of Vehicles technology, vehicles can provide on-board Wi-Fi access points (APs), allowing other electronic devices in the vehicle to access the Internet through the APs. For the Wi-Fi APs provided by the vehicle, users can change the AP's SSID (Service Set Identifier), password, security method and other information to switch from one AP to another. If an electronic device is already connected to the AP before the change when the user changes the AP information, then after the AP information is changed, all devices will disconnect from the Wi-Fi connection due to incorrect AP information. At this point, the user needs to manually reconfigure each device, which is cumbersome. Summary of the invention

[0003] The present application provides a method, device, storage medium and program product for switching APs on a vehicle to address deficiencies in the related art.

[0004] According to a first aspect of one or more embodiments of the present application, a method for switching an AP in a vehicle is provided. The method is applied to the vehicle and includes:

[0005] Obtaining network configuration information of a target AP, and switching the original AP to the target AP;

[0006] Enable a hidden AP, and the service set identifier of the hidden AP will not be broadcast;

[0007] In the case of determining that the target electronic device has been connected to the hidden AP, sending the network configuration information of the target AP to the target electronic device through the hidden AP, so that the target electronic device updates the current AP configuration information to the network configuration information of the target AP; the target electronic device includes an electronic device that has been connected to the original AP;

[0008] In response to the AP switching request initiated by the target electronic device, the communication link of the target electronic device is migrated from the hidden AP to the target AP.

[0009] Optionally, before switching the original AP to the target AP, the method further includes: broadcasting network configuration information of the target AP to electronic devices currently connected to the original AP, so that the electronic devices currently connected to the original AP connect to the target AP using the received network configuration information.

[0010] Optionally, sending the network configuration information of the target AP to the target electronic device through the hidden AP includes: verifying the target electronic device when it is determined that the target electronic device is connected to the hidden AP; sending the network configuration information of the target AP to the target electronic device through the hidden AP when the target electronic device passes the verification; and disconnecting the connection between the target electronic device and the hidden AP when the target electronic device fails the verification.

[0011] Optionally, the verifying the target electronic device includes: obtaining a target random number and generating a first verification code based on the target random number; using the first verification code to decrypt encrypted information from the target electronic device to obtain decrypted information, the encrypted information being encrypted by the target electronic device using a second verification code, the second verification code being generated by the target electronic device based on the target random number; and determining that the target electronic device has passed the verification when the decrypted information is the same as preset information.

[0012] Optionally, the method further includes: periodically updating the target random number, and sending the updated target random number to an electronic device connected to the original AP through the original AP.

[0013] Optionally, it also includes: searching whether device information of the target electronic device exists in the first device information recorded by the vehicle, the first device information including device information of electronic devices historically connected to the original AP; if the search result indicates that device information of the target electronic device exists, obtaining the target random number; if the search result indicates that device information of the target electronic device does not exist, disconnecting the connection between the target electronic device and the hidden AP.

[0014] Optionally, in response to an AP switching request initiated by the target electronic device, migrating the communication link of the target electronic device from the hidden AP to the target AP includes: in response to the AP switching request initiated by the target electronic device, negotiating a target switching duration with the target electronic device; in response to a switching start signal from the target electronic device, starting timing from the receipt of the switching start signal, and migrating the communication link of the target electronic device from the hidden AP to the target AP when the total timing duration reaches the target switching duration.

[0015] According to a second aspect of one or more embodiments of the present application, a method for switching an AP in a vehicle is provided, the method being applied to an electronic device, the method comprising:

[0016] Detecting the AP connection status of the electronic device, and connecting to a hidden AP when detecting that the AP provided by the vehicle cannot be connected, wherein the service set identifier of the hidden AP will not be broadcasted;

[0017] Acquiring network configuration information of a target AP from the vehicle through the hidden AP;

[0018] An AP switching request is sent to the vehicle through the hidden AP, and the current AP configuration information is updated to the network configuration information of the target AP. The AP switching request is used to instruct the vehicle to migrate the communication link of the electronic device from the hidden AP to the target AP.

[0019] Optionally, the method further includes: when it is detected that an original AP provided by the vehicle is connected, obtaining network configuration information of the target AP from the vehicle through the original AP; and connecting to the target AP using the network configuration information of the target AP.

[0020] Optionally, obtaining the network configuration information of the target AP from the vehicle through the hidden AP includes: sending information to be verified to the vehicle through the hidden AP; if the information to be verified passes the verification of the vehicle, receiving the network configuration information from the vehicle through the hidden AP.

[0021] Optionally, sending the information to be verified to the vehicle through the hidden AP includes: obtaining a target random number, and generating a second verification code based on the target random number; encrypting the information to be verified using the second verification code, and sending the obtained encrypted information to the vehicle through the hidden AP, so that the vehicle uses the first verification code to decrypt the encrypted information and verify the decrypted information, wherein the first verification code is generated by the vehicle based on the target random number.

[0022] Optionally, sending an AP switching request to the vehicle through the hidden AP and updating the current AP configuration information to the network configuration information of the target AP includes: sending an AP switching request to the vehicle through the hidden AP to negotiate a target switching duration with the vehicle through the AP switching request; sending a switching start signal to the vehicle through the hidden AP, and starting timing from the sending of the switching start signal, so as to update the current AP configuration information to the network configuration information of the target AP when the total timing duration reaches the target switching duration.

[0023] According to a third aspect of one or more embodiments of the present application, an electronic device is provided, including:

[0024] processor;

[0025] a memory for storing processor-executable instructions;

[0026] The processor implements the method described in any one of the embodiments of the first aspect or the second aspect by running the executable instructions.

[0027] According to a fourth aspect of one or more embodiments of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any embodiment of the first aspect or the second aspect are implemented.

[0028] According to the fifth aspect of one or more embodiments of the present application, a computer program product is provided, comprising a computer program and / or instructions, which, when executed by a processor, implement the steps of the method described in any embodiment of the first or second aspect above.

[0029] It can be seen from the above technical solutions that in one or more embodiments of the present application, the vehicle turns on the hidden AP after switching the original AP to the target AP. The target electronic device that was previously connected to the original AP can first access the hidden AP and establish a temporary connection with the vehicle through the hidden AP to obtain the network configuration information of the target AP from the vehicle through the temporary connection. Then, the target electronic device can initiate an AP switching request to the vehicle and update its current AP configuration information to the network configuration information of the target AP, and the vehicle can migrate the communication link of the target electronic device from the hidden AP to the target AP in response to the received AP switching request, thereby switching the AP connected to the target electronic device to the target AP.

[0030] Since the target electronic device will automatically connect to the hidden AP without user involvement, the above process does not require the user to manually configure the networking information of the target electronic device. The target electronic device can automatically complete the acquisition of the configuration information of the target AP and the network switching. In addition, compared to the method in which the target electronic device first disconnects the hidden AP and then uses the configuration information of the target AP to connect to the target AP, the vehicle directly migrates the communication link of the target electronic device from the hidden AP to the target AP, which not only improves the speed of AP switching, but also allows the user to not feel the interruption of the network connection of the target electronic device, thereby achieving the completion of the AP switching of the target electronic device without the user's perception.

[0031] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0033] Figure 1 It is a schematic diagram of the architecture of a system for switching APs in a vehicle provided by an exemplary embodiment.

[0034] Figure 2 The present invention is a flowchart of a method for switching APs in a vehicle provided by an exemplary embodiment.

[0035] Figure 3 It is a flowchart of another method for switching APs in a vehicle provided by an exemplary embodiment.

[0036] Figure 4 This is a network topology diagram of AP switching provided by an exemplary embodiment.

[0037] Figure 5 An exemplary embodiment provides an interactive flow chart of an electronic device connecting to an original AP.

[0038] Figure 6 An exemplary embodiment provides an interactive flow chart of a vehicle switching AP.

[0039] Figure 7 An exemplary embodiment provides an interactive flow chart of an electronic device switching AP.

[0040] Figure 8 It is a schematic structural diagram of an electronic device provided by an exemplary embodiment.

[0041] Fig. 9 A block diagram of a device for switching APs in a vehicle provided by an exemplary embodiment.

[0042] Fig.10 It is a block diagram of another device for switching APs in a vehicle provided by an exemplary embodiment. DETAILED DESCRIPTION

[0043] Next, one or more embodiments of the present application are described in detail.

[0044] Figure 1 FIG. 1 is a schematic diagram of an architecture of a system for switching APs in a vehicle provided by an exemplary embodiment. Figure 1 As shown, the system for switching APs may include a vehicle 11 and several electronic devices, such as a PC (Personal Computer) 12, mobile phones 13-14, and the like.

[0045] The vehicle 11 can be any vehicle that can provide a Wi-Fi AP. In the actual implementation of the present application, the vehicle 11 can be regarded as a network center. PC12 and mobile phones 13-14 are only some types of electronic devices that users can use. In fact, users can obviously also use electronic devices such as the following types: tablet devices, laptops, PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smart watches, etc.), etc., and one or more embodiments of the present application do not limit this. The vehicle 11 can provide a Wi-Fi AP so that PC12 and mobile phones 13-14 can establish a communication connection with the vehicle 11 through the Wi-Fi AP provided by the vehicle 11 respectively. After the AP provided by the vehicle is switched from the original AP to the target AP, it is necessary to switch electronic devices such as PC12 and mobile phones 13-14 from the original AP to the target AP accordingly to ensure the continuity of the network connection of these electronic devices and the stability of data transmission.

[0046] The following will Figure 1 The vehicle in the system architecture shown in the figure is used as an example to perform the method for switching APs on a vehicle provided in the embodiment of the present application. Figure 2 , Figure 2 A flowchart of a method for switching APs on a vehicle is provided as a flowchart of an exemplary embodiment. The method may include the following steps:

[0047] S201. Acquire network configuration information of a target AP, and switch an original AP to the target AP.

[0048] In this embodiment, the target AP can be understood as the AP after switching / modification, and the original AP can be understood as the AP before switching / modification. The network configuration information of the AP refers to the key parameters required to connect to the wireless network, including but not limited to: Service Set Identifier (SSID), password, security method (including encryption and authentication protocol). Exemplarily, the user can input the network configuration information of the target AP through the human-computer interaction interface of the vehicle. Furthermore, the vehicle can obtain the network configuration information of the target AP based on the user's input, and modify the network configuration information of the original AP to the network configuration information of the target AP, thereby switching the original AP to the target AP.

[0049] In one embodiment, before switching the original AP to the target AP, the vehicle may broadcast the network configuration information of the target AP to the electronic devices that are currently connected to the original AP (hereinafter referred to as "these electronic devices"). After the broadcast, the vehicle switches the original AP to the target AP. These electronic devices can use the received network configuration information to try to connect to the target AP. The specific implementation method of connecting to the target AP can refer to the relevant content of the network device connecting to the AP in the relevant technology, which will not be elaborated here. If any of these electronic devices can connect to the target AP, then any electronic device can directly use the connected target AP to establish a communication connection with the vehicle. Of course, in the process of broadcasting the network configuration information of the target AP, it is possible that the electronic device does not receive the network configuration information or the received network configuration information is wrong due to packet loss of the network configuration information. In this case, the electronic device will not be able to connect to the target AP. Electronic devices that are not connected to the target AP can connect to the target AP through subsequent steps.

[0050] In this embodiment, for electronic devices that are connected to the original AP before switching AP, the network configuration information of the target AP is broadcast to these electronic devices so that these electronic devices can directly connect to the target AP using the received network configuration information, thereby effectively improving the speed at which these electronic devices connect to the target AP and achieving rapid access to the target AP.

[0051] S202: Turn on a hidden AP, and the service set identifier of the hidden AP will not be broadcast.

[0052] A hidden AP refers to an AP that does not broadcast its service set identifier, that is, a hidden AP will not actively broadcast its network name to the surrounding area, so that general electronic devices cannot see the existence of this network when performing network scanning. It should be noted that in this embodiment, the hidden AP is different from the original AP and the target AP. The hidden AP is invisible to the user. When the vehicle switches the original AP to the target AP, it turns on the hidden AP to provide the hidden AP to electronic devices that cannot connect to the target AP.

[0053] S203. When it is determined that the target electronic device has been connected to the hidden AP, the network configuration information of the target AP is sent to the target electronic device through the hidden AP, so that the target electronic device updates the current AP configuration information to the network configuration information of the target AP; the target electronic device includes an electronic device that has been connected to the original AP.

[0054] In this embodiment, the target electronic device can be understood as: an electronic device that has been connected to the original AP, including: an electronic device that is connected to the original AP before the vehicle switches the AP, and an electronic device that has been connected to the original AP before the vehicle switches the AP. After the vehicle switches the AP, the target electronic device may not receive the network configuration information of the target AP or receive incorrect network configuration information due to data packet loss, offline, power failure, etc., which may cause the target electronic device to be unable to connect to the target AP. In this case, the target electronic device can first connect to the hidden AP.

[0055] Exemplarily, the target electronic device can connect to the hidden AP in the following manner: a PIN code can be predefined inside each electronic device. Furthermore, the target electronic device can use the predefined PIN code to initiate a WPS (Wi-Fi Protected Setup) connection request. The hidden AP receives the PIN code sent by the target electronic device and verifies it. If the verification is successful, the hidden AP will accept the connection request of the target electronic device, thereby successfully connecting the target electronic device to the hidden AP. It should be noted that the above-mentioned method of connecting to a hidden AP is only an example. This application does not specifically limit the specific implementation method of connecting to a hidden AP, as long as the connection to the hidden AP is achieved without user participation.

[0056] After the vehicle determines that the target electronic device is connected to the hidden AP, it can establish a communication connection with the target electronic device through the hidden AP. For example, the target electronic device can send a specific signal to the vehicle so that the vehicle determines that the target electronic device is connected to the hidden AP after receiving the specific signal. The communication connection established through the hidden AP is usually more stable. Therefore, the vehicle can send the target AP's network configuration information to the target electronic device through the hidden AP so that the target electronic device can receive complete and accurate target AP's network configuration information.

[0057] In one embodiment, after determining that the target electronic device has been connected to the hidden AP, the vehicle can verify the target electronic device to determine whether the network configuration information of the target AP needs to be sent to the target electronic device based on the verification result. It should be noted that the present application does not specifically limit the method of verifying the target electronic device. Exemplarily, verifying the identity of the target electronic device may include a combination of one or more verification methods shown below:

[0058] 1) Verify the target electronic device using symmetric encryption authentication. The vehicle can generate a shared key and send the shared key to the target electronic device through the original AP when the target electronic device is connected to the original AP. After the vehicle switches AP, the target electronic device can use the shared key to encrypt a specific string, obtain encrypted information, and send the encrypted information to the vehicle through the hidden AP. The vehicle uses the shared key to decrypt the received encrypted information and compares the decrypted information with the specific string it maintains to see if it is the same. If the two are the same, the target electronic device is determined to have passed the verification.

[0059] 2) Use challenge-response authentication to verify the target electronic device. The vehicle, as the challenger, can generate a challenge message and send it to the target electronic device (as the responder). The target electronic device uses the key pre-shared with the vehicle to process the received challenge message, generate a response message, and send the response message to the vehicle. The vehicle uses the same method and shared key to generate an expected response message, and compares the expected response message with the received response message. If the two match, the target electronic device is determined to have passed the verification.

[0060] If the verification result shows that the target electronic device has passed the verification, the vehicle can send the target AP's network configuration information to the target electronic device through the hidden AP. If the verification result shows that the target electronic device has not passed the verification, it means that the target electronic device is an unfamiliar device with an attack risk. In this case, it is necessary to disconnect the connection between the target electronic device and the hidden AP to prevent the hidden AP and vehicle data from being illegally attacked.

[0061] In this embodiment, by verifying the target electronic device, it is possible to effectively avoid sending the network configuration information of the target AP to illegal devices, thereby preventing vehicle data from being attacked by illegal devices and ensuring the data security of the vehicle and the AP it provides.

[0062] In one embodiment, the process of verifying the target electronic device may include the following steps: the vehicle and the target electronic device respectively obtain a target random number, and then the vehicle generates a first verification code based on the target random number, and the target electronic device generates a second verification code based on the target random number. The target random number may be generated by the vehicle and sent to the target electronic device through the original AP when the target electronic device is connected to the original AP. Exemplarily, the generation principle of the first verification code and the second verification code may refer to the following formula (1):

[0063] Verification code = target random number + MD5 (device MAC) × (current timestamp - offline timestamp) (1)

[0064] In formula (1), device MAC refers to the MAC address of the target electronic device; MD5 (device MAC) refers to the hash value of the MAC address of the target electronic device calculated using the MD5 algorithm; the current timestamp refers to the timestamp of the start time of the verification; the offline timestamp refers to the timestamp when the target electronic device is disconnected from the original AP. When the electronic device is connected to the original AP, the vehicle can record and maintain the device information of the electronic device, including the online time, offline time, and MAC address of the device. If the target electronic device is offline because the vehicle switches to the target AP, then the time when the vehicle completes the AP switch can be used as the offline timestamp.

[0065] The target electronic device uses the generated second verification code as a key to encrypt the preset information, generate encrypted information, and send the encrypted information to the vehicle through the hidden AP. The preset information can be defined by the user or the vehicle manufacturer. For example, the preset information can be a specific string. The vehicle uses the first verification code generated by itself to decrypt the received encrypted information to obtain the decrypted information. Then, the vehicle compares the decrypted information with the preset information maintained by itself. If the two are the same, it means that the first verification code and the second verification code are the same, and it can be determined that the target electronic device has passed the verification. If the two are different, it is determined that the target electronic device has not passed the verification.

[0066] Since the MAC address of the target electronic device is the unique identifier of the device, and the target random number is sent by the vehicle to the target electronic device, each electronic device in the above verification method corresponds to a unique verification code. Verifying the target electronic device through this unique verification code can effectively ensure the security, accuracy and reliability of the verification. Of course, other identifiers can also be used to replace the device MAC in formula (1), as long as the other identifier can uniquely identify the electronic device.

[0067] In one embodiment, the vehicle can periodically update the target random number and send the updated target random number to all electronic devices connected to the original AP through the original AP. Specifically, the vehicle can periodically send the updated target random number to the electronic devices connected to the original AP at the data link layer, so that the electronic devices save the latest received target random number and the timestamp of receiving the target random number, and then use the saved target random number to generate a second verification code. This method helps to further improve the randomness of the target random number, thereby improving the security and decryption difficulty of the verification code.

[0068] In one embodiment, first device information is recorded on the vehicle, and the first device information includes device information of electronic devices that have been historically connected to the original AP. In this embodiment, when the electronic device is connected to the original AP, the vehicle can record and maintain the device information of the electronic device, including the online time, offline time, MAC address, device name, device type, etc. of the device. After the vehicle switches to the target AP, the recorded first device information can be transferred and stored in the device area to be connected. When an electronic device successfully connects to the target AP, the vehicle can compare the device information of the electronic device with the first device information recorded in the device area to be connected. If the device information of the electronic device exists in the first device information, the device information of the electronic device is deleted from the device area to be connected. If the device information of the electronic device does not exist in the first device information, it means that the electronic device was not connected to the original AP before switching the AP and is an unfamiliar device. At this time, the connection between the unfamiliar device and the target AP can be disconnected.

[0069] Similarly, after the target electronic device is connected to the hidden AP, the vehicle can search for the device information of the target electronic device in the first device information recorded in the device area to be connected. If it exists, it means that the target electronic device has been connected to the original AP before switching the AP. In this case, the vehicle can obtain the target random number to further verify the target electronic device based on the target random number. If it does not exist, it means that the target electronic device has not been connected to the original AP before switching the AP and is an unfamiliar device. In this case, the connection between the unfamiliar device and the hidden AP can be disconnected to prevent the unfamiliar device from launching an illegal attack on the vehicle through the hidden AP.

[0070] In this embodiment, before the vehicle verifies the target electronic device, the identity of the target electronic device is preliminarily verified using the first device information recorded on the vehicle, which can effectively filter out some unfamiliar devices, thereby reducing the pressure on the vehicle to subsequently use the verification code for verification and significantly improving the verification efficiency.

[0071] S204: In response to the AP switching request initiated by the target electronic device, migrate the communication link of the target electronic device from the hidden AP to the target AP.

[0072] After receiving the network configuration information of the target AP transmitted from the vehicle through the hidden AP, the target electronic device can initiate an AP switching request to the vehicle and update its current AP configuration information to the network configuration information of the target AP, so as to re-access the target AP using the recorded network configuration information of the target AP after going offline. The vehicle can migrate the communication link of the target electronic device from the hidden AP to the target AP in response to the received AP switching request, thereby switching the access point of the target electronic device from the hidden AP to the target AP. This switching method does not require the target electronic device to disconnect the hidden AP first and then connect to the target AP using the configuration information of the target AP, thereby effectively improving the AP switching speed of the target electronic device, and can prevent the user from feeling the interruption of the network connection of the target electronic device, thereby completing the AP switching of the target electronic device without the user's perception.

[0073] In the above embodiment, since the target electronic device will automatically connect to the hidden AP without user participation, the above process does not require the user to manually configure the networking information of the target electronic device. The target electronic device can automatically complete the acquisition of the configuration information of the target AP and the network switching. In addition, compared to the method in which the target electronic device first disconnects the hidden AP and then uses the configuration information of the target AP to connect to the target AP, the vehicle directly migrates the communication link of the target electronic device from the hidden AP to the target AP, which not only improves the speed of AP switching, but also allows the user to not feel the interruption of the network connection of the target electronic device, thereby achieving the completion of the AP switching of the target electronic device without the user's perception.

[0074] In one embodiment, after the vehicle receives the AP switching request initiated by the target electronic device, the target switching duration can be negotiated with the target electronic device through the hidden AP. After the vehicle and the target electronic device have negotiated the target switching duration, the target electronic device can send a switching start signal to the vehicle. The vehicle starts timing with the moment of receiving the switching start signal as the starting point, and when the total timing duration reaches (i.e., is greater than or equal to) the target switching duration, the communication link of the electronic device is migrated from the hidden AP to the target AP. Correspondingly, the target electronic device can start timing with the moment of sending the switching start signal as the starting point, and when the total timing duration reaches the target switching duration, it updates its current AP configuration information to the network configuration information of the target AP. In this way, the vehicle and the target electronic device can perform the corresponding actions of AP switching at the same time, ensuring the smoothness and reliability of the switching process, and avoiding network interruption or data loss during the switching process.

[0075] In addition, the above-mentioned process of synchronous switching between the vehicle and the target electronic device can also be implemented by a countdown method. Exemplarily, after the vehicle and the target electronic device have negotiated the target switching duration, the target electronic device can send a switching start signal to the vehicle. The vehicle uses the moment of receiving the switching start signal as the starting point to start the countdown to the target switching duration, and after the timeout, the communication link of the electronic device is migrated from the hidden AP to the target AP. Correspondingly, the target electronic device can use the moment of sending the switching start signal as the starting point to start the countdown to the target switching duration, and after the timeout, update the current AP configuration information to the network configuration information of the target AP.

[0076] The following will Figure 1 The electronic device in the system architecture shown in the figure is used as an example to perform the method for switching APs on a vehicle provided in the embodiment of the present application. Figure 3 , Figure 3 A flowchart of a method for switching APs on a vehicle is provided as a flowchart of an exemplary embodiment. The method may include the following steps:

[0077] S301, detecting the AP connection status of the electronic device, and connecting to a hidden AP when detecting that the AP provided by the vehicle cannot be connected, wherein the service set identifier of the hidden AP will not be broadcasted.

[0078] First of all, it should be noted that the electronic devices described in this embodiment may include: electronic devices that have been connected to the original AP and electronic devices that have not been connected to the original AP. For electronic devices that have not been connected to the original AP, the method described in this embodiment can be used to directly connect to the target AP provided by the vehicle without the user's perception. For electronic devices that have been connected to the original AP (hereinafter referred to as "target electronic devices"), when the vehicle switches from the original AP to the target AP, the target electronic device may be unable to connect to the original AP, resulting in network disconnection. Therefore, when the target electronic device detects that it cannot connect to the original AP, the target electronic device may connect to the hidden AP provided by the vehicle. For methods of connecting to hidden APs, please refer to Figure 2 The embodiments shown will not be described in detail here.

[0079] In one embodiment, before switching APs, the vehicle can broadcast the network configuration information of the target AP to the electronic device currently connected to the original AP. Therefore, if the electronic device detects that it has been connected to the original AP, it can obtain the network configuration information of the target AP broadcast by the vehicle through the original AP. Then, the electronic device can directly use the obtained network configuration information of the target AP to try to connect to the target AP. This method can effectively improve the speed at which the electronic device connects to the target AP and achieve rapid access to the target AP.

[0080] S302: Acquire network configuration information of a target AP from the vehicle through the hidden AP.

[0081] In one embodiment, after the electronic device is connected to the hidden AP, the vehicle will verify the identity of the electronic device. If the verification passes, the electronic device can obtain the network configuration information of the target AP from the vehicle. Exemplarily, the electronic device can send information to be verified to the vehicle through the hidden AP. The information to be verified can be specific information used for verification, such as a specific string preset by the vehicle manufacturer or user. The information to be verified can also be encrypted information obtained by encrypting the aforementioned specific information. This application does not limit the specific implementation method of the information to be verified. If the information to be verified passes the verification of the vehicle, the electronic device can receive the network configuration information from the vehicle through the hidden AP.

[0082] It should be noted that the present application does not specifically limit the method of verifying the electronic device. Exemplarily, verifying the identity of the electronic device may include a combination of one or more verification methods shown below:

[0083] 1) Verify electronic devices using symmetric encryption authentication. 2) Verify electronic devices using challenge-response authentication. The specific implementation methods of these two verification methods can be found in Figure 2 The relevant contents of the illustrated embodiment will not be repeated here.

[0084] If the verification result shows that the electronic device has passed the verification, the vehicle can send the target AP's network configuration information to the electronic device through the hidden AP. If the verification result shows that the electronic device has not passed the verification, it means that the electronic device is an unfamiliar device with an attack risk. In this case, it is necessary to disconnect the connection between the electronic device and the hidden AP to prevent the hidden AP and vehicle data from being illegally attacked.

[0085] In this embodiment, by verifying the electronic device, it is possible to effectively avoid sending the target AP's network configuration information to illegal devices, thereby preventing vehicle data from being attacked by illegal devices and ensuring the data security of the vehicle and the AP it provides.

[0086] In one embodiment, the electronic device can obtain a target random number and generate a second verification code based on the target random number. The target random number can be generated by the vehicle and sent to the electronic device through the original AP when the electronic device is connected to the original AP. Exemplarily, the generation principle of the second verification code can refer to the aforementioned formula (1). Then, the electronic device can use the generated second verification code to encrypt the information to be verified, and send the obtained encrypted information to the vehicle through the hidden AP. The vehicle can use the first verification code generated based on the target random number to decrypt the encrypted information. Exemplarily, the generation principle of the first verification code can refer to the aforementioned formula (1). The vehicle can compare the decrypted information with the preset information maintained by itself. If the two are the same, it is determined that the electronic device has passed the verification; if the two are not the same, it is determined that the electronic device has not passed the verification, there is a risk of attack, and it is necessary to disconnect it from the hidden AP.

[0087] Since the first / second verification code is generated based on the target random number and the MAC address of the electronic device, and the MAC address of the electronic device is the unique identifier of the device, and the target random number is sent by the vehicle to the electronic device, the above verification method can effectively ensure that each device corresponds to a unique verification code, and then the electronic device is verified by the unique verification code to ensure the security, accuracy and reliability of the verification. Of course, other identifiers can also be used to replace the device MAC in formula (1), as long as the other identifier can uniquely identify the device.

[0088] S303, sending an AP switching request to the vehicle through the hidden AP, and updating the current AP configuration information to the network configuration information of the target AP, wherein the AP switching request is used to instruct the vehicle to migrate the communication link of the electronic device from the hidden AP to the target AP.

[0089] After receiving the network configuration information of the target AP sent by the vehicle, the electronic device can send an AP switching request to the vehicle through the hidden AP, and update its current AP configuration information to the network configuration information of the target AP, so that it can re-access the target AP using the recorded network configuration information of the target AP after going offline. The AP switching request is used to instruct the vehicle to migrate the communication link of the electronic device from the hidden AP to the target AP, so as to switch the access point of the electronic device from the hidden AP to the target AP. This switching method does not require the electronic device to disconnect the hidden AP first and then connect to the target AP using the configuration information of the target AP, so it can effectively improve the AP switching speed of the electronic device, and can prevent the user from feeling the interruption of the network connection of the electronic device, thereby completing the AP switching of the electronic device without the user's perception.

[0090] In one embodiment, the electronic device can negotiate the target switching duration with the vehicle through an AP switching request, thereby achieving synchronous switching. Exemplarily, the electronic device sends an AP switching request to the vehicle through a hidden AP, and the AP switching request carries information about the target switching duration. The vehicle receives and parses the AP switching request to obtain the target switching duration. If the vehicle agrees to the target switching duration, it can return an agreement signal to the electronic device through the hidden AP. If the vehicle disagrees with the target switching duration, it can renegotiate a target switching duration with the electronic device through the hidden AP until both parties reach a consensus. After the negotiation is completed, the target electronic device can send a switching start signal to the vehicle. The vehicle starts timing with the moment of receiving the switching start signal as the starting point, and when the total timing duration reaches (i.e., greater than or equal to) the target switching duration, the communication link of the electronic device is migrated from the hidden AP to the target AP. Correspondingly, the electronic device can start timing with the moment of sending the switching start signal as the starting point, and when the total timing duration reaches the target switching duration, update its current AP configuration information to the network configuration information of the target AP. In this way, the vehicle and the electronic device can perform the corresponding actions of AP switching at the same time, ensuring the smoothness and reliability of the switching process and avoiding network interruption or data loss during the switching process.

[0091] In addition, the above-mentioned process of synchronous switching between the vehicle and the electronic device can also be implemented by a countdown method. Exemplarily, after the vehicle and the electronic device have negotiated the target switching duration, the electronic device can send a switching start signal to the vehicle. The vehicle uses the moment of receiving the switching start signal as the starting point to start the countdown to the target switching duration, and after the timeout, the communication link of the electronic device is migrated from the hidden AP to the target AP. Correspondingly, the electronic device can use the moment of sending the switching start signal as the starting point to start the countdown to the target switching duration, and after the timeout, update the current AP configuration information to the network configuration information of the target AP.

[0092] Figure 3 The embodiment shown describes the specific implementation process of the present application scheme from the perspective of electronic equipment. Figure 2 Corresponding to the technical solution based on the vehicle perspective in the illustrated embodiment, the solution of the present application realizes a complete interaction process by cooperating with the electronic device and the vehicle. Figure 2 All descriptions related to the electronic device in the process of obtaining the target random number, verifying the electronic device, etc. in the embodiment shown are also applicable to Figure 3 The illustrated embodiments will not be described in detail here.

[0093] Figure 4 FIG. 1 is a network topology diagram of AP switching according to an embodiment of the present application. Figure 4As shown, the vehicle can provide an original AP and a hidden AP. Usually, the vehicle will turn on the original AP to enable various electronic devices (such as Figure 4 Electronic devices A, B, C) in the vehicle connect to the original AP to achieve networking. When the vehicle switches the original AP to the target AP, the vehicle will turn on the hidden AP. Assuming that after the vehicle switches AP, electronic devices A, B, and C cannot connect to the target AP, then these three electronic devices can first connect to the hidden AP, and then establish a temporary connection with the vehicle through the hidden AP, and obtain the network configuration information of the target AP from the vehicle through the temporary connection. In this way, it is possible to switch the AP connected to electronic devices A, B, and C to the target AP.

[0094] Figure 5 is an interactive flow chart of an electronic device connecting to an original AP according to an embodiment of the present application, and the interactive process involves the electronic device and the vehicle. Figure 5 , the interaction process may include the following steps:

[0095] S501: The vehicle starts the original AP and broadcasts the SSID of the original AP.

[0096] S502: The electronic device connects to the original AP.

[0097] The specific method of connecting to the original AP can refer to the process of connecting a network device to an AP in the related art, which will not be described in detail here.

[0098] S503: The vehicle records and maintains device information of the electronic device.

[0099] After the vehicle determines that the electronic device is connected to the original AP, it records and maintains the device information of the electronic device, including but not limited to: device name, device type, device MAC address, device online time, and device offline time.

[0100] S504: The vehicle periodically sends a random number to the electronic device through the original AP.

[0101] When the electronic device maintains the connection with the original AP, the vehicle can periodically generate a random number and send the random number to the electronic device through the original AP. That is, the vehicle can periodically send the random number to the electronic device through the original AP. The random number can be used to verify the identity of the electronic device in the subsequent AP switching process.

[0102] S505: The electronic device updates and saves the random number.

[0103] After receiving the random number sent by the vehicle, the electronic device can update the random number stored in itself to the latest received random number, thereby periodically updating the random number stored locally. In addition, the electronic device can also update and save the timestamp corresponding to the random number, which is used to represent the time when the electronic device receives the random number.

[0104] Figure 6 This is an interactive flow chart of a vehicle switching AP according to an embodiment of the present application. The interactive process involves an electronic device and a vehicle. It should be noted that the electronic device described in this embodiment is an electronic device that is connected to the original AP before the vehicle switches AP. Figure 6 , the interaction process may include the following steps:

[0105] S601. The vehicle obtains network configuration information of a target AP.

[0106] Exemplarily, the user may input the network configuration information of the target AP through a human-computer interaction interface on the vehicle, so that the vehicle receives the network configuration information of the target AP.

[0107] S602: The vehicle broadcasts the network configuration information of the target AP to the electronic devices currently connected to the original AP.

[0108] S603: The vehicle records the broadcast end time as the offline time of the electronic device currently connected to the original AP, and transfers the recorded first device information to the device area to be connected.

[0109] After broadcasting the network configuration information of the target AP, the vehicle records the broadcast end time as the offline time of the electronic device currently connected to the original AP, and transfers the recorded first device information to the device area to be connected.

[0110] S604: The vehicle switches the original AP to the target AP and turns on the hidden AP.

[0111] Since the broadcast end time is very close to the AP switching completion time, using the broadcast end time as the offline time of the electronic device currently connected to the original AP is equivalent to using the AP switching completion time as the offline time of the electronic device currently connected to the original AP.

[0112] S605: The electronic device attempts to connect to the target AP using the received network configuration information of the target AP.

[0113] S606: The vehicle deletes the device information of the electronic device that has been connected to the target AP in the device area to be connected.

[0114] When the vehicle detects that any electronic device has been connected to the target AP, it can query whether the device information of the electronic device exists in the first device information stored in the device area to be connected. If it exists, the device information of the electronic device is deleted from the device area to be connected to indicate that the electronic device has been connected to the target AP. If it does not exist, it means that the electronic device is a strange device that has not been connected to the original AP before, there is a risk of attack, and it needs to be disconnected from the target AP.

[0115] Figure 7 is an interactive flow chart of an electronic device switching AP according to an embodiment of the present application, and the interactive process involves the electronic device and the vehicle. Figure 7 , the interaction process may include the following steps:

[0116] S701. The vehicle turns on the target AP and the hidden AP.

[0117] S702: The electronic device detects that it cannot connect to the original AP, and connects to the hidden AP.

[0118] S703: The vehicle queries whether there is device information of an electronic device in the device area to be connected.

[0119] For any electronic device connected to the hidden AP, the vehicle can query whether the device information of the electronic device exists in the device area to be connected. If it exists, S704 is executed; if not, it means that the electronic device is a strange device that has not been connected to the original AP before, there is an attack risk, and it needs to be disconnected from the hidden AP.

[0120] S704: The vehicle sends a verification instruction to the electronic device.

[0121] S705: The vehicle generates a first verification code.

[0122] The vehicle can obtain the MAC address and the most recent offline time of the electronic device from the device area to be connected, and at the same time obtain the target random number maintained by itself, and then use the MAC address, the most recent offline time and the target random number of the electronic device to generate a first verification code.

[0123] S706: The electronic device generates a second verification code and obtains encrypted information.

[0124] In response to the verification instruction, the electronic device generates a second verification code using the target random number, MAC address and the most recent offline time maintained by itself. Then, the electronic device encrypts the preset information using the generated second verification code to obtain encrypted information.

[0125] It should be noted that the present application does not specifically limit the execution order of steps S705 and S706.

[0126] S707. The electronic device sends encrypted information to the vehicle.

[0127] S708: The vehicle verifies the encrypted information and obtains a verification result.

[0128] The vehicle decrypts the encrypted information using the first verification code, and compares the decrypted information with the preset information maintained by the vehicle. If the two are the same, the verification result is passed, and S710 is executed. If the two are not the same, the verification result is failed, in which case the electronic device needs to be disconnected from the hidden AP.

[0129] S709: The vehicle sends the network configuration information of the target AP to the electronic device through the hidden AP.

[0130] S710: The electronic device sends an AP switching request to the vehicle.

[0131] After receiving the network configuration information of the target AP, the electronic device sends an AP switching request to the vehicle through the hidden AP, and the request carries the target switching duration.

[0132] S711. The vehicle returns a consent signal to the electronic device.

[0133] The vehicle parses the received AP switching request to obtain the target switching duration. The vehicle agrees to the target switching duration and can return an agreement signal to the electronic device through the hidden AP, where the agreement signal is used to indicate that the vehicle agrees to the target switching duration proposed by the electronic device.

[0134] S712: The electronic device sends a switching start signal to the vehicle via the hidden AP.

[0135] S713: The electronic device updates the current AP configuration information to the network configuration information of the target AP.

[0136] The electronic device starts timing from sending the switching start signal, and when the total timing duration reaches the target switching duration, the current AP configuration information is updated to the network configuration information of the target AP.

[0137] S714: The vehicle migrates the communication link of the electronic device from the hidden AP to the target AP.

[0138] The vehicle starts timing from when it receives the switching start signal, and when the total timing duration reaches the target switching duration, the communication link of the electronic device is migrated from the hidden AP to the target AP.

[0139] S715. The electronic device sends a switching success signal to the vehicle through the target AP.

[0140] If the electronic device confirms that it has successfully connected to the target AP, then a switching success signal may be sent to the vehicle through the target AP. If the electronic device confirms that it has failed to connect to the target AP, then S702 to S714 may be repeated.

[0141] S716. In response to the switching success signal, the vehicle deletes the device information of the electronic device that sends the switching success signal from the device area to be connected.

[0142] Through the above method, the electronic device can automatically complete the acquisition of the configuration information of the target AP and the network switching without the user's awareness.

[0143] Figure 8 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. Figure 8 At the hardware level, the electronic device includes a processor 802, an internal bus 804, a network interface 806, a memory 808, and a non-volatile memory 810, and may also include hardware required for other services. The processor 802 reads the corresponding computer program from the non-volatile memory 810 into the memory 808 and then runs it. Of course, in addition to the software implementation, this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0144] Corresponding to the above method embodiment, the present application also provides an embodiment of a device for switching APs on a vehicle.

[0145] Fig. 9 1 is a block diagram of a device for switching APs on a vehicle according to an exemplary embodiment of the present application. The device can be applied to a vehicle. Fig. 9 The device includes: a switching unit 901, an opening unit 902, a sending unit 903 and a migration unit 904. Among them:

[0146] The switching unit 901 is configured to obtain network configuration information of a target AP and switch an original AP to the target AP;

[0147] An enabling unit 902 is configured to enable a hidden AP, and a service set identifier of the hidden AP will not be broadcasted;

[0148] The sending unit 903 is configured to send the network configuration information of the target AP to the target electronic device through the hidden AP when it is determined that the target electronic device has been connected to the hidden AP, so that the target electronic device updates the current AP configuration information to the network configuration information of the target AP; the target electronic device includes an electronic device that has been connected to the original AP;

[0149] The migration unit 904 is configured to migrate the communication link of the target electronic device from the hidden AP to the target AP in response to the AP switching request initiated by the target electronic device.

[0150] Optionally, the device further comprises:

[0151] The broadcast unit 905 is configured to broadcast the network configuration information of the target AP to the electronic devices currently connected to the original AP before switching the original AP to the target AP, so that the electronic devices currently connected to the original AP can connect to the target AP using the received network configuration information.

[0152] Optionally, the sending unit 903 is specifically used to: when it is determined that the target electronic device is connected to the hidden AP, verify the target electronic device; when the target electronic device passes the verification, send the network configuration information of the target AP to the target electronic device through the hidden AP; when the target electronic device fails the verification, disconnect the connection between the target electronic device and the hidden AP.

[0153] Optionally, the verifying the target electronic device includes: obtaining a target random number and generating a first verification code based on the target random number; using the first verification code to decrypt encrypted information from the target electronic device to obtain decrypted information, the encrypted information being encrypted by the target electronic device using a second verification code, the second verification code being generated by the target electronic device based on the target random number; and determining that the target electronic device has passed the verification when the decrypted information is the same as preset information.

[0154] Optionally, the device further comprises:

[0155] The updating unit 906 is configured to periodically update the target random number and send the updated target random number to the electronic device connected to the original AP through the original AP.

[0156] Optionally, the device further comprises:

[0157] The query unit 907 is configured to search whether the device information of the target electronic device exists in the first device information recorded by the vehicle, the first device information including the device information of the electronic device historically connected to the original AP; if the search result shows that the device information of the target electronic device exists, obtain the target random number; if the search result shows that the device information of the target electronic device does not exist, disconnect the connection between the target electronic device and the hidden AP.

[0158] Optionally, the migration unit 904 is specifically used to: in response to an AP switching request initiated by the target electronic device, negotiate a target switching duration with the target electronic device; in response to a switching start signal from the target electronic device, start timing from the receipt of the switching start signal, and when the total timing duration reaches the target switching duration, migrate the communication link of the target electronic device from the hidden AP to the target AP.

[0159] Fig.10 1 is a block diagram of a device for switching APs on a vehicle according to an exemplary embodiment of the present application. The device can be applied to electronic devices. Fig.10 The device comprises: a detection unit 1001, an acquisition unit 1002 and an update unit 1003. Among them:

[0160] The detection unit 1001 is configured to detect the AP connection status of the electronic device, and connect to a hidden AP when it is detected that the AP provided by the vehicle cannot be connected, and the service set identifier of the hidden AP will not be broadcasted;

[0161] An acquisition unit 1002 is configured to acquire network configuration information of a target AP from the vehicle through the hidden AP;

[0162] The updating unit 1003 is configured to send an AP switching request to the vehicle through the hidden AP and update the current AP configuration information to the network configuration information of the target AP. The AP switching request is used to instruct the vehicle to migrate the communication link of the electronic device from the hidden AP to the target AP.

[0163] Optionally, the device further comprises:

[0164] The connection unit 1004 is configured to obtain the network configuration information of the target AP from the vehicle through the original AP when detecting that the original AP provided by the vehicle is connected; and connect to the target AP using the network configuration information of the target AP.

[0165] Optionally, the acquisition unit 1002 is specifically used to: send the information to be verified to the vehicle through the hidden AP; if the information to be verified passes the verification of the vehicle, receive the network configuration information from the vehicle through the hidden AP.

[0166] Optionally, sending the information to be verified to the vehicle through the hidden AP includes: obtaining a target random number, and generating a second verification code based on the target random number; encrypting the information to be verified using the second verification code, and sending the obtained encrypted information to the vehicle through the hidden AP, so that the vehicle uses the first verification code to decrypt the encrypted information and verify the decrypted information, wherein the first verification code is generated by the vehicle based on the target random number.

[0167] Optionally, the update unit 1003 is specifically used to: send an AP switching request to the vehicle through the hidden AP to negotiate a target switching duration with the vehicle through the AP switching request; send a switching start signal to the vehicle through the hidden AP, and start timing from the sending of the switching start signal, so that when the total timing duration reaches the target switching duration, the current AP configuration information is updated to the network configuration information of the target AP.

[0168] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0169] The devices or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0170] In a typical configuration, a computer includes one or more processors, including a central processing unit (CPU) and a graphics processing unit (GPU), an input / output interface, a network interface, and a memory. The CPU is used for computing simulations, and the GPU is used for outputting high-quality 3D images.

[0171] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0172] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0173] Corresponding to the embodiments of the aforementioned method, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any embodiment of the aforementioned method are implemented.

[0174] Corresponding to the embodiments of the aforementioned method, the present application also provides a computer program product, including a computer program and / or instructions, which implement the steps of any embodiment of the aforementioned method when executed by a processor.

[0175] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for switching APs on a vehicle, characterized in that: The method is applied to a vehicle, and the method comprises: Obtaining network configuration information of a target AP, and switching the original AP to the target AP; Enable a hidden AP, and the service set identifier of the hidden AP will not be broadcast; In the case of determining that the target electronic device has been connected to the hidden AP, sending the network configuration information of the target AP to the target electronic device through the hidden AP, so that the target electronic device updates the current AP configuration information to the network configuration information of the target AP; the target electronic device includes an electronic device that has been connected to the original AP; In response to the AP switching request initiated by the target electronic device, the communication link of the target electronic device is migrated from the hidden AP to the target AP.

2. The method according to claim 1, characterized in that Before switching the original AP to the target AP, the method further includes: The network configuration information of the target AP is broadcasted to the electronic device currently connected to the original AP, so that the electronic device currently connected to the original AP connects to the target AP using the received network configuration information.

3. The method according to claim 1, characterized in that: The sending the network configuration information of the target AP to the target electronic device through the hidden AP includes: In the case of determining that the target electronic device has been connected to the hidden AP, verifying the target electronic device; When the target electronic device passes the verification, sending the network configuration information of the target AP to the target electronic device through the hidden AP; If the target electronic device fails the verification, the connection between the target electronic device and the hidden AP is disconnected.

4. The method according to claim 3, characterized in that The verifying the target electronic device includes: Obtaining a target random number, and generating a first verification code according to the target random number; Decrypting the encrypted information from the target electronic device using the first verification code to obtain decrypted information, the encrypted information being encrypted by the target electronic device using a second verification code, the second verification code being generated by the target electronic device based on the target random number; When the decrypted information is identical to the preset information, it is determined that the target electronic device has passed the verification.

5. The method according to claim 4, characterized in that Also includes: The target random number is updated periodically, and the updated target random number is sent to the electronic device connected to the original AP through the original AP.

6. The method according to claim 4, characterized in that Also includes: Searching whether there is device information of the target electronic device in first device information recorded by the vehicle, wherein the first device information includes device information of electronic devices that were historically connected to the original AP; If the search result shows that the device information of the target electronic device exists, obtaining the target random number; If the search result indicates that the device information of the target electronic device does not exist, the connection between the target electronic device and the hidden AP is disconnected.

7. The method according to claim 1, characterized in that The step of migrating the communication link of the target electronic device from the hidden AP to the target AP in response to the AP switching request initiated by the target electronic device comprises: In response to the AP switching request initiated by the target electronic device, negotiate a target switching duration with the target electronic device; In response to a switching start signal from the target electronic device, timing starts from receiving the switching start signal, and when the total timing reaches the target switching duration, the communication link of the target electronic device is migrated from the hidden AP to the target AP.

8. A method for switching APs on a vehicle, characterized in that: The method is applied to an electronic device, and the method comprises: Detecting the AP connection status of the electronic device, and connecting to a hidden AP when detecting that the AP provided by the vehicle cannot be connected, wherein the service set identifier of the hidden AP will not be broadcasted; Acquiring network configuration information of a target AP from the vehicle through the hidden AP; An AP switching request is sent to the vehicle through the hidden AP, and the current AP configuration information is updated to the network configuration information of the target AP. The AP switching request is used to instruct the vehicle to migrate the communication link of the electronic device from the hidden AP to the target AP.

9. The method according to claim 8, characterized in that Also includes: When it is detected that the original AP provided by the vehicle is connected, obtaining the network configuration information of the target AP from the vehicle through the original AP; The target AP is connected using the network configuration information of the target AP.

10. The method according to claim 8, characterized in that The obtaining the network configuration information of the target AP from the vehicle through the hidden AP includes: Sending the information to be verified to the vehicle through the hidden AP; If the information to be verified passes the verification of the vehicle, the network configuration information from the vehicle is received through the hidden AP.

11. The method according to claim 10, characterized in that The sending the information to be verified to the vehicle through the hidden AP includes: Obtaining a target random number, and generating a second verification code according to the target random number; The second verification code is used to encrypt the information to be verified, and the obtained encrypted information is sent to the vehicle through the hidden AP, so that the vehicle uses the first verification code to decrypt the encrypted information and verify the decrypted information, wherein the first verification code is generated by the vehicle based on the target random number.

12. The method according to claim 8, characterized in that The sending of the AP switching request to the vehicle through the hidden AP and updating the current AP configuration information to the network configuration information of the target AP includes: Sending an AP switching request to the vehicle through the hidden AP, so as to negotiate a target switching duration with the vehicle through the AP switching request; A switching start signal is sent to the vehicle through the hidden AP, and timing is started from the sending of the switching start signal, so that when the total timing duration reaches the target switching duration, the current AP configuration information is updated to the network configuration information of the target AP.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 12 by running the executable instructions.

14. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer program product, characterized in that The method comprises a computer program and / or instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Wireless network connection method and wireless network connection device

    CN106255106A

  • AP configuration modification method for achieving automatic connection and synchronization between AP and STA

    CN107135529A

  • Network configuration information synchronization method and device and computer equipment

    CN112566220A

  • Configuration information processing method and device, storage medium and electronic equipment

    CN114189859A

  • Method for changing the value of one or more privacy parameters of stations within a basic service set

    GB202209177D0