Get started with the SODAQ SARA R41XM
Get started with the SODAQ SARA R410M/R412M SFF or AFF, an Arduino-based development board with an embedded u-blox SARA R41X LTE-M, NB-IoT and GPRS modem. The device comes with an integrated GPS, Accelerometer and Magnetometer.

Quick Navigation


Getting Started with the SODAQ SARA

Install SODAQ SARA board manager

Open up the Arduino IDE and select Arduino > Preferences from the menu bar. Paste the following URL in the field next to Additional Boards Manager URLs:
Go to Tools > Board > Board Manager, search for SODAQ SAMD and install the latest version.

Upload Passthrough sketch

The Passthrough sketch allows you to send AT commands to the u-blox modem.
Arduino SARA AFF
Arduino SARA SFF
Start by connecting the LTE antenna
Add the Monogoto SIM
Connect the battery
Connect the SODAQ SARA to your computer using the micro USB port next to the SIM card slot, an LED will light up yellow.
Make sure to connect the USB cable to the micro USB port next to the SIM card slot. When connecting the cable to the second USB port it is not possible to upload the Arduino sketch.
Select the right board in the Arduino IDE via Tools > Board > SODAQ SAMD Boards > SODAQ SARA AFF/SFF
Select the right port via Tools > Port
SODAQ SARA AFF passthrough Arduino Sketch:
SODAQ SARA SFF passthrough Arduino Sketch:

Establish a connection with the u-blox modem

Open up the Serial Monitor from the Arduino IDE by clicking the Serial Monitor-button in the top right corner.
Set the baud rate to 115200 and enter AT in the Serial Monitor. If the connection with the u-blox modem has been established, the board will answer with OK.
If you don’t see OK click the reset button on the SODAQ SARA and try again.
Next up, disable PSM (Power Saving Mode) and eDRX (Extended Discontinuous Reception). When these features are enabled the modeqm goes to sleep automatically and stops responding to AT Commands.
Disable PSM:
Disable eDRX:
Disable Power saving control:

Connect the u-blox modem to Monogoto

Visit the u-blox SARA R4 documentation for a detailed guide on connecting the modem to Monogoto.

Build an end-to-end tracking application

Guard your valuable assets, get notified if any assets move without your consent and keep track of their real-time GPS location. Source: AllThingsTalk​


Install the AllThingsTalk Arduino library

Open your Arduino IDE and install the AllThingsTalk LTE-M SDK library via Sketch > Include library > Manage Libraries.
Open the sketch GuardAndTrackAssets: File > Examples > AllThingsTalk LTE-M SDK > SDK Examples > GuardAndTrackAssets

Register your device in AllThingsTalk Maker

Visit to the AllThingsTalk Maker portal​
AllThingsTalk Maker
Click the CONNECT A DEVICE button and select the LTE-M Rapid Development Kit. Skip the step for selecting a NB-IoT/LTE-M network provider.
Click on Settings and Authentication to find your Device ID and Device Token.
In your Arduino sketch click the tab keys.h. Add the authentication credentials and update the APN settings to data.mono.
Upload the sketch to the SODAQ SARA and wait for the onboard LED to turn green.
Did the LED turn green? Congratulations! The device is connected to both Monogoto and AllThingsTalk πŸ™Œ

Start tracking your assets

Place your device outside or next to a window so it can receive GPS signals.
Go back to the AllThingsTalk Maker, select your asset and click on the actuator Lock, scroll down to the section State and enter.
"value": "false"
Next up, click on the Lock actuator again, scroll down to the section Command and enter:
"value": "true"
When shaking the device, an alert is triggered and the device starts sending GPS data regularly. Visit the Debug tab to see the GPS data appear.
Great work! πŸ‘ You managed to build an end-to-end LTE-M application. You can now start playing around with widgets to visualize your GPS data in AllThingsTalk or to create rules to trigger actions based on sensor data.

Useful Link