Hi David, > Cool! If its no problem, could you post a summary of what you needed > to do to get SLIP running between your LPC board and Windows XP. > Did you need to add code to LwIP to support SLIP, or was > it in there already? uIP side tweaks: 1. Tweak slipdev_char_poll() and slipdev_char_put() for target 2. The next code line after while(1) in main.c has a typo, should be "uip_len = slipdev_poll();" 3. Implement Windows connect handshake "CLIENT"/"CLIENTSERVER" in slipdev_poll() 4. Comment out the Ethernet header struct, as SLIP does not implement this. 5. Remove all references to ARP since you don't need this with SLIP. 6. In uipopt.h change #define UIP_LLH_LEN from 14 to 0. 7. Change IP address to suite your network. There is basic info on porting the stack on the uIP website. For XP connectivity I used this app note: http://www.pumpkininc.com/content/doc/appnote/an-32.pdf > I've been looking at the Linux side of things for PLIP and SLIP, > and haven't played with the LPC-side yet. Here's my documentation > on SLIP and PLIP from Linux > > http://www.ovro.caltech.edu/~dwh/drivers.pdf This will be useful for testing with Linux! > I've downloaded the CVS LwIP and contrib directory, but haven't had > a chance to read through it yet. Is there a good design document > giving details on LwIPs implementation? Like I said, I haven't looked > through the source in detail, so there might be something in there, > but any comments would be appreciated. I started on porting lwIP to IAR/ARM, but switched to uIP as it was much quicker. lwIP requires a bit more time to correctly port. There is a reasonably active lwIP mailing list. AFAIK there is not an official mailing list for uIP. > As for PPP source, in Linux SLIP is a line discipline inside > the tty layer, and so is PPP. If you can't find something that > already bolts into LwIP, that might be a good place to look. lwIP includes PPP support. \lwip-1.1.0\src\netif\ppp Ethernut's PPP implementation looks attractive from a size stand point. Regards, Joel
Message
RE: [lpc2000] OT: PPP implementation for uIP
2005-12-07 by Joel Winarske
Attachments
- No local attachments were found for this message.