Content originally posted in LPCWare by hlsa on Tue Jul 29 08:25:34 MST 2014
There are two basic options:
1.
You use a standard microcontroller + an external ethernet device, which is connected to your microcontroller, e.g. via UART. In one of our products we use for example the XPort device from Lantronix, which is quite simple to use.
Such a solution is easy to implement but the external devices aren't cheap. Though it is a good solution for lower volumes.
2.
Once you have higher volumes and costs-per-piece is more important than development costs, you better go with a Microcontroller that has an integrated ethernet mac (e.g. LPC43xx) plus an external phy.
You will need an IP-Stack. Some people prefer a freeware solution like lwip. I prefer a commercial solution due to the support and documentation. We bought for example the Sciopta RTOS plus the Sciopta IP stack, which works very good. However, you will also find plenty of other commercial products. A very good commercial IP stack which doesn't require an RTOS is available from Sevenstax.
However, another important topic is howto implement the communication from your PC to the embedded device an vice versa. You can chose between the trasnsport protocols TCP (reliable) and UDP (fast) or you can even use any higher level protocols like Telnet.
A good starting point would be finding a book, which gives an introduction to IP networking.
I do have an excellent book (Anatol Badach, Erwin Hoffmann: Technik der IP-Netze; TCP/IP incl. IPv6 Funktionsweise, Protokolle und Dienste), however, it is written in German. There should be similar books available in english, e.g. "Douglas E. Comer. Internetworking with TCP/IP - Principles, Protocols and Architecture."
Best regards,
Holger