This content relates to a deprecated version of Mbed
Mbed 2 is now deprecated. For the latest version please see the Mbed OS documentation.
Networking

Implementation of the CellularInterface for u-blox C027 and C030 (non-N2xx flavour) modems that uses the IP stack on-board the cellular modem, hence not requiring LWIP (and so less RAM) and allowing any AT command exchanges to be carried out at the same time as data transfers (since the modem remains in AT mode all the time). Now open Windows Device Manager. The NEO-M8 series has an annoying feature where the module comes up as a Windows Sensor rather than a serial device. If your u-blox receiver does not appear under COM ports then right click on the u-blox GNSS Location Sensor and then Update Driver. Next, click on Browse my computer for driver software.
- Introduction
- Socket API
- Protocols and APIs
- Ethernet Interface
- u-blox modem interface
u-blox is a leading provider of GSM and CDMA modems. LISA-U2 (GSM) and LISA-C200 (CDMA) can be easily connected to a mbed board using the UbloxUSBModem library (below), making it possible to connect your mbed device to the Internet from almost anywhere in the world.
Currently, the LISA-U2 and LISA-C200 can be connected to a LPC1768 mbed using the USB controller inside the LPC1768 in host mode (more details here).
This example application uses the UbloxUSBModem and the HTTPClient interface, enabling the mbed to fetch a URL over HTTP, and print the contents.
There are various other 'hello world' programs that demonstrate SMS, Socket and Websocket interfaces. See 'Resources' section below.
You'll notice that this 'Hello World' program is a little more complex that others, as we're using the mbed RTOS to manage the memory and processing resources/requirement of the USB Modem driver and the TCP/IP stack.
UbloxUSBModem
Ublox Cell Modem
u-blox USB modems (GSM and CDMA)
Last commit 04 Mar 2014 by
Network APN¶
To connect to the internet you must establish a PPP connection. You can then use BSD Sockets or any high-level component (HTTP Client, NTP Client).
Ublox Modem
To establish this connection, one single function is used:
internet is the APN that you need to provide to establish a data connection. Change it to the relevant value if your SIM is different.
The variable, 'ret', allows you to check whether the connection was successful or not (0 on success, a negative value on error).
Please note that the 'connect' command can take a few minutes to complete in worst case scenarios, as it initializes the modem and then waits for network registration.
Other Examples¶
UbloxModemSMSTest
u-blox modem SMS test
U-blox Modems Drivers
Last commit 03 Jun 2014 by
Ublox Driver
UbloxModemWebsocketTest
u-blox modem Websockets client test
Last commit 31 Oct 2013 by