CN113037737B - Method for external network card application of user terminal equipment - Google Patents

Method for external network card application of user terminal equipment Download PDF

Info

Publication number
CN113037737B
CN113037737B CN202110232009.5A CN202110232009A CN113037737B CN 113037737 B CN113037737 B CN 113037737B CN 202110232009 A CN202110232009 A CN 202110232009A CN 113037737 B CN113037737 B CN 113037737B
Authority
CN
China
Prior art keywords
network card
network
data
user terminal
node
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.)
Active
Application number
CN202110232009.5A
Other languages
Chinese (zh)
Other versions
CN113037737A (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.)
Sichuan Subao Network Technology Co ltd
Original Assignee
Sichuan Subao Network 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 Sichuan Subao Network Technology Co ltd filed Critical Sichuan Subao Network Technology Co ltd
Priority to CN202110232009.5A priority Critical patent/CN113037737B/en
Publication of CN113037737A publication Critical patent/CN113037737A/en
Application granted granted Critical
Publication of CN113037737B publication Critical patent/CN113037737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • 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)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for applying an external network card to user terminal equipment, which comprises a wireless AP, an external network card and terminal equipment; the external network card is used for receiving wireless signals sent by the wireless AP; the terminal equipment is used for receiving and transmitting data of the external network card and comprises an internal preset APP, a driving module and a USB interface; the external network card technology is high in efficiency, flexible, convenient and low in cost.

Description

Method for external network card application of user terminal equipment
Technical Field
The invention relates to the technical field of external network cards, in particular to a method for applying an external network card to user terminal equipment.
Background
At present, with the rapid improvement of network infrastructure, a wide implementation space is provided for user terminal application in a network environment, meanwhile, under specific situations, the network quality of users does not meet the user requirements or does not meet the application requirements of terminals, based on the situations, through statistics and analysis of a large number of network fault conditions, how the user terminals access, the network access mode of the user terminals is a key bottleneck, in general, a common user always accesses the internet through wifi in a home or public place, in general, the wireless APs in the market basically support multichannel access, and some mobile phones provide a technology for supporting wifi MIMO (multiple-access multiple-receive) but still have a large number of mobile phones only to support wifi networks, so a technology for supporting users to flexibly expand network channels is very needed in the single channel market.
Disclosure of Invention
The invention provides a method for applying an external network card to user terminal equipment, which expands a data channel of a terminal by providing the external network card, thereby greatly improving the network bandwidth of a user and meeting more applications with higher requirements on the network so as to solve the problems.
The invention provides a method for applying an external network card to user terminal equipment, which comprises a wireless AP, an external network card and terminal equipment; wherein,,
the external network card is used for receiving wireless signals sent by the wireless AP;
the terminal equipment is used for receiving and transmitting data of the external network card and comprises an internal preset APP, a driving module and a USB interface; wherein,,
the driving module is used for detecting the connection condition of the external network card and the USB interface based on preset driving software and determining a connection mode.
Preferably, the detecting the connection condition of the external network card and the USB interface includes the following steps:
step 1: when an insertion response is generated on the user terminal device, automatically generating a reading instruction on the terminal device:
step 2: according to the reading instruction, reading the hardware type of the wireless network card through driving software preset in the user terminal equipment, and judging whether the hardware type of the wireless network card is matched with the type of the pre-stored external network card or not;
step 3: when the hardware type of the wireless network card is not matched with the type of the pre-stored external network card, directly exiting the operation step;
step 4: when the hardware type of the wireless network card is matched with the type of the pre-stored external network card, initializing an application software layer of the user terminal equipment, judging the connection condition of the external network card, and determining a judging result.
Preferably, the driving module includes a single network card connection unit and a dual network card connection unit, the single network card connection unit is used for executing a single network card connection mode, and the dual network card connection unit is used for executing a dual network card connection mode.
Preferably, the single network card connection unit includes:
the single network card insertion identification subunit is used for automatically detecting the hardware type of the single network card through preset driving software when the single network card is inserted into the user terminal;
the single network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the single network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the single network card comprises computer information, hub information, network interface card information, wireless access point information and modem information;
the single network card data receiving and transmitting subunit is used for providing a socket interface for the initialized software layer through driving software according to the network equipment information of the single network card and establishing basic network connection for communication according to the socket interface; wherein,,
the basic network connection comprises a TCP connection and a UDP connection;
the single network card removing subunit is used for automatically deleting the network equipment information of the single network card by the driving software when the driving software detects that the single network card is removed from the equipment by a user;
the dual network card connection unit includes:
the double-network card insertion identification subunit is used for identifying whether the double-network card is inserted or not based on the driving software and respectively identifying the hardware types of the double-network card;
the dual network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the dual network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the double network cards comprises switch information, network bridge information, router information and gateway information;
the double-network-card data receiving and transmitting subunit is used for creating a virtual network card according to the network equipment information of the double network cards, providing a socket interface for the initialized software layer according to the virtual network card, and establishing basic network connection for data communication;
and the double network card removing subunit is used for automatically deleting the network equipment information of the double network card by the driving software when the driving software detects that the user removes the double network card from the equipment.
Preferably, the establishing a basic network connection by the dual-network card data transceiver subunit for data communication includes:
providing a special API for the application software layer according to the network equipment information of the double network card, and binding the double network card;
when the upper application software layer invokes the interface, creating a virtual network card according to the network equipment information of the double network cards;
acquiring a data message of a user, and determining uniform hash data of the data message according to the data message;
driving the hash data to the two physical network cards of the internal network card and the external network card through driving software according to the virtual network card;
and simultaneously, providing a socket interface for upper-layer application based on the virtual network card, and establishing basic network connection for data communication according to the socket interface.
Preferably, the dual-network card connection unit further comprises an aggregation node unit and a node receiving and transmitting unit; wherein,,
the sink node unit is used for acquiring a network node, determining the sink node according to the network node, and carrying out flow combination according to the sink node;
the node receiving and transmitting unit is used for respectively establishing sockets through the internal network card and the external network card based on preset driving software, and acquiring a plurality of data channels of a network layer through the sockets to realize data communication.
Preferably, the sink node unit includes:
deploying a convergence node subunit: the method comprises the steps of acquiring network nodes based on a network used for terminal equipment and a wireless sensor network, and deploying sink nodes according to the network nodes; wherein,,
the sink node senses, collects and processes specific information in a network coverage area in a cooperative manner;
communication data subunit: the aggregation node is used for respectively establishing data communication with an external network card and an internal network card of a user according to the aggregation node and determining communication data;
flow combining subunit: and the traffic merging module is used for merging the traffic of the communication data according to the sink node.
Preferably, the node transceiver unit includes:
building a socket subunit: the method comprises the steps of respectively establishing sockets for an external network card and a built-in network card based on driving software; wherein,,
the socket comprises a first socket and a second socket;
abstract API determining subunit: the method comprises the steps of acquiring an application program interface, packaging the first socket and the second socket in the application program interface, and determining an abstract API;
node data receiving and transmitting subunit: the method is used for calling the abstract API through an application software layer and carrying out node data receiving and transmitting according to the abstract API; wherein,,
the node data transceiver is used for communicating with the sink node through two sockets respectively.
Preferably, the deploying a sink node subunit deploying a sink node, including:
acquiring a convergence demand, and determining the characteristics of a data source according to the convergence demand;
determining data characteristics according to the data source characteristics, and describing a convergence structure; wherein,,
the convergence structure comprises a network topology structure, a network transmission characteristic structure and a data convergence destination structure;
and acquiring a network node of the wireless sensor network according to the convergence structure, and determining the convergence node according to the network node and a data object of the sensing terminal equipment.
Preferably, the node data transceiver subunit invokes an abstract API, and performs node data transceiver according to the abstract API, including:
step A1: obtaining connection data generated when the double network card is connected with the user terminal, carrying out Fourier transformation on the connection data, and determining discrete connection data;
Figure SMS_1
wherein F (U (T, X), V (T, X)) represents discrete connection data, U (T, X) represents initial data of an application layer of the user terminal when the dual network card is not connected to the user terminal, (T, X) represents initial data X at time T, T represents time of the initial data, X represents initial data, V (T, X) represents generated connection data of the application layer of the user terminal when the dual network card is connected to the user terminal, (T, X) represents connection data X at time T, X represents connection data generated when the dual network card is connected to the user terminal, T represents time when the dual network card is connected to the user terminal, j represents dirigible condition;
step A2: storing the discrete connection data into a network equipment characteristic database through an application software layer, and extracting characteristic data of the double network cards:
Figure SMS_2
wherein,,
Figure SMS_3
representing the discrete connection data training set when the dual network card is connected with the user terminal, wherein N represents the number of the discrete connection data in the training set, and the vector theta represents the parameters of the discrete connection data training set, namely the I theta I p The P-norm of the vector θ is represented, as a constraint scale for the discrete connected data training set, γ represents the loss factor, and ω represents the dynamic factor of the vector θ.
Step A3: and packaging the characteristic data vector in a preset API interface, determining an abstract API, and carrying out node data transceiving according to the abstract API.
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 may be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
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. In the drawings:
FIG. 1 is a block diagram of a method for a user terminal device to use an external network card in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for an external network card for various user terminal devices according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for an external network card for various user terminal devices in an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Example 1:
according to the method shown in fig. 1, the invention provides a method for applying an external network card to user terminal equipment, which comprises a wireless AP, an external network card and terminal equipment; wherein,,
the external network card is used for receiving wireless signals sent by the wireless AP;
the terminal equipment is used for receiving and transmitting data of the external network card and comprises an internal preset APP, a driving module and a USB interface; wherein,,
the driving module is used for detecting the connection condition of the external network card and the USB interface based on preset driving software and determining a connection mode.
The working principle of the technical scheme is as follows:
the invention provides an external network card technology for various user terminal equipment, which comprises a wireless AP, an external network card and terminal equipment, wherein the external network card is used for carrying out data exchange with the Internet or carrying out intercommunication and interconnection with other computers of a local area network and carrying out data exchange and local area network cooperation; the method comprises the steps of supporting to establish a common network interface by using an external network card for other applications, wherein an APP (application) application program end in terminal equipment is used for reading and writing connection data of a driving module;
the beneficial effects of the technical scheme are as follows:
according to the invention, a wireless network card based on a Type-C, micro-USB interface is realized through an external network card technology, and the wireless network card can be inserted into a general user terminal; realizing an application layer software, wherein the software supports a data reading and writing function of an external network card; the external network card and the internal network card are bound, and a unified logic interface is provided for other applications and provided for other applications, so that the purpose of expanding a data channel is realized.
Example 2:
as shown in fig. 2, the present invention provides a system for detecting the connection condition of the external network card and the USB interface, including the following steps:
step 1: when an insertion response is generated on the user terminal device, automatically generating a reading instruction on the terminal device:
step 2: according to the reading instruction, reading the hardware type of the wireless network card through driving software preset in the user terminal equipment, and judging whether the hardware type of the wireless network card is matched with the type of the pre-stored external network card or not;
step 3: when the hardware type of the wireless network card is not matched with the type of the pre-stored external network card, directly exiting the operation step;
step 4: when the hardware type of the wireless network card is matched with the type of the pre-stored external network card, initializing an application software layer of the user terminal equipment, judging the connection condition of the external network card, and determining a judging result.
The working principle of the technical scheme is as follows:
according to the technical scheme, whether the wireless network card is inserted into the user terminal equipment or not is obtained through monitoring between the external network card and the USB interface by using a preset driving program, the user terminal equipment can comprise network equipment such as a personal computer, a printer or other router gateways, after the driving software monitors that the wireless network card is inserted, the type of the inserted network card is read, the wireless network card type is mainly divided into an internal integrated wireless network card, such as a notebook, a smart phone and the like, the wireless network card is integrated inside the internal integrated wireless network card, an external wireless network card, such as a common USB wireless network card, a PCI wireless network card and the like, when the external wireless network card is matched with the hardware type prestored in the user terminal, a software layer of the user terminal equipment is initialized, the connection condition of the external network card is judged, and the connection condition of the external network card and the terminal equipment is obtained.
The beneficial effects of the technical scheme are as follows:
according to the technical scheme, the detection area is preset in the driving software to obtain whether the wireless network card is inserted or not, when the hardware type of the wireless network card is not matched with the type of the pre-stored external network card, the operation steps are directly exited, redundant operation steps are avoided, the double network card technology is relatively simple, the communication is reliable, and the method has the characteristics of flexibility, high throughput and quick installation.
Example 3:
the invention provides a system, wherein a driving module comprises a single network card connecting unit and a double network card connecting unit, the single network card connecting unit is used for executing a single network card connecting mode, and the double network card connecting unit is used for executing a double network card connecting mode.
The working principle of the technical scheme is as follows:
the single network card of the invention generally has double IP addresses for data communication, after a user inserts the single network card, the single network card is inserted into the identification unit to identify the hardware type of the single network card, and the preset driving software is used for automatically detecting the hardware type of the single network card when the single network card is connected with the user terminal; when the types of the external network cards prestored in the hardware types are matched, initializing a software layer of user terminal equipment, namely an application layer of a user, and creating network equipment information of a single network card; the network equipment information is effective information extracted from the hardware type of the network card, and comprises computer information, hub information, network interface card information, wireless access point information, modem information and the like, basic network connection is established according to a single network card data receiving and transmitting unit for communication, the single network card network equipment information is read, a socket interface is provided for an initialized software layer through driving software, the socket interface provides effective and reliable byte stream, an external data transmission mechanism is used, meanwhile, according to the socket interface, based on the TCP/UDP protocol, the basic network connection is established for communication, the basic network connection comprises TCP connection and UDP connection, finally, the reserved information when a user removes the single network card from the equipment is deleted through a single network card removing unit, whether the user removes the single network card from the equipment is detected through the driving software, and the network equipment information of the single network card is automatically deleted through the driving software.
The beneficial effects of the technical scheme are as follows:
the invention provides an automatic identification capability, which is used for identifying whether the external network card is a single network card or a double network card when the external network card is inserted into the user terminal, and respectively provides different data receiving and transmitting methods, and automatically detects and identifies whether the external network card is the single network card by using the driving software, and automatically deletes the network equipment information of the single network card when the user terminal is disconnected from the single network card by using the driving software, thereby providing a flexible and intelligent reading connection mode.
Example 4:
the invention provides a system, the single network card connection unit includes:
the single network card insertion identification subunit is used for automatically detecting the hardware type of the single network card through preset driving software when the single network card is inserted into the user terminal;
the single network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the single network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the single network card comprises computer information, hub information, network interface card information, wireless access point information and modem information;
the single network card data receiving and transmitting subunit is used for providing a socket interface for the initialized software layer through driving software according to the network equipment information of the single network card and establishing basic network connection for communication according to the socket interface; wherein,,
the basic network connection comprises a TCP connection and a UDP connection;
the single network card removing subunit is used for automatically deleting the network equipment information of the single network card by the driving software when the driving software detects that the single network card is removed from the equipment by a user;
the dual network card connection unit includes:
the double-network card insertion identification subunit is used for identifying whether the double-network card is inserted or not based on the driving software and respectively identifying the hardware types of the double-network card;
the dual network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the dual network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the double network cards comprises switch information, network bridge information, router information and gateway information;
the double-network-card data receiving and transmitting subunit is used for creating a virtual network card according to the network equipment information of the double network cards, providing a socket interface for the initialized software layer according to the virtual network card, and establishing basic network connection for data communication;
and the double network card removing subunit is used for automatically deleting the network equipment information of the double network card by the driving software when the driving software detects that the user removes the double network card from the equipment.
The working principle of the technical scheme is as follows:
the invention is through inserting the identifying element in the double network card, the double network card creates the unit, the double network card data transceiver unit and double network card remove the unit and cooperate together, and based on the driving software, discern whether it is double network card and user terminal connection, after discerning it is double network card, at the same time, discern the hardware type of two network cards of the double network card separately, then through the double network card creates the unit when hardware type and type of external network card prestored match, this time application level of user terminal is initialized, and based on the external network card technology, set up the network equipment information of the double network card, including exchanger information, network bridge information, router information, gateway information, etc., the double network card data transceiver unit is according to the network equipment information of the double network card, set up the virtual network card, set up preselected several local area network of customer end, and provide the socket interface to the initialized software level according to the virtual network card, mainly used for distributing the description word of a socket interface and its used resource according to appoint address family, thus carry on the data communication, finally utilize the double network equipment information of the double network card to remove the unit and delete the said double network equipment information automatically, meet the condition that the automatic network card is removed from the external network card when the driving software detects the user equipment, remove the network card from the said double network card, the driving software is identical to the network equipment.
The beneficial effects of the technical scheme are as follows:
according to the technical scheme, the external network card information is automatically deleted, the reserved trace of the external network card is eliminated, the external network card information is protected, and the confidentiality of the whole process is guaranteed.
Example 5:
as shown in fig. 2, the present invention provides a system, where the establishing a basic network connection by the dual-network card data transceiver subunit for data communication includes:
providing a special API for the application software layer according to the network equipment information of the double network card, and binding the double network card;
when the upper application software layer invokes the interface, creating a virtual network card according to the network equipment information of the double network cards;
acquiring a data message of a user, and determining uniform hash data of the data message according to the data message;
driving the hash data to the two physical network cards of the internal network card and the external network card through driving software according to the virtual network card;
and simultaneously, providing a socket interface for upper-layer application based on the virtual network card, and establishing basic network connection for data communication according to the socket interface.
The working principle of the technical scheme is as follows:
according to the technical scheme, a virtual network card is created according to network equipment information of the double network cards, a special API is provided for an application software layer according to the network equipment information of the double network cards, the API is a predefined function interface or an HTTP interface or refers to different component part conventions of a software system, an access interface of an application program and a developer based on certain software or hardware is provided, meanwhile, the virtual network card is bound with the double network cards, when an upper application software layer calls a socket interface, the virtual network card is created according to the network equipment information of the double network cards, a data message of a user is obtained, namely, data units to be exchanged and transmitted in a network are obtained, a data block to be transmitted at one time is calculated at a site, uniform hash data of the data message is calculated, the hash data is driven to the two physical network cards through driving software, and basic network connection is established through the socket interface for data communication.
The beneficial effects of the technical scheme are as follows:
according to the technical scheme, by providing the special API, the source code does not need to be accessed, and the internal mechanism of work does not need to be understood, so that the system has the characteristics of larger autonomy and individuation, and the economical, stable and practical internet configuration is provided through the double-network card setting.
Example 6:
the invention provides a system, which comprises a double-network card connecting unit, an aggregation node unit and a node receiving and transmitting unit, wherein the aggregation node unit is connected with the node receiving and transmitting unit; wherein,,
the sink node unit is used for acquiring a network node, determining the sink node according to the network node, and carrying out flow combination according to the sink node;
the node receiving and transmitting unit is used for respectively establishing sockets through the internal network card and the external network card based on preset driving software, and acquiring a plurality of data channels of a network layer through the sockets to realize data communication.
The working principle and the working beneficial effects of the technical scheme are as follows:
the technical scheme is used for deployment in a second scheme of the double-network-card connection condition, network nodes on a network are acquired through a sink node unit and a node receiving and transmitting unit, so that deployment is performed, the sink node is acquired, the sink node has strong data collection capacity, data acquired by adjacent nodes can be analyzed and preprocessed, the acquired data can be sent to a remote control center, flow merging is performed according to the sink node, and the node receiving and transmitting unit respectively establishes sockets through an internal network card and an external network card on the basis of preset driving software to acquire a plurality of data channels of a network layer, realize data communication and send the acquired data to the remote control center.
Example 7:
the invention provides a system, the sink node unit includes:
deploying a convergence node subunit: the method comprises the steps of acquiring network nodes based on a network used for terminal equipment and a wireless sensor network, and deploying sink nodes according to the network nodes; wherein,,
the sink node senses, collects and processes specific information in a network coverage area in a cooperative manner;
communication data subunit: the aggregation node is used for respectively establishing data communication with an external network card and an internal network card of a user according to the aggregation node and determining communication data;
flow combining subunit: and the traffic merging module is used for merging the traffic of the communication data according to the sink node.
The working principle of the technical scheme is as follows:
according to the technical scheme, the network nodes are acquired, the sink nodes are determined, flow merging is carried out, the network nodes are mainly acquired based on terminal equipment and a wireless sensor network, the sink nodes are screened and deployed on the network nodes, the sink nodes sense, acquire and process specific information in a network coverage area in a cooperative mode, meanwhile, data communication is respectively established with an external network card and an internal network card of a user, and communication data are transmitted when the two network cards are connected; and at the moment, the sink node is utilized to carry out flow combination on the communication data, analyze and aggregate the data collected by the adjacent nodes for preprocessing, and can send the collected data to a remote control center.
The beneficial effects of the technical scheme are that:
the technical scheme provides a technical scheme with convenient preventive maintenance and low cost through the deployment of the sink nodes.
Example 8:
the invention provides a system, the node receiving-transmitting unit includes:
building a socket subunit: the method comprises the steps of respectively establishing sockets for an external network card and a built-in network card based on driving software; wherein,,
the socket comprises a first socket and a second socket;
abstract API determining subunit: the method comprises the steps of acquiring an application program interface, packaging the first socket and the second socket in the application program interface, and determining an abstract API;
node data receiving and transmitting subunit: the method is used for calling the abstract API through an application software layer and carrying out node data receiving and transmitting according to the abstract API; wherein,,
the node data transceiver is used for communicating with the sink node through two sockets respectively.
The working principle of the technical scheme is as follows:
according to the technical scheme, the sink node is acquired and deployed based on the terminal equipment and the wireless sensor network, firstly, the data source characteristics are determined according to the sink requirements, the data source characteristics to be collected are determined, the data characteristics are calculated, the sink structure is depicted and mainly comprises a network topology structure, a network transmission characteristic structure and a data sink destination structure, based on three-layer network architecture design, the core layer is utilized to conduct high-speed network exchange, the sink layer is utilized to provide policy-based connection, then the work port and the user port are connected into the network according to the access layer, the data object of the terminal equipment is perceived through the structure, the sink node is determined, and therefore the premise of data message acquisition is determined and deployed.
The technical scheme has the following working beneficial effects:
the technical scheme provides an external network card technology which is relatively simple, reliable in communication, flexible, high in throughput and rapid to install through the deployment of the terminal equipment and the wireless sensor.
Example 9:
the invention provides a system, the deployment aggregation node subunit deploys an aggregation node, which comprises:
acquiring a convergence demand, and determining the characteristics of a data source according to the convergence demand;
determining data characteristics according to the data source characteristics, and describing a convergence structure; wherein,,
the convergence structure comprises a network topology structure, a network transmission characteristic structure and a data convergence destination structure;
and acquiring a network node of the wireless sensor network according to the convergence structure, and determining the convergence node according to the network node and a data object of the sensing terminal equipment.
The working principle of the technical scheme is as follows:
according to the technical scheme, socket interfaces are respectively built through an internal network card and an external network card based on preset driving software, the socket interfaces are utilized, a plurality of data channels of a network layer are obtained, data communication is achieved, the external network card and the internal network card are respectively built, a first socket is a socket interface of the external network card, a second socket is a socket interface of the internal network card, an application program interface is obtained according to the two socket interfaces, the first socket and the second socket are packaged in the application program interface, an abstract API (application program interface) is determined, and the abstract API is called at the application software layer to perform node data receiving and transmitting, and an operation pad is provided for data traffic statistics.
Example 10:
the invention provides a system, the node data receiving and transmitting subunit calls an abstract API, and according to the abstract API, the node data receiving and transmitting comprises:
step A1: obtaining connection data generated when the double network card is connected with the user terminal, carrying out Fourier transformation on the connection data, and determining discrete connection data;
Figure SMS_4
wherein F (U (T, X), V (T, X)) represents discrete connection data, U (T, X) represents initial data of an application layer of the user terminal when the dual network card is not connected to the user terminal, (T, X) represents initial data X at time T, T represents time of the initial data, X represents initial data, V (T, X) represents generated connection data of the application layer of the user terminal when the dual network card is connected to the user terminal, (T, X) represents connection data X at time T, X represents connection data generated when the dual network card is connected to the user terminal, T represents time when the dual network card is connected to the user terminal, j represents dirigible condition;
step A2: storing the discrete connection data into a network equipment characteristic database through an application software layer, and extracting characteristic data of the double network cards:
Figure SMS_5
wherein,,
Figure SMS_6
representing the discrete connection data training set when the dual network card is connected with the user terminal, wherein N represents the number of the discrete connection data in the training set, and the vector theta represents the parameters of the discrete connection data training set, namely the I theta I p The P-norm of the vector θ is represented, as a constraint scale for the discrete connected data training set, γ represents the loss factor, and ω represents the dynamic factor of the vector θ.
Step A3: and packaging the characteristic data vector in a preset API interface, determining an abstract API, and carrying out node data transceiving according to the abstract API.
The working principle and the beneficial effects of the technical scheme are as follows:
the invention carries out Fourier transformation on connection data by acquiring connection data F (U (T, X), V (T, X)) generated when the double network card is connected with the user terminal, thereby determining discrete connection data, storing the discrete connection data into a network equipment characteristic database through an application software layer, extracting characteristic data vector delta (theta) of the double network card, and packaging the characteristic data vector into a preset API interface by converting the data into an electric signal in the middle, so as to determine an abstract API, wherein the abstract API can be used for conveniently and simply directly carrying out node data transceiving without accessing source codes and working mechanism principles.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (7)

1. An external network card system for various user terminal devices comprises a wireless AP, an external network card and terminal devices; wherein,,
the external network card is used for receiving wireless signals sent by the wireless AP;
the terminal equipment is used for receiving and transmitting data of the external network card and comprises an internal preset APP, a driving module and a USB interface; wherein,,
the driving module is used for detecting the connection condition of the external network card and the USB interface based on preset driving software and determining a connection mode;
the driving module comprises a single network card connecting unit and a double network card connecting unit, the single network card connecting unit is used for executing a single network card connecting mode, the double network card connecting unit is used for executing a double network card connecting mode, wherein,
the single network card connection unit includes:
the single network card insertion identification subunit is used for automatically detecting the hardware type of the single network card through preset driving software when the single network card is inserted into the user terminal;
the single network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the single network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the single network card comprises computer information, hub information, network interface card information, wireless access point information and modem information;
the single network card data receiving and transmitting subunit is used for providing a socket interface for the initialized software layer through driving software according to the network equipment information of the single network card and establishing basic network connection for communication according to the socket interface; wherein,,
the basic network connection comprises a TCP connection and a UDP connection;
the single network card removing subunit is used for automatically deleting the network equipment information of the single network card by the driving software when the driving software detects that the single network card is removed from the equipment by a user;
the dual network card connection unit includes:
the double-network card insertion identification subunit is used for identifying whether the double-network card is inserted or not based on the driving software and respectively identifying the hardware types of the double-network card;
the dual network card creation subunit is used for initializing a software layer of the user terminal equipment and creating network equipment information of the dual network card when the types of the external network cards prestored in the hardware types are matched; wherein,,
the network equipment information of the double network cards comprises switch information, network bridge information, router information and gateway information;
the double-network-card data receiving and transmitting subunit is used for creating a virtual network card according to the network equipment information of the double network cards, providing a socket interface for the initialized software layer according to the virtual network card, and establishing basic network connection for data communication;
a dual network card removing subunit, configured to automatically delete network device information of the dual network card when the driver detects that the user removes the dual network card from the device,
the dual-network card connecting unit further comprises an aggregation node unit and a node receiving and transmitting unit; wherein,,
the sink node unit is used for acquiring a network node, determining the sink node according to the network node, and carrying out flow combination according to the sink node;
the node receiving and transmitting unit is used for respectively establishing sockets through the internal network card and the external network card based on preset driving software, and acquiring a plurality of data channels of a network layer through the sockets to realize data communication.
2. The external network card system for various user terminal devices according to claim 1, wherein the detecting the connection condition of the external network card and the USB interface comprises the following steps:
step 1: when an insertion response is generated on the user terminal device, automatically generating a reading instruction on the terminal device:
step 2: according to the reading instruction, reading the hardware type of the wireless network card through driving software preset in the user terminal equipment, and judging whether the hardware type of the wireless network card is matched with the type of the pre-stored external network card or not;
step 3: when the hardware type of the wireless network card is not matched with the type of the pre-stored external network card, directly exiting the operation step;
step 4: when the hardware type of the wireless network card is matched with the type of the pre-stored external network card, initializing an application software layer of the user terminal equipment, judging the connection condition of the external network card, and determining a judging result.
3. The external network card system for various types of user terminal equipment as claimed in claim 1, wherein the dual network card data transceiver subunit establishes a base network connection for data communication, comprising:
providing a special API for the application software layer according to the network equipment information of the double network card, and binding the double network card;
when the upper application software layer invokes the interface, creating a virtual network card according to the network equipment information of the double network cards;
acquiring a data message of a user, and determining uniform hash data of the data message according to the data message;
driving the hash data to the two physical network cards of the internal network card and the external network card through driving software according to the virtual network card;
and simultaneously, providing a socket interface for upper-layer application based on the virtual network card, and establishing basic network connection for data communication according to the socket interface.
4. The external network card system for various types of user terminal equipment according to claim 1, wherein the sink node unit comprises:
deploying a convergence node subunit: the method comprises the steps of acquiring network nodes based on a network used for terminal equipment and a wireless sensor network, and deploying sink nodes according to the network nodes; wherein,,
the sink node senses, collects and processes specific information in a network coverage area in an easily-cooperated mode;
communication data subunit: the aggregation node is used for respectively establishing data communication with an external network card and an internal network card of a user according to the aggregation node and determining communication data;
flow combining subunit: and the traffic merging module is used for merging the traffic of the communication data according to the sink node.
5. The external network card system for various types of user terminal equipment according to claim 4, wherein the node transceiver unit comprises:
building a socket subunit: the method comprises the steps of respectively establishing sockets for an external network card and a built-in network card based on driving software; wherein,,
the socket comprises a first socket and a second socket;
abstract API determining subunit: the method comprises the steps of acquiring an application program interface, packaging the first socket and the second socket in the application program interface, and determining an abstract API;
node data receiving and transmitting subunit: the method is used for calling the abstract API through an application software layer and carrying out node data receiving and transmitting according to the abstract API; wherein,,
the node data transceiver is used for communicating with the sink node through two sockets respectively.
6. The external network card system for each type of user terminal equipment according to claim 4, wherein the deployment aggregation node subunit deploys the aggregation node, including:
acquiring a convergence demand, and determining the characteristics of a data source according to the convergence demand;
determining data characteristics according to the data source characteristics, and describing a convergence structure; wherein,,
the convergence structure comprises a network topology structure, a network transmission characteristic structure and a data convergence destination structure;
and acquiring a network node of the wireless sensor network according to the convergence structure, and determining the convergence node according to the network node and a data object of the sensing terminal equipment.
7. The external network card system for each type of user terminal equipment according to claim 4, wherein the node data transceiving subunit invokes an abstract API, and performs node data transceiving according to the abstract API, comprising:
step A1: obtaining connection data generated when the double network card is connected with the user terminal, carrying out Fourier transformation on the connection data, and determining discrete connection data;
Figure FDA0004106916500000051
wherein F (U (T, X), V (T, X)) represents discrete connection data, U (T, X) represents initial data of an application layer of the user terminal when the dual network card is not connected to the user terminal, (T, X) represents initial data X at time T, T represents time of the initial data, X represents initial data, V (T, X) represents generated connection data of the application layer of the user terminal when the dual network card is connected to the user terminal, (T, X) represents connection data X at time T, X represents connection data generated when the dual network card is connected to the user terminal, T represents time when the dual network card is connected to the user terminal, j represents dirigible condition;
step A2: storing the discrete connection data into a network equipment characteristic database through an application software layer, and extracting characteristic data of the double network cards:
Figure FDA0004106916500000052
wherein,,
Figure FDA0004106916500000053
representing the discrete connection data training set when the dual network card is connected with the user terminal, wherein N represents the number of the discrete connection data in the training set, and the vector theta represents the parameters of the discrete connection data training set, namely the I theta I p P-norm representing vector θAs constraint scale of discrete connection data training set, gamma represents loss factor, and omega represents dynamic factor of vector theta;
step A3: and packaging the characteristic data vector in a preset API interface, determining an abstract API, and carrying out node data transceiving according to the abstract API.
CN202110232009.5A 2021-03-02 2021-03-02 Method for external network card application of user terminal equipment Active CN113037737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110232009.5A CN113037737B (en) 2021-03-02 2021-03-02 Method for external network card application of user terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110232009.5A CN113037737B (en) 2021-03-02 2021-03-02 Method for external network card application of user terminal equipment

Publications (2)

Publication Number Publication Date
CN113037737A CN113037737A (en) 2021-06-25
CN113037737B true CN113037737B (en) 2023-07-04

Family

ID=76465948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110232009.5A Active CN113037737B (en) 2021-03-02 2021-03-02 Method for external network card application of user terminal equipment

Country Status (1)

Country Link
CN (1) CN113037737B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490208B (en) * 2021-06-28 2023-11-28 锐迪科创微电子(北京)有限公司 Connection method, configuration method, device, medium and equipment of wireless access point
CN113835783A (en) * 2021-09-24 2021-12-24 青岛海信移动通信技术股份有限公司 Method and device for controlling start of Wi-Fi network card and terminal equipment
CN115001522B (en) * 2022-05-19 2024-01-23 北京华信傲天网络技术有限公司 Equipment with built-in fifth generation mobile communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010057380A1 (en) * 2008-11-20 2010-05-27 华为终端有限公司 A method, device and data card for recovering from the abnormity of the data card
CN103019780A (en) * 2012-12-04 2013-04-03 中国联合网络通信集团有限公司 Webpage access method, equipment and system based on USB (Universal Serial Bus) network card
CN104216728A (en) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 Method for connecting USB network card, USB network card and PC
CN111130930A (en) * 2019-12-16 2020-05-08 杭州迪普科技股份有限公司 Dual-network card detection method and device
CN112055363A (en) * 2020-09-14 2020-12-08 深圳市信锐网科技术有限公司 Radio frequency extension method, device, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010057380A1 (en) * 2008-11-20 2010-05-27 华为终端有限公司 A method, device and data card for recovering from the abnormity of the data card
CN103019780A (en) * 2012-12-04 2013-04-03 中国联合网络通信集团有限公司 Webpage access method, equipment and system based on USB (Universal Serial Bus) network card
CN104216728A (en) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 Method for connecting USB network card, USB network card and PC
CN111130930A (en) * 2019-12-16 2020-05-08 杭州迪普科技股份有限公司 Dual-network card detection method and device
CN112055363A (en) * 2020-09-14 2020-12-08 深圳市信锐网科技术有限公司 Radio frequency extension method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Construction, interfacing, and application of an 8255-based programmable peripheral interface card;A.Zargari;《Proceedings: Electrical Insulation Conference and Electrical Manufacturing and Coil Winding Conference (Cat. No.01CH37264)》;20020806;全文 *
VxWorks环境下网卡驱动与双网卡冗余设计;刘锡祥等;《工业控制计算机》;20080825(第08期);全文 *

Also Published As

Publication number Publication date
CN113037737A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113037737B (en) Method for external network card application of user terminal equipment
TWI244295B (en) Method and system for simulating multiple independent client devices in a wired or wireless network
CN106789526B (en) method and device for connecting multiple system networks
CN103281752A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN101299674B (en) Method, system and management platform for implementing terminal identification
CN103281759A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN111586784B (en) Data transmission method and device
CN111901387B (en) Connection method and device of cloud special line
CN104144149A (en) Transmission processing method and system for data of sensing Internet of Things and gateway
CN111464419B (en) Data transmission control method based on bus network communication
CN107086934A (en) The collocation method and gateway of networking equipment
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN110430574B (en) Terminal application activation method, device, system and storage medium
CN100512168C (en) Apparatus for connecting wireless network with at least one other network
CN106454903A (en) Method and device for accessing smart terminal equipment into Internet
CN113194494B (en) Air interface resource control method, device, network side equipment and terminal
CN103428697A (en) Network access method, device and system based on CAPWAP protocol
CN110337103A (en) A kind of connectionless data hided transmission method based on 802.11 agreements
CN103581138A (en) Data transmission method and device
CN103796191A (en) Method, device and terminal for sending data to user terminal
KR101264951B1 (en) Device for intercepting and analyzing traffic for a terminal
CN103096433A (en) Service gateway choosing method and system of terminal group
WO2023065708A1 (en) Information processing method, system, and apparatus
CN102932208A (en) Site monitoring method and device

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