Ubee Sara r410+ Arduino

hello, I am now approaching the use of SODAQ SARA UBEE R410M and I would like to interface it with Arduino, can someone give me directions on how to do regarding the hardware connection?

Hi magmamomento,

Have you tried looking at our guide here?
https://learn.sodaq.com/Shields_and_Bees/ubee/

Regards,
Thom

Hi,
yes I checked, but I can’t set the shield part in the program, when it comes to the shield and therefore the input pins and output

#include <Arduino.h>

// #define R4XX // Uncomment when you use the ublox R4XX module

#if defined(ARDUINO_SODAQ_AUTONOMO)
/* SODAQ AUTONOMO + SODAQ (uBlox SARA) UBee */
#define DEBUG_STREAM SerialUSB
#define MODEM_STREAM Serial1
#define powerPin BEE_VCC
#define enablePin BEEDTR
#define powerTogglePin BEERTS

#elif defined(ARDUINO_AVR_SODAQ_MBILI)
/* SODAQ MBILI + SODAQ (uBlox SARA) UBee */
#define DEBUG_STREAM Serial
#define MODEM_STREAM Serial1
#define powerPin 20
#define enablePin BEEDTR
#define powerTogglePin BEERTS

#else
#error “Please use one of the listed boards or add your board.”
#endif

Hi magmamomento,

Are you trying to use it with an Arduino UNO?
In that case you’ll have to manually define the pins and wire them yourself (with dupont wires probably).

Regards,
Thom

yes, I’ve done it, and it’s ok…
But I have problem with the software program, with Arduino Uno and library problem, I set:

#include <Arduino.h>
#include <SoftwareSerial.h>
#define R4XX // Uncomment when you use the ublox R4XX module

/* SODAQ AUTONOMO + SODAQ (uBlox SARA) UBee */
#define DEBUG_STREAM Serial
#define MODEM_STREAM SoftwareSerial Serial1(2, 3)
//#define powerPin
#define enablePin 11
#define powerTogglePin 13

Hi magmamomento,

I see no errors, what’s the error you’re getting?

Regards,
Thom

It doesn’t work.
I used an Arduino Uno, a breakout board and a Sodaq Sara r410 Ubee so:
VCC-> 3.3V
GND-> gnd
TX-> RX
RX->TX
DTR->5
RTS->6
(how you can see in the picture)

And I upload this sketch on Arduino

#include <SoftwareSerial.h>

#define R4XX //
SoftwareSerial Serial12( 2, 3); // RX, TX
#define DEBUG_STREAM Serial
#define MODEM_STREAM Serial12
#define enablePin 5
#define powerTogglePin 6

#ifdef R4XX
// Start at 115200 allow the USB port to change the Baudrate.
unsigned long baud = 115200; // RICORDA CHE UBLOX COMUNICA COSI
#else
// Start at 9600 allow the USB port to change the Baudrate.
unsigned long baud = 9600;
#endif

void setup()
{

#ifdef enablePin
// Set state to active
pinMode(enablePin, OUTPUT);
digitalWrite(enablePin, HIGH);
#endif // enablePin

#ifdef R4XX
// The R4XX module has an on/off pin.
// You can toggle this pin or keep it low to switch on the module.
pinMode(powerTogglePin, OUTPUT);
digitalWrite(powerTogglePin, LOW);
#endif

delay(100);

// Start communication
DEBUG_STREAM.begin(baud);
MODEM_STREAM.begin(baud);

delay(1000);
}

// Forward every message to the other serial
void loop()
{
while (DEBUG_STREAM.available())
{
MODEM_STREAM.write(DEBUG_STREAM.read());

}
delay(100);
while (MODEM_STREAM.available())
{
DEBUG_STREAM.write(MODEM_STREAM.read());
}
}

Hi magmamomento,

In your code you are defining your modem RX&TX to use pin 2 and 3, yet in the picture you’re connecting it to pin 0 and 1. Please revise.

Regards,
Thom

Change it
It doesn’t work.

regards
magmamomento

Hi magmamomento,

Please provide a new picture.

Regards,
Thom

Hi magmamomento,

Please remove the delay in your loop, this is not desirable.
What’s the PCB that’s below the UBEE? What’s stopping you from directly connecting to the UBEE?
It’s really hard to tell if you properly connected it.

The UBEE should have 10 connectors per side. Looking at the schematic here.

And looking at this image.
https://forum.sodaq.com/uploads/default/original/2X/6/68089eef5ee12cb1f934f5bdb01d257ef68ce8c0.jpeg

The leftmost 3 should be connected, then 5 should not be, then the last 2 should be. In the image I see a gap of 3 pins instead of the expected 5. The opposite side may have the same problem.

If you’re confident you properly connected it there is not much to do aside from ascertaining with a multimeter and checking your serial communication with a logic analyzer / oscilloscope.

Regards,
Thom

Thank you so much, I have a last problem.
I was able to connect and use the AT commands only that I have problems connecting to the network, I do not find the signal despite being using the network nb-iot of the vodafone and everything works well if I use the shied SODAQ SARA 410 AFF.

Regards
M.

Hi magmamomento,

So the device never gets a CSQ or CGATT?

Are you properly feeding the ublox module? You’ll have to supply it with a battery or supercap as the impulsive power draw is way too much for the USB line to properly handle, this causes a serious voltage drop preventing the ublox to function properly.

Regards,
Thom

No,never.
I feeded it with 3.3 V i check

I have a question, the CTS pin is connected?

Hi magmamomento,

You use the CTS pin to tell the “master” that the device is ready to receive. This has more to do with the communication between the master and the device, not something to do with the performance of the ublox module.

Regards,
Thom

Yes, i understand this.
i check some AT COMMAND:

“AT+CREG=0,2”
“AT+CGREG=0,4”
“AT+CSQ=99,99”
Is it possible that the problem is related to the firmware even thought with “ATI9=L0.0.00.00.05.06”

Hi @magmamomento,

It seems you don’t have the latest software.
Please send an email to info at sodaq dot com, from here we can send an reply with the latest firmware files.

Best regards,
Jan