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. General Discussion
  3. What is loaded / running on the arduino?

What is loaded / running on the arduino?

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 957 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.
  • M Offline
    M Offline
    Mr_sensor
    wrote on last edited by
    #1

    Just a question that is on my mind for some time now. When a sketch is loaded on a arduino (in my case a pro mini) how to see / find out what is on that board? Or is that even not possible?
    After some time running a node and building others in the mean time it is not always clear what is on the particular node. Dis I miss something basic here? Or is it just not possible getting the (sketch) info from the arduino?
    How are you dealing with it. Having a sketch named/ numbered for every node? Just wondering what is the best practise.

    mfalkviddM 1 Reply Last reply
    0
    • M Mr_sensor

      Just a question that is on my mind for some time now. When a sketch is loaded on a arduino (in my case a pro mini) how to see / find out what is on that board? Or is that even not possible?
      After some time running a node and building others in the mean time it is not always clear what is on the particular node. Dis I miss something basic here? Or is it just not possible getting the (sketch) info from the arduino?
      How are you dealing with it. Having a sketch named/ numbered for every node? Just wondering what is the best practise.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @mr_sensor you are correct that it is not possible to get the sketch from the Arduino.

      But all MySensors sketches have something like this:

      sendSketchInfo("TemperatureAndHumidity", "1.1");
      

      which identifies which type of sketch and the version of that sketch, every time the sensor is restarted. If you store your sketches in some version control system (git is most popular), keeping track of them becomes quite easy.

      See also https://forum.mysensors.org/topic/2203/method-to-reveal-sketch-inside-node-or-g-w for an earlier discussion on a similar topic.

      M 1 Reply Last reply
      1
      • mfalkviddM mfalkvidd

        @mr_sensor you are correct that it is not possible to get the sketch from the Arduino.

        But all MySensors sketches have something like this:

        sendSketchInfo("TemperatureAndHumidity", "1.1");
        

        which identifies which type of sketch and the version of that sketch, every time the sensor is restarted. If you store your sketches in some version control system (git is most popular), keeping track of them becomes quite easy.

        See also https://forum.mysensors.org/topic/2203/method-to-reveal-sketch-inside-node-or-g-w for an earlier discussion on a similar topic.

        M Offline
        M Offline
        Mr_sensor
        wrote on last edited by
        #3

        @mfalkvidd said in What is loaded / running on the arduino?:

        @mr_sensor you are correct that it is not possible to get the sketch from the Arduino.

        But all MySensors sketches have something like this:

        sendSketchInfo("TemperatureAndHumidity", "1.1");
        

        which identifies which type of sketch and the version of that sketch, every time the sensor is restarted. If you store your sketches in some version control system (git is most popular), keeping track of them becomes quite easy.

        See also https://forum.mysensors.org/topic/2203/method-to-reveal-sketch-inside-node-or-g-w for an earlier discussion on a similar topic.

        @mfalkvidd thanks for the reply. The sendSketchInfo is indeed helpfull will also read the link.

        1 Reply Last reply
        1
        • K Offline
          K Offline
          kimot
          wrote on last edited by
          #4

          Arduino IDE can only program chip, not read its program memory.
          But you can use AVRDUDE ( maybe with some GUI ) for reading program memory from your chip.
          And in your program sketch define some string to identify version.
          It can be read hex output of program memory then.

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


          32

          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