no debug logs on sensebender micro, why?
-
To be clear, this is what the printouts are. I changed the NodeId to make sure the code being run is mine, so the upload succeeded:
TSM:INIT
TSM:INIT:TSP OK
TSM:INIT:STATID,ID=8
TSF:ASID:OK,ID=8
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:NO REPLY
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:NO REPLY
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:NO REPLY
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
TSM:FAILURE
TSM:FAILURE:PDT -
This is because the sensor is still initialising and unable to complete as it is unable to find the gateway. It'll loop until it does find a gateway/parent, once it has it'll then go on to process your code.
Have you set up a gateway already?
I had this problem recently. Turned out to be a bad radio.
-
Thanks for the tip. I do have RaspberryPi with nrf24l01+ and I have terminal open there with serial gateway running in foreground. The radio on raspi side seems to report it's address and info at the start. Only very rarely I see some read:* send: pairs there. Both radios have a 100uF capacitor in place, as I didn't have smaller.
Perhaps I need to try with a new radio. All the parts are brand new, apart from the Raspi.
-
BTW, this is the output on Raspi side, somehow it sees the nodeid 8:
$ sudo PiGatewaySerial
Starting PiGatewaySerial...
Protocol version - 1.4
Created PTY '/dev/pts/1'
Gateway tty: /dev/ttyMySensorsGateway
================ 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 = 0xa8a8e1fc08 0xa8a8e1fc00
RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
TX_ADDR = 0xa8a8e1fc08
RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA = 0x3b
EN_RXADDR = 0x06
RF_CH = 0x4c
RF_SETUP = 0x23
CONFIG = 0x0e
DYNPD/FEATURE = 0x3f 0x06
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_LOW
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0 -
and now after while there are occational OKs:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0 -
Damned. I changed both of the radios, and the sensebender. No help. Still no connection forming. Is there some radio parameters I could try tweaking? Or am I so unlucky that all the radios are broken as new?
I get lots of these:
!TSM:FPAR:NO REPLY
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3,t
=7,pt=0,l=0,sg=0,ft=0,st=bc:!TSM:FPAR:NO REPLY
TSM:FPAR
TSF:MSG:SEND,8-8-255-255,s=255,c=3
,t=7,pt=0,l=0,sg=0,ft=0,st=bc:!TSM:FPAR:FAIL
TSM:FAILURE
TSM:FAILURE:PDTand on raspi side some of these:
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-0 s=255,c=3,t=24,pt=1,l=1:1
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0 -
What happens if you create a 2.0 serial gateway (you could use one of your sensebenders) and attach it to your raspberry?
-
What happens if you create a 2.0 serial gateway (you could use one of your sensebenders) and attach it to your raspberry?
-
Thanks, and now that I had a second thought, I recalled I already wired another arduino once via serial ports without usb. That would do. But I would like to do it without extra arduino, so I'll try the raspi2 + mysensors hinted in the other hardware thread. It seems to work for some, I'll give it a shot.