Method and device for opening wireless hotspot and hotspot sharing equipment

By setting up the network card mode in the hotspot sharing device and using the virtual connection manager, the channel switching problem of the network card when dealing with WiFi and hotspot modes is solved, and the network performance of wireless hotspots is improved.

CN119071879APending Publication Date: 2024-12-03NEW H3C INTELLIGENCE TERMINAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411354203.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, network cards need to frequently switch channels when handling connections to WiFi mode and wireless hotspot mode, resulting in communication bottlenecks and poor network performance.

Method used

When the hotspot sharing device is started, the first network card is set as the wireless hotspot mode, the second network card is connected to the wireless broadband mode, and the current configuration information is obtained through the virtual connection manager, the wireless hotspot is turned on, and the uplink and downlink isolation is achieved. Avoid channel switching between network cards.

Benefits of technology

Improve the network performance of wireless hotspots, avoid the bottleneck of network card communication, and ensure the best state of upstream and downstream networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071879A_ABST
    Figure CN119071879A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network communication, and discloses a method and device for opening a wireless hotspot and hotspot sharing equipment, and the method comprises the steps: setting a first network card to be in a wireless hotspot mode and setting a second network card to be in a wireless broadband connection mode based on a network card configuration strategy when the hotspot sharing equipment is started; determining a connection function manager of the network account based on virtual connection of the first network card to the target virtual network card, acquiring current configuration information of the wireless hotspot by using the connection function manager, and opening the wireless hotspot based on the current configuration information; and sharing the network of the second network card to the target virtual network card. According to the invention, the hotspot sharing device does not interfere with each other when using the uplink of the first network card and the downlink of the second network card, each network card does not need to be switched back and forth between different channels, the uplink network and the downlink network work at the same time, the optimal network state can be achieved, the bottleneck does not easily occur in the communication of the network cards, and the user experience is improved. And the network performance of the wireless hotspot is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network communication technology, and in particular to a method and apparatus for opening a wireless hotspot, and a hotspot sharing device. Background Art

[0002] With the development of technology, display technology is constantly updated, from 1080P to 4K and now to 8K resolution. In order to see every detail of the picture or video more clearly, the resolution of the picture or video resources is getting higher and higher. In the medical field, the clearer the picture or video resource, the more helpful it is for doctors to diagnose the health of cells or human tissues through contours. In conference scenarios, screen projection is often performed while conducting video conferences to ensure better clarity and smoothness of the video conference process and screen projection. However, the higher and higher resolution of pictures and videos, the higher the requirements for the computer's uplink and downlink.

[0003] In the related art, if the hotspot sharing device uses the same wireless network card to enable the hotspot and connect to wireless broadband (WiFi), the network card needs to bear the pressure of uplink and download, the channel of the connected WiFi and the hotspot channel are not the same channel, the network card works on one channel for a period of time, and the network card needs to switch back and forth between the channel connected to WiFi mode and the channel of wireless hotspot mode. If dual network cards are used to enable wireless hotspot mode and connect to WiFi mode, usually after the system is turned on, the operating system cannot specify the network card to enable wireless hotspot mode. When one of the dual network cards works on the channel connected to WiFi, the other network card works on the channel to enable hotspot mode, and each network card will switch back and forth between the channel connected to WiFi mode and the channel to enable hotspot mode.

[0004] Therefore, in the related art, when a single network card or dual network cards are processing connection WiFi mode and wireless hotspot mode, each network card needs to switch back and forth between different channels, and bottlenecks are prone to occur in the communication of the network cards, resulting in poor network performance of the wireless hotspot. Summary of the invention

[0005] In view of this, the present disclosure provides a method for enabling a wireless hotspot to solve the problem that a network card needs to switch back and forth between different channels when processing connection WiFi mode and wireless hotspot mode, the communication of the network card is prone to bottlenecks, and the network performance of the wireless hotspot is poor.

[0006] In a first aspect, the present disclosure provides a method for enabling a wireless hotspot, the method comprising: when a hotspot sharing device is started, based on a network card configuration policy, setting a first network card of the hotspot sharing device to a wireless hotspot mode, and setting a second network card of the hotspot sharing device to a wireless broadband connection mode; based on a virtual connection of the first network card to a target virtual network card, determining a connection function manager of a network account, using the connection function manager to obtain current configuration information of the wireless hotspot, and enabling the wireless hotspot based on the current configuration information; and sharing the network of the second network card to the target virtual network card.

[0007] In a second aspect, the present disclosure provides a device for turning on a wireless hotspot, the device comprising: a mode setting module, configured to set the first network card of the hotspot sharing device to the wireless hotspot mode and the second network card of the hotspot sharing device to the wireless broadband connection mode based on the network card configuration policy when the hotspot sharing device is started; a hotspot turning on module, configured to determine the connection function manager of the network account based on the virtual connection of the first network card to the target virtual network card, use the connection function manager to obtain the current configuration information of the wireless hotspot, and turn on the wireless hotspot based on the current configuration information; a network sharing module, configured to share the network of the second network card to the target virtual network card.

[0008] In a third aspect, the present disclosure provides a hotspot sharing device, including: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method of turning on the wireless hotspot according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0009] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for enabling a wireless hotspot according to the first aspect or any corresponding embodiment thereof.

[0010] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the method for enabling a wireless hotspot according to the first aspect or any corresponding embodiment thereof.

[0011] The method for opening a wireless hotspot provided by the present disclosure includes: first, when a hotspot sharing device is started, based on a network card configuration strategy, setting a first network card of the hotspot sharing device to a wireless hotspot mode, and setting a second network card of the hotspot sharing device to a wireless broadband connection mode, thereby realizing the designation of a network card in wireless hotspot mode; then, based on a virtual connection of the first network card to a target virtual network card, determining a connection function manager of a network account; then, using the connection function manager to obtain current configuration information of the wireless hotspot, and opening the wireless hotspot based on the current configuration information, so as to realize opening the wireless hotspot; finally, sharing the network of the second network card to the target virtual network card, thereby realizing that the hotspot sharing device does not interfere with each other when using the uplink of the first network card and the downlink of the second network card, each network card does not need to switch back and forth between different channels, and the uplink and downlink networks can work simultaneously to achieve the best network state, the communication of the network cards is not prone to bottlenecks, and the network performance of the wireless hotspot is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0013] Figure 1 is a flow chart of a method for opening a wireless hotspot according to an embodiment of the present disclosure;

[0014] Figure 2 is a flowchart of a method for setting a network card according to an embodiment of the present disclosure;

[0015] Figure 3 is a flowchart of a network sharing method according to an embodiment of the present disclosure;

[0016] Figure 4a is a flowchart of an exemplary application scenario of a method for enabling a wireless hotspot according to an embodiment of the present disclosure;

[0017] Figure 4b It is a flowchart of an exemplary application scenario of specifying an AP network card and a STA network card through a dual network card disabling and enabling policy according to an embodiment of the present disclosure;

[0018] Figure 4c It is a flowchart of an exemplary application scenario of independently opening a wireless hotspot through a virtual network connection when an AP network card has no network according to an embodiment of the present disclosure;

[0019] Figure 4dis a flowchart of an exemplary application scenario of sharing a network of a STA network card to an AP network card according to an embodiment of the present disclosure;

[0020] Figure 5 A structural block diagram of a device for opening a wireless hotspot according to an embodiment of the present disclosure;

[0021] Figure 6 It is a schematic diagram of the hardware structure of the hotspot sharing device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0023] Definitions of abbreviations and key terms in this disclosure are as follows:

[0024] Wireless hotspot: refers to the wireless access service provided by the operating system of the hotspot sharing device, allowing other wireless devices to access and provide data access. For example, the Windows system based on the hotspot sharing device provides wireless access services.

[0025] Network sharing: refers to sharing the network data of a network card A in the operating system with another network card B, so that network card B can use the network data of network card A.

[0026] Virtual network card: Based on the operating system, opening a hotspot is to create a virtual network card through the hotspot network card. Taking Windows system as an example, the virtual network card can be described as Microsoft Wi-Fi Direct Virtual AdAPter, and the hotspot issued by the virtual network card serves as the virtual network card gateway.

[0027] Wireless hotspot (AP) mode: Access Point provides wireless access services, allows other wireless devices to access, and provides data access. General wireless routers / bridges work in this mode. APs are allowed to connect to each other, which is commonly known as wireless hotspots.

[0028] Connect to WiFi (STA) mode: Station is similar to a wireless terminal. STA itself does not accept wireless access. It can connect to AP. Generally, wireless network cards work in this mode. In layman's terms, it is connected to WiFi.

[0029] Network uplink: Network uplink, also known as uplink, refers to the process of sending data from user equipment (such as computers, mobile phones or other terminal devices) to network infrastructure (such as wireless access points, routers or base stations).

[0030] Network downlink: Network downlink, also known as downlink, refers to the process of data transmission from the network infrastructure to the user device.

[0031] Uplink and downlink interference: Since uplink and downlink data are transmitted on the same network card, interference and performance bottleneck problems may occur.

[0032] STA network card: In this solution, it refers to the network card used to connect to WiFi, mainly used to use external network data.

[0033] AP network card: In this solution, it refers to the network card used to enable the hotspot, which is mainly used to distribute external data in the device.

[0034] Indoor channels: Indoor channels are wireless channels specifically designed for use in indoor environments. These channels are designed and specified for use in indoor scenarios such as homes and offices to avoid unnecessary interference with external environments (such as airports, hospitals, military bases, etc.).

[0035] With the development of technology, display technology is constantly updated, from 1080P to 4K and now to 8K resolution. In order to see every detail of the picture or video more clearly, the resolution of the picture or video resources is getting higher and higher. In the medical field, the clearer the picture or video resource, the more conducive it is for doctors to diagnose the health of cells or human tissues through contours. In the conference scene, screen projection is often performed during video conferencing to ensure better clarity and smoothness of the video conferencing process and screen projection. With higher and higher resolution pictures and videos, the requirements for the computer's uplink and downlink are also getting higher and higher. A single wireless network card is under the pressure of uplink and download at the same time, and bottlenecks may occur. Therefore, it is necessary to share the uplink and downlink on two network cards, that is, the AP mode and the STA mode are completely isolated and do not affect each other to ensure maximum transmission efficiency.

[0036] If the same network card is used to open a hotspot and connect to WiFi, and the channel of the connected WiFi is not the same as the hotspot channel, since the network card device can only work on one channel, the network card will switch channels when processing the situation where STA mode and AP mode are in different channels. The network card will switch back and forth between the STA channel and the AP channel, which will inevitably affect the performance of the network.

[0037] In the case of dual network cards, if the network cards are not interfered, Windows cannot currently specify the network card as AP mode, so the device with dual network cards has the same effect as a single network card without this solution. To enable a hotspot in Windows, you need to have a network connection and can access the Internet before you can enable a wireless hotspot.

[0038] In the present disclosure, two network cards are used, and a control method is used to designate a network card as an AP mode network card for opening a wireless hotspot, thereby realizing the designation of an AP network card, thereby sharing the uplink and downlink on the two network cards, that is, the AP mode and the STA mode are completely isolated and do not affect each other, thereby ensuring the maximum transmission efficiency. In addition, the AP network card can also open a wireless hotspot when it is not connected to the network, and the wireless hotspot opened by the AP network card can use the network data of the STA network card.

[0039] In the present disclosure, since the device uses different network cards to use the uplink network and the downlink network respectively, they do not interfere with each other, and the uplink and downlink networks can work at the same time to achieve the best network state. That is, when the channel of the STA network card connected to the WiFi is different from the hotspot channel of the AP network card, the network speed of the AP and WiFi will not be affected, solving the problem of performance degradation caused by channel switching when the STA mode + AP mode coexist on the same network card.

[0040] According to an embodiment of the present disclosure, an embodiment of a method for turning on a wireless hotspot is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0041] In this embodiment, a method for opening a wireless hotspot is provided, which can be used for hotspot sharing devices, such as computers, tablet computers, smart phones, smart cars, vehicle-mounted devices, smart screens, drones, wearable devices, smart watches and other smart electronic devices. Figure 1 is a flow chart of a method for opening a wireless hotspot according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0042] Step S101, when the hotspot sharing device is started, based on the network card configuration policy, the first network card of the hotspot sharing device is set to the wireless hotspot mode, and the second network card of the hotspot sharing device is set to the wireless broadband connection mode.

[0043] In this embodiment, the execution subject of the method for opening a wireless hotspot may be a service running in a hotspot sharing device. The service may interact with an operating system and a tool running in the hotspot sharing device to complete each step in the method for opening a wireless hotspot.

[0044] Specifically, the network card configuration strategy is a strategy for configuring the network card according to configuration conditions, etc. The first network card and the second network card are usually two network cards in a hotspot sharing device. The first network card usually supports a wireless hotspot mode (i.e., AP mode), and the second network card usually supports a wireless broadband connection mode (i.e., STA mode). The network card configuration strategy and the specific models of the two network cards here can be determined by those skilled in the art according to actual application scenarios or experience, and this disclosure does not limit this.

[0045] Wireless hotspot mode refers to a mode that provides wireless access services, allows other wireless devices to access, and provides data access. Wireless broadband mode is a mode similar to a wireless terminal that does not accept wireless access. It can connect to an AP. Generally, wireless network cards work in this mode.

[0046] When the hotspot sharing device is started (powered on or the computer is restarted), the above service can obtain the preset network card configuration policy, and set the first network card and the second network card respectively based on the content of the network card configuration policy corresponding to the current situation.

[0047] During the setting, if there is a pre-designated network card for enabling a wireless hotspot, the designated network card is used as the first network card, and the first network card is set to the wireless hotspot mode; the other network card of the two network cards is used as the second network card, and the second network card is set to connect to the wireless broadband mode.

[0048] If there is no pre-designated network card for enabling a wireless hotspot, any one of the two network cards can be used as the first network card and the first network card can be set to the wireless hotspot mode; the other of the two network cards can be used as the second network card and the second network card can be set to the wireless broadband connection mode.

[0049] Step S102, based on the virtual connection of the first network card to the target virtual network card, determine the connection function manager of the network account, use the connection function manager to obtain the current configuration information of the wireless hotspot, and open the wireless hotspot based on the current configuration information.

[0050] In this embodiment, the target virtual network card is a virtual network card created by the operating system or other third-party network management software after the above service enables the first network card as a wireless hotspot through a command in the operating system to meet specific network requirements, such as isolating network traffic, providing an independent network interface for the first network card, realizing network sharing functions, simplifying configuration and management, and enhancing security and stability.

[0051] The virtual connection between the first network card and the target virtual network card can be achieved through bridging between the first network card and the virtual network card, network address translation, etc. After the operating system or other third-party network management software enables the first network card as a wireless hotspot, the operating system or other third-party network management software can automatically create the virtual connection.

[0052] The connection function manager of a network account refers to a management tool for managing network account information, connection information, status monitoring, and security requirements for accessing wireless hotspots. The network management functions built into the operating system and third-party network management tools can be used, or a programming language (such as C#, Java, Python, etc.) combined with network programming technology (such as TCP / IP protocol, Wi-Fi Direct, soft access point (SoftAP), etc.) can be used to develop a special connection function manager.

[0053] The current configuration information of the wireless hotspot is the pre-set configuration information for managing the wireless hotspot. Specifically, the current configuration information can be used to configure the network, connection, performance or other parameters of the wireless hotspot. For example, the current configuration information can be a WiFi configuration file, a configuration file of a Domain Name System (DNS) forwarder, and a configuration file of a Dynamic Host Configuration Protocol (DHCP) server, etc., and can include the network name, encryption method and password, maximum number of connections, device access control, frequency band and channel, bandwidth limit, hidden service set identifier (SSID), Internet protocol settings, power management, etc.

[0054] After determining the virtual connection of the first network card connected to the target virtual network card, a connection function manager suitable for managing the network account can be determined according to the connection information, data type and format of the virtual connection. By using the connection function manager, the above service can restart the service corresponding to the current configuration information after obtaining the current configuration information, and set the first network card to AP mode, thereby turning on the wireless hotspot, so that other devices can find and connect to the wireless hotspot in the WiFi settings.

[0055] Step S103: Share the network of the second network card to the target virtual network card.

[0056] In this embodiment, after the wireless hotspot is turned on, the service shares the network of the second network card in the dual network cards that is set to connect to the wireless broadband mode to the target virtual network card. Specifically, the service can set the sharing settings in the properties of the second network card, enable the sharing function, and confirm the sharing settings, so as to realize the sharing of the network of the second network card to the target virtual network card, that is, to realize the data interaction between the second network card and the first network card.

[0057] The method for opening a wireless hotspot provided in this embodiment first sets the first network card of the hotspot sharing device to the wireless hotspot mode and sets the second network card of the hotspot sharing device to the wireless broadband connection mode based on the network card configuration strategy when the hotspot sharing device is started, thereby realizing the designation of the network card in the wireless hotspot mode; then, based on the virtual connection of the first network card to the target virtual network card, determining the connection function manager of the network account; then, using the connection function manager to obtain the current configuration information of the wireless hotspot and opening the wireless hotspot based on the current configuration information, so as to realize the opening of the wireless hotspot; finally, sharing the network of the second network card to the target virtual network card, thereby realizing that the hotspot sharing device does not interfere with each other when using the uplink of the first network card and the downlink of the second network card, each network card does not need to switch back and forth between different channels, and the upstream and downstream networks can work simultaneously to achieve the best network state, the communication of the network cards is not prone to bottlenecks, and the network performance of the wireless hotspot is greatly improved.

[0058] In the above Figure 1 In some optional implementations of the illustrated embodiment, setting the first network card of the hotspot sharing device to the wireless hotspot mode may include: setting the wireless hotspot mode of the first network card to the 5 GHz communication standard mode of the wireless local area network; disabling the first network card that has been set to the 5 GHz communication standard mode of the wireless local area network; and re-enabling the disabled first network card.

[0059] In this implementation, the hotspot mode of the first network card is set to the 5 GHz communication standard mode (IEEE 802.11ac mode) of the wireless local area network. After the mode is set, the first network card can be disabled and then enabled.

[0060] For example, when setting the hotspot mode, taking the Windows system as an example, the value of WirelessMode in the AP network card in the registry SYSTEM\\ControlSet001\\Control\\Class\\{4d36e972-e325-11ce-bfc1-08002be10318} can be modified.

[0061] The method of setting the first network card of the hotspot sharing device to the wireless hotspot mode in this implementation makes the new hotspot mode set by the first network card take effect by setting the hotspot mode of the first network card, then disabling the first network card, and then re-enabling the first network card, so that the first network card is fixed in the 5G mode, thereby improving the network performance of the wireless hotspot.

[0062] In the above Figure 1In some optional implementations of the illustrated embodiment, the virtual connection between the first network card and the target virtual network card can be obtained based on the following steps: when it is detected that the first network card is not connected to the wireless broadband network, a network configuration file for the virtual connection is generated; and using the network configuration file for the virtual connection, a virtual connection is created for the first network card to connect to the target virtual network card.

[0063] In this implementation, before turning on the hotspot, the above-mentioned service can obtain network connection data through the operating system interface of the hotspot sharing device, so as to determine whether there is a known network for the first network card that currently turns on the hotspot. If there is no known network, a network configuration file in the correct format for configuring the virtual connection can be generated. Afterwards, the network configuration file is used to create a virtual connection connected to the virtual network card for the first network card that needs to turn on the hotspot, thereby improving the effectiveness and accuracy of the created virtual connection.

[0064] In the above Figure 1 In some optional implementations of the illustrated embodiment, the current configuration information of the wireless hotspot is generated based on the following steps: if a wireless hotspot modification instruction from the user is received through the connection function manager, the wireless hotspot management interface is called through the connection function manager to perform the following operations: obtain the initial configuration information of the wireless hotspot; according to the wireless hotspot modification instruction, modify the name and password of the wireless hotspot in the initial configuration information to obtain the current configuration information of the wireless hotspot.

[0065] In this implementation, the connection function manager called by the above service can present a user setting interface to the user, thereby receiving the user's setting instructions. If the user wants to modify the name and password of the wireless hotspot, the wireless hotspot modification instruction can be input through the corresponding operation area of ​​the user setting interface, so that the wireless hotspot management interface is called through the connection function manager, and the current configuration information of the wireless hotspot is generated through the wireless hotspot management interface.

[0066] Specifically, the initial configuration information of the wireless hotspot can be first obtained through the wireless hotspot management interface, and then the name and password of the wireless hotspot in the initial configuration information can be modified according to the wireless hotspot modification instruction, thereby generating the current configuration information of the wireless hotspot.

[0067] The method for generating the current configuration information in the present implementation receives the user's wireless hotspot modification instruction through the connection function manager, and modifies the name and password of the wireless hotspot based on the wireless hotspot modification instruction, thereby improving the recognizability and distinguishability of the name and password of the wireless hotspot, and improving the recognition and usage efficiency during user use.

[0068] In the above Figure 1In some optional implementations of the illustrated embodiment, the method further includes: after turning on the wireless hotspot based on the current configuration information, if it is detected that the hotspot sharing device is in a power saving mode, turning off the power saving mode.

[0069] In this implementation, after turning on the wireless hotspot, it can be determined whether the hotspot sharing device is in energy-saving mode. If it is in energy-saving mode, the energy-saving mode can be turned off by calling the system interface, so that the wireless hotspot is always in the on state, improving the network performance of the wireless hotspot.

[0070] In this embodiment, a network card setting method is provided, which can be used for the above-mentioned hotspot sharing device, etc. Figure 2 is a flowchart of a method for setting a network card according to an embodiment of the present disclosure, and the flowchart is for the above Figure 1 The step S101 in the embodiment shown in FIG. Figure 2 As shown, the process includes the following steps:

[0071] Step S201, when the hotspot sharing device is started, obtain the wireless network card information.

[0072] In this embodiment, after the hotspot sharing device is turned on or restarted, the above-mentioned service can read the network interfaces of all wireless network cards through the system interface, and then traverse these interfaces. For each interface, check the network interface type to determine whether it is a wireless network card, and then obtain the basic information of the wireless network card.

[0073] Step S202: when it is determined based on the wireless network card information that the first network card and the second network card have been loaded, the parent network card identifier of the current virtual network card in the hotspot sharing device and the device identifier of the first network card are obtained.

[0074] In this embodiment, the above-mentioned service can determine the loading status of the first network card and the second network card based on the wireless network card information, and when it is determined that the first network card and the second network card are fully loaded, search the device identifier (ID) of the first network card in the registry of the operating system, and obtain the parent network card ID of the virtual network card in the hotspot sharing device through the interface in the installation program support related file (setupapi.dll).

[0075] Step S203: compare the parent network card identifier of the current virtual network card with the device identifier of the first network card to obtain an identifier comparison result.

[0076] In this embodiment, the identifier comparison result can be represented by indication information in the existing technology or future development technology. For example, 1 can be used to indicate that the identifier comparison results are the same; 0 can be used to indicate that the identifier comparison results are different. Alternatively, True can be used to indicate that the identifier comparison results are the same, and False can be used to indicate that the identifier comparison results are different.

[0077] The above service can use the comparison method in the existing technology or the technology to be developed in the future to compare the device ID of the first network card and the parent network card ID of the current virtual network card according to the specific application scenario and data type, so as to obtain the identifier comparison result. For example, the characters in the ID information of the two can be directly compared to obtain the identifier comparison result; or, the feature information and index information of the ID information of the two can be compared, and when the comparison results are the same, the original ID information can be compared.

[0078] Step S204, determining whether the identifier comparison results are the same, setting the first network card to a wireless hotspot mode, and setting the second network card to a wireless broadband connection mode.

[0079] In this embodiment, the service can determine whether there is a virtual connection between the first network card and the virtual network card according to whether the identifier comparison result is the same, thereby determining whether the first network card is in wireless hotspot mode and whether the second network card is in wireless broadband mode. Afterwards, the first network card and the second network card can be set in a targeted manner according to the determination result.

[0080] In the above Figure 2 In some optional implementations of the illustrated embodiment, the above step S204 may include:

[0081] Step S2041, when the identifier comparison result is the same, determine that the first network card is in wireless hotspot mode and the second network card is in wireless broadband connection mode.

[0082] In this implementation, when the identifier comparison result is the same, it means that the first network card is in wireless hotspot mode and the second network card is in wireless broadband connection mode, and no re-setting is required.

[0083] Alternatively or additionally, the above step S204 may include:

[0084] Step S2042, when the identifier comparison result is not the same, disable the first network card and the second network card, enable the first network card, and when it is detected that the target virtual network card of the first network card is created, determine that the first network card is in wireless hotspot mode, and enable the second network card to set the second network card to connect to wireless broadband mode.

[0085] In this implementation, when the identifier comparison result is different, it means that the first network card is not in wireless hotspot mode. At this time, it is necessary to disable the first network card and the second network card, and then enable the first network card until the target virtual network card of the first network card is created. At this time, the first network card is in wireless hotspot mode, and then enable the second network card. At this time, the second network card is set to connect to wireless broadband mode.

[0086] In this implementation, based on whether the identifier comparison results are the same, it is clarified how to set the first network card to the wireless hotspot mode and the second network card to the wireless broadband connection mode, thereby improving the accuracy and efficiency of setting the first network card and the second network card.

[0087] In this embodiment, a network sharing method is provided, which can be used for the above-mentioned hotspot sharing device, etc. Figure 3 is a flow chart of a network sharing method according to an embodiment of the present disclosure, which is a flow chart of the above Figure 1 A further refinement of step S104 shown in Figure 3 As shown, the process includes at least one of the following steps:

[0088] Step S301, when it is detected that the target virtual network card is connected to the wireless broadband, the connection between the target virtual network card and the wireless broadband is cancelled, and the network of the second network card is shared to the target virtual network card.

[0089] In this embodiment, the service can detect the network connected to the target virtual network card to determine whether the first network card is connected to WiFi. If the first network card is connected to WiFi, the link is transferred to transfer the WiFi connected to the first network card to the network connected to the second network card.

[0090] Specifically, when the above service detects that the target virtual network card is connected to the wireless broadband, it can cancel the connection between the target virtual network card and the wireless broadband, and then through the sharing settings in the properties of the second network card, use the second network card as the sharing source and the target virtual network card as the receiving source, thereby sharing the network of the second network card to the target virtual network card.

[0091] In step S301 of this embodiment, a method for sharing the network of the second network card to the target virtual network card when it is detected that the target virtual network card is connected to WiFi is clarified, thereby improving the efficiency and accuracy of sharing the network of the second network card to the target virtual network card.

[0092] Step S302, when the target virtual network card has network sharing, if the target virtual network card is not connected to the network of the second network card, disable the current connection of the target virtual network card and cancel the sharing of the current connection with the target virtual network card; use the second network card as the sharing source and the target virtual network card as the receiving source, and share the network of the second network card to the target virtual network card.

[0093] In this embodiment, the above service can monitor network changes, for example, by monitoring network changes through the network information status change event of the network information interface. Afterwards, the current network status is obtained, and the second network card (STA mode) with network data is obtained through the corresponding interface, and the target virtual network card corresponding to the first network card (AP mode) is obtained. Afterwards, it is determined whether there is network sharing through the interface that can enumerate all network connections of the system, and the shared network information is obtained, and then it is determined whether the second network card is shared to the target virtual network card based on the shared network information.

[0094] When the target virtual network card is not connected to the network of the second network card, the properties of the instance of the target class related to the network connection sharing state of the target virtual network card can be found and determined through the operating system management tool interface, the properties of the instance of the target class can be modified, and the current connection of the target virtual network card can be disabled. After that, the network sharing can be managed through the component object model component to cancel the sharing of the current connection with the target virtual network card.

[0095] Afterwards, the service may call a method for enabling network sharing, using the second network card as a sharing source and the target virtual network card as a receiving source, thereby sharing the network of the second network card to the target virtual network card.

[0096] Step S303: When there is no network sharing on the target virtual network card, the second network card is used as a sharing source, the target virtual network card is used as a receiving source, and the network of the second network card is shared to the target virtual network card.

[0097] In this embodiment, when the target virtual network card does not have network sharing, the above service can directly call the method for enabling network sharing, use the second network card as the sharing source, and use the target virtual network card as the receiving source, thereby sharing the network of the second network card to the target virtual network card.

[0098] In step S202 and step S203 of this embodiment, methods of how to share the network of the second network card to the target virtual network card are respectively clarified when there is network commonality in the target virtual network card, so that the network sharing of the second network card can be enabled, and the data of the second network card can be used even when the first network card is not connected to WiFi, thereby ensuring the network sharing path between the two network cards and improving the stability of the uplink and downlink data of the enabled wireless hotspot.

[0099] Figure 4a A flowchart of an exemplary application scenario of the method for opening a wireless hotspot is shown. In this application scenario, the method for opening a wireless hotspot can be applied to a hotspot sharing device, and the hotspot sharing device is a large-screen device using a Windows system, and the first network card of the hotspot sharing device is an 8821 network card, and the second network card is an AX200 network card.

[0100] Please refer to Figure 4a In this flow chart, the execution subject of the method for opening a wireless hotspot may be a service running in a hotspot sharing device. The service may interact with an operating system and a tool running in the hotspot sharing device to complete each step in the method for opening a wireless hotspot. The method may include:

[0101] Step S401, specifying the AP network card and the STA network card through the dual network card disabling and enabling policy;

[0102] Step S402, when the AP network card has no network, a wireless hotspot is independently opened through a virtual network connection, and the STA network card is connected to WiFi according to a normal process;

[0103] Step S403: Share the network of the STA network card with the AP network card.

[0104] In a specific example of this application scenario, the above step S401 can refer to Figure 4b , Figure 4b An exemplary scenario of specifying an AP network card and a STA network card through a dual network card disabling and enabling policy is shown, and specifically, it may include:

[0105] 1. After turning on or restarting the computer, the above service can obtain all wireless network cards through the Windows operating system interface NetworkInterface.GetAllNetworkInterfaces(), detect whether the dual network cards (AX200 (STA) network card, 8821 (AP) network card) are fully loaded, and wait for the dual network cards to be loaded.

[0106] 2. The above service can determine whether 8821 is an AP network card. Specifically, the device ID of the 8821 network card can be found in the registry SYSTEM\\ControlSet001\\Control\\Class\\{4d36e972-e325-11ce-bfc1-08002be10318}, and the parent network card ID of the virtual network card in the hotspot sharing device can be obtained through the interfaces CM_Get_Parent, CM_Get_Device_ID_Size, and CM_Get_Device_ID in setupAPi.dll. The ID of the 8821 network card is obtained, and it is determined whether the parent network card ID of the virtual network card is the ID of the 8821 network card. If so, it means that the 8821 network card is an AP network card at this time.

[0107] 3. If the above service determines that the 8821 network card is not an AP network card, disable AX200 and 8821 through the disable and enable commands of Devcon.exe in the system. Enable the 8821 network card first and wait for the virtual network card to be created. After 8821 automatically creates the virtual network card, enable AX200. At this time, 8821 is an AP network card.

[0108] 4. To make the AP network card network optimal, you can set the AP network card to 5G mode. The above service can set the AP network card hotspot mode to IEEE 802.11ac mode. After setting the mode, you can disable and then enable the 8821 network card. Specifically, when setting the hotspot mode, the above service can modify the value of WirelessMode in the AP network card in the registry SYSTEM\\ControlSet001\\Control\\Class\\{4d36e972-e325-11ce-bfc1-08002be10318}.

[0109] 5. In order to ensure that 8821 is not connected to WiFi, the above service can also perform WiFi transfer during the process of specifying AP network card and STA network card: if the 8821 network card is connected to WiFi during use, the WiFi connection of the 8821 network card will be transferred to the network connected to Ax200.

[0110] After specifying the AP network card and STA network card, you can isolate the network. The STA network card connects to WiFi according to the normal process, and the AP network card that is not connected to WiFi can further enable the hotspot.

[0111] In a specific example of this application scenario, the above step S402 can refer to Figure 4c , Figure 4c An exemplary scenario of independently opening a wireless hotspot through a virtual network connection when the AP network card has no network is shown. Specifically, it may include:

[0112] 1. Before turning on the hotspot, the above service determines whether there is a known network for the network card that needs to turn on the hotspot, and can obtain network connection data through the Windows system interface Windows.Networking.Connectivity.ConnectionProfile.

[0113] 2. If the above service determines based on the network connection data that there is no known network for the network card that needs to enable the hotspot, a network configuration file for the virtual connection in the correct format is generated locally.

[0114] 3. The above service uses the generated virtual connection network configuration file to create a virtual network connection for the network card that needs to enable the hotspot through the NetworkOperatorTetheringManager.CreateFromConnectionProfile interface.

[0115] 4. After the network card that turns on the hotspot has a virtual network connection, the above service can further create a connection function manager that controls and configures a specific network account through the NetworkOperatorTetheringManager.CreateFromConnectionProfile interface to turn on the wireless hotspot.

[0116] 5. The above service can determine whether the hotspot name and hotspot password need to be modified. If necessary, modify the name and password by modifying NetworkOperatorTetheringAccessPointConfiguration.

[0117] 6. The above service can further call the NetworkOperatorTetheringManager.STArtTetheringAsync interface to enable the wireless hotspot through the above connection function manager.

[0118] 7. The above service can determine whether the hotspot sharing device is in energy-saving mode. If it is in energy-saving mode, call NetworkOperatorTetheringManager.DisableNoConnectionsTimeoutAsync to turn off the energy-saving mode. Turning off the energy-saving mode keeps the hotspot on all the time.

[0119] When the AP network card is not connected to WiFi and the hotspot is turned on, in the case of multiple network cards, you need to select an accessible network for the network sent by the hotspot for network sharing, and share the network data of the STA network card to the AP network card that turns on the hotspot, so that the opened hotspot can use the network data.

[0120] In a specific example of this application scenario, the above step S403 can refer to Figure 4d , Figure 4d An exemplary scenario of sharing the network of a STA network card to an AP network card is shown, which may specifically include:

[0121] 1. The above services can monitor network changes through the NetworkSTAtusChanged event in the NetworkInformation interface.

[0122] 2. The above service can obtain the current network status when monitoring network changes, and then obtain the STA network card with network data through the method NetworkInterface.GetAllNetworkInterfaces(), and obtain the virtual network card corresponding to the network card with the hotspot turned on.

[0123] 3. The above service can obtain the shared network information through the system interface INetSharingManager.EnumEveryConnection to determine whether there is network sharing.

[0124] 4. The above service can determine whether the current shared network is shared by the STA network card to the virtual network card through the shared network information obtained above.

[0125] 5. If the above service determines that the currently shared network is not a STA network card shared to a virtual network card, it queries the properties of the instance of the target class related to the network connection sharing status of the virtual network card through the wmi function of the Windows system new ManagementScope("root\\Microsoft\\HomeNet"), newObjectQuery("SELECT*FROM HNet_ConnectionProperties"), sets the properties IsIcsPrivate and IsIcsPublic to false, disables the current connection of the virtual network card, and then executes the method INetSharingConfiguration.DisableSharing() of the component object model COM component to cancel the current sharing of the virtual network card.

[0126] 6. After canceling the current sharing of the virtual network card, the above service can call the following method, where the STA network card is used as the sharing source and the virtual network card is used as the receiving source.

[0127] var hc=GetConfiguration(STA);

[0128] hc.EnableSharing(tagSHARINGCONNECTIONTYPE.ICSSHARINGTYPE_P RIVATE);

[0129] var sc=GetConfiguration(shareIConnection);

[0130] sc.EnableSharing(tagSHARINGCONNECTIONTYPE.ICSSHARINGTYPE_P UBLIC);

[0131] 7. The above service can enable new network sharing, which can use the data of the STA network card when the AP network card is not connected to WiFi. External devices connected to the hotspot enabled by this solution can also use network data.

[0132] The wireless hotspot is opened with a single network card, an unprocessed dual network card, and the dual network card in the above embodiment of the present disclosure. The hotspot speeds tested in different scenarios are as follows:

[0133]

[0134]

[0135] In this embodiment, a device for opening a wireless hotspot is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0136] This embodiment provides a device for opening a wireless hotspot, such as Figure 5 As shown, the device comprises:

[0137] The mode setting module 501 is configured to set the first network card of the hotspot sharing device to the wireless hotspot mode and the second network card of the hotspot sharing device to the wireless broadband connection mode based on the network card configuration policy when the hotspot sharing device is started;

[0138] The hotspot activation module 502 is configured to determine a connection function manager of a network account based on a virtual connection between the first network card and the target virtual network card, obtain current configuration information of the wireless hotspot using the connection function manager, and activate the wireless hotspot based on the current configuration information;

[0139] The network sharing module 503 is configured to share the network of the second network card to the target virtual network card.

[0140] In some optional implementations of the present embodiment, the mode setting module 501 includes (not shown in the figure): an information acquisition unit, configured to acquire the wireless network card information when the hotspot sharing device is started; an identifier acquisition unit, configured to acquire the parent network card identifier of the current virtual network card in the hotspot sharing device and the device identifier of the first network card when it is determined based on the wireless network card information that the first network card and the second network card in the wireless network card are loaded; an identifier comparison unit, configured to compare the parent network card identifier of the current virtual network card with the device identifier of the first network card to obtain an identifier comparison result; a network card setting unit, configured to set the first network card to the wireless hotspot mode and the second network card to the wireless broadband connection mode based on whether the identifier comparison results are the same.

[0141] In some optional implementations of this embodiment, the network card setting unit is further configured to perform at least one of the following: when the identifier comparison result is the same, determining that the first network card is in wireless hotspot mode and the second network card is in wireless broadband connection mode; when the identifier comparison result is not the same, disabling the first network card and the second network card, enabling the first network card, and when detecting that the target virtual network card of the first network card is created, determining that the first network card is in wireless hotspot mode, enabling the second network card to set the second network card to wireless broadband connection mode.

[0142] In some optional implementations of this embodiment, the network card setting unit is further configured to: set the wireless hotspot mode of the first network card to the 5 GHz communication standard mode of the wireless local area network; disable the first network card that has been set to the 5 GHz communication standard mode of the wireless local area network; and re-enable the disabled first network card.

[0143] In some optional implementations of the present embodiment, the virtual connection between the first network card in the hotspot activation module 502 and the target virtual network card is obtained based on the following units: a file generation unit, configured to generate a network configuration file for the virtual connection when it is detected that the first network card is not connected to the wireless broadband network; a connection creation unit, configured to use the network configuration file for the virtual connection to create a virtual connection for the first network card connected to the target virtual network card.

[0144] In some optional implementations of this embodiment, the current configuration information of the wireless hotspot obtained by the hotspot activation module 502 is generated based on the following units: an interface calling unit, which is configured to call the wireless hotspot management interface through the connection function manager to perform the following operations if a wireless hotspot modification instruction from the user is received through the connection function manager: an information acquisition unit, which is configured to obtain the initial configuration information of the wireless hotspot; an information modification unit, which is configured to modify the name and password of the wireless hotspot in the initial configuration information according to the wireless hotspot modification instruction to obtain the current configuration information of the wireless hotspot.

[0145] In some optional implementations of this embodiment, the apparatus further includes (not shown in the figure): a mode closing module configured to close the energy-saving mode if it is detected that the hotspot sharing device is in energy-saving mode after the wireless hotspot is turned on based on the current configuration information.

[0146] In some optional implementations of the present embodiment, the network sharing module 503 includes at least one of the following: a first sharing unit, configured to cancel the connection between the first network card and the wireless broadband when detecting that the first network card is connected to the wireless broadband, and share the network of the second network card to the target virtual network card; a second sharing unit, configured to disable the current connection of the target virtual network card and cancel the sharing of the current connection with the target virtual network card if the target virtual network card is not connected to the network of the second network card when network sharing exists on the target virtual network card; use the second network card as a sharing source and the target virtual network card as a receiving source to share the network of the second network card to the target virtual network card; a third sharing unit, configured to use the second network card as a sharing source and the target virtual network card as a receiving source to share the network of the second network card to the target virtual network card when network sharing does not exist on the target virtual network card.

[0147] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0148] The device for turning on the wireless hotspot in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0149] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of a hotspot sharing device provided by an optional embodiment of the present disclosure, the hotspot sharing device includes: one or more processors 10, a memory 20, a first network card 30 and a second network card 40 supporting ATA mode, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).

[0150] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0151] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0152] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0153] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0154] The first network card 30 may include a wireless network card supporting a wireless hotspot mode (ie, AP mode), and the second network card 40 may include a wireless network card supporting a wireless broadband connection mode (ie, STA mode).

[0155] In some examples, the hotspot sharing device may further include an input device 50 and an output device 60. The processor 10, the memory 20, the first network card 30, the second network card 40, the input device 50 and the output device 60 may be connected via a bus or other means.

[0156] The input device 50 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 60 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0157] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0158] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0159] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for opening a wireless hotspot, characterized in that: The method comprises: When the hotspot sharing device is started, based on the network card configuration policy, the first network card of the hotspot sharing device is set to a wireless hotspot mode, and the second network card of the hotspot sharing device is set to a wireless broadband connection mode; Determine a connection function manager of a network account based on a virtual connection between the first network card and the target virtual network card, use the connection function manager to obtain current configuration information of a wireless hotspot, and enable the wireless hotspot based on the current configuration information; Share the network of the second network card to the target virtual network card.

2. The method according to claim 1, characterized in that When the hotspot sharing device is started, the first network card of the hotspot sharing device is set to a wireless hotspot mode and the second network card of the hotspot sharing device is set to a wireless broadband connection mode based on a network card configuration strategy, including: When the hotspot sharing device is started, obtain the wireless network card information; When it is determined based on the wireless network card information that the first network card and the second network card in the wireless network card are loaded, obtaining the parent network card identifier of the current virtual network card in the hotspot sharing device and the device identifier of the first network card; Comparing the parent network card identifier of the current virtual network card with the device identifier of the first network card to obtain an identifier comparison result; Based on whether the identifier comparison results are the same, the first network card is set to a wireless hotspot mode, and the second network card is set to a wireless broadband connection mode.

3. The method according to claim 2, characterized in that The step of setting the first network card of the hotspot sharing device to a wireless hotspot mode and the second network card of the hotspot sharing device to a wireless broadband connection mode based on whether the identifier comparison results are the same includes at least one of the following: When the comparison result of the identifiers is the same, determining that the first network card is in wireless hotspot mode and the second network card is in wireless broadband connection mode; When the identifier comparison result is not the same, disable the first network card and the second network card, enable the first network card, and when it is detected that the target virtual network card of the first network card is created, determine that the first network card is in wireless hotspot mode, and enable the second network card to set the second network card to connect to wireless broadband mode.

4. The method according to claim 1, characterized in that The step of setting the first network card of the hotspot sharing device to a wireless hotspot mode comprises: Setting the wireless hotspot mode of the first network card of the hotspot sharing device to the 5 GHz communication standard mode of the wireless local area network; disabling the first network card that has been set to the 5 GHz communication standard mode of the wireless local area network; The disabled first network card is re-enabled.

5. The method according to claim 1, characterized in that The virtual connection of the first network card to the target virtual network card is obtained based on the following steps: When it is detected that the first network card is not connected to the wireless broadband network, generating a network configuration file for a virtual connection; Using the network configuration file of the virtual connection, a virtual connection is created for the first network card to connect to the target virtual network card.

6. The method according to claim 1, characterized in that The current configuration information of the wireless hotspot is generated based on the following steps: If the user's wireless hotspot modification instruction is received through the connection function manager, the connection function manager calls the wireless hotspot management interface to perform the following operations: Obtaining initial configuration information of the wireless hotspot; According to the wireless hotspot modification instruction, the name and password of the wireless hotspot in the initial configuration information are modified to obtain the current configuration information of the wireless hotspot.

7. The method according to claim 1, characterized in that The method further comprises: After the wireless hotspot is turned on based on the current configuration information, if it is detected that the hotspot sharing device is in the energy-saving mode, the energy-saving mode is turned off.

8. The method according to any one of claims 1 to 7, characterized in that: The step of sharing the network of the second network card to the target virtual network card includes at least one of the following: When it is detected that the first network card is connected to the wireless broadband, the connection between the first network card and the wireless broadband is cancelled, and the network of the second network card is shared to the target virtual network card; When the target virtual network card has network sharing, if the target virtual network card is not connected to the network of the second network card, disabling the current connection of the target virtual network card and canceling the sharing of the current connection with the target virtual network card; Use the second network card as a sharing source, use the target virtual network card as a receiving source, and share the network of the second network card to the target virtual network card; When the target virtual network card does not have network sharing, the second network card is used as a sharing source, the target virtual network card is used as a receiving source, and the network of the second network card is shared to the target virtual network card.

9. A device for opening a wireless hotspot, characterized in that: The device comprises: A mode setting module is configured to set the first network card of the hotspot sharing device to a wireless hotspot mode and the second network card of the hotspot sharing device to a wireless broadband connection mode based on a network card configuration policy when the hotspot sharing device is started; A hotspot activation module is configured to determine a connection function manager of a network account based on a virtual connection between the first network card and a target virtual network card, obtain current configuration information of a wireless hotspot using the connection function manager, and activate the wireless hotspot based on the current configuration information; The network sharing module is configured to share the network of the second network card to the target virtual network card.

10. A hotspot sharing device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for turning on a wireless hotspot as described in any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for starting a wireless hotspot according to any one of claims 1 to 8.

12. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the method for starting a wireless hotspot according to any one of claims 1 to 8.