WiFi wireless network adapter and control method thereof
By using the USB interface, USB to Ethernet module and Ethernet interface to MII module in the WiFi wireless network adapter, it is possible to connect to the WiFi network on devices that only support USB wired network ports, and select the power saving mode according to the scenario, solving the problem of USB wired The problem of network port devices being unable to connect to WiFi networks improves power utilization efficiency.
Patent Information
- Application Number
- CN202110460554.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-04-27
AI Technical Summary
In the existing technology, a device that requires an external WiFi wireless network adapter through a USB interface cannot connect to a WiFi network if it only supports a USB wired network adapter, and it is difficult to save energy in scenarios where power is limited.
Design a WiFi wireless network adapter that connects to external devices through the USB interface. It uses the USB to Ethernet interface module and the Ethernet interface to MII module to convert the USB protocol to the Ethernet protocol, and realizes WiFi signal sending and receiving through the WiFi module. It supports multiple multiple operating modes and power savings, including access point, client and repeater modes.
Implement WiFi wireless network connection on devices that support USB wired network port adapters, and flexibly select power-saving modes according to work scenarios to reduce system complexity and power consumption.
Smart Images

Figure CN113163403B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of WiFi wireless network adapters in the field of communication technologies, and in particular to a WiFi wireless network adapter and a control method thereof. Background Art
[0002] At present, WiFi has become the most widely used wireless networking technology in the fields of home, business, industry, etc. Usually, some devices that need to be connected to the Internet do not have WiFi functions themselves, so they need to connect to the WiFi network through an external WiFi wireless network adapter via a USB (Universal Serial Bus) interface. However, due to design limitations, some devices that need to be connected to the Internet, although they have USB interfaces, only support USB wired network adapters and do not include corresponding WiFi wireless network adapter drivers. In order to connect such devices to the WiFi network, a special wireless network adapter needs to be designed. At the same time, since the wireless network adapter is powered by an external power supply, it is necessary to save energy as much as possible in scenarios where power is limited. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] The present invention proposes a wireless network adapter, which is connected to a superior device through a USB interface. When the superior device only supports a USB wired network port adapter, the WiFi wireless network connection function can still be realized. In addition, the working mode can be flexibly selected based on the working scenario, and the working mode is tried to be in a power-saving state.
[0005] The first embodiment of the present invention provides a WiFi wireless network adapter, comprising: a USB universal serial bus interface, a USB to Ethernet interface module, an Ethernet interface to MII media independent interface module and a WiFi module;
[0006] The USB interface is connected to the external device to be connected to the network and the USB to Ethernet interface module respectively;
[0007] The USB to Ethernet interface module is used to convert the USB protocol into the Ethernet protocol and connect to the Ethernet interface to MII module through the Ethernet interface;
[0008] The Ethernet interface to MII module is used to convert Ethernet physical layer data and media access control layer data to each other;
[0009] The WiFi module is connected to the USB to Ethernet interface module and the Ethernet interface to MII module respectively, and is used for sending and receiving data via WiFi signals.
[0010] The WiFi wireless network adapter of the embodiment of the present invention is connected to the external device to be connected to the network and the USB to Ethernet interface module through the USB interface; the USB to Ethernet interface module is used to convert the USB protocol into the Ethernet protocol and is connected to the Ethernet interface to MII module through the Ethernet interface; the Ethernet interface to MII module is used to convert Ethernet physical layer data and media access control layer data to each other; the WiFi module is connected to the USB to Ethernet interface module and the Ethernet interface to MII module respectively, and is used to send and receive data through WiFi signals. Therefore, in the case that the external device to be connected to the network only supports the USB wired network port adapter, the WiFi wireless network connection function can still be realized, and the working mode can be flexibly selected based on the working scenario.
[0011] Optionally, in one embodiment of the present invention, the USB interface is configured with multiple interface forms to support multiple standard USB protocols.
[0012] Optionally, in one embodiment of the present invention, the Ethernet interface is a physical interface transceiver or an Ethernet connector, and the Ethernet interface supports different Ethernet rates.
[0013] Optionally, in one embodiment of the present invention, the WIFI module is used to set the working mode of the USB to Ethernet interface module and the Ethernet interface to MII module through a target connection; wherein the USB to Ethernet interface module is set to work in a specified USB mode and a specified Ethernet interface mode, and the Ethernet to MII interface module is set to work in a specified Ethernet interface mode.
[0014] Optionally, in one embodiment of the present invention, the specified Ethernet interface mode in which the USB to Ethernet interface module works is the same as the specified Ethernet interface mode in which the Ethernet to MII interface module works.
[0015] Optionally, in one embodiment of the present invention, the working module of the WIFI module includes but is not limited to one or more of a wireless access point mode, a WiFi client mode and a relay mode.
[0016] Optionally, in one embodiment of the present invention, the control method of the WiFi wireless network adapter including the above embodiment includes:
[0017] Connecting the WiFi wireless adapter to the external device to be connected to the network via the USB interface;
[0018] Controlling the WiFi module in the WiFi wireless adapter to enter a relay mode;
[0019] The intelligent terminal accesses the WiFi wireless adapter, and controls the WiFi wireless adapter to scan for WiFi networks and enter the password to join the target wireless access point hotspot through the intelligent terminal control software.
[0020] Optionally, in an embodiment of the present invention, the intelligent terminal obtains the working state of the WiFi wireless adapter and adjusts the working parameters of the WiFi wireless adapter.
[0021] Optionally, in an embodiment of the present invention, a control method for a WiFi wireless network adapter including the above embodiment includes:
[0022] The WiFi module of the WiFi wireless adapter is connected to an external WiFi access point to obtain the negotiated rate N of the WiFi connection;
[0023] According to the negotiation rate coefficient M, if N*M >= T1, the Ethernet interface rate of the WiFi wireless adapter is set to E1, and the working mode of the USB interface is set to U1; where T1 is the rate threshold 1, E1 is the Ethernet working mode 1, and U1 is the USB interface mode 1;
[0024] If T2 <= N*M < T1, the Ethernet interface rate of the WiFi wireless adapter is set to E2, and the working mode of the USB interface is set to U2; where T2 is the rate threshold 2, E2 is the Ethernet working mode 2, and U2 is the USB interface mode 2;
[0025] If T2 > N*M, the Ethernet interface rate of the WiFi wireless adapter is set to E3, and the working mode of the USB interface is set to U3; where E3 is the Ethernet working mode 3, and U3 is the USB interface mode 3.
[0026] Optionally, in an embodiment of the present invention, the intelligent terminal controls the Ethernet working mode of the WiFi wireless adapter and the working mode of the USB interface through the control software.
[0027] An embodiment of the second aspect of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the control method of the WiFi wireless network adapter as proposed in the foregoing embodiments of the present invention.
[0028] An embodiment of the third aspect of the present invention provides a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the control method of the WiFi wireless network adapter as proposed in the foregoing embodiments of the present invention.
[0029] A fourth aspect of the present invention provides a computer program product. When instructions in the computer program product are executed by a processor, the control method of the WiFi wireless network adapter provided in the aforementioned embodiment of the present invention is executed.
[0030] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0032] Figure 1 This is a schematic diagram of the structure of a WiFi wireless network adapter provided in Embodiment 1 of the present invention;
[0033] Figure 2 A schematic flow chart of a control method for a WiFi wireless network adapter provided in Embodiment 1 of the present invention;
[0034] Figure 3 A schematic diagram of a flow chart of a control method for a WiFi wireless network adapter provided in Embodiment 2 of the present invention;
[0035] Figure 4 A block diagram of an exemplary electronic device or server suitable for implementing embodiments of the present invention is shown. DETAILED DESCRIPTION
[0036] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0037] In view of the technical problems described above, the present invention proposes a WiFi wireless network adapter, which is connected to a superior device through a USB interface. When the superior device only supports a USB wired network port adapter, the WiFi wireless network connection function can still be realized. At the same time, the working mode can be flexibly selected based on the working scene, and the working mode can be operated in a power-saving state as much as possible. The specific description is as follows:
[0038] The following describes a WiFi wireless network adapter and a control method thereof according to an embodiment of the present invention with reference to the accompanying drawings.
[0039] Figure 1 This is a schematic diagram of the structure of a WiFi wireless network adapter provided in Embodiment 1 of the present invention.
[0040] like Figure 1 As shown, the WiFi wireless network adapter includes: a USB universal serial bus interface 100, a USB to Ethernet interface module 200, an Ethernet interface to MII media independent interface module 300 and a WiFi module 400.
[0041] Among them, the USB interface 100 is connected to the external device to be connected to the network and the USB to Ethernet interface module 200 respectively; the USB to Ethernet interface module 200 is used to convert the USB protocol into the Ethernet protocol, and is connected to the Ethernet interface to MII module 300 through the Ethernet interface; the Ethernet interface to MII module 300 is used to convert Ethernet physical layer data and media access control layer data into each other; the WiFi module 400 is connected to the USB to Ethernet interface module 200 and the Ethernet interface to MII module 300 respectively, and is used to send and receive data through WiFi signals.
[0042] In the embodiment of the present invention, the USB interface 100 is used to connect to an external device that needs to be connected to the WiFI network, and to obtain power from the external device to be connected while transmitting data. The USB interface 100 can be in the form of USB Type A, USB Type B, USB Type C, MicroUSB, MiniUSB, etc. It can support standard USB protocols such as USB 1.0, USB 2.0, USB 3.0, USB 3.1, etc. according to the application scenario.
[0043] In the embodiment of the present invention, the Ethernet interface is a physical interface transceiver or an Ethernet connector, and the Ethernet interface supports different Ethernet rates.
[0044] Specifically, the USB to Ethernet interface module 200 can convert the USB protocol into an Ethernet protocol and connect to the next level in the form of an Ethernet interface. The Ethernet interface can be in the form of a physical interface transceiver or an Ethernet connector. According to the application scenario requirements, the Ethernet interface can support different Ethernet rates, such as 10MBps, 100MBps or 1000MBps.
[0045] In the embodiment of the present invention, the Ethernet interface to MII (Media Independent Interface) interface module 300 is an Ethernet transceiver, which can convert Ethernet physical layer data and MAC (Media Access Control Address) layer data. The Ethernet interface to MII module 300 can support 10MBps, 100MBps or 1000MBps Ethernet rates as needed, and the MII interface supports multiple standards to be optional, which can be standard MII, GMII (Gigabit MII), RMII (Reduced MII), SGMII (Serial Gigabit MII) or RGMII (Reduced Gigabit Media), etc.
[0046] In an embodiment of the present invention, the WIFI module 400 is used to set the working mode of the USB to Ethernet interface module and the Ethernet interface to MII module through a target connection; wherein, the USB to Ethernet interface module is set to work in a specified USB mode and a specified Ethernet interface mode, and the Ethernet to MII interface module is set to work in a specified Ethernet interface mode.
[0047] In the embodiment of the present invention, the designated Ethernet interface mode in which the USB-to-Ethernet interface module works is the same as the designated Ethernet interface mode in which the Ethernet-to-MII interface module works.
[0048] Specifically, the WiFi module 400 is connected to the upper level through the MII, and can send and receive data externally through WiFi signals. The WiFi module 400 can support network standards of different specifications as needed, such as 802.11b / g / n / ac / ax, etc.
[0049] Specifically, the WiFi module 400 is also connected to the USB to Ethernet interface module 200 and the Ethernet interface to MII module 300, respectively, as marked by dotted lines. The WiFi module 400 can set the working modes of the above two modules through the dotted line connection: set the USB to Ethernet interface module 200 to work in a specified USB mode (one of USB1.0, USB2.0, USB3.0, USB3.1) and a specified Ethernet interface mode (one of 10MBps, 100MBps or 1000MBps); set the Ethernet to MII module 300 to work in a specified Ethernet interface mode (one of 10MBps, 100MBps or 1000MBps), and the specified Ethernet interface mode of the USB to Ethernet interface module is the same as the specified Ethernet interface mode of the Ethernet to MII interface module.
[0050] In the embodiment of the present invention, the working mode of the WIFI module 400 includes but is not limited to one or more of a wireless access point mode, a WiFi client mode and a relay mode.
[0051] Specifically, the wireless network adapter proposed by the present invention draws power from the outside through the USB interface 100, and then supplies power to other parts. After powering on, the WiFi module 400 can work in AP (Access Point, wireless access point) mode, Client mode, Repeater mode.
[0052] Among them, AP mode can be understood as a wireless WiFi hotspot to the outside world. Other WiFi clients can connect to this hotspot and then communicate with the upper device through Ethernet.
[0053] Among them, the Client mode can be understood as a WiFi client that can connect to an external WiFi access point. After connecting to the access point, the upper device joins the external WiFi local area network, and can then achieve more network functions. For example, if the external WiFi is connected to the wide area Internet, the upper device can access the wide area Internet.
[0054] The Repeater mode can be understood as the WiFi module 400 entering the Repeater mode. In this mode, the WiFi module 400 provides an AP function to which an external WiFi client can connect, and can also access other WiFi access points in Client mode.
[0055] The WiFi wireless network adapter of the embodiment of the present invention is connected to the external device to be connected to the network and the USB to Ethernet interface module through the USB interface; the USB to Ethernet interface module is used to convert the USB protocol into the Ethernet protocol and is connected to the Ethernet interface to MII module through the Ethernet interface; the Ethernet interface to MII module is used to convert Ethernet physical layer data and media access control layer data to each other; the WiFi module is connected to the USB to Ethernet interface module and the Ethernet interface to MII module respectively, and is used to send and receive data through WiFi signals. Therefore, in the case that the external device to be connected to the network only supports the USB wired network port adapter, the WiFi wireless network connection function can still be realized, and the working mode can be flexibly selected based on the working scenario.
[0056] In a possible implementation of the embodiment of the present invention, the control method of the WiFi wireless network adapter of the above embodiment is included, such as Figure 2 As shown, the following steps are included:
[0057] Step 101: Connect the WiFi wireless adapter to an external device to be networked through the USB interface.
[0058] Step 102: Control the WiFi module in the WiFi wireless adapter to enter the relay mode.
[0059] Step 103: The smart terminal accesses the WiFi wireless adapter, and controls the WiFi wireless adapter to scan for WiFi networks and enter the password to join the target wireless access point hotspot through the smart terminal control software.
[0060] In an embodiment of the present invention, the smart terminal obtains the working state of the WiFi wireless adapter and adjusts the working parameters of the WiFi wireless adapter.
[0061] In an embodiment of the present invention, from the perspective of the upper-level device, i.e., the external device to be networked, the wireless network adapter of the present invention is a USB wired network adapter. Therefore, the upper-level device cannot control the wireless network adapter, such as selecting a connected WiFi hotspot, entering a password, parameter configuration, etc. Therefore, other means are needed to control the wireless network adapter to enable external devices to control the wireless network adapter through WiFi.
[0062] Specifically, the wireless adapter is connected to the upper-level device through USB. The WiFi module 400 of the wireless adapter enters the Repeater mode. It is accessed through a third-party WiFi Client (such as a smart phone). The wireless adapter is controlled through control software (such as an application) to scan for WiFi networks and enter the password to join other WiFi AP hotspots. After the third-party WiFi Client (such as a smart phone) accesses, it can also obtain the working state of the adapter in real time and adjust its working parameters.
[0063] In a possible implementation manner of an embodiment of the present invention, it includes the control method of the WiFi wireless network adapter in the above embodiment, as Figure 3 shown, and includes the following steps:
[0064] Step 201: The WiFi module of the WiFi wireless adapter is connected to an external WiFi access point to obtain the negotiated rate N of the WiFi connection.
[0065] Step 202: According to the negotiation rate coefficient M, if N*M >= T1, the Ethernet interface rate of the WiFi wireless adapter is set to E1, and the working mode of the USB interface is set to U1.
[0066] Step 203: If T2 <= N*M < T1, the Ethernet interface rate of the WiFi wireless adapter is set to E2, and the working mode of the USB interface is set to U2.
[0067] Step 204: If T2 > N * M, set the Ethernet interface rate of the WiFi wireless adapter to E3 and the working mode of the USB interface to U3.
[0068] The wireless network adapter proposed by the present invention draws power from the outside through the USB interface and then powers other parts to work. In an environment with limited power supply, it is usually necessary to save power as much as possible. If the wireless network adapter works in a high-speed mode internally, such as USB3.0 and 1000Mbps, it will consume significantly more power than when working in the USB2.0 and 100Mbps modes. Therefore, the above control method can adaptively save power.
[0069] Specifically, after the WiFi module of the wireless adapter is connected to an external WiFi access point, obtain the negotiated rate of the WiFi connection, denoted by N. According to the negotiated rate coefficient M, if N * M >= T1, set the Ethernet interface inside the wireless adapter to the E1 rate and the USB interface mode to U1. If T2 <= N * M < T1, set the Ethernet interface rate inside the wireless adapter to E2 and the USB interface mode to U2. If T2 > N * M, set the Ethernet interface rate inside the wireless adapter to E3 and the USB interface mode to U3.
[0070] It should be noted that the above parameters can be adjusted according to the actual situation, and the levels of T1 and T2 are not limited to 2.
[0071] For example, the parameter settings are as shown in Table 1 below.
[0072]
[0073] In the embodiment of the present invention, the intelligent terminal controls the Ethernet working mode of the WiFi wireless adapter and the working mode of the USB interface through control software.
[0074] Specifically, access the wireless adapter through a third-party WiFiClient (such as a smart phone), and control the Ethernet working mode of the wireless adapter and the USB interface working mode through control software (such as an APP).
[0075] Thus, it can solve the problem that in the case where the upper device only supports a USB wired network adapter, the function of WiFi wireless network connection can still be realized, and through the Ethernet to MII module to connect with the WiFi module, there is no need to connect through an Ethernet switch, which can reduce the system complexity, reduce power consumption and cost. At the same time, the connection rate is still guaranteed, and finally the power consumption can be effectively reduced according to the actual network situation.
[0076] In order to implement the above embodiments, the present invention further proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the WiFi wireless network adapter proposed in any of the above embodiments of the present invention is implemented.
[0077] In order to implement the above embodiments, the present invention further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the control method of the WiFi wireless network adapter proposed in any of the above embodiments of the present invention is implemented.
[0078] In order to implement the above embodiments, the present invention further provides a computer program product. When the instructions in the computer program product are executed by a processor, the control method of the WiFi wireless network adapter provided by any of the above embodiments of the present invention is executed.
[0079] Figure 4 A block diagram of an exemplary electronic device or server suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device or server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0080] like Figure 4 As shown, the electronic device or server 12 is in the form of a general-purpose computing device. The components of the electronic device or server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0081] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0082] The electronic device or server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device or server 12, including volatile and non-volatile media, removable and non-removable media.
[0083] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device or server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present invention.
[0084] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0085] The electronic device or server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device or server 12, and / or communicate with any device that enables the electronic device or server 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device or server 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device or server 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device or server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0086] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.
[0087] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0088] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0089] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0090] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0091] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0092] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0094] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A WiFi wireless network adapter, characterized in that: include: It consists of a USB universal serial bus interface, a USB to Ethernet interface module, an Ethernet interface to MII media independent interface module and a WiFi module; The USB interface is connected to the external device to be connected to the network and the USB to Ethernet interface module respectively, wherein the external device to be connected to the network only supports a USB wired network port adapter; The USB to Ethernet interface module is used to convert the USB protocol into the Ethernet protocol and connect to the Ethernet interface to the MII interface module through the Ethernet interface; The Ethernet interface to MII interface module is used to convert Ethernet physical layer data and media access control layer data to each other; The WiFi module is connected to the USB to Ethernet interface module and the Ethernet interface to MII interface module respectively, and is used to send and receive data via WiFi signals; Controlling the WiFi module in the WiFi wireless adapter to enter a relay mode; The smart terminal accesses the WiFi wireless adapter, controls the WiFi wireless adapter to scan the WiFi network through the smart terminal control software, and enters the password to join the target wireless access point hotspot; The intelligent terminal obtains the working status of the WiFi wireless adapter and adjusts the working parameters of the WiFi wireless adapter.
2. The WiFi wireless network adapter according to claim 1, wherein: The USB interface is configured with a variety of interface forms to support a variety of standard USB protocols.
3. The WiFi wireless network adapter according to claim 1, wherein: The Ethernet interface is a physical interface transceiver or an Ethernet connector, and the Ethernet interface supports different Ethernet rates.
4. The WiFi wireless network adapter according to claim 1, wherein: The WiFi module is used to set the working mode of the USB to Ethernet interface module and the Ethernet interface to MII interface module through a target connection; wherein the USB to Ethernet interface module is set to work in a specified USB mode and a specified Ethernet interface mode, and the Ethernet interface to MII interface module is set to work in a specified Ethernet interface mode.
5. The WiFi wireless network adapter as claimed in claim 4, characterized in that: The specified Ethernet interface mode in which the USB to Ethernet interface module works is the same as the specified Ethernet interface mode in which the Ethernet interface to MII interface module works.
6. The WiFi wireless network adapter according to claim 1, wherein: The working mode of the WiFi module includes but is not limited to one or more of a wireless access point mode, a WiFi client mode and a relay mode.
7. A control method for a WiFi wireless network adapter according to any one of claims 1 to 6, characterized in that: include: The WiFi module of the WiFi wireless adapter is connected to an external WiFi access point to obtain a negotiated rate N of the WiFi connection; According to the negotiated rate coefficient M, if N*M>=T1, the Ethernet interface rate of the WiFi wireless adapter is set to E1, and the working mode of the USB interface is set to U1; wherein T1 is rate threshold 1, E1 is Ethernet working mode 1, and U1 is USB interface mode 1; If T2 <= N * M < T1, the Ethernet interface rate of the Wi-Fi wireless adapter is set to E2, and the working mode of the USB interface is set to U2; where T2 is rate threshold 2, E2 is Ethernet working mode 2, and U2 is USB interface mode 2; If T2 > N * M, the Ethernet interface rate of the Wi-Fi wireless adapter is set to E3, and the working mode of the USB interface is set to U3; where E3 is Ethernet working mode 3, and U3 is USB interface mode 3.
8. The control method according to claim 7, characterized in that: It further includes: The intelligent terminal controls the Ethernet working mode of the Wi-Fi wireless adapter and the working mode of the USB interface through control software.
Citation Information
Patent Citations
Ethernet over USB interfaces with full-duplex differential pairs
CN104838636A
WiFi wireless network adapter and control method thereof
CN113220613A
USB (universal serial bus) interface WiFi (wireless fidelity) wireless internet adapter integrated with U disk
CN202488766U
MoCA terminal
CN203748017U
WiFi wireless network adapter
CN215646815U
