|
From: | Mehmet Ali Ekici |
Subject: | Re: [lwip-users] PPP with NO_SYS=1 in an interrupt context |
Date: | Wed, 15 Jun 2011 10:56:28 +0300 |
Hi, I have checked it with 9600 baud too there is no framing
errors for the port. Here is the logs. We are using SIM900D from simcom as GPRS modem. I expect fcs to be “6b e4” but log says 0x70d6. How
can fcs be calculated over the received frame to check if fcs correct or not ? 7e ff 03 c0 21 0a 08 6b e4 7e pppInProc[0]: got 10 bytes pppInProc[0]: Dropping bad fcs 0x70d6 proto=0xc021 Executing command : ATDt*99# CONNECT <CR><LF>CONNECT<CR><LF> len = 11 : 0 Received expected result : CONNECT pppInit lcp_init: xmit_accm=0 0 0 0 pppOpen: COM1 pppOverSerialOpen: unit 0: Connecting pppStart: 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 24f8b455 lcp_addci: opt=7 lcp_addci: opt=8 pppWrite[0]: len=44 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 24 f8 b4 55 7d 27 7d 22 7d 28 7d 22 54 79 7e
fsm_sdata(LCP): Sent code 1,1,20. LCP: sending Configure-Request, id 1 LCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT) pppStart: finished System initialised > 7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 2e 7d 22 7d 26
7d 20 7d 2a 7d 20 7d 20 7d 23 7d 24 c0 23 f3 4d 7e 7e ff 7d 23 c0 pppInProc[0]: got 40 bytes pppInput[0]: LCP len=14 fsm_input(LCP):1,1,14 fsm_rconfreq(LCP): Rcvd id 1 state=6 (LS_REQSENT) lcp_reqci: ASYNCMAP=X PAP (C023) lcp_reqci: returning CONFACK. pppWrite[0]: len=35 7e ff 7d 23 c0 21 7d 22 7d 21 7d 20 7d 2e 7d 22 7d 26 7d 20
7d 2a 7d 20 7d 20 7d 23 7d 24 c0 23 cd ce 7e fsm_sdata(LCP): Sent code 2,1,14. pppInput[0]: packet processed 21 7d 24 7d 21 7d 20 7d 2e 7d 25 7d 26 24 f8 b4 55 7d 27 7d
22 7d 28 7d 22 ad 7d 35 7e pppInProc[0]: got 29 bytes pppInput[0]: LCP len=14 fsm_input(LCP):4,1,14 fsm_rconfnakrej(LCP): Rcvd id 1 state=8 (LS_ACKSENT) lcp_rejci: long opt 5 rejected lcp_rejci: void opt 7 rejected lcp_rejci: void opt 8 rejected lcp_addci: L opt=2 0 pppWrite[0]: len=28 ff 7d 23 c0 21 7d 21 7d 22 7d 20 7d 2a 7d 22 7d 26 7d 20 7d
20 7d 20 7d 20 5f ad 7e fsm_sdata(LCP): Sent code 1,2,10. LCP: sending Configure-Request, id 2 pppInput[0]: packet processed 7e ff 7d 23 c0 21 7d 22 pppInProc[0]: got 8 bytes 7d 22 7d 20 7d 2a 7d 22 7d 26 7d 20 7d 20 7d 20 7d 20 36 d9
7e pppInProc[0]: got 21 bytes pppInput[0]: LCP len=10 fsm_input(LCP):2,2,10 fsm_rconfack(LCP): Rcvd id 2 state=8 (LS_ACKSENT) lcp_acki: Ack ppp_send_config[0]: outACCM=0 0 a 0 ppp_recv_config[0]: inACCM=0 0 0 0 pppWrite[0]: len=16 7e ff 03 c0 21 09 00 00 08 00 00 00 00 bb 6e 7e
fsm_sdata(LCP): Sent code 9,0,8. link_established: unit 0; Lowering up all protocols... IPCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED) pppWrite[0]: len=36 ff 03 80 21 01 01 00 1c 03 06 00 00 00 00 02 06 00 2d 0f 00
81 06 00 00 00 00 83 06 00 00 00 00 7d 5e 84 7e fsm_sdata(IPCP): Sent code
1,1,28. IPCP: sending Configure-Request, id 1 IPCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT) pppInput[0]: packet processed 7e ff 03 c0 21 0a 08 6b e4 7e pppInProc[0]: got 10 bytes pppInProc[0]: Dropping bad fcs 0x70d6 proto=0xc021 pppDrop: pbuf len=12, addr 2000509c #>counters ------------------ Counters for port : 0 Rx byte cnt ...: 0 Tx byte cnt ...: 0 Parity errors..: 0 Framing errors.: 0 Brakes ........: 0 Overrun errors.: 0 Counters for port : 1 Rx byte cnt ...: 220 Tx byte cnt ...: 281 Parity errors..: 0 Framing errors.: 0 Brakes ........: 0 Overrun errors.: 0 Counters for port : 2 Rx byte cnt ...: 0 Tx byte cnt ...: 0 Parity errors..: 0 Framing errors.: 0 Brakes ........: 0 Overrun errors.: 0 Mehmet Ali Ekici |
[Prev in Thread] | Current Thread | [Next in Thread] |