Basic Temperature sketch, nothing happends. Dim green led on Nano.



  • I know that this is probably the worst title for a Topic ever but I dont know where to start the debugging.

    Controller: Domoticz on Rasp-Pi, up and running since years back.
    Gateway: Serial-gateway, up and running since years back.
    MySensors node with 3 18b20, up and running since years back.

    The Gateway is updated to version 2.1, it is still receiving data from my old node so i know it is working.

    I have now made a new node with 1 18b20 solderd to it. Iv uploaded the "DallasTemperatureSensor.ino" sketch unmodified. Kompiled, uploaded without a problem.

    However, nothing happends. When I look in the serial monitor (115200 baud) nothing shows up, nothing.
    I have uploaded a simple 1-wire sketch to the same arduino and it works as a charm so I know that the arduino -> 1-wire is working.

    With the MySensors "DallasTemperatureSensor.ino" sketch the led on the arduino dimmly lights up a couple of seconds on/off.

    Could a faulty NRF24L01 make this problem. The NRF24L01 is solderd in place so it was there when the simple 1-wire sketch was running smoothly. However that sketch of cause did not use those pins for anything.

    Any tips?


  • Mod

    @popunonkok what serial speed does the 1-wire sketch use? If it is not 115200, try changing the MySensor sketch to use the same speed as the 1-wire sketch by setting

    #define MY_BAUD_RATE 9600
    

    (or whatever rate the sketch is using) before including MySensors.h

    This is a long shot, you should at least get garbage in the serial monitor is the timings for serial were bad.

    You can also add Serial.println statements at various places in the code and see where it stops, and/or add those to get more debug:

    #define MY_DEBUG_VERBOSE
    #define MY_DEBUG_VERBOSE_RF24
    


  • Since I did not even get garbage in the serial monitor I started with your second tips, adding the Debug lines.
    I then got one single line of garbage in the serial monitor. Garbage even though I had baud set to 115200 in the serial monitor.

    I then added the line

    #define MY_BAUD_RATE 9600
    

    I den got this:

    ��`��������`f���`f`��0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
    41 MCO:BGN:BFR
    116 TSM:INIT
    130 TSF:WUR:MS=0
    148 RF24:write register, reg=0, value=14
    196 RF24:write register, reg=3, value=3
    237 RF24:write register, reg=4, value=95
    280 RF24:write register, reg=5, value=76
    323 RF24:write register, reg=6, value=39
    366 RF24:write register, reg=16, value=115
    411 RF24:write register, reg=29, value=6
    453 RF24:read register, reg=6, value=39
    495 RF24:read register, reg=5, value=76
    537 RF24:write register, reg=2, value=2
    579 RF24:write register, reg=1, value=0
    621 RF24:write register, reg=28, value=3
    664 RF24:flushRX
    681 RF24:flushTX
    699 RF24:write register, reg=7, value=112
    743 TSM:INIT:TSP OK
    764 TSM:FPAR
    778 RF24:STP LIS
    795 RF24:write register, reg=0, value=14
    838 RF24:OPEN WPIPE,RCPT=255
    869 RF24:write register, reg=10, value=255
    914 RF24:write register, reg=16, value=255
    959 RF24:SND:TO=255,LEN=7
    986 R
    

    Looks promesing but then it does not come any more serial prints.
    Its wierd, I only got this serial print above when I program it. Not if I unplug/plug to the computer. Only when programming it.

    If I program it again it stops at the same line. I guess that is some kind of "send/use the NRF24L0" line, am I right?

    I probably should desolder it and test with a different NRF24L01. (Why didnt I solder a header instead of the NRF24L01 directly. 😃


  • Mod

    @popunonkok there have been some strange cases which turned out to be due to bad usb cables. If you can, try a different cable and see if that makes any difference.



  • Different cable, stops at the exact line in the serial monitor.

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
    41 MCO:BGN:BFR
    116 TSM:INIT
    130 TSF:WUR:MS=0
    148 RF24:write register, reg=0, value=14
    196 RF24:write register, reg=3, value=3
    237 RF24:write register, reg=4, value=95
    280 RF24:write register, reg=5, value=76
    323 RF24:write register, reg=6, value=39
    366 RF24:write register, reg=16, value=115
    411 RF24:write register, reg=29, value=6
    453 RF24:read register, reg=6, value=39
    495 RF24:read register, reg=5, value=76
    537 RF24:write register, reg=2, value=2
    579 RF24:write register, reg=1, value=0
    621 RF24:write register, reg=28, value=3
    664 RF24:flushRX
    681 RF24:flushTX
    699 RF24:write register, reg=7, value=112
    743 TSM:INIT:TSP OK
    764 TSM:FPAR
    778 RF24:STP LIS
    795 RF24:write register, re�0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
    41 MCO:BGN:BFR
    116 TSM:INIT
    130 TSF:WUR:MS=0
    148 RF24:write register, reg=0, value=14
    196 RF24:write register, reg=3, value=3
    237 RF24:write register, reg=4, value=95
    280 RF24:write register, reg=5, value=76
    323 RF24:write register, reg=6, value=39
    366 RF24:write register, reg=16, value=115
    411 RF24:write register, reg=29, value=6
    453 RF24:read register, reg=6, value=39
    495 RF24:read register, reg=5, value=76
    537 RF24:write register, reg=2, value=2
    579 RF24:write register, reg=1, value=0
    621 RF24:write register, reg=28, value=3
    664 RF24:flushRX
    681 RF24:flushTX
    699 RF24:write register, reg=7, value=112
    743 TSM:INIT:TSP OK
    764 TSM:FPAR
    778 RF24:STP LIS
    795 RF24:write register, reg=0, value=14
    838 RF24:OPEN WPIPE,RCPT=255
    869 RF24:write register, reg=10, value=255
    914 RF24:write register, reg=16, value=255
    959 RF24:SND:TO=255,LEN=7
    986 R
    


  • Hmmm.... I guess this topic is kind of dead.

    I tried to desolder the transiver but failed miserably (to much heat in frustration over that the thing would not come loose). So the PCB lost 2 solderpads. This means I cant go on with this hardware. I might toss the Arduino aswell, its solderd on all pins.

    Well well...

    I now have a different problem. 😃

    I now have a Arduino Uno, NRF24L01 and a 1-wire sensor.

    The new Node seems to be running as it should but it doesnt get any respons from the gateway.
    The Gateway is talking to my old Node with 3 sensors.

    A thing that is a bit wierd is that i Updated the GW to version 2.1.0.
    I thought that I would loose connection with my old Node that I belive is version 1.6 but those are running fine together.
    The new node is the same version as the gateway.

    This should probably be a seperate Topic but I feel bad for starting multiple topics so close together.

    Log from new node:

    20783 TSM:FAIL:RE-INIT
    20806 TSM:INIT
    20823 RF24:write register, reg=0, value=14
    20872 RF24:write register, reg=3, value=3
    20916 RF24:write register, reg=4, value=95
    20961 RF24:write register, reg=5, value=76
    21006 RF24:write register, reg=6, value=39
    21051 RF24:write register, reg=16, value=115
    21098 RF24:write register, reg=29, value=6
    21143 RF24:read register, reg=6, value=39
    21187 RF24:read register, reg=5, value=76
    21231 RF24:write register, reg=2, value=2
    21274 RF24:write register, reg=1, value=0
    21318 RF24:write register, reg=28, value=3
    21363 RF24:flushRX
    21384 RF24:flushTX
    21403 RF24:write register, reg=7, value=112
    21449 TSM:INIT:TSP OK
    21473 TSM:FPAR
    21488 RF24:STP LIS
    21509 RF24:write register, reg=0, value=14
    21554 RF24:OPEN WPIPE,RCPT=255
    21586 RF24:write register, reg=10, value=255
    21634 RF24:write register, reg=16, value=255
    21681 RF24:SND:TO=255,LEN=7
    21709 RF24:flushTX
    21730 RF24:write register, reg=7, value=48
    21775 RF24:STRT LIS
    21796 RF24:write register, reg=0, value=15
    21841 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    21919 RF24:read register, reg=23, value=17
    21964 RF24:read register, reg=23, value=17
    22009 RF24:read register, reg=23, value=17
    22054 RF24:read register, reg=23, value=17
    22099 RF24:read register, reg=23, value=17
    22145 RF24:read register, reg=23, value=17
    22190 RF24:read register, reg=23, value=17
    22235 RF24:read register, reg=23, value=17
    22280 RF24:read register, reg=23, value=17
    22325 RF24:read register, reg=23, value=17
    22369 RF24:read register, reg=23, value=17
    22414 RF24:read register, reg=23, value=17
    22459 RF24:read register, reg=23, value=17
    22504 RF24:read register, reg=23, value=17
    22549 RF24:read register, reg=23, value=17
    22594 RF24:read register, reg=23, value=17
    22639 RF24:read register, reg=23, value=17
    22684 RF24:read register, reg=23, value=17
    22729 RF24:read register, reg=23, value=17
    22774 RF24:read register, reg=23, value=17
    22819 RF24:read register, reg=23, value=17
    22864 RF24:read register, reg=23, value=17
    22909 RF24:read register, reg=23, value=17
    22953 RF24:read register, reg=23, value=17
    22999 RF24:read register, reg=23, value=17
    23044 RF24:read register, reg=23, value=17
    23089 RF24:read register, reg=23, value=17
    23134 RF24:read register, reg=23, value=17
    23179 RF24:read register, reg=23, value=17
    23224 RF24:read register, reg=23, value=17
    23269 RF24:read register, reg=23, value=17
    23314 RF24:read register, reg=23, value=17
    23359 RF24:read register, reg=23, value=17
    23404 RF24:read register, reg=23, value=17
    23449 RF24:read register, reg=23, value=17
    23494 RF24:read register, reg=23, value=17
    23539 RF24:read register, reg=23, value=17
    23583 RF24:read register, reg=23, value=17
    23628 RF24:read register, reg=23, value=17
    23673 RF24:read register, reg=23, value=17
    23718 RF24:read register, reg=23, value=17
    23763 RF24:read register, reg=23, value=17
    23809 RF24:read register, reg=23, value=17
    23854 RF24:read register, reg=23, value=17
    23899 RF24:read register, reg=23, value=17
    23944 !TSM:FPAR:NO REPLY
    23969 TSM:FPAR
    23986 RF24:STP LIS
    24006 RF24:write register, reg=0, value=14
    24051 RF24:OPEN WPIPE,RCPT=255
    24083 RF24:write register, reg=10, value=255
    24130 RF24:write register, reg=16, value=255
    24177 RF24:SND:TO=255,LEN=7
    24207 RF24:flushTX
    24227 RF24:write register, reg=7, value=48
    24272 RF24:STRT LIS
    24293 RF24:write register, reg=0, value=15
    24338 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24417 RF24:read register, reg=23, value=17
    24462 RF24:read register, reg=23, value=17
    24507 RF24:read register, reg=23, value=17
    24552 RF24:read register, reg=23, value=17
    24596 RF24:read register, reg=23, value=17
    24641 RF24:read register, reg=23, value=17
    24686 RF24:read register, reg=23, value=17
    24731 RF24:read register, reg=23, value=17
    24776 RF24:read register, reg=23, value=17
    24821 RF24:read register, reg=23, value=17
    24866 RF24:read register, reg=23, value=17
    24911 RF24:read register, reg=23, value=17
    24956 RF24:read register, reg=23, value=17
    25001 RF24:read register, reg=23, value=17
    25047 RF24:read register, reg=23, value=17
    25092 RF24:read register, reg=23, value=17
    25137 RF24:read register, reg=23, value=17
    25181 RF24:read register, reg=23, value=17
    25226 RF24:read register, reg=23, value=17
    25271 RF24:read register, reg=23, value=17
    25316 RF24:read register, reg=23, value=17
    25361 RF24:read register, reg=23, value=17
    25406 RF24:read register, reg=23, value=17
    25451 RF24:read register, reg=23, value=17
    25496 RF24:read register, reg=23, value=17
    25541 RF24:read register, reg=23, value=17
    25586 RF24:read register, reg=23, value=17
    25631 RF24:read register, reg=23, value=17
    25676 RF24:read register, reg=23, value=17
    25721 RF24:read register, reg=23, value=17
    25765 RF24:read register, reg=23, value=17
    25810 RF24:read register, reg=23, value=17
    25856 RF24:read register, reg=23, value=17
    25901 RF24:read register, reg=23, value=17
    25946 RF24:read register, reg=23, value=17
    25991 RF24:read register, reg=23, value=17
    26036 RF24:read register, reg=23, value=17
    26081 RF24:read register, reg=23, value=17
    26126 RF24:read register, reg=23, value=17
    26171 RF24:read register, reg=23, value=17
    26216 RF24:read register, reg=23, value=17
    26261 RF24:read register, reg=23, value=17
    26306 RF24:read register, reg=23, value=17
    26350 RF24:read register, reg=23, value=17
    26395 RF24:read register, reg=23, value=17
    26440 !TSM:FPAR:NO REPLY
    26467 TSM:FPAR
    26482 RF24:STP LIS
    26503 RF24:write register, reg=0, value=14
    26548 RF24:OPEN WPIPE,RCPT=255
    26580 RF24:write register, reg=10, value=255
    26628 RF24:write register, reg=16, value=255
    26675 RF24:SND:TO=255,LEN=7
    26703 RF24:flushTX
    26724 RF24:write register, reg=7, value=48
    26769 RF24:STRT LIS
    26790 RF24:write register, reg=0, value=15
    26835 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26913 RF24:read register, reg=23, value=17
    26958 RF24:read register, reg=23, value=17
    27003 RF24:read register, reg=23, value=17
    27048 RF24:read register, reg=23, value=17
    27094 RF24:read register, reg=23, value=17
    27139 RF24:read register, reg=23, value=17
    27184 RF24:read register, reg=23, value=17
    27229 RF24:read register, reg=23, value=17
    27274 RF24:read register, reg=23, value=17
    27319 RF24:read register, reg=23, value=17
    27363 RF24:read register, reg=23, value=17
    27408 RF24:read register, reg=23, value=17
    27453 RF24:read register, reg=23, value=17
    27498 RF24:read register, reg=23, value=17
    27543 RF24:read register, reg=23, value=17
    27588 RF24:read register, reg=23, value=17
    27633 RF24:read register, reg=23, value=17
    27678 RF24:read register, reg=23, value=17
    27723 RF24:read register, reg=23, value=17
    27768 RF24:read register, reg=23, value=17
    27813 RF24:read register, reg=23, value=17
    27858 RF24:read register, reg=23, value=17
    27904 RF24:read register, reg=23, value=17
    27948 RF24:read register, reg=23, value=17
    27993 RF24:read register, reg=23, value=17
    28038 RF24:read register, reg=23, value=17
    28083 RF24:read register, reg=23, value=17
    28128 RF24:read register, reg=23, value=17
    28173 RF24:read register, reg=23, value=17
    28218 RF24:read register, reg=23, value=17
    28263 RF24:read register, reg=23, value=17
    28308 RF24:read register, reg=23, value=17
    28353 RF24:read register, reg=23, value=17
    28398 RF24:read register, reg=23, value=17
    28443 RF24:read register, reg=23, value=17
    28488 RF24:read register, reg=23, value=17
    28533 RF24:read register, reg=23, value=17
    28577 RF24:read register, reg=23, value=17
    28622 RF24:read register, reg=23, value=17
    28667 RF24:read register, reg=23, value=17
    28712 RF24:read register, reg=23, value=17
    28758 RF24:read register, reg=23, value=17
    28803 RF24:read register, reg=23, value=17
    28848 RF24:read register, reg=23, value=17
    28893 RF24:read register, reg=23, value=17
    28938 !TSM:FPAR:NO REPLY
    28963 TSM:FPAR
    28980 RF24:STP LIS
    28999 RF24:write register, reg=0, value=14
    29044 RF24:OPEN WPIPE,RCPT=255
    29077 RF24:write register, reg=10, value=255
    29124 RF24:write register, reg=16, value=255
    29171 RF24:SND:TO=255,LEN=7
    29201 RF24:flushTX
    29221 RF24:write register, reg=7, value=48
    29266 RF24:STRT LIS
    29287 RF24:write register, reg=0, value=15
    29332 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    29411 RF24:read register, reg=23, value=17
    29456 RF24:read register, reg=23, value=17
    29501 RF24:read register, reg=23, value=17
    29545 RF24:read register, reg=23, value=17
    29590 RF24:read register, reg=23, value=17
    29635 RF24:read register, reg=23, value=17
    29680 RF24:read register, reg=23, value=17
    29725 RF24:read register, reg=23, value=17
    29770 RF24:read register, reg=23, value=17
    29815 RF24:read register, reg=23, value=17
    29860 RF24:read register, reg=23, value=17
    29905 RF24:read register, reg=23, value=17
    29950 RF24:read register, reg=23, value=17
    29996 RF24:read register, reg=23, value=17
    30041 RF24:read register, reg=23, value=17
    30086 RF24:read register, reg=23, value=17
    30131 RF24:read register, reg=23, value=17
    30175 RF24:read register, reg=23, value=17
    30220 RF24:read register, reg=23, value=17
    30265 RF24:read register, reg=23, value=17
    30310 RF24:read register, reg=23, value=17
    30355 RF24:read register, reg=23, value=17
    30400 RF24:read register, reg=23, value=17
    30445 RF24:read register, reg=23, value=17
    30490 RF24:read register, reg=23, value=17
    30535 RF24:read register, reg=23, value=17
    30580 RF24:read register, reg=23, value=17
    30625 RF24:read register, reg=23, value=17
    30670 RF24:read register, reg=23, value=17
    30715 RF24:read register, reg=23, value=17
    30759 RF24:read register, reg=23, value=17
    30804 RF24:read register, reg=23, value=17
    30850 RF24:read register, reg=23, value=17
    30895 RF24:read register, reg=23, value=17
    30940 RF24:read register, reg=23, value=17
    30985 RF24:read register, reg=23, value=17
    31030 RF24:read register, reg=23, value=17
    31075 RF24:read register, reg=23, value=17
    31120 RF24:read register, reg=23, value=17
    31165 RF24:read register, reg=23, value=17
    31210 RF24:read register, reg=23, value=17
    31255 RF24:read register, reg=23, value=17
    31300 RF24:read register, reg=23, value=17
    31345 RF24:read register, reg=23, value=17
    31389 RF24:read register, reg=23, value=17
    31434 !TSM:FPAR:FAIL
    31457 TSM:FAIL:CNT=2
    31478 TSM:FAIL:PDT
    31499 RF24:write register, reg=0, value=12
    31544 RF24:PD
    

Log in to reply
 

595
Online

6.7k
Users

7.6k
Topics

80.3k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.