Getting UNO and sparkfun 4g lte shield to work

Does anyone know how i could get UNO and sparkfun 4g lte shield to work, this is what pops up;

IInitializing modem...
[3161] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.3 on Arduino Uno

  Give Blynk a Github star! => https://github.com/blynkkk/blynk-library

[3332] Modem init...
[3631] Connecting to network...
[63845] Register in network failed

At the heart of the LTE Cat M1/NB-IoT shield is a u-blox SARA-R410M-02B LTE Cat M1/NB-IoT modem.

I have downloaded the sparkfun library and got it registered to the network

here is the shield;
https://www.sparkfun.com/products/14997

Updating to the latest Blynk library wouldn’t do any harm.

Pete.

Wow some new stuff :grinning: from file>examples>blynk>borads GSM, which one should i use?

like the arduino MKR NB 1500 has the same modem but then the tx/rx pins would be different and i would have to change those somehow. On tiny gsm github it does not state that SARA-R410M-02B is supported.

Or lets put it this way… the reason i am upgrading is because right now im using simcom sim900 and they dissconect all the time. And im wondering if it is not gonna work better with the 4g shield because the rsssi is only around 5 (with simcom) . When i was testing it in front of me it worked really good (the rssi was around 14). So maybe i should add a signal booster. What would your recommendation be? What is the minimum rssi to work stable?

Someone?

  1. I cannot answer. can you provide a link to the manufacturer so i can look it up? Im assuming you already looked there.

  2. Rssi is a value used at layer 1 & 2 of the osi model, im willing to bet you a 12 pack, you arent going to get an answer from layer 3-7 guys on this forum. They will know their app, but not how well its going to work over a bad connection. Im guessing no one has had the same issue or they would probably know.

All that being said, i still would like to see the end result and hope that you can come to a fix.

I did some more testing on the 4g shield and this is how far it goes now…

Initializing modem...
Modem: 
[8005] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on Arduino Uno

[8107] Modem init...
[8420] Connecting to network...
[8526] Network: 302 720 Hologram
[8527] Connecting to hologram ...
[8600] Connecting to blynk-cloud.com:80
[12090] Redirecting to 45.55.96.146:80
[12184] Connecting to 45.55.96.146:80
[53395] Connecting to 45.55.96.146:80
[184109] Connecting to 45.55.96.146:80
[312010] Connecting to 45.55.96.146:80

And here is my code

/**************************************************************
 *
 * For this example, you need to install Blynk library:
 *   https://github.com/blynkkk/blynk-library/releases/latest
 *
 * TinyGSM Getting Started guide:
 *   https://tiny.cc/tinygsm-readme
 *
 **************************************************************
 *
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 * Blynk supports many development boards with WiFi, Ethernet,
 * GSM, Bluetooth, BLE, USB/Serial connection methods.
 * See more in Blynk library examples and community forum.
 *
 *                http://www.blynk.io/
 *
 * Change GPRS apm, user, pass, and Blynk auth token to run :)
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space

// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 30

// Select your modem:
//#define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_SIM7000
#define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE

#include <TinyGsmClient.h>
#include <TinyGsmClientUBLOX.h>
#include <BlynkSimpleTinyGSM.h>

// Set serial for debug console (to the Serial Monitor, default speed 115200)
#define SerialMon Serial

// Hardware Serial on Mega, Leonardo, Micro
//#define SerialAT Serial1

// or Software Serial on Uno, Nano
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(8, 9); // RX, TX



// Your GPRS credentials
// Leave empty, if missing user or pass
const char apn[]  = "hologram";
const char user[] = "";
const char pass[] = "";

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
const char auth[] = "************************";

TinyGsm modem(SerialAT);

/*#include <SparkFun_LTE_Shield_Arduino_Library.h>
// Create a LTE_Shield object to be used throughout the sketch:
#define POWER_PIN 5
#define RESET_PIN 6
const mobile_network_operator_t MOBILE_NETWORK_OPERATOR = MNO_SW_DEFAULT;
const String APN = "hologram";
LTE_Shield lte(POWER_PIN, RESET_PIN);
*/


void setup()
{
 
  /*pinMode(5,OUTPUT);
  digitalWrite(5,HIGH);
  delay(3200);
  digitalWrite(5,LOW);
  delay(10000);*/
  SerialMon.begin(9600);
  delay(2000);

  // Set GSM module baud rate
  SerialAT.begin(9600);
  delay(5000);

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  SerialMon.println("Initializing modem...");

  String modemInfo = modem.getModemInfo();
  SerialMon.print("Modem: ");
  SerialMon.println(modemInfo);

  

  Blynk.begin(auth, modem, apn, user, pass);
  delay(5000);
}

void loop()
{
  Blynk.run();
}

UPDATE… I ENABLED DEBUG SERIAL

Initializing modem...
[8005] ### Unhandled: Manufacturer: u-blox
Model: SARA-R410M-02B
Revision: L0.0.00.00.05.06 [Feb 03 2018 13:00:41
V 
M:55963
O
Modem: 
[8083] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on Arduino Uno

[8242] Modem init...
[8412] ### Modem: u-blox SARA-R410M-02B
[8550] Connecting to network...
[8659] Network: 302 720 Hologram
[8660] Connecting to hologram ...
[8744] ### Unhandled: Operation not allowed
[8810] Connecting to blynk-cloud.com:80
[8888] ### Unhandled: Operation not allowed
[13794] Connecting to blynk-cloud.com:80
[13873] ### Unhandled: Operation not allowed
[18794] Connecting to blynk-cloud.com:80
[18874] ### Unhandled: Operation not allowed
[23795] Connecting to blynk-cloud.com:80
[23875] ### Unhandled: Operation not allowed
[28748] ### Unhandled: Operation not allowed
[28812] Connecting to blynk-cloud.com:80
[28889] ### Unhandled: Operation not allowed

What do i do in this case?

what would happen if you removed

blynk.begin()

got the client to fullyconnect the generic tinygsm way.
then after you know connectivity is working just fine, you launched

  Blynk.config(auth, server);  
  Blynk.connect();             

What exactly do u mean by “server”. it says ‘server’ was not declared in this scope

I copied this from my old code, and assumed you would modify it to make it work.

yes, please remove the server portion of the code.

now this… no matching function for call to ‘BlynkSIM::config(const char [33])’

When i get stream debugger in the picture…

Initializing modem...
ATI

Manufacturer: u-blox
Model: SARA-R410M-02B
Revision: L0.0.00.00.05.06 [Feb 03 2018 13:00:]S:2II55963
O
[8005] ### Unhandled: Manufacturer: u-blox
Model: SARA-R410M-02B
Revision: L0.0.00.00.05.06 [Feb 03 2018 13:00:]S:2II55963
O
Modem: 
[8081] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on Arduino Uno

[8240] Modem init...
AT

OK
ATE0

OK
AT+CMEE=2

OK
AT+CGMI

u-blox

OK
AT+GMM

SARA-R410M-02B

OK
[8412] ### Modem: u-blox SARA-R410M-02B
AT+CPIN?

+CPIN: READY

OK
AT+CPIN?

+CPIN: READY

OK
AT+CPIN?

+CPIN: READY

OK
[8551] Connecting to network...
AT+CEREG?

+CEREG: 0,5

OK
AT+COPS?

+COPS: 1,0,"302 720 Hologram",8

OK
[8662] Network: 302 720 Hologram
[8663] Connecting to hologram ...
AT+CGACT=1,0

ERROR
AT+CGATT=1

OK
AT+CGDCONT=1,"IP","hologram"

OK
AT+CGACT=1,1

OK
[8862] Connected to GPRS
AT+USOCL=0,1

+CME ERROR: Operation not allowed

[8943] ### Unhandled: Operation not allowed
AT+USOCL=0,1

+CME ERROR:[9009] Connecting to blynk-cloud.com:80
AT+USOCR=6
 Operation not allowed


+CME ERROR: Operation not allowed

[9092] ### Unhandled: Operation not allowed
AT+USOCL=0,1

+CME ERROR:[13993] Connecting to blynk-cloud.com:80
AT+USOCR=6
 Operation not allowed


+CME ERROR: Operation not allowed

[14072] ### Unhandled: Operation not allowed
AT+USOCL=0,1

+CME ERROR:[18995] Connecting to blynk-cloud.com:80
AT+USOCR=6
 Operation not allowed


+CME ERROR: Operation not allowed

its having trouble connecting to your provider, you agree?

U could be right but when i run the register operator sketch that comes with the shield library…

Initializing the LTE Shield...
...this may take ~25 seconds if the shield is off.
...it may take ~5 seconds if it just turned on.
LTE Shield connected!

Already connected to: 302 720 Hologram
Press y to connect to a new operator, or any other key to continue.

Connection info:
APN: hologram
IP: 10.59.8.193
Operator: 302 720 Hologram
RSSI: 22


And when i put it in a particle boron 2/G 3/G everything works perfect. so the sim should have data

out of my league…
we were actually out of my league at the start.
sorry man… i better let the pro’s take over

I understand… It would be a blast if Volodymyr Shymanskyy would club in on this or someone who really understands the TinyGsmClientUBLOX.h file

Your problem may be related to the fact that the Sparkfun LTE modem doesn’t work on Verizon and without using their library you don’t have the ability to force a different carrier. I am having similar issues with their library not being compatible with Blynk on it’s own as well as having no standard HTTP transmission to work with thingsboard.io.