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. Dallas sketch does not send temperature

Dallas sketch does not send temperature

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 1.3k Views 3 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.
  • BiobierB Offline
    BiobierB Offline
    Biobier
    wrote on last edited by
    #1

    Hi,

    I used the default guide for Dallas temperature sensor and downloaded the librarys from master github.
    Communication with the gateway works but sensor does not send the temperature value:

    (12:36:03.240) req id
    (12:36:03.250) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    (12:36:05.250) sensor started, id=255, parent=0, distance=1
    (12:36:05.280) req id
    (12:36:05.280) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    (12:36:07.280) req id
    (12:36:07.290) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    (12:36:09.290) req id
    (12:36:09.320) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    (12:36:11.460) 20.50<CR> <---- I have ve added this
    (12:36:11.460) req id
    (12:36:11.460) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    

    I've added in the sketch Serial.println(temperature); and that works so reading the temp is not an issue it is just not send in the payload part.
    I've set COMPARE_TEMP to 0 for testing.

    I'm on Arduino IDE 1.6.7
    Any idea?

    Best regards
    -Alex

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by
      #2

      Hi!

      Attach a controller to the gateway which gives out id or set a static id in the sketch.
      The node is requesting an id and no one is answering. :-)

      Greetings
      Tim

      1 Reply Last reply
      0
      • BiobierB Offline
        BiobierB Offline
        Biobier
        wrote on last edited by
        #3

        Aha, so ID is given out by the controller (openHab in my Case)? How can I set the ID static in the sketch?
        This is what I get on the gateways serial in the same time:

        0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
        255;255;3;0;3;
        0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
        255;255;3;0;3;
        0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
        255;255;3;0;3;
        0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
        255;255;3;0;3;

        1 Reply Last reply
        0
        • mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          See http://forum.mysensors.org/topic/3181/how-to-assign-static-node-id/2

          1 Reply Last reply
          0
          • BiobierB Offline
            BiobierB Offline
            Biobier
            wrote on last edited by
            #5

            I've added #define MY_NODE_ID 1 in the top area of the sketch but still the same result on sensor serial:

            (13:36:29.080) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
            (13:36:31.040) sensor started, id=255, parent=0, distance=1
            (13:36:31.080) req id
            (13:36:31.080) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
            (13:36:33.070) req id
            (13:36:33.070) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
            (13:36:35.080) req id
            (13:36:35.080) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
            (13:36:37.220) 21.00<CR>
            (13:36:37.220) req id
            (13:36:37.220) send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
            
            
            1 Reply Last reply
            0
            • BiobierB Offline
              BiobierB Offline
              Biobier
              wrote on last edited by
              #6

              But gw.begin(NULL, 1);
              worked now. Thank you!

              Might be worth to write this somewhere in the guide.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              14

              Online

              12.1k

              Users

              11.2k

              Topics

              113.4k

              Posts


              Copyright 2025 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