AT Commands in mbed

31 Dec 2016

Coming from Arduino, where there is SendATCommands. Just want to know whether there is a similar commands somewhere in mbed os or anyone has attempted to address this via a wrapper.

There are two questions on mbed but still have not been answered: 1) https://developer.mbed.org/questions/68812/How-to-send-AT-commands-on-mbedos/ 2) https://developer.mbed.org/questions/76193/AT-Command-Library/

If there is none, so it would be better for me to use printf with the AT commands as string?

05 Jan 2017

Hi Afeez,

Your most powerful tool here at mbed is the open library source https://developer.mbed.org/users/mbed_official/code/mbed-dev/

Right now, the 2-week old Version 132 is a fast 40MB download. You can then search all you want on your computer.

A quick search by me shows there are unfortunately no files containing the word sendAT.

There is one file containing the phrase dial up but one file only is generally not a good sign of support.

For the archive, click on mbed-dev on the left instead of Import library on the right. /media/uploads/nixnax/red-on-white-arrow.jpg

Import librarymbed-dev

mbed library sources. Supersedes mbed-src.

By the way, your program GPS-Lora does not compile for my Nucleo-L476 board - it's looking for a file board.h which is probably part of your hardware definition.

Finally, since you are an Internet of things dude, let me know what you think of the code below to create an internet connection for mbed boards that have a serial port.

Click on PPP-Blinky below to see the write-up:

Import programPPP-Blinky

Small Internet Protocol Stack using a standard serial port.

All the best,

Nixnax

06 Jan 2017

Thank you Nixnax for your reply.

Right now, we only use it once which is to connect to a preset WiFi network for activations. We are playing around AT commands to use it with ESP8266 to do more things such as using SoftAP and injecting packets. It would be a better idea to use something that mbed has provided rather than the simple printf using serial to the device.

Also regarding, my GPS-LoRa, yes, you are right. We are making a custom board so we changed a few pins here and there. We will update it to make it more compatible with other boards.

Sure, I am keen to use your project. Will let you know how it goes!

02 Feb 2017

I have been working with the UBLOX C027_Support libraries.

https://developer.mbed.org/teams/ublox/code/C027_Support/

MDM.cpp is an excellent example of how to send and receive AT commands:

https://developer.mbed.org/teams/ublox/code/C027_Support/file/dafbbf31bf76/MDM.cpp

From one of the threads the original post linked here is another AT command parser:

https://developer.mbed.org/teams/DeepPass-LoRa/code/mDot_AT_firmware/

Both C027 from ublox and mDot_AT work with mbed-src. I have updated the C027_Support libraries to be compatible with the latest mbed-dev:

https://developer.mbed.org/users/michaelVisimid/code/C027_Support/

04 Apr 2017

We've produced an AT command parser - https://github.com/ARMmbed/ATParser.

This AT command parser is in use for ESP8266 WiFi Interface - https://github.com/ARMmbed/esp8266-driver as well as the MulitTech dragonfly cellular interface - https://github.com/ARMmbed/mtsas-driver.

These are compatible with mbed-os, so you don't have to use mbed or mbed-dev.

29 Sep 2017

I have the same question. Thanks guys for sharing!

23 Sep 2017

Sarah Marsh wrote:

We've produced an AT command parser - https://github.com/ARMmbed/ATParser.

This AT command parser is in use for ESP8266 WiFi Interface - https://github.com/ARMmbed/esp8266-driver as well as the MulitTech dragonfly cellular interface - https://github.com/ARMmbed/mtsas-driver.

These are compatible with mbed-os, so you don't have to use mbed or mbed-dev.

Hi Sarah,

I checked in latest code, there is AT relate code file name : ATCmdParser.cc, what's the different with the one you shared?