Vehicle-mounted WiFi systematized channel automatic selection method and system
By pre-evaluating and selecting the on-board WiFi channel, the problem of the on-board AP hotspot opening time is solved, and the fast start-up and low-power channel automatic selection is achieved, improving the user experience.
Patent Information
- Application Number
- CN202411164583.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-08-23
AI Technical Summary
The existing car AP hotspots need to be automatically scanned before turning on, resulting in too long opening time and affecting the user experience.
By pre-scanning the quality of the on-board WiFi channel in the current environment and location, statistics and evaluate the busyness and interference of the channel, select the preset channel, and directly select the channel as the working channel when the vehicle starts the WiFi hotspot, avoiding repeated scanning processes.
It significantly shortens the AP function turn-on time, improves the user experience, reduces power consumption, and realizes the process of quickly and automatically selecting the working channel.
Smart Images

Figure CN118984496A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted TBOX wireless communication and vehicle-mounted hotspot; in particular, to the technical field of vehicle-mounted WiFi channel selection, and more specifically, to a vehicle-mounted WiFi systematic channel automatic selection method and system. Background Art
[0002] With the development of Internet of Things and smart Internet of Things technologies, cars, as a popular consumer product, no longer simply serve the basic function of a means of transportation. Consumers have more demands for the practical functions of cars in work and life.
[0003] At present, the vehicle-mounted AP hotspot is a special Internet access device launched for new energy vehicles. The vehicle-mounted AP hotspot brings more convenient services to users, allowing consumers to enjoy the convenience and changes brought to life by technological development.
[0004] However, since the automatic channel scanning and selection process before turning on the AP takes a long time, which affects the AP startup time, the user terminal device needs to wait for a long time before being able to access the AP hotspot to provide network services for the terminal device, resulting in a poor user experience. Summary of the invention
[0005] In view of this, the purpose of the present invention is to propose a method and system for systematic automatic channel selection of vehicle-mounted WiFi, which pre-scans the quality of vehicle-mounted WiFi channels in the current environment and position, statistically evaluates the busyness and interference degree of each channel in the current environment, selects a channel as a preset channel, and combines the current state of the vehicle. When the vehicle starts the WiFi hotspot, it directly selects the preset channel in the corresponding configuration as the working channel and directly starts the AP, so as to solve the problem that the AP channel scanning is performed first, which affects the AP startup time and causes the AP automatic selection process to take too long, thereby improving the AP startup efficiency and enhancing the user experience.
[0006] The present invention provides a method for automatically selecting a vehicle-mounted WiFi system channel, comprising the following steps: S1. Write an application APP_X for channel scanning and install the application APP_X in the background system; S2. When the vehicle is stationary and the vehicle computer or TBOX is not in sleep mode, the application APP_X is run in the background, and the relevant threads of the application APP_X are started. The channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; S3, setting the number of pre-scans of the channel scan to three times, and recording the results of the optimal channels Optimal Channel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of values of the optimal channel results OC1, OC2, and OC3 of the three scans that are the same channel Channel is greater than or equal to 2, then the same channel is recorded as the preset channel PresetChannel; If the results of the optimal channels OC1, OC2, and OC3 obtained from the three scans are all different, two more channel scans are performed, and the results of the two scans are Optimal Channel 4 and Optimal Channel 5 respectively; if there is a same channel in the five scans, the same channel is used as the preset channel; if the optimal channels obtained from the five scans are still different, the channel with the best signal quality among the five channels is used as the preset channel; Setting the preset channel Preset Channel as the current working channel of the vehicle WiFi; S4, storing the preset channel Preset Channel, and recording the vehicle position and time information at that time; For example, the format of a single vehicle location and time information record is: location (e.g., home) + current time + Preset Channel 1; Vehicles often have fixed parking addresses when in use, such as home, company, school, shopping malls, hospitals, etc. Taking the location of "company" as an example, if the vehicle has parked at "home" many times recently, then there are preset channel records selected from multiple time points at the location of "company", that is, a location may have preset channels at multiple time points (such as: preset_ch1, preset_ch2, preset_ch3), that is, the information record under this location will correspond to multiple times and preset channels.
[0007] S5. When the vehicle computer or TBOX enters the dormant state, the application APP_X is exited and the channel scanning is stopped to control the power consumption during the dormant state. The present invention realizes the process of automatically selecting the working channel and quickly starting the AP with low power consumption.
[0008] The in-vehicle WiFi systematic channel automatic selection method of the present invention can automatically calculate and select the optimal channel for the user when the user uses the AP function of the in-vehicle WiFi, thereby accelerating the speed of starting the AP function, shortening the AP function starting time, and improving the user experience.
[0009] Furthermore, after the step S5, if the vehicle computer or TBOX exits the sleep state, but the vehicle is still stationary, the application APP_X is activated again to perform regular channel scanning and setting.
[0010] Furthermore, after the step S5, if the vehicle enters the driving state and the vehicle position changes at any time, the application APP_X is exited and the regular channel scan is no longer performed.
[0011] The application APP_X in the present invention can be activated or exited in real time according to the vehicle scenario status, does not occupy too many system resources, and can achieve accurate working channel selection and AP startup at a lower operating cost.
[0012] Furthermore, when the AP is turned on for the first time and then turned on for the next time, the method for selecting the working channel includes: If the background system can obtain the current location information of the vehicle at this time, and the preset channels of multiple records of the current vehicle location within a certain time period are the same, it means that the optimal channel for this position during this period is relatively fixed. The preset channel is extracted as the working channel to directly turn on the AP without channel scanning, so as to shorten the AP function taking effect time and improve user experience.
[0013] Furthermore, when the AP is turned on for the first time and then turned on for the next time, the method for selecting a working channel also includes: If the background system can obtain the current location information of the vehicle at this time, but the preset channels of multiple records of the current vehicle location within a certain time period are different, it means that the optimal channel for this location during this period is not fixed, and the Preset Channel recorded most recently is selected as the working channel of the AP.
[0014] Furthermore, when the AP is turned on for the first time and then turned on for the next time, the method for selecting a working channel also includes: If the background system cannot obtain the current vehicle's location information at this time, and the vehicle has not moved from the time of the most recently recorded preset channel to the current time, the most recently recorded preset channel is selected as the working channel to turn on the AP.
[0015] Furthermore, when the AP is turned on for the first time and then turned on for the next time, the method for selecting a working channel also includes: If the difference between the generation time of a preset channel recorded in a certain time and the current time exceeds the set X hours (considering that the surrounding WiFi environment may change significantly), the Preset Channel is no longer credible. Trigger the channel pre-scan mechanism before the AP is turned on, save the scan information to the storage area, update the relevant historical data, and use the Preset Channel calculated by this scan as the pre-configuration for the AP work.
[0016] In summary, the method for automatic channel selection of the in-vehicle WiFi system of the present invention selects a relatively optimal channel as a working channel when a user uses the AP function of the in-vehicle WiFi, thereby speeding up the activation of the AP function and shortening the activation time of the AP function.
[0017] When you turn on the AP for the first time and then turn it on for the next time, if it is a situation other than the above, for example, the background system cannot obtain the current location information of the vehicle, and the vehicle has moved from the time of the most recently recorded preset channel to the current time, then according to the original strategy, first perform channel scanning, and then select the optimal channel as the working channel to turn on the AP.
[0018] The present invention also provides a vehicle-mounted WiFi systematized channel automatic selection system, which executes the vehicle-mounted WiFi systematized channel automatic selection method as described above, including: Create an application module: used to write an application APP_X for channel scanning, and install the application APP_X in the background system; Start application module: when the vehicle is stationary and the vehicle computer or TBOX is not in sleep state, the application APP_X is run in the background, the relevant threads of the application APP_X are started, and the channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; Select working channel module: used to set the number of pre-scans of the channel scan to three times, and record the results of the optimal channel Optimal Channel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of the values of the optimal channel results OC1, OC2, and OC3 of the three scans is greater than or equal to 2, then the same channel is recorded as the preset channel Preset Channel; if the results of the optimal channels OC1, OC2, and OC3 of the three scans are all different, then two more channel scans are performed, and the results of these two scans are Optimal Channel4 and Optimal Channel5 respectively; if the same channel exists in the five scan data, then the same channel is used as the preset channel Preset Channel; if the optimal channels of the five scans are still different, then the channel with the best signal quality among the five channels is taken as the preset channel PresetChannel; the preset channel Preset Channel is set as the current working channel of the vehicle WiFi; Storage and recording module: used to store the preset channel Preset Channel and record the vehicle position and time information at that time; Exit application module: when the vehicle computer or TBOX enters the sleep state, it exits the application APP_X and stops scanning channels to control the power consumption during sleep.
[0019] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the above-mentioned method for automatic channel selection of the in-vehicle WiFi system are implemented.
[0020] The present invention also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the above-mentioned method for automatic channel selection of the in-vehicle WiFi system are implemented.
[0021] Compared with the prior art, the present invention has the following beneficial effects: The vehicle-mounted WiFi systematic channel automatic selection method and system provided by the present invention pre-scans the vehicle-mounted WiFi channel quality under the current environment and position, statistically evaluates the busyness and interference degree of each channel in the current environment, selects a channel as a preset channel, and combines the current state of the vehicle. When the vehicle starts the WiFi hotspot, the preset channel in the corresponding configuration is directly selected as the working channel, and the AP is directly started, which effectively solves the existing problem that the AP channel scanning is performed first, which affects the AP startup time and causes the AP automatic selection process to be too time-consuming, and improves the AP startup efficiency; while the user uses the WiFi AP function to select the relatively optimal channel as the working channel, the AP function startup time is shortened, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
[0023] In the attached picture: Figure 1 A specific flow chart of automatic channel selection for the vehicle-mounted WiFi system according to an embodiment of the present invention; Figure 2 A flow chart of a strategy for selecting a working channel when the AP is turned on for the next time after the AP is turned on for the first time according to an embodiment of the present invention; Figure 3 This is a flow chart of a method for automatic channel selection of a vehicle-mounted WiFi system according to the present invention; Figure 4 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and products consistent with some aspects of the present disclosure as detailed in the appended claims.
[0025] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0026] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0027] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0028] The embodiment of the present invention provides a method for automatically selecting a vehicle-mounted WiFi channel. Figure 3 As shown, the following steps are included: S1. Write an application APP_X for channel scanning and install the application APP_X in the background system; S2. When the vehicle is stationary and the vehicle computer or TBOX is not in sleep mode, the application APP_X is run in the background, and the relevant threads of the application APP_X are started. The channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; S3, setting the number of pre-scans of the channel scan to three times, and recording the results of the optimal channels Optimal Channel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of values of the optimal channel results OC1, OC2, and OC3 of the three scans that are the same channel Channel is greater than or equal to 2, then the same channel is recorded as the preset channel PresetChannel; If the results of the optimal channels OC1, OC2, and OC3 obtained from the three scans are all different, two more channel scans are performed, and the results of the two scans are Optimal Channel 4 and Optimal Channel 5 respectively; if there is a same channel in the five scans, the same channel is used as the preset channel; if the optimal channels obtained from the five scans are still different, the channel with the best signal quality among the five channels is used as the preset channel; Setting the preset channel Preset Channel as the current working channel of the vehicle WiFi; S4, storing the preset channel Preset Channel, and recording the vehicle position and time information at that time; In this embodiment, the format of a single vehicle location and time information record is: location + current time + PresetChannel1; S5. When the vehicle computer or TBOX enters the sleep state, the application APP_X is exited and the channel scanning is stopped to control the power consumption during sleep. This makes the whole process of automatically selecting the working channel and starting the AP function have lower power consumption.
[0029] Figure 1 The specific process of automatic channel selection of the vehicle-mounted WiFi system of this embodiment is shown.
[0030] When a user uses the AP function of the vehicle-mounted WiFi, this embodiment automatically calculates and selects the optimal channel for the user, thereby speeding up the activation of the AP function, shortening the activation time of the AP function, and improving the user experience.
[0031] When the AP is turned on for the first time and then turned on for the next time, when the background system can obtain the current location information of the vehicle, and the preset channels of multiple records of the current vehicle location within a certain time period are the same, it means that the optimal channel for this position during this period is relatively fixed. The preset channel is extracted as the working channel to directly turn on the AP without channel scanning, thereby shortening the AP function taking effect time and improving user experience.
[0032] At this time, the background system can obtain the current location information of the vehicle, but the preset channels of multiple records of the current vehicle location within a certain time period are different, which means that the optimal channel for this location during this period is not fixed. The Preset channel recorded at the most recent time is selected as the working channel to start the AP, and the optimal channel at the current time is selected as the switching channel candidate (execute as shown below) Figure 2 strategy shown).
[0033] When the background system cannot obtain the current vehicle's location information at this time, and the vehicle has not moved from the time of the most recently recorded preset channel to the current time, the most recently recorded preset channel is selected as the working channel to start the AP.
[0034] When the difference between the generation time of a preset channel recorded in a certain time and the current time exceeds the set X hours (considering that the surrounding WiFi environment may change significantly), the Preset Channel is no longer credible. The Preset channel recorded at the most recent time is selected as the working channel to turn on the AP, and the following steps are executed at the same time: Figure 2 The strategy shown selects the optimal channel at the current time as the switching channel candidate.
[0035] In this embodiment, when a user uses the AP function of the vehicle-mounted WiFi, a relatively optimal channel is selected as the working channel, thereby accelerating the speed of starting the AP function and shortening the AP function starting time.
[0036] When the vehicle computer or TBOX exits the sleep state, but the vehicle is still stationary, the application APP_X is activated again to perform regular channel scanning and setting. When the vehicle enters the driving state and the vehicle position changes at all times, the application APP_X is exited and regular channel scanning is no longer performed. In this embodiment, the application APP_X is activated or exited in real time according to the vehicle scenario state, does not occupy too many system resources, and reduces the operating cost of vehicle WiFi working channel selection and AP startup.
[0037] The embodiment of the present invention further provides a vehicle-mounted WiFi systematized channel automatic selection system, which executes the vehicle-mounted WiFi systematized channel automatic selection method as described above, including: Create an application module: used to write an application APP_X for channel scanning, and install the application APP_X in the background system; Start application module: when the vehicle is stationary and the vehicle computer or TBOX is not in sleep state, the application APP_X is run in the background, the relevant threads of the application APP_X are started, and the channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; Select working channel module: used to set the number of pre-scans of the channel scan to three times, and record the results of the optimal channel Optimal Channel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of the values of the optimal channel results OC1, OC2, and OC3 of the three scans is greater than or equal to 2, then the same channel is recorded as the preset channel Preset Channel; if the results of the optimal channels OC1, OC2, and OC3 of the three scans are all different, then two more channel scans are performed, and the results of these two scans are Optimal Channel4 and Optimal Channel5 respectively; if the same channel exists in the five scan data, then the same channel is used as the preset channel Preset Channel; if the optimal channels of the five scans are still different, then the channel with the best signal quality among the five channels is taken as the preset channel PresetChannel; the preset channel Preset Channel is set as the current working channel of the vehicle WiFi; Storage and recording module: used to store the preset channel Preset Channel and record the vehicle position and time information at that time; Exit application module: when the vehicle computer or TBOX enters the sleep state, it exits the application APP_X and stops scanning channels to control the power consumption during sleep.
[0038] An embodiment of the present invention further provides a computer device, Figure 4 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention; see the accompanying drawings Figure 4 As shown, the computer device includes: an input device 23, an output device 24, a memory 22 and a processor 21; the memory 22 is used to store one or more programs; when the one or more programs are executed by the one or more processors 21, the one or more processors 21 implement the vehicle-mounted WiFi systematic channel automatic selection method provided in the above embodiment; wherein the input device 23, the output device 24, the memory 22 and the processor 21 can be connected by a bus or other means, Figure 4 The example of connecting through bus is taken in the following.
[0039] The memory 22 is a readable and writable storage medium of a computing device, which can be used to store software programs and computer executable programs, such as program instructions corresponding to the vehicle-mounted WiFi systematized channel automatic selection method described in the embodiment of the present invention; the memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the device, etc.; in addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device; in some instances, the memory 22 can further include a memory remotely arranged relative to the processor 21, and these remote memories can be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0040] The input device 23 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device; the output device 24 may include a display device such as a display screen.
[0041] The processor 21 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 22, that is, realizes the above-mentioned automatic channel selection method of the in-vehicle WiFi system.
[0042] The computer device provided above can be used to execute the vehicle-mounted WiFi systematic channel automatic selection method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0043] The embodiment of the present invention also provides a storage medium containing computer executable instructions, which are used to execute the vehicle-mounted WiFi systematized channel automatic selection method provided in the above embodiment when executed by a computer processor. The storage medium is any of various types of memory devices or storage devices, and the storage medium includes: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc.; the storage medium may also include other types of memory or a combination thereof; in addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, the second computer system is connected to the first computer system via a network (such as the Internet); the second computer system may provide program instructions to the first computer for execution. The storage medium includes two or more storage media that can reside in different locations (for example, in different computer systems connected via a network). The storage medium can store program instructions (for example, specifically implemented as a computer program) that can be executed by one or more processors.
[0044] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method for automatic channel selection of systematized vehicle WiFi as described in the above embodiment, and the computer executable instructions can also execute the related operations in the method for automatic channel selection of systematized vehicle WiFi provided by any embodiment of the present invention.
[0045] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0046] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for automatic channel selection of a vehicle-mounted WiFi system, characterized in that: The following steps are involved: S1. Write an application APP_X for channel scanning and install the application APP_X in the background system; S2. When the vehicle is stationary and the vehicle computer or TBOX is not in sleep mode, the application APP_X is run in the background, and the relevant threads of the application APP_X are started. The channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; S3, setting the number of pre-scans of the channel scan to three times, and recording the results of the optimal channel OptimalChannel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of values of the optimal channel results OC1, OC2, and OC3 of the three scans that are the same channel Channel is greater than or equal to 2, then the same channel is recorded as the preset channel Preset Channel; If the results of the optimal channels OC1, OC2, and OC3 obtained from the three scans are all different, two more channel scans are performed, and the results of the two scans are Optimal Channel 4 and Optimal Channel 5 respectively; if there is a same channel in the five scans, the same channel is used as the preset channel; if the optimal channels obtained from the five scans are still different, the channel with the best signal quality among the five channels is used as the preset channel; Setting the preset channel Preset Channel as the current working channel of the vehicle WiFi; S4, storing the preset channel Preset Channel, and recording the vehicle position and time information at that time; S5. When the vehicle computer or TBOX enters the sleep state, exit the application APP_X and stop scanning channels to control the power consumption during sleep.
2. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 1, characterized in that: Before starting the AP next time, the following methods are used to select a working channel: If the background system can obtain the current location information of the vehicle at this time, and the preset channels of multiple records of the current vehicle location within a certain time period are the same, it means that the optimal channel for this position during this period is relatively fixed. The preset channel is extracted as the working channel to directly turn on the AP without performing channel scanning.
3. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 1, characterized in that: When the AP is turned on for the first time and then turned on for the next time, the method of selecting the working channel also includes: If the background system can obtain the current location information of the vehicle at this time, but the preset channels of multiple records of the current vehicle location within a certain time period are different, it means that the optimal channel for this location during this period is not fixed, and the Preset channel recorded most recently is selected as the working channel of the AP.
4. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 2, characterized in that: When the AP is turned on for the first time and then turned on for the next time, the method of selecting the working channel also includes: If the background system cannot obtain the current vehicle's location information at this time, and the vehicle has not moved from the time of the most recently recorded preset channel to the current time, the most recently recorded preset channel is selected as the working channel to turn on the AP.
5. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 4, characterized in that: When the AP is turned on for the first time and then turned on for the next time, the method of selecting the working channel also includes: If the difference between the generation time of a preset channel recorded in a certain time and the current time exceeds the set X hours, the Preset Channel is no longer credible. The channel pre-scan mechanism is triggered before the AP is turned on, and the scan information is saved to the storage area, and the relevant historical data is updated. The Preset Channel calculated by this scan is used as the pre-configuration of the AP work.
6. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 1, characterized in that: After the step S5, if the vehicle computer or TBOX exits the dormant state, but the vehicle is still stationary, the application APP_X is activated again to perform regular channel scanning and setting.
7. The method for automatic channel selection of vehicle-mounted WiFi system according to claim 1, characterized in that: After the step S5, if the vehicle enters the driving state and the vehicle position changes at any time, the application APP_X is exited and the regular channel scan is no longer performed.
8. A vehicle-mounted WiFi systematic channel automatic selection system, characterized in that: The method for automatically selecting a vehicle-mounted WiFi system channel according to any one of claims 1 to 6 comprises: Create an application module: used to write an application APP_X for channel scanning, and install the application APP_X in the background system; Start application module: when the vehicle is stationary and the vehicle computer or TBOX is not in sleep state, the application APP_X is run in the background, the relevant threads of the application APP_X are started, and the channel scan is performed every N seconds, and the interference and channel quality of the relevant channels in the current environment are statistically calculated; A working channel selection module: used to set the number of pre-scans of the channel scan to three times, and record the results of the optimal channel Optimal Channel obtained each time, which are OC1, OC2, and OC3 respectively; if the number of the values of the optimal channel results OC1, OC2, and OC3 of the three scans is greater than or equal to 2, the same channel is recorded as the preset channel Preset Channel; if the results of the optimal channels OC1, OC2, and OC3 of the three scans are all different, two more channel scans are performed, and the results of the two scans are Optimal Channel4 and Optimal Channel5 respectively; if the same channel exists in the five scan data, the same channel is used as the preset channel Preset Channel; if the optimal channels of the five scans are still different, the channel with the best signal quality among the five channels is taken as the preset channel Preset Channel; the preset channel Preset Channel is set as the working channel of the vehicle-mounted WiFi AP; Storage and recording module: used to store the preset channel Preset Channel and record the vehicle position and time information at that time; Exit application module: when the vehicle computer or TBOX enters the sleep state, it exits the application APP_X and stops scanning channels to control the power consumption during sleep.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the steps of the method for automatic channel selection of the in-vehicle WiFi system as described in any one of claims 1 to 7 are implemented.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for automatic channel selection of the in-vehicle WiFi system as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method for selecting optimal channels for APs (access points) in wireless network
CN104754678A
Data sending method and apparatus
CN108650700A
Self-adaptive adjustment method and device for channel scanning time
CN111294887A
AP hotspot channel automatic selection method and device, storage medium and terminal equipment
CN111935754A
WIFI connection method and device, storage medium and mobile terminal
CN113613310A
