No softspi support for RFM69
-
Thanks. Chat message sent w/ my email to get the files. I won't have time to mess with the radios until next week but then I can set up a git pull request with your changes if you like. I decided to spend the $7 and get a Mega for my gateway and duplicate your set up (except w/ the MqttClientGateway). Did you apply the ethernet shield reset fix to the mega+ethernet? More info here: http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors/156
-
I'm using Arduino Mega in my gate because I want to add LCD display in the future . Uno has too little ram to do it.
Now when I compile MQTTgateway sketch with my RFM69 soft spi library in the arduino ide it takes 18 838 bytes, variables 882 bytes, so this should be fit for Uno. -
Nice. I bought a Mega with an LCD touch screen too. I also thought it would be interesting to have a gateway that can show you messages it receives on a screen and other information.
-
OK, finally I put my library and files at GitHub repositories. You can find it at https://github.com/gieemek
-
Thanks. Chat message sent w/ my email to get the files. I won't have time to mess with the radios until next week but then I can set up a git pull request with your changes if you like. I decided to spend the $7 and get a Mega for my gateway and duplicate your set up (except w/ the MqttClientGateway). Did you apply the ethernet shield reset fix to the mega+ethernet? More info here: http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors/156
@TD22057 said:
Thanks. Chat message sent w/ my email to get the files. I won't have time to mess with the radios until next week but then I can set up a git pull request with your changes if you like. I decided to spend the $7 and get a Mega for my gateway and duplicate your set up (except w/ the MqttClientGateway). Did you apply the ethernet shield reset fix to the mega+ethernet? More info here: http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors/156
I don't need to reset my gateway after power lost (Arduino Mega 2560 + ethernet shield + RFM69HW radio) - everythng working good.
-
I'm using Arduino Mega in my gate because I want to add LCD display in the future . Uno has too little ram to do it.
Now when I compile MQTTgateway sketch with my RFM69 soft spi library in the arduino ide it takes 18 838 bytes, variables 882 bytes, so this should be fit for Uno.@gieemek said:
I'm using Arduino Mega in my gate because I want to add LCD display in the future . Uno has too little ram to do it.
Now when I compile MQTTgateway sketch with my RFM69 soft spi library in the arduino ide it takes 18 838 bytes, variables 882 bytes, so this should be fit for Uno.Ooops, I have made a mistake. My MQTTGateway.ino sketch with RFM_softSPI library compiles to 28 474 bytes, variables 1 003 bytes. Sorry for my earlier notes.
-
Thanks! The connection diagrams are a nice touch. I'll take a look and try it out (probably w/ the MQTTClientGateway) as soon as I can.
How hard would it be to make a version of RFM69 that would support soft and hard spi? I haven't run diff's yet to see what your modifications were but it would be nice if this was a fork of the LowPowerLap library so Felix could fold back in to his version code. Having two versions of the same file that I have to switch between might get confusing in the future.
-
Modifications were easier than I expected, only that I am successfull (I'm not a programmer).
For now, the program did not switching between soft and hard SPI and I fail to realize it fast - really frequently change the file is uncomfortable.
I want to send my library to LowPowerLab to check it.
If you are interested in further modification of this library, I can send you by mail a list of changes I made. -
I modified MyConfig.h file and RFM69 driver to allow you build gateway (ethernet or MQTT) with W5100 ethernet and RFM69 radio modules using SoftSPI bus. You can find it at: https://github.com/gieemek/RFM69_softSPI-for-MySensors-2.1.1