2013年1月29日 星期二
2012年8月14日 星期二
2012年7月25日 星期三
2012年6月26日 星期二
2012年6月19日 星期二
2011年12月14日 星期三
[3G] D-Link DWM-156
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".
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".
[3G] ppp-2.4.5
environment variable:
[ipv6]
LLLOCAL
LLREMOTE
BUNDLE
PEERNAME
ORIG_UID
PPPLOGNAME
PPPD_PID
IPLOCAL
IPREMOTE
DNS1
DNS2
USEPEERDNS
OLDIPLOCAL
OLDIPREMOTE
MACREMOTE
UID
DEVICE
SPEED
IFNAME
LINKNAME
CONNECT_TIME
BYTES_SENT
BYTES_RCVD
ip-pre-up:
* Pppd will now run /etc/ppp/ip-pre-up, if it exists, after creating
the ppp interface and configuring its IP addresses but before
bringing it up. This can be used, for example, for adding firewall
rules for the interface.
[ipv6]
LLLOCAL
LLREMOTE
BUNDLE
PEERNAME
ORIG_UID
PPPLOGNAME
PPPD_PID
IPLOCAL
IPREMOTE
DNS1
DNS2
USEPEERDNS
OLDIPLOCAL
OLDIPREMOTE
MACREMOTE
UID
DEVICE
SPEED
IFNAME
LINKNAME
CONNECT_TIME
BYTES_SENT
BYTES_RCVD
ip-pre-up:
* Pppd will now run /etc/ppp/ip-pre-up, if it exists, after creating
the ppp interface and configuring its IP addresses but before
bringing it up. This can be used, for example, for adding firewall
rules for the interface.
2011年12月13日 星期二
[3G] AT commands
"AT+COPS?": Which ISP.
"AT+CGMM": Model name
"AT+CPIN=xxxx": Unlock PIN.
手機 AT 指令集
http://www.360doc.com/content/06/0727/10/10450_165786.shtml
Sierra 320U
Sierra 320U with Telstra
AT commands
手機 AT 指令集
List of AT commands
"AT+CGMM": Model name
"AT+CPIN=xxxx": Unlock PIN.
手機 AT 指令集
http://www.360doc.com/content/06/0727/10/10450_165786.shtml
Sierra 320U
Sierra 320U with Telstra
AT commands
手機 AT 指令集
List of AT commands
訂閱:
文章 (Atom)