What is it?
RNodeย is an integrated, long-range data-radio module that uses raw LoRa modulation in a variety of frequency bands. It connects to a host via USB or serial, or can be directly programmed for independent operation.
Or in short: A swiss army-knife of a LoRa-based communication device.
RNode can functions as a:
- LoRa interface for any device with a USB or serial port
- General purpose long-range data radio
- A LoRA-based network interface for Ethernet and IP over LoRa
- Packet sniffer for LoRa networks
- LoRa development board
- A LoRa-based KISS-compatible TNC
- Network adapter for RNS
- A flexible platform for experiementing with LoRa technology
- LoRaWAN support is planned for a future firmware update
RNode is controlled by a powerful ATmega1284p MCU, and is fully Arduino compatible. You can use the included firmware, or it can be programmed any way you like, either from the Arduino IDE, or using any of the available tools for AVR development. The included firmware can also be edited and compiled directly from the Arduino IDE.
For adding RNode to your Arduino environment, please see this post.
For configuring an RNode, please have a look at the RNode Config Utility.
RNodes are now shipping, get yours from my shop
Specifications
- High-quality LoRa module with genuine Semtech SX1276 chip
- Powered by an ATmega1284p MCU clocked at 16 MHz
- 128 kilobytes of flash
- 16 kilobytes of RAM
- Large payloads with a packet MTU of 500 bytes
- Up to 17 dBm continuous TX output in 820-1020 MHz
- Up to 14 dBm continuous TX output in 410-525 MHz
- Sensitivity down to -139 dBm
- Data rates ranging from 20 bps to 21.88 kbps
- Mini-USB connector
- SMA antenna connector
- Fully programmable
- Arduino compatible
- Open source firmware and config util
- 17 multi-purpose IO ports available
- All ports can be used as digital inputs or outputs
- 5 ports can be used as analog inputs
- An extra UART serial port is available on two of the pins
- I2C port
- Two PWM outputs are available
- JTAG port available
- Operating range: -20ยฐC to 60ยฐC (non-condensing)
- 23.3 mA idle power consumption
Frequency Bands
RNode can operate in the following two frequency bands:
- 410 – 525 MHz
- 820 – 1020 MHz
Operating Modes
RNode can operate in two modes, host-controlled (default) and TNC mode:
- When RNode is in host-controlled mode, it will stay in standby when powered on, until the host specifies frequency, bandwidth, transmit power and other required parameters. In host-controlled mode, promiscuous mode can be activated to sniff any LoRa frames.
- When RNode is in TNC mode, it will configure itself on powerup and enable the radio immediately. This mode can be enabled by using the configuration utility (the utility will guide you through the settings if you don’t specify them directly).
Resources and Downloads
- User manual
- Download configuration utility
- Configuration utility documentation and source
- Firmware downloads and source code
- LoRa packet sniffer program for RNode
- Programming examples
- Schematics and design files
- Adding RNode to the Arduino IDE
Examples and Learning Resources
If you want some inspiration to get started with RNode, have a look at the following examples. Most of them contain step-by-step instructions on how to do them yourself.
Pinout and Overview
Programming Interface
Using the included libraries, it’s easy to use RNode in your software. Here’s a Python example:
from RNode import RNodeInterface def gotPacket(data, rnode): print "Received a packet: "+data rnode = RNodeInterface( callback = gotPacket, name = "My RNode", port = "/dev/ttyUSB0", frequency = 868000000, bandwidth = 125000, txpower = 2, sf = 7, cr = 5, loglevel = RNodeInterface.LOG_DEBUG) rnode.send("Hello World!")
USB and Serial Protocol
You can communicate with RNode either via the on-board USB connector, or using the serial pins on the board (labeled RX0 and TX0). RNode uses a standard FTDI USB chip, so it works out of the box without additional drivers in most operating systems.
All communications to and from the board uses KISS framing with a custom command set. RNode also does not use HDLC ports in the command byte, and as such uses the full 8 bits of the command byte is available for the actual command. Please see table below for supported commands.
Command | Byte | Description |
---|---|---|
Data frame | 0x00 | A data packet to or from the device |
Frequency | 0x01 | Sets or queries the frequency |
Bandwidth | 0x02 | Sets or queries the bandwidth |
TX Power | 0x03 | Sets or queries the TX power |
Spreading Factor | 0x04 | Sets or queries the spreading factor |
Coding Rate | 0x05 | Sets or queries the coding rate |
Radio State | 0x06 | Sets or queries radio state |
Radio Lock | 0x07 | Sets or queries the radio lock |
Device Detect | 0x08 | Probe command for device detection |
Promiscuous | 0x0E | Sets or queries promiscuous mode |
Ready | 0x0F | Flow control command indicating ready for TX |
RX Stats | 0x21 | Queries received bytes |
TX Stats | 0x22 | Queries transmitted bytes |
Last RSSI | 0x23 | Indicates RSSI of last packet received |
Blink | 0x30 | Blinks LEDs |
Random | 0x40 | Queries for a random number |
Firmware Version | 0x50 | Queries for installed firmware version |
ROM Read | 0x51 | Read EEPROM byte |
ROM Write | 0x52 | Write EEPROM byte |
TNC Mode | 0x53 | Enables TNC mode |
Normal Mode | 0x54 | Enables host-controlled mode |
ROM Erase | 0x59 | Completely erases EEPROM |
Error | 0x90 | Indicates an error |
A few notes on the EEPROM
As a completely open device, RNode does not block you from modifying the EEPROM contents, which specifies things like radio parameters, serial number, manufacture date and similar. But please be aware that doing so might render the device inoperable or burn out the radio. Before making any modifications, please make sure to create a backup of the EEPROM. RNode includes a cryptographic signature of the EEPROM contents, which validates all the information stored within it. You will not be able to re-create a valid signature if you erase it! Without this signature, the board will still function, but warranty will be void. If you upload your own programs or alternative firmwares to RNode, you should make sure that they don’t write to the last 200 bytes of EEPROM. You can back up your EEPROM with the config utility.
How do I get it?
You can buy one from my shop, or make it yourself. Using the circuit design files, it is possible to build a fully functional RNode on a breadboard.
Any idea where I can buy these or how to diy one?
Hi there! They’ll be available in my shop very soon. You can preorder them already, and I will ship out as soon as the first production batch is ready, on the 12th of July the latest, but probably before that.
If you want to build it yourself, there’s some preliminary resources available in the GitHub repository, but it will be easier once I upload files for a breadboard layout.
They’re shipping now!
Hello,
Can this be used with a raspberry pi?
Hi there!
Absolutely, RNode works perfectly with a Raspberry Pi!
ok, let me know when your firmware integrates lorawan. best
Will do! You can also subscribe to the blog feed, I’ll definitely write a post when it’s ready.
Hello,
Is it possible to set IPAddress to Arduino device using RNode and send/receive data within Arduino devices itself?
I want to connect one more sensor in Arduino device with Rnode and send sensor data to another server also should able to receive commands from server using ipaddress.
Hi there!
Currecntly RNode itself does not include an IP stack in the firmware. As such, it is up to the host device (computer, Raspberry Pi, other Arduino or similar) to implement the IP stack, or other networking layer. That being said, there is still enough room in the firmware, that a simple TCP/IP stack could be included on board. I might add this in a future firmware update, but not making any promises as to when ๐
This is neat, but why does it have an outdated mini USB connector? I don’t even know where I’d find a mini USB-B cable.
Because it’s much more sturdy and mechanically secure than micro USB. I also find micro-b much more fiddly to connect, and harder to visually see the orientation at a glance. You can still buy mini-b cables most places online ๐
I see your point, but it’s really frustrating to have to pack and track a legacy connector that I’ve worked to abandon, to support a single device. It would be great if you’d consider a USB Micro-B or USB C option in a future hardware redesign. If I could find a drop-in replacement receptacle for USB micro-B for that pad layout, I’d try swapping it out myself (on this and on a couple of other things I’d like to keep using), but I don’t think one is made.
Yeah, I totally get you. I will be moving all hardware to USB-C in the not too distant future, but I have been holding out on this until adoption was a bit more widespread. I have another product coming out in the next couple of months, and that will probably be the last of the mini-b connectors you will see from me ๐
I’m not sure a micro connector with the same layout exists, but if you do find one, I will be happy to supply some boards to you with no USB connector soldered on, so you can put it on yourself. Or depending on the volume you need, I can make a custom version with a micro-b connector.
I applaud your use of the more robust connector and I have so many bits of test gear and GPSs I’ll never use all the Mini USB cables I have.
Also, I own zero usb-c cables, so don’t rush that connector redesign on my account.
Thanks for the comments! Don’t worry, I still have a couple of thousand mini-b connectors to go through before USB-C will be considered ๐ And then again, I will probably do a poll for current customers on what they’d like to see for the future before doing any design changes. I’m definitely not going to change existing designs over, without also offering an option that keeps the old connectors, since many people rely on these.
820Mhz versions are out of stock. Will there be a new batch?
I will have new stock on november 14th, I really underestimated how popular these would be, so sorry for the wait! I’m considering opening pre-orders, since so many are asking when they will be back.
Hey Mark, does this support a mesh network? Looking to get something like this onto people in an area and have them mesh network back to a single bresknout poiht to log aprs locations etc.
Hi Chris, that is definitely possible, but depending on what you want to do, there’s different ways to achieve it. You’re welcome to send me an email with some more details on exactly what you’re building, and I’d be happy to offer some guidance on the system design.
Was there any further discussion about a mesh protocol?
You can check out Reticulum here: https://github.com/markqvist/Reticulum
That will require a host device for now, until I can port the protocol to C++.
Can you connect this to an RS-232 port by connecting to another USB serial adapter via a powered USB hub?
I assume you want to connect the RNode to another device using RS-232? If that is correct it is very easy to do, and you can do so directly by using the TX, RX and GND connectors on the board itself, so you can skip the USB part entirely if you want.
Any update on availability? Shop says out of stock for everything!
Shop is restocked ๐
Could this be purchased pre programmed and ready to go?
What is the maximum range if placed above structures?
Yes, I do offer custom programming services. Please contact me by mail for the details, you can reach me via mark at unsigned dot io. The maximum range is very, very long. If there is no obstructions it is several hundred kilometers, but it obstructions will of course attenuate the signal. If you send me a mail, with a quick overview of what you are trying to achieve, I can give you a general assessment of whether it will be possible range-wise with these units.
Hey!
would the Rnode normally be delivered without an antenna ? because i already bought one and it delivered without it.
best regards.
Hello!
Yes, it is normally delivered without antenna. This is described on the product page on the shop, but I am sorry if you missed it. Since different uses and frequencies requires different antennas, there is not one standard one that will fit everyone, and you have to select it separately. I have a variety of suitable ones available in the shop, or you can use any other antenna with an SMA connector and suitable frequency. Or you can even build one yourself.
Kind regards,
Mark
hello Mark,
Thank you for your quick reply!
I see ๐ it,s not a problem.
best regards
Mamo
Hi – is there a reference showing the bandwidth requirements for the different data rates? Sorry if i missed it in the docs …
Yes, I made a calculator on this page: https://unsigned.io/understanding-lora-parameters/
It allows you to put in various parameters, including bandwidth, and see the resulting data rates.
Hello,
how do I recompile the RNodefirmware from the source code on a Linux host ?
Best 73
The current firmware version will compile inside the Arduino IDE, so the easiest way is to just install Arduino and compile it within that. You can also compile it outside, but thatโs a bit more involved. The next version of the firmware source will have a standard makefile, so you can just run โmakeโ to compile.
OK, many thanks.
I’ll try first using Arduino platform.
Hello,
is it possible to slowdown the speed on the USB side of a rnode ? I’d like to use it at 38400 bps instead of 115200.
Best 73
Yes, but you will have to change the baudrate in the source code and recompile the firmware. If you’re having trouble doing this, shoot me an email, and I’ll help you out.
when is this back in stock? cheers
Due to some current logistical challenges, and me having moved to another country, I won’t be able to ship any products until january, unfortunately. I apologise for the inconvenience, and hope you understand. I will open the orders for back-ordering soon, so you can place an order if you like, and I’ll ship as soon as I’ve got my inventories moved as well. Everything is just a bit more slow in these times, especially when cross-country moving is involved ๐
Hi,
really great work. I’m totally new to LoraWan, but I have a RFM95 module laying around. Would this be compatible to the Semtech SX1276 for building a RNode with it?
Best regards,
Simon
At the moment, the RNode firmware only supports communicating with SX1276 based modules. The RFM95 is different enough that it would require a new driver in the firmware.