Hi
I have received 6 of the new SODAQ SARA-N211 with Arduino on board and can’t get the nbIOT_serial_passthrough to work. How should I set the serial bus to communicate to the modem?
I have also tried to upgrade the FW on the modem, but does not work. (Works on the NB-IoT sheild).
Hi,
You need to change the Serial Passthrough sketch.
#include “Arduino.h”
#define USB SerialUSB
#define UBLOX Serial1
#define powerPin UBLOX_EN
unsigned long baud = 9600; //start at 9600 allow the USB port to change the Baudrate
void setup()
{
pinMode(TX_PWR_GATE, OUTPUT);
pinMode(TX_18_33, OUTPUT);
digitalWrite(TX_PWR_GATE, HIGH); // U8 level translator powered on
digitalWrite(TX_18_33, LOW); // select the I/O voltage
pinMode(powerPin, OUTPUT); // Turn the nb-iot module on
digitalWrite(powerPin, HIGH);
delay(1000);
// Start communication
USB.begin(baud);
USB.println(“Serial Port Active”);
UBLOX.begin(baud);
}
// Forward every message to the other serial
void loop()
{
while (USB.available())
{
uint8_t c = USB.read();
UBLOX.write©;
}
while (UBLOX.available())
{
USB.write(UBLOX.read());
}
// check if the USB virtual serial wants a new baud rate
if (USB.baud() != baud) {
baud = USB.baud();
UBLOX.begin(baud);
}
}
Hi,
If the latest nbiot library is installed you can load the example
Sketch -> examples -> sodaq_nbiot -> serial_passthrough
Kind regards,
Jan
Hi
Still having problems with the board. serial_passthrough do not work. No response in the terminal.
I see ChrisK is writing…
pinMode(TX_PWR_GATE, OUTPUT);
pinMode(TX_18_33, OUTPUT);
digitalWrite(TX_PWR_GATE, HIGH); // U8 level translator powered on
digitalWrite(TX_18_33, LOW); // select the I/O voltage
Do I really need this?
What are the TX_PWR_GATE and TX_18_33?
Where can I find a shematic for the board?
Kind regards
Henrik
These are the old pinnames.
You need to use the sketch on this page with the latest boardfiles:
http://support.sodaq.com/sodaq-one/sara/
Kind regards,
Jan
Problem solved!
Used the wrong board all the time.
Used Arduino Genuino Zero instead of SODAQ SARA.