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. Controllers
  3. Raspberry controller: where is sensor auto id assignment code?

Raspberry controller: where is sensor auto id assignment code?

Scheduled Pinned Locked Moved Controllers
3 Posts 2 Posters 1.8k Views 1 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.
  • F Offline
    F Offline
    fabien007
    wrote on last edited by fabien007
    #1

    Hello,
    sorry for what seams naive question, but after having looked at latest 1.4 mysensor github raspberry controller code, I couldn't find where sensor id autoassignment code is.
    i.e. I didn't find where code handling internal messages coming from sensors (possibly relayed by node in "repeater" mode) of type "I_ID_REQUEST".

    I expected to find this code either in MyGateway or less probably in parent class MySensor, but it seams nothing is done for internal/I_ID_REQUEST message, and therefore it is handled by default message callback function pointer, which by default just pingpongs back the message to sensor node.

    What did I miss? Are we supposed to implement it ourself in a gateway implementation? I would have thought some basic logic e.g. auto increment in gateway could do the trick quite generically.

    Thanks for your support!

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      If you're referring to https://github.com/mysensors/Raspberry it's rather a port of the native MySensors library to raspberry then a controller right now.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fabien007
        wrote on last edited by
        #3

        ok, thanks for the explanation!
        I'll implement features I need in my own implementation of MyGateway then.

        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


        15

        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