LowPowerLab Forum

Hardware support => Moteino => Topic started by: toberkel on February 20, 2018, 11:16:02 AM

Title: Moteino with Weathershield as TinyTX replacement?
Post by: toberkel on February 20, 2018, 11:16:02 AM
Hi there,

I recently bought a Moteino inkl Weathershield for testing... Currently I have 8 TinyTX (https://nathan.chantrell.net/tinytx-wireless-sensor/) with RFM69CW in use and a RFMPi69 (https://shop.openenergymonitor.com/rfm69pi-433mhz-raspberry-pi-base-station-receiver-board/) as receiver. Sadly I didn't read the documentation extensively, because I tought "Hey, the Moteino will talk to the RFMPi69, anyhow". Now I came to the point where I think "Damn, how the *piep* can I get the Moteino+Weathershield send their data to the RFMPi69"...

If I open Minicom on my Raspberry Pi I get Packets like these from my 8 TinyTX nodes:
OK 16 8 12 231 12 152 8 (-73)

The RFMPi69 uses the Jeelib library...

Is there ANY way to make the Moteino talk to the RFMPi69 AND I still can use my other 8 nodes? So basically I need to make the Moteino talk like the Jeelib library...

If the Moteino performs well, I want to replace the TinyTX boards, but now I have to use both. I want avoid to use a second Pi just as a receiver for the Moteino...

Regards,
toberkel
Title: Re: Moteino with Weathershield as TinyTX replacement?
Post by: Felix on February 20, 2018, 11:32:17 AM
As long as they are both RFM69 they can communicate, looks like the RFM69Pi is also based on that and the 328p.
Just program them each with their own library if that's what it takes, and make the messages be the same format as what your RFM69Pi expects
So with that said, what is the difference, why are you not able get them to communicate?


Ah never mind the last question, it's probably because the different radio settings in the different libraries!
You can probably just program the Moteinos with the Jeelib then. The only problem I think you might have is programming a HW/HCW radio vs a CW, I am not sure how Jeelib handles that, in the RFM69 library it's very easy (see examples (https://github.com/LowPowerLab/RFM69/tree/master/Examples)).
Also make sure the radio interrupt is on the same pin, on Moteinos it's on digital pin 2 of the atmega328p.
Let me know if this helps.
Title: Re: Moteino with Weathershield as TinyTX replacement?
Post by: toberkel on February 20, 2018, 04:19:10 PM
Hi Felix,

thanks for your fast reply! Yes, thats what I want to try now... Replace the RFM.h with the Jeelib.h in the WeatherNode.ino... So if I get this to work, the packets should have the same structure and should be accepted/reported OK from the RFMPi69...

I will come back and give you a feedback!