berthubert / galmon

galileo open source monitoring
GNU General Public License v3.0
198 stars 53 forks source link

"swversion" isn't the most useful thing in observer.html #131

Closed myself248 closed 3 years ago

myself248 commented 3 years ago

Since no matter what firmware is loaded onto a given module, "swversion" always indicates the ROM, consider using a different field that shows the flash version actually running.

mahtin commented 3 years ago

The swversion does contain some useful information (see https://galmon.eu/observers.html for a human readable version of this data):

$ curl -sS https://galmon.eu/observers.json | jq -r '.[]|.swversion' | sort | uniq -c
   3 
  12 EXT CORE 1.00 (61b2dd)
   1 EXT CORE 1.00 (71b20c)
   3 EXT CORE 1.00 (94e56e)
   3 EXT CORE 1.00 (f10c36)
   8 EXT CORE 3.01 (107900)
   4 EXT CORE 3.01 (111141)
   1 EXT CORE 4.03 (6c5018)
  53 ROM CORE 3.01 (107888)
$

If you add the h/w and mods into the equation, then you see more of what's going on:

$ curl -sS https://galmon.eu/observers.json | jq -r '.[]|.swversion,.hwversion,.mods' | paste - - - | sort | uniq -c
   3        
  12 EXT CORE 1.00 (61b2dd) 00190000    ZED-F9P
   1 EXT CORE 1.00 (71b20c) 00190000    ZED-F9T
   3 EXT CORE 1.00 (94e56e) 00190000    ZED-F9P
   3 EXT CORE 1.00 (f10c36) 00190000    ZED-F9P
   8 EXT CORE 3.01 (107900) 00080000    
   2 EXT CORE 3.01 (111141) 00080000    LEA-M8T-0
   2 EXT CORE 3.01 (111141) 00080000    NEO-M8T-0
   1 EXT CORE 4.03 (6c5018) 00190000    NEO-M9N
  53 ROM CORE 3.01 (107888) 00080000    
$

So swversion, along with hwversion and mods are all useful information.

ahupowerdns commented 3 years ago

what martin said!