This article is reproduced from; http://blog.csdn.net/zqixiao_09/article/details/52506812
Drive section:
1.kernle/drivers/usb/serial/option.c structure array static struct usb_device_id option_ids[] added vid and PID added to the product
{Usb_device (0x1c9e, 0x9e00)}//u5300v/c7500 EVDO
{Usb_device (0x1c9e, 0x9603)}//6300v/u7500 WCDMA
{Usb_device (0x1c9e, 0X9B05)}//U8300 LTE
2. If dial-up Internet is configured after Ppp,make Menuconfig
Device Drivers--->
-*-network Device Support--->
{*}PPP (Point-to-Point Protocol) support
......
[*] PPP support for async serial ports
[*] PPP support for sync TTY ports
......
Generally select the above, if more PPP services are needed, PPP correlation is selected.
......
3. Configure the USB MODEM
Device Drivers--->
[*] USB Support--->
[*] USB Serial conerter Support--->
[*] USB Generic Serial Driver
......
[*] USB driver for GSM and CDMA modems
......
Recompile the kernel. After the device loads properly, you will see a ttyusb (0,1,2,-,-) map after entering the command "ls/dev/ttyusb*".
4. Module Pid&vid and corresponding business port assignment
u6300v/u7500:vid_1c9e pid_9603 ttyUSB1 is at Port ttyUSB2 Modem port;
c5300v/c7500:vid_1c9e pid_9e00 ttyUSB3 is at Port ttyUSB0 Modem port;
u8300:vid_1c9e pid_9b05 ttyUSB2 is at Port ttyUSB1 Modem port;
System Application Section:
First, using the modem port, PPP dialing method
1, at the port is mainly used for network information query, voice services, SMS, etc.
2, modem port for data services, through at the port to check the network Registration network normal and then initiate dialing processing;
3, the dial script mainly has two configuration files, take WCDMA as an example:
A, in/ETC/PPP/PEERS/WCDMA:
/dev/ttyusb2
115200
MRU 1280
MTU 1280
Nodetach
Noauth
Debug
Nocrtscts
Nocdtrcts
Dump
Defaultroute
Usepeerdns
Novj
Novjccomp
Noipdefault
Ipcp-accept-local
Ipcp-accept-remote
Connect-delay 5000
Connect '/usr/sbin/chat-s-v-f/etc/ppp/chat/wcdma-connect-chat '
B,/etc/ppp/chat/wcdma-connect-chat
TIMEOUT 15
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO Dialtone"
ABORT "NO CARRIER"
TIMEOUT 40
"' \rat
Ok at+cgdcont=1, "IP", "3GNET"
OK atdt*99***1#
CONNECT '
Perform a WCDMA file dialing.
Note: If it is a EVDO module, the parameters in a file are
User Card
Password card;
If it is an LTE module, the Cgdcont of the B file is set up in two ways, i.e.
Ok at+cgdcont=1, "IP", "CMNET"
Ok at+cgdcont=2, "IP", "CMNET"
Hardware manual for the corresponding module "XXX Module hardware interface manual _2.x. In the "USB Interface" section of the PDF.
"The Linux system under the dial-up Internet process" is also described in detail. Please refer to the appropriate documentation
Second, LTE module NDIS dialing Method
LTE module provides the network port NDIS dialing method, because the operation method is more complex, the Dragon has already provided the dialing code for this dialing method, facilitates the customer to transplant, and has done the detailed explanation to its operation, the concrete may refer to:
document A:"Linux QMI NDIS dialing API description. pdf"
Document B:"description of NDIS compilation and usage in embedded Linux systems. pdf"
Please contact the technical interface to obtain the relevant documentation.
Long Shang 3G, 4G module embedded Linux system instructions for use "Turn"