Adaptive dual Wi-Fi configuration method, device, display terminal and storage medium

Through the adaptive dual Wi-Fi configuration method, the Wi-Fi module interface of the display terminal is identified and allocated, and dynamically configured according to the network connection method selected by the user, solving the problems of fixed resource configuration and poor flexibility in the existing technology, and improving the Internet access and screen projection experience.

CN116471709BActive Publication Date: 2025-10-03SHENZHEN KONKA ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310480020.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2025-10-03
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

The existing dual Wi-Fi configuration method is fixed and wastes performance, has poor flexibility, and cannot dynamically adjust resource configuration according to user needs.

Method used

By identifying the Wi-Fi module connected to the display terminal, dynamically allocating WLAN interfaces and P2P interfaces, adaptively configuring according to the network connection method selected by the user, including enabling different interfaces and functions to optimize resource allocation.

Benefits of technology

It achieves dynamic allocation of resources based on usage scenarios and needs, improves Internet bandwidth and screen projection experience, and maximizes the benefits of dual Wi-Fi configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116471709B_ABST
    Figure CN116471709B_ABST
Patent Text Reader

Abstract

The present application provides an adaptive dual Wi-Fi configuration method, device, display terminal, and storage medium. The method is applied to a display terminal, comprising: identifying a Wi-Fi module connected to the display terminal; if two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, assigning interfaces to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, wherein the interfaces include a WLAN interface and a P2P interface; displaying network connection methods that can be implemented by the display terminal for user selection, wherein the network connection methods include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules; determining the network connection method selected by the user, and completing the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module. The present application can maximize the benefits of dual Wi-Fi configuration by dynamically allocating resources according to usage scenarios, thereby obtaining a better Internet access and screen projection experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the application field of Wi-Fi technology, and specifically to an adaptive dual Wi-Fi configuration method, device, display terminal and storage medium. Background Art

[0002] With the advancement of science and technology, smart devices that previously couldn't simultaneously access the internet via Wi-Fi after connecting to a Wi-Fi hotspot, and lacked both 2.4G and 5G hotspot bands, can now utilize dual Wi-Fi technology. This greatly enhances the real-time projection and transmission of high-definition video, virtual reality, and other big data. However, existing technologies primarily focus on increasing bandwidth and optimizing communication efficiency and quality through dual Wi-Fi. Furthermore, dual Wi-Fi requires pre-configuration and a relatively fixed operating mode, resulting in wasted performance and limited flexibility. Summary of the Invention

[0003] In view of this, the present application provides an adaptive dual Wi-Fi configuration method, device, display terminal and storage medium, aiming to solve or at least partially solve the deficiencies of the above-mentioned background technology. The adaptive dual Wi-Fi configuration method has the advantages that this method can be used.

[0004] Specifically, this application is implemented through the following technical solutions:

[0005] According to a first aspect of the present application, an adaptive dual Wi-Fi configuration method is provided, which is applied to a display terminal and includes:

[0006] Identify the Wi-Fi module connected to the display terminal;

[0007] If two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, interfaces are allocated to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, where the interfaces include a WLAN interface and a P2P interface;

[0008] Displaying network connection modes that can be realized by the display terminal for selection by the user, wherein the network connection modes include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules;

[0009] The network connection mode selected by the user is determined, and the configuration of the display terminal is completed based on the network connection mode and the interface of each Wi-Fi module.

[0010] Preferably, if it is determined that the network connection method selected by the user is to complete the network connection through a Wi-Fi module, then the configuring of the display terminal based on the network connection method and the interface of each Wi-Fi module includes:

[0011] Activate the WLAN interface of the first Wi-Fi module and the P2P interface of the second Wi-Fi module;

[0012] The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

[0013] Preferably, when the user activates the soft AP function, the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module further includes:

[0014] Determine whether the screen projection function is enabled;

[0015] If not, reload the driver of the second Wi-Fi module and allocate an AP interface to it for external devices to access;

[0016] If so, an AP interface is additionally allocated to the second Wi-Fi module for access by external devices.

[0017] Preferably, if it is determined that the network connection method selected by the user is to complete the network connection through two Wi-Fi modules, then based on the network connection method and the interface of each Wi-Fi module, completing the configuration of the display terminal includes:

[0018] Starting the WLAN interface of the first Wi-Fi module, the WLAN interface of the second Wi-Fi module, and the P2P interface of the second Wi-Fi module;

[0019] The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module or the second Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

[0020] Preferably, when the user only activates the screen projection function, the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module further includes:

[0021] Determine the number of screen projection access devices;

[0022] If it is not greater than 2, the configuration of the display terminal is not changed;

[0023] If it is greater than 2 and not greater than 4, the WLAN interface of the second Wi-Fi module is turned off, and the display terminal is configured to implement the STA Internet access function through the first Wi-Fi module and the P2P screen projection function through the second Wi-Fi module;

[0024] If it is greater than 4, the P2P interface of the first Wi-Fi module is started and the WLAN interface of the second Wi-Fi module is closed, and the display terminal is configured to realize the STA Internet access function through the first Wi-Fi module, and realize the P2P screen projection function through the first Wi-Fi module or the second Wi-Fi module. Among them, according to the order of access time, the first four screen projection access devices that are connected first realize P2P screen projection through the second Wi-Fi module, and the screen projection access devices that are connected later realize P2P screen projection through the first Wi-Fi module.

[0025] Preferably, when the user activates the screen projection function and the soft AP function at the same time, the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module further includes:

[0026] Determine the number of screen projection access devices;

[0027] If the value is not greater than 4, the WLAN interface of the second Wi-Fi module is shut down, and an AP interface is allocated to the second Wi-Fi module for access by external devices;

[0028] If it is greater than 4, the WLAN interface of the second Wi-Fi module and the P2P interface of the first Wi-Fi module are closed, and an AP interface is allocated to the first Wi-Fi module for access by external devices.

[0029] Preferably, the method further comprises:

[0030] If the number of the types of the Wi-Fi modules is 1, the configuration of the display terminal is completed according to a preset default configuration method.

[0031] According to a second aspect of the present application, an adaptive dual Wi-Fi configuration device is provided, which is applied to a display terminal and includes:

[0032] an identification unit, configured to identify a Wi-Fi module connected to the display terminal;

[0033] an allocating unit, configured to allocate interfaces to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method if two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, wherein the interfaces include a WLAN interface and a P2P interface;

[0034] A display unit, configured to display network connection modes that can be realized by the display terminal for selection by the user, wherein the network connection modes include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules;

[0035] The configuration unit is used to determine the network connection mode selected by the user and complete the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module.

[0036] According to a third aspect of the present application, a display terminal is provided, comprising a memory, a processor, and a display, wherein the memory stores a computer program, and the processor implements any one of the steps of the adaptive dual Wi-Fi configuration method when executing the computer program.

[0037] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements the steps of any one of the adaptive dual Wi-Fi configuration methods.

[0038] As can be seen from the above, the adaptive dual Wi-Fi configuration method provided by this application identifies the Wi-Fi module currently connected to the display terminal, and then specifically allocates a WLAN interface and a P2P interface to the identified Wi-Fi module. The user then selects a specific network connection method, thereby completing the configuration of the display terminal according to the network connection method selected by the user. In this way, the configuration can be selected according to the usage scenario and actual needs, and resources can be dynamically allocated, thereby maximizing the benefits of the dual Wi-Fi configuration and obtaining a better Internet access and screen projection experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 This is a flow chart of an adaptive dual Wi-Fi configuration method shown in this application.

[0041] Figure 2 4 is a flow chart of another adaptive dual Wi-Fi configuration method shown in this application.

[0042] Figure 3 This application shows an implementation Figure 2 Flowchart of step 270 in the illustrated embodiment.

[0043] Figure 4 This application shows an implementation Figure 2 Flowchart of step 280 in the illustrated embodiment.

[0044] Figure 5 This is another implementation shown in this application Figure 2 Flowchart of step 280 in the illustrated embodiment.

[0045] Figure 6 This is a block diagram of an adaptive dual Wi-Fi configuration device shown in this application.

[0046] Figure 7 This is a schematic structural diagram of a display terminal shown in this application. DETAILED DESCRIPTION

[0047] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0048] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0049] It should be understood that although the terms "first," "second," and "third" may be used in this application to describe various types of information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information.

[0050] It should be further understood that the term "if" as used in the present specification and the appended claims may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [the described condition or event]" or "in response to detecting [the described condition or event]," depending on the context.

[0051] In related technologies, existing electronic devices can use dual Wi-Fi technology to access the Internet at high speed and achieve high-performance real-time screen projection. However, using dual Wi-Fi currently requires pre-configuration and has a relatively fixed working mode, which wastes performance and has poor flexibility.

[0052] Therefore, the present application provides an adaptive dual Wi-Fi configuration method, device, display terminal and storage medium, which can dynamically and in real time configure according to the network connection method specifically selected by the user, flexibly apply dual Wi-Fi, and improve Internet bandwidth and screen projection related application experience.

[0053] Next, the adaptive dual Wi-Fi configuration method provided by this application will be further described in conjunction with the following embodiments. In the absence of conflict, the features of the following embodiments can be combined with each other.

[0054] Figure 1 This is a flowchart of an adaptive dual Wi-Fi configuration method shown in this application. The method is applied to a display terminal. Please refer to Figure 1 As shown, the method includes:

[0055] Step 110: Identify the Wi-Fi module connected to the display terminal.

[0056] In this embodiment, after the display terminal is powered on, the underlying module of the display terminal is first identified to determine the number of types of Wi-Fi modules connected to the display terminal, so as to facilitate subsequent configuration according to the actual situation of the display terminal. If the display terminal is connected to two Wi-Fi modules, step 120 is executed; if the display terminal is connected to only one Wi-Fi module, the display terminal is configured according to a preset default configuration method, wherein the preset default configuration method is pre-set by the staff and includes:

[0057] Load the module driver corresponding to the identified Wi-Fi module;

[0058] Allocate a WLAN interface and a P2P interface to the Wi-Fi module;

[0059] The WLAN interface and the P2P interface are started.

[0060] Preferably, in this embodiment, the WLAN interface and the P2P interface may be the wlan0 interface and the p2p0 interface, and starting the WLAN interface and the P2P interface includes starting wpa_supplicant and mounting it to the wlan0 interface and starting P2PService and mounting it to the p2p0 interface.

[0061] Step 120 : If two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, interfaces are allocated to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, where the interfaces include a WLAN interface and a P2P interface.

[0062] In this embodiment, if the display terminal is connected to two Wi-Fi modules, corresponding WLAN interfaces and P2P interfaces are respectively allocated to the two Wi-Fi modules, wherein the WLAN interface of the first Wi-Fi module is different from the WLAN interface of the second Wi-Fi module, and the P2P interface of the first Wi-Fi module is also different from the P2P interface of the second Wi-Fi module.

[0063] Preferably, in this embodiment, the WLAN interface and P2P interface of the first Wi-Fi module may be a wlan0 interface and a p2p0 interface, and the WLAN interface and P2P interface of the second Wi-Fi module may be a wlan1 interface and a p2p1 interface.

[0064] Step 130 , displaying the network connection methods that can be implemented by the display terminal for the user to select, wherein the network connection methods include completing the network connection through one Wi-Fi module and completing the network connection through two Wi-Fi modules.

[0065] In this embodiment, the display terminal connected to two Wi-Fi modules can complete the network connection through only one Wi-Fi module or through two Wi-Fi modules. The specific connection method can be selected by the user.

[0066] Preferably, in this embodiment, a connection option box can be popped up, and the user can select a connection method in the connection option box to complete the network connection. Of course, in other embodiments, other methods can be used to display the network connection methods that can be achieved by the display terminal for user selection, such as voice broadcast. This application does not further limit the specific method of display.

[0067] Step 140: Determine the network connection mode selected by the user, and complete the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module.

[0068] Continuing with the above embodiment as an example, if the user chooses to complete the network connection through a Wi-Fi module, that is, when only one Wi-Fi hotspot is connected, the WLAN interface (wlan0 interface) of the first Wi-Fi module and the P2P interface (p2p1 interface) of the second Wi-Fi module are started by default, and the display terminal implements the STA Internet access function through the first Wi-Fi module, and implements the P2P screen projection function and the soft AP function through the second Wi-Fi module; if the user chooses to complete the network connection through two Wi-Fi modules, that is, when Wi-Fi hotspot 1 and Wi-Fi hotspot 2 are connected at the same time, the WLAN interface (wlan0 interface) of the first Wi-Fi module, the WLAN interface (wlan1 interface) of the second Wi-Fi module and the P2P interface (p2p1 interface) of the second Wi-Fi module are started by default, and the display terminal implements the STA Internet access function through the first Wi-Fi module and the second Wi-Fi module, and implements the P2P screen projection function and the soft AP function through the second Wi-Fi module. AP function, where the two Wi-Fi modules support Internet access applications at the same time. According to the system scheduling of the display terminal, different Internet access applications use Wi-Fi hotspot 1 and Wi-Fi hotspot 2 to access the Internet respectively.

[0069] Furthermore, in this embodiment, when the user chooses to connect to a Wi-Fi hotspot and activates the soft AP function at the same time, step 140 further includes:

[0070] Determine whether the screen projection function is enabled;

[0071] If not, reload the driver of the second Wi-Fi module and allocate an AP interface to it for external devices to access;

[0072] If so, an AP interface is additionally allocated to the second Wi-Fi module for access by external devices.

[0073] Specifically, after reloading the driver, the AP interface allocated can be the ap1 interface, and then Hostpad is started according to the preset hotspot information, and attached to the ap1 interface so that external devices can connect to the hotspot; the additional AP interface allocated can be the ap2 interface, and Hostpad is started according to the preset hotspot information, and attached to the ap2 interface so that external devices can connect to the hotspot.

[0074] Furthermore, in this embodiment, when the user chooses to connect to two Wi-Fi hotspots and only activates the screen projection function, step 140 also includes:

[0075] Determine the number of screen projection access devices;

[0076] If it is not greater than 2, the configuration of the display terminal is not changed;

[0077] If it is greater than 2 and not greater than 4, the WLAN interface of the second Wi-Fi module is turned off, and the display terminal is configured to implement the STA Internet access function through the first Wi-Fi module and the P2P screen projection function through the second Wi-Fi module;

[0078] If it is greater than 4, the P2P interface of the first Wi-Fi module is started and the WLAN interface of the second Wi-Fi module is closed, and the display terminal is configured to realize the STA Internet access function through the first Wi-Fi module, and realize the P2P screen projection function through the first Wi-Fi module or the second Wi-Fi module. Among them, according to the order of access time, the first four screen projection access devices that are connected first realize P2P screen projection through the second Wi-Fi module, and the screen projection access devices that are connected later realize P2P screen projection through the first Wi-Fi module.

[0079] In this embodiment, the number of screen projection access devices is first determined, and then the module function is adaptively switched according to the number of screen projection access devices, and the working status of the Wi-Fi module is changed in real time to provide a better Internet access and screen projection experience; when the number of screen projection access devices is greater than 2 but not greater than 4, the STA Internet access function of the second Wi-Fi module is turned off, and all its bandwidth is used for screen projection applications; when the number of screen projection access devices is greater than 4, in addition to turning off the STA Internet access function of the second Wi-Fi module, the P2P screen projection function of the first Wi-Fi module is activated to increase the bandwidth used for screen projection applications, thereby maximizing the benefits of the dual Wi-Fi configuration.

[0080] From the above specific description of the embodiment, it can be seen that the adaptive dual Wi-Fi configuration method provided by the present application identifies the Wi-Fi module currently connected to the display terminal, and then specifically allocates a WLAN interface and a P2P interface to the identified Wi-Fi module. The user then selects a specific network connection method, thereby completing the configuration of the display terminal according to the network connection method selected by the user. In this way, the configuration can be selected according to the usage scenario and actual needs, and resources can be dynamically allocated, thereby maximizing the benefits of the dual Wi-Fi configuration and obtaining a better Internet access and screen projection experience.

[0081] Next, we take TV product application as an example and combine it with Figure 2 Explain practical applications.

[0082] Figure 2 This is another adaptive dual Wi-Fi configuration method shown in this application. This method is based on the HiSilicon V811 platform and is compatible with both the MT7663BU Wi-Fi module and the RTL8812BU Wi-Fi module. Please refer to Figure 2 As shown, the method includes:

[0083] Step 210: Start the system and load the device.

[0084] Step 220, identifying the underlying modules.

[0085] Step 230 , determine the number of Wi-Fi modules connected to the device. If only one type is connected, execute step 240 ; if both types are connected, execute step 250 .

[0086] In step 230 , based on the underlying modules identified in step 220 , it is determined whether the current device is connected to only one Wi-Fi module or to two Wi-Fi modules at the same time.

[0087] Step 240 , load the module driver corresponding to the connected Wi-Fi module and allocate an interface for it, and then process according to the general application process.

[0088] Specifically, in step 240, if the connected Wi-Fi module is MT7663BU, the MT7663BU driver is loaded; if the connected Wi-Fi module is RTL8812BU, the RTL8812BU driver is loaded; regardless of whether it is MT7663BU or RTL8812BU, the wlan0 interface and the p2p0 interface are allocated thereto; after the user connects to Wi-Fi, wpa_supplicant is started and mounted to the wlan0 interface, and P2PService is started and mounted to the p2p0 interface.

[0089] Step 250: Load the MT7663BU driver and the RTL8812BU driver, allocate the wlan0 interface and the p2p0 interface to the MT7663BU, and allocate the wlan1 interface and the p2p1 interface to the RTL8812BU.

[0090] In step 260 , a connection option box pops up, and the user selects a network connection method. If the user chooses to connect to one Wi-Fi hotspot, step 270 is executed; if the user chooses to connect to two Wi-Fi hotspots, step 280 is executed.

[0091] In step 260, the user can choose to connect to one Wi-Fi hotspot (i.e., complete the network connection through one Wi-Fi module) or connect to two Wi-Fi hotspots (i.e., complete the network connection through two Wi-Fi modules) through the pop-up connection option box; further, in this embodiment, the default option in the connection option box is to connect to one Wi-Fi hotspot.

[0092] Step 270: Start the wlan0 interface and the p2p1 interface, use the MT7663BU to connect to the Wi-Fi hotspot, and assign the RTL8812BU as a p2p application. The MT7663BU is used for STA Internet access, and the RTL8812BU is used for screen projection applications.

[0093] Specifically, in step 270, wpa_supplicant is started and mounted to the wlan0 interface, and P2PService is started and mounted to the p2p1 interface.

[0094] In step 280, the wlan0 interface, wlan1 interface, and p2p1 interface are started. The MT7663BU connects to Wi-Fi hotspot 1, and the RTL8812BU connects to Wi-Fi hotspot 2. The MT7663BU is used for STA Internet access, and the RTL8812BU is used for STA Internet access and screen projection applications.

[0095] Specifically, in step 280, wpa_supplicant is started and mounted on the wlan0 and wlan1 interfaces, and P2P Service is started and mounted on the p2p1 interface. Both Wi-Fi modules support Internet access applications. Depending on the device's system scheduling, different applications use Wi-Fi hotspot 1 and Wi-Fi hotspot 2 for Internet access.

[0096] Preferably, in this embodiment, when the user chooses to connect to a Wi-Fi hotspot and activate the soft AP function, Figure 3 As shown, step 270 may specifically include:

[0097] Step 271, determine whether screen projection is turned on. If so, execute step 272; if not, execute step 273.

[0098] In step 272, an additional ap2 interface is allocated to the RTL8812BU, Hostpad is started with the preset hotspot information, and is connected to the ap2 interface so that external devices can connect to the corresponding hotspot.

[0099] Step 273, reload the RTL8812BU driver, assign it the ap1 interface, start Hostpad with the preset hotspot information, and connect it to the ap1 interface so that external devices can connect to the corresponding hotspot.

[0100] Preferably, in this embodiment, when the user chooses to connect to two Wi-Fi hotspots and only activates the screen projection function, as shown in FIG. Figure 4 As shown, step 280 may specifically include:

[0101] Step 281, determine the number of screen projection access devices. If it is not greater than 2, execute step 282; if it is greater than 2 but not greater than 4, execute step 283; if it is greater than 4, execute step 284.

[0102] In step 282, the wlan0 interface, wlan1 interface, and p2p1 interface are enabled. The MT7663BU connects to Wi-Fi hotspot 1, and the RTL8812BU connects to Wi-Fi hotspot 2. The MT7663BU is used for STA Internet access, and the RTL8812BU is used for STA Internet access and screen projection applications.

[0103] MT7663BU is used for STA Internet access, and RTL8812BU is used for screen projection applications.

[0104] In step 284, the wlan0, p2p0, and p2p1 interfaces are enabled, and the MT7663BU connects to Wi-Fi hotspot 1. The MT7663BU is used for both STA Internet access and screen projection applications, and the RTL8812BU is used for screen projection applications.

[0105] Preferably, in this embodiment, when the user chooses to connect to two Wi-Fi hotspots and activates the screen projection function and the softAP function, as shown in FIG. Figure 5 As shown, step 280 may specifically include:

[0106] Step 2810, determine the number of screen projection access devices. If it is not greater than 4, execute step 2820; if it is greater than 4, execute step 2830.

[0107] In step 2820, the wlan0 and p2p1 interfaces are started, and the MT7663BU connects to Wi-Fi hotspot 1. At the same time, the ap2 interface is assigned to the RTL8812BU, and the Hostpad is started with the preset hotspot information and connected to the ap2 interface so that external devices can connect to the corresponding hotspot.

[0108] In this embodiment, if the wlan1 interface is started when the soft AP function is started, the wlan1 interface is shut down, that is, the RTL8812BU STA Internet access function is shut down, and all bandwidth is used for the screen projection application.

[0109] Step 2830: Start the wlan0 interface and the p2p1 interface, and the MT7663BU connects to Wi-Fi hotspot 1. At the same time, the ap0 interface is assigned to the MT7663BU, and the Hostpad is started with the preset hotspot information and connected to the ap0 interface so that external devices can connect to the corresponding hotspot.

[0110] In this embodiment, if the wlan1 interface and / or the p2p0 interface are already started when the soft AP function is started, the started wlan1 interface and / or the p2p0 interface are shut down, that is, the RTL8812BU STA Internet access function and the MT7663BU screen projection function are shut down.

[0111] Corresponding to the aforementioned embodiment of an adaptive dual Wi-Fi configuration method, the present application also provides an embodiment of an adaptive dual Wi-Fi configuration device.

[0112] Figure 6 This is a block diagram of an adaptive dual Wi-Fi configuration device shown in this application. Please refer to Figure 6 As shown, the device may include:

[0113] The identification unit 610 is configured to identify the Wi-Fi module to which the display terminal is connected.

[0114] The allocating unit 620 is configured to allocate interfaces to the first and second Wi-Fi modules according to a preset allocation method if two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified. The interfaces include a WLAN interface and a P2P interface.

[0115] Preferably, the allocation unit 620 may also be used to:

[0116] If only one Wi-Fi module is identified, the display terminal is configured according to a preset default configuration.

[0117] The display unit 630 is used to display the network connection methods that can be implemented by the display terminal for the user to choose. The network connection methods include completing the network connection through one Wi-Fi module and completing the network connection through two Wi-Fi modules.

[0118] The configuration unit 640 is configured to determine the network connection mode selected by the user and complete the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module.

[0119] Preferably, if it is determined that the network connection method selected by the user is to complete the network connection through a Wi-Fi module, the configuration unit 640 is specifically configured to:

[0120] Activate the WLAN interface of the first Wi-Fi module and the P2P interface of the second Wi-Fi module;

[0121] The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

[0122] Furthermore, when the user chooses to complete the network connection through a Wi-Fi module and activate the soft AP function, the configuration unit 640 is further configured to:

[0123] Determine whether the screen projection function is enabled;

[0124] If not, reload the driver of the second Wi-Fi module and allocate an AP interface to it for external devices to access;

[0125] If so, an AP interface is additionally allocated to the second Wi-Fi module for access by external devices.

[0126] Preferably, if it is determined that the network connection method selected by the user is to complete the network connection through two Wi-Fi modules, the configuration unit 640 is specifically used to:

[0127] Starting the WLAN interface of the first Wi-Fi module, the WLAN interface of the second Wi-Fi module, and the P2P interface of the second Wi-Fi module;

[0128] The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module or the second Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

[0129] Furthermore, when the user chooses to complete the network connection through two Wi-Fi modules and only activate the screen projection function, the configuration unit 640 is further used to:

[0130] Determine the number of screen projection access devices;

[0131] If it is not greater than 2, the configuration of the display terminal is not changed;

[0132] If it is greater than 2 and not greater than 4, the WLAN interface of the second Wi-Fi module is turned off, and the display terminal is configured to implement the STA Internet access function through the first Wi-Fi module and the P2P screen projection function through the second Wi-Fi module;

[0133] If it is greater than 4, the P2P interface of the first Wi-Fi module is started and the WLAN interface of the second Wi-Fi module is closed, and the display terminal is configured to realize the STA Internet access function through the first Wi-Fi module, and realize the P2P screen projection function through the first Wi-Fi module or the second Wi-Fi module. Among them, according to the order of access time, the first four screen projection access devices that are connected first realize P2P screen projection through the second Wi-Fi module, and the screen projection access devices that are connected later realize P2P screen projection through the first Wi-Fi module.

[0134] Furthermore, when the user chooses to complete the network connection through two Wi-Fi modules and simultaneously activate the screen projection function and the soft AP function, the configuration unit 640 is further configured to:

[0135] Determine the number of screen projection access devices;

[0136] If the value is not greater than 4, the WLAN interface of the second Wi-Fi module is shut down, and an AP interface is allocated to the second Wi-Fi module for access by external devices;

[0137] If it is greater than 4, the WLAN interface of the second Wi-Fi module and the P2P interface of the first Wi-Fi module are closed, and an AP interface is allocated to the first Wi-Fi module for access by external devices.

[0138] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0139] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the partial description of the method embodiment. Those skilled in the art can clearly understand that the device embodiment described above is merely illustrative. For the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual application, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application.

[0140] Based on the above embodiment, the present application also provides a display terminal, whose principle block diagram can be as follows: Figure 7 As shown. The above-mentioned display terminal includes a processor, a memory, a network interface and a display, and a Wi-Fi module connected through a system bus. Among them, the processor of the display terminal is used to provide computing and control capabilities. The memory of the display terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and an adaptive dual Wi-Fi configuration program. The internal memory provides an environment for the operation of the operating system and the adaptive dual Wi-Fi configuration program in the non-volatile storage medium. The network interface of the display terminal is used to communicate with an external terminal through a network connection. When the adaptive dual Wi-Fi configuration program is executed by the processor, the steps of any one of the above-mentioned adaptive dual Wi-Fi configuration methods are implemented. The display of the display terminal can be a liquid crystal display or an electronic ink display, and the Wi-Fi module can include a plurality of Wi-Fi modules of different models.

[0141] Those skilled in the art will understand that Figure 7The principle block diagram shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the display terminal to which the solution of the present application is applied. The specific display terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0142] In an exemplary embodiment, a display terminal is provided. The display terminal includes a memory, a processor, and a display. The memory stores an adaptive dual Wi-Fi module configuration program that can be executed on the processor. When the adaptive dual Wi-Fi module configuration program is executed by the processor, the following operating instructions are performed:

[0143] Identify the Wi-Fi module connected to the display terminal;

[0144] If two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, interfaces are allocated to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, where the interfaces include a WLAN interface and a P2P interface;

[0145] Displaying network connection modes that can be realized by the display terminal for selection by the user, wherein the network connection modes include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules;

[0146] The network connection mode selected by the user is determined, and the configuration of the display terminal is completed based on the network connection mode and the interface of each Wi-Fi module.

[0147] In an exemplary embodiment, a computer-readable storage medium is further provided. The computer-readable storage medium stores an adaptive dual Wi-Fi configuration program. When the adaptive dual Wi-Fi configuration program is executed by a processor, the steps of any one of the adaptive dual Wi-Fi configuration methods provided in the embodiments of the present application are implemented.

[0148] In summary, the present application provides an adaptive dual Wi-Fi configuration method, device, display terminal and storage medium, the method is applied to the display terminal, including: identifying the Wi-Fi module connected to the display terminal; if two Wi-Fi modules, namely the first Wi-Fi module and the second Wi-Fi module, are identified, then the interfaces are allocated to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, the interfaces including the WLAN interface and the P2P interface; displaying the network connection methods that can be implemented by the display terminal for user selection, the network connection methods including completing the network connection through one Wi-Fi module and completing the network connection through two Wi-Fi modules; determining the network connection method selected by the user, and completing the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module. The adaptive dual Wi-Fi configuration method provided in the present application can dynamically allocate resources according to the usage scenario, maximize the benefits of the dual Wi-Fi configuration, and obtain a better Internet access and screen projection experience.

[0149] It should be understood that the serial numbers of the steps in the above embodiments do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0150] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0151] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0152] In the embodiments provided herein, it should be understood that the disclosed apparatus / terminal device and method may be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For example, the division of the modules or units described above is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or omitting or not implementing certain features.

[0153] If the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0154] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. An adaptive dual Wi-Fi configuration method, applied to a display terminal, characterized in that: The method comprises: Identify the Wi-Fi module connected to the display terminal; If two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, interfaces are allocated to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method, where the interfaces include a WLAN interface and a P2P interface; Displaying network connection modes that can be realized by the display terminal for selection by the user, wherein the network connection modes include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules; Determining the network connection mode selected by the user, and completing configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module; If it is determined that the network connection method selected by the user is to complete the network connection through a Wi-Fi module, then the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module includes: Activate the WLAN interface of the first Wi-Fi module and the P2P interface of the second Wi-Fi module; configure the display terminal to implement the STA Internet access function through the first Wi-Fi module, and implement the P2P screen projection function and softAP function through the second Wi-Fi module; If it is determined that the network connection method selected by the user is to complete the network connection through two Wi-Fi modules, then based on the network connection method and the interface of each Wi-Fi module, completing the configuration of the display terminal includes: Starting the WLAN interface of the first Wi-Fi module, the WLAN interface of the second Wi-Fi module, and the P2P interface of the second Wi-Fi module; The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module or the second Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

2. The adaptive dual Wi-Fi configuration method according to claim 1, wherein: When the user selects a Wi-Fi module and activates the soft AP function, configuring the display terminal based on the network connection method and the interface of each Wi-Fi module further includes: Determine whether the screen projection function is enabled; If not, reload the driver of the second Wi-Fi module and allocate an AP interface to it for external devices to access; If so, an AP interface is additionally allocated to the second Wi-Fi module for access by external devices.

3. The adaptive dual Wi-Fi configuration method according to claim 1, wherein: When the user selects two Wi-Fi modules and only activates the screen projection function, the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module further includes: Determine the number of screen projection access devices; If it is not greater than 2, the configuration of the display terminal is not changed; If it is greater than 2 and not greater than 4, the WLAN interface of the second Wi-Fi module is turned off, and the display terminal is configured to implement the STA Internet access function through the first Wi-Fi module and the P2P screen projection function through the second Wi-Fi module; If it is greater than 4, the P2P interface of the first Wi-Fi module is started and the WLAN interface of the second Wi-Fi module is closed, and the display terminal is configured to realize the STA Internet access function through the first Wi-Fi module, and realize the P2P screen projection function through the first Wi-Fi module or the second Wi-Fi module. Among them, according to the order of access time, the first four screen projection access devices that are connected first realize P2P screen projection through the second Wi-Fi module, and the screen projection access devices that are connected later realize P2P screen projection through the first Wi-Fi module.

4. The adaptive dual Wi-Fi configuration method according to claim 1, wherein: When the user selects two Wi-Fi modules and simultaneously activates the screen projection function and the soft AP function, the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module further includes: Determine the number of screen projection access devices; If the value is not greater than 4, the WLAN interface of the second Wi-Fi module is shut down, and an AP interface is allocated to the second Wi-Fi module for access by external devices; If it is greater than 4, the WLAN interface of the second Wi-Fi module is closed, and an AP interface is allocated to the first Wi-Fi module for access by external devices.

5. The adaptive dual Wi-Fi configuration method according to claim 1, wherein: The method further comprises: If only one Wi-Fi module is identified, the display terminal is configured according to a preset default configuration.

6. An adaptive dual Wi-Fi configuration device, applied to a display terminal, characterized in that: The device comprises: an identification unit, configured to identify a Wi-Fi module connected to the display terminal; an allocating unit, configured to allocate interfaces to the first Wi-Fi module and the second Wi-Fi module according to a preset allocation method if two Wi-Fi modules, namely a first Wi-Fi module and a second Wi-Fi module, are identified, wherein the interfaces include a WLAN interface and a P2P interface; A display unit, configured to display network connection modes that can be realized by the display terminal for selection by the user, wherein the network connection modes include completing network connection through one Wi-Fi module and completing network connection through two Wi-Fi modules; a configuration unit, configured to determine the network connection mode selected by the user, and complete the configuration of the display terminal based on the network connection mode and the interface of each Wi-Fi module; If it is determined that the network connection method selected by the user is to complete the network connection through a Wi-Fi module, then the configuration of the display terminal based on the network connection method and the interface of each Wi-Fi module includes: Activate the WLAN interface of the first Wi-Fi module and the P2P interface of the second Wi-Fi module; configure the display terminal to implement the STA Internet access function through the first Wi-Fi module, and implement the P2P screen projection function and softAP function through the second Wi-Fi module; If it is determined that the network connection method selected by the user is to complete the network connection through two Wi-Fi modules, then based on the network connection method and the interface of each Wi-Fi module, completing the configuration of the display terminal includes: Starting the WLAN interface of the first Wi-Fi module, the WLAN interface of the second Wi-Fi module, and the P2P interface of the second Wi-Fi module; The display terminal is configured to implement the STA Internet access function through the first Wi-Fi module or the second Wi-Fi module, and to implement the P2P screen projection function and the soft AP function through the second Wi-Fi module.

7. A display terminal, characterized in that: The display terminal includes a memory, a processor and a display, the memory stores a computer program, and is characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • The method of co-existence of ap mode and p2p mode of dual wifi module

    CN105592491B

  • Screen sharing-based screen projection method, intelligent terminal and storage medium

    CN115617291A