Clipper LTE breakout with Pico plus 2 - c/c++ code

Hi, has anyone got any working example using the Clipper LTE breakout with a pico plus 2 using C/C++ code? There’s a very neat and working python example, I was hoping to replicate it in C. Any advice would be grand.

No working code, but advice (but you probably already know): there are some UART examples available from pico-examples, so the basic structure is available. You will then have to build the AT-command strings from the Python example in C (which is a bit more complicated) or C++ and send them using as you can see in the example programs.

Also there are libs like GitHub - openxc/AT-commander: A C library to control a device via UART that responds to an AT command set (like an RN-42)

or GitHub - marcinbor85/cAT: Plain C library for parsing AT commands for use in host devices.

Thank you so much for your response. I have looked at examples. I will continue try more things and to de-compose the python code and see what it’s doing.

Basically, I’ve reduced the code to sending “AT\r” but only ever getting a single character 0, back. I’m hoping for send “AT” and receive “OK” just to know I’m talking to something.

How did you set up your UART? The command-manual says: “115200bps, 8 bit data, no parity, 1 bit stop, no data stream control“.

Otherwise, I think you are on the right track, the pure AT-command is always a good start. Although the manual does not list this command in the command-set. Which is strange. But it should work, since the Pimoroni Python code does send a simple AT to check if the device is ready.

Two more hints what you could add to your code:

  • toggle the reset pin
  • send the AT-command in a loop until you have a response

Pimoroni does both.