SOLVED: Problems registering MySensors node

8 years 11 months ago - 8 years 11 months ago #1403 by ArneiO
I am attempting to bring to life my first node using an NRF24L01+, after having successfully implemented several ESP8266 nodes.
I am running V0.8 EasyIoT server on an Rpi2, and have connected an NRF24L01+ to the signals indicated in the diagram in the Server Installation Guide . Using the same signals but different pins since I am on an RPi2.
My node is an arduino miniproclone with an NRF20L01+ and a DHT-11. I have uploaded to the arduino the HumiditySensor sketch that is an example in the Arduino IDE after having installed the MySensor library.
I have not managed to register the driver. I push the button, power the node, waits... and timeout. I have verified that the Channe number, the Base Radio Id and data rate is the same as in the MyConfig.h file.
The server window shows the following:
2015-05-10T18:33:21.1166080+02:00	DEBUG	MySensors				MySensors Connect
================ SPI Configuration ================
CSN Pin  	 = CE0 (PI Hardware Driven)
CE Pin  	 = Custom GPIO25
Clock Speed	 = 8 Mhz
================ NRF Configuration ================
STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1	 = 0xa8a8e1fc00 0xa8a8e1fc00
RX_ADDR_P2-5	 = 0xff 0xc4 0xc5 0xc6
TX_ADDR		 = 0xe7e7e7e7e7
RX_PW_P0-6	 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA		 = 0x3b
EN_RXADDR	 = 0x06
RF_CH		 = 0x5f
RF_SETUP	 = 0x27
CONFIG		 = 0x0e
DYNPD/FEATURE	 = 0x3f 0x06
Data Rate	 = 250KBPS
Model		 = nRF24L01+
CRC Length	 = 16 bits
PA Power	 = PA_MAX
2015-05-10T18:33:21.2192880+02:00	DEBUG	MySensors				Mysensors Start driver.
2015-05-10T18:36:37.3924440+02:00	INFO	EasyIoTWebinterface	EasyIoTConfig	Driver	MySensors	/Api/EasyIoT/Config/Driver/MySensors/AddNode//
The serial monitor connected to the node shows absolutely nothing.
By inserting debug printouts in in the sketch I can say that it stops at gw.begin() in setup().

Can anyone enlighten me as to what I might be doing wrong? Is there any way of checking that the NRF20L01 sitting on my Rpi2 is detected and operational?

PS: The arduino sketch contains several Serial.println("whatever") without any Serial.begin() in the setup(). I am not able to get any response from my Aardunio without inserting a Serial.begin(). I am puzzled as to this seeming error, and wonder if there are other issues in the sketch.

This is the Arduino sketch.

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1406 by EasyIoT

ArneiO wrote: I am attempting to bring to life my first node using an NRF24L01+, after having successfully implemented several ESP8266 nodes.
I am running V0.8 EasyIoT server on an Rpi2, and have connected an NRF24L01+ to the signals indicated in the diagram in the Server Installation Guide . Using the same signals but different pins since I am on an RPi2.
My node is an arduino miniproclone with an NRF20L01+ and a DHT-11. I have uploaded to the arduino the HumiditySensor sketch that is an example in the Arduino IDE after having installed the MySensor library.
I have not managed to register the driver. I push the button, power the node, waits... and timeout. I have verified that the Channe number, the Base Radio Id and data rate is the same as in the MyConfig.h file.
The server window shows the following:

2015-05-10T18:33:21.1166080+02:00	DEBUG	MySensors				MySensors Connect
================ SPI Configuration ================
CSN Pin  	 = CE0 (PI Hardware Driven)
CE Pin  	 = Custom GPIO25
Clock Speed	 = 8 Mhz
================ NRF Configuration ================
STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1	 = 0xa8a8e1fc00 0xa8a8e1fc00
RX_ADDR_P2-5	 = 0xff 0xc4 0xc5 0xc6
TX_ADDR		 = 0xe7e7e7e7e7
RX_PW_P0-6	 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA		 = 0x3b
EN_RXADDR	 = 0x06
RF_CH		 = 0x5f
RF_SETUP	 = 0x27
CONFIG		 = 0x0e
DYNPD/FEATURE	 = 0x3f 0x06
Data Rate	 = 250KBPS
Model		 = nRF24L01+
CRC Length	 = 16 bits
PA Power	 = PA_MAX
2015-05-10T18:33:21.2192880+02:00	DEBUG	MySensors				Mysensors Start driver.
2015-05-10T18:36:37.3924440+02:00	INFO	EasyIoTWebinterface	EasyIoTConfig	Driver	MySensors	/Api/EasyIoT/Config/Driver/MySensors/AddNode//
The serial monitor connected to the node shows absolutely nothing.
By inserting debug printouts in in the sketch I can say that it stops at gw.begin() in setup().

Can anyone enlighten me as to what I might be doing wrong? Is there any way of checking that the NRF20L01 sitting on my Rpi2 is detected and operational?

PS: The arduino sketch contains several Serial.println("whatever") without any Serial.begin() in the setup(). I am not able to get any response from my Aardunio without inserting a Serial.begin(). I am puzzled as to this seeming error, and wonder if there are other issues in the sketch.

This is the Arduino sketch.


Your NRF24l01 is properly connected to RPI. If it is not properly connected you see "Check wires message". Try to enable debug in MySensors library on node side to see what's happening.
The following user(s) said Thank You: ArneiO

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1408 by ArneiO

EasyIoT wrote: Your NRF24l01 is properly connected to RPI. If it is not properly connected you see "Check wires message". Try to enable debug in MySensors library on node side to see what's happening.


OK, so I know I'm OK server side. Good!

I enabled debug in MyConfig.h library, and got "check wires" message from arduino on node side.

I have wired according to Connection diagram on this page .
I re-checked, and the wiring now, it is according to that diagram.

EDIT
...and now it registered! :cheer:
The wiggling of wires on my breadboard during the check apparently did the trick. Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.179 seconds

Forum latest

  • No posts to display.