It seems that the softspi functions were not implemented as part of the Rfm69 implementation and this is not mentioned anywhere as far as I can tell. There is a big difference in the Rf24.h and Rf69.h files. This means that it is not possible to use ethernet gateway with Rfm69 and wiznet module
mrmin24
@mrmin24
Best posts made by mrmin24
-
No softspi support for RFM69
Latest posts made by mrmin24
-
RE: No softspi support for RFM69
I managed to get the softspi working and will upload to Git soon
-
RE: RFM69 support on ethernet gateway
OK, so I have tried implementing the SOFTSPI, but have not had any luck.
I did the following:
Remove any and all things related to RF24 as I won't be using it.
//////////////////////////////////////////////
Changed MyConfig.h to include:#define SOFTSPI
#ifdef SOFTSPI
// Define the soft SPI pins used for RF69 radio
const uint8_t SOFT_SPI_MISO_PIN = 16;
const uint8_t SOFT_SPI_MOSI_PIN = 15;
const uint8_t SOFT_SPI_SCK_PIN = 14;
const uint8_t SPI_MODE = 0;
#define RF69_SPI_CS 6 // SS is the SPI slave select pin, for instance D10 on atmega328#else
#define RF69_SPI_CS SS//SS // SS is the SPI slave select pin, for instance D10 on atmega328
#endif
//////////////////////////////////////////////////
Change RF69.h to include:#define RF69_MAX_DATA_LEN 61
#if defined SOFTSPI
#include <DigitalIO.h>
#else
#include <SPI.h>
#endif-> lower down
class RFM69 {
private:
#ifdef SOFTSPI
SoftSPI<SOFT_SPI_MISO_PIN, SOFT_SPI_MOSI_PIN, SOFT_SPI_SCK_PIN,SPI_MODE> spi;
#define _SPI spi
#else
#define _SPI SPI
#endif////////////////////////////
changed RFM69.cpp:-
changed all SPI.xxx calls in file to _SPI.xxx
////////////////////////////////////////
Everything works if I NOT #define SoftSPI and connect radio to normal SPI pins without ethernet shield.
When I #define softspi and move radio to defined pins, the radio does not initialise.Maybe one of you clever people can help.
Thanks
-
-
RE: RFM69 support on ethernet gateway
As far as I can tell, this is because softspi has not been implemented for the Rfm69. This means when using wiznet ethernet shield, the library cannot initialise the radio and hangs up. Bug report logged
-
V_access and V_sprinkler
I am glad to see there is now V_sprinkler. what would be useful is if one can extend the definition to include sending a time in seconds for the sprinkler to stay on. This way, the node can take care of switching it off again in case the controller stops working for some reason.
I also implemented/tested a V_Access/V_toggle type which is used to trigger a relay for 1-3 sec to open a door or gate. It also requires the time for toggle to be sent as with Sprinkler.
-
No softspi support for RFM69
It seems that the softspi functions were not implemented as part of the Rfm69 implementation and this is not mentioned anywhere as far as I can tell. There is a big difference in the Rf24.h and Rf69.h files. This means that it is not possible to use ethernet gateway with Rfm69 and wiznet module
-
RE: Which is better: RFM69 or NRF24L01+?
@NeverDie Probably, but I don't think you should stress too much. The power is not "that" high.
See http://ham.stackexchange.com/questions/140/good-wire-for-wire-antenna for what seems like valid response.
-
RE: Which is better: RFM69 or NRF24L01+?
Hi,
Anyone got the Ethernet gateway going with RFM69? I am struggling and I am not sure, but I think there are a few issues in the V1.5 for RFM69.
@NeverDie, a 78mm piece of wire works well for antenna.
*Edit - Sorry, this is assuming 915MHz. See https://www.easycalculation.com/physics/electromagnetism/antenna-wavelength.php and choose quater wavelength -
RE: Updating to 1.5 and question about RFM69HW
Hi,
Which gateway are you using? I am struggling with RFM69 on Ethernet.
Thanks
-
RFM69 support on ethernet gateway
Hi,
I have managed to get the serial gateway working with RFM69 modules using latest development baseline. Does anyone know whether the Ethernet gateway is working yet with RFM69? I can't even get it to initialise properly.
Thanks