CN102612053A - Method and system for realizing multi-card dialing by automatically detecting USB modem network mode - Google Patents

Method and system for realizing multi-card dialing by automatically detecting USB modem network mode Download PDF

Info

Publication number
CN102612053A
CN102612053A CN2012100436384A CN201210043638A CN102612053A CN 102612053 A CN102612053 A CN 102612053A CN 2012100436384 A CN2012100436384 A CN 2012100436384A CN 201210043638 A CN201210043638 A CN 201210043638A CN 102612053 A CN102612053 A CN 102612053A
Authority
CN
China
Prior art keywords
usb modem
modem
usb
dialing
facility information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100436384A
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.)
SHENZHEN HD VIDEO TECHNOLOGY DIGITAL Co Ltd
Original Assignee
SHENZHEN HD VIDEO TECHNOLOGY DIGITAL Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN HD VIDEO TECHNOLOGY DIGITAL Co Ltd filed Critical SHENZHEN HD VIDEO TECHNOLOGY DIGITAL Co Ltd
Priority to CN2012100436384A priority Critical patent/CN102612053A/en
Publication of CN102612053A publication Critical patent/CN102612053A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a system for realizing multi-card dialing by automatically detecting a USB (Universal Serial Bus) modem network mode. The method comprises the following steps: acquiring a USB modem device information file supported by a system and automatically detecting the in-place state of the USB modem; if the USB modem is in place, reading corresponding USB modem device information and matching the same with the USB modem device information file; determining an in-place USB modem network mode and the modem serial port number thereof; and connecting a script corresponding to Shell by means of system function in Linux to realize PPP (Point-to-Point) dialing. The system comprises an inquiry detection module, a matching module, an internal processing module and a configuration dialing module; therefore, automatic management of a 3G (3-Generation) network dialing access device is realized.

Description

Automatically detect USB modem network schemer and realize the method and system of many card dialing
Technical field
The present invention relates to PPP dial technology field, particularly relate to the method and system that automatic detection USB modem network schemer is realized many card dialing.
Background technology
Through country's vigorously supporting in recent years, the 3G network coverage rate of China is more and more wider, in big and medium-sized cities and the surrounding area all have cloth to build, its theoretical bandwidth is more than 2Mbps.In field of video transmission; To video delivery quality and stable, in view of 3G network is merely able to accomplish the responsibility of " transmitting as far as possible ", in case the user of 3G access is many than higher requirement; Data quantity transmitted is big; Then single user's available bandwidth descends greatly, and single user has at any time the possibility of broken string, has a strong impact on the quality of video transmission.
Three kinds of existing 3G technology, the bandwidth of TD-SCDMA is less, seldom adopts the big data on flows of this technical transmission, generally adopts WCDMA and CDMA-2000 as data transfer means.If adopt WCDMA and CDMA-2000 to transmit same data flow simultaneously, will increase transmission bandwidth and stability., often need the modem of two kinds of standards be had Internet access by dialing for this reason, and need these processes of having Internet access by dialing of cover Automatic Program management at same system.
The present invention is in order to alleviate the problems referred to above, and adopting automatically, detection USB modem device network pattern realizes that many cards dial up on the telephone, and solve the automatic management that modem networks effectively.
Summary of the invention
The objective of the invention is in order to provide a kind of accurate, quick, practical automatic detection USB modem network schemer to realize the method for many card dialing.
Another object of the present invention provides the system that a kind of automatic detection USB modem network schemer is realized many card dialing.
The technical solution adopted for the present invention to solve the technical problems is:
Automatically detect USB modem network schemer and realize the method for many card dialing, may further comprise the steps:
S01, gather the USB modem facility information file that linux system is supported, detect the state on the throne of USB modem automatically;
S02, then read corresponding USB modem facility information, and be complementary with USB modem facility information file if USB modem is on the throne;
S03, the network schemer of confirming USB modem on the throne and its modem serial ports port numbers;
S04, the Shell script that utilizes system function among the Linux to connect corresponding 3G standard are realized the PPP dialing.
Further, the content of said USB modem facility information file storage comprises producer number, model, network schemer and the modem serial ports flag bit of modem equipment.
Further, said PPP dialing comprises the dialing of EVDO and two kinds of network formats of WCDMA.
Automatically detect USB modem network schemer and realize the system of many card dialing, comprise with lower module:
The inquiry detection module is used to gather the USB modem facility information file that linux system is supported, detects the state on the throne of USB modem automatically;
Matching module is used for then reading corresponding USB modem facility information if USB modem is on the throne, and is complementary with USB modem facility information file;
The inter-process module is used for confirming the network schemer and its modem serial ports port numbers of USB modem on the throne;
The configuration dial module, the Shell script that is used for utilizing Linux system function to connect corresponding 3G standard is realized the PPP dialing.
Beneficial effect of the present invention: the present invention detects the method use apparatus for establishing message file that USB modem network schemer is realized many card dialing automatically; Through inquiring about the information of confirming USB device on the throne; And mate with the facility information file; Utilize the system function to realize the PPP dialing at last, realize the have Internet access by dialing automatic management of equipment of 3G network.
Another beneficial effect of the present invention: the present invention detects USB modem network schemer automatically and realizes that the system of many card dialing uses the apparatus for establishing message file; Through inquiring about the information of confirming USB device on the throne; And mate with the facility information file; Utilize the system function to realize the PPP dialing at last, realize the have Internet access by dialing automatic management of equipment of 3G network.
Description of drawings
Be described further below in conjunction with the accompanying drawing specific embodiments of the invention:
Fig. 1 is that the present invention detects the method flow diagram that USB modem network schemer is realized many card dialing automatically;
Fig. 2 is that the present invention detects the method USB modem facility information file memory format figure that USB modem network schemer is realized many card dialing automatically;
Fig. 3 is that the present invention detects USB modem network schemer automatically and realizes the method query facilities of the many card dialing flow chart that dials up on the telephone;
Fig. 4 is that the present invention detects the system module figure that USB modem network schemer is realized many card dialing automatically.
Embodiment
With reference to Fig. 1, detect the method that USB modem network schemer is realized many card dialing automatically, may further comprise the steps:
S01, gather the USB modem facility information file that linux system is supported, detect the state on the throne of USB modem automatically;
S02, then read corresponding USB modem facility information, and be complementary with USB modem facility information file if USB modem is on the throne;
S03, the network schemer of confirming USB modem on the throne and its modem serial ports port numbers;
S04, the Shell script that utilizes system function among the Linux to connect corresponding 3G standard are realized the PPP dialing.
Further as preferred embodiment, said PPP dialing comprises the dialing of EVDO and two kinds of network schemers of WCDMA.
With reference to Fig. 2, further as preferred embodiment, the content of said USB modem facility information file storage comprises producer number, model, network schemer and the modem serial ports flag bit of modem equipment.Detailed process is: search the USB modem information that using system is supported, number confirm its network schemer and modem serial ports flag bit with model by fixing producer.As different producer number, perhaps different model is, is that stored information is arranged by delegation with the form of Fig. 2.
With reference to Fig. 3, further as preferred embodiment, the query facility of the present invention flow process that dials up on the telephone:
The catalogue of initialization USB device file; According to the naming rule scanning USB catalogue of USB, confirm whether corresponding USB port has USB device on the throne, when the time on the throne; Read idVendor and idProduct fileinfo under this usb file on the throne; Otherwise, restart to scan the USB catalogue, mate with the USB modem facility information file that has disposed then.When mating (the usb file information that reads is in support list) with message file; Read the content of usb file information; Confirm network schemer and Modem serial ports flag bit that it is corresponding, otherwise, restart to scan the USB catalogue; Then confirm the modem serial ports port numbers ttyUSBx of this USB modem through the information of Modem serial ports flag bit; At last, through selecting corresponding network schemer, use the network schemer Shell script of the correspondence of system function call configuration to realize the pppd dialing.
With reference to Fig. 4, detect the system that USB modem network schemer is realized many card dialing automatically, comprise with lower module:
The inquiry detection module is used to gather the USB modem facility information file that linux system is supported, detects the state on the throne of USB modem automatically;
Matching module is used for then reading corresponding USB modem facility information if USB modem is on the throne, and is complementary with USB modem facility information file;
The inter-process module is used for confirming the network schemer and its modem serial ports port numbers of USB modem on the throne;
The configuration dial module, the Shell script that is used for utilizing Linux system function to connect corresponding 3G standard is realized the PPP dialing.
Certainly; The present invention is not limited to above-mentioned execution mode; Those of ordinary skill in the art also can make equivalent variations or replacement under the prerequisite of spirit of the present invention, modification that these are equal to or replacement all are included in the application's claim institute restricted portion.

Claims (4)

1. detect USB modem network schemer automatically and realize the method for many card dialing, it is characterized in that: may further comprise the steps:
S01, gather the USB modem facility information file that linux system is supported, detect the state on the throne of USB modem automatically;
S02, then read corresponding USB modem facility information, and be complementary with USB modem facility information file if USB modem is on the throne;
S03, the network schemer of confirming USB modem on the throne and its modem serial ports port numbers;
S04, the Shell script that utilizes system function among the Linux to connect corresponding 3G standard are realized the PPP dialing.
2. automatic detection USB modem network schemer according to claim 1 is realized the methods of many card dialing, it is characterized in that: the content of said USB modem facility information file storage comprises producer number, model, network schemer and the modem serial ports flag bit of modem equipment.
3. automatic detection USB modem network schemer according to claim 1 is realized the method for many card dialing, it is characterized in that: said PPP dialing comprises the dialing of EVDO and two kinds of network formats of WCDMA.
4. detect USB modem network schemer automatically and realize the system of many card dialing, it is characterized in that: comprise with lower module:
The inquiry detection module is used to gather the USB modem facility information file that linux system is supported, detects the state on the throne of USB modem automatically;
Matching module is used for then reading corresponding USB modem facility information if USB modem is on the throne, and is complementary with USB modem facility information file;
The inter-process module is used for confirming the network schemer and its modem serial ports port numbers of USB modem on the throne;
The configuration dial module, the Shell script that is used for utilizing Linux system function to connect corresponding 3G standard is realized the PPP dialing.
CN2012100436384A 2012-02-24 2012-02-24 Method and system for realizing multi-card dialing by automatically detecting USB modem network mode Pending CN102612053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100436384A CN102612053A (en) 2012-02-24 2012-02-24 Method and system for realizing multi-card dialing by automatically detecting USB modem network mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100436384A CN102612053A (en) 2012-02-24 2012-02-24 Method and system for realizing multi-card dialing by automatically detecting USB modem network mode

Publications (1)

Publication Number Publication Date
CN102612053A true CN102612053A (en) 2012-07-25

Family

ID=46529147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100436384A Pending CN102612053A (en) 2012-02-24 2012-02-24 Method and system for realizing multi-card dialing by automatically detecting USB modem network mode

Country Status (1)

Country Link
CN (1) CN102612053A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375163A (en) * 2016-08-29 2017-02-01 安徽皖通邮电股份有限公司 High-speed PPP implementation method for wireless data card in Linux system
CN111124726A (en) * 2019-12-09 2020-05-08 上海移远通信技术股份有限公司 Method and device for detecting abnormity of opened modem port

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483906A (en) * 2009-02-10 2009-07-15 深圳华为通信技术有限公司 Method, system and apparatus for access network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483906A (en) * 2009-02-10 2009-07-15 深圳华为通信技术有限公司 Method, system and apparatus for access network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭海文: "基于嵌入式Linux的3G技术的应用和研究", 《电脑知识与技术》, 31 July 2010 (2010-07-31) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375163A (en) * 2016-08-29 2017-02-01 安徽皖通邮电股份有限公司 High-speed PPP implementation method for wireless data card in Linux system
CN106375163B (en) * 2016-08-29 2019-04-12 安徽皖通邮电股份有限公司 The high speed PPP implementation method of wireless data card on a kind of linux system
CN111124726A (en) * 2019-12-09 2020-05-08 上海移远通信技术股份有限公司 Method and device for detecting abnormity of opened modem port
CN111124726B (en) * 2019-12-09 2024-01-26 上海移远通信技术股份有限公司 Method and device for detecting abnormality of open modem port

Similar Documents

Publication Publication Date Title
CN101808182B (en) Method, terminal and system for uploading pictures
CN104994563B (en) A kind of method for network access and mobile communication terminal
AU2011360633B2 (en) Methods and apparatus for transmitting data
CN101582861B (en) Method of IM specific customer service call, as well as server, client and system thereof
CN102036350A (en) Protocol processing method for multi-sim terminal and apparatus for multi-sim terminal
CN103517375B (en) A kind of to multiple mobile equipment identification, the method for communication and device
CN103281799A (en) Network connection switching method based on mobile phone hot spots and mobile phone
US20190373446A1 (en) System, method, and apparatus for realizing a virtual sim card
CN104640096A (en) Data transmission method and device as well as terminal
CN103856411A (en) Switching system connected with UART interface of router
CN102612053A (en) Method and system for realizing multi-card dialing by automatically detecting USB modem network mode
CN105163171A (en) File transmission method between set top box and mobile terminal and system
CN101902705A (en) Method for automatically changing network and multimedia message accounts along with SIM cards of different operators
CN103002127A (en) Mobile terminal and method for processing link application thereof
US20090117878A1 (en) Multimedia data format conversion and transfer
US8451993B2 (en) Dial-up connection method and device of mobile data terminal
CN101184306A (en) Mobile phone survey report and system for signaling data collection, process and correlation analysis
CN105208055B (en) A kind of method for downloading software and device
CN101945501A (en) Method and device for realizing SIM card sharing of convergence terminal
CN203482350U (en) Digital television receiving device
CN101984425B (en) Data card, system and method capable of supporting television function hot plugging
CN101557579A (en) Forensic device of OTA application data and forensic method
CN204392305U (en) A kind of DTU data service system based on GPRS communication
CN101873689A (en) Mobile terminal and method of multiplex packet switching service
CN105049519A (en) Message routing method and system base on SOAP protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120725