Only first transmission comes through.


  • Hardware Contributor

    Hi

    I have a problem with a temp sensor that only sends in values after first boot and all subsequent transmissions fails.
    if I press reset then I get a all values first time but it fails after that first transmission.
    Has anyone had the same problem and have a solution?
    I have a feeling that the radio dosent wake up after sleep.

    sensor started, id 15
    send: 15-15-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    send: 15-15-0-0 s=255,c=3,t=11,pt=0,l=25,st=ok:Dallas Temperature Sensor
    send: 15-15-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
    send: 15-15-0-0 s=0,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=1,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=2,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=3,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=4,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=5,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 15-15-0-0 s=6,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    requesting temps from bus
    sensor035.69
    sending in value
    send: 15-15-0-0 s=0,c=1,t=0,pt=7,l=5,st=ok:35.7
    sensor126.19
    sending in value
    send: 15-15-0-0 s=1,c=1,t=0,pt=7,l=5,st=ok:26.2
    sensor229.25
    sending in value
    send: 15-15-0-0 s=2,c=1,t=0,pt=7,l=5,st=ok:29.3
    sensor325.75
    sending in value
    send: 15-15-0-0 s=3,c=1,t=0,pt=7,l=5,st=ok:25.8
    sensor465.69
    sending in value
    send: 15-15-0-0 s=4,c=1,t=0,pt=7,l=5,st=ok:65.7
    sensor529.69
    sending in value
    send: 15-15-0-0 s=5,c=1,t=0,pt=7,l=5,st=ok:29.7
    sensor668.25
    sending in value
    send: 15-15-0-0 s=6,c=1,t=0,pt=7,l=5,st=ok:68.3

    requesting temps from bus
    sensor035.25
    sending in value
    send: 15-15-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:35.3
    sensor126.19
    sending in value
    send: 15-15-0-0 s=1,c=1,t=0,pt=7,l=5,st=fail:26.2
    sensor229.19
    sending in value
    send: 15-15-0-0 s=2,c=1,t=0,pt=7,l=5,st=fail:29.2
    sensor325.81
    sending in value
    send: 15-15-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:25.8
    sensor465.62
    sending in value
    send: 15-15-0-0 s=4,c=1,t=0,pt=7,l=5,st=fail:65.6
    sensor529.62
    sending in value
    send: 15-15-0-0 s=5,c=1,t=0,pt=7,l=5,st=fail:29.6
    sensor668.25
    sending in value
    send: 15-15-0-0 s=6,c=1,t=0,pt=7,l=5,st=fail:68.3
    send: 15-15-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:

    requesting temps from bus
    sensor034.94
    sending in value
    send: 15-15-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:34.9
    sensor126.12
    sending in value
    send: 15-15-0-0 s=1,c=1,t=0,pt=7,l=5,st=fail:26.1
    sensor229.19
    sending in value
    send: 15-15-0-0 s=2,c=1,t=0,pt=7,l=5,st=fail:29.2
    sensor325.75
    sending in value
    send: 15-15-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:25.8
    sensor465.62
    sending in value
    send: 15-15-0-0 s=4,c=1,t=0,pt=7,l=5,st=fail:65.6
    sensor529.62



  • @Mrlynx If you describe what unit is sending and what controller/gateway is receiving then it might be easier for someone to assist you.


  • Hardware Contributor

    see log in previous post from sensor.
    messages logged OK get through and messages logged fail doesnt reach gateway.



  • Yes, that is obvious. My question was actually what type of sensor/controller/gateway you are using. I have the Dallas temperature sensor sending via MQTT (both nano) to OpenHab and it works quite well. But if the radio communication has a weak reception there might be quite a lot of failures too. I have seen several posts describing that 3,3 V from a nano can be a problem so the radio comm might be a good starting point for your further investigation.


  • Admin

    Tried switching cap on radio?



  • I have a similar problem but the connection is lost after a few days. With Dallas temp and DHT22 in Arduino nano node connecting wirelessly to Serial USB Gateway in Vera3. Both sensor and gateway have capacitors. The "solution" for my situation seems to be reboot after it works well.. for awhile. I was wondering if the restart could be automated by the node if it would see the transmission failures and reboot itself.

    @hek So 2 questions; how can I get the comm failure status in the code (send returns void instead of state) and is there a function to reboot the Arduino nano?


  • Hero Member

    I had a node that would communicate for a while and then stop. I found that I accidentally powered the radio with 5V.


  • Hardware Contributor

    My problem seems to be the distance between node and gateway.
    I have now built a repeater node and it seems to cure the problem.
    Node and gateway is in different buildings and about 20m apart with near line of sight.
    I have also ordered a ethernet shield and a PA+LNA 24L01+ module as I already have optofiber between the buildings.



  • @hek So 2 questions; how can I get the comm failure status in the code (send returns void instead of state) and is there a function to reboot the Arduino nano?

    Actually I now noticed that send should return bool, but is that working only if ack is requested?



  • @korttoma
    Thanks for the tip. I will check the wiring (once again).
    Still it would be interesting to know if arduino can restart itself since for increased reliability (if any?) that could be done every night.


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 1
  • 5
  • 2

69
Online

11.4k
Users

11.1k
Topics

112.7k
Posts