Tutorials for the SARA-R410m lte-m

Hi everyone,

I was wondering if somebody has a tutorial for the SARA-R410m.
I do not know much about it yet, so I am asking for idea’s what I could try with the module.
Thank you in advance.

Kind regards,

Bas Engels

Hi Bas,

With tutorial I assume you want a similar code example to the N211?
Below you can find one for Vodafone.

AT+CFUN=15
AT+CEDRXS=3
ATE0
AT+URAT=8,7
AT+CEREG=3
AT+CMEE=2
AT+CPSMS=1,“00000001”,“00000001”
AT+CGDCONT=1,“IP”,“nb.inetd.gdsp”
AT+COPS=1,2,“20404”
Wait for CSQ/CGATT.
AT+USOCR=17
AT+USOST=0,“YOURUDPSERVERIP”,YOURUDPSERVERPORT,4,“Yes!”

Let me know if this works for you.

Hi Thom,

The codes work, except the part that mine provider is KPN.
I am looking for a way to transmit the data to a http platform like allThingsTalk.
But I do not know how to do this with the communication protocol LTE-M.

Hi Bas,

Do you need the AT commands for KPN?
I’ll look into making it connect to a platform.

Edit: There is no such thing as connecting to a platform, KPN supports plain UDP, do whatever you want.

Hi Thom,

I have found the AT-commands: https://www.u-blox.com/sites/default/files/SARA-R4_ATCommands_(UBX-17003787).pdf
I can sent a sms to my Phone but not more at the moment. I would like a tutorial for the SARA-R4 just like for the N211.
It is may be possible this one does not exist yet. May be someone already managed to sent data to a html platform. This way I could store my data on the internet.

Hi Bas,

KPN is quite free in allowing you what you want to do similar to Vodafone.

Commands are very similar,
AT+CFUN=15
ATE0
AT+URAT=7
AT+CEREG=3
AT+CMEE=2
AT+CGDCONT=1,“IP”,“internet.m2m”
AT+COPS=1,2,“20408”
Wait for CSQ/CGATT.
AT+USOCR=17
AT+USOST=0,“YOURUDPSERVERIP”,YOURUDPSERVERPORT,4,“Yes!”

I suggest using something like a node-red server as a receiver. That’s what I’m doing.

1 Like

Hi Thom,

Of course Node-red. I forgot about that one.

Thank you

Hi Thom,

I use a full access FRED NodeRed account which has for example a http input node but thats an url, no IP and port adres. Do i have to use an extra server to get this connected to my SARA AFF LTE-M board?

Noel.

Hi @Hellings,

YOURUDPSERVERIP can be an IP address or url.
So you don’t need an extra server :slight_smile:

Best regards,
Jan

Hi Jan,

Thanks, I just tried a https address on port 443 and get an CME error. With ip address it does work somewhat, i can get the temp and voltage but no gps data. When i enable gps, nothing is forwarded to node red.I use simpoint kpn apn, R410 module.

Gr. Noel.

Hi Noel,

If the IP address works and the URL not, then it looks like the DNS of your sim card isn’t resolving the URL.

Best regards,
Jan

Hi Jan,

The IP and https calls are not to the same endpoint. It works fine when i use public IPaddress on a local nodered server, so that is a temp fix. I am using the sara r4 maker sketch, how can i access the setup menu when the sketch is allready running, for example when want to change say the port number. Now i reset the board to get a 30 sec or so access, that is a bit clumsy and 30 sec is in some cases too short. Maybe off topic here?

Hi @Hellings,

The 30 seconds timeout can indeed be a little short.
After any command the 30 sec timer is reset.

I recommend to make a list of command you want to send in a text editor and when you open the Serial Monitor just copy and past the commands.

Best regards,
Jan