Hi I plan to use lwIP to transmit GPS coordinates through GPRS on ARM architecture. I haven't found any gprs examples so I worte my mine for PC, but it doesn't work. I don't get answer to IPCP, Configure-Request messages.
IPCP: timeout resending Config-Request state=6 (LS_REQSENT) After the timeout it resends 10 times and gives up. Here is my source code based on contrib 1.3.0: http://www.freeweb.hu/fodpeter/lwip/ppp_test.tar.gz I use an USB Wavecom modem and kubuntu 7.10. Perhaps you could try it or see the code, if i did just a dummy mistake. Or maybe somebody has a working example, that would be great too :) Thanks Peter Fodor ps: Here is my log (or here http://www.freeweb.hu/fodpeter/lwip/log.txt ) : > tcp init done lcp_init: xmit_accm=0 0 0 0 Expecting: OK Expecting: CONNECT 115200 lcp_init: xmit_accm=0 0 0 0 pbuf_alloc(length=1504) pbuf_alloc(length=1504) == 0x806ef90 pppMain: unit 0: Connecting sio_read 4 bytes: 7E FF 7D 23 pppInProc[0]: got 4 bytes pppStartCB: unit 0 ppp_set_xaccm[0]: outACCM=0 0 0 0 ppp_send_config[0]: outACCM=FF FF FF FF ppp_recv_config[0]: inACCM=0 0 0 0 lcp_lowerup: asyncmap=0 0 0 0 LCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED) auth_reset: 0 lcp_addci: L opt=2 0 lcp_addci: L opt=5 70A012B6 lcp_addci: opt=7 lcp_addci: opt=8 pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppWrite[0]: len=46 sio_write 46 bytes: 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 70 A0 7D 32 B6 7D 27 7D 22 7D 28 7D 22 32 53 7E pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c fsm_sdata(LCP): Sent code 1,1,20. LCP: sending Configure-Request, id 1 LCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT) > waiting for ppp... sio_read 46 bytes: C0 21 7D 21 7D 21 7D 20 7D 36 7D 21 7D 24 7D 25 DC 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 23 7D 24 C0 23 26 B4 7E pppInProc[0]: got 46 bytes pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppInput[0]: LCP len=22 fsm_input(LCP):1,1,22 fsm_rconfreq(LCP): Rcvd id 1 state=6 (LS_REQSENT) lcp_reqci: rcvd MRU 1500 ASYNCMAP=0 PCOMPRESSION ACCOMPRESSION PAP (C023) lcp_reqci: returning CONFACK. pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x80757dc pbuf_alloc(length=0) == 0x80757dc pppWrite[0]: len=49 sio_write 49 bytes: FF 7D 23 C0 21 7D 22 7D 21 7D 20 7D 36 7D 21 7D 24 7D 25 DC 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 23 7D 24 C0 23 D0 47 7E pbuf_free(0x80757dc) pbuf_free: deallocating 0x80757dc fsm_sdata(LCP): Sent code 2,1,22. pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c sio_read 1 bytes: 7E pppInProc[0]: got 1 bytes sio_read 25 bytes: FF 7D 23 C0 21 7D 24 7D 21 7D 20 7D 2A 7D 25 7D 26 70 A0 7D 32 B6 3C D8 7E pppInProc[0]: got 25 bytes pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppInput[0]: LCP len=10 fsm_input(LCP):4,1,10 fsm_rconfnakrej(LCP): Rcvd id 1 state=8 (LS_ACKSENT) lcp_rejci: long opt 5 rejected lcp_addci: L opt=2 0 lcp_addci: opt=7 lcp_addci: opt=8 pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x80757dc pbuf_alloc(length=0) == 0x80757dc pppWrite[0]: len=36 sio_write 36 bytes: FF 7D 23 C0 21 7D 21 7D 22 7D 20 7D 2E 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 87 3A 7E pbuf_free(0x80757dc) pbuf_free: deallocating 0x80757dc fsm_sdata(LCP): Sent code 1,2,14. LCP: sending Configure-Request, id 2 pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c sio_read 37 bytes: 7E FF 7D 23 C0 21 7D 22 7D 22 7D 20 7D 2E 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 B9 B9 7E pppInProc[0]: got 37 bytes pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppInput[0]: LCP len=14 fsm_input(LCP):2,2,14 fsm_rconfack(LCP): Rcvd id 2 state=8 (LS_ACKSENT) lcp_acki: Ack ppp_send_config[0]: outACCM=0 0 0 0 ppp_recv_config[0]: inACCM=0 0 0 0 link_established: 0 IPCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED) pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x80757dc pbuf_alloc(length=0) == 0x80757dc pppWrite[0]: len=29 sio_write 29 bytes: FF 03 80 21 01 01 00 16 03 06 00 00 00 00 81 06 00 00 00 00 83 06 00 00 00 00 6E DB 7E pbuf_free(0x80757dc) pbuf_free: deallocating 0x80757dc fsm_sdata(IPCP): Sent code 1,1,22. IPCP: sending Configure-Request, id 1 IPCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT) pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c IPCP: timeout resending Config-Request state=6 (LS_REQSENT) <---- main problem ... IPCP: timeout sending Config-Requests state=6 (LS_REQSENT) np_finished: 0 proto=21 link_down: 0 IPCP: lowerdown state 3 (LS_STOPPED) -> 1 (LS_STARTING) IPCP: close reason=LCP down state 1 (LS_STARTING) -> 0 (LS_INITIAL) pppLinkDown: unit 0 pppMainWakeup: unit 0 sio_read_abort: not yet implemented for unix ppp_send_config[0]: outACCM=FF FF FF FF ppp_recv_config[0]: inACCM=0 0 0 0 pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppWrite[0]: len=43 sio_write 43 bytes: FF 7D 23 C0 21 7D 25 7D 23 7D 20 20 4E 6F 20 6E 65 74 77 6F 72 6B 20 70 72 6F 74 6F 63 6F 6C 73 20 72 75 6E 6E 69 6E 67 23 DD 7E pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c fsm_sdata(LCP): Sent code 5,3,32. LCP: close reason=No network protocols running state 9 (LS_OPENED) -> 4 (LS_CLOSING) sio_read 8 bytes: 7E FF 7D 23 C0 21 7D 26 pppInProc[0]: got 8 bytes pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c sio_read 36 bytes: 7D 23 7D 20 20 4E 6F 20 6E 65 74 77 6F 72 6B 20 70 72 6F 74 6F 63 6F 6C 73 20 72 75 6E 6E 69 6E 67 85 44 7E pppInProc[0]: got 36 bytes pppInput[0]: LCP len=32 fsm_input(LCP):6,3,32 fsm_rtermack(LCP): state=4 (LS_CLOSING) link_terminated: 0 Connection terminated. pppLinkTerminated: unit 0 pppMainWakeup: unit 0 sio_read_abort: not yet implemented for unix pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c sio_read 6 bytes: 0D 0A 4E 4F 20 43 pppInProc[0]: got 6 bytes pbuf_alloc(length=0) pbuf_alloc: allocated pbuf 0x807586c pbuf_alloc(length=0) == 0x807586c pppMain: unit 0: PHASE_DEAD pppDrop: pbuf len=13 pbuf_free(0x807586c) pbuf_free: deallocating 0x807586c pbuf_free(0x806ef90) pbuf_free: deallocating 0x806ef90 pppMain: unit 0: linkStatusCB=8048fa4 errCode=0 > ppp init done, errcode= -8 > exit. _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
