Networking

This content relates to a deprecated version of Mbed

Mbed 2 is now deprecated. For the latest version please see the Mbed OS documentation.

For the latest information about networking, please see Arm Mbed Networking Stack.

Introduction

The mbed microcontroller is 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.

Getting started

Step one, physical connection

On the RJ45 page you will find wiring diagrams for popular RJ45 sockets. You can skip this step if you have a baseboard with RJ45 socket (see list of baseboards on the cookbook homepage).

Step two, set up the networking stack

On the Ethernet Interface page you will find everything you need to set an IP address, and bring up the stack.

Next steps

Afterwards, you should hopefully have TCP/IP up and running over Ethernet.

Where to look next:

About this networking stack

The introduction of an mbed RTOS among the officially supported mbed libraries allowed us to finally add an officially supported networking stack providing the familiar Berkeley sockets programming interface. The previously community supported networking stacks, because of the lack of an operating system, could only support a "polling" paradigm. Besides, providing a more familiar programming interface, this new networking stack provides an impressive performance improvement: benchmark.

System overview

/media/uploads/emilmont/layers.png

Let's analyse the above layers from top down:

Interface drivers

The networking stack is currently supporting two different transports:

Where to get help

If you have questions on the usage of this stack, the best place to ask is in the Forum.


All wikipages