A method, apparatus, storage medium, and program product for switching access points (APs) on a vehicle.

By activating a hidden access point (AP) in the vehicle, the target electronic device automatically obtains and updates its network configuration information, solving the problem of manual configuration by the user and achieving fast and seamless AP switching.

CN119854894BActive Publication Date: 2025-10-31ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When a user changes the information of the vehicle's Wi-Fi AP, connected devices disconnect due to incorrect AP information, requiring the user to manually reconfigure, which is a cumbersome process.

Method used

When the vehicle activates the hidden AP, the target electronic device first connects to the hidden AP to obtain the network configuration information of the target AP, and then establishes a temporary connection with the vehicle through the hidden AP, automatically updating the AP configuration information. The vehicle responds to the AP switching request and migrates the communication link to the target AP.

Benefits of technology

It achieves AP switching speed without requiring manual configuration by the user, avoids network interruption, and provides an AP switching process that is imperceptible to the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854894B_ABST
    Figure CN119854894B_ABST
Patent Text Reader

Abstract

This application discloses a method, device, storage medium, and program product for switching access points (APs) in a vehicle. The method, applied to a vehicle, may include: obtaining network configuration information of a target AP and switching the original AP to the target AP; activating a hidden AP, wherein the service set identifier of the hidden AP is not broadcast; if it is determined that a target electronic device is already 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 its current AP configuration information to the network configuration information of the target AP; the target electronic device includes electronic devices that have previously connected to the original AP; and 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. According to the technical solution of this application, the AP connected to an electronic device can be automatically switched without the user's awareness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This 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 Technology

[0002] With the development of vehicle-to-everything (V2X) technology, vehicles can provide in-vehicle Wi-Fi access points (APs), allowing other electronic devices in the vehicle to access the internet via the AP. Users can change the SSID (Service Set Identifier), password, security method, and other information of the vehicle's Wi-Fi APs, thus switching from one AP to another. However, if any electronic devices are already connected to the previous AP when the user changes the AP information, all devices will lose their Wi-Fi connection due to the incorrect AP information. In this case, the user needs to manually reconfigure each device, which is cumbersome. Summary of the Invention

[0003] This application provides a method, device, storage medium, and program product for switching access points (APs) on a vehicle to address the shortcomings of related technologies.

[0004] According to a first aspect of one or more embodiments of this application, a method for switching access points (APs) in a vehicle is provided, the method being applied to the vehicle, comprising:

[0005] Obtain the network configuration information of the target AP, and switch the original AP to the target AP;

[0006] When a hidden AP is enabled, the service set identifier of the hidden AP will not be broadcast.

[0007] If 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 its current AP configuration information to the network configuration information of the target AP; the target electronic device includes electronic devices that have been connected to the original AP;

[0008] In response to an 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 the 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 can 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 if 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 if the target electronic device passes the verification; and disconnecting the connection between the target electronic device and the hidden AP if the target electronic device fails the verification.

[0011] Optionally, the verification of the target electronic device includes: obtaining a target random number and generating a first verification code based on the target random number; decrypting the encrypted information from the target electronic device using the first verification code to obtain decrypted information, wherein the encrypted information is obtained by the target electronic device using a second verification code, and the second verification code is generated by the target electronic device based on the target random number; and determining that the target electronic device passes the verification if the decrypted information is the same as preset information.

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

[0013] Optionally, the method further includes: searching for the existence of device information for the target electronic device 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 for the target electronic device exists, obtaining the target random number; if the search result indicates that device information for the target electronic device does not exist, disconnecting the connection between the target electronic device and the hidden AP.

[0014] Optionally, 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 handover request initiated by the target electronic device includes: negotiating a target handover duration with the target electronic device in response to the AP handover request initiated by the target electronic device; and, in response to a handover start signal from the target electronic device, starting a timer from the moment the handover start signal is received, and migrating the communication link of the target electronic device from the hidden AP to the target AP when the total timer duration reaches the target handover duration.

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

[0016] The AP connection status of the electronic device is detected, and if it is detected that it cannot connect to the AP provided by the vehicle, it connects to a hidden AP. The service set identifier of the hidden AP will not be broadcast.

[0017] The network configuration information of the target AP is obtained from the vehicle through the hidden AP;

[0018] The hidden AP sends an AP switching request to the vehicle and updates 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.

[0019] Optionally, it further includes: if an original AP provided by the vehicle is detected to be connected, obtaining the 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 verification information to the vehicle through the hidden AP; if the verification information passes the vehicle's verification, then 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 encrypted information to the vehicle through the hidden AP, so that the vehicle can decrypt the encrypted information using a first verification code and verify the decrypted information, wherein the first verification code is generated by the vehicle based on the target random number.

[0022] Optionally, the step of sending an AP handover 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 handover request to the vehicle through the hidden AP to negotiate a target handover duration with the vehicle through the AP handover request; sending a handover start signal to the vehicle through the hidden AP, and starting a timer from sending the handover start signal, so that when the total timer duration reaches the target handover duration, the current AP configuration information is updated to the network configuration information of the target AP.

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

[0024] processor;

[0025] Memory used to store processor-executable instructions;

[0026] The processor executes the executable instructions to implement the method as described in any of the embodiments of the first or second aspect above.

[0027] According to a fourth aspect of one or more embodiments of this application, a computer-readable storage medium is provided having computer instructions stored thereon that, when executed by a processor, implement the steps of the method as described in any of the embodiments of the first or second aspect above.

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

[0029] As can be seen from the above technical solutions, in one or more embodiments of this application, after the vehicle switches the original AP to the target AP, it activates the hidden AP. The target electronic device, which 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. 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. The vehicle, in response to the received AP switching request, can migrate the communication link of the target electronic device from the hidden AP to the target AP, thereby switching the AP connected to the target electronic device to the target AP.

[0030] Since the target electronic device automatically connects to the hidden AP without user intervention, the above process does not require manual configuration of the target electronic device's network information. The target electronic device can automatically acquire the target AP's configuration information and switch networks. Furthermore, compared to the method where the target electronic device first disconnects from the hidden AP and then uses the target AP's configuration information to connect to the target AP, the vehicle directly migrates the target electronic device's communication link from the hidden AP to the target AP. This not only improves the speed of AP switching but also ensures that the user is unaware of any network interruption, thus achieving AP switching of the target electronic device without the user's awareness.

[0031] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

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

[0033] Figure 1 This is a schematic diagram of the architecture of a system for switching APs on a vehicle, provided as an exemplary embodiment.

[0034] Figure 2 This is a flowchart illustrating a method for switching APs on a vehicle, provided in an exemplary embodiment.

[0035] Figure 3 This is a flowchart illustrating another method for switching APs on a vehicle, provided in an exemplary embodiment.

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

[0037] Figure 5 This is an exemplary embodiment of an interaction flowchart for connecting an electronic device to a native access point (AP).

[0038] Figure 6 This is an exemplary embodiment of the interactive flowchart for switching APs in a vehicle.

[0039] Figure 7 This is an exemplary embodiment of an interactive flowchart of an electronic device switching access points (APs).

[0040] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an exemplary embodiment.

[0041] Figure 9 This is a block diagram of an apparatus for switching APs on a vehicle, provided in an exemplary embodiment.

[0042] Figure 10 This is a block diagram of another device for switching AP on a vehicle, provided in an exemplary embodiment. Detailed Implementation

[0043] The following describes one or more embodiments of this application in detail.

[0044] Figure 1 This is a schematic diagram of the architecture of a system for switching access points (APs) on a vehicle, provided as 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, etc.

[0045] Vehicle 11 can be any vehicle capable of providing a Wi-Fi AP. In the actual implementation of this application, vehicle 11 can be regarded as a network center. PC 12 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 tablets, laptops, PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smartwatches, etc.), etc., and one or more embodiments of this application do not limit this. Vehicle 11 can provide a Wi-Fi AP so that PC 12 and mobile phones 13-14 can establish communication connections with vehicle 11 through the Wi-Fi AP provided by vehicle 11. When the AP provided by the vehicle switches from the original AP to the target AP, it is correspondingly necessary to switch the electronic devices such as PC 12 and mobile phones 13-14 from the original AP to the target AP to ensure the continuity of network connections and the stability of data transmission for these electronic devices.

[0046] The following will be based on Figure 1 The method for switching APs on a vehicle, as provided in this application embodiment, is illustrated using a vehicle within the system architecture shown. Please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a flowchart illustrating a method for switching access points (APs) on a vehicle, provided as an exemplary embodiment. The method may include the following steps:

[0047] S201. Obtain the network configuration information of the target AP and switch the 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 AP's network configuration information refers to the key parameters required to connect to the wireless network, including but not limited to: Service Set Identifier (SSID), password, and security methods (including encryption and authentication protocols). For example, the user can input the target AP's network configuration information through the vehicle's human-machine interface. Then, the vehicle can obtain the target AP's network configuration information based on the user's input and modify the original AP's network configuration information to match the target AP's network configuration information, thereby switching the original AP to the target AP.

[0049] In one embodiment, before switching the original AP to the target AP, the vehicle can broadcast the target AP's network configuration information to the electronic devices 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 then use the received network configuration information to attempt to connect to the target AP. The specific implementation of connecting to the target AP can be found in related works on network device AP connections, and will not be detailed here. If any of these electronic devices can connect to the target AP, it can directly establish a communication connection with the vehicle using the connected target AP. However, during the broadcast of the target AP's network configuration information, packet loss may occur, resulting in the electronic devices not receiving the network configuration information or receiving incorrect network configuration information. In such cases, the electronic devices will be unable to connect to the target AP. Electronic devices that have not connected to the target AP can connect through subsequent steps.

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

[0051] S202. Enable the hidden AP. 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. In other words, a hidden AP does not actively broadcast its network name, making it invisible to general electronic devices performing network scans. It should be noted that in this embodiment, the hidden AP is different from both the original AP and the target AP. The hidden AP is invisible to the user. When the vehicle switches from the original AP to the target AP, it activates the hidden AP, making it available to electronic devices that cannot connect to the target AP.

[0053] S203. If 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 its current AP configuration information to the network configuration information of the target AP; the target electronic device includes electronic devices that have 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 currently connected to the original AP before the vehicle switches APs, and an electronic device that was previously connected to the original AP before the vehicle switches APs. After the vehicle switches APs, the target electronic device may fail to receive the network configuration information of the target AP or receive incorrect network configuration information due to data packet loss, offline status, 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] For example, a target electronic device can connect to a hidden access point (AP) in the following way: a PIN code can be predefined within each electronic device. The target electronic device can then use this 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 from the target electronic device, thus successfully connecting the target electronic device to the hidden AP. It should be noted that the above method of connecting to a hidden AP is merely an example, and this application does not specifically limit the specific implementation method of connecting to a hidden AP, as long as it achieves the connection without user intervention.

[0056] Once a vehicle determines that a target electronic device is connected to a hidden access point (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, allowing the vehicle to determine that the target electronic device is connected to the hidden AP upon receiving the signal. Communication connections established through a hidden AP are typically quite stable; therefore, the vehicle can use the hidden AP to send the target electronic device's network configuration information, ensuring that the target electronic device receives complete and accurate network configuration information.

[0057] In one embodiment, after determining that the target electronic device is connected to the hidden AP, the vehicle can verify the target electronic device to determine whether it needs to send the target AP's network configuration information to the target electronic device based on the verification result. It should be noted that this application does not specifically limit the method of verifying the target electronic device. For example, 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 it to the target electronic device through the original access point (AP) when the target electronic device is connected. When the vehicle switches APs, the target electronic device can use the shared key to encrypt a specific string, obtaining encrypted information, and then send the encrypted information to the vehicle through a 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. If they match, the target electronic device is deemed to have passed verification.

[0059] 2) Verify the target electronic device using a challenge-response authentication method. The vehicle, acting as the challenger, generates a challenge message and sends it to the target electronic device (acting as the responder). The target electronic device processes the received challenge message using a pre-shared key with the vehicle, generates a response message, and sends it to the vehicle. The vehicle uses the same method and the shared key to generate an expected response message and compares it with the received response message. If the two match, the target electronic device is deemed to have passed the verification.

[0060] If the verification result shows that the target electronic device passes 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 fails the verification, it indicates that the target electronic device is an unfamiliar device with attack risks. 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, the network configuration information of the target AP can be effectively prevented from being sent 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, 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 can be generated by the vehicle and sent to the target electronic device through the original AP if the target electronic device is connected to the original AP. For example, the generation principle of the first and second verification codes can be referred 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 at which the verification started; and the offline timestamp refers to the timestamp at which the target electronic device disconnected from the original AP. When the electronic device connects to the original AP, the vehicle can record and maintain the device information of the electronic device, including the device's online time, offline time, and MAC address. If the target electronic device goes 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 a generated second checksum as a key to encrypt preset information, generating encrypted information, and sends this encrypted information to the vehicle via a hidden access point (AP). The preset information can be defined by the user or vehicle manufacturer; for example, it can be a specific string. The vehicle uses its own generated first checksum to decrypt the received encrypted information, obtaining the decrypted information. Then, the vehicle compares the decrypted information with its own maintained preset information. If they match, it means the first and second checksums are the same, and the target electronic device has passed verification. If they differ, the target electronic device has failed verification.

[0066] Since the MAC address of the target electronic device is its unique identifier, and the target random number is sent to the target electronic device by the vehicle, each electronic device in the above verification method corresponds to a unique check code. Verifying the target electronic device using this unique check code effectively ensures the security, accuracy, and reliability of the verification. Of course, other identifiers can be used to replace the device MAC address in formula (1), as long as these other identifiers 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 via 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 can 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 checksum. This method helps to further improve the randomness of the target random number, thereby improving the security and decryption difficulty of the checksum.

[0068] In one embodiment, the vehicle records first device information, which includes device information of electronic devices that have historically connected to the original AP. In this embodiment, when an electronic device connects to the original AP, the vehicle can record and maintain the device information of that electronic device, including its online time, offline time, MAC address, device name, device type, etc. After switching to the target AP, the vehicle can transfer and store the recorded first device information in the device to be connected area. When an electronic device successfully connects to the target AP, the vehicle can compare the device information of that electronic device with the first device information recorded in the device to be connected area. If the device information of that electronic device exists in the first device information, then the device information of that electronic device is deleted from the device to be connected area. If the device information of that 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 APs and is an unfamiliar device; in this case, the connection between the unfamiliar device and the target AP can be disconnected.

[0069] Similarly, after a target electronic device connects to the hidden AP, the vehicle can check if the target electronic device's information exists in the first device information recorded in the device to be connected area. If it exists, it means that the target electronic device was connected to the original AP before switching APs. In this case, the vehicle can obtain a target random number to further verify the target electronic device. If it does not exist, it means that the target electronic device was not connected to the original AP before switching APs 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 illegal attacks 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 initially verified using the first device information recorded on the vehicle. This can effectively filter out some unfamiliar devices, thereby reducing the pressure on the vehicle to perform subsequent verification using the verification code and significantly improving the verification efficiency.

[0071] S204. 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.

[0072] After receiving the target AP's network configuration information transmitted by the vehicle through the hidden AP, the target electronic device can initiate an AP handover request to the vehicle and update its own current AP configuration information to match the target AP's network configuration information. This allows it to reconnect to the target AP after going offline using the recorded target AP's network configuration information. The vehicle can respond to the received AP handover request by migrating the target electronic device's communication link from the hidden AP to the target AP, thus switching the target electronic device's access point from the hidden AP to the target AP. This handover method eliminates the need for the target electronic device to disconnect from the hidden AP and then reconnect to the target AP using its configuration information, effectively improving the AP handover speed and ensuring that the user is unaware of any network interruption. This allows for AP handover of the target electronic device without the user's awareness.

[0073] In the above embodiments, since the target electronic device automatically connects to the hidden AP without user intervention, the process does not require manual configuration of the target electronic device's network information. The target electronic device can automatically acquire the target AP's configuration information and switch networks. Furthermore, compared to the method where the target electronic device first disconnects from the hidden AP and then uses the target AP's configuration information to connect to the target AP, the vehicle directly migrates the target electronic device's communication link from the hidden AP to the target AP. This not only improves the speed of AP switching but also ensures that the user is unaware of any network interruption, thus achieving AP switching of the target electronic device without the user's awareness.

[0074] In one embodiment, after receiving an AP handover request initiated by the target electronic device, the vehicle can negotiate a target handover duration with the target electronic device through a hidden AP. After the vehicle and the target electronic device agree on the target handover duration, the target electronic device can send a handover start signal to the vehicle. The vehicle starts timing from the moment it receives the handover start signal, and when the total timing duration reaches (i.e., is greater than or equal to) the target handover duration, it migrates the electronic device's communication link from the hidden AP to the target AP. Correspondingly, the target electronic device can start timing from the moment it sends the handover start signal, and when the total timing duration reaches the target handover duration, it updates its current AP configuration information to the target AP's network configuration information. In this way, the vehicle and the target electronic device can perform the corresponding AP handover actions simultaneously, ensuring the smoothness and reliability of the handover process and avoiding network interruptions or data loss during the handover process.

[0075] Alternatively, a countdown timer can be used to achieve the synchronized handover process between the vehicle and the target electronic device. For example, after the vehicle and the target electronic device agree on the target handover duration, the target electronic device can send a handover start signal to the vehicle. The vehicle starts counting down the target handover duration from the moment it receives the handover start signal, and after the timeout, migrates the electronic device's communication link from the hidden AP to the target AP. Correspondingly, the target electronic device can start counting down the target handover duration from the moment it sends the handover start signal, and after the timeout, update its current AP configuration information to the target AP's network configuration information.

[0076] The following will be based on Figure 1 The method for switching APs on a vehicle, as provided in this application embodiment, is illustrated using electronic devices in the system architecture shown. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a flowchart illustrating a method for switching access points (APs) on a vehicle, provided as an exemplary embodiment. The method may include the following steps:

[0077] S301. Detect the AP connection status of the electronic device, and if it is detected that the AP provided by the vehicle cannot be connected, connect to the hidden AP. The service set identifier of the hidden AP will not be broadcast.

[0078] First, it should be noted that the electronic devices described in this embodiment can 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 allows them to directly connect to the target AP provided by the vehicle without the user's awareness. However, 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 a network outage. Therefore, when the target electronic device detects that it cannot connect to the original AP, it can connect to a hidden AP provided by the vehicle. The method for connecting to the hidden AP can be found in [reference needed]. Figure 2 The embodiments shown are not described in detail here.

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

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

[0081] In one embodiment, after an electronic device connects to a hidden access point (AP), the vehicle verifies the identity of the electronic device. If the verification passes, the electronic device can obtain network configuration information from the target AP in the vehicle. For example, the electronic device can send verification information to the vehicle through the hidden AP. This verification information can be specific information used for verification, such as a specific string preset by the vehicle manufacturer or user. The verification information can also be encrypted information obtained by encrypting the aforementioned specific information. This application does not limit the specific implementation of the verification information. If the verification information passes the vehicle's verification, the electronic device can receive network configuration information from the vehicle through the hidden AP.

[0082] It should be noted that this application does not specifically limit the method of verifying electronic devices. For example, verifying the identity of an 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. For details on the implementation of these two verification methods, please refer to [link / reference needed]. Figure 2 The relevant details of the illustrated embodiments will not be repeated here.

[0084] If the verification result shows that the electronic device passes 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 fails the verification, it indicates that the electronic device is an unfamiliar device with attack risks. In this case, the connection between the electronic device and the hidden AP needs to be disconnected to prevent the hidden AP and vehicle data from being illegally attacked.

[0085] In this embodiment, by verifying the electronic device, the network configuration information of the target AP can be effectively prevented from being sent 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 via the original AP when the electronic device is connected to it. For example, 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 encrypted information to the vehicle via the hidden AP. The vehicle can use a first verification code generated based on the target random number to decrypt the encrypted information. For example, the generation principle of the first verification code can refer to the aforementioned formula (1). The vehicle can compare the decrypted information with its own preset information. If they are the same, the electronic device passes the verification; if they are different, the electronic device fails the verification, indicating an attack risk, and its connection to the hidden AP needs to be disconnected.

[0087] Since the first / second checksum 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 its unique identifier, and the target random number is sent to the electronic device by the vehicle, the above verification method can effectively ensure that each device corresponds to a unique checksum. This unique checksum is then used to verify the electronic device, ensuring the security, accuracy, and reliability of the verification. Of course, other identifiers can be used to replace the device MAC address in formula (1), as long as these other identifiers can uniquely identify the device.

[0088] S303. 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.

[0089] After receiving the target AP's network configuration information from the vehicle, the electronic device can send an AP switch request to the vehicle through the hidden AP, updating its current AP configuration information to match the target AP's network configuration information. This allows it to reconnect to the target AP after going offline, utilizing the recorded target AP's network configuration information. The AP switch request instructs the vehicle to migrate the electronic device's communication link from the hidden AP to the target AP, thus switching the electronic device's access point from the hidden AP to the target AP. This switching method eliminates the need for the electronic device to disconnect from the hidden AP and then reconnect to the target AP using its configuration information, effectively improving the AP switch speed and ensuring that the user is unaware of any network interruption. This allows for AP switchover without the user's awareness.

[0090] In one embodiment, the electronic device can negotiate a target handover duration with the vehicle via an AP handover request to achieve synchronous handover. For example, the electronic device sends an AP handover request to the vehicle through a hidden AP, the request carrying information about the target handover duration. The vehicle receives and parses the AP handover request to obtain the target handover duration. If the vehicle agrees to the target handover duration, it can return an agreement signal to the electronic device through the hidden AP. If the vehicle does not agree to the target handover duration, it can renegotiate a target handover duration with the electronic device through the hidden AP until both parties reach an agreement. After negotiation, the target electronic device can send a handover start signal to the vehicle. The vehicle starts timing from the moment it receives the handover start signal, and when the total timing duration reaches (i.e., is greater than or equal to) the target handover duration, it migrates the communication link of the electronic device from the hidden AP to the target AP. Correspondingly, the electronic device can start timing from the moment it sends the handover start signal, and when the total timing duration reaches the target handover duration, it updates its current AP configuration information to the network configuration information of the target AP. In this way, the vehicle and electronic equipment can perform the corresponding actions of AP handover at the same time, ensuring the smoothness and reliability of the handover process and avoiding network interruption or data loss during the handover process.

[0091] Alternatively, a countdown timer can be used to achieve the synchronized handover process between the vehicle and the electronic device. For example, after the vehicle and the electronic device agree on the target handover duration, the electronic device can send a handover start signal to the vehicle. The vehicle starts counting down the target handover duration from the moment it receives the handover start signal, and after the timeout, migrates the communication link of the electronic device from the hidden AP to the target AP. Correspondingly, the electronic device can start counting down the target handover duration from the moment it sends the handover start signal, and after the timeout, update the current AP configuration information to the network configuration information of the target AP.

[0092] Figure 3 The illustrated embodiments describe the specific implementation process of the solution in this application from the perspective of electronic devices, and... Figure 2 Corresponding to the vehicle-angle-based technical solution in the illustrated embodiment, the solution in this application uses electronic devices in conjunction with the vehicle to achieve a complete interaction process. Figure 2 The embodiments shown herein, including all descriptions related to electronic devices during operations such as obtaining target random numbers and verifying electronic devices, are also applicable to... Figure 3 The embodiments shown are not described in detail here.

[0093] Figure 4 This is a network topology diagram illustrating AP switching according to an embodiment of this application. For example... Figure 4As shown, the vehicle can provide both a raw AP and a hidden AP. Normally, the vehicle will activate the raw AP to enable various electronic devices (such as…) Figure 4 Electronic devices A, B, and C in the vehicle connect to the original access point (AP) to achieve network connectivity. When the vehicle switches the original AP to the target AP, the vehicle activates a hidden AP. Assuming that after the AP switch, electronic devices A, B, and C cannot connect to the target AP, they can first connect to the hidden AP, then establish a temporary connection with the vehicle through the hidden AP, and obtain the target AP's network configuration information from the vehicle through this temporary connection. In this way, the AP connected to electronic devices A, B, and C can be switched to the target AP.

[0094] Figure 5 This is a flowchart illustrating an interaction process between an electronic device and a native access point (AP) according to an embodiment of this application. The interaction process involves both the electronic device and the vehicle. Please refer to... Figure 5 The interaction process may include the following steps:

[0095] S501, The vehicle starts the original AP and broadcasts the original AP's SSID.

[0096] S502, Electronic devices connect to the original AP.

[0097] For details on how to connect to the original AP, please refer to the process of connecting network devices to the AP in related technologies; these details will not be elaborated here.

[0098] S503, Vehicle records and maintains equipment information for electronic devices.

[0099] After confirming that the electronic device is connected to the original access point (AP), the vehicle records and maintains the device information of that electronic device. This device information includes, but is not limited to: device name, device type, device MAC address, online time, and offline time.

[0100] S504, The vehicle periodically sends random numbers to the electronic equipment via the original AP.

[0101] While maintaining a connection with the original access point (AP), the vehicle can periodically generate random numbers and send these random numbers to the electronic device via the original AP. In other words, the vehicle can periodically send random numbers to the electronic device through the original AP. These random numbers can be used to verify the identity of the electronic device during subsequent AP handover processes.

[0102] S505, Electronic devices update and save random numbers.

[0103] After receiving a random number from the vehicle, the electronic device can update its stored random number with the latest received random number, thus periodically updating the locally stored random number. In addition, the electronic device can also update and save the timestamp corresponding to the random number, which represents the moment the electronic device received the random number.

[0104] Figure 6 This is a flowchart illustrating an interaction process for switching access points (APs) in a vehicle, according to an embodiment of this application. This interaction involves electronic equipment and the vehicle. It should be noted that the electronic equipment described in this embodiment is the electronic equipment currently connected to the original AP before the vehicle switches APs. Please refer to [link to relevant documentation]. Figure 6 The interaction process may include the following steps:

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

[0106] For example, a user can input the network configuration information of the target AP through the human-machine interface on the vehicle, so that the vehicle can receive 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 end time of the broadcast as the offline time of the electronic device currently connected to the original AP, and transfers the recorded first device information to the device to be connected area.

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

[0110] S604. The vehicle switches the original AP to the target AP and activates the hidden AP.

[0111] Since the broadcast end time and the AP handover completion time are very close, the broadcast end time is taken as the offline time of the electronic device currently connected to the original AP, which is equivalent to taking the AP handover 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 network configuration information of the target AP it receives.

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

[0114] When a vehicle detects that any electronic device is already connected to the target AP, it can check if the device information for that electronic device exists in the first device information stored in the device to be connected area. If it exists, the device information for that electronic device is deleted from the device to be connected area, indicating that the electronic device is connected to the target AP. If it does not exist, it means that the electronic device is an unfamiliar device that has not been connected to the original AP before, posing an attack risk, and its connection to the target AP needs to be disconnected.

[0115] Figure 7 This is a flowchart illustrating an interaction process for an electronic device switching access points (APs) according to an embodiment of this application. This interaction process involves both the electronic device and the vehicle. Please refer to... Figure 7 The interaction process may include the following steps:

[0116] S701, Vehicle activates target AP and hides AP.

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

[0118] S703, Vehicle query: Does the device information of electronic devices exist in the area of ​​devices to be connected?

[0119] For any electronic device that has been connected to the hidden AP, the vehicle can check whether the device information of the electronic device exists in the device to be connected area. If it exists, then execute S704; if it does not exist, it means that the electronic device is an unfamiliar device that has not been connected to the original AP before, which poses an attack risk, and its connection with the hidden AP needs to be disconnected.

[0120] S704, The vehicle sends a verification command to the electronic equipment.

[0121] S705, The vehicle generates the first verification code.

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

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

[0124] In response to the verification command, the electronic device generates a second verification code using a target random number it maintains, the MAC address, and the most recent offline time. Then, the electronic device uses the generated second verification code to encrypt preset information, obtaining encrypted information.

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

[0126] S707: Electronic devices send encrypted information to the vehicle.

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

[0128] The vehicle uses the first verification code to decrypt the encrypted information and compares the decrypted information with its own preset information. If they match, the verification result is successful, and step S710 is executed. If they do not match, the verification result is unsuccessful, and in this case, the connection between the electronic device and the hidden AP needs to be disconnected.

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

[0130] S710: Electronic devices send AP switching requests to the vehicle.

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

[0132] S711, The vehicle returns an agreement signal to the electronic equipment.

[0133] The vehicle parses the received AP handover request to obtain the target handover duration. The vehicle agrees to the target handover duration by hiding the AP and returning an agreement signal to the electronic device. This agreement signal indicates that the vehicle agrees to the target handover duration proposed by the electronic device.

[0134] S712, the electronic device sends a switching start signal to the vehicle through a 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 handover start signal, and updates the current AP configuration information to the network configuration information of the target AP when the total timing duration reaches the target handover duration.

[0137] S714, The vehicle migrates the communication link of its electronic devices from the hidden AP to the target AP.

[0138] The vehicle starts timing from receiving the handover start signal, and when the total timing duration reaches the target handover duration, it migrates the communication link of the electronic equipment from the hidden AP to the target AP.

[0139] S715: Electronic devices send a handover success signal to the vehicle via the target AP.

[0140] If the electronic device confirms that it has successfully connected to the target AP, it can send a handover success signal to the vehicle through the target AP. If the electronic device confirms that it has failed to connect to the target AP, it can repeat steps S702 to S714.

[0141] S716. In response to a successful handover signal, the vehicle removes the device information of the electronic device that sent the successful handover signal from the area of ​​devices to be connected.

[0142] Using the above methods, electronic devices can automatically acquire the configuration information of the target AP and switch networks without the user's awareness.

[0143] Figure 8 This is a schematic diagram illustrating the structure of an electronic device according to an exemplary embodiment of this application. (Reference) Figure 8 At the hardware level, the electronic device includes a processor 802, an internal bus 804, a network interface 806, memory 808, and non-volatile memory 810, and may also include other hardware required for business operations. 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 software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.

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

[0145] Figure 9 This is a block diagram illustrating an apparatus for switching Active Transportation (AP) in a vehicle according to an exemplary embodiment of this application. This apparatus can be applied to a vehicle. (Refer to...) Figure 9 The device includes: a switching unit 901, an activation unit 902, a transmission unit 903, and a migration unit 904. Wherein:

[0146] Switching unit 901 is configured to acquire network configuration information of the target AP and switch the original AP to the target AP.

[0147] Enabling unit 902 is configured to enable a hidden AP, wherein the service set identifier of the hidden AP is not broadcast.

[0148] The sending unit 903 is configured to, upon determining that a target electronic device has connected to the hidden AP, send the network configuration information of the target AP to the target electronic device through the hidden AP, so that the target electronic device updates its current AP configuration information to the network configuration information of the target AP; the target electronic device includes electronic devices that have previously connected to the original AP;

[0149] 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 an AP switching request initiated by the target electronic device.

[0150] Optionally, the device further includes:

[0151] Broadcast unit 905 is configured to broadcast network configuration information of the target AP to 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 configured to: verify the target electronic device when it is determined that the target electronic device is connected to the hidden AP; if 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; if the target electronic device fails the verification, disconnect the connection between the target electronic device and the hidden AP.

[0153] Optionally, the verification of the target electronic device includes: obtaining a target random number and generating a first verification code based on the target random number; decrypting the encrypted information from the target electronic device using the first verification code to obtain decrypted information, wherein the encrypted information is obtained by the target electronic device using a second verification code, and the second verification code is generated by the target electronic device based on the target random number; and determining that the target electronic device passes the verification if the decrypted information is the same as preset information.

[0154] Optionally, the device further includes:

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

[0156] Optionally, the device further includes:

[0157] The query unit 907 is configured to search for the existence of device information of the target electronic device in the first device information recorded in the vehicle, the first device information including device information of electronic devices historically connected to the original AP; if the search result indicates that the device information of the target electronic device exists, the target random number is obtained; 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.

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

[0159] Figure 10 This is a block diagram illustrating an apparatus for switching Active Directory (AP) in a vehicle according to an exemplary embodiment of this application. This apparatus can be applied to electronic devices. (Refer to...) Figure 10 The device includes: a detection unit 1001, an acquisition unit 1002, and an update unit 1003. Wherein:

[0160] The detection unit 1001 is configured to detect the AP connection status of the electronic device, and if it is detected that the AP provided by the vehicle cannot be connected, it connects to a hidden AP, wherein the service set identifier of the hidden AP is not broadcast.

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

[0162] The update 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 includes:

[0164] The connection unit 1004 is configured to, upon detecting that an original AP provided by the vehicle is already connected, obtain network configuration information of the target AP from the vehicle through the original AP; 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 verification information to the vehicle through the hidden AP; if the verification information passes the vehicle's verification, then 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 encrypted information to the vehicle through the hidden AP, so that the vehicle can decrypt the encrypted information using a first verification code 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 handover request to the vehicle through the hidden AP, so as to negotiate a target handover duration with the vehicle through the AP handover request; send a handover start signal to the vehicle through the hidden AP, and start timing from sending the handover 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 handover duration.

[0168] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0169] The apparatus or module described in the above embodiments can be implemented by a computer chip or entity, or by a product with a certain function. A typical implementation device is a computer, which can be a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination 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), input / output interfaces, a network interface, and memory. The CPU is used for computational simulation, while the GPU is used to output high-quality 3D images.

[0171] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0172] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0173] Corresponding to the embodiments of the foregoing methods, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the embodiments of the foregoing methods.

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

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

Claims

1. A method for switching APs on a vehicle, characterized in that, This method is applied to vehicles, and the method includes: Obtain the network configuration information of the target AP, and broadcast the network configuration information of the target AP to the electronic devices currently connected to the original AP, so that the electronic devices currently connected to the original AP can connect to the target AP using the received network configuration information; The original AP is switched to the target AP, and the hidden AP is enabled. The service set identifier of the hidden AP will not be broadcast, and the hidden AP is provided to electronic devices that cannot connect to the target AP. If 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 its current AP configuration information to the network configuration information of the target AP; the target electronic device includes electronic devices that have been connected to the original AP; In response to an 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, The step of sending the network configuration information of the target AP to the target electronic device through the hidden AP includes: If it is determined that the target electronic device is connected to the hidden AP, the target electronic device is verified. If the target electronic device passes the verification, the network configuration information of the target AP is sent to the target electronic device through the hidden AP; If the target electronic device fails verification, disconnect the connection between the target electronic device and the hidden AP.

3. The method according to claim 2, characterized in that, The verification of the target electronic device includes: Obtain a target random number, and generate a first check code based on the target random number; The encrypted information from the target electronic device is decrypted using the first verification code to obtain the decrypted information. The encrypted information is obtained by the target electronic device using a second verification code, which is generated by the target electronic device based on the target random number. If the decrypted information is the same as the preset information, the target electronic device is determined to have passed the verification.

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

5. The method according to claim 3, characterized in that, Also includes: The system searches for device information of the target electronic device in the first device information recorded by the vehicle. The first device information includes device information of electronic devices that were historically connected to the original AP. If the search results indicate the existence of device information for the target electronic device, obtain the target random number; If the search results indicate that no device information for the target electronic device exists, the connection between the target electronic device and the hidden AP is disconnected.

6. 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 includes: In response to the AP handover request initiated by the target electronic device, negotiate the target handover duration with the target electronic device; In response to a handover start signal from the target electronic device, a timer is started from the moment the handover start signal is received, and when the total timer duration reaches the target handover duration, the communication link of the target electronic device is migrated from the hidden AP to the target AP.

7. A method for switching AP on a vehicle, characterized in that, This method is applied to an electronic device, and the method includes: The system detects the AP connection status of the electronic device. If it detects that the original AP provided by the vehicle is connected, it obtains the network configuration information of the target AP from the vehicle through the original AP and connects to the target AP using the network configuration information of the target AP. If it detects that the AP provided by the vehicle cannot be connected, it connects to a hidden AP, and the service set identifier of the hidden AP is not broadcast. The network configuration information of the target AP is obtained from the vehicle through the hidden AP; The hidden AP sends an AP switching request to the vehicle and updates 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.

8. The method according to claim 7, characterized in that, The step of obtaining the network configuration information of the target AP from the vehicle through the hidden AP includes: The hidden AP sends verification information to the vehicle. If the information to be verified passes the vehicle's verification, then the network configuration information from the vehicle is received through the hidden AP.

9. The method according to claim 8, characterized in that, The step of sending verification information to the vehicle through the hidden AP includes: Obtain a target random number, and generate a second verification code based on the target random number; The second verification code is used to encrypt the information to be verified, and the resulting encrypted information is sent to the vehicle through the hidden AP, so that the vehicle can use the first verification code to decrypt the encrypted information and verify the decrypted information. The first verification code is generated by the vehicle based on the target random number.

10. The method according to claim 7, characterized in that, The step of sending an AP switch 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: The hidden AP sends an AP handover request to the vehicle to negotiate the target handover duration with the vehicle through the AP handover request; The hidden AP sends a handover start signal to the vehicle and starts timing from the time the handover start signal is sent, so that when the total timing duration reaches the target handover duration, the current AP configuration information is updated to the network configuration information of the target AP.

11. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-10 by executing the executable instructions.

12. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-10.

13. A computer program product, characterized in that, It includes a computer program and / or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Network configuration information synchronization method and device and computer equipment

    CN112566220A

  • Variable authentication identifier (AID) for access point (AP) privacy

    US20230098093A1