Note that ttyUSB0 is typical for me, but your mileage may vary if you have other USB devices attached to your emonBase/emonPi.
I’ve also flipped this around and used the Moteino to listen to the LowPowerLab-based radios, while an RFM69Pi listens to the JeeLibClassic radios. I’ll post about that soon.
Here’s how to go the other way – emonBase with RFM69Pi running the JeeLib Classic radio library while a Moteino USB runs the LowPowerLab radio library.
The quick summary is that on the RFM69Pi you run the JeeLib firmware, while on the Moteino USB you run the LPL emonBase firmware. That firmware can be found in the emonBase_rfm69pi_LPL repository.
Put these together in a directory named emonBase_rfm69pi_LPL to use with Arduino’s IDE. Compile and flash the firmware to the Moteino USB, then plug it into your emonBase or emonPi.
The interfacer entry for emonHub configuration is the same as above.
I learned a number of things when I was trying this out.
First, the Firmware update utility in emonCMS Admin > Update > Update Firmware Only is great. Nice work, OEM team!
This Firmware update utility works really well to switch your RFM69Pi between the JeeLib Classic and LPL firmware.
The Firmware update utility doesn’t currently work to update the firmware in an attached USB device such as a Moteino. There are two reasons for this.
The RFM69Pi update script is hardcoded to work with the GPIO. There’s a clever script that overrides the reset to use GPIO pin 7 on the Pi.
The firmware used by the script is a binary that is compiled for RFM69Pi with its 8mhz internal clock. That’s not an Arduino-compatible board like the Moteino USB, so the .hex firmware is not compatible, even though the source sketch is. So as things stand, the way I would suggest you flash the Moteino firmware is to plug it into your Arduino IDE.
If you want to get the source code from the same place the firmware update script is grabbing it, you can look in /opt/openenergymonitor/EmonScripts/firmware_available.json and find the corresponding repository in the “download_url”.