Unlock instant, AI-driven research and patent intelligence for your innovation.

USB network card identification configuration method

A configuration method and network card technology, which are applied to program control devices, program loading/starting, etc., can solve problems such as complex processes, and achieve the effects of simplifying processes, reducing numbers, and saving code.

Active Publication Date: 2018-09-28
宋易霄
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to overcome the defect that a large amount of codes need to be written in the prior art, and the configuration file is required to make the process more complicated, and a method for identifying and configuring the USB network card is provided, which records the USB network card by using reference files information, and generate configuration files, which saves the amount of code written and simplifies the process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • USB network card identification configuration method
  • USB network card identification configuration method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0039] In this embodiment, at first, the get_usb_card_info function is called in the main function of the Linux system to obtain the USB device information before the USB device is converted.

[0040] Then obtain the default device information of the USB device before conversion, that is, obtain all system default USB device information from the / proc / bus / usb / devices file system of the Linux system, and find out the useful parameter information of the USB 3G network card device , and the device information of the USB 3G network card is saved in the system file.

[0041] Finally, add the code to read the vendorID and prodID of the USB 3G network card in the usb_mode_switch function, obtain the device information of the USB 3G network card again, and record the model of the USB 3G network card device.

[0042]Specifically, in t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a USB network card recognition and configuration method. According to the USB network card recognition and configuration method, when a USB network card is inserted, information of equipment without switching the USB network card is obtained, which kind of USB network card is judged through conditions including the obtained information and other parameters, evaluation is performed on an equipment name, a model number to be tested and default target information are added to a reference document, copied to the reference document through system call and transmitted into the model number of the equipment to be tested to obtain a configuration document, and system functions are called again to transmit the configuration document serving as parameters into a conversion function to switch. According to the USB network card recognition and configuration method, the reference document is used for recording the information of the USB network card and for generating the configuration document, so that a user does not need to add a large number of corresponding USB network card configuration documents. Therefore, the USB network card recognition and configuration method effectively saves written code amount and simplifies the procedure.

Description

technical field [0001] The invention relates to a method for identifying and configuring a USB (Universal Serial Bus) network card, in particular to a method for identifying and configuring a USB network card for a Linux system (a free and open-source powerful multi-user and multi-task operating system). Background technique [0002] Due to the wide variety of USB network cards, the three major telecom companies can be divided into: China Unicom WCDMA3G (Wideband Code Division Multiple Access third-generation communication technology) Internet data card, China Mobile TD 3G (Time Division Synchronous Code Division Multiple Access third-generation communication technology) Technology) Internet data card, China Telecom CDMA 3G (Code Division Multiple Access third-generation communication technology) Internet data card. According to the classification of manufacturers, it can be divided into many kinds. The AT command (modem command language) interface and data interface of the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 郑国松李晓明姚振之
Owner 宋易霄