The mbed microcontroller is quite capable of connecting to the internet, and functioning as client or server for a variety of protocols. To achieve this, the LwIP TCP/IP stack has been ported to mbed.
The other thing you will of course need is appropriate hardware to establish a connection to the internet. This could potentially be via a radio and using 802.11 wifi or 3G modem, but by far the easiest and best place to start is to use the onboard Ethernet.
On the Ethernet-RJ45 page you will find wiring diagrams for popular RJ45 sockets.
On the Ethernet page you will find everything you need to set an IP address, and bring up the stack.
Afterwards, you should hopefully have TCP/IP up and running over Ethernet. Have a look at Working with the networking stack to find out more, and to create your first example program.
The programs linked to in the networking documentation generally refer to the original port of the LwIP stack, by .
There is a fork of this port called NetServices by . The differences and improvements over the original port can be found on the NetServices page.
By using the stack, you are agreeing to the terms of the LWIP license.
No tags
|
15 comments
Please login to post comments.
I have ported an LPC2138 project first to Mbed and now to my own PCB layout and it works fine. A Serial, Profibus industrial application. When I layed out the PCB I added the DP83848 48pin ethernet phy chip but it is only now I have built up a prototype. My ethernet test code works fime on the Mbed but not on my hardware. Like it doesn't even try to access the phy chip.
Question: Does the Mbed ethernet code only work on the Mbed hardware? I ask so as not to waste too much time on the wrong road. Is there a right road?