Questions about SARA SFF R412M

Hi there,

I just got the SARA R412M, and started to play around a bit. Succesfully connected to the PC, followed the tutorial, and uploaded the “Universal Tracker

In the serial monitor i changed the ntype to 6. But the board is keeping rebooting it seems, and i loose connection to the board. When i restart the Serial monitor i can connect again…

2 questions
1. Can i keep the connection alive with the PC?
I dont want to restart Serial Monitor all the time.

2. How can i remove the SIM PIN from the inserted SIM card?
I tried things from the forum with the AT commands, but serial monitor does not respond to AT commands, so i guess im doing something wrong?

This is the serial monitor output until it reboots and breaks the connection:

10:02:09.992 -> 
10:02:09.992 -> 
10:02:09.992 -> Commands:
10:02:09.992 ->   Show IMEI                                  (SI): 
10:02:09.992 ->   Show Module version                        (SV): 
10:02:09.992 ->   Commit Settings                            (CS): 
10:02:09.992 -> 
10:02:09.992 -> Settings:
10:02:09.992 -> 
10:02:10.039 -> GPS                       
10:02:10.039 ->   GPS (OFF=0 / ON=1)         (gps=): 1
10:02:10.039 ->   Fix Interval (min)         (fi=): 15
10:02:10.039 ->   Alt. Fix Interval (min)    (afi=): 0
10:02:10.039 ->   Alt. Fix From (HH)         (affh=): 0
10:02:10.039 ->   Alt. Fix From (MM)         (affm=): 0
10:02:10.039 ->   Alt. Fix To (HH)           (afth=): 0
10:02:10.039 ->   Alt. Fix To (MM)           (aftm=): 0
10:02:10.039 ->   GPS Fix Timeout (sec)      (gft=): 120
10:02:10.039 ->   Minimum sat count          (sat=): 4
10:02:10.039 ->   Num Coords to Upload       (num=): 1
10:02:10.039 -> 
10:02:10.039 -> On-the-move Functionality 
10:02:10.039 ->   Acceleration% (100% = 8g)  (acc=): 0
10:02:10.039 ->   Acceleration Duration      (acd=): 0
10:02:10.039 ->   Fix Interval (min)         (acf=): 1
10:02:10.039 ->   Timeout (min)              (act=): 10
10:02:10.039 -> 
10:02:10.039 -> Cellular                  
10:02:10.039 ->   Network Type (N2xx NB-IoT = 2, R4xx NB-IoT = 3, R4xx LTE-M = 4, R412 2G = 5, 2G/3G = 6)  (ntype=): 6
10:02:10.039 ->   All Things Talk Token      (att=): 
10:02:10.039 ->   APN                        (apn=): nb.inetd.gdsp
10:02:10.039 ->   Force Operator             (opr=): 20404
10:02:10.039 ->   CID                        (cid=): 1
10:02:10.039 ->   APN user                   (apnu=): 
10:02:10.039 ->   APN password               (apnp=): 
10:02:10.039 ->   Band                       (bnd=): 20
10:02:10.039 ->   Target IP                  (ip=): 0.0.0.0
10:02:10.039 ->   Target port                (prt=): 1
10:02:10.039 ->   Response Timeout           (rxto=): 15
10:02:10.039 -> 
10:02:10.039 -> Misc                      
10:02:10.039 ->   Cayenne LPP (OFF=0 / ON=1) (cay=): 0
10:02:10.039 ->   Status LED (OFF=0 / ON=1)  (led=): 1
10:02:10.039 ->   Debug (OFF=0 / ON=1)       (dbg=): 1
10:02:10.039 -> Enter command: 
10:02:40.009 -> 
10:02:40.009 -> Settings:
10:02:40.009 -> 
10:02:40.009 -> GPS                       
10:02:40.009 ->   GPS (OFF=0 / ON=1)         (gps=): 1
10:02:40.009 ->   Fix Interval (min)         (fi=): 15
10:02:40.009 ->   Alt. Fix Interval (min)    (afi=): 0
10:02:40.009 ->   Alt. Fix From (HH)         (affh=): 0
10:02:40.009 ->   Alt. Fix From (MM)         (affm=): 0
10:02:40.009 ->   Alt. Fix To (HH)           (afth=): 0
10:02:40.009 ->   Alt. Fix To (MM)           (aftm=): 0
10:02:40.009 ->   GPS Fix Timeout (sec)      (gft=): 120
10:02:40.009 ->   Minimum sat count          (sat=): 4
10:02:40.009 ->   Num Coords to Upload       (num=): 1
10:02:40.009 -> 
10:02:40.009 -> On-the-move Functionality 
10:02:40.009 ->   Acceleration% (100% = 8g)  (acc=): 0
10:02:40.009 ->   Acceleration Duration      (acd=): 0
10:02:40.009 ->   Fix Interval (min)         (acf=): 1
10:02:40.009 ->   Timeout (min)              (act=): 10
10:02:40.009 -> 
10:02:40.009 -> Cellular                  
10:02:40.009 ->   Network Type (N2xx NB-IoT = 2, R4xx NB-IoT = 3, R4xx LTE-M = 4, R412 2G = 5, 2G/3G = 6)  (ntype=): 6
10:02:40.009 ->   All Things Talk Token      (att=): 
10:02:40.009 ->   APN                        (apn=): nb.inetd.gdsp
10:02:40.009 ->   Force Operator             (opr=): 20404
10:02:40.009 ->   CID                        (cid=): 1
10:02:40.009 ->   APN user                   (apnu=): 
10:02:40.009 ->   APN password               (apnp=): 
10:02:40.009 ->   Band                       (bnd=): 20
10:02:40.009 ->   Target IP                  (ip=): 0.0.0.0
10:02:40.009 ->   Target port                (prt=): 1
10:02:40.009 ->   Response Timeout           (rxto=): 15
10:02:40.009 -> 
10:02:40.009 -> Misc                      
10:02:40.009 ->   Cayenne LPP (OFF=0 / ON=1) (cay=): 0
10:02:40.009 ->   Status LED (OFF=0 / ON=1)  (led=): 1
10:02:40.009 ->   Debug (OFF=0 / ON=1)       (dbg=): 1
10:02:47.551 -> *** GPS not found!
10:02:47.551 -> *** GPS not found!
10:02:48.090 -> [init] started.
10:02:48.090 -> [initBuffer]

When the connection breaks, Arduino IDE shows more COM ports that seem identicall to the existing. See image:

Try this sketch:
https://learn.sodaq.com/Boards/Sara_AFF/Examples/passthrough/

Make sure to uncomment the second line, and you will also need to have a battery attached.

The command is:

AT+CLCK="SC",0,"1234"

Replacing 1234 with the existing pin.

Hi Gabriel,

There is wich i tried the AT codes. Started with unlock code and nothing appeared. Will try again with your suggestion

The serial monitor keeps empty after i inserted the command::

Since you have errors here, I looked into your buying history.
You have bought a SARA SFF. Please select SFF as your board in Arduino.
The SARA board is for the SARA AFF. Sorry for the confusion.

Best regards,
Jan

Hi Jan,

Thanks, i needed that :slight_smile: going to play along now :slight_smile:

Jan,

PIN is removed. uploaded the SFF sketch for the Tracker. changed the settings that i think are the right one. Could you verify that this should initiate a 2G/3G connection to vodafone?

Also, the board keeps booting when this erros appears

11:11:34.634 -> *** GPS not found!
11:11:34.634 -> Initializing R4X…

This is the current menu.

11:10:55.914 ->
11:10:55.914 ->
11:10:55.914 -> Commands:
11:10:55.914 -> Show IMEI (SI):
11:10:55.914 -> Show Module version (SV):
11:10:55.914 -> Commit Settings (CS):
11:10:55.914 ->
11:10:55.914 -> Settings:
11:10:55.914 ->
11:10:55.914 -> GPS
11:10:55.914 -> GPS (OFF=0 / ON=1) (gps=): 1
11:10:55.914 -> Fix Interval (min) (fi=): 1
11:10:55.914 -> Alt. Fix Interval (min) (afi=): 0
11:10:55.914 -> Alt. Fix From (HH) (affh=): 0
11:10:55.914 -> Alt. Fix From (MM) (affm=): 0
11:10:55.914 -> Alt. Fix To (HH) (afth=): 0
11:10:55.914 -> Alt. Fix To (MM) (aftm=): 0
11:10:55.914 -> GPS Fix Timeout (sec) (gft=): 120
11:10:55.914 -> Minimum sat count (sat=): 4
11:10:55.914 -> Num Coords to Upload (num=): 1
11:10:55.914 ->
11:10:55.914 -> On-the-move Functionality
11:10:55.914 -> Acceleration% (100% = 8g) (acc=): 0
11:10:55.914 -> Acceleration Duration (acd=): 0
11:10:55.914 -> Fix Interval (min) (acf=): 1
11:10:55.914 -> Timeout (min) (act=): 10
11:10:55.914 ->
11:10:55.914 -> Cellular
11:10:55.914 -> Network Type (N2xx NB-IoT = 2, R4xx NB-IoT = 3, R4xx LTE-M = 4, R412 2G = 5, 2G/3G = 6) (ntype=): 4
11:10:55.914 -> All Things Talk Token (att=): 4Ln74LAQrPkrW1VeVwALkSd3aVIevwv7
11:10:55.914 -> APN (apn=): live.vodafone.com
11:10:55.914 -> Force Operator (opr=): 20404
11:10:55.914 -> CID (cid=): 1
11:10:55.914 -> APN user (apnu=): vodafone
11:10:55.914 -> APN password (apnp=): vodafone
11:10:55.914 -> Band (bnd=): 20
11:10:55.914 -> Target IP (ip=): 0.0.0.0
11:10:55.914 -> Target port (prt=): 1
11:10:55.914 -> Response Timeout (rxto=): 15
11:10:55.914 ->
11:10:55.914 -> Misc
11:10:55.914 -> Cayenne LPP (OFF=0 / ON=1) (cay=): 0
11:10:55.914 -> Status LED (OFF=0 / ON=1) (led=): 1
11:10:55.914 -> Debug (OFF=0 / ON=1) (dbg=): 0
11:10:55.914 -> Enter command:

I tried ntype 4, 5 and 6
Thanks in advance,

And to complete the post, this is my setup:

Jesper

The R412 only supports ntype values of 3,4 & 5. However, you need a suitable SIM card for each of the modes.

Try uncommenting the debug line near the top of Sodaq_R4X.cpp

//#define DEBUG

That should provide more detailed debug info of what the modem is trying to do.

Hi Gabriel, That line is allready uncommented:

Edit: When i set dbg=1 i get response!

11:48:08.741 -> >> AT
11:48:08.741 ->
<< timed out
11:48:09.248 -> >> AT
11:48:09.248 ->
<< timed out
11:48:09.719 -> >> AT
11:48:09.719 ->
<< timed out
11:48:10.223 -> >> AT
11:48:10.223 ->
<< timed out
11:48:10.739 -> >> AT
11:48:10.739 ->
<< timed out
11:48:11.251 -> >> AT
11:48:11.251 ->
<< timed out
11:48:11.766 -> >> AT
11:48:11.766 ->
<< timed out
11:48:12.290 -> >> AT
11:48:12.290 ->
<< timed out
11:48:12.805 -> >> AT
11:48:12.805 ->
<< timed out
11:48:13.277 -> >> AT
11:48:13.277 ->
<< timed out
11:48:13.796 -> Error: No Reply from Modem

Turns out that on my MS Surface the connection gets reset after uploading… Now playing around with a “normal” laptop and we are getting through now…

stuck on getGPSfix.

Keep you posted :slight_smile: