Display device and method of adjusting channels
Patent Information
- Application Number
- CN202510867078.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2045-06-25
AI Technical Summary
[0005]本申请一些实施例提供一种显示设备及信道的调整方法,以解决投屏过程中WiFi信道和P2P信道不一致引起的网络性能下降的问题
[0047]上述技术方案具有如下优点或有益效果:通过在未执行投屏功能或投屏功能执行完成后,将P2P信道调整为与WIFI信道相同的信道,显示设备确保在非DFS信道或6G信道的环境下,无线网络连接和投屏功能能够在同一信道上协同工作,优化网络性能和投屏功能,确保投屏的稳定性和流畅性。
Smart Images

Figure CN120751188B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display device technology, and in particular to a display device and a method for adjusting a channel. Background Technology
[0002] In some use cases, users often need to conveniently cast content from their mobile devices to large-screen displays such as TVs for viewing and sharing. Miracast, as the default screen mirroring solution for Android phones and Windows computers, provides users with a convenient way to share content between devices.
[0003] To enhance the convenience of screen casting, television products have undergone numerous optimizations and improvements to the Miracast casting function in recent years. Initially, because television Wi-Fi did not support the coexistence of Wi-Fi and P2P, users could only activate Miracast casting when accessing the casting function page, at which point P2P would be enabled and Wi-Fi would be disabled. With technological and hardware advancements, systems and hardware gradually began to support the coexistence of Wi-Fi and P2P. One implementation method involved time-slice switching, where the television operated in Wi-Fi mode for a period and then switched to P2P mode for another period, repeating this cycle. However, in this early coexistence solution, P2P operated in Listen mode, which involved channel monitoring and probing when there was no connection. This involved switching back and forth between channels, thus reducing overall network performance.
[0004] To further support multi-screen casting and improve performance, the TV, upon initiating Miracast, simultaneously creates a P2P Group as the GO (Goal Provider). This means the TV is forced to act as the GO and the P2P network is created before connection. However, to ensure the P2P channel matches the Wi-Fi channel, the casting application needs to listen for system network connection broadcasts and reset the P2P Group channel when a new connection occurs. Most routers currently support automatic channel switching; when a router detects a poor current channel, it automatically switches to a better one. Since this channel switching occurs at the Wi-Fi protocol layer without a network disconnection and reconnection process, the application cannot detect and reset the P2P Group, leading to a mismatch between the Wi-Fi and P2P channels and consequently, performance degradation. Furthermore, some phones do not support P2P scanning on DFS (Radar Channel) and 6G channels. When Wi-Fi connects to these channels, if the P2P channel follows the Wi-Fi to the same channel, some phones will be unable to discover the TV. If P2P doesn't follow, the TV solution will switch back and forth between the WiFi and P2P channels for 50% / 50% of the time, which will cause a serious drop in network performance and may even cause stuttering when watching online videos. Therefore, currently, there is a problem of network performance degradation when the WiFi and P2P channels are inconsistent during screen casting. Summary of the Invention
[0005] Some embodiments of this application provide a method for adjusting a display device and a channel to solve the problem of network performance degradation caused by inconsistency between WiFi channel and P2P channel during screen projection.
[0006] In a first aspect, some embodiments of this application provide a display device, including:
[0007] The monitor is configured to display the user interface;
[0008] The controller is configured as follows:
[0009] In response to the screen mirroring function's activation event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring.
[0010] If the WiFi channel and the P2P channel are inconsistent, detect whether the screen mirroring function is currently being executed;
[0011] If the WiFi channel is not a preset channel when the screen mirroring function is not executed, the P2P channel will be adjusted to be the same as the WiFi channel.
[0012] When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, the P2P channel is adjusted to the same channel as the WiFi channel.
[0013] Specifically, adjusting the P2P channel to be the same as the WiFi channel is configured as follows:
[0014] Switch the frequency range of the P2P channel to the frequency range of the WiFi channel.
[0015] The above technical solution has the following advantages or beneficial effects: the display device can dynamically adjust the channel to ensure that the wireless network connection and screen projection function can obtain optimal performance in different scenarios, and solve the problem of network performance degradation caused by the inconsistency between WiFi channel and P2P channel during screen projection.
[0016] In some embodiments, after the controller adjusts the P2P channel to the same channel as the WiFi channel, it is further configured to:
[0017] The duty cycles of the WiFi channel and the adjusted P2P channel are set as a first duty cycle; in the first duty cycle, the time slice ratio of the WiFi channel is greater than the time slice ratio of the P2P channel.
[0018] The above technical solution has the following advantages or beneficial effects: by setting the first duty cycle, the priority of wireless network connection can be guaranteed, ensuring that the display device can better access the network when not casting, such as online video playback, software updates, etc., so that the display device can optimize the wireless network connection performance when not casting, improve the performance in other network applications, and prepare for possible subsequent casting operations.
[0019] In some embodiments, after setting the duty cycle of the WiFi channel and the adjusted P2P channel to a first duty cycle, the controller is further configured to:
[0020] When the router automatically switches channels, it detects whether the WiFi channel and the P2P channel are the same channel;
[0021] If the WiFi channel and the P2P channel are inconsistent, the screen projection status is detected, and the duty cycle of the WiFi channel and the P2P channel is re-determined based on the screen projection status;
[0022] If the WiFi channel and the P2P channel are the same channel, the duty cycle of the WiFi channel and the P2P channel is maintained at the first duty cycle.
[0023] The above technical solution has the following advantages or beneficial effects: By detecting whether the WiFi channel and the P2P channel are the same channel, and dynamically adjusting the duty cycle according to the projection status, the display device can optimize network performance and projection function, and ensure that the system can reasonably allocate channel resources according to actual needs under different channel states.
[0024] In some embodiments, the controller detects the screen projection status, specifically configured as follows:
[0025] Get the number of windows during the screen mirroring process;
[0026] Compare the number of windows with the first value;
[0027] When the number of windows is the first value, if there is content to be cast in the window, the casting state is determined to be full casting state;
[0028] If the number of windows is greater than the first value, determine the playback content in the windows; if the playback content is all the screen casting content, determine the screen casting state as the full screen casting state; if the playback content is all non-screen casting content, determine the screen casting state as the non-screen casting state; if the playback content contains both screen casting content and non-screen casting content, determine the screen casting state as the mixed screen casting state.
[0029] The above technical solution has the following advantages or beneficial effects: By obtaining the number of windows corresponding to the projection process and determining the projection status based on the number of windows and the content being played in the windows, the display device can accurately identify the current projection scenario, thereby providing an accurate basis for subsequent channel adjustment and duty cycle setting.
[0030] In some embodiments, the controller re-determines the duty cycle of the WiFi channel and the P2P channel based on the screen projection status, specifically configured as follows:
[0031] When the screen mirroring state is the non-screen mirroring state, the duty cycle of the WiFi channel and the P2P channel is set to the first duty cycle; or,
[0032] When the screen projection state is the hybrid screen projection state, the duty cycles of the WiFi channel and the P2P channel are set to a second duty cycle; in the second duty cycle, the time slice ratio of the WiFi channel is equal to the time slice ratio of the P2P channel; or,
[0033] When the screen projection state is the full screen projection state, the duty cycle of the WiFi channel and the P2P channel is set to a third duty cycle; in the third duty cycle, the time slice ratio of the WiFi channel is less than the time slice ratio of the P2P channel.
[0034] The above technical solution has the following advantages or beneficial effects: The display device can dynamically adjust the duty cycle of the WiFi channel and P2P channel according to different projection states, and can reasonably allocate channel resources in different scenarios to ensure the performance optimization of wireless network connection and projection function. It can also ensure that the system can reasonably allocate channel resources according to actual needs in different scenarios. By optimizing the channel management strategy, it can ensure the stability and smoothness of the projection function and solve the problem of network performance degradation caused by the inconsistency between WiFi channel and P2P channel during projection.
[0035] In some embodiments, before reading the current WiFi channel used to support wireless network connectivity and the P2P channel used to support screen mirroring, the controller is further configured to:
[0036] Register a network monitoring broadcast and set a timer; the network monitoring broadcast is used to monitor changes in the status of the wireless network connection; the timer is used to periodically trigger channel detection operations;
[0037] In response to the network listening broadcast and / or the timeout event of the timer, the operation of reading the WiFi channel and the P2P channel is triggered.
[0038] The above technical solution has the following advantages or beneficial effects: by combining event-driven and periodic detection, the display device can ensure that the system can respond to channel changes in a timely and accurate manner, thereby achieving dynamic optimization of wireless network connection and screen projection functions.
[0039] In some embodiments, when performing the screen mirroring function, the controller adjusts the P2P channel to the same channel as the WiFi channel, specifically configured as follows:
[0040] Record the screen mirroring start and end events;
[0041] Upon detecting the execution of the screen mirroring function, a channel adjustment flag is added; the channel adjustment flag indicates that the P2P channel is adjusted after the screen mirroring function is completed.
[0042] The execution status of the screen casting function is determined based on the screen casting start event and the screen casting end event.
[0043] When the execution status indicates that the screen mirroring function has been completed, the P2P channel is adjusted to be the same as the WiFi channel based on the channel adjustment identifier.
[0044] The above technical solution has the following advantages or beneficial effects: After confirming the completion of the screen mirroring function, the display device can check the channel adjustment indicator. If the channel adjustment indicator exists, the system will adjust the P2P channel to the same channel as the WiFi channel (wireless network connection channel). This adjustment ensures that after screen mirroring ends, the wireless network connection and screen mirroring function can work on a unified channel, thereby optimizing network performance and reducing performance degradation caused by channel inconsistency.
[0045] In some embodiments, the preset channel includes a DFS channel or a 6G channel, and the controller adjusts the P2P channel to be the same as the WiFi channel, specifically configured as follows:
[0046] If the screen mirroring function is not executed and the WIFI channel is not a DFS channel or a 6G channel, or if the screen mirroring function is executed and after the screen mirroring function is completed and the WIFI channel is not a DFS channel or a 6G channel, the P2P channel is adjusted to be the same as the WIFI channel.
[0047] The above technical solution has the following advantages or beneficial effects: by adjusting the P2P channel to the same channel as the WIFI channel when the screen casting function is not executed or after the screen casting function is executed, the display device ensures that the wireless network connection and screen casting function can work together on the same channel in the environment of non-DFS channel or 6G channel, optimize network performance and screen casting function, and ensure the stability and smoothness of screen casting.
[0048] In some embodiments, after detecting whether the screen mirroring function is currently being executed, the controller is further configured to:
[0049] If the WiFi channel and the P2P channel are found to be the same, or if the WiFi channel is the preset channel, the P2P channel is maintained.
[0050] The above technical solution has the following advantages or beneficial effects: In this application, the display device can avoid network performance degradation or screen projection interruption caused by frequent channel switching, ensuring stable system operation under the same channel conditions, and avoiding unnecessary resource consumption and potential errors. When the WiFi channel (wireless network connection channel) is a preset channel (e.g., DFS channel or 6G channel), the P2P channel (screen projection function channel) is maintained. In this way, the display device can ensure that the screen projection function can still operate normally under these specific channel environments, avoiding the problem of screen projection device being unable to connect due to channel adjustment.
[0051] Secondly, some embodiments of this application provide a channel adjustment method, which can be applied to the display device of the first aspect, the display device including a display and a controller, the method comprising:
[0052] In response to the screen mirroring function's activation event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring.
[0053] If the WiFi channel and the P2P channel are inconsistent, detect whether the screen mirroring function is currently being executed;
[0054] If the WiFi channel is not a preset channel when the screen mirroring function is not executed, the P2P channel will be adjusted to be the same as the WiFi channel.
[0055] When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, the P2P channel is adjusted to the same channel as the WiFi channel.
[0056] Specifically, adjusting the P2P channel to be the same as the WiFi channel is configured as follows:
[0057] Switch the frequency range of the P2P channel to the frequency range of the WiFi channel.
[0058] The above technical solution has the following advantages or beneficial effects: the method can dynamically adjust the channel to ensure that wireless network connection and screen projection functions can obtain optimal performance in different scenarios, and solve the problem of network performance degradation caused by inconsistency between WiFi channel and P2P channel during screen projection.
[0059] As can be seen from the above technical solutions, some embodiments of this application provide a method for adjusting a display device and its channel. The method includes: responding to a screen mirroring function startup event, reading the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring; if the WiFi channel and P2P channel are inconsistent, detecting whether screen mirroring is currently being performed; if screen mirroring is not performed, and if the WiFi channel is not a preset channel, adjusting the P2P channel to the same channel as the WiFi channel; if screen mirroring is performed, after the screen mirroring function is completed, and if the WiFi channel is not a preset channel, adjusting the P2P channel to the same channel as the WiFi channel; specifically, adjusting the P2P channel to the same channel as the WiFi channel is configured by switching the frequency range of the P2P channel to the frequency range of the WiFi channel. This method, by dynamically adjusting the channel, ensures that both wireless network connection and screen mirroring functions achieve optimal performance in different scenarios, solving the problem of network performance degradation caused by inconsistencies between the WiFi channel and the P2P channel during screen mirroring. Attached Figure Description
[0060] To more clearly illustrate the technical solutions in some embodiments of this application or in the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0061] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application;
[0062] Figure 2 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application;
[0063] Figure 3 This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application;
[0064] Figure 4 This is a schematic flowchart illustrating a method for adjusting a channel in a display device according to some embodiments of this application.
[0065] Figure 5 A general flowchart of a method for adjusting a channel in a display device, provided in some embodiments of this application;
[0066] Figure 6 A schematic diagram illustrating the process of adjusting the duty cycle of a display device provided in some embodiments of this application;
[0067] Figure 7This is a schematic diagram illustrating the process of detecting the projection status of a display device according to some embodiments of this application;
[0068] Figure 8 A schematic diagram illustrating the process of a display device re-determining the duty cycle of the WiFi channel and the P2P channel based on the projection status, provided in some embodiments of this application.
[0069] Figure 9 This is a schematic diagram illustrating a scenario where a display device provided in some embodiments of this application adjusts the P2P channel to the same channel as the WiFi channel;
[0070] Figure 10 This is a timing diagram illustrating a method for adjusting a channel in a display device according to some embodiments of this application. Detailed Implementation
[0071] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0072] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0073] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0074] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0075] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0076] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0077] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1 As shown, a user can operate the display device 200 via touch operation, a mobile terminal 300, and a control device 100. The control device 100 receives user input commands and converts them into control commands that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a gamepad, etc.
[0078] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.
[0079] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application that controls the display device 200.
[0080] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0081] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.
[0082] Figure 2 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of display device 200.
[0083] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0084] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0085] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.
[0086] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.
[0087] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.
[0088] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200.
[0089] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0090] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface receives user input commands through the graphical user interface (GUI).
[0091] In some embodiments, the audio output device 270 can be a built-in speaker of the display device 200 or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.
[0092] In some embodiments, the user input interface 280 can be used to receive instructions from user input.
[0093] To enable user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device to provide a user interface; for example, the operating system can directly control the display device to provide a user interface, or it can provide a user interface by running an application. The operating system also allows users to interact with the display device 200.
[0094] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.
[0095] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the System Library layer, and the Kernel layer.
[0096] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0097] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0098] like Figure 3 As shown, the application framework layer in this embodiment includes a view system, managers, and content providers. The view system designs and implements the application's interface and interactions, and includes lists, grids, text boxes, and buttons. The managers include at least one of the following modules: an activity manager for interacting with all running activities in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0099] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling changes to the display window, such as shrinking the display window, shaking the display, or distorting the display.
[0100] In some embodiments, the system runtime library layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer, such as the C / C++ instruction library, to implement the functions to be performed by the framework layer.
[0101] In some embodiments, the kernel layer is a functional layer situated between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. For example, ... Figure 3 As shown, hardware drivers can be configured in the kernel layer. The drivers included in the kernel layer can be at least one of the following: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0102] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.
[0103] In some scenarios, users often need to conveniently project content from their mobile devices onto large-screen displays such as TVs for viewing and sharing. For example, this could involve projecting photos and videos from a phone to a TV during a family gathering, or projecting a computer screen to a TV in a meeting room during an office meeting. Miracast, as the default screen mirroring solution for Android phones and Windows computers, provides users with a convenient way to share content between devices. Unlike traditional LAN-based screen mirroring communication methods, Miracast uses P2P (also known as WiFi Direct) for communication by default. WiFi Direct is a physical layer point-to-point communication protocol proposed by the WiFi Alliance, allowing two devices to establish a connection and communicate directly without the involvement of a router. In a WiFi Direct network, one device acts as the Group Owner (GO), equivalent to a traditional access point (AP), while other devices connect to the GO as Group Clients (GCs). This connection method supports not only one-to-one but also one-to-many connections, enhancing the flexibility and convenience of screen mirroring.
[0104] To enhance the convenience of screen casting, television products have undergone numerous optimizations and improvements to the Miracast casting function in recent years. Initially, because television Wi-Fi did not support the coexistence of Wi-Fi and P2P, users could only activate Miracast casting when accessing the casting function page, at which point P2P would be enabled and Wi-Fi would be disabled. With technological and hardware advancements, systems and hardware gradually supported the coexistence of Wi-Fi and P2P. One implementation method involved time-slice switching, where the television operated in Wi-Fi mode for a period and then switched to P2P mode for another period, repeating this cycle. However, in this early coexistence scheme, P2P operated in Listen mode. This mode involved channel monitoring and probing when there was no connection, which involved switching back and forth between channels, thus reducing overall network performance. For example, in the earliest coexistence schemes, P2P in Listen mode negotiated GO and GC roles when there was a connection, and monitored and probing channels 1, 6, and 11 when there was no connection. However, this method involved switching back and forth between channels, which degraded network performance.
[0105] To further support multi-screen casting and improve performance, the TV, upon initiating Miracast, simultaneously creates a P2P Group as the GO (Go) device. This means the TV is forced to act as the GO, and the P2P network is created before connection. Because the TV, as the GO, can accept connections from multiple devices simultaneously, and the P2P channel selection during creation matches the current Wi-Fi channel, performance degradation is avoided, and the initial negotiation process of the Listen solution is eliminated, resulting in relatively better performance.
[0106] However, this approach still has some problems. Firstly, to ensure the P2P channel matches the WiFi channel, the screen mirroring application needs to listen for broadcast notifications of system network connections and reset the P2P Group channel when a new connection occurs. However, most routers currently support automatic channel switching; when a router detects a poor current channel, it automatically switches to a better one. Since this channel switching occurs at the WiFi protocol layer without a network disconnection and reconnection process, the application cannot detect and reset the P2P Group, leading to inconsistencies between the WiFi and P2P channels and consequently, performance degradation. Secondly, some mobile phones do not support P2P scanning on the DFS (Radar) channel and 6G channel. When WiFi connects to these channels, if the P2P channel follows the WiFi channel, some phones will not be able to detect the TV. If the P2P channel does not follow, the TV solution will switch back and forth between the WiFi and P2P channels 50% and 50% of the time, resulting in a significant drop in network performance and potentially causing stuttering when watching online videos.
[0107] In other words, when the TV's WiFi is connected to the DFS or 6G channel, if Miracast P2P operates on the same channel as the WiFi, some screen mirroring devices will not be able to detect the TV. Therefore, in scenarios where the TV's WiFi is connected to the DFS or 6G channel, P2P and WiFi can only operate on different channels. In scenarios where the TV's WiFi is not connected to the DFS or 6G channel, when the router automatically switches channels, the screen mirroring application cannot detect it, which will also cause WiFi and P2P to operate on different channels. When they are not operating on the same channel, the TV will switch channels according to a 50% duty cycle for WiFi and 50% for P2P, resulting in a decrease in network performance.
[0108] Therefore, to address the network performance degradation caused by inconsistencies between WiFi and P2P channels during screen mirroring, some embodiments of this application provide a display device 200, which includes a display 260 and a controller 250. The display 260 is configured to display a user interface, and the controller 250, by running an application, enables the display device 200 to perform a channel adjustment method. The display device 200 can adjust the channel by monitoring router channel switching and dynamically adjust the duty cycle setting ratio according to the screen mirroring status to optimize network performance and resolve the network performance degradation caused by inconsistencies between WiFi and P2P channels during screen mirroring.
[0109] To facilitate understanding of the technical solutions in some embodiments of this application, the steps are described in detail below with reference to some specific embodiments and accompanying drawings. Figure 4 This is a schematic flowchart illustrating a method for adjusting a display device channel according to some embodiments of this application, such as... Figure 4 As shown, in some embodiments, when the display device 200 performs the channel adjustment method, it may include the following steps S1-S4, the specific contents of which are as follows:
[0110] Step S1: In response to the screen mirroring function's startup event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring.
[0111] Figure 5 This is a general flowchart of a method for adjusting the channel of a display device provided in some embodiments of this application, combined with... Figure 4 and Figure 5When a user initiates a screen mirroring function (e.g., Miracast screen mirroring), the display device 200 can trigger a startup event. In response to this startup event, the display device 200 can read the currently connected WiFi channel and P2P channel. In some embodiments, the WiFi channel can be a wireless network channel, and the P2P channel can be the channel used by the screen mirroring function. The WiFi channel supports the display device's wireless network connection function, such as connecting to a router for network access; the P2P channel supports the screen mirroring function, enabling the screen mirroring device to project content onto the display device. By reading these two channels, the display device 200 can understand the current network and screen mirroring status in real time, obtain channel information promptly, and provide basic data for subsequent channel adjustments and duty cycle settings, thereby preparing for optimizing network performance and the screen mirroring experience.
[0112] See also Figure 5 Before reading the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring, the display device 200 can trigger the following process after detecting the Miracast screen mirroring start event: first, registering a network listening broadcast, which is used to monitor changes in the status of wireless network connection; second, setting a timer, which is used to periodically trigger channel detection operations. Registering the network listening broadcast and setting the timer can be done in any order. In response to the timeout event of the network listening broadcast and / or the timer, the operation of reading the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring is triggered.
[0113] For example, when the Miracast screen mirroring function is activated, the system registers a network monitoring broadcast. The purpose of this broadcast is to monitor changes in the wireless network connection status in real time, including but not limited to WiFi channel switching, network connection establishment or disconnection, and other events. By registering for the broadcast, the system can promptly obtain information on changes in the wireless network connection status, providing an accurate basis for subsequent channel adjustments and duty cycle settings. In addition to relying on the broadcast to obtain status change information, the system also sets a timer. The timer periodically triggers channel detection operations. Even when there are no significant changes in the wireless network connection status, the timer ensures that the system regularly checks the current channel status, preventing subtle changes not captured by the broadcast from affecting the screen mirroring function or the performance of the wireless network connection, and ensuring that the channel status is always under monitoring. When the system receives a wireless network connection status change event from the broadcast and / or a timer timeout event, it can trigger the operation of reading the WiFi channel and the P2P channel to determine whether the two channels are consistent and whether channel adjustments or duty cycle settings are needed. By combining event-driven and periodic detection, the display device 200 can ensure that the system can respond to channel changes in a timely and accurate manner, thereby achieving dynamic optimization of wireless network connectivity and screen projection functions.
[0114] In some embodiments, after reading the WiFi channel and the P2P channel, if the WiFi channel and the P2P channel are the same, the display device 200 maintains the P2P channel. For example, when the WiFi channel and the P2P channel are already consistent, it indicates that the wireless network connection and screen mirroring function are already operating on the same channel, such as WiFi and P2P operating in the same frequency range. In this case, further adjustment of the P2P channel is unnecessary. By maintaining this channel, the system can avoid network performance degradation or screen mirroring interruption caused by frequent channel switching, ensuring stable system operation when the channel is the same, and avoiding unnecessary resource consumption and potential errors.
[0115] In some embodiments, determining whether two channels are the same can be done by comparing their frequency ranges. If the frequency range of the WiFi channel is consistent with the frequency range of the P2P channel, then the two channels can be determined to be the same. After step S1 is completed, step S2 can be included.
[0116] Step S2: If the WiFi channel and the P2P channel are inconsistent, check whether the screen mirroring function is currently being executed.
[0117] In some embodiments, when the system reads that the WiFi channel and the P2P channel are inconsistent, it indicates that the current wireless network channel and the projection channel are in different states, which may lead to a decrease in network performance or abnormal projection function. At this time, the system will further detect whether the projection function is currently being executed. Specifically, the system will check whether a projection device is connected to the display device and is transmitting projection data. The detection process can be implemented by monitoring the status of the projection protocol, the transmission status of projection data, etc. If it is detected that the projection function is currently being executed, then proceed to step S4; if it is not detected that the projection function is being executed, then proceed to step S3. In this way, the display device 200 can determine the subsequent operation strategy according to whether projection is currently being executed, avoiding unnecessary channel adjustments during the projection process, thereby ensuring the stability and smoothness of projection. After step S2 is completed, step S3 can be included.
[0118] Step S3: If the WiFi channel is not the preset channel when the screen mirroring function is not executed, adjust the P2P channel to the same channel as the WiFi channel. Adjusting the P2P channel to the same channel as the WiFi channel means switching the frequency range of the P2P channel to the frequency range of the WiFi channel.
[0119] In some embodiments, continue to combine Figure 5 When the system detects that the screen mirroring function is not being executed and the WiFi channel is not the preset channel (such as the DFS channel or the 6G channel), in order to optimize network performance, the system will adjust the P2P channel to the same channel as the WiFi channel. For example, adjusting the P2P channel to the same channel as the WiFi channel can ensure that the wireless network connection and screen mirroring function work on the same channel, avoiding performance problems caused by channel inconsistency.
[0120] In some embodiments, the channel is essentially the frequency band of wireless broadcasting, electromagnetic waves, etc., i.e., a frequency range. When implementing the channel adjustment function, from a physical module perspective, the frequency range in which Wi-Fi or P2P receives electromagnetic signals is the frequency range in which it operates, i.e., the channel. Taking a television usage scenario as an example, during use, it is necessary to ensure that Wi-Fi and the router are connected. The frequency range of Wi-Fi is not determined by the television, but by the router. Therefore, we can first determine the Wi-Fi channel (its operating frequency range), and then switch the P2P operating frequency range to the Wi-Fi frequency range. In other words, the essence of switching is adjusting the electromagnetic wave frequency range for listening and transmitting signals.
[0121] Meanwhile, the display device 200 can set the duty cycle of the WiFi channel and the adjusted P2P channel to a first duty cycle, in which the time slice ratio of the WiFi channel is greater than that of the P2P channel, for example, it can be set to 1200ms:300ms. This duty cycle setting can guarantee the priority of wireless network connection, ensuring that the display device 200 can better access the network when not casting, such as online video playback, software updates, etc., so that the display device 200 optimizes the wireless network connection performance when not casting, improves the performance of other network applications, and prepares for possible subsequent casting operations.
[0122] In some embodiments, if the WiFi channel is a preset channel, such as a DFS channel or a 6G channel, the display device 200 may maintain a P2P channel.
[0123] For example, DFS channels and 6G channels typically have higher frequency bands and more complex channel management mechanisms, which may affect the compatibility of screen mirroring functions in certain situations. For instance, some screen mirroring devices may not be able to discover or connect to the display device normally on DFS or 6G channels. Therefore, in this application, when the WiFi channel (wireless network connection channel) is a preset channel (e.g., DFS channel or 6G channel), the P2P channel (screen mirroring function channel) is maintained. In this way, the display device 200 can ensure that the screen mirroring function can still operate normally in these specific channel environments, avoiding the problem of screen mirroring devices being unable to connect due to channel adjustments. After step S3 is completed, step S4 can be executed as follows.
[0124] Step S4: When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, adjust the P2P channel to the same channel as the WiFi channel.
[0125] In some embodiments, when it is detected that a screen mirroring function is currently being executed, the display device 200 may wait for the screen mirroring function to complete. After the screen mirroring function is completed, if the WiFi channel is not a preset channel, the P2P channel can be adjusted to the same channel as the WiFi channel, and the duty cycle of the WiFi channel and the adjusted P2P channel can be set to a first duty cycle.
[0126] It's important to note that channel adjustment should be performed after screen sharing is complete to avoid interfering with the screen sharing function during the process. This allows for timely adjustment of the channel and duty cycle after screen sharing ends, ensuring optimized wireless network connection performance and preventing interference with the screen sharing function during the process, thus guaranteeing the integrity and stability of the screen sharing.
[0127] In some embodiments, when the display device 200 performs the screen mirroring function, it can adjust the P2P channel to be the same as the WiFi channel in the following manner: The display device 200 can record the screen mirroring start event and the screen mirroring end event, detect the execution of the screen mirroring function, add a channel adjustment flag, wherein the channel adjustment flag is used to indicate that the P2P channel is adjusted after the screen mirroring function is completed; then, the execution status of the screen mirroring function is determined according to the screen mirroring start event and the screen mirroring end event; if the execution status is that the screen mirroring function is completed, the P2P channel is adjusted to be the same as the WiFi channel based on the channel adjustment flag.
[0128] For example, continue to combine Figure 5 The display device 200 records a screen mirroring start event when the screen mirroring function is initiated and a screen mirroring end event when the screen mirroring function ends. These two event records provide the system with the time range and status information of the screen mirroring function execution. In this way, the system can clearly know the start and end times of the screen mirroring function, thus avoiding unnecessary channel adjustment operations during the screen mirroring process. When the system detects that the screen mirroring function is being executed, it adds a channel adjustment flag. This flag indicates that the P2P channel (screen mirroring function channel) needs to be adjusted after the screen mirroring function is completed, ensuring that the transmission of screen mirroring data is not interfered with during the screen mirroring process, and providing a basis for channel adjustment after the screen mirroring ends. The system determines the execution status of the screen mirroring function based on the recorded screen mirroring start and end events. When a screen mirroring end event is detected, the system confirms that the screen mirroring function has been completed, ensuring that the system can perform subsequent channel adjustment operations at the correct time. After confirming that the screen mirroring function has been completed, the display device 200 can check the channel adjustment flag. If a channel adjustment flag exists, the system will adjust the P2P channel to the same channel as the WiFi channel (wireless network connection channel). This adjustment ensures that after screen mirroring ends, the wireless network connection and screen mirroring function can work on a unified channel, thereby optimizing network performance and reducing performance degradation caused by channel inconsistency.
[0129] Figure 6 This is a schematic diagram of the process for adjusting the duty cycle of a display device provided in some embodiments of this application, such as... Figure 6 As shown, in some embodiments, after setting the duty cycle of the WiFi channel and the adjusted P2P channel to a first duty cycle, the display device 200 can detect whether the WiFi channel and the P2P channel are the same channel. If the WiFi channel and the P2P channel are inconsistent, the screen projection status is detected, and the duty cycle of the WiFi channel and the P2P channel is re-determined based on the screen projection status. If the WiFi channel and the P2P channel are the same, the duty cycle of the WiFi channel and the P2P channel is kept at the first duty cycle.
[0130] For example, in real-world usage scenarios, routers may automatically switch channels. Based on this, the display device 200 can subsequently detect whether the WiFi channel and P2P channel are consistent to determine if the current wireless network connection and screen mirroring function are operating on the same channel (within the same frequency range). If the channels are the same, the current system status is good, and no further adjustments are needed; if the channels are inconsistent, further analysis of the screen mirroring status is required to determine subsequent operations. By detecting whether the WiFi channel and P2P channel are the same and dynamically adjusting the duty cycle according to the screen mirroring status, the display device 200 can optimize network performance and screen mirroring functionality, ensuring that the system can reasonably allocate channel resources according to actual needs under different channel conditions. The relationship between duty cycle adjustment and screen mirroring status will be explained in detail below.
[0131] Figure 7 This is a schematic diagram of the process for detecting the projection status of a display device according to some embodiments of this application, such as... Figure 7 As shown, when detecting the projection status, the display device 200 first obtains the number of windows corresponding to the projection process; compares the number of windows with a first value; if the number of windows is the first value and there is projection content in the windows, the projection status is determined to be full projection; if the number of windows is greater than the first value, it determines the content being played in the windows; if the content being played is all projection content, the projection status is determined to be full projection; if the content being played is all non-projection content, the projection status is determined to be non-projection; if the content being played contains both projection content and non-projection content, the projection status is determined to be mixed projection.
[0132] For example, during the screen mirroring process, the display device 200 first obtains the number of currently displayed windows. By obtaining the number of windows, it can initially understand whether there are multiple windows on the display device and whether these windows are related to the screen mirroring function. If the number of windows is a first value (e.g., 1), and there is screen mirroring content in that window, the system determines that the current screen mirroring state is a full screen mirroring state. In this case, there is only one window on the display device, and the content of that window comes entirely from the screen mirroring device. This state indicates that the user is currently mainly focused on the screen mirroring content, so the system needs to prioritize optimizing the performance of the screen mirroring function. If the number of windows is greater than the first value (e.g., 1), the system will further determine the playback content in each window. If the playback content in all windows is screen mirroring content, the screen mirroring state is also determined to be a full screen mirroring state. This means that multiple windows are displaying screen mirroring content, indicating that the user's current usage scenario is mainly focused on the screen mirroring function. If the number of windows is greater than the first value (e.g., 1), and the playback content in all windows is not screen mirroring content, the system determines that the screen mirroring state is a non-screen mirroring state. In this scenario, although multiple windows exist on the display device, the content of these windows is unrelated to the casting function, indicating that the user may be performing other operations (such as browsing web pages, playing local videos, etc.) rather than using the casting function. If the number of windows is greater than a first value (e.g., 1), and the content played in the windows includes both casting and non-cast content, the system determines the casting state to be a mixed casting state. This state indicates that the user may be using the casting function and other functions simultaneously (such as network playback or local applications in multi-window mode). In this case, the system needs to balance the performance requirements of the casting function and other functions. By obtaining the number of windows corresponding to the casting process and determining the casting state based on the number of windows and the content played in the windows, the display device 200 can accurately identify the current casting scenario, thus providing an accurate basis for subsequent channel adjustments and duty cycle settings.
[0133] Figure 8 This application provides a schematic diagram illustrating the process of a display device re-determining the duty cycle of the WiFi channel and the P2P channel based on the projection status in some embodiments of the present application. Figure 8As shown, when the display device 200 re-determines the duty cycle of the WiFi channel and the P2P channel according to the projection state, if the projection state is non-projection state, the duty cycle of the WiFi channel and the P2P channel is set to a first duty cycle; or, if the projection state is a mixed projection state, the duty cycle of the WiFi channel and the P2P channel is set to a second duty cycle; wherein, in the second duty cycle, the time slice ratio of the WiFi channel is equal to the time slice ratio of the P2P channel; or, if the projection state is a full projection state, the duty cycle of the WiFi channel and the P2P channel is set to a third duty cycle, wherein, in the third duty cycle, the time slice ratio of the WiFi channel is less than the time slice ratio of the P2P channel.
[0134] For example, the display device 200 first obtains the current casting status. Casting status can be divided into three types: non-casting status, where no casting function is currently being executed; mixed casting status, where casting function and other non-casting functions coexist (such as network playback or local applications in multi-window mode); and full casting status, where all displayed content is casting content and no other non-casting functions are running. Through the casting status, the display device 200 can understand the user's current actual needs, thus providing a basis for subsequent duty cycle adjustments. Then, according to different casting statuses, the display device 200 can dynamically adjust the duty cycle of the WiFi channel and the P2P channel. Specifically, in the non-casting status, the duty cycle of the WiFi channel and the P2P channel is set to the first duty cycle. In this case, the wireless network connection (WiFi channel) has higher priority because the user is currently primarily using the wireless network function, not the casting function. In the first duty cycle, the time slice ratio of the WiFi channel is greater than that of the P2P channel, for example, 1200ms:300ms. In hybrid screen mirroring mode, the duty cycles of the WiFi and P2P channels are set to the second duty cycle. In this case, the system needs to balance the performance of the wireless network connection and the screen mirroring function. In the second duty cycle, the time slice ratios of the WiFi and P2P channels are equal, for example, 500ms:500ms. This setting ensures that both the wireless network connection and the screen mirroring function receive sufficient resources, thus achieving a balance between the two. In full screen mirroring mode, the duty cycles of the WiFi and P2P channels are set to the third duty cycle. In this case, the screen mirroring function (P2P channel) has higher priority because the user is currently primarily focused on the mirrored content. In the third duty cycle, the time slice ratio of the WiFi channel is smaller than that of the P2P channel, for example, 300ms:1200ms. This setting ensures that the screen mirroring function receives more resources, thereby improving the stability and smoothness of screen mirroring. The display device 200 dynamically adjusts the duty cycle of the WiFi channel and P2P channel based on the projection status, enabling reasonable allocation of channel resources in different scenarios. This ensures optimized performance of wireless network connection and projection function, and guarantees that the system can allocate channel resources reasonably according to actual needs in different scenarios. By optimizing channel management strategies, the stability and smoothness of projection function are ensured, and the problem of network performance degradation caused by inconsistency between WiFi channel and P2P channel during projection is solved.
[0135] Figure 9 This application provides schematic diagrams illustrating scenarios where a display device adjusts a P2P channel to the same channel as a WiFi channel, as shown in some embodiments. Figure 9 As shown, in some embodiments, the preset channel includes a DFS channel or a 6G channel, combined with Figure 5If the screen mirroring function is not executed and the WIFI channel is not a DFS channel or a 6G channel, or if the screen mirroring function is executed and after the screen mirroring function is completed and the WIFI channel is not a DFS channel or a 6G channel, the display device 200 can adjust the P2P channel to be the same as the WIFI channel.
[0136] For example, when the display device 200 detects that the screen mirroring function has not been executed and the Wi-Fi channel is not a DFS channel or a 6G channel, the system will adjust the P2P channel to the same channel as the Wi-Fi channel. This ensures that the wireless network connection and screen mirroring function maintain consistency when the screen mirroring function is not running, thereby avoiding potential performance issues caused by channel inconsistency. When the display device 200 detects that the screen mirroring function has been executed and the Wi-Fi channel is not a DFS channel or a 6G channel, the system will similarly adjust the P2P channel to the same channel as the Wi-Fi channel. During the screen mirroring process, the system may adjust the channel or duty cycle according to actual needs to ensure the stability and smoothness of the screen mirroring. After the screen mirroring ends, adjusting the P2P channel to the same channel as the Wi-Fi channel ensures that the performance of the wireless network connection is optimized and prepares for possible subsequent screen mirroring operations. By adjusting the P2P channel to the same channel as the WIFI channel when the screen mirroring function is not executed or after the screen mirroring function is executed, the display device 200 ensures that the wireless network connection and screen mirroring function can work together on the same channel in environments other than DFS channels or 6G channels, thereby optimizing network performance and screen mirroring function and ensuring the stability and smoothness of screen mirroring.
[0137] Figure 10 This is a timing diagram illustrating the channel adjustment method performed by a display device according to some embodiments of this application, such as... Figure 10As shown, in some embodiments, to implement the channel adjustment method, the display device 200 may include a Miracast application, an Android system, a network module, a timer, and a screen mirroring management module. When executing the channel adjustment method, the Miracast application can start Miracast, register network listening broadcasts with the Android system, set a timer, and set Miracast screen mirroring connection and disconnection listening with the screen mirroring management module. The execution of channel adjustment can be divided into a waiting for network events or timer triggering phase and a channel adjustment judgment phase. In the waiting for network events or timer triggering phase, the Miracast application and network module can listen for network connection broadcasts, or trigger a timer to read the WIFI channel and P2P channel. In the channel adjustment judgment phase, it can be divided into cases where the WIFI channel and P2P working channel are inconsistent and cases where they are consistent. If they are inconsistent, it is determined whether a screen mirroring state exists, and whether the WIFI channel is a DFS channel or a 6G channel. Then, based on the screen mirroring state, the duty cycle setting ratio is dynamically adjusted to optimize network performance and solve the problem of network performance degradation caused by the inconsistency between the WIFI channel and the P2P channel during screen mirroring.
[0138] As can be seen from the above technical solutions, the above embodiments provide a display device 200 that, in response to the startup event of the screen casting function, reads the current WiFi channel used to support the wireless network connection function and the P2P channel used to support the screen casting function; if the WiFi channel and the P2P channel are inconsistent, it detects whether the screen casting function is currently being executed; if the screen casting function is not executed, and if the WiFi channel is not a preset channel, the P2P channel is adjusted to be the same as the WiFi channel; if the screen casting function is executed, after the screen casting function is completed, and if the WiFi channel is not a preset channel, the P2P channel is adjusted to be the same as the WiFi channel; specifically, adjusting the P2P channel to be the same as the WiFi channel is configured to: switch the frequency range of the P2P channel to the frequency range of the WiFi channel. The display device 200, by dynamically adjusting the channel, ensures that both the wireless network connection and the screen casting function can achieve optimal performance in different scenarios, solving the problem of network performance degradation caused by the inconsistency between the WiFi channel and the P2P channel during screen casting.
[0139] Based on the display device 200 described above, some embodiments of this application also provide a channel adjustment method, which can be applied to the display device 200 in the above embodiments. In some embodiments, the method may include the following:
[0140] In response to the screen mirroring function's activation event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring.
[0141] If the WiFi channel and the P2P channel are inconsistent, detect whether the screen mirroring function is currently being executed;
[0142] If the WiFi channel is not a preset channel when the screen mirroring function is not executed, the P2P channel will be adjusted to be the same as the WiFi channel.
[0143] When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, the P2P channel is adjusted to the same channel as the WiFi channel.
[0144] Specifically, adjusting the P2P channel to be the same as the WiFi channel is configured as follows:
[0145] Switch the frequency range of the P2P channel to the frequency range of the WiFi channel.
[0146] The above embodiments provide a channel adjustment method, which can dynamically adjust the channel to ensure that wireless network connection and screen projection functions can achieve optimal performance in different scenarios, and solve the problem of network performance degradation caused by inconsistency between WiFi channel and P2P channel during screen projection.
[0147] The same or similar parts between the various embodiments in this specification can be referred to each other, and will not be repeated here.
[0148] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or certain parts of the embodiments of the present invention.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0150] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: The monitor is configured to display the user interface; The controller is configured as follows: In response to the screen mirroring function's activation event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring. If the WiFi channel and the P2P channel are inconsistent, detect whether the screen mirroring function is currently being executed; If the WiFi channel is not a preset channel when the screen mirroring function is not executed, the P2P channel will be adjusted to be the same as the WiFi channel. When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, the P2P channel is adjusted to the same channel as the WiFi channel. Specifically, adjusting the P2P channel to be the same as the WiFi channel is configured as follows: Switch the frequency range of the P2P channel to the frequency range of the WiFi channel.
2. The display device according to claim 1, characterized in that, After the controller adjusts the P2P channel to the same channel as the WiFi channel, it is further configured to: The duty cycles of the WiFi channel and the adjusted P2P channel are set as a first duty cycle; in the first duty cycle, the time slice ratio of the WiFi channel is greater than the time slice ratio of the P2P channel.
3. The display device according to claim 2, characterized in that, After setting the duty cycles of the WiFi channel and the adjusted P2P channel to a first duty cycle, the controller is further configured to: When the router automatically switches channels, it detects whether the WiFi channel and the P2P channel are the same channel; If the WiFi channel and the P2P channel are not the same channel, detect the screen projection status, and redetermine the duty cycle of the WiFi channel and the P2P channel based on the screen projection status; If the WiFi channel and the P2P channel are the same channel, the duty cycle of the WiFi channel and the P2P channel is maintained at the first duty cycle.
4. The display device according to claim 3, characterized in that, The controller detects the screen projection status and is specifically configured as follows: Get the number of windows during the screen mirroring process; Compare the number of windows with the first value; When the number of windows is the first value, if there is content to be cast in the window, the casting state is determined to be full casting state; If the number of windows is greater than the first value, determine the content to be played in the windows; If all the playback content is the screen-casting content, the screen-casting state is determined to be the full screen-casting state; if all the playback content is non-screen-casting content, the screen-casting state is determined to be the non-screen-casting state; if the playback content contains both screen-casting content and non-screen-casting content, the screen-casting state is determined to be the mixed screen-casting state.
5. The display device according to claim 4, characterized in that, The controller re-determines the duty cycle of the WiFi channel and the P2P channel based on the screen projection status, specifically configured as follows: When the screen projection state is the non-screen projection state, the duty cycle of the WiFi channel and the P2P channel is set to the first duty cycle; or, When the screen projection state is the hybrid screen projection state, the duty cycle of the WiFi channel and the P2P channel is set to the second duty cycle; The time slice ratio of the WiFi channel in the second duty cycle is equal to the time slice ratio of the P2P channel; or, When the screen projection state is the full screen projection state, the duty cycle of the WiFi channel and the P2P channel is set to a third duty cycle; in the third duty cycle, the time slice ratio of the WiFi channel is less than the time slice ratio of the P2P channel.
6. The display device according to claim 1, characterized in that, Before reading the WiFi channel currently used to support wireless network connection and the P2P channel used to support screen mirroring, the controller is further configured as follows: Register a network monitoring broadcast and set a timer; the network monitoring broadcast is used to monitor changes in the status of the wireless network connection, and the timer is used to periodically trigger channel detection operations; In response to the network listening broadcast and / or the timeout event of the timer, the operation of reading the WiFi channel and the P2P channel is triggered.
7. The display device according to claim 1, characterized in that, When the screen mirroring function is executed, the controller adjusts the P2P channel to the same channel as the WiFi channel, specifically configured as follows: Record the screen mirroring start and end events; Upon detecting the execution of the screen mirroring function, a channel adjustment flag is added; the channel adjustment flag indicates that the P2P channel is adjusted after the screen mirroring function is completed. The execution status of the screen casting function is determined based on the screen casting start event and the screen casting end event. When the execution status indicates that the screen mirroring function has been completed, the P2P channel is adjusted to be the same as the WiFi channel based on the channel adjustment identifier.
8. The display device according to claim 1, characterized in that, The preset channel includes a DFS channel or a 6G channel, and the controller adjusts the P2P channel to be the same as the WiFi channel, specifically configured as follows: If the screen mirroring function is not executed and the WIFI channel is not a DFS channel or a 6G channel, or if the screen mirroring function is executed and after the screen mirroring function is completed and the WIFI channel is not a DFS channel or a 6G channel, the P2P channel is adjusted to be the same as the WIFI channel.
9. The display device according to claim 1, characterized in that, After detecting whether the screen mirroring function is currently being executed, the controller is also configured as follows: If the WiFi channel and the P2P channel are found to be the same, or if the WiFi channel is the preset channel, the P2P channel is maintained.
10. A channel adjustment method, applied to the display device according to any one of claims 1-9, the display device comprising a display and a controller, characterized in that, The method includes: In response to the screen mirroring function's activation event, read the current WiFi channel used to support wireless network connection and the P2P channel used to support screen mirroring. If the WiFi channel and the P2P channel are inconsistent, detect whether the screen mirroring function is currently being executed; If the WiFi channel is not a preset channel when the screen mirroring function is not executed, the P2P channel will be adjusted to be the same as the WiFi channel. When the screen mirroring function is executed, after the screen mirroring function is completed and the WiFi channel is not the preset channel, the P2P channel is adjusted to the same channel as the WiFi channel. Specifically, adjusting the P2P channel to be the same as the WiFi channel is configured as follows: Switch the frequency range of the P2P channel to the frequency range of the WiFi channel.
Citation Information
Patent Citations
Display device and display method
CN112954419A
Display equipment and screen projection method
CN113507638A