A clear way to make DWM-156 possible.
1. add usbfs or put it in the /etc/fstab
mount -t usbfs none /proc/bus/usb
fstab:
none /proc/bus/usb usbfs defaults 0 0
2. modem switch
usb_modeswitch -v 0x07d1 -p 0xa804 -m 0x01 -M 5553424312345678000000000000061b000000020000000000000000000000
3. insmod usbserial.ko
insmod /lib/modules/2.6.30/kernel/drivers/usb/serial/usbserial.ko vendor=0x07d1 product=0x7e11
In this stage, /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2 should be appearing.
4. Unlock PIN or not. (xxxx is the PIN code.)
echo -e "AT+CPIN=xxxx\r" > /dev/ttyUSB2
5. /etc/ppp/peers/3g
noauth
nodetach
debug
lock
crtscts
/dev/ttyUSB3
115200
noipdefault
mtu 1500
mru 1500
usepeerdns
local
noccp
refuse-chap
lcp-echo-interval 20
lcp-echo-failure 3
defaultroute
novj
nobsdcomp
nopcomp
noaccomp
nodeflate
linkname 3g
connect "/bin/chat -v -f /etc/ppp/3g_chat"
disconnect '/bin/chat -v -t15 ABORT "BUSY" ABORT "ERROR" ABORT "DIALTONE" "" "\K" "" "ATH" '
6. /etc/ppp/3g_chat
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'ERROR'
TIMEOUT 10
'' AT
OK AT+CGDCONT=1,"IP","internet",""
OK ATDT*99#
CONNECT ""
7. pppd call 3g
Then ppp0 should appear.
PS: The ISP is "Chunghwa".
沒有留言:
張貼留言