удачный опыт соединения с Siemens ME75 - USB кабель PL-2303
прошивка WL500gpv2-1.9.2.7-d-r261M.trx с поддержкой MPCS
forum:
http://wl500g.info/showthread.php?t=17641
сама прошивка:
http://rapidshare.de/files/46978182/DlinkDIR-320-1.9.2.7-d-261-3g-mpcs_.tar.bz2.html
оператор Байкалвестком (Иркутск)
файл dialup
---------------------------------------
debug
/dev/usb/tts/0
115200
crtscts
noipdefault
ipcp-accept-local
lcp-echo-interval 60
lcp-echo-failure 5
usepeerdns
noauth
persist
user 'bwc'
password 'bwc'
connect "/usr/sbin/chat -s -S -V -t 60 -f /tmp/ppp/dialup.chat 2>/tmp/chat.log"
файл dialup.chat
---------------------------------------
'' 'AT'
'OK' 'ATH'
'OK' 'ATE1'
'OK' 'AT+CGDCONT=1,"IP","inet.bwc.ru"'
TIMEOUT 60
'OK' 'ATD*99***1#'
'CONNECT' ''
из телнета
----------------------------------------
(none) login: admin
Password:
[admin@(none) root]$ insmod usbserial
[admin@(none) root]$ insmod pl2303
[admin@(none) root]$ pppd nodetach call dialup
...проходит около 1 минуты
Script /usr/sbin/chat -s -S -V -t 60 -f /tmp/ppp/dialup.chat 2>/tmp/chat.log finished (pid 121), status = 0x3
Connect script failed
...проходит еще 1 минута
Script /usr/sbin/chat -s -S -V -t 60 -f /tmp/ppp/dialup.chat 2>/tmp/chat.log finished (pid 143), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/usb/tts/0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x474f6af2> <pcomp> <accomp>]
rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0x474f6af2> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0x474f6af2> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x5919f17c><auth pap>]
sent [LCP ConfAck id=0x3 <asyncmap 0xa0000> <pcomp> <accomp> <magic 0x5919f17c><auth pap>]
sent [LCP EchoReq id=0x0 magic=0x474f6af2]
sent [PAP AuthReq id=0x1 user="bwc" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0x5919f17c]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C> <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 15 12 06 00 00 00 01 1a 04 78 00 18 04 78]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.254.25.176> <ms-dns1 81.18.112.50> <ms-dns2 81.18.113.2>]
sent [IPCP ConfReq id=0x3 <addr 10.254.25.176> <ms-dns1 81.18.112.50> <ms-dns2 81.18.113.2>]
rcvd [IPCP ConfAck id=0x3 <addr 10.254.25.176> <ms-dns1 81.18.112.50> <ms-dns2 81.18.113.2>]
local IP address 10.254.25.176
remote IP address 192.168.254.254
primary DNS address 81.18.112.50
secondary DNS address 81.18.113.2
Script /tmp/ppp/ip-up started (pid 148)
Script /tmp/ppp/ip-up finished (pid 148), status = 0x0
лог из Web роутера закладка Status & Log/System Log
----------------------------------------------------
Jan 1 08:01:00 kernel: usb.c: registered new driver serial
Jan 1 08:01:00 kernel: usbserial.c: USB Serial support registered for Generic
Jan 1 08:01:00 kernel: usbserial.c: USB Serial Driver core v1.4
Jan 1 08:01:09 kernel: usbserial.c: USB Serial support registered for PL-2303
Jan 1 08:01:09 kernel: usbserial.c: PL-2303 converter detected
Jan 1 08:01:09 kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Jan 1 08:01:09 kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver
Jan 1 08:01:28 pppd[126]: pppd 2.4.5 started by admin, uid 0
Jan 1 08:02:29 pppd[126]: Connect script failed <----------- первая попытка не удачная
Jan 1 08:03:03 pppd[126]: Serial connection established.
Jan 1 08:03:03 pppd[126]: Using interface ppp0
Jan 1 08:03:03 pppd[126]: Connect: ppp0 <--> /dev/usb/tts/0
Jan 1 08:03:05 pppd[126]: PAP authentication succeeded
Jan 1 08:03:08 pppd[126]: local IP address 10.254.7.73
Jan 1 08:03:08 pppd[126]: remote IP address 192.168.254.254
Jan 1 08:03:08 pppd[126]: primary DNS address 81.18.112.50
Jan 1 08:03:08 pppd[126]: secondary DNS address 81.18.113.2
Jan 1 08:03:08 dnsmasq[67]: read /etc/hosts - 2 addresses
Jan 1 08:03:08 dnsmasq[67]: using nameserver 81.18.113.2#53
Jan 1 08:03:08 dnsmasq[67]: using nameserver 81.18.112.50#53
Jan 1 08:03:09 Automatic IP: connected to ISP
May 4 14:52:13 ntp client: Synchronizing time with time.nist.gov ...
May 4 14:53:05 pppd[126]: Terminating on signal 2
May 4 14:53:05 pppd[126]: Connect time 20690270.0 minutes.
May 4 14:53:05 pppd[126]: Sent 270 bytes, received 394 bytes.
May 4 14:53:05 pppd[126]: Connection terminated.
May 4 14:53:05 dnsmasq[67]: read /etc/hosts - 2 addresses
May 4 14:53:05 dnsmasq[67]: using nameserver 81.18.113.2#53
May 4 14:53:05 dnsmasq[67]: using nameserver 81.18.112.50#53
May 4 14:53:05 Automatic IP: Disconnected
May 4 14:53:05 pppd[126]: Exit.