Hi , I am working on a Fox board. I am trying to connect a gprs mobile
phone (motorola v) to use its gprs modem; when i connect the phone to
the fox usb, the fox associates the driver cdc-acm on port ttyACM0; I
am using the demon pppd and chat whit this scripts paste in /etc/ppp/
ppp-start :
------------------------------------------------------
/usr/sbin/pppd file /etc/ppp/gprs-options
------------------------------------------------------
gprs-options :
------------------------------------------------------
dev/ttyACM0
115200
defaultroute
user "wind"
connect "/usr/sbin/chat -e -v -f /etc/ppp/gprs-connect"
disconnect "/usr/sbin/chat -f /etc/ppp/gprs-disconnect"
-------------------------------------------------------
gprs-connect :
-------------------------------------------------------
TIMEOUT 60
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO CARRIER'
'' 'AT'
OK AT+CGDCONT=1,"IP","internet.wind","0.0.0.0",0,0
OK ATD*99***1#
CONNECT ''
--------------------------------------------------------
gprs-disconnect :
--------------------------------------------------------
ABORT BUSY
ABORT ERROR
ABORT 'NO DIALTONE'
TIMEOUT 30
'' '+++\c'
SAY " + sending break"
'' 'ATH'
SAY "\n + dropping data connection"
OK 'AT+CGATT=0'
SAY "\n + disconnecting from GPRS"
OK '\c'
SAY "\n + disconnected."
----------------------------------------------------------
pap-secret :
-----------------------------------------------------------
'wind' * 'wind' *
-----------------------------------------------------------
this is what happen when I insert the command :# tail -f /var/log/messages
-----------------------------------------------------------------------------
Jan 1 00:37:48 axis pppd[245]: pppd 2.4.2b3 started by root, uid 0
Jan 1 00:37:49 axis chat[247]: timeout set to 60 seconds
Jan 1 00:37:49 axis chat[247]: abort on (BUSY)
Jan 1 00:37:49 axis chat[247]: abort on (ERROR)
Jan 1 00:37:49 axis chat[247]: abort on (NO CARRIER)
Jan 1 00:37:49 axis chat[247]: send (AT^M)
Jan 1 00:37:49 axis chat[247]: expect (OK)
Jan 1 00:37:49 axis chat[247]: AT^M^M
Jan 1 00:37:50 axis chat[247]: OK
Jan 1 00:37:50 axis chat[247]: -- got it
Jan 1 00:37:50 axis chat[247]: send
(AT+CGDCONT=1,"IP","internet.wind","0.0.0.0 ",0,0^M)
Jan 1 00:37:50 axis chat[247]: expect (OK)
Jan 1 00:37:51 axis chat[247]: ^M
Jan 1 00:37:51 axis chat[247]:
AT+CGDCONT=1,"IP","internet.wind","0.0.0.0",0,0^ M^M
Jan 1 00:37:51 axis chat[247]: OK
Jan 1 00:37:51 axis chat[247]: -- got it
Jan 1 00:37:51 axis chat[247]: send (ATD*99***1#^M)
Jan 1 00:37:51 axis chat[247]: expect (CONNECT)
Jan 1 00:37:51 axis chat[247]: ^M
Jan 1 00:37:51 axis chat[247]: ATD*99***1#^M^M
Jan 1 00:37:51 axis chat[247]: CONNECT
Jan 1 00:37:51 axis chat[247]: -- got it
Jan 1 00:37:51 axis chat[247]: send (^M)
Jan 1 00:37:51 axis pppd[245]: Serial connection established.
Jan 1 00:37:51 axis pppd[245]: Using interface ppp0
Jan 1 00:37:51 axis pppd[245]: Connect: ppp0 <--> /dev/ttyACM0
Jan 1 00:37:52 axis pppd[245]: Warning - secret file
/etc/ppp/pap-secrets has w orld and/or group access
Jan 1 00:37:52 axis pppd[245]: Warning - secret file
/etc/ppp/pap-secrets has w orld and/or group access
Jan 1 00:37:52 axis pppd[245]: PAP authentication succeeded
Jan 1 00:37:55 axis pppd[245]: local IP address 151.83.1.75
Jan 1 00:37:55 axis pppd[245]: remote IP address 192.168.100.101
---------------------------------------------------------------------------------------------------
and when i check the activetion of the PPP protocol whit the command:
#ifconfig
---------------------------------------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:40:8C:CD:00:00
inet addr:192.168.0.90 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1894 errors:0 dropped:0 overruns:0 frame:0
TX packets:1508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:170400 (166.4 KiB) TX bytes:215416 (210.3 KiB)
Interrupt:17 DMA chan:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2796 (2.7 KiB) TX bytes:2796 (2.7 KiB)
ppp0 Link encap:Point-Point Protocol
inet addr:151.83.1.75 P-t-P:192.168.100.101
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:40 (40.0 B) TX bytes:68 (68.0 B)
--------------------------------------------------------------------------------------------------
Now trying to connect through the web to the address assigned from the
network operetor (in this case 151.83.1.75) the FOX web server should
answer whit is defoult web page but i can´t but the IP address
assigned is not founded!!!!!
Can you help me!!!!!