Display device and wi-fi scan control method
By setting an application whitelist in the display device, WiFi scanning is only performed on pre-configured applications, which solves the problem of unstable data transmission caused by WiFi scanning and improves the success rate of calibration functions and audio playback stability of devices such as wireless speakers.
Patent Information
- Application Number
- CN202411082513.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2044-08-07
AI Technical Summary
Unstable WiFi P2P data transmission, especially during WiFi scanning, leads to unstable device performance, such as wireless speaker calibration failure and audio playback stuttering.
By setting an application whitelist in the display device, only WiFi scanning requests from applications in the pre-configured application whitelist are responded to, while other WiFi scanning requests are blocked, ensuring data transmission stability when the target device is in calibration mode.
It improved the success rate of calibration functions on target devices, resolved the data transmission instability issue caused by WiFi scanning, and enhanced the user's network experience.
Smart Images

Figure CN119520887B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication. More particularly, it relates to a display device and a WiFi scanning control method. BACKGROUND
[0002] As home entertainment systems become more and more complex, more and more devices need to be connected. WiFi P2P (Peer-to-Peer, WiFi direct connection) technology can support direct connection between multiple devices without going through a central access point (such as a router). This technology has been applied in some devices such as smart TVs, wireless speakers, smartphones, etc.
[0003] However, WiFi P2P technology can support direct connection between devices, but in actual use, the stability of the connection may be affected, especially in the case of WiFi scanning, for example, when WiFi scanning is driven to work in MCC (Multi-Channel Concurrency) mode, so when WiFi scanning, the WiFi channel is cut off from the P2P channel, causing unstable WiFi P2P data transmission, that is, WiFi scanning will cause unstable WiFi P2P data transmission of the device. SUMMARY
[0004] The exemplary embodiments of the present application provide a display device and a WiFi scanning control method to solve the technical problem of unstable use state of the target device connected with the display device WiFi direct connection when applying WiFi scanning.
[0005] The technical solutions provided by the embodiments of the present application are as follows:
[0006] In a first aspect, the embodiments of the present application provide a display device, comprising:
[0007] a display;
[0008] a controller connected with the display, the controller being configured to:
[0009] receive an application WiFi scanning request and obtain an application identifier;
[0010] determine whether a target device connected with the display device WiFi direct connection belongs to a calibration mode;
[0011] if the target device is in the calibration mode, determine whether the application identifier belongs to a preconfigured application whitelist list;
[0012] if the application identifier does not belong to the application whitelist list, shield the application WiFi scanning request.
[0013] In some embodiments, the controller is further configured to:
[0014] In a case that the target device is not in the calibration mode, acquire a WiFi connection state of the display device;
[0015] In a case that the WiFi connection state is WiFi connected, respond to the application WiFi scanning request.
[0016] In some embodiments, the controller is further configured to:
[0017] In a case that the WiFi connection state is WiFi not connected, determine whether the display device is connected with the target device;
[0018] In a case that the display device is connected with the target device, determine whether the application identifier belongs to a pre-configured application whitelist list;
[0019] In a case that the application identifier does not belong to the application whitelist list, shield the application WiFi scanning request.
[0020] In some embodiments, the controller is further configured to:
[0021] In a case that the display device is not connected with the target device, respond to the application WiFi scanning request.
[0022] In some embodiments, the controller is further configured to:
[0023] In a case that the application identifier belongs to the application whitelist list, respond to the application WiFi scanning request.
[0024] In some embodiments, the controller, in performing receiving an application WiFi scanning request, acquiring an application identifier, is specifically configured to:
[0025] acquire an application calling a start scanning interface of a WiFi manager, and receive the application WiFi scanning request;
[0026] acquire the application identifier based on the WiFi manager through an application identifier acquiring function.
[0027] In some embodiments, the controller, in performing determining whether a target device connected with the display device through WiFi direct belongs to a calibration mode, is specifically configured to:
[0028] acquire a target attribute value of the target device based on a WiFi server;
[0029] determine whether the target device belongs to the calibration mode based on the target attribute.
[0030] In a second aspect, the embodiments of the present application provide a WiFi scanning control method, applied to a display device, the method comprising:
[0031] receiving an application WiFi scanning request and obtaining an application identifier;
[0032] determining whether a target device connected with the display device via WiFi belongs to a calibration mode;
[0033] in a case where the target device is in the calibration mode, determining whether the application identifier belongs to a preconfigured application whitelist list;
[0034] in a case where the application identifier belongs to the application whitelist list, responding to the application WiFi scanning request.
[0035] In some embodiments, the method further comprises:
[0036] in a case where the target device is not in the calibration mode, obtaining a WiFi connection state of the display device;
[0037] in a case where the WiFi connection state is WiFi connection, responding to the application WiFi scanning request.
[0038] In some embodiments, the method further comprises:
[0039] in a case where the WiFi connection state is WiFi disconnection, determining whether the display device is connected with the target device;
[0040] in a case where the display device is connected with the target device, determining whether the application identifier belongs to a preconfigured application whitelist list;
[0041] in a case where the application identifier does not belong to the application whitelist list, shielding the application WiFi scanning request.
[0042] In some embodiments, the method further comprises:
[0043] in a case where the display device is not connected with the target device, responding to the application WiFi scanning request.
[0044] In some embodiments, the method further comprises:
[0045] in a case where the application identifier belongs to the application whitelist list, responding to the application WiFi scanning request.
[0046] In some embodiments, the receiving an application WiFi scanning request and obtaining an application identifier comprises:
[0047] The application acquires an open scanning interface of the WiFi manager, and receives the WiFi scanning request of the application.
[0048] The WiFi manager acquires the application identifier based on an application identifier acquisition function.
[0049] In some embodiments, the determining whether the target device of the display device WiFi direct connection belongs to a calibration mode comprises:
[0050] The WiFi server acquires the target attribute value of the target device based on the WiFi server.
[0051] The WiFi server determines whether the target device belongs to a calibration mode based on the target attribute.
[0052] In some embodiments, the acquiring the WiFi connection state of the display device comprises:
[0053] The WiFi server acquires network working information based on a network acquisition function.
[0054] The WiFi server determines the WiFi connection state based on the network working information.
[0055] In some embodiments, the determining whether the display device is connected with the target device comprises:
[0056] The WiFi server acquires a target device connection identifier in a setting database.
[0057] The WiFi server determines whether the display device is connected with the target device based on the target device connection identifier.
[0058] In a third aspect, the embodiments of the present application provide an electronic device, comprising a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program, so that the electronic device implements the WiFi scanning control method in the second aspect or any one of the embodiments of the second aspect.
[0059] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, and the computer readable storage medium stores a computer program, when the computer program is executed by a computing device, the computing device implements the WiFi scanning control method in the second aspect or any one of the embodiments of the second aspect.
[0060] In a fifth aspect, the embodiments of the present application provide a computer program product, when the computer program product is executed on a computer, the computer implements the WiFi scanning control method in the second aspect or any one of the embodiments of the second aspect.
[0061] From the above technical solutions, the display device and the WiFi scanning control method provided by the embodiments of the present application receive a WiFi scanning request, and obtain an application identifier; it is judged whether a target device connected with the display device via WiFi belongs to a calibration mode, and in the case that the target device is in the calibration mode, it is judged whether the application identifier belongs to a preconfigured application whitelist list, and in the case that the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded. The embodiments of the present application are used to solve the technical problem that the calibration and other use states of the target device connected with the display device via WiFi are unstable when the application WiFi scanning is performed. Through the application WiFi scanning request, the target device is in the calibration mode, and only the application WiFi scanning request in the preconfigured application whitelist list is responded, and other WiFi scanning requests are shielded, so that the normal WiFi scanning use of some specific applications in the display device and the stability of the use of the target device are ensured when the application WiFi scanning is performed, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present application or the implementation manners in the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art according to these drawings.
[0063] Figure 1 A scene architecture diagram of a WiFi scanning control method in some embodiments is shown;
[0064] Figure 2 A hardware configuration block diagram of a control device in some embodiments is shown;
[0065] Figure 3 A hardware configuration block diagram of a display device in some embodiments is shown;
[0066] Figure 4 A software configuration diagram of a display device in some embodiments is shown;
[0067] Figure 5 An example diagram of channel switching in some embodiments is shown;
[0068] Figure 6 An example diagram of a display device system framework according to some embodiments is shown;
[0069] Figure 7 An example diagram of a WiFi scanning control method according to some embodiments is shown;
[0070] Figure 8 A flowchart of a WiFi scanning control method according to some embodiments is shown;
[0071] Figure 9 A scenario flowchart of a WiFi scan control method is shown according to some embodiments;
[0072] Figure 10 A flowchart of another WiFi scan control method is shown according to some embodiments;
[0073] Figure 11 A flowchart of yet another WiFi scan control method is shown according to some embodiments;
[0074] Figure 12 A scenario example diagram of a WiFi scan control is shown according to some embodiments;
[0075] Figure 13 A flowchart of still another WiFi scan control method is shown according to some embodiments;
[0076] Figure 14 A scenario example diagram of another WiFi scan control is shown according to some embodiments;
[0077] Figure 15 A flowchart of still another WiFi scan control method is shown according to some embodiments;
[0078] Figure 16 A scenario example diagram of yet another WiFi scan control method is shown according to some embodiments. DETAILED DESCRIPTION
[0079] For the purpose of clarity, the description herein will now be described in detail by making reference to the attached drawings to which the described embodiments have been added for illustrative purposes only and which should not be considered limiting in any way.
[0080] It should be noted that the brief description of terms in the present application is only for the convenience of understanding the following described embodiments, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0081] The terms "comprising" and "having" and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that contains a list of components, which is not necessarily limited to all the components clearly listed, but can include other components that are not clearly listed or inherent to such products or devices.
[0082] The display device provided by the embodiments of the present application can have various implementation forms, for example, can be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 is a specific implementation of the display device of the present application.
[0083] Figure 1 is a schematic diagram of an operation scenario between the display device and the control device according to an embodiment. As shown in Figure 1 , a user can operate the display device 200 through the smart device 300 or the control device 100.
[0084] In some embodiments, the control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication modes, to control the display device 200 through wireless or wired mode. The user can input user instructions through the keys on the remote controller, voice input, control panel input, etc., to control the display device 200.
[0085] In some embodiments, the smart device 300 (such as a mobile terminal, a tablet computer, a computer, a notebook computer, etc.) can also be used to control the display device 200. For example, an application running on the smart device is used to control the display device 200.
[0086] In some embodiments, the display device can not receive instructions using the above-mentioned smart device or control device, but can receive user control through touch or gesture, etc.
[0087] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300, for example, can directly receive user voice instructions through a voice instruction acquisition module configured inside the display device 200, or can receive user voice instructions through a voice control device arranged outside the display device 200.
[0088] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 can be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 can provide various content and interaction to the display device 200. The server 400 can be a cluster, or multiple clusters, and can include one or more types of servers.
[0089] Figure 2 is a configuration block diagram of the control device 100 according to an exemplary embodiment. As shown inFigure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, a power supply. The control device 100 can receive the input operation instruction of the user, and convert the operation instruction into an instruction that can be recognized and responded by the display device 200, and play a role of an intermediary in the interaction between the user and the display device 200.
[0090] In some embodiments, the display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, a user interface.
[0091] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an n-th interface for input / output.
[0092] In some embodiments, the display 260 includes a display screen component for presenting a picture, and a driving component for driving the image display, a component for receiving the image signal originating from the output of the controller, and a component for displaying the video content, the image content, and the menu operation interface, and a user operation UI interface.
[0093] In some embodiments, the display 260 can be a liquid crystal display, an OLED display, and a projection display, and can also be a projection device and a projection screen.
[0094] In some embodiments, the communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator can include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish the sending and receiving of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0095] In some embodiments, the user interface can be used to receive the control signal of the control device 100 (such as an infrared remote controller, etc.).
[0096] In some embodiments, the detector 230 is used to collect signals of the external environment or interaction with the outside. For example, the detector 230 includes a light receiver for collecting the intensity of ambient light; or the detector 230 includes an image collector such as a camera, which can be used to collect the external environment scene, the attribute of the user or the user interaction gesture, or the detector 230 includes a sound collector such as a microphone, which is used to receive external sound.
[0097] In some embodiments, the external device interface 240 can include, but is not limited to, any one or more of a High-Definition Multimedia Interface (HDMI), an analog or digital High-Definition Component Input interface (Component), a Composite Video Input interface (CVBS), a USB input interface (USB), an RGB port, etc. It can also be a composite input / output interface formed by a plurality of the above interfaces.
[0098] In some embodiments, the tuner and demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio / video signals and EPG data signals from a plurality of broadcast television signals.
[0099] In some embodiments, the controller 250 and the tuner and demodulator 210 can be located in different separate devices, i.e., the tuner and demodulator 210 can also be located in an external device of the main device where the controller 250 is located, such as an external set-top box, etc.
[0100] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations by storing various software control programs in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.
[0101] In some embodiments, the object can be any one of selectable objects, such as a hyperlink, an icon, or other operable control. The operation related to the selected object can be an operation of displaying a page connected to a hyperlink, a document, an image, etc., or an operation of executing a program corresponding to the icon.
[0102] In some embodiments, the controller includes at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to nth interface for input / output, a communication bus, etc.
[0103] The user can input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0104] In some embodiments, a "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable by the user. The commonly used form of a user interface is a graphic user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an icon, window, control, etc. interface element displayed in the display screen of an electronic device, wherein the control can include an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, etc. visual interface element.
[0105] Referring to Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, the Applications layer (referred to as "application layer"), the Application Framework layer (referred to as "framework layer"), the Android runtime and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0106] In some embodiments, at least one application program is running in the application layer, which can be a window (Window) program, a system setting program or a clock program, etc. provided by the operating system; or an application program developed by a third-party developer. In specific implementation, the application program package in the application layer is not limited to the above examples.
[0107] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center, which decides the actions of the application programs in the application layer. The application programs can access the resources in the system and obtain the services of the system through the API interface in the execution.
[0108] As Figure 4As shown, the application framework layer in the embodiments of the present application includes managers (Managers) and content providers (Content Provider), wherein the managers include at least one of the following modules: an activity manager (ActivityManager) for interacting with all activities running in the system; a location manager (Location Manager) for providing system location services to system services or applications; a package manager (Package Manager) for retrieving various information related to application packages currently installed on the device; a notification manager (NotificationManager) for controlling the display and clearing of notification messages; and a window manager (Window Manager) for managing icons, windows, toolbars, wallpapers and desktop components on the user interface.
[0109] In some embodiments, the activity manager is used to manage the life cycle of each application and the general navigation back function, such as controlling the exit, opening, back, etc. of the application. The window manager is used to manage all window programs, such as obtaining the size of the display screen, determining whether there is a status bar, locking the screen, intercepting the screen, controlling the display window change (such as reducing the display window, shaking the display, twisting the display, etc.) and the like.
[0110] In some embodiments, the system runtime library layer provides support for the upper layer, i.e. the framework layer. When the framework layer is used, the Android operating system runs the C / C++ library contained in the system runtime library layer to realize the functions of the framework layer.
[0111] In some embodiments, the kernel layer is the layer between hardware and software. As shown, the kernel layer at least includes at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver, etc. Figure 4
[0112] In actual application, the target device such as a wireless sound box and a display device such as a television are networked, and a WiFi P2P connection is used. However, the WiFi function used by the user and the WiFi P2P connection commonly use a WiFi chip hardware, and the working mode is MCC, so when the WiFi is scanned, it will affect the target device such as a wireless sound box.
[0113] It can be understood that the WiFi scanning has two main influences on the target device such as the wireless sound box: for example, the calibration function of the target device such as the wireless sound box, such as the position of the wireless sound box changes, and the calibration uses the WiFi P2P transmission data, and at this time, if the WiFi scanning is performed, the calibration fails; for another example, the audio playing effect of the wireless sound box, when the television transmits the audio data to the wireless sound box using the WiFi P2P, if the WiFi is scanning, the sound of the sound box is stuttered.
[0114] As an example, as shown in Figure 5 , the P2P channel and the Wlan channel are included, for example, when the television transmits the audio data to the wireless sound box using the WiFi P2P, at this time, the P2P working time on the P2P channel is T1, if the WiFi scanning is performed, the time for switching the P2P channel to the Wlan channel is T2, and the working time on the Wlan channel is T3, and the time for switching the Wlan channel to the P2P channel is T2, thereby causing the WiFi P2P data transmission to be unstable, resulting in the sound of the wireless sound box being stuttered.
[0115] The display device and the WiFi scanning control method of the embodiment of the application can ensure that the calibration function of the target device such as the wireless sound box is successful, and can optimize the data transmission stability of the target device, for example, the problem of the audio stuttering of the wireless sound box, and improve the network experience of the user.
[0116] In some embodiments, referring to Figure 6 , the system framework diagram of the WiFi scanning control of the embodiment of the application includes an application layer, a system layer, a kernel layer, a driver layer and the kernel layer; specifically, the application such as the home page and the setting will call the WiFi scanning interface through the client WiFiManager of the system layer, after the server WiFi service receives it, finally, it will be called to the WiFiCond in the kernel communication process, the WiFiCond communicates with the kernel through the Netlink, and then the kernel notifies the driver layer WiFi ko to perform the WiFi scanning.
[0117] Specifically, as shown in Figure 7 , the application triggers the scanning to call the WiFiManager interface through StartScan (start scanning), is bound to WiFiServiceImpl (WiFi service implementation class) and then is posted to a fixed thread to be delivered to ScanRequestProxy (scan request proxy). ScanRequestProxy calls the interface of WiFiScanner (WiFi scanner) again.
[0118] AsyncChannel (Asynchronous Channel) sends a message to WiFiScanningServiceImpl (WiFi scanning service implementation class), and then to WiFiCondScannerImpl (WiFi daemon scanner implementation class), and then to WiFiNative (WiFi interface class), and then WiFiNative (WiFi interface class) calls WiFiCondControl (WiFi daemon control) to WiFiCond (WiFi daemon) that interacts with the kernel, and WiFiCond finally notifies the kernel to the driver to perform scanning.
[0119] Specifically, when the scanning result is ready, the kernel notifies WiFiCond, and WiFiCond is called back to WiFiNative, and then WiFiNative notifies WiFiCondScannerImpl to update the scanning result mLatestSingleScanResult through WiFiMonitor.
[0120] WiFiCondScannerImpl sends the latest scanning result WiFiScanningServiceImpl to WiFiScanner, and finally notifies ScanRequestProxy to update the scanning result mLastScanResults required by the application. Finally, after the application receives the broadcast of the completion of the WiFi scanning, the WiFi scanning result can be obtained through the getScanResults interface.
[0121] The process of WiFi scanning control in the embodiment is described in detail as follows.
[0122] Figure 8 A flowchart of a WiFi scanning control method according to some embodiments is shown. The display device provided in the embodiments of the present application, the controller is configured to perform Figure 8 The WiFi scanning control method includes:
[0123] Step 801, receiving an application WiFi scanning request, and obtaining an application identifier.
[0124] In the embodiments of the present application, the application WiFi scanning request refers to the WiFi scanning request initiated by the application installed on the display device, for example, the application WiFi scanning request triggered by the weather application to obtain location information; and for example, the application WiFi scanning request triggered by the video application to obtain the latest video message.
[0125] In the embodiments of the present application, the application identifier can uniquely identify an application. Specifically, the application identifier refers to the application that triggers the application WiFi scanning request.
[0126] In the embodiments of the present disclosure, there are many ways to receive the application WiFi scanning request and obtain the application identifier. As an example, the application WiFi scanning request is parsed to obtain the application identifier. As another example, the application calls the start scanning interface of the WiFi manager, receives the application WiFi scanning request, and obtains the application identifier based on the WiFi manager through the application identifier obtaining function.
[0127] In step 802, it is determined whether the target device connected to the display device via WiFi belongs to the calibration mode.
[0128] In the embodiments of the present disclosure, the display device can be a television or the like, and the target device refers to a device connected to the display device via WiFi, such as a wireless sound box or a smart phone, which is selected and set according to the application scenario. The display device and the target device can be connected or not connected in the WiFi direct connection mode.
[0129] In the embodiments of the present disclosure, the target device can be one or more. It can be understood that the target device has a corresponding target application on the display device, and the mode state of the target device can be determined based on the target attribute value of the target application. For example, the target attribute value of the target device is obtained, and it is determined whether the target device belongs to the calibration mode based on the target attribute. The calibration mode refers to the position calibration processing of the target device.
[0130] In step 803, it is determined whether the application identifier belongs to the preconfigured application whitelist list when the target device is in the calibration mode.
[0131] In the embodiments of the present disclosure, the application whitelist list can be preconfigured according to the application scenario, for example, the application identifiers of the home page and the settings are stored in the application whitelist list, and the application whitelist list can be updated in real time according to the user's use demand.
[0132] It can be understood that the application identifier in the application whitelist list means that the application WiFi scanning request initiated by the application identifier does not need to be shielded, and the application WiFi scanning request initiated by the application identifier not in the application whitelist list needs to be shielded.
[0133] In the embodiments of the present disclosure, when the target device is in the calibration mode, in order to ensure the accuracy of the calibration of the target device, it is determined whether the application identifier belongs to the preconfigured application whitelist list. Specifically, the application identifier is matched with the application identifier in the application whitelist list to determine whether the application identifier exists in the application whitelist list.
[0134] Step 804: If the application identifier is not in the application whitelist, block the application's WiFi scanning request.
[0135] In this embodiment, if the application identifier is not in the application whitelist, it means that the application identifier is not a necessary WiFi application scan. In order to ensure the data transmission stability of the target device, the application WiFi scan request is blocked.
[0136] It should be noted that when an application identifier is included in the application whitelist, it responds to the application's WiFi scanning request to meet the WiFi scanning needs of certain applications on the display device, such as far-field voice and weather applications.
[0137] In the example above, by having the target device in calibration mode when an application makes a WiFi scanning request, the device only responds to WiFi scanning requests from applications in the pre-configured application whitelist, while other WiFi scanning requests are blocked. This ensures that some specific applications on the display device can perform normal WiFi scanning during application WiFi scanning, as well as the stability of the target device, thus improving the user experience.
[0138] Reference Figure 9 As shown, Figure 9 For implementation Figure 8 A schematic diagram of the display device illustrating the WiFi scanning control method. Used to implement... Figure 9 The display device of the WiFi scanning control method shown may include: a receiving and acquiring module 901, a first judging module 902, a second judging module 903, and a blocking module 904. The receiving and acquiring module 901 is used to receive application WiFi scanning requests and acquire application identifiers; the first judging module 902 is used to judge whether the target device directly connected to the display device via WiFi is in calibration mode; the second judging module 903 is used to judge whether the application identifier belongs to a pre-configured application whitelist if the target device is in calibration mode; and the blocking module 904 is used to block application WiFi scanning requests if the application identifier does not belong to the application whitelist.
[0139] Figure 10 A flowchart of another WiFi scanning control method according to some embodiments is shown. This embodiment further optimizes the above-described WiFi scanning control method based on the previous embodiments. Figure 10 As shown, the method also includes:
[0140] In some embodiments of this application, when the target device is not in calibration mode, the WiFi connection status of the display device is obtained, and when the WiFi connection status is WiFi connected, the application responds to the WiFi scanning request.
[0141] In the embodiments of the present application, the WiFi connection state of the display device refers to whether the display device is connected to WiFi. Specifically, the WiFi server obtains network working information based on a network obtaining function, and determines the WiFi connection state based on the network working information. For example, the WiFiService determines whether the network is connected by obtaining the network working information NetworkInfo through the network obtaining function getActiveNetworkInfo(), and determining whether the network is connected through NetworkInfo.isConnected() in the network working information.
[0142] In some embodiments of the present application, in the case that the WiFi connection state is WiFi not connected, it is determined whether the display device is connected to the target device. In the case that the display device is connected to the target device, it is determined whether the application identifier belongs to the preconfigured application whitelist list. In the case that the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded.
[0143] In the embodiments of the present application, in the case that the WiFi connection state is WiFi not connected, that is, the display device is not connected to WiFi, it is further determined whether the display device is connected to the target device. Specifically, the WiFi server obtains the target device connection identifier in the database based on the WiFi server, and determines whether the display device is connected to the target device based on the target device connection identifier. Here, whether the display device and the target device are connected can be understood as whether the display device and the target device are in data transmission, such as the scenario that the television transmits audio to the wireless sound box for playing.
[0144] Specifically, the target device application of the display device sets the target device connection identifier in the database to a first target value, for example, 1, after the target device connection is successful. After the target device is disconnected, the target device application of the display device sets the target device connection identifier in the database to a second target value, for example, 0.
[0145] Therefore, in the case that the display device is not connected to WiFi, the WiFiService obtains the target device connection identifier in the database to determine whether the display device is connected to the target device. In the case that the display device is connected to the target device, it is determined whether the application identifier belongs to the preconfigured application whitelist list. In the case that the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded.
[0146] In some embodiments of the present application, in the case that the display device is not connected to the target device, the application WiFi scanning request is responded.
[0147] In some embodiments of the present application, in the case that the application identifier belongs to the application whitelist list, the application WiFi scanning request is responded.
[0148] In the embodiments of the present application, when the display device is not connected with the target device, or when the application identifier is in the application whitelist list, the application WiFi scanning request is responded.
[0149] Thus, the influence of WiFi scanning on the WiFi direct transmission data of the target device can be effectively solved, the success rate of the calibration function of the target device is ensured, the problem of sound playing lag caused by WiFi scanning of the target device is solved, and the network experience of the user is improved.
[0150] Figure 11 A flowchart of another WiFi scanning control method according to some embodiments is shown. The present embodiment further optimizes the WiFi scanning control method based on the above-mentioned embodiments. As shown in Figure 11 The method comprises:
[0151] In some embodiments of the present application, the application calls the start scanning interface of the WiFi manager, receives the application WiFi scanning request, and obtains the application identifier based on the WiFi manager through the application identifier obtaining function.
[0152] In some embodiments of the present application, the target attribute value of the target device is obtained based on the WiFi server, and whether the target device belongs to the calibration mode is determined based on the target attribute.
[0153] In some embodiments of the present application, when the target device is in the calibration mode, it is determined whether the application identifier belongs to the pre-configured application whitelist list, when the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded, and when the application identifier belongs to the application whitelist list, the application WiFi scanning request is responded.
[0154] For example, after the target device (such as a wireless sound box) of the display device (such as a television) enters the calibration mode, the target attribute value "sys.vt.calibration_status" is set to 1. After the calibration is completed, the target attribute value "sys.vt.calibration_status" is set to 0.
[0155] As an example, Figure 12As shown, in step 12.1, startScan() is applied; in step 12.2, startScan() interface is called through WiFiManager; in step 12.3, application identification is obtained through WiFiManager based on Context.getOpPackageName(); in step 12.4, application identification is received through WiFiService; in step 12.5, target attribute value is obtained through WiFiService to determine whether it is 1; if it is 1, step 12.6 is executed to determine whether the application identification is in the application whitelist list through WiFiService; if it is not, step 12.7 is executed to return an error, prompting that WiFi scanning fails; if it is not 1, step 12.8 is executed to continue the subsequent WiFi scanning processing flow.
[0156] Specifically, when the application calls the startScan() interface of WiFiManager, WiFiManager can obtain the application identification (for example, application package name, PackageName) of the current WiFi scanning through the method Context.getOpPackageName(); then WiFiManager passes the application identification to WiFiService, WiFiService judges whether "sys.vt.calibration_status" is 1, if it is 1, it is further judged whether PackageName is in the application whitelist list, if it is not, an error is returned, informing that the scanning fails. If it is, ScanRequestProxy is further called to finally notify the kernel through WiFiCond to let the driver scan. That is to say, if WiFiService judges that "sys.vt.calibration_status" is not 1, normal scanning is performed (that is, ScanRequestProxy is further called to finally notify the kernel through WiFiCond to let the driver scan).
[0157] Therefore, the influence of WiFi scanning on the transmission data of the target device can be effectively solved, and the success rate of the calibration function of the target device is ensured.
[0158] Figure 13 A flowchart of still another WiFi scanning control method according to some embodiments is shown. The present embodiment further optimizes the above WiFi scanning control method on the basis of the above embodiments. As shown, the method comprises: Figure 13
[0159] In some embodiments of the present application, an application WiFi scanning request is received, application identification is obtained, and in the case that the target device is not in the calibration mode, the WiFi connection state of the display device is obtained.
[0160] In some embodiments of the present application, the application WiFi scanning request is responded to when the WiFi connection state is WiFi connected.
[0161] In some embodiments of the present application, when the WiFi connection state is WiFi not connected, it is determined whether the display device and the target device are connected, and when the display device and the target device are connected, it is determined whether the application identifier belongs to a pre-configured application whitelist list.
[0162] In some embodiments of the present application, when the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded, and when the application identifier belongs to the application whitelist list, the application WiFi scanning request is responded to.
[0163] In some embodiments of the present application, the application WiFi scanning request is responded to when the display device and the target device are not connected.
[0164] For example, the target device (such as a wireless sound box) of the display device (such as a television) sets the target device connection identifier "sound_wireless_speaker_enable" in the database to 1 after the target device is successfully connected, and sets the target device connection identifier "sound_wireless_speaker_enable" in the database to 0 after the target device is disconnected.
[0165] As an example, Figure 14As shown, step 14.1 applies startScan(); step 14.2 calls the startScan() interface through the WiFiManager; step 14.3 obtains the application identifier based on Context.getOpPackageName() through the WiFiManager; step 14.4 receives the application identifier through the WiFiService; step 14.5 obtains the object ConnectivityManager through the WiFiService; step 14.6 obtains the NetworkInfo based on getActiveNetworkInfo() through the WiFiService; step 14.7 judges whether the network is connected based on NetworkInfo.isConnected() through the WiFiService; if not connected, step 14.8 judges whether "sound_wireless_speaker_enable" in the database is 1; if 1, step 14.9 judges whether the application identifier is in the application whitelist list; if not, step 14.10 returns an error, indicating that the scanning fails; if not 1 or if the application identifier is in the application whitelist list, step 14.11 continues to execute the subsequent WiFi scanning processing flow.
[0166] Specifically, when the application calls the startScan() interface of the WiFiManager, the WiFiManager can obtain the application identifier (for example, the application package name, PackageName) of the current WiFi scanning through the method Context.getOpPackageName(), and then the WiFiManager transmits the application identifier to the WiFiService, and the WiFiService judges to obtain the NetworkInfo through the method getActiveNetworkInfo() first, and judges whether the network is connected through NetworkInfo.isConnected(); if connected, normal scanning is performed, for example, some applications such as far-field voice and weather need positioning.
[0167] Specifically, the WiFi is disconnected, and the WiFiService further judges whether the "sound_wireless_speaker_enable" in the database is 1. If the "sound_wireless_speaker_enable" is 1, it is further judged whether the application identifier, for example, the PackageName, is in the application whitelist list. If the application identifier is not in the application whitelist list, an error is returned, indicating that the scanning execution fails. If the application identifier is in the application whitelist list, the ScanRequestProxy is continuously called, and finally the WiFiCond notifies the kernel to make the driver scan. That is, if the WiFiService judges that the "sound_wireless_speaker_enable" in the database is not 1, the normal scanning is performed.
[0168] Therefore, the influence of the WiFi scanning on the data transmission of the target device can be effectively solved, the use problem of the target device caused by the WiFi scanning, for example, the problem of the wireless sound box playing sound lag, can be solved, and the network experience of the user can be improved.
[0169] Figure 15 A flowchart of another WiFi scanning control method according to some embodiments is shown. The embodiment further optimizes the WiFi scanning control method based on the above-mentioned embodiments. As shown in the figure, the method comprises: Figure 15
[0170] In some embodiments of the present application, the application WiFi scanning request is received, the application identifier is acquired, and it is judged whether the target device connected with the display device by WiFi belongs to the calibration mode.
[0171] In some embodiments of the present application, in the case that the target device is in the calibration mode, it is judged whether the application identifier belongs to the preconfigured application whitelist list. In the case that the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded.
[0172] In some embodiments of the present application, in the case that the target device is not in the calibration mode, the WiFi connection state of the display device is acquired. In the case that the WiFi connection state is WiFi disconnection, it is judged whether the display device is connected with the target device.
[0173] In some embodiments of the present application, in the case that the display device is connected with the target device, it is judged whether the application identifier belongs to the preconfigured application whitelist list. In the case that the application identifier does not belong to the application whitelist list, the application WiFi scanning request is shielded.
[0174] In some embodiments of the present application, in the case that the WiFi connection state is WiFi connection, or the display device is not connected with the target device, or the application identifier belongs to the application whitelist list, the application WiFi scanning request is responded.
[0175] For example, asFigure 16 As shown, step 16.1 applies to initiate scanning; step 16.2 the system obtains the package name of the application as the application identifier; step 16.3 judges whether the target device is in calibration mode; if it is in calibration mode, step 16.4 is executed to judge whether the application belongs to the application whitelist list allowed to scan WiFi in the calibration mode; if it does not belong to, step 16.5 is executed to shield scanning and tell the application that the scanning fails; if it belongs to, step 16.6 is executed to allow scanning; if it is not in calibration mode, step 16.7 is executed to judge whether the WiFi of the display device is in a connected state; if it is in a connected state, step 16.6 is executed to allow scanning; if it is not in a connected state, step 16.8 is executed to judge whether the display device and the target device are connected; if they are connected, step 16.9 is executed to judge whether the application belongs to the application whitelist list allowed to scan WiFi in the calibration mode; if it does not belong to, step 16.5 is executed to shield scanning and tell the application that the scanning fails; if it belongs to, step 16.6 is executed to allow scanning; if the display device and the target device are not connected, step 16.6 is executed to allow scanning.
[0176] Specifically, after the application initiates WiFi scanning, the system obtains the package name (application identifier) of the application, first judges whether the target device is in calibration mode, if so, then judges whether the application that issues the scanning belongs to the application whitelist member allowed to scan WiFi in the calibration mode; if not, then shield the scanning and tell the application that the scanning fails; if it belongs to the whitelist, then allow scanning, such as settings, home and other key applications are in the whitelist.
[0177] Specifically, if the target device is not in calibration mode, then it is necessary to judge whether the current WiFi is in a connected state (whether the display device is connected to WiFi), if so, then allow scanning, because some applications such as far-field voice, weather, etc. need to obtain positioning information through WiFi scanning; if the WiFi is not connected, then judge whether the target device is connected, if connected, then judge whether the application that issues the scanning belongs to the application whitelist member allowed to scan WiFi in the target device connection; if so, then allow scanning, if not, shield the scanning and tell the application that the scanning fails; if the target device is not connected, then allow scanning.
[0178] Thus, it can be guaranteed that the calibration function of the target device is successful, and the technical problems such as lag of the target device can be optimized, and the network experience of the user is improved.
[0179] In some embodiments, the electronic device provided by the embodiments of the present application further includes a memory for storing a computer program and a processor for executing the computer program, so that the electronic device implements the WiFi scanning control method of any one of the above embodiments.
[0180] In some embodiments, the embodiments of the present application provide a computer readable storage medium, having stored thereon a computer program, which, when executed by a computing device, causes the computing device to implement the WiFi scanning control method according to any one of the preceding embodiments.
[0181] In some embodiments, the embodiments of the present application provide a computer program product, which, when running on a computer, causes the computer to implement the WiFi scanning control method according to the second aspect or any one of the embodiments of the second aspect.
[0182] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0183] In order to facilitate explanation, the above description has been made in combination with specific embodiments. However, the above exemplary discussion is not intended to exhaust or limit the embodiments to the specific forms disclosed above. Various modifications and variations can be derived according to the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different modified embodiments suitable for specific use considerations.
Claims
1. A display device, characterized by comprising: The display device comprises: a display; a controller connected to the display, the controller being configured to: receive an application WiFi scanning request, and obtain an application identifier; determine whether a target device connected to the display device via WiFi direct belongs to a calibration mode; in a case where the target device is in the calibration mode, determine whether the application identifier belongs to a preconfigured application whitelist list; in a case where the application identifier does not belong to the application whitelist list, shield the application WiFi scanning request.
2. The display device of claim 1, wherein, The controller is further configured to: in a case where the target device is not in the calibration mode, obtain a WiFi connection state of the display device; in a case where the WiFi connection state is WiFi connected, respond to the application WiFi scanning request.
3. The display device of claim 2, wherein, The controller is further configured to: in a case where the WiFi connection state is WiFi not connected, determine whether the display device is connected to the target device; in a case where the display device is connected to the target device, determine whether the application identifier belongs to a preconfigured application whitelist list; in a case where the application identifier does not belong to the application whitelist list, shield the application WiFi scanning request.
4. The display device of claim 3, wherein, The controller is further configured to: in a case where the display device is not connected to the target device, respond to the application WiFi scanning request.
5. The display device according to claim 1 or 3, characterized by The controller is further configured to: in a case where the application identifier belongs to the application whitelist list, respond to the application WiFi scanning request.
6. The display device of claim 1, wherein, The controller, when performing the operation of receiving an application WiFi scanning request and obtaining an application identifier, is specifically configured to: obtain an open scanning interface of a WiFi manager called by an application, and receive the application WiFi scanning request; obtain the application identifier based on a WiFi server via an application identifier obtaining function.
7. The display device of claim 1, wherein, The controller, when performing the operation of determining whether a target device connected to the display device via WiFi direct belongs to a calibration mode, is specifically configured to: obtain a target attribute value of the target device based on a WiFi server; determine whether the target device belongs to the calibration mode based on the target attribute.
8. The display device of claim 2, wherein, The controller, when performing the operation of obtaining a WiFi connection state of the display device, is specifically configured to: obtain network working information based on a WiFi server via a network obtaining function; determine the WiFi connection state based on the network working information.
9. The display device of claim 3, wherein, The controller, when performing the operation of determining whether the display device is connected to the target device, is specifically configured to: obtain a target device connection identifier in a setting database based on a WiFi server; determine whether the display device is connected to the target device based on the target device connection identifier.
10. A method of WiFi scan control, the method comprising: The display device comprises: receive an application WiFi scanning request, and obtain an application identifier; determine whether a target device connected to the display device via WiFi direct belongs to a calibration mode; in a case where the target device is in the calibration mode, determine whether the application identifier belongs to a preconfigured application whitelist list; in a case where the application identifier does not belong to the application whitelist list, shield the application WiFi scanning request.
Citation Information
Patent Citations
WiFi single-channel scanning method and device, terminal equipment and storage medium
CN113518408A
Screen projection method and device, computer equipment and storage medium
CN117499734A