[go: up one dir, main page]

CN116455737A - USB wireless network card connection system and method and android system multi-network connection method - Google Patents

USB wireless network card connection system and method and android system multi-network connection method Download PDF

Info

Publication number
CN116455737A
CN116455737A CN202310247532.4A CN202310247532A CN116455737A CN 116455737 A CN116455737 A CN 116455737A CN 202310247532 A CN202310247532 A CN 202310247532A CN 116455737 A CN116455737 A CN 116455737A
Authority
CN
China
Prior art keywords
wireless network
usb wireless
network card
network
usb
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.)
Pending
Application number
CN202310247532.4A
Other languages
Chinese (zh)
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.)
Hangzhou Xingxi Technology Co ltd
Original Assignee
Hangzhou Xingxi Technology 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 Hangzhou Xingxi Technology Co ltd filed Critical Hangzhou Xingxi Technology Co ltd
Priority to CN202310247532.4A priority Critical patent/CN116455737A/en
Publication of CN116455737A publication Critical patent/CN116455737A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a USB wireless network card connecting system and method and an android system multi-network connecting method, wherein the USB wireless network card connecting system and method comprise the steps of identifying an inserted USB wireless network card as USB equipment; identifying the model of the USB wireless network card based on the USB wireless network card network identification module so as to determine the network mode of the USB wireless network card; feeding back a network mode to the USB wireless network card so that the USB wireless network card starts a network based on the network mode; and identifying the USB wireless network card as network equipment, and carrying out network management on the USB wireless network card through the USB wireless network card service module. The connection method of the invention realizes the communication between the android device belonging to the system and the Internet through the USB wireless network card, and widens the network connection form of the android system; the connection method realizes that the android device aggregates the multiple networks together in the use process, thereby achieving the purposes of improving the total bandwidth of upper application network communication, improving the network speed in a weak network environment and further improving the user experience.

Description

USB wireless network card connection system and method and android system multi-network connection method
Technical Field
The invention relates to the technical field of communication, in particular to a USB wireless network card connection system and method and an android system multi-network connection method.
Background
A USB wireless network card (i.e., USB Dongle) is a network card that uses a built-in mobile communication chip and also transmits through a USB interface. At present, the USB wireless network card can only be connected with a computer USB interface, and after the installation of the drive is completed, new wireless network card equipment can appear in a computer network card list. The existing android device cannot support network connection through the USB wireless network card, namely the existing android system cannot recognize the USB wireless network card, and the network connection form of the android system is limited.
The functions of the android mobile device are more and more diversified nowadays, for example, when network live broadcast is carried out in outdoor scenes and the like, or because the coverage rate of suburb field base stations in the body is low, or the alarm areas of the market and the like in the body fight for signals, various reasons often lead to poor network environment and influence the user experience of the android mobile device. Under the situation, a scheme capable of effectively improving the network condition of the android mobile device is urgently needed, and normal live broadcast requirements are met.
Disclosure of Invention
The technical problem to be solved by the invention is that the existing android system cannot be connected with a network through a USB wireless network card, so that the network connection form of the android system is limited; the existing android mobile device is easy to cause poor network environment for various reasons, and the user experience of the android mobile device is affected.
In order to solve the technical problems, the invention provides a USB wireless network card connecting system which is characterized by comprising an android system, and a USB wireless network card network identification module and a USB wireless network card service module which are arranged in the android system;
the USB wireless network card network identification module is used for determining a network mode of the USB wireless network card based on the inserted USB wireless network card model, and transmitting the network mode to an android system kernel so that the USB wireless network card starts a network based on the network mode fed back by the android system kernel;
the USB wireless network card service module is used for carrying out network management on the USB wireless network card.
Preferably, the USB wireless network card service module is configured to perform network management on the USB wireless network card, and includes:
acquiring network setting information of the USB wireless network card, and performing network setting on the USB wireless network card based on the network setting information, so that android equipment of a USB wireless network card connection system can communicate with the Internet through the USB wireless network card;
and providing a USB wireless network card network interface for the application program on the android device, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
In order to solve the above technical problems, the present invention provides a method for connecting a USB wireless network card, which is implemented on the USB wireless network card connecting system, and includes:
identifying the inserted USB wireless network card as USB equipment;
identifying the model of the USB wireless network card based on a USB wireless network card network identification module so as to determine the network mode of the USB wireless network card;
feeding back the network mode to the USB wireless network card so that the USB wireless network card starts a network based on the network mode;
and identifying the USB wireless network card as network equipment, and carrying out network management on the USB wireless network card through the USB wireless network card service module.
Preferably, the step of identifying the inserted USB wireless network card as a USB device includes:
the android system kernel recognizes the USB wireless network card as a CD-ROM device and sends a block device insertion signal to the android system vold;
after receiving the block device insertion signal, the android system vold sends a USB device identification signal to the android system kernel;
and the android system kernel identifies the USB wireless network card as a USB device based on the USB device identification signal.
Preferably, the step of identifying the USB wireless network card as a network device and managing the USB wireless network card through the USB wireless network card service module includes:
the android system kernel recognizes the USB wireless network card as network equipment and sends a USB wireless network card insertion signal to a framework layer of the android system;
the network link management service of the android system framework layer sends the USB wireless network card insertion signal to the USB wireless network card service module;
and the USB wireless network card service module performs network management on the USB wireless network card.
Preferably, the step of identifying the USB wireless network card as a network device and managing the USB wireless network card through the USB wireless network card service module further includes:
and the network link management service determines the network connection priority of the USB wireless network card, if the network connection priority of the USB wireless network card is the current highest network connection level, the USB wireless network card mode is used as the current execution network mode of the android system, otherwise, the current execution network mode of the android system is not required to be modified.
Preferably, the network management of the USB wireless network card by the USB wireless network card service module includes:
the USB wireless network card service module acquires network setting information of the USB wireless network card and performs network setting on the USB wireless network card based on the network setting information, so that android equipment to which the USB wireless network card connection system belongs can communicate with the Internet through the USB wireless network card;
the USB wireless network card service module provides a USB wireless network card network interface for the application program on the android device, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
In order to solve the technical problems, the invention provides a multi-network connection method of an android system, which comprises the following steps:
setting a network connection priority rule in a network stack service module of an android system frame layer as follows: when the network with high priority is connected, the network with low priority is not closed;
canceling permission restriction of an android system kernel to apply for a socket binding a plurality of networks at the same time by an application program, so that the application program can apply for a socket binding a plurality of networks at the same time;
the android device to which the android system belongs inputs or outputs data through a plurality of networks;
the plurality of networks comprise USB wireless network cards, and the USB wireless network cards realize network communication between the android device and the Internet through a USB wireless network card connection method.
Preferably, the plurality of networks further comprises any one or a combination of a plurality of wireless networks, mobile data, wired networks, ethernet networks.
Preferably, the step of inputting or outputting data by the android device to which the android system belongs through a plurality of networks includes:
the android device or the application server to which the android system belongs sends data to be transmitted to a network unpacking module, and the network unpacking module unpacks the data to be transmitted into a plurality of data packets;
distributing a plurality of data packets to a plurality of networks, wherein the networks respectively send the distributed data packets to a transit server;
and integrating all the data packets into data to be transmitted by the transit server, and transmitting the data to be transmitted to the application server or android equipment to which the android system belongs.
One or more embodiments of the above-described solution may have the following advantages or benefits compared to the prior art:
when the USB wireless network card is identified as the USB equipment by the android system, the USB wireless network card network identification module can acquire a corresponding network mode based on the model of the USB wireless network card, so that the USB wireless network card can start a network based on the identified network mode, and a connection basis is provided for realizing network connection between the android system and the USB wireless network card; and meanwhile, the USB wireless network card service module is used for managing the USB wireless network card of the starting network, so that the android device of the system can communicate with the Internet through the USB wireless network card, and the network connection form of the android system is widened. According to the android system multi-network connection method, the network priority execution rule of the system and the socket management authority are modified, so that the android device can aggregate various networks (comprising the USB wireless network card) in the use process, the total bandwidth of upper-layer application network communication is improved, the network speed is improved in a weak network environment, and the user experience is further improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention, without limitation to the invention. In the drawings:
FIG. 1 is a schematic diagram of a USB wireless network card connection system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for connecting a USB wireless network card according to an embodiment of the invention;
FIG. 3 is a schematic diagram illustrating an implementation process of a second USB wireless network card connection method in a USB wireless network card connection system according to an embodiment of the present invention;
fig. 4 shows a flow chart of a multi-network connection method of the three android system according to an embodiment of the invention.
Detailed Description
The following will describe embodiments of the present invention in detail with reference to the drawings and examples, thereby solving the technical problems by applying technical means to the present invention, and realizing the technical effects can be fully understood and implemented accordingly. It should be noted that, as long as no conflict is formed, each embodiment of the present invention and each feature of each embodiment may be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.
Example 1
In order to solve the technical problems in the prior art, the embodiment of the invention provides a USB wireless network card connection system.
FIG. 1 is a schematic diagram of a USB wireless network card connection system according to an embodiment of the present invention; referring to fig. 1, the USB wireless network card connection system according to the embodiment of the present invention includes an android system, and a USB wireless network card network identification module and a USB wireless network card service module that are disposed in the android system.
The USB wireless network card network identification module is arranged on the active layer of the android system. Because there are many types of USB wireless network cards in the market, after the USB wireless network card is inserted into the android device, the type of the USB wireless network card cannot be directly determined, so that the USB wireless network card is first identified as a common USB device. Further, when the android system kernel recognizes the inserted USB wireless network card as the USB device, the USB wireless network card network recognition module determines a network mode of the USB wireless network card based on the model of the inserted USB wireless network card, and feeds back the network mode to the android system kernel. After the android system kernel receives the network mode of the USB wireless network card, the network mode of the USB wireless network card is automatically fed back to the USB wireless network card, and then the USB wireless network card starts a network based on the corresponding network mode. The process further determines and starts the network protocol corresponding to the USB wireless network card, and provides a connection basis for realizing network connection between the android system and the USB wireless network card.
It should be noted that, the USB wireless network card network identification module stores a plurality of USB wireless network card network types and network modes corresponding to the USB wireless network card network types, so as to provide a data base for determining the corresponding network modes based on the inserted USB wireless network card network types. The various USB wireless network card network types comprise all or most of USB wireless network card networks with different types on the current market.
Meanwhile, the native layer of the android system also comprises Netd, vold and the like. The Netd is a network daemon of the android system, encapsulates various complex types of networks (such as NAT, PLAN, PPP, SOFTAP, TECHER, ETHO, MDNS and the like) at the bottom layer, isolates the difference of network interfaces at the bottom layer and provides a unified call interface for the Framework. The Netd main function comprises the steps of receiving a network request and a processing request of the frame, and feeding back a processing result to the frame layer; and also to listen for network events (disconnect/connect/error, etc.) and report to the frame layer. Vold (Volume Daemon) is the Volume daemon that is used to manage hot-plug events for storage classes in the android system. The hot plug scenario related to this embodiment is hot plug of the USB wireless network card.
The USB wireless network card service module is arranged on a Framework layer of the android system. The USB wireless network card service module is mainly used for carrying out network management on the USB wireless network card for realizing network starting. Further, after receiving the USB wireless network card insertion signal for implementing network startup, the USB wireless network card service module communicates with the frame layer dhcp service to obtain network setting information of the USB wireless network card. And the wireless network card service module performs network setting (including starting dhcp service, setting network card ip and the like) on the USB wireless network card based on the network setting information, so that android equipment of the USB wireless network card connection system can communicate with the Internet through the USB wireless network card. In addition, the USB wireless network card service module is also used for providing a USB wireless network card network interface for the application program on the android device, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
The Framework layer also includes NetworkManagementService, connectivityService, networkStackService and DhcpServer et al. The networkmanagement service is a total network management service, and is mainly used for setting services such as a Firewall (Firewall), bandwidth control, network equipment binding (Tether), and the like, and the implementation mode mainly calls netd through a binder; when the latest network is accessed, the total network management service performs first-layer processing to classify the accessed network and issue the classified network into the corresponding network service. ConnectivityService, a network link management service, is mainly used for network detection/scoring and network selection, and is used for managing data services such as a mobile data network, a WIFI, a hotspot, a network cable, etc., and the data services can be used independently, but only one data service mode can be used at the same time. The networkstack service is a network stack service for starting the network stack when the network card is bound. DhcpServer is the service of dhcp, and is used for starting the service of dhcp and automatically dialing the network card.
The USB wireless network card connecting device provided by the embodiment of the invention can realize the support of the USB wireless network card, so that android equipment can normally identify the USB wireless network cards of various types, realize the automatic dialing of the USB wireless network card, and realize the functions of calling the USB wireless network card network by upper application and the like. The USB wireless network card connecting device provided by the embodiment of the invention can realize that when the system recognizes the USB wireless network card as USB equipment, the USB wireless network card network recognition module can acquire a corresponding network mode based on the model of the USB wireless network card, so that the USB wireless network card can start a network based on the recognized network mode, and a connection basis is provided for realizing network connection between the android system and the USB wireless network card; and meanwhile, the USB wireless network card service module is used for managing the USB wireless network card of the starting network, so that the android device of the system can communicate with the Internet through the USB wireless network card, and the network connection form of the android system is widened.
Example two
In order to solve the technical problems in the prior art, the embodiment of the invention provides a USB wireless network card connection method.
FIG. 2 is a flow chart of a method for connecting a USB wireless network card according to an embodiment of the invention; FIG. 3 is a schematic diagram illustrating an implementation process of a second USB wireless network card connection method in a USB wireless network card connection system according to an embodiment of the present invention; referring to fig. 2 and 3, the method for connecting a USB wireless network card according to an embodiment of the present invention includes the following steps.
Step 201, identifying the inserted USB wireless network card as a USB device;
specifically, after the USB wireless network card is inserted into the android device, the android system kernel first identifies the USB wireless network card as a CD-ROM device. After adding the CD-ROM node, the kernel of the android system sends a uevent event notification (i.e. a block device insertion signal) to the user space through a socket, and the notification is received by the vold of the active layer. After receiving the block device insertion signal, the android vold informs the android kernel to modify the device node into a USB device. Further, the android system vold sends a USB device identification signal to the android system kernel; the android system kernel identifies the USB wireless network card as a USB device based on the USB device identification signal.
Step 202, identifying the model of the USB wireless network card based on the USB wireless network card network identification module so as to determine the network mode of the USB wireless network card.
Specifically, after the USB wireless network card is inserted into the android device, the USB wireless network card model of the USB wireless network card is sent to the android system kernel. After the android system kernel identifies the USB wireless network card as the USB device, a uevent event is sent to the user space and used for notifying the USB device to be inserted. The event is received and processed by the USB wireless network card network identification module of the active layer. The uevent event includes a USB wireless network card model.
After receiving the uevent event, the USB wireless network card network identification module judges whether the USB equipment is a USB wireless network card, and if so, determines the network mode of the USB wireless network card based on the USB wireless network card model in the uevent event. Because all or most of USB wireless network card networks with different types in the current market are stored in the USB wireless network card network identification module, the identification process can identify network modes of the USB wireless network card networks with different types.
Step 203, feeding back the network mode to the USB wireless network card, so that the USB wireless network card starts up the network based on the network mode.
Specifically, after the network identification module of the USB wireless network card identifies the network mode of the USB wireless network card, the identified network mode is transmitted to the kernel of the android system. The android system kernel can inform the USB wireless network card to change the network mode and start the network. And further, the network mode of the USB wireless network card to be identified in the android system is fed back to the USB wireless network card, so that the USB wireless network card starts up the network based on the network mode fed back by the kernel of the android system.
And 204, identifying the USB wireless network card as network equipment, and carrying out network management on the USB wireless network card through the USB wireless network card service module.
Specifically, after the USB wireless network card starts up a network based on a corresponding network mode, the kernel of the android system is informed to identify the USB wireless network card as a network device, which further means that the android system can use the USB wireless network card to perform network data transmission. After the android system kernel adds the network device, a uevent event (i.e. sending a USB wireless network card insertion signal) is sent to the user space, so as to notify the added network device, and the notification is received and processed by the netd service of the native layer. The netd service sends a notification to the frame work layer that there is network device access, which notification is received by the overall network management service. The overall network management service of the frame layer sends a notification of network device access to the network link management service. The network link management service notifies the USB wireless network card service module that the USB wireless network card device is connected (i.e., a USB wireless network card insertion signal is sent to the USB wireless network card service module). The USB wireless network card service module can perform network management on the USB wireless network card.
And meanwhile, the network link management service also determines the network connection priority of the USB wireless network card, if the network connection priority of the USB wireless network card is the current highest network connection level, the USB wireless network card mode is used as the current execution network mode of the android system, otherwise, the current execution network mode of the android system is not required to be modified.
The network management process for the USB wireless network card by the USB wireless network card service module comprises the following steps: the USB wireless network card service module informs the network stack service of the android system that the USB wireless network card device is accessed, the network stack service of the android system sends a service creation signal to the dhcp service, and the dhcp service feeds back network setting information of the USB wireless network card to the USB wireless network card service module through the network stack service. The USB wireless network card performs network setting on the USB wireless network card based on network setting information, wherein the network setting content comprises the steps of establishing a DHCP service, dialing an inserted network device, setting an ip route and the like, so that android equipment which the USB wireless network card connecting system belongs to can communicate with the Internet through the USB wireless network card.
Meanwhile, the USB wireless network card service module can also provide a USB wireless network card network interface for an application program on the android device and is responsible for providing a USB wireless network card network socket for the application program, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
When the priority level of the USB wireless network card is higher, the USB wireless network cards are set as default networks in general, but if a plurality of USB wireless network cards are inserted at the same time, or if a wired network and a USB wireless network card are simultaneously provided (if the network priorities of the wired network and the USB wireless network card are the same), a certain USB wireless network card cannot be directly identified as a default network, and at this time, an upper application program can select and designate a certain USB wireless network card through a USB wireless network card network interface provided by the USB wireless network card service module. Further, the upper layer application program calls the USB wireless network card service module, and then the USB wireless network card service module calls the network link management service interface through the binder, so that the network link management service can provide a socket bound with the corresponding USB wireless network card to the upper layer application program, and the upper layer application program performs network communication through the socket, namely, performs network communication by using the USB wireless network card.
According to the USB wireless network card connection method provided by the embodiment of the invention, when the system recognizes the USB wireless network card as the USB equipment, the USB wireless network card network recognition module can acquire the corresponding network mode based on the model of the USB wireless network card, so that the USB wireless network card can start a network based on the recognized network mode, and a connection basis is provided for realizing network connection between the android system and the USB wireless network card; and meanwhile, the USB wireless network card service module is used for managing the USB wireless network card of the starting network, so that the android device of the system can communicate with the Internet through the USB wireless network card, and the network connection form of the android system is widened.
Example III
In order to solve the technical problems in the prior art, the embodiment of the invention provides a multi-network connection method of an android system.
Fig. 4 shows a flow chart of a multi-network connection method of the three android system according to an embodiment of the invention. Referring to fig. 4, the multi-network connection method of the android system according to the embodiment of the invention includes the following steps.
Step 301, setting a network connection priority rule in a network stack service module of the android system frame layer as: when a high priority network is connected, a low priority network is not closed.
Specifically, in the network stack service module of the android system frame layer, the original network connection priority rule is to use the network with the highest priority level as the default network, and then the communication between the android device and the internet is realized only by the default network. The embodiment of the invention realizes the connection of a plurality of networks into the android device by modifying the rules. Further, in this embodiment, the network connection priority rule in the network stack service module of the android system frame layer is set to: when a high priority network is connected, a low priority network is not closed. Namely, by setting not to close the low priority network, the situation that the multi-priority network is connected simultaneously when the high priority network is connected is realized.
In step S302, the permission restriction of the android system kernel to apply for the socket binding multiple networks at the same time is canceled, so that the application can apply for the socket binding multiple networks at the same time.
Specifically, in the network stack service of the conventional android program, the kernel limits the simultaneous opening operation of multiple networks by applying the permission limit of the socket binding the multiple networks to the application program at the same time, so that the application program of the android system can always realize the network service in a selected network form. In order to achieve simultaneous access of multiple networks of the android system, the network management mechanism in the network stack service is modified, the permission limit of the android system kernel to apply for the socket binding multiple networks at the same time is cancelled, and therefore the android system does not close any network under the condition that multiple networks exist at the same time, and even the application program of the android system can apply for the socket binding multiple networks at the same time, and further simultaneous access of multiple networks is achieved.
Step S303, the android device to which the android system belongs inputs or outputs data through a plurality of networks.
Specifically, through the setting of step S301 and step S302, the android device can simultaneously realize communication with the internet through a plurality of networks. In this case, data can be input or output through a plurality of networks. Preferably, the plurality of networks may include at least two of a USB wireless network card, a wireless network, mobile data, a wired network, an ethernet network, and the like. The USB wireless network card realizes network communication between the android device and the Internet through the USB wireless network card connection method disclosed in the second embodiment.
The android device to which the android system belongs realizes the data output process through the multi-network specifically comprises the following steps:
the android device sends the data packets to be transmitted to a network unpacking module, and the network unpacking module unpacks the data to be transmitted into a plurality of data packets; then, a plurality of data packets are sent to a plurality of networks, so that the plurality of networks can respectively send the data packets distributed to the networks to a transit server; after receiving all the data packets, the transfer server integrates all the data packets to form integrated data to be transmitted; and finally, transmitting the integrated data to be transmitted to an application server.
The android device to which the android system belongs realizes the process of data input and output through multiple networks, and specifically comprises the following steps:
the application server sends the data to be transmitted to a network unpacking module, and the network unpacking module unpacks the data to be transmitted into a plurality of data packets; then, a plurality of data packets are sent to a plurality of networks, so that the plurality of networks can respectively send the data packets distributed to the networks to a transit server; after receiving all the data packets, the transfer server integrates all the data packets to form integrated data to be transmitted; and finally, transmitting the integrated data to be transmitted to android equipment to which the android system belongs.
The data packet distribution mechanism in the network unpacking module can be designed based on the actual network conditions of the current networks, for example, if the network signal strength of the USB wireless network card, the wireless network, the mobile data, the wired network and the Ethernet is sequentially weakened, the network unpacking module can sequentially reduce the distribution quantity of the data packets according to the network sequence when the data packets are distributed. Meanwhile, when the network unpacking module is used for unpacking the data to be transmitted, in order to prevent the unpacked data packets from being confused, marks can be made on the data packets, and then the transfer server can integrate the data packets into the data to be transmitted again based on the marks. The network unpacking module and the transfer server can be further arranged as a module, when data output is needed, the corresponding function is realized as the network unpacking module, and when data input is needed, the corresponding function is realized as the transfer server.
According to the multi-network connection method of the android system, the multiple networks (comprising the USB wireless network card) are aggregated together in the use process of the android device through modifying the network priority execution rule of the system and the socket management authority, so that the purposes of improving the total bandwidth of upper-layer application network communication, improving the network speed in a weak network environment and further improving the user experience are achieved.
Although the embodiments of the present invention are disclosed above, the embodiments are only used for the convenience of understanding the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is still subject to the scope of the present disclosure as defined by the appended claims.

Claims (10)

1. The USB wireless network card connection system is characterized by comprising an android system, and a USB wireless network card network identification module and a USB wireless network card service module which are arranged in the android system;
the USB wireless network card network identification module is used for determining a network mode of the USB wireless network card based on the inserted USB wireless network card model, and transmitting the network mode to an android system kernel so that the USB wireless network card starts a network based on the network mode fed back by the android system kernel;
the USB wireless network card service module is used for carrying out network management on the USB wireless network card.
2. The connection system of claim 1, wherein the USB wireless network card service module is configured to perform network management on the USB wireless network card, including:
acquiring network setting information of the USB wireless network card, and performing network setting on the USB wireless network card based on the network setting information, so that android equipment to which the USB wireless network card connection system belongs can communicate with the Internet through the USB wireless network card;
and providing a USB wireless network card network interface for the application program on the android device, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
3. A method for connecting a USB wireless network card, the method being implemented on the USB wireless network card connecting system of claim 1 or 2, comprising:
identifying the inserted USB wireless network card as USB equipment;
identifying the model of the USB wireless network card based on a USB wireless network card network identification module so as to determine the network mode of the USB wireless network card;
feeding back the network mode to the USB wireless network card so that the USB wireless network card starts a network based on the network mode;
and identifying the USB wireless network card as network equipment, and carrying out network management on the USB wireless network card through the USB wireless network card service module.
4. A method of connecting as claimed in claim 3, wherein the step of identifying the inserted USB wireless network card as a USB device comprises:
the android system kernel recognizes the USB wireless network card as a CD-ROM device and sends a block device insertion signal to the android system vold;
after receiving the block device insertion signal, the android system vold sends a USB device identification signal to the android system kernel;
and the android system kernel identifies the USB wireless network card as a USB device based on the USB device identification signal.
5. The connection method according to claim 3, wherein the step of identifying the USB wireless network card as a network device and managing the USB wireless network card through the USB wireless network card service module comprises:
the android system kernel recognizes the USB wireless network card as network equipment and sends a USB wireless network card insertion signal to a framework layer of the android system;
the network link management service of the android system framework layer sends the USB wireless network card insertion signal to the USB wireless network card service module;
and the USB wireless network card service module performs network management on the USB wireless network card.
6. The connection method according to claim 5, wherein the step of identifying the USB wireless network card as a network device and managing the USB wireless network card through the USB wireless network card service module further comprises:
and the network link management service determines the network connection priority of the USB wireless network card, if the network connection priority of the USB wireless network card is the current highest network connection level, the USB wireless network card mode is used as the current execution network mode of the android system, otherwise, the current execution network mode of the android system is not required to be modified.
7. The connection method according to claim 5, wherein the USB wireless network card service module performs network management on the USB wireless network card, including:
the USB wireless network card service module acquires network setting information of the USB wireless network card and performs network setting on the USB wireless network card based on the network setting information, so that android equipment to which the USB wireless network card connection system belongs can communicate with the Internet through the USB wireless network card;
the USB wireless network card service module provides a USB wireless network card network interface for the application program on the android device, so that the application program on the android device can communicate with the Internet through the USB wireless network card network interface.
8. The multi-network connection method of the android system is characterized by comprising the following steps of:
setting a network connection priority rule in a network stack service module of an android system frame layer as follows: when the network with high priority is connected, the network with low priority is not closed;
canceling permission restriction of an android system kernel to apply for a socket binding a plurality of networks at the same time by an application program, so that the application program can apply for a socket binding a plurality of networks at the same time;
the android device to which the android system belongs inputs or outputs data through a plurality of networks;
the plurality of networks comprise USB wireless network cards, and the USB wireless network cards realize network communication between the android device and the Internet through the USB wireless network card connection method according to any one of claims 3-7.
9. The method of claim 8, wherein the plurality of networks further comprises any one or more of a wireless network, a mobile data, a wired network, and an ethernet network.
10. The method according to claim 8, wherein the step of inputting or outputting data by the android device to which the android system belongs through the plurality of networks includes:
the android device or the application server to which the android system belongs sends data to be transmitted to a network unpacking module, and the network unpacking module unpacks the data to be transmitted into a plurality of data packets;
distributing a plurality of data packets to a plurality of networks, wherein the networks respectively send the distributed data packets to a transit server;
and integrating all the data packets into data to be transmitted by the transit server, and transmitting the data to be transmitted to the application server or android equipment to which the android system belongs.
CN202310247532.4A 2023-03-07 2023-03-07 USB wireless network card connection system and method and android system multi-network connection method Pending CN116455737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310247532.4A CN116455737A (en) 2023-03-07 2023-03-07 USB wireless network card connection system and method and android system multi-network connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310247532.4A CN116455737A (en) 2023-03-07 2023-03-07 USB wireless network card connection system and method and android system multi-network connection method

Publications (1)

Publication Number Publication Date
CN116455737A true CN116455737A (en) 2023-07-18

Family

ID=87126358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310247532.4A Pending CN116455737A (en) 2023-03-07 2023-03-07 USB wireless network card connection system and method and android system multi-network connection method

Country Status (1)

Country Link
CN (1) CN116455737A (en)

Similar Documents

Publication Publication Date Title
US7865198B2 (en) Method for message exchanging service between residential device and mobile terminal
US9455947B2 (en) Apparatus and method of enabling to transceive data using a plurality of heterogeneous networks selectively through a fixed host address
US8700820B2 (en) Method for accessing USB device attached to home gateway, home gateway and terminal
CN111163144B (en) Internet of things module, Internet of things control method and intelligent equipment
US20130185441A1 (en) Mobile radio communication device and method of managing connectivity status for the same
US20180091581A1 (en) Method of switching download mode, control method thereof and control system thereof
CN111294857A (en) Intelligent display screen, control method, storage medium and electronic equipment
CN107333260A (en) A kind of method and device for the real MAC address for obtaining terminal
CN101610177A (en) System and method based on the business configuration of DHCP Server mechanism
US20100199333A1 (en) System and method for providing device management service to electronic device having no broadband communication module
US9462535B2 (en) Method, apparatus and system for obtaining error code information
CN102594802A (en) Method and system for low-latency networking
CN112787828B (en) Application flow statistical method and device and mobile electronic device
US20090221264A1 (en) Storage system of mobile terminal and access control method
CN116455737A (en) USB wireless network card connection system and method and android system multi-network connection method
CN117097795B (en) Android intelligent equipment data communication method and device
WO2024067054A1 (en) Cellular communication capability handover method and apparatus
CN120186594A (en) Network sharing method, device, equipment, and computer-readable storage medium
JP2018174404A (en) Communication control apparatus, communication control method, and program
US20140315600A1 (en) Communication interface method for se equipped on mobile terminal and se using the same
CN115086928A (en) Household appliance product
CN106470414B (en) Method and device for accessing SIM card
CN112996137A (en) Method for establishing data connection on multi-operation system terminal
CN115243228B (en) Communication method and device
JP3866945B2 (en) Data communication network connection system, data communication network connection method, data communication network connection program, and computer-readable recording medium recording the data communication network connection program

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