Suitable file format for Megalogviewer HD
Posted: Wed Nov 08, 2017 5:38 pm
Hi.
I'm putting together a little arduino style thing (Adafruit Feather m0 running CircuitPython) to datalog a Zeitronix wideband, and an OBD2 adapter.
It's for my bmw k1300s motorbike.
Just wondering, what would be the most suitable text based logfile format? Can I get any info on how to lay out a csv optimally for Megalogviewer HD ?
My output currently looks like:
158.515,0,1,2,148,200,0,0,0,255,128,22,159,254,255
158.535,0,1,2,147,200,0,0,0,255,128,22,159,254,255
158.554,0,1,2,148,200,0,0,0,255,128,22,159,254,255
(where the first field is time since power-on, and the subsequent fields are the Zeitronix serial packet, i.e 0, 1, 2, then AFR, then other sensors which i will not be using anyway, as I will use OBD2 instead
when I hook up the OBD, I will have alternate lines of Zeitronix data, and OBD data. So I am expecting something like, e.g.:
time,zt-field1,zt-field2,zt-field3,zt-field4,zt-field5
time,obd-field1,obd-field2,odb-field3,obd-field4
etc.
I suppose I don't have to do it that way. i can get the data in my program, then just spit out the time and combine the data on one line..
Any recommendations for making it easy to manage the data in Megalogviewer HD ? Just CSV with the field names at the top, or something else?
Thanks,
Carl
I'm putting together a little arduino style thing (Adafruit Feather m0 running CircuitPython) to datalog a Zeitronix wideband, and an OBD2 adapter.
It's for my bmw k1300s motorbike.
Just wondering, what would be the most suitable text based logfile format? Can I get any info on how to lay out a csv optimally for Megalogviewer HD ?
My output currently looks like:
158.515,0,1,2,148,200,0,0,0,255,128,22,159,254,255
158.535,0,1,2,147,200,0,0,0,255,128,22,159,254,255
158.554,0,1,2,148,200,0,0,0,255,128,22,159,254,255
(where the first field is time since power-on, and the subsequent fields are the Zeitronix serial packet, i.e 0, 1, 2, then AFR, then other sensors which i will not be using anyway, as I will use OBD2 instead
when I hook up the OBD, I will have alternate lines of Zeitronix data, and OBD data. So I am expecting something like, e.g.:
time,zt-field1,zt-field2,zt-field3,zt-field4,zt-field5
time,obd-field1,obd-field2,odb-field3,obd-field4
etc.
I suppose I don't have to do it that way. i can get the data in my program, then just spit out the time and combine the data on one line..
Any recommendations for making it easy to manage the data in Megalogviewer HD ? Just CSV with the field names at the top, or something else?
Thanks,
Carl