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. Bug Reports
  3. Library Version report, gateway vs sensors

Library Version report, gateway vs sensors

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 1.9k 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.
  • S Offline
    S Offline
    Stric
    wrote on last edited by
    #1

    For the Gateway, MyGateway.cpp has a check for INTERNAL message with I_VERSION, that is 0;0;3;0;2; to which it responds with same + the define LIBRARY_VERSION (1.4.1 for example).
    For Sensors, http://www.mysensors.org/download/serial_api_14 says that INTERNAL+I_VERSION is "Sensors report their library version at startup using this message type". This isn't true, they send nodeid;255;0;0;17;libraryversion (or 18 if it's a repeater)... There's no code for replying to this request either.
    This is coming from MySensors::begin;
    present(NODE_SENSOR_ID, repeaterMode? S_ARDUINO_REPEATER_NODE : S_ARDUINO_NODE);
    How much will we break if they start sending the same as documentation+gateway? On the other hand, various other things are reported under the NODE_SENSOR_ID (255) "sensor"..

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

      If I remember correctly this was changed between 1.3 -> 1.4 version. The documentation will be updated to reflect this (done locally here now and will be pushed in the next deployment).

      The reson for changing was to keep reduce the number of messages sent during startup.
      Altering this behaviour (in 1.4 and 1.5) would break things.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stric
        wrote on last edited by
        #3

        How is it more messages to send with "node;0;3;0;2;version" than "node;255;0;0;17;version" ? Or am I missing something..? Was the old method that the sensor said "hi!", gw says "what version?" and sensor said "v1.xx" vs the new "hi, v1.xx" ?

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

          "node;0;3;0;2;version" doesn't contain the node type it is (repeater/sensor). So I think this was sent in a separate message back then. Sorry, my memory fails me.. Github history has the answer if you care to dig.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stric
            wrote on last edited by
            #5

            ok, so it's a merge of version + sensor-vs-repeater into one msg..

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


            19

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            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