joker_cro
01-28-2008, 07:16 AM
Hello!
I using m2m dev kit and attempt to run sms_ftp.c
With SMS all working fine but PPP connection failing...
Can anyone help me with PPP_serial GPRS modem connection...
ifconfig is:
ifconfig(,IF_PPP1
IFS_PPP_INIT,
IFS_PPP_SPEED, 115200L,
IFS_PPP_FLOWCONTROL, 1,
IFS_PPP_RTSPIN, PCDR, &PCDRShadow, 2,
IFS_PPP_CTSPIN, PCDR, 3,
IFS_PPP_SENDEXPECT, DIALUP_SENDEXPECT,
IFS_PPP_REMOTEAUTH, DIALUP_NAME, DIALUP_PASSWORD,
IFS_PPP_HANGUP, "ATH",
IFS_PPP_MODEMESCAPE, 1,
IFS_PPP_ACCEPTIP, 1,
IFS_PPP_ACCEPTDNS, 1,
IFS_DEBUG, 6,
IFS_UP,
IFS_END);
I get this:
Bring up IF_PPP1
CHAT: sending 'AT'
CHAT: expecting 'OK'
CHAT: found it!
CHAT: sending 'ATDT*99#'
CHAT: expecting 'CONNECT'
CHAT: found it!
CHAT: end of script
PPP: sending LCP config i/f 0
PPPLINK: serial errors for i/f 0: 0x2
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 14)
FF 03 C0 21 04 01 00 0A 05 06 0F A4 FA 00 ...!..........
PPP: got LCP packet code=0x04 id=1 i/f 0
PPP: LCP reject OK i/f 0
PPP: sending LCP config i/f 0
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 22)
FF 03 C0 21 02 02 00 12 01 04 02 58 02 06 00 00 ...!.......X....
00 00 07 02 08 02 ......
PPP: got LCP packet code=0x02 id=2 i/f 0
PPP: received LCP ACK i/f 0. local_acked = 1
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 26)
FF 03 C0 21 01 01 00 16 01 04 05 DC 02 06 00 00 ...!............
00 00 07 02 08 02 03 04 C0 23 .........#
PPP: got LCP packet code=0x01 id=1 i/f 0
PPP: LCP config request i/f 0
PPP: sending LCP ACK i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: PAP too many retries i/f 0
IF_PPP1: FAILED
Regards
I using m2m dev kit and attempt to run sms_ftp.c
With SMS all working fine but PPP connection failing...
Can anyone help me with PPP_serial GPRS modem connection...
ifconfig is:
ifconfig(,IF_PPP1
IFS_PPP_INIT,
IFS_PPP_SPEED, 115200L,
IFS_PPP_FLOWCONTROL, 1,
IFS_PPP_RTSPIN, PCDR, &PCDRShadow, 2,
IFS_PPP_CTSPIN, PCDR, 3,
IFS_PPP_SENDEXPECT, DIALUP_SENDEXPECT,
IFS_PPP_REMOTEAUTH, DIALUP_NAME, DIALUP_PASSWORD,
IFS_PPP_HANGUP, "ATH",
IFS_PPP_MODEMESCAPE, 1,
IFS_PPP_ACCEPTIP, 1,
IFS_PPP_ACCEPTDNS, 1,
IFS_DEBUG, 6,
IFS_UP,
IFS_END);
I get this:
Bring up IF_PPP1
CHAT: sending 'AT'
CHAT: expecting 'OK'
CHAT: found it!
CHAT: sending 'ATDT*99#'
CHAT: expecting 'CONNECT'
CHAT: found it!
CHAT: end of script
PPP: sending LCP config i/f 0
PPPLINK: serial errors for i/f 0: 0x2
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 14)
FF 03 C0 21 04 01 00 0A 05 06 0F A4 FA 00 ...!..........
PPP: got LCP packet code=0x04 id=1 i/f 0
PPP: LCP reject OK i/f 0
PPP: sending LCP config i/f 0
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 22)
FF 03 C0 21 02 02 00 12 01 04 02 58 02 06 00 00 ...!.......X....
00 00 07 02 08 02 ......
PPP: got LCP packet code=0x02 id=2 i/f 0
PPP: received LCP ACK i/f 0. local_acked = 1
PPP: got packet on i/f:0 protocol:0xc021
PPP: incoming packet contents: (length = 26)
FF 03 C0 21 01 01 00 16 01 04 05 DC 02 06 00 00 ...!............
00 00 07 02 08 02 03 04 C0 23 .........#
PPP: got LCP packet code=0x01 id=1 i/f 0
PPP: LCP config request i/f 0
PPP: sending LCP ACK i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: sending PAP auth i/f 0
PPP: PAP too many retries i/f 0
IF_PPP1: FAILED
Regards