This is working great !
Tx for this !
This is working great !
Tx for this !
You could maybe hack / re-use the radio from the Motino
Hello,
I had a look at RFM69.cpp, bool RFM69::initialize function.
It a bit far away from my current skill to debug.
I've tried to display registers to check if they have been properly initialized.
Serial.println( "bool RFM69::initialize" );
Serial.println( "Read Registers" );
Serial.print( "RegOpMode Read 0x01 : " );
Serial.println( readReg( 0x01) );
Serial.print( "RegDataModul Read 0x02 : " );
Serial.println( readReg( 0x02) );
Serial.print( "RegVersion Read 0x10 : " );
Serial.println( readReg( 0x10) );
Serial.print( "RegRssiValue Read 0x24) : " );
Serial.println( readReg( 0x24) );
Serial.println( "" );
Output is
0;0;3;0;9;Starting...
bool RFM69::initialize
Read Registers
RegOpMode Read 0x01 : 4
RegDataModul Read 0x02 : 0
RegVersion Read 0x10 : 36
RegRssiValue Read 0x24) : 56
scandone
f 0, ....scandone
.add 0
aid 7
pm open phy_2,type:2 0 0
cnt
Seems the registers are OK. However I can't go a step further.
I'm please to help for testing any new enhancement.
Regards,
Mersing.
Hello,
I'm now testing with 1.6, on GW and Node.
I'm trying to get familiar with the 1.6 changes.
On the node how can I setup the NODE ID ? ( it seems that gw.begin( NULL, 5) can't be used anymore).
On the Node side, I'm using DallasTemperatureSensor.ino.
Should I add presentation() call from Setup () ?
void setup() {
// Startup up the OneWire library
sensors.begin();
// requestTemperatures() will not block current thread
sensors.setWaitForConversion(false);
presentation();
}
I've setup the communication with RF24, as a first test.
From the GW
0;0;3;0;9;read: 5-5-0 s=255,c=0,t=17,pt=0,l=10,sg=0:1.6.0-beta
0;0;3;0;9;read: 5-5-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
0;0;3;0;9;read: 5-5-0 s=255,c=3,t=11,pt=0,l=18,sg=0:Temperature Senso
0;0;3;0;9;read: 5-5-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
0;0;3;0;9;read: 5-5-0 s=255,c=3,t=11,pt=0,l=18,sg=0:Temperature Senso
0;0;3;0;9;read: 5-5-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
0;0;3;0;9;read: 5-5-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
0;0;3;0;9;read: 5-5-0 s=0,c=1,t=0,pt=7,l=5,sg=0:23.6
0;0;3;0;9;read: 5-5-0 s=0,c=1,t=0,pt=7,l=5,sg=0:23.7
Everything is working fine. (Seems the Node ID is coming from previous 1.5 upload, I've setup it to 5)
I've then replaced the radio by RF69 ones.
Below the changes in GatewayESP8266.ino
#define MY_RADIO_RFM69
#define MY_RF69_IRQ_PIN 4
Node ouput
Starting...
send: 5-5-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=fail:1.6.0-beta
send: 5-5-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
send: 5-5-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=fail:Temperature Sensor
send: 5-5-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.1
sensor started, id=5, parent=0, distance=1
send: 5-5-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=fail:Temperature Sensor
send: 5-5-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.1
find parent
send: 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
send: 5-5-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=fail:
send: 5-5-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=fail:22.5
send: 5-5-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=fail:22.6
GW Output
0;0;3;0;9;Starting...
scandone
f 0, ....scandone
.add 0
aid 7
pm open phy_2,type:2 0 0
cnt
connected with WRT54G, channel 6
dhcp client start...
.ip:192.168.1.25,mask:255.255.255.0,gw:192.168.1.1
.IP: 192.168.1.25
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
ESP8266 MySensors Gateway
Connecting to WRT54G
sl
f -240, ....scandone
usl
sul 7 0
reconnect
rm 0
pm close 7 0 0/3399505
f 0, ....scandone
.add 0
aid 7
pm open phy_2,type:2 0 0
cnt
connected with WRT54G, channel 6
dhcp client start...
..ip:192.168.1.25,mask:255.255.255.0,gw:192.168.1.1
.Connected!
IP: 192.168.1.25
Nothing more on the GW side.
Any idea ? Where (lib) can I start troubleshooting ?
Regards.
Hello,
I received addition log on the GW:
ESP8266 MySensors Gateway
Connecting to WRT54G
.......Connected!
IP: 192.168.1.25
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
0;0;3;0;9;Inclusion started by button.
0;0;3;0;5;1
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;9;Inclusion started by button.
0;0;3;0;5;0
"Inclusion started by button." are coming randomly (not triggered by node reboot ).
Hello,
I've setup a ESP8266 Gateway with RF24 Radio.
I've got a RF24 Node with DS18B20.
I'ved used Esp8266Gateway.ino / DallasTemperatureSensor.ino out of the box.
Everything is working fine. Node and GW are communicating.
I'm now trying to run this setup with RF69. I'm facing the same issue as described in the initial post.
Pin mapping
RF69 <-> ESP8266
DIO0 <-> GPIO4
SCK <-> GPIO14
MOSI <-> GPIO13
MISO <-> GPIO12
CS <-> GPIO15
From RFM69.h
define RF69_SPI_CS SS
#elif defined(ARDUINO_ARCH_ESP8266)
// TODO !! Untested code! Entering unknown territory...
#define RF69_IRQ_PIN 4
#define RF69_IRQ_NUM 0
#endif
By default, from RFM69.h, RF69_IRQ_PIN is 2.
However to properly boot GPIO15 must be LOW and GPIO2 must be HIGH.
Connecting IRQ to GPIO2, RF69 pull its IRQ to LOW, making GPIO2 LOW and ESP8266 not booting.
Then I'll use GPIO4.
I'm using the same config file for GW and Node (e.g same NWETWORKID, ENCRYPTKEY, FREQUENCY).
On the Node Side : DallasTemperatureSensor.ino
#define isRFM69HW true // Enable High Power
MyTransportRFM69 transport( RFM69_FREQUENCY, RFM69_NETWORKID, RF69_SPI_CS, RF69_IRQ_PIN, isRFM69HW, RF69_IRQ_NUM );
MySensor gw( transport );
gw.begin( NULL, 8 );
On the GW Side : Esp8266Gateway.ino
#define isRFM69HW true
MyTransportRFM69 transport(RFM69_FREQUENCY, RFM69_NETWORKID, RF69_SPI_CS, RF69_IRQ_PIN, isRFM69HW, RF69_IRQ_NUM);
OUTPUT
GW Side
ESP8266 MySensors Gateway
Connecting to WRT54G
.......Connected!
IP: 192.168.1.25
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
Node
send: 8-8-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
send: 8-8-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
sensor started, id=8, parent=0, distance=1
send: 8-8-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=fail:Temperature Sensor
send: 8-8-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.1
send: 8-8-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=fail:
send: 8-8-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=fail:21.5
find parent
send: 8-8-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
send: 8-8-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=fail:21.5
send: 8-8-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=fail:21.5
No more log output from the Gateway.
Any clue ?