Anyone tried Laird RM1XX modules?

Did someone maybe made a NOTEPAD ++ language file for LAIRD smartBasic, which includes the LoRa commands for the RM186 and would like to share this ?
I am struggling to get it right. :sunglasses:

Hi,
You temporarily get them from https://www.dropbox.com/s/30bf5c40qizi5a7/RM1xx_Notepad%2B%2B.zip?dl=0

tnx, but that’s not complete with LORA commands , its the one from the LAIRD site.
But I fixed it today myself
:innocent:

What functions are missing?

LORAMACSleepMode
LORAMACReset
LORAMACJoin
LORAMACLinkCheck
LORAMACTxData
LORAMACRxData
LORAMACGetOption
LORAMACSetOption

but I have it working now, only some fine tuning :wink:

All those functions are in the linked file, I’m assuming notepad++ is case sensitive (I don’t use it)? From the file I attached are functions such as: GPIOUNASSIGNEVENT, LORAMACSLEEPMODE, LORAMACRESET, LORAMACJOIN (notice they’re all in upper case). All the LoRaMAC functions on the RM1xx series are included in that zip however.

sorry then i’ve missed that, will have another look :sunglasses:

  • you were right

I have a smartBasic question :

val = 3

wr$="\40\09"
rc=strsetchr(wr$,val,2)
rc=SpiWrite(wr$)

what is wr$ here ?

strsetchr should append (because position ā€˜2’ is past the end index) the val to the existing wr$

so wr$ becomes ā€œ\40\09\03ā€

Does this answer your question?

1 Like

yes it does now ! … its part of an example program from the dev kit, where the rm186 controls the spi connected mcp23S08 and which I try to understand.

thank you :sunglasses:

I’m trying to use the LTC2941 Coulomb counter / Battery gauge on the development kit. I’ve seen the Laird example and can see the counter value increasing however I’m not sure what it’s actually measuring in real terms.

The manual refers to the LTC2941 datasheet but I’m struggling to apply that information to the development kit (ie sense resistor on kit seems to be 1Ω)

Any tips would be most welcome. Maybe @BWhitten or someone who has used ICs like this before?

EDIT: I think I figured it out, going by the formula in the datasheet

and replacing Rsense with 1Ī© I think each ā€œcountā€ measured on the kit reflects 4.25 μAh

If someone can confirm this I’d be very grateful.

Haven’t played with that gauge part on the dev kit.
I am allready happy that I can turn a led on and off through SPI :sunglasses:

1 Like

New firmware available in the Software Downloads section of the Laird website http://www.lairdtech.com/products/rm1xx-lora-modules

RM186 v18.4.1.0

Can’t download the Release notes (my user account doesn’t have permission apparently), but some new options from the include file:

LORAMAC_OPT_MAX_RETRIES 25 //RW - Sets the maximum amount of times a packet can be transmitted without recevieing and acknowledgement

// Private options not publicly documented
LORAMAC_OPT_DUTY_CYCLE_ENABLE 100 //RW - Enable/Disable the duty cycle checks
LORAMAC_OPT_RX2_DEFAULT_DATARATE 101 //RW - Sets the RX2 window default datarate. This is only to get around a bug in the Semtech website.

1 Like

Thanks to the fast technical suppport from Claudio Camilucci and Rick Tretow, the website is fixed.
The release notes for the new firmware > http://www.lairdtech.com/system/files/Release%20Notes%20-%20RM1xx%20Firmware%20v17.4.1.0%20and%2018.4.1.0.pdf

1 Like

waiting 3 weeks @ Farnell for a few RM186 … :rage:

Huh? They have 35 pieces in stock…

yes I know… but they said they have to wait for an export license from LAIRD …

I had the same problem on Sparkfun (export license) with their new ESP32 thing, but now got 3 on my desk :wink:

And I had the same with RN2483’s ordered at Mouser (US)…
What I don’t get is why they advertise them on the website as same day delivery; while in real it takes 3 weeks :frowning:

well problem solved !!!

but still don’t understand this 'export license thing… they have them in stock according to their site, but if you order you’ll have to wait weeks.
so who’s to blame… why do you need for every chip an export license ?