Wifi mode soft switching method
By setting a specific SSID in the personal hotspot of the mobile phone, the on-board device automatically switches the wifi mode, solving the problem of inconvenient switching of physical keys, and achieving wifi mode switching with simple operation and high stability.
Patent Information
- Application Number
- CN202510372637.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-06-24
AI Technical Summary
In existing vehicle-mounted devices, the wifi mode needs to be switched through physical buttons, which leads to inconvenient operation when installed in the vehicle body and is prone to instability in mode switching due to false triggering.
Set a specific SSID through the personal hotspot of your mobile phone. After the on-board device searches for a specific SSID, it will automatically switch to AP mode or STA mode to realize the wifi mode switching without physical buttons.
It solves the problem of inconvenience in physical key switching, simplifies operations, reduces hardware costs, and improves the stability and reliability of mode switching.
Smart Images

Figure CN120201121A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wifi mode switching, and particularly to a method for soft switching of the wifi mode of a vehicle-mounted device. Background Art
[0002] Currently, for screenless vehicle-mounted devices with wifi function, during device installation, debugging or maintenance, the AP mode of wifi is used, and the mobile phone connects to the SSID of the device (SSID is a unique identifier for a specific wireless network within the coverage area of the wireless access point), and the mobile phone APP is used to communicate with the device for parameter setting, calibration and other installation, debugging or maintenance work. After the device is installed and debugged, when the device is running normally, the device wifi will be switched to the STA mode. In the prior art, the wifi mode switching is generally through the physical buttons of the device. When the vehicle-mounted device is installed in the vehicle body, the method of switching the wifi mode by physical buttons is very inconvenient.
[0003] In view of this, the present invention is deeply conceived in view of the many deficiencies and inconveniences caused by the need to switch the wifi mode by physical buttons in existing vehicle-mounted devices, and actively researches, improves and tries to develop the present invention. Summary of the Invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a method for soft switching of the wifi mode without physical buttons, and solve the problem of inconvenience in switching the wifi mode by physical buttons.
[0005] To achieve the above object, the solution of the present invention is: A method for soft switching of the wifi mode, which includes the following steps: Step S1: Turn on the personal hotspot of the mobile phone and determine whether to place the vehicle-mounted device wifi in the AP mode or the STA mode; Step S2: Set the personal hotspot name of the mobile phone according to the mode determined in step S1; If it is necessary to place the vehicle-mounted device wifi in the AP mode, set the personal hotspot name of the mobile phone to a specific SSID with an AP identifier; If it is necessary to place the vehicle-mounted device wifi in the STA mode, set the personal hotspot name of the mobile phone to a specific SSID with a STA identifier; Step S3: The vehicle-mounted device searches for the wifi SSIDs within the coverage area; When the specific SSID with the AP identifier in step S2 is searched, call the AP mode switching function to automatically switch the wifi mode of the vehicle-mounted device to the AP mode; When a specific SSID with the STA identifier is searched in step S2, the STA mode switching function is called to automatically switch the Wi-Fi mode of the in-vehicle device to the STA mode.
[0006] Further, after step S3, there is also step S4. After the in-vehicle device completes the mode switching, the status feedback function is called to notify external personnel of the current Wi-Fi mode status through the horn or lights of the in-vehicle device.
[0007] Further, in step S3, when calling the AP mode or STA mode switching function, ensure that the in-vehicle device saves its current working status before switching to avoid data loss or system failures.
[0008] Further, in step S3, when the in-vehicle device searches for Wi-Fi SSIDs, it performs periodic searches.
[0009] After adopting the above solution, the Wi-Fi mode soft switching method of the present invention uses the searched specific SSID to switch the Wi-Fi mode, without the need to use the physical buttons of the in-vehicle device, greatly facilitating the operation during the installation, debugging, and maintenance of the in-vehicle device. The Wi-Fi mode switching method of the in-vehicle device of the present invention is simple and has low costs, solving the inconvenience and cost problems brought by the physical button for switching the Wi-Fi mode in the prior art. At the same time, it avoids the accidental triggering of Wi-Fi mode switching caused by physical buttons, improving the stability and reliability of the Wi-Fi operation of the in-vehicle device.
[0010] Compared with the prior art, the present invention has the following advantages: For devices installed inside the vehicle, the Wi-Fi mode can be switched without taking out the device, making the operation more convenient and fast, especially suitable for installation locations with narrow spaces or difficult-to-reach physical buttons.
[0011] The present invention can eliminate the physical buttons, saving the hardware costs of the device, reducing the physical components of the device, and improving the integration and simplicity of the product.
[0012] The present invention can avoid the accidental switching of the Wi-Fi mode caused by accidental operation of the physical buttons, ensuring that the Wi-Fi mode switching operation of the in-vehicle device is safer and more reliable. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 It is a flowchart of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0013] In order to further explain the technical solution of the present invention, the present invention will be elaborated in detail through specific embodiments below.
[0014] Such as Figure 1As shown in the figure, the present invention discloses a method for soft switching of the wifi mode of a vehicle-mounted device. The general idea is that regardless of whether it is in the AP mode or the STA mode, the vehicle-mounted device can search for nearby wifi SSIDs. Turn on the personal hotspot of the mobile phone and set a specific SSID. When the vehicle-mounted device searches for the specific SSID, it starts the switching of the wifi mode. When installation, debugging, and maintenance of the device are required, the wifi mode of the vehicle-mounted device needs to be switched to the AP mode. At this time, turn on the personal hotspot of the mobile phone carried with you and set a specific hotspot name, such as ChangeWifiToAP. When the vehicle-mounted device searches for this specific SSID, it switches the wifi mode to the AP mode. After the installation, debugging, and maintenance are completed, modify the personal hotspot name of the mobile phone to another specific SSID, such as ChangeWifiToSTA. When the vehicle-mounted device searches for this specific SSID, it switches the wifi mode to the STA mode.
[0015] The specific steps of the present invention are as follows: Step S1: Turn on the personal hotspot of the mobile phone and determine which mode the vehicle-mounted device wifi should be placed in; Step S2: According to the mode determined in step S1, set the name of the personal hotspot of the mobile phone; If the vehicle-mounted device wifi needs to be placed in the AP mode, then set a specific SSID with an AP identifier in the personal hotspot name of the mobile phone; If the vehicle-mounted device wifi needs to be placed in the STA mode, then set a specific SSID with an STA identifier in the personal hotspot name of the mobile phone; Step S3: The vehicle-mounted device searches for wifi SSIDs within the coverage area; When the specific SSID with an AP identifier set in step S2 is searched, call the AP mode switching function to automatically switch the wifi mode of the vehicle-mounted device to the AP mode; When the specific SSID with an STA identifier set in step S2 is searched, call the STA mode switching function to automatically switch the wifi mode of the vehicle-mounted device to the STA mode; When calling the STA mode switching function, ensure that the device saves the current working state before switching to avoid data loss or system failure.
[0016] Step S4: After the vehicle-mounted device completes the mode switching, call the status feedback function to remind external personnel of the current wifi mode status through the speaker or light of the vehicle-mounted device, which is convenient for users to confirm.
[0017] End.
[0018] The above embodiments and diagrams do not limit the product form and style of the present invention. Any appropriate changes or modifications made by those of ordinary skill in the art shall be regarded as not departing from the patent scope of the present invention.
Claims
1. A wifi mode soft switching method, characterized in that: The following steps are involved: Step S1, turn on the mobile phone personal hotspot and determine whether the vehicle-mounted device wifi needs to be placed in AP mode or STA mode; Step S2, setting the name of the personal hotspot of the mobile phone according to the mode determined in step S1; If you need to put the vehicle device wifi into AP mode, set the name of the mobile phone's personal hotspot to a specific SSID with the AP logo; If you need to put the vehicle device wifi into STA mode, set the name of the mobile phone's personal hotspot to a specific SSID with the STA logo; Step S3, the vehicle-mounted device searches for the Wi-Fi SSID within the coverage area; When the specific SSID with the AP identifier in step S2 is searched, the AP mode switching function is called to automatically switch the Wi-Fi mode of the vehicle-mounted device to the AP mode; When the specific SSID with the STA identifier in step S2 is searched, the STA mode switching function is called to automatically switch the Wi-Fi mode of the vehicle-mounted device to the STA mode.
2. A wifi mode soft switching method as claimed in claim 1, characterized in that: Step S3 also includes step S4: after the vehicle-mounted device completes the mode switching, the state feedback function is called to remind external personnel of the current wifi mode state through the speaker or light of the vehicle-mounted device.
3. A wifi mode soft switching method as claimed in claim 1, characterized in that: In step S3, when calling the AP mode or STA mode switching function, ensure that the vehicle-mounted device saves the current working state before switching to avoid data loss or system failure.
4. A wifi mode soft switching method as claimed in claim 1, characterized in that: In step S3, when the vehicle-mounted device searches for the Wi-Fi SSID, a periodic search is adopted.