Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. multiple DS18D20 does not report temperature

multiple DS18D20 does not report temperature

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 4 Posters 11.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Tomasz PazioT Offline
    Tomasz PazioT Offline
    Tomasz Pazio
    wrote on last edited by
    #4

    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

    1 Reply Last reply
    0
    • Tomasz PazioT Offline
      Tomasz PazioT Offline
      Tomasz Pazio
      wrote on last edited by
      #5

      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 :(

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #6

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

        1 Reply Last reply
        0
        • Tomasz PazioT Offline
          Tomasz PazioT Offline
          Tomasz Pazio
          wrote on last edited by
          #7

          so something wrong with presenting readings :( what to check on vera side?

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #8

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

            1 Reply Last reply
            0
            • Tomasz PazioT Offline
              Tomasz PazioT Offline
              Tomasz Pazio
              wrote on last edited by
              #9

              no, only this one, and nothing else.

              1 Reply Last reply
              0
              • hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #10

                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...

                1 Reply Last reply
                0
                • Tomasz PazioT Offline
                  Tomasz PazioT Offline
                  Tomasz Pazio
                  wrote on last edited by
                  #11

                  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 :(

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #12

                    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...

                    1 Reply Last reply
                    0
                    • Tomasz PazioT Offline
                      Tomasz PazioT Offline
                      Tomasz Pazio
                      wrote on last edited by
                      #13

                      Now trying with one and two. No more.

                      1 Reply Last reply
                      0
                      • Tomasz PazioT Offline
                        Tomasz PazioT Offline
                        Tomasz Pazio
                        wrote on last edited by
                        #14

                        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 :(

                        1 Reply Last reply
                        0
                        • hekH Offline
                          hekH Offline
                          hek
                          Admin
                          wrote on last edited by
                          #15

                          -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.

                          1 Reply Last reply
                          0
                          • Tomasz PazioT Offline
                            Tomasz PazioT Offline
                            Tomasz Pazio
                            wrote on last edited by
                            #16

                            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 :(

                            1 Reply Last reply
                            0
                            • hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by
                              #17

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

                              1 Reply Last reply
                              0
                              • Tomasz PazioT Offline
                                Tomasz PazioT Offline
                                Tomasz Pazio
                                wrote on last edited by
                                #18

                                yes the same.

                                1 Reply Last reply
                                0
                                • Tomasz PazioT Offline
                                  Tomasz PazioT Offline
                                  Tomasz Pazio
                                  wrote on last edited by
                                  #19

                                  any idea?

                                  1 Reply Last reply
                                  0
                                  • hekH Offline
                                    hekH Offline
                                    hek
                                    Admin
                                    wrote on last edited by
                                    #20

                                    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..)

                                    1 Reply Last reply
                                    0
                                    • rvendrameR Offline
                                      rvendrameR Offline
                                      rvendrame
                                      Hero Member
                                      wrote on last edited by
                                      #21

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

                                      Home Assistant / Vera Plus UI7
                                      ESP8266 GW + mySensors 2.3.2
                                      Alexa / Google Home

                                      1 Reply Last reply
                                      0
                                      • Tomasz PazioT Offline
                                        Tomasz PazioT Offline
                                        Tomasz Pazio
                                        wrote on last edited by Tomasz Pazio
                                        #22

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

                                        1 Reply Last reply
                                        0
                                        • rvendrameR Offline
                                          rvendrameR Offline
                                          rvendrame
                                          Hero Member
                                          wrote on last edited by
                                          #23

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

                                          Home Assistant / Vera Plus UI7
                                          ESP8266 GW + mySensors 2.3.2
                                          Alexa / Google Home

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          10

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular