CN114205848A - Virtual WIFI (Wireless Fidelity) internet surfing method and device, computer equipment and storage medium - Google Patents

Virtual WIFI (Wireless Fidelity) internet surfing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114205848A
CN114205848A CN202111490495.7A CN202111490495A CN114205848A CN 114205848 A CN114205848 A CN 114205848A CN 202111490495 A CN202111490495 A CN 202111490495A CN 114205848 A CN114205848 A CN 114205848A
Authority
CN
China
Prior art keywords
wifi
virtual
network card
interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111490495.7A
Other languages
Chinese (zh)
Other versions
CN114205848B (en
Inventor
邱旭
舒三毛
姚宏亮
张耀斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jide Intelligent Technology Research Institute Co ltd
Original Assignee
Shenzhen Jide Intelligent Technology Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jide Intelligent Technology Research Institute Co ltd filed Critical Shenzhen Jide Intelligent Technology Research Institute Co ltd
Priority to CN202111490495.7A priority Critical patent/CN114205848B/en
Publication of CN114205848A publication Critical patent/CN114205848A/en
Application granted granted Critical
Publication of CN114205848B publication Critical patent/CN114205848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a virtual WIFI internet surfing method, a virtual WIFI internet surfing device, computer equipment and a storage medium, wherein a virtual WIFI kernel module is loaded by Linux; the Android system creates a virtual network card with the type of virtual WIFI; the Android application initiates a WIFI connection request; the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message and sends the WIFI request message to a virtual WIFI kernel module; after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module; and returning to the Android application. The Android system and the application can access the network through the Linux system.

Description

Virtual WIFI (Wireless Fidelity) internet surfing method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of computer operating systems, in particular to a virtual WIFI (wireless fidelity) internet access method, a virtual WIFI internet access device, computer equipment and a storage medium.
Background
In a scenario where the Linux operating system is compatible with the Android environment, there is a requirement for network access, for example: watch online video, browse web pages, log on software, etc. The problems existing in the prior art are as follows: due to the isolation effect of the container docker, the Android system running in the container cannot directly use the network of the host Linux system.
Disclosure of Invention
In order to solve the problem that the Android system accesses a network through Linux in the case that the Linux operating system is compatible with the Android environment, the invention provides a virtual WIFI internet access method, a virtual WIFI internet access device, computer equipment and a storage medium.
In a first aspect, the present invention provides a virtual WIFI internet device, where the device includes:
the virtual WIFI kernel module is a network device driving module based on a Linux cfg80211 kernel interface, and comprises a cfg80211 interface and is used for: receiving a data packet sent by an upper layer protocol of an Android system, and sending the data packet to a network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system; the obtained Ethernet network card information and the set virtual AP information are returned to the WIFI configuration module;
the virtual network card is a virtual network card which is created by an Android system and is of a virtual WIFI type;
a WIFI configuration module to: sending a WIFI instruction to a virtual WIFI kernel module which registers a cfg80211 interface in a Linux kernel through a netlink by using an nl80211 interface; and receiving the WIFI message sent by the virtual WIFI kernel module, and forwarding the WIFI message to the Android application.
In a second aspect, the present invention provides a virtual WIFI internet access method, where the method is applied in an environment compatible with Android in Linux, and the method includes:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
Further, in the method, the Android system creates a virtual network card with a virtual WIFI type, and specifically includes:
when the Adnroid system is started, an ip link add instruction is used for creating a virtual network card with a network type of virtual WIFI virt _ WIFI;
when the ip link add instruction is used for creating the network equipment with the network type of virt _ WIFI, the function of the virtual WIFI kernel module is called according to the transmitted network type, and the callback function for receiving the network data packet is set.
Further, in the method, after the virtual WIFI kernel module receives the WIFI request message, the obtained ethernet network card information and the set AP information of the virtual WIFI are returned to the WIFI configuration module, which specifically includes:
after receiving the WIFI request message, the virtual WIFI kernel module calls a network connection function in the registered cfg80211 interface, and the network connection function calls a network information copying function to copy an ip address of the wired network;
the virtual WIFI kernel module sets AP information of virtual WIFI and sends the AP information of the virtual WIFI to a wireless driving interface nl80211 of the WIFI configuration module.
In a third aspect, the present invention provides a virtual WIFI internet device, where the virtual WIFI internet device includes:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being configured to perform, when the program stored in the memory is executed:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
In a fourth aspect, the present invention provides a computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
In a fifth aspect, the present invention provides a storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
Compared with the prior art, the invention has the following advantages:
in the Linux-compatible Android environment, the Android system and the application can access the network through the Linux system.
Drawings
Fig. 1 is a schematic diagram of a virtual WIFI internet access method provided by an embodiment of the present invention;
fig. 2 is a schematic view illustrating a virtual WIFI internet access device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For the environment compatible with Android running on the Linux operating system, the Android running environment runs in a container.
Fig. 1 is a schematic diagram of a virtual WIFI internet access method provided in an embodiment of the present invention, where the method is applied in an environment compatible with Android from Linux, and the method includes:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
Further, in the method, the Android system creates a virtual network card with a virtual WIFI type, and specifically includes:
when the Adnroid system is started, an ip link add instruction is used for creating a virtual network card with a network type of virtual WIFI virt _ WIFI;
when the ip link add instruction is used for creating the network equipment with the network type of virt _ WIFI, the function of the virtual WIFI kernel module is called according to the transmitted network type, and the callback function for receiving the network data packet is set.
Illustratively, the cfg80211 interface is an api interface in the linux core for configuration management of the wireless device. The cfg80211 provides a set of wireless device configuration operations and functional operations, which are triggered by user space, and further sends messages to the kernel via a netlink (netlink socket is a special inter-process communication for enabling a user process to communicate with a kernel process, and is also the most common interface for network applications to communicate with the kernel) interface, and then invokes kernel operations. The struct cfg80211_ ops structure body describes wireless configuration operations including WIFI scanning, WIFI connection, WIFI disconnection and the like. The virtual WIFI kernel module based on linux cfg80211 kernel interface defines and registers the cfg80211_ ops structure through the registration function.
The Rtnetlink interface is an api interface used for reading and writing a kernel routing table in a Linux kernel, and comprises operations of creating and deleting a network card device, creating, deleting and acquiring routing information of the network card device, adding, deleting and acquiring an IP address of the network card device and the like. The struct rtnl _ link _ ops structure describes the operation of reading and writing the kernel routing table. The virtual WIFI kernel module based on the Rtnetlink kernel interface defines and registers the rtnl _ link _ ops structure through the registration function.
Further, in the method, after the virtual WIFI kernel module receives the WIFI request message, the obtained ethernet network card information and the set AP information of the virtual WIFI are returned to the WIFI configuration module, which specifically includes:
after receiving the WIFI request message, the virtual WIFI kernel module calls a network connection function in the registered cfg80211 interface, and the network connection function calls a network information copying function to copy an ip address of the wired network;
the virtual WIFI kernel module sets AP information of virtual WIFI and sends the AP information of the virtual WIFI to a wireless driving interface nl80211 of the WIFI configuration module.
Fig. 2 is a schematic diagram illustrating a virtual WIFI internet access device according to an embodiment of the present invention, where the virtual WIFI internet access device includes:
the virtual WIFI kernel module is a network device driving module based on a Linux cfg80211 kernel interface, and comprises a cfg80211 interface and is used for: receiving a data packet sent by an upper layer protocol of an Android system, and sending the data packet to a network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system; the obtained Ethernet network card information and the set virtual AP information are returned to the WIFI configuration module;
the virtual network card is a virtual network card which is created by an Android system and is of a virtual WIFI type;
a WIFI configuration module to: sending a WIFI instruction to a virtual WIFI kernel module which registers a cfg80211 interface in a Linux kernel through a netlink by using an nl80211 interface; and receiving the WIFI message sent by the virtual WIFI kernel module, and forwarding the WIFI message to the Android application.
In addition, an embodiment of the present invention provides a virtual WIFI internet access device, where the device includes:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being configured to perform, when the program stored in the memory is executed:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
An embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
Embodiments of the present invention provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A virtual WIFI access device, the device comprising:
the virtual WIFI kernel module is a network device driving module based on a Linux cfg80211 kernel interface, and comprises a cfg80211 interface and is used for: receiving a data packet sent by an upper layer protocol of an Android system, and sending the data packet to a network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system; the obtained Ethernet network card information and the set virtual AP information are returned to the WIFI configuration module;
the virtual network card is a virtual network card which is created by an Android system and is of a virtual WIFI type;
a WIFI configuration module to: sending a WIFI instruction to a virtual WIFI kernel module which registers a cfg80211 interface in a Linux kernel through a netlink by using an nl80211 interface; and receiving the WIFI message sent by the virtual WIFI kernel module, and forwarding the WIFI message to the Android application.
2. A virtual WIFI internet surfing method is applied to a Linux-compatible Android environment, and comprises the following steps:
loading a virtual WIFI kernel module by using Linux;
the virtual WIFI kernel module is used for setting a cfg80211 interface operation function for WIFI configuration and an rtnetlink interface operation function for creating a network card; the virtual wifi kernel module is used for receiving a data packet sent by an upper layer protocol of the Android system and sending the data packet to the network card; receiving a data packet sent by a network card, and sending the data packet to an upper layer protocol of an Android system;
the Android system creates a virtual network card with the type of virtual WIFI; taking the Ethernet network card information as a parameter, calling a rtnetlink interface operation function, and acquiring the Ethernet network information by the rtnetlink interface operation function; setting an operation function of a virtual network card interface, and setting a callback function for the virtual network card interface to receive Ethernet network card data;
the Android application initiates a WIFI connection request;
the Android system starts a WIFI configuration module, the WIFI configuration module receives a WIFI connection request message, and sends the WIFI request message to a virtual WIFI kernel module, registered with a cfg80211 interface, in a Linux kernel in a netlink mode through an nl80211 interface;
after receiving the WIFI request message, the virtual WIFI kernel module returns the acquired Ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module;
the WIFI configuration module returns the Ethernet network card information and the virtual AP information to the Android application;
and the Android application analyzes the virtual AP information to obtain the SSID of the virtual WIFI.
3. The virtual WIFI networking method according to claim 2, wherein the Android system creates a virtual network card with a type of virtual WIFI, and specifically comprises:
when the Adnroid system is started, an iplink add instruction is used for creating a virtual network card with a network type of virtual WIFI virt _ WIFI;
when the ip link add instruction is used for creating the network equipment with the network type of virt _ WIFI, the function of the virtual WIFI kernel module is called according to the transmitted network type, and the callback function for receiving the network data packet is set.
4. The virtual WIFI internet surfing method of claim 2, wherein in said method, after receiving the WIFI request message, the virtual WIFI kernel module returns the obtained ethernet network card information and the set AP information of the virtual WIFI to the WIFI configuration module, specifically:
after receiving the WIFI request message, the virtual WIFI kernel module calls a network connection function in the registered cfg80211 interface, and the network connection function calls a network information copying function to copy an ip address of the wired network;
the virtual WIFI kernel module sets AP information of virtual WIFI and sends the AP information of the virtual WIFI to a wireless driving interface nl80211 of the WIFI configuration module.
5. A virtual WIFI access device, the device comprising:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being adapted to perform the steps of the method according to any of claims 2 to 4 when the program stored in the memory is executed.
6. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any of claims 2 to 4.
7. A storage medium storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 2 to 4.
CN202111490495.7A 2021-12-08 2021-12-08 Virtual WIFI surfing method and device, computer equipment and storage medium Active CN114205848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111490495.7A CN114205848B (en) 2021-12-08 2021-12-08 Virtual WIFI surfing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111490495.7A CN114205848B (en) 2021-12-08 2021-12-08 Virtual WIFI surfing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114205848A true CN114205848A (en) 2022-03-18
CN114205848B CN114205848B (en) 2024-01-09

Family

ID=80651243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111490495.7A Active CN114205848B (en) 2021-12-08 2021-12-08 Virtual WIFI surfing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114205848B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560235A (en) * 2024-01-11 2024-02-13 南京沁恒微电子股份有限公司 Automatic network access method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370009A (en) * 2008-03-12 2009-02-18 武汉理工大学 Construction method for virtual network block frame based on Linux kernel network subsystem
CN102122255A (en) * 2011-03-15 2011-07-13 合肥华云通信技术有限公司 Method for realizing inter-process communication in Linux system by utilizing virtual character equipment and genetlink
CN104202332A (en) * 2014-10-11 2014-12-10 中南大学 Mobile equipment virtual system based on Linux kernel and instant installing method
US20140373006A1 (en) * 2013-06-12 2014-12-18 Krishnaprasad K System And Method For Virtual Machine Management
CN104581419A (en) * 2014-12-29 2015-04-29 成都卓影科技有限公司 Dual-network realizing method based on android intelligent set-top box
US20150163716A1 (en) * 2013-12-09 2015-06-11 Nec Laboratories America, Inc. Intelligent wifi-offloading for next-generation mobile networks
CN105812225A (en) * 2016-05-04 2016-07-27 烽火通信科技股份有限公司 Virtual Ethernet communication component irrelevant to interface and method thereof for realizing communication
CN105847053A (en) * 2016-03-23 2016-08-10 成都民航空管科技发展有限公司 Method and system for automatically setting arbitrary bonding for multi-network card and multi-network segment under LINUX system
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
CN108390810A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 One kind is based on the more android system network virtualization methods of single linux kernel
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine
CN112422453A (en) * 2020-12-09 2021-02-26 新华三信息技术有限公司 Message processing method, device, medium and equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370009A (en) * 2008-03-12 2009-02-18 武汉理工大学 Construction method for virtual network block frame based on Linux kernel network subsystem
CN102122255A (en) * 2011-03-15 2011-07-13 合肥华云通信技术有限公司 Method for realizing inter-process communication in Linux system by utilizing virtual character equipment and genetlink
US20140373006A1 (en) * 2013-06-12 2014-12-18 Krishnaprasad K System And Method For Virtual Machine Management
US20150163716A1 (en) * 2013-12-09 2015-06-11 Nec Laboratories America, Inc. Intelligent wifi-offloading for next-generation mobile networks
CN104202332A (en) * 2014-10-11 2014-12-10 中南大学 Mobile equipment virtual system based on Linux kernel and instant installing method
CN104581419A (en) * 2014-12-29 2015-04-29 成都卓影科技有限公司 Dual-network realizing method based on android intelligent set-top box
CN105847053A (en) * 2016-03-23 2016-08-10 成都民航空管科技发展有限公司 Method and system for automatically setting arbitrary bonding for multi-network card and multi-network segment under LINUX system
CN105812225A (en) * 2016-05-04 2016-07-27 烽火通信科技股份有限公司 Virtual Ethernet communication component irrelevant to interface and method thereof for realizing communication
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
CN108390810A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 One kind is based on the more android system network virtualization methods of single linux kernel
CN110113211A (en) * 2019-05-10 2019-08-09 深圳市智微智能科技开发有限公司 Realize method, system, advertisement machine and the storage medium of the double network segments of Android advertisement machine
CN112422453A (en) * 2020-12-09 2021-02-26 新华三信息技术有限公司 Message processing method, device, medium and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ASHFAD AMAD MAKLIJ、TARGJK KHAN: ""Implementing MANET for Trustworthy Collaboration_Using OSS and Android Based COTS Devices"", 《2016ICCTS》 *
邱旭: ""基于轨迹预测的车载网路由协议研究"", 《国防科学技术大学硕士论文》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560235A (en) * 2024-01-11 2024-02-13 南京沁恒微电子股份有限公司 Automatic network access method and device
CN117560235B (en) * 2024-01-11 2024-04-02 南京沁恒微电子股份有限公司 Automatic network access method and device

Also Published As

Publication number Publication date
CN114205848B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN111726399B (en) Docker container secure access method and device
US11856065B2 (en) Data transmission for service integration between a virtual private cloud and an intranet
WO2009097776A1 (en) System, device and method for achieving service upgrade
JP5293580B2 (en) Web service system, web service method and program
CN111787126B (en) Container creation method, server, and storage medium
CN107665302B (en) Android application multi-open implementation method, mobile terminal and storage medium
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
US20170272540A1 (en) Method and device for message sending and receiving based on a communication interface framework
JP2023523242A (en) DATA PROCESSING METHOD, DATA PROCESSING APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM
CN109889468B (en) Network data transmission method, system, device, equipment and storage medium
CN114205848B (en) Virtual WIFI surfing method and device, computer equipment and storage medium
CN108304270B (en) Communication method, device and computer readable storage medium
WO2017032152A1 (en) Method for writing data into storage device and storage device
CN114244654B (en) URL forwarding method, device, equipment and computer storage medium
CN111432040A (en) Data packet sending method and device for multi-system terminal
CN114726905B (en) Method, device, equipment and storage medium for accessing Tbox network into Android system
JP2013229021A (en) Mobile broadband device, and mobile broadband service processing method for mobile broadband device
CN110502354B (en) Java intelligent card and calling method of application program interface thereof
CN110875910B (en) Method, device and system for acquiring network transmission information
Woodruff et al. Introduction to the InfiniBand core software
CN113691389A (en) Configuration method of load balancer, server and storage medium
WO2024093409A1 (en) Service component calling method and apparatus, and computer device and storage medium
CN115208739B (en) Cross-multi-network-area docking method and method for docking one-way network areas in safe operation and maintenance areas
CN111596896B (en) Interface calling method, device, equipment and medium adapting to different languages
TWI791316B (en) Method and system for implementing inter-process communications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant