[ECOS] Getting SLIP lwIP to work against Windows
Øyvind Harboe
oyvind.harboe@zylin.com
Mon Mar 8 08:57:00 GMT 2004
I'm trying to get lwIP SLIP running, but Windows does not continue past
the SLIP "Dialing..." requester.
Does anyone have any experiences they could share?
- I've compiled the httpd test example according to this README. No
problems.
http://savannah.nongnu.org/cgi-bin/viewcvs/lwip/contrib/ports/ecos/README?rev=1.3&content-type=text/vnd.viewcvs-markup
- Creating a SLIP connection under Windows is a bit more difficult :-)
Here is what I did.
0. This was on W2K. Although the requesters differs, I believe the
same thing works on XP. Dunno too much about <W2K, though I suspect
it is somewhat similar.
1. Network connections -> make new conneciton
2. "Connect directly to another computer"
3. Choose "guest"
4. Choose properties on new connection
5. Configure serial port, e.g. turn off HW flow control, choose
baudrate.
6. Options -> remove "Prompt for name and password, ..."
7. Networking -> select SLIP.
8. TCIP settings -> set IP. (What IP to choose here needs to be
elaborated a bit on).
9. IMPORTANT! Advanced-> clear "Use default gateway on remote
network", if you are not connected to the internet through
the device running SLIP.
- I tried to modify the lwIP SLIP code to answer "OK\r" to the "AT*\r"
requests it sends. I never see the "CLIENT" string on the lwIP side.
http://mail.gnu.org/archive/html/lwip-users/2003-01/msg00194.html
I've attached a log from www.sysinternals.com portmon utility that shows
that the only thing I receive on the lwIP side is "ATE1\r", to which
I've modified lwIP to reply "OK\r". After that nothing.
Ãyvind
-------------- next part --------------
0 0.05700222 svchost.exe IRP_MJ_CREATE Serial2 SUCCESS Options: Open
1 0.00000363 svchost.exe IRP_MJ_CLEANUP Serial2 SUCCESS
2 0.00000419 svchost.exe IRP_MJ_DEVICE_CONTROL Serial2 INVALID PARAMETER IOCTL: 0x2B002C
3 0.00244891 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
4 0.00000168 svchost.exe IOCTL_SERIAL_SET_BAUD_RATE Serial2 SUCCESS
5 0.00000251 svchost.exe IOCTL_SERIAL_GET_PROPERTIES Serial2 SUCCESS
6 0.00000196 svchost.exe IOCTL_SERIAL_GET_BAUD_RATE Serial2 SUCCESS
7 0.00000196 svchost.exe IOCTL_SERIAL_GET_LINE_CONTROL Serial2 SUCCESS
8 0.00000140 svchost.exe IOCTL_SERIAL_GET_CHARS Serial2 SUCCESS
9 0.00000140 svchost.exe IOCTL_SERIAL_GET_HANDFLOW Serial2 SUCCESS
10 0.00341943 svchost.exe IOCTL_SERIAL_SET_BAUD_RATE Serial2 SUCCESS Rate: 19200
11 0.00295373 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
12 0.00719393 svchost.exe IOCTL_SERIAL_SET_LINE_CONTROL Serial2 SUCCESS StopBits: 1 Parity: NONE WordLength: 8
13 0.00000587 svchost.exe IOCTL_SERIAL_SET_CHAR Serial2 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13
14 0.00267688 svchost.exe IOCTL_SERIAL_SET_HANDFLOW Serial2 SUCCESS Shake:9 Replace:80 XonLimit:10 XoffLimit:10
15 0.00000615 svchost.exe IOCTL_SERIAL_PURGE Serial2 SUCCESS Purge: TXABORT RXABORT
16 0.00000168 svchost.exe IOCTL_SERIAL_CLEAR_STATS Serial2 SUCCESS
17 0.00000168 svchost.exe IOCTL_SERIAL_PURGE Serial2 SUCCESS Purge: RXABORT
18 0.00000140 svchost.exe IOCTL_SERIAL_SET_TIMEOUTS Serial2 SUCCESS RI:20 RM:0 RC:0 WM:10 WC:2000
20 0.06132567 svchost.exe IRP_MJ_READ Serial2 CANCELLED Length 1
21 0.00000140 svchost.exe IOCTL_SERIAL_GET_BAUD_RATE Serial2 SUCCESS
22 0.00000168 svchost.exe IOCTL_SERIAL_GET_LINE_CONTROL Serial2 SUCCESS
23 0.00000140 svchost.exe IOCTL_SERIAL_GET_CHARS Serial2 SUCCESS
24 0.00000112 svchost.exe IOCTL_SERIAL_GET_HANDFLOW Serial2 SUCCESS
25 0.00403962 svchost.exe IOCTL_SERIAL_SET_BAUD_RATE Serial2 SUCCESS Rate: 19200
26 0.00295652 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
27 0.00296965 svchost.exe IOCTL_SERIAL_SET_LINE_CONTROL Serial2 SUCCESS StopBits: 1 Parity: NONE WordLength: 8
28 0.00000196 svchost.exe IOCTL_SERIAL_SET_CHAR Serial2 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13
29 0.00000251 svchost.exe IOCTL_SERIAL_SET_HANDFLOW Serial2 SUCCESS Shake:9 Replace:80 XonLimit:10 XoffLimit:10
30 0.00289757 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
31 0.00000643 svchost.exe IOCTL_SERIAL_CLEAR_STATS Serial2 SUCCESS
32 0.00000223 svchost.exe IOCTL_SERIAL_GET_BAUD_RATE Serial2 SUCCESS
33 0.00000168 svchost.exe IOCTL_SERIAL_GET_LINE_CONTROL Serial2 SUCCESS
34 0.00000168 svchost.exe IOCTL_SERIAL_GET_CHARS Serial2 SUCCESS
35 0.00000140 svchost.exe IOCTL_SERIAL_GET_HANDFLOW Serial2 SUCCESS
36 0.00371081 svchost.exe IOCTL_SERIAL_SET_BAUD_RATE Serial2 SUCCESS Rate: 38400
37 0.00000140 svchost.exe IOCTL_SERIAL_SET_RTS Serial2 INVALID PARAMETER
38 0.00292998 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
39 0.00396671 svchost.exe IOCTL_SERIAL_SET_LINE_CONTROL Serial2 SUCCESS StopBits: 1 Parity: NONE WordLength: 8
40 0.00000140 svchost.exe IOCTL_SERIAL_SET_CHAR Serial2 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13
41 0.00219246 svchost.exe IOCTL_SERIAL_SET_HANDFLOW Serial2 SUCCESS Shake:1 Replace:40 XonLimit:10 XoffLimit:10
42 0.00269364 svchost.exe IOCTL_SERIAL_SET_DTR Serial2 SUCCESS
43 0.00004526 svchost.exe IOCTL_SERIAL_PURGE Serial2 SUCCESS Purge: RXABORT
44 0.00000643 svchost.exe IOCTL_SERIAL_SET_TIMEOUTS Serial2 SUCCESS RI:-1 RM:0 RC:0 WM:0 WC:1000
45 0.00000419 svchost.exe IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR
46 0.00015002 svchost.exe IRP_MJ_WRITE Serial2 SUCCESS Length 5: 41 54 45 31 0D
47 0.00000587 svchost.exe IOCTL_SERIAL_SET_TIMEOUTS Serial2 SUCCESS RI:-1 RM:0 RC:0 WM:0 WC:1000
48 0.00000587 svchost.exe IRP_MJ_READ Serial2 SUCCESS Length 4: 4F 4B 0D 0A
49 0.00000223 svchost.exe IRP_MJ_READ Serial2 SUCCESS Length 0:
50 0.00001509 svchost.exe IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
51 0.00000223 svchost.exe IOCTL_SERIAL_SET_TIMEOUTS Serial2 SUCCESS RI:-1 RM:0 RC:0 WM:0 WC:1000
52 0.00000419 svchost.exe IRP_MJ_READ Serial2 SUCCESS Length 0:
53 0.00000000 svchost.exe IOCTL_SERIAL_WAIT_ON_MASK Serial2
----> nothing more happens
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list