What is loaded / running on the arduino?
-
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.
-
@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 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.
-
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.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch a day ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 13 days ago -
is this project dead?
General Discussion • a day ago • perfectom a day ago -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29