1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.6k stars 792 forks source link

RFM69 issue initialization failed #336

Closed savage872 closed 5 years ago

savage872 commented 5 years ago

I'm using version 0.8 and RFM69HW https://www.ebay.co.uk/itm/RFM69HW-868Mhz-433Mhz-915Mhz-20dBm-HopeRF-Wireless-Transceiver-For-Remote-HM-C/272412839767?ssPageName=STRK%3AMEBIDX%3AIT&var=571383421421&_trksid=p2057872.m2749.l2649 Serial connection is showing: ZgatewayRF setup done ZgatewayRFM69 initialization failed ZgatewayRFM69 Listening and transmitting at 433 I have set the gateway to use 868 but for some reason it's using 433

this is from config_RFM69.h

define NETWORKID 4 // was 200the same on all nodes that talk to each other

define NODEID 4 // was 10

//Match frequency to the hardware version of the radio //#define FREQUENCY RF69_433MHZ

define FREQUENCY RF69_868MHZ

//#define FREQUENCY RF69_915MHZ

define IS_RFM69HCW true // set to 'true' if you are using an RFM69HCW module

define POWER_LEVEL 31

Any suggestion why it wouldn't initialize?

1technophile commented 5 years ago

Could you comment zgatewayrf also ?

savage872 commented 5 years ago

I just commented zgatewayrf and uploaded new sketch and it's the same.

1technophile commented 5 years ago

I would double check the wiring and maybe try at different frequencies.

savage872 commented 5 years ago

I followed all the steps from the wiki page. what I didn't understand was

define RFM69_RST D4 // GPIO02/D4 from config_RFM69.h

I thought i had to connect D4 to RST so I connected it I have now disconnected the wire and it looks like it's initialising but it's still showing ZgatewayRFM69 Listening and transmitting at 433 and i have selected 868 and 915 and there is no difference. Any ideas? Thanks for your help so far.

savage872 commented 5 years ago

I have changed ZgatewayRFM69.ino

trc(F("ZgatewayRFM69 Listening and transmitting at")); switch (pGC->rfmfrequency) { // case RF69_433MHZ: // freq = 433; // break; case RF69_868MHZ: freq = 868; break; // case RF69_915MHZ: // freq = 915; // break; // case RF69_315MHZ: // freq = 315; // break; default: freq = -1; break; } trc(freq);

and serial is showing:

ZgatewayIR setup done ZgatewayRFM69 Listening and transmitting at -1

1technophile commented 5 years ago

Strange, try to replace the -1 by 868 maybe : freq = 868;

savage872 commented 5 years ago

I have commented default: freq = -1; break; and only left 868 and it's now working. I now need to figure out how to intercept the messages that my heatmiser wireless thermostat is sending to fire the boiler. :) Thanks for all your help!

1technophile commented 5 years ago

Hmm not sure how you will do the interception, if you succeed don't hesitate to post a thread to omg forum.