Wi-Fi scanning frequency adjustment method, device, electronic equipment and storage medium

By adjusting the Wi-Fi scanning frequency of the vehicle terminal to adapt to the interface and motion status, the problems of high resource consumption and power consumption of the vehicle terminal were solved, achieving efficient utilization of system resources and reduction of power consumption.

CN115696507BActive Publication Date: 2025-10-31BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211355370.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2025-10-31
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

Traditional in-vehicle terminals suffer from excessive system resource consumption and high power consumption when connecting to the hotspot Wi-Fi of mobile devices in the vehicle.

Method used

By detecting the interface status of the in-vehicle terminal and the vehicle's movement status, the Wi-Fi scanning frequency is adjusted to adapt to different needs, including using high-frequency scanning when in the Wi-Fi settings interface, reducing the scanning frequency to reduce resource consumption while in motion, and increasing the scanning frequency to quickly connect to Wi-Fi when stationary.

Benefits of technology

This reduces system resource consumption and power consumption when the vehicle terminal scans for Wi-Fi, while ensuring the stable operation of the driver assistance software while the vehicle is in motion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696507B_ABST
    Figure CN115696507B_ABST
Patent Text Reader

Abstract

This invention proposes a method, device, electronic device, and storage medium for adjusting Wi-Fi scanning frequency, belonging to the field of vehicle networking technology. When the vehicle terminal is not connected to Wi-Fi, the method detects and identifies the currently opened interface of the vehicle terminal. When the interface is the Wi-Fi settings interface, the Wi-Fi scanning frequency is adjusted to the first scanning frequency. When the interface is not the Wi-Fi settings interface, if a saved network is found in the preset network table, the Wi-Fi scanning frequency is adjusted in real time according to the data traffic requirements of each vehicle application running on the vehicle terminal and the vehicle's movement status. This achieves adaptive adjustment of the scanning frequency, eliminating the need for continuous high-frequency scanning, thereby minimizing the system resources occupied by the vehicle terminal scanning Wi-Fi and reducing the power consumption of the vehicle system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle networking technology, and more specifically, to a Wi-Fi scanning frequency adjustment method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the rapid development of automotive electronics technology, vehicles equipped with intelligent in-vehicle systems have become widespread. These intelligent in-vehicle systems rely on networks for operation, and due to the nature of vehicles, connecting to the Wi-Fi hotspot provided by in-vehicle mobile devices is the primary way for these devices to access the network.

[0003] When an in-vehicle terminal connects to a mobile device's Wi-Fi hotspot, it needs to scan for nearby mobile devices. This scanning process consumes resources from the in-vehicle system. Traditional methods of scanning Wi-Fi by in-vehicle terminals suffer from excessive resource consumption and high power consumption. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a Wi-Fi scanning frequency adjustment method, device, electronic device and storage medium, which can adaptively adjust the scanning frequency without constantly scanning at a high frequency, thereby improving the problem of excessive system resource consumption and high power consumption of vehicle-mounted terminals scanning Wi-Fi.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:

[0006] In a first aspect, embodiments of the present invention provide a Wi-Fi scanning frequency adjustment method, applied to an in-vehicle terminal of a vehicle, the method comprising:

[0007] When the vehicle terminal is not connected to Wi-Fi, detect and identify the interface currently open on the vehicle terminal;

[0008] When the interface is a Wi-Fi settings interface, adjust the Wi-Fi scanning frequency to the first scanning frequency;

[0009] When the interface is not in the Wi-Fi settings interface, if a saved network is found in the preset network table, the current data traffic demand of each vehicle application running on the vehicle terminal is obtained in real time, and the vehicle's motion status is also obtained.

[0010] The Wi-Fi scanning frequency is adjusted according to the stated demand and / or the stated motion state.

[0011] Furthermore, the vehicle-mounted terminal is communicatively connected to a motion detection device installed on the vehicle, and the step of acquiring the motion state of the vehicle includes:

[0012] The motion detection device acquires the motion status information of the vehicle.

[0013] The motion state information is processed to obtain the motion state of the vehicle; wherein, the motion state includes a driving state or a stationary state.

[0014] Further, the step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state includes:

[0015] At any given moment, calculate the total demand for the current moment based on the demand quantities described at that moment.

[0016] When the total demand exceeds the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to a second scanning frequency; wherein the second scanning frequency is less than the first scanning frequency.

[0017] Furthermore, the step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state further includes:

[0018] When the total demand does not exceed the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to the first default frequency; wherein the first default frequency is less than the second scanning frequency.

[0019] Further, the step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state includes:

[0020] When the total demand exceeds the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to a third scanning frequency; wherein the third scanning frequency is greater than the second scanning frequency and less than the first scanning frequency.

[0021] Furthermore, the method also includes:

[0022] When the total demand does not exceed the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to the second scanning frequency.

[0023] Furthermore, the method also includes:

[0024] The number of scans and the number of Wi-Fi networks detected each time are counted. If the number of scans exceeds a threshold and the number of Wi-Fi networks remains unchanged, the scanning is stopped.

[0025] Secondly, embodiments of the present invention provide a Wifi scanning frequency adjustment device for use in a vehicle's in-vehicle terminal, the Wifi scanning frequency adjustment device comprising a first detection module, a second detection module, and a frequency adjustment module;

[0026] The first detection module is used to detect and identify the currently open interface of the vehicle terminal when the vehicle terminal is not connected to Wi-Fi;

[0027] The frequency adjustment module is used to adjust the Wi-Fi scanning frequency to the first scanning frequency when the interface is a Wi-Fi settings interface.

[0028] The second detection module is used to, when the interface is not in the Wi-Fi settings interface, if a saved network is found in the preset network table, then obtain the current data traffic demand of each vehicle application running on the vehicle terminal in real time, and obtain the vehicle's motion status.

[0029] The frequency adjustment module is also used to adjust the Wi-Fi scanning frequency according to the respective demand and / or the motion state.

[0030] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the Wi-Fi scanning frequency adjustment method as described in the first aspect.

[0031] Fourthly, embodiments of the present invention provide a storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the Wi-Fi scanning frequency adjustment method as described in the first aspect.

[0032] The Wi-Fi scanning frequency adjustment method, device, electronic device, and storage medium provided in this invention, when the vehicle terminal is not connected to Wi-Fi, if the currently unlocked interface of the vehicle terminal is the Wi-Fi settings interface, the Wi-Fi scanning frequency is adjusted to the first scanning frequency. If the vehicle terminal is not in the Wi-Fi settings interface and there is a saved network, the Wi-Fi scanning frequency is adjusted according to the real-time vehicle movement status and the data traffic demand of each vehicle system. This achieves adaptive adjustment of the scanning frequency, eliminating the need for continuous high-frequency scanning, thereby minimizing the system resources occupied by the vehicle terminal scanning for Wi-Fi and reducing the power consumption of the vehicle system.

[0033] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0034] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 A block diagram of a Wifi scanning frequency adjustment system provided in an embodiment of the present invention is shown.

[0036] Figure 2 This is a schematic flowchart of one of the Wifi scanning frequency adjustment methods provided in an embodiment of the present invention.

[0037] Figure 3 It shows Figure 2 A flowchart illustrating some sub-steps of step S17.

[0038] Figure 4 It shows Figure 2 One of the flowcharts for some sub-steps in step S18.

[0039] Figure 5 It shows Figure 2 The second flowchart of some sub-steps in step S18.

[0040] Figure 6 The second schematic flowchart of the Wifi scanning frequency adjustment method provided in this embodiment of the invention is shown.

[0041] Figure 7 A block diagram of a Wifi scanning frequency adjustment device provided in an embodiment of the present invention is shown.

[0042] Figure 8 A block diagram of an electronic device provided in an embodiment of the present invention is shown.

[0043] Icons: 100-Wifi scanning frequency adjustment system; 110-Vehicle terminal; 120-Motion detection device; 130-Network card; 140-Wifi scanning frequency adjustment device; 150-First detection module; 160-Second detection module; 170-Frequency adjustment module; 180-Electronic device. Detailed Implementation

[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0045] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0046] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0047] Due to the nature of vehicles, connecting to the Wi-Fi hotspot provided by mobile devices inside the vehicle is the primary way for in-vehicle terminals to obtain network access. When connecting to the in-vehicle mobile device's Wi-Fi hotspot, the in-vehicle terminal needs to initiate a scan for nearby mobile devices. This scan process consumes resources from the vehicle's system.

[0048] Currently, the common scanning method for vehicle terminals is to perform Wi-Fi scanning at a fixed scanning frequency, which results in excessive consumption of vehicle system resources and high power consumption due to continuous Wi-Fi scanning.

[0049] Based on the above considerations, embodiments of the present invention provide a Wi-Fi scanning frequency adjustment method, which can adaptively adjust the scanning frequency according to the Wi-Fi connection status of the vehicle terminal, the data traffic demand of each vehicle system, and the vehicle's movement status, eliminating the need for continuous high-frequency scanning and improving the problem of excessive system resource consumption and high power consumption when the vehicle terminal scans Wi-Fi. The following describes this Wi-Fi scanning frequency adjustment method.

[0050] The Wifi scanning frequency adjustment method provided in this embodiment of the invention can be applied to the Wifi scanning frequency adjustment system 100 shown in the figure. The Wifi scanning frequency adjustment system 100 may include a vehicle-mounted terminal 110, a network card 130 on the vehicle-mounted terminal 110, and a motion detection device 120 installed on the vehicle. The vehicle-mounted terminal 110 can communicate with the motion detection device 120 through a CAN bus.

[0051] The motion detection device 120 can be a speed sensor.

[0052] The motion detection device 120 is used to monitor the motion of the vehicle, obtain motion status information, and send the motion status information to the vehicle terminal 110.

[0053] The network card 130 is used to obtain the current data traffic demand of the vehicle applications running on the vehicle terminal 110 in real time, and send the demand of each vehicle application to the vehicle terminal 110.

[0054] The vehicle terminal 110 is used to receive the motion status information and the demand of each vehicle application in real time, and to implement the Wi-Fi scanning frequency adjustment method provided in this embodiment of the invention.

[0055] In one implementation, reference is made to Figure 2 This invention provides a method for adjusting Wi-Fi scanning frequency, including the following steps. In this embodiment, the Wi-Fi scanning frequency adjustment method is applied to... Figure 1 Let's take the vehicle-mounted terminal 110 as an example.

[0056] S11 detects and identifies the currently open interface on the vehicle terminal when the vehicle terminal is not connected to Wi-Fi.

[0057] If the currently opened interface of the vehicle terminal is identified as the Wi-Fi settings interface, proceed to step S13; otherwise, proceed to step S15.

[0058] S13, adjust the Wi-Fi scanning frequency to the first scanning frequency.

[0059] S15: Check if a saved network exists in the preset network table. If a saved network exists, proceed to step S17; otherwise, do not perform a Wi-Fi scan.

[0060] S17: Real-time acquisition of the current data traffic demand of each in-vehicle application running on the in-vehicle terminal, and acquisition of the vehicle's motion status.

[0061] S18 adjusts the Wi-Fi scanning frequency according to various demands and / or movement states.

[0062] The method for detecting and identifying the currently opened interface of the vehicle terminal 110 can be flexibly selected. For example, image recognition can be performed on the interface of the vehicle terminal 110 to determine whether the currently opened interface is a Wi-Fi device interface, or the background of the vehicle terminal 110 can be detected to identify whether the currently opened interface is a Wi-Fi settings interface. In this embodiment, no specific limitation is made.

[0063] In-vehicle applications include, but are not limited to, music playback software and navigation software. When in-vehicle applications download data, access data, play video and audio, and communicate over the network, they generate data traffic requirements. Therefore, the in-vehicle terminal 110 can obtain the current data traffic requirements of each in-vehicle application in real time through the network card 130.

[0064] It should be noted that the first scanning frequency can be the maximum scanning frequency, and the value of the first scanning frequency can be adaptively adjusted according to the application scenario and user needs.

[0065] Compared with the traditional method of scanning Wi-Fi at a fixed scanning frequency, the Wi-Fi scanning frequency adjustment method provided in this embodiment of the invention adjusts the scanning frequency according to the Wi-Fi connection status of the vehicle terminal, the current data traffic demand of each vehicle application, and the vehicle's movement status. It does not require continuous high-frequency scanning, thereby minimizing the system resources occupied by the vehicle terminal scanning Wi-Fi without affecting Wi-Fi scanning and reducing the power consumption of the vehicle system.

[0066] The method for obtaining the vehicle's motion status can be flexibly chosen. For example, the vehicle's operating status can be determined by monitoring its speed or by its energy consumption. In one implementation, referencing... Figure 3 The vehicle's motion status can be obtained through the following steps.

[0067] S171, the motion state information of the vehicle is obtained through the motion detection device.

[0068] Among them, motion status information can be driving speed.

[0069] S172, process the motion state information to obtain the vehicle's motion state. The motion state includes either a moving state or a stationary state.

[0070] It should be understood that when the obtained driving speed is zero, the vehicle is stationary; if the driving speed is not zero, the vehicle is in motion.

[0071] For driving safety and passenger experience considerations, the scanning frequency should be minimized as much as possible when the vehicle is in motion to reduce the resource consumption and power consumption of the vehicle's infotainment system. This ensures that other driving applications (such as navigation software and radio) receive sufficient system resources for smooth operation and to assist driving. Therefore, in one implementation, referring to... Figure 4 Step S18 above may include the following steps.

[0072] S181, at any given moment, calculate the total demand at the current moment based on the various demand quantities at the current moment.

[0073] It should be noted that the data traffic demand of in-vehicle applications can be either data volume or network speed. For example, when the demand is data volume, if the three in-vehicle applications running on the vehicle terminal 110 have data traffic demands of 1GB, 500MB, and 200MB respectively, then the total demand = 1024MB + 500MB + 200MB = 1724MB.

[0074] When the demand is the network speed demand, the data traffic demand of the three in-vehicle applications running on the vehicle terminal 110 is 1Mbps, 5Mbps and 2Mbps respectively. Therefore, the total demand is 1Mbps + 5Mbps + 2Mbps = 8Mbps.

[0075] In practical applications, different forms of demand can be determined based on different needs. In this implementation, the required network speed is taken as the demand quantity.

[0076] S182, when the total demand exceeds the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to the second scanning frequency.

[0077] The second scanning frequency is lower than the first scanning frequency. Furthermore, the traffic threshold represents the maximum network speed that network card 130 can provide. When the total demand (i.e., the total network speed demand) exceeds the traffic threshold, it indicates that network card 130 can no longer support the needs of various in-vehicle applications, and the probability of switching to Wi-Fi increases.

[0078] Through the above steps S181-S183, when the vehicle is in motion, if the total data traffic demand of each in-vehicle application exceeds the traffic threshold, that is, when the total network speed demand exceeds the maximum network speed that the network card can provide, a second scanning frequency is used to scan for Wi-Fi in order to quickly obtain all Wi-Fi information.

[0079] Furthermore, the Wifi scanning frequency adjustment method provided in this embodiment of the invention may also include S183.

[0080] S183, when the total demand does not exceed the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to the first default frequency. The first default frequency is less than the second scanning frequency.

[0081] When the vehicle is in motion, if the total data traffic demand of each in-vehicle application does not exceed the traffic threshold, that is, when the network card can still meet the needs of each in-vehicle application, Wi-Fi scanning can be performed at a lower first default frequency to reduce the number of scans, thereby reducing system resource consumption and power consumption.

[0082] When the vehicle is stationary, the vehicle's driver assistance system and software require little or no resources. In this case, the scanning frequency can be appropriately increased to quickly acquire a Wi-Fi hotspot. Therefore, in one implementation, referring to... Figure 5 The above step S18 may also include the following steps.

[0083] S184, when the total demand exceeds the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to the third scanning frequency. The third scanning frequency is greater than the second scanning frequency but less than the first scanning frequency.

[0084] When the vehicle is stationary, if the total data traffic demand of all in-vehicle applications exceeds the traffic threshold, that is, if the total network speed demand exceeds the maximum network speed that the network card can provide, a third scanning frequency is used to scan for Wi-Fi to quickly obtain all Wi-Fi information, thereby helping the in-vehicle terminal to quickly connect to a Wi-Fi network with better speed.

[0085] Furthermore, the Wifi scanning frequency adjustment method provided in this embodiment of the invention may also include S185.

[0086] S185, when the total demand does not exceed the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to the second scanning frequency.

[0087] When the vehicle is stationary, if the total data traffic demand of each in-vehicle application does not exceed the traffic threshold, that is, when the network card can still meet the needs of each in-vehicle application, Wi-Fi scanning can be performed at a lower first default frequency to reduce the number of scans, thereby further reducing system resource consumption and power consumption.

[0088] Unlike other mobile devices using Wi-Fi, the Wi-Fi hotspots used by in-vehicle terminals primarily originate from the mobile devices of users inside the vehicle (e.g., phones and tablets). Therefore, the Wi-Fi scanning efficiency of the in-vehicle terminal is related to the number of people holding mobile devices inside the vehicle. Based on this, the in-vehicle terminal can also connect to the vehicle's identification devices, allowing the identification device to determine the number of people inside the vehicle when the vehicle is stationary, and thus determine the Wi-Fi scanning frequency accordingly.

[0089] The identification devices include, but are not limited to, facial recognition devices and pressure sensors installed on the seats. When the identification device is a pressure sensor, the number of people in the vehicle can be determined based on the pressure value detected by each pressure sensor.

[0090] Furthermore, determining the Wi-Fi scanning frequency based on the number of people can be further implemented as follows: when the number of people exceeds a threshold, the quotient between the current scanning frequency and the number of people is used as the new scanning frequency.

[0091] The current scanning frequency can be either the second or the third scanning frequency. The number of people threshold can be 2 or other values, and is not specifically limited in this embodiment.

[0092] Furthermore, to avoid unrestricted Wi-Fi scanning leading to excessive system resource consumption and power consumption, in one implementation, refer to... Figure 6 The Wifi scanning frequency adjustment method provided in this embodiment of the invention may further include S19.

[0093] S19: Count the number of scans and the number of Wi-Fi networks detected each time. If the number of scans exceeds the threshold and the number of Wi-Fi networks remains unchanged, stop scanning.

[0094] By using the above step S19, it is possible to ensure that all Wi-Fi networks near the vehicle terminal are scanned, and to a certain extent, it is possible to avoid the consumption of system resources and the generation of large amounts of power consumption caused by unlimited scanning.

[0095] The relationship between the first scan frequency, the second scan frequency, the third scan frequency, and the first default frequency is as follows: first scan frequency > third scan frequency > second scan frequency > first default frequency. For example, the first default frequency is 10 min / scan, the second scan frequency is 5 min / scan, the third scan frequency is 2.5 min / scan, and the first scan frequency is 20 s / scan.

[0096] The Wi-Fi scanning frequency adjustment method provided in this invention adjusts the scanning frequency based on the current data traffic demand of each in-vehicle application and the vehicle's movement state when the in-vehicle terminal is not connected to Wi-Fi. This allows the scanning frequency to be increased only when there is heavy data traffic usage and decreased when the vehicle is relatively stationary while in motion, thereby minimizing the system resources occupied by the in-vehicle terminal scanning for Wi-Fi and reducing the power consumption of the vehicle's infotainment system. Simultaneously, it ensures the stable operation of the driver assistance software while the vehicle is in motion.

[0097] Based on the concept of the above-described Wi-Fi scanning frequency adjustment method, in one embodiment, referring to the figure, the present invention also provides a Wi-Fi scanning frequency adjustment device 140, which can be applied to... Figure 1 The vehicle-mounted terminal 110 in the middle, refer to Figure 7 The Wifi scanning frequency adjustment device 140 includes a first detection module 150, a second detection module 160, and a frequency adjustment module 170.

[0098] The first detection module 150 is used to detect and identify the currently opened interface of the vehicle terminal when the vehicle terminal is not connected to Wi-Fi.

[0099] The frequency adjustment module 170 is used to adjust the Wi-Fi scanning frequency to the first scanning frequency when the interface is the Wi-Fi settings interface.

[0100] The second detection module 160 is used to obtain the current data traffic demand of each vehicle application running on the vehicle terminal and the vehicle's motion status in real time if a saved network is found in the preset network table when the interface is not in the Wi-Fi settings interface.

[0101] The frequency adjustment module 170 is also used to adjust the Wi-Fi scanning frequency according to various demands and / or the motion state.

[0102] In the aforementioned Wi-Fi scanning frequency adjustment device 140, the scanning frequency is adjusted adaptively through the coordinated action of the first detection module 150, the second detection module 160, and the frequency adjustment module 170, eliminating the need for continuous high-frequency scanning. This minimizes the system resources occupied by the vehicle terminal scanning Wi-Fi and reduces the power consumption of the vehicle system.

[0103] Specific limitations regarding the Wi-Fi scanning frequency adjustment device 140 can be found in the limitations of the Wi-Fi scanning frequency adjustment method described above, and will not be repeated here. Each module in the aforementioned Wi-Fi scanning frequency adjustment device 140 can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the electronic device, or stored in software in the memory of the electronic device, so that the processor can call and execute the corresponding operations of each module.

[0104] In one embodiment, an electronic device 180 is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the electronic device 180 includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor of the electronic device 180 provides computing and control capabilities. The memory of the electronic device 180 includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device 180 is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, near-field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements the Wi-Fi scanning frequency adjustment method provided in the above embodiment.

[0105] Figure 8The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the electronic device 180 to which the present invention is applied. The specific electronic device 180 may include, but is not limited to, the following: Figure 8 The diagram shows more or fewer components, or combinations of certain components, or different component arrangements.

[0106] In one embodiment, the Wifi scanning frequency adjustment device 140 provided by the present invention can be implemented as a computer program, and the computer program can be implemented in the form of, for example, Figure 8 The device operates on the electronic device 180 shown. The memory of the electronic device 180 can store various program modules that make up the Wi-Fi scanning frequency adjustment device 140, for example, Figure 7 The first detection module 150, the second detection module 160, and the frequency adjustment module 170 are shown. The computer program composed of these modules causes the processor to execute the steps in the Wi-Fi scanning frequency adjustment method described in this specification.

[0107] For example, Figure 8 The electronic device 180 shown can be accessed via, for example Figure 7 The first detection module 150 in the Wi-Fi scanning frequency adjustment device 140 shown executes step S11. The electronic device 180 can execute steps S15 and S17 through the second detection module 160. The electronic device 180 can execute steps S13 and S18 through the frequency adjustment module 170.

[0108] In one embodiment, an electronic device 180 is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: when the vehicle terminal is not connected to Wi-Fi, detect and identify the currently opened interface of the vehicle terminal; when the interface is a Wi-Fi settings interface, adjust the Wi-Fi scanning frequency to a first scanning frequency; when the interface is not a Wi-Fi settings interface, if a saved network is found in a preset network table, obtain the current data traffic demand of each vehicle application running on the vehicle terminal in real time, and obtain the vehicle's motion status; adjust the Wi-Fi scanning frequency according to the demand and / or the motion status.

[0109] In one embodiment, a storage medium is provided storing a computer program. When the computer program is executed by a processor, it performs the following steps: when the vehicle terminal is not connected to Wi-Fi, it detects and identifies the currently opened interface of the vehicle terminal; when the interface is a Wi-Fi settings interface, it adjusts the Wi-Fi scanning frequency to a first scanning frequency; when the interface is not a Wi-Fi settings interface, if a saved network is found in a preset network table, it obtains in real time the current data traffic demand of each vehicle application running on the vehicle terminal and obtains the vehicle's motion status; and adjusts the Wi-Fi scanning frequency according to the demand and / or the motion status.

[0110] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0111] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0112] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0113] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for adjusting Wi-Fi scanning frequency, characterized in that, An in-vehicle terminal applied to a vehicle, the method comprising: When the vehicle terminal is not connected to Wi-Fi, detect and identify the interface currently open on the vehicle terminal; When the interface is a Wi-Fi settings interface, adjust the Wi-Fi scanning frequency to the first scanning frequency; When the interface is not in the Wi-Fi settings interface, if a saved network is found in the preset network table, the current data traffic demand of each vehicle application running on the vehicle terminal is obtained in real time, and the vehicle's motion status is also obtained; otherwise, Wi-Fi scanning is not performed. The Wi-Fi scanning frequency is adjusted according to the stated demand and / or the stated motion state.

2. The Wi-Fi scanning frequency adjustment method according to claim 1, characterized in that, The vehicle-mounted terminal is communicatively connected to a motion detection device installed on the vehicle, and the step of acquiring the motion state of the vehicle includes: The motion detection device acquires the motion status information of the vehicle. The motion state information is processed to obtain the motion state of the vehicle; wherein, the motion state includes a driving state or a stationary state.

3. The Wi-Fi scanning frequency adjustment method according to claim 2, characterized in that, The step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state includes: At any given moment, calculate the total demand for the current moment based on the demand quantities described at that moment. When the total demand exceeds the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to a second scanning frequency; wherein the second scanning frequency is less than the first scanning frequency.

4. The Wifi scanning frequency adjustment method according to claim 3, characterized in that, The step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state further includes: When the total demand does not exceed the traffic threshold and the movement state is driving, the Wi-Fi scanning frequency is adjusted to the first default frequency; wherein the first default frequency is less than the second scanning frequency.

5. The Wifi scanning frequency adjustment method according to claim 3, characterized in that, The step of adjusting the Wi-Fi scanning frequency according to the respective demands and / or the motion state includes: When the total demand exceeds the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to a third scanning frequency; wherein the third scanning frequency is greater than the second scanning frequency and less than the first scanning frequency.

6. The Wifi scanning frequency adjustment method according to claim 3, characterized in that, The method further includes: When the total demand does not exceed the traffic threshold and the movement state is stationary, the Wi-Fi scanning frequency is set to the second scanning frequency.

7. The Wifi scanning frequency adjustment method according to any one of claims 1-6, characterized in that, The method further includes: The number of scans and the number of Wi-Fi networks detected each time are counted. If the number of scans exceeds a threshold and the number of Wi-Fi networks remains unchanged, the scanning is stopped.

8. A Wi-Fi scanning frequency adjustment device, characterized in that, The in-vehicle terminal used in vehicles includes a Wi-Fi scanning frequency adjustment device comprising a first detection module, a second detection module, and a frequency adjustment module. The first detection module is used to detect and identify the currently open interface of the vehicle terminal when the vehicle terminal is not connected to Wi-Fi; The frequency adjustment module is used to adjust the Wi-Fi scanning frequency to the first scanning frequency when the interface is a Wi-Fi settings interface. The second detection module is used to, when the interface is not in the Wi-Fi settings interface, if a saved network is found in the preset network table, then obtain the current data traffic demand of each vehicle application running on the vehicle terminal in real time, and obtain the vehicle's movement status; otherwise, no Wi-Fi scan is performed. The frequency adjustment module is also used to adjust the Wi-Fi scanning frequency according to the respective demand and / or the motion state.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program executable by the processor, the processor being able to execute the computer program to implement the Wifi scanning frequency adjustment method as described in any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the Wifi scanning frequency adjustment method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • WiFi hotspot scanning control method, mobile terminal and storage medium

    CN107484236A

  • Network connection method and device, mobile terminal, vehicle-mounted terminal and storage medium

    CN112399386A

  • Techniques and apparatus to manage power in wireless device

    US20140171053A1