IBM LMIC Library with Lambda 9S Lora Module

Hi all, I am new to this and I have some basic questions. I am trying to create an end node to send a hello world message to my application using a Lambda 9s (suggested by my teacher) and an Arduino pro mini. I use the LMIC library from IBM and I use the example for ttn-abp. I modified all the fields in config.h to match the frequency used in my region. However, as soon as I upload my code, it starts and fails immediately. I checked my connection over and over again, however it is still not working.
For reference, here is the youtube tutorial I am following:

How can you tell?

Can you provide links to the LoRa module you are actually using please.

Whic version of the Arduino Pro Mini are you using, 5V or 3.3V ?

Whilst you can get a TTN node working on a Pro Mini, this Arduino is very limited in memory and a long way from an ideal choice as the Arduino.

You might know exactly what you mean by that, but the forum does not. Provide a lot more details please, such as any error messages etc …

Hi, sorry being unclear

Here is the lora module I use:
https://www.digikey.ca/en/products/detail/rf-solutions/LAMBDA-9S/9555700

I use the arduino pro mini at 3.3V

The error is displayed in my serial monitor:

13:54:56.090 → Starting

13:54:56.090 → FAILURE

13:54:56.090 → /Arduino/libraries/IBM_LMIC_framework/src/lmic/radio.c:691

Moreover, when I go to radio.c:691 it is just a line where it defines the sx1276 (this is because I set the SX1272 in my config.h)

I hope it’s more clear

It is.

I would test the setup using an example sketch from one of the Arduino point to point LoRa libraries, these normally do a connection test to the LoRa module at startup, so you can check if its connected up OK.

I have a standalone Arduino sketch, no LoRa library needed, which will check that the Arduino can read the LoRa device, it works with DIO0, DIO1, DIO2 and NRESET not connected … if your interested …

Ask questions on here, TTN related only of course.

Ah, your using an SX1272 not so easy …

The significant difference between the SX1272 and SX1276/8 is that the polarity of NRESET is inverted. However the SX127X is fairly ambivalent about the NRESET pin, and you will mostly find that if the pin is disconnected, the LoRa device works just fine at power up.

1 Like

It’s getting there, but we don’t know precisely which code you are using and whilst I’ve read the source several times and have a rough idea what’s on line 691 of radio.c, I’m not going to guess because that won’t help.

A permalink to the line in GitHub will help enormously, given that the volunteers have many things to do and not enough time.

NB: This thread has been purged of hijackers who should have used Messages.

1 Like

I am using the following library:

Hi thank you so much, yes I will try it right now. I was wondering if you have a link where I can see the examples. Moreover, I want to ask if my connection might be the issue since it is not soldered?

It might work without soldered connections but probably 99% of the time it wont.

This library;

Has test sketches called ‘2_Register_Test’ (for SX127X, SX126X and SX128X) that are standalone (on purpose!) LoRa device checkers. You dont need to install the Arduino library just use the sketch. The sketch will print out the LoRa device registers and samples of what to expect are in the comments included in the sketch. As per the sketch notes, leave the NRESET and DIO0 pin of the LoRa device not connected.

On an ATmega processor, such as the Arduino Pro Mini, you can leave the NRESET and DIO pins connected, since these do default to inputs and are thus floating and do not affect the test sketch.

1 Like

Perfect, I will go and solder my wires first

I just ran it, and no device was found. I will go solder my connections and try again. Thank you so much for your help, it is really appreciated.

Your using Dupont wires to connect the LoRa module, and for the example test sketch I suggested to work you do only need to connect, GND, VCC, SCK, MOSI, MISO, NSS. Leave all other pins disconnected.

And for the 1% of the time that it does work, it will stop working within one micro-fortnight.

Looking at your picture, you do not appear to have connected NSS/nSEL, so the module will never know that it’s being talked to which is pretty much the same as the module not being found. Which is just as well as you do not have an antenna connected which runs the risk of destroying the output stage. You will need to tell LMIC about the Tx/Rx RF switch which will require you to alter LMIC to cope with the two pins on the radio module as the library only supports a single pin for the switch.

You define which radio module you are using in config.h. The asserts in radio.c are mostly about key registers being correct, perhaps you can verify with the permalink suggestion?

The video uses an SX1276, you may be better served to return the high priced RF Solutions module and get an RFM95. Or lookup LMIC-node on GitHub that has instructions & support created by one of the forum moderators.

Hi, so I also have a RFM95. I soldered the wires and I connected the following:

  • GND of RFM95 to GND of arduino pro mini
  • 3.3V of RFM95 to Vcc of arduino pro mini
  • MISO to pin 12 of arduino pro mini
  • MOSI to pin 11 of arduino pro mini
  • SCK to pin 13 of arduino pro mini
  • NSS to pin 10 of arduino pro mini
    Then I ran the example test sketch and still no device detected. The RFM95 I have is brand new, and the soldering is tight. Do you know what might be the issue?

Yes, I just noticed that in the picture the NSS was not connected, I think the dupont wire unconnected while I took the picture. Okay thank you, I will install the antenna, do you know which one would be good? I also have an RFM95 with me. I tested the example given by LoRaTracker but no device was found.