LINUX.ORG.RU

gprs djuice.


0

0

мотор е398, опсос - djuice.
конфиг:
ipcp-accept-local
ipcp-accept-remote 
noipdefault
debug 
usepeerdns 
mtu 576
#novj 
#nobsdcomp 
#novjccomp 
nopcomp 
#noaccomp
noauth
maxfail 0
holdoff 3
#persist
defaultroute
/dev/ttyACM0 115200
logfile /var/log/pppd.gprs
connect "/usr/sbin/chat -v -f /etc/ppp/gprs-script"

скрипт:
ABORT BUSY 
ABORT 'NO CARRIER' 
ABORT VOICE 
ABORT 'NO DIALTONE' 
ABORT 'NO DIAL TONE' 
ABORT 'NO ANSWER' 
ABORT DELAYED
TIMEOUT 60
'' 'ATZ;AT+CGDCONT=1,"IP","www.djuice.com.ua"'
OK-AT-OK "ATDT*99#"
CONNECT \d\c

лог:
Jan 13 21:56:19 offline pppd[4925]: pppd 2.4.4 started by muromec, uid 1000
Jan 13 21:56:22 offline pppd[4925]: Serial connection established.
Jan 13 21:56:22 offline pppd[4925]: using channel 3
Jan 13 21:56:22 offline pppd[4925]: Using interface ppp0
Jan 13 21:56:22 offline pppd[4925]: Connect: ppp0 <--> /dev/ttyACM0
Jan 13 21:56:23 offline pppd[4925]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xcb1804f4> <accomp>]
Jan 13 21:56:23 offline pppd[4925]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xcb1804f4> <accomp>]
Jan 13 21:56:23 offline pppd[4925]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1412344> <pcomp> <accomp>]
Jan 13 21:56:23 offline pppd[4925]: No auth is possible
Jan 13 21:56:23 offline pppd[4925]: sent [LCP ConfRej id=0x1 <auth pap> <pcomp>]
Jan 13 21:56:23 offline pppd[4925]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x1412352> <accomp>]
Jan 13 21:56:23 offline pppd[4925]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x1412352> <accomp>]
Jan 13 21:56:23 offline pppd[4925]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Jan 13 21:56:23 offline pppd[4925]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 
0.0.0.0>]
Jan 13 21:56:23 offline pppd[4925]: rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jan 13 21:56:23 offline pppd[4925]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Jan 13 21:56:23 offline pppd[4925]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Jan 13 21:56:23 offline pppd[4925]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 13 21:56:24 offline pppd[4925]: rcvd [LCP TermReq id=0x3 05 00 00 0a 00 00 00 00 00 00]
Jan 13 21:56:24 offline pppd[4925]: LCP terminated by peer (^E^@^@^J^@^@^@^@^@^@)
Jan 13 21:56:24 offline pppd[4925]: sent [LCP TermAck id=0x3]
Jan 13 21:56:24 offline pppd[4925]: Hangup (SIGHUP)
Jan 13 21:56:24 offline pppd[4925]: Modem hangup
Jan 13 21:56:24 offline pppd[4925]: Connection terminated.
Jan 13 21:56:25 offline pppd[4925]: Exit.

гугль по ^E не ищет сцуко.

со старой трубой (c350) и тем же конфигом все работало, но давно
☆☆

колдовство. с таким скриптом работает:

TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
' \rAT
TIMEOUT 12
OK ATH
OK ATE1
OK AT+CGDCONT=1,"IP","www.djuice.com.ua"
OK ATD*99***1#
CONNECT

Muromec ☆☆
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.