Re: [avr-chat] TCP/IP : practical guide to implementing ? (LONG post...)
Hi, I don't know anything about what software is available for microcontrollers, but one time I started writing a network stack (for intel 8088). As you might guess from the name, TCP/IP uses layers of protocols. You can about it here: http://en.wikipedia.org/wiki/Internet_protocol_suite TCP uses IP. IP uses Ethernet (or PPP or SLIP or ATM or ...). UDP also uses IP, and is *much* simpler to implement. You might want to read about that, because you will need it. Ethernet sends packets using MAC addresses. MAC addresses are resolved using ARP. To get an IP address, you (most likely) want DHCP. DHCP uses UDP. To resolve domain names to IP addresses, you want DNS. DNS uses UDP. Did you follow all that? :) To get an IP address, you need software to handle: -ARP -IP -UDP -DHCP Wikipedia is a place to start reading: http://en.wikipedia.org/wiki/Transmission_Control_Protocol http://en.wikipedia.org/wiki/Dhcp http://en.wikipedia.org/wiki/User_Datagram_Protocol http://en.wikipedia.org/wiki/Address_Resolution_Protocol http://en.wikipedia.org/wiki/Ethernet http://en.wikipedia.org/wiki/Internet_Protocol The authoritative definition (I think) of all these protocols are the RFCs: http://www.ietf.org/rfc.html The organization that hands out numbers (like MAC address ranges is): http://www.iana.org/ Good luck, dstn. ___ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat
Re: [avr-chat] TCP/IP : practical guide to implementing ? (LONG post...)
Vincent Trouilliez wrote: Hello list, I apologize in advance for the longer than normally accepted post... I am back on the list, after a very long while off, due to my hobby AVR project stalling... so first of all, hi to the few who may remember me and are still on the list ;-) I would like to receive input from the engineers among you, who have knowledge of, and practical experience implementing, TCP/IP in micro-controller based products. ... So, that's two weeks to learn as much as possible about this subject... Read and understand: ftp://ftp.rfc-editor.org/in-notes/rfc1180.txt Then i'd just search for keywords in google and maybe a practical book like TCP/IP Lean. There's many good books such as by Stevens. I learnt most of my networking from administering my own Linux box. ___ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat
Re: [avr-chat] TCP/IP : practical guide to implementing ? (LONG post...)
Ethereal (aka Wireshark) is also a good tool for visualizing the layered structure of packets and investigating the protocols (not to mention debugging your code!) http://www.wireshark.org/ dstn. ___ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat
Re: [avr-chat] TCP/IP : practical guide to implementing ? (LONG post...)
Hello, Vincent! Vincent Trouilliez schrieb: I would like to receive input from the engineers among you, who have knowledge of, and practical experience implementing, TCP/IP in micro-controller based products. Well, if I would be in the HR department, I would like to hear that it doesn't make sense to work your way up and down the TCP/IP stack from scratch, if there are already ton's of solutions out there which can be re-used. I.e. the first hit on google microcontroller TCP/IP brings up: http://www.mikrocontroller.net/articles/Linksammlung where you can find several links to some TCP/IP implementations. Of course, it's necessary to know what happens inside of the code if something goes wrong. Your best friend is a good debugger and know-how to use it. But I would first give it a try and starting from the top-level. Download the code and give it a try. Good luck, -- Clemens Koller ___ RD Imaging Devices Anagramm GmbH Rupert-Mayer-Str. 45/1 81379 Muenchen Germany http://www.anagramm-technology.com Phone: +49-89-741518-50 Fax: +49-89-741518-19 ___ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat