[En-Nut-Discussion] PPP 0d-->0a
Tarmo Fimberg
tarmo at kaugotsing.ee
Tue Mar 18 19:08:16 CET 2003
Hi Harald!
Hi Mike!
I found very strange behaviour working with PPP driver rev1.4 with Nut/Os
3.0.1.
I log traffic between GPRS modem and ethernut with serial sniffer and
also debug thread PPPRx received characters.
As you see 0x0d at row 8 pos 5 gets converted to 0x0a.
After substitution of 0x0a, CRC is equal to PPPGOODFCS16.
Thats whay my lookup(UDP) queries failed, because I got FCS errors.
I don't now at this moment is it related to _read() function or my compiler
version (avr-gcc (GCC) 3.3 20021216 (prerelease)), but I'll try to look
deeper...
At this moment I just want to inform about this strange thing, may be someone
else have seen something similar.
========================SERIAL SNIFFER==================
0.<7e>
1.<ff><03><00><21><45><00><00><b8><34><b7><00><00><3c><7d><31><74><62><c2>
2.<cc><00><01><0a><14><08><3b><00><35><10><02><00><a4><a4><22><00><05>
3.<81><80><00><01><00><03><00><02><00><02><03><77><77><77><04><6e><65>
4.<74><69><02><65><65><00><00><01><00><01><c0><0c><00><05><00><01><00>
5.<01><50><6c><00><07><04><6e><65><74><69><c0><10><c0><29><00><01><00>
6.<01><00><01><50><6c><00><04><c2><7d><5e><65><5b><c0><29><00><01><00><01>
7.<00><01><50><6c><00><04><c2><7d><5e><65><43><c0><10><00><02><00><01><00>
8.<01><51><80><00> <0d> <03><64><6e><73><06><65><73><74><70><61><6b><c0>
9.<15><c0><10><00><02><00><01><00><01><51><80><00><07><04><64><6e><73>
10.<32><c0><60><c0><5c><00><01><00><01><00><01><51><80><00><04><c2><7d><5e>
11.<73><12><c0><75><00><01><00><01><00><01><51><80><00><04><c2><7d><5e><65>
12.<22><7d><5d><e9>
13.<7e>
=================DEBUG FROM PPPRx=================
1.[ff][03][00][21][45][00][00][b8][34][b7][00][00][3c][11][74][62][c2]
2.[cc][00][01][0a][14][08][3b][00][35][10][02][00][a4][a4][22][00][05]
3.[81][80][00][01][00][03][00][02][00][02][03][77][77][77][04][6e][65]
4.[74][69][02][65][65][00][00][01][00][01][c0][0c][00][05][00][01][00]
5.[01][50][6c][00][07][04][6e][65][74][69][c0][10][c0][29][00][01][00]
6.[01][00][01][50][6c][00][04][c2][7e][65][5b][c0][29][00][01][00][01]
7.[00][01][50][6c][00][04][c2][7e][65][43][c0][10][00][02][00][01][00]
8.[01][51][80][00] [0a] [03][64][6e][73][06][65][73][74][70][61][6b][c0]
9.[15][c0][10][00][02][00][01][00][01][51][80][00][07][04][64][6e][73]
10.[32][c0][60][c0][5c][00][01][00][01][00][01][51][80][00][04][c2][7e]
11.[73][12][c0][75][00][01][00][01][00][01][51][80][00][04][c2][7e][65]
12.[22][7d][e9]CRC error(5): c1c5 should be f0b8
Null from UDPsock
Best Regards,
Tarmo Fimberg,
<tarmo_at_kaugotsing_dot_ee>
More information about the En-Nut-Discussion
mailing list