multiple DS18D20 does not report temperature



  • Hi all.
    I'm new so do nos scream too much 😉
    I have working Gateway with Vera system, I would like to replace my current setup with OneWire network with 9 in line sensors connected to openwrt router.
    I used sketch from http://www.mysensors.org/build/temp with Nano but used two sensors (for now), For one sensor it was working fine, when added second, readings are gone from Vera.
    Setup looks correct because when uploading sketch from arduino libraty serial monitor shows two sensors with temperatures.
    Could You lease help?


  • Admin

    Make sure both temp sensors has been created on Vera by starting inclusion mode on vera and restart the node a few times (5 seconds apart).

    Reload GUI on vera.

    Check debug log on sensor that communication is working.



  • made all accept debug log.
    unfortunately fail, next thing, last update time change only after re-plug arduino, it is not changing recurrently every 30000ms



  • and log
    sensor started, id 3
    send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
    send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    read: 0-0-3 s=255,c=3,t=6,pt=0,l=1:M
    send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,st=ok:Temperature Sensor
    send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
    send: 3-3-0-0 s=0,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=5,st=ok:1.4.1



  • Today after vera update I do not have any readings from temp.sensors on onewire eaven one...
    when using "generic " example for arduino all sensors are reported.
    Something wrong with this example 😞


  • Admin

    From the log above it looks like at least 2 temp-sensors were found (and presented) to your controller.



  • so something wrong with presenting readings 😞 what to check on vera side?


  • Admin

    If you continue monitoring the nodes log. Does it send anything after the log you posted above?



  • no, only this one, and nothing else.


  • Admin

    That seems wrong.

    What if you update the libraries and sketch to latest on github. There was an update to the Onewire/Dallas library recently to make in none-blocking...



  • log is now different
    send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
    send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-3 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    sensor started, id=3, parent=0, distance=1
    send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=ok:Temperature Sensor
    send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
    send: 3-3-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=ok:
    send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:

    but still no readings on vera 😞


  • Admin

    I cannot see any temp readings in the debug log...

    Are you powering your 9 Dallas sensors directly from the Arduino or separately? I'm not sure how much they draw but 9 is quite much...



  • Now trying with one and two. No more.



  • There are two parts of issue:
    problem with no data on vera was on this part:
    // Only send data if temperature has changed and no error
    #if COMPARE_TEMP == 1
    if (lastTemperature[i] != temperature && temperature != -127.00 && temperature != 85.00) {
    #else
    if (temperature != -127.00 && temperature != 85.00) {
    #endif

    my reading is now -127.00
    changed to -200 and now I can see the data on vera.
    however this is not correct data because should be something like 27 Celsius.
    so there is something with conversion as well 😞


  • Admin

    -127 means something is wrong when reading your dallas sensors. It is a an error code. So you actually only have an issue with your temp sensors.



  • 2015-08-01 15_47_46-Poczta.png
    when I use Example for Dallas multiple sensors it works fine.
    2015-08-01 15_49_37-Poczta.png
    when I use example for one-wire temperature sensor ds18.... it works fine as well
    so i can reed but can not use Mysensors sketch 😞


  • Admin

    Very strange. Are you using the same OneWire library in both cases?



  • yes the same.



  • any idea?


  • Admin

    No, must be hundreds of users running Dallas sensors here. Trying to figure out if anything has changed in the library/dependencies but I don't see anything except the thing I mentioned earlier here.

    And you can get the sensor running without MySensors library loaded...

    Guess I have to hook up a Dallas sensor myself to check (tomorrow or so..)


  • Hero Member

    Are you powering your Dallas sensor using the 'one-wire' method? Is your arduino 5V or 3.3V?



  • exactly like o the example so power from arduino 5V (not parasite)


  • Hero Member

    Can you post the serial monitor logs, from both gateway and node?



  • @rvendrame, why You need log from gateway? When no values are sent from node than nothing on Vera. When use some dummy values which are visible in node log - than those values are in Vera.


  • Admin

    @hek said:

    Guess I have to hook up a Dallas sensor myself to check (tomorrow or so..)

    Ok, tried latest from 1.5 branch and it works fine here with 2 hooked up DS18D20.

    sensor started, id=200, parent=0, distance=1
    send: 200-200-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=ok:Temperature Sensor
    send: 200-200-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
    send: 200-200-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=ok:
    send: 200-200-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:
    send: 200-200-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:27.9
    send: 200-200-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:28.0
    send: 200-200-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:31.5
    send: 200-200-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:32.0
    


  • removed all Arduino related stuff from PC
    Installed new IDE and libs from https://github.com/mysensors/Arduino/archive/master.zip
    now I have progress, there are no readings no mater on which sketch hahaha.



  • Hi,

    I have the same problem. No temperature is transported to GW.
    This log is from Sensor:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    sensor started, id=255, parent=0, distance=1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:

    I have added some exstra lines in serial printout so I know that ds1820 is found and read.

    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    sensor started, id=255, parent=0, distance=1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    **Sensors found
    1
    **req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    temp :
    23.80

    But This value is not transported to GW.
    Any idee ?

    Thanx


Log in to reply
 

Suggested Topics

  • 3
  • 8
  • 2
  • 5
  • 6
  • 1

1
Online

11.4k
Users

11.1k
Topics

112.7k
Posts