Author Topic: Data Logger  (Read 5610 times)

860

  • Brammovangelist
  • *****
  • Posts: 231
    • View Profile
Re: Data Logger
« Reply #15 on: January 01, 2013, 04:13:50 AM »
There does seem to be some Hex String labels in there in between raw data blocks.  These appear to be buffered by zeros to offset the data blocks to specific offsets.  Right after the date there are "4d31", "4d32", etc on consecutive lines.  This is "M2", "M3", etc in ASCII.  It looks like M2 through M7 repeat every time increment.

Then there are other large data blocks that start with "423a383838383838" after the date sentinel, which is "B:888888" in ASCII.  Later in this data block there is a "42726" in the exact same place in each of these large data blocks.  This converts to "Bra" in ASCII which I would guess stands for Brammo.

It definitely is an interesting log format, with mixtures of different ASCII, numeric, and date formats all in the same file.  A single conversion pass won't decode it.  Different hex pairs have to be converted in different ways depending on their position in each line.


 

flar

  • Brammovangelist
  • *****
  • Posts: 488
    • View Profile
Re: Data Logger
« Reply #16 on: January 01, 2013, 06:21:04 AM »
4d31 through 4d37 are M1 through M7.  I'm not sure why you thought it started at M2?

I'm guessing it is data about each module in a separate entry - aren't there 7 battery modules?
Current bikes: 2013 Brammo Empulse R, 2005 BMW R1200RT
Prior bikes: 1988 Honda Hawk GT, 1997 BMW F650

ttxgpfan

  • Brammovangelist
  • *****
  • Posts: 449
    • View Profile
    • Email
Re: Data Logger
« Reply #17 on: January 01, 2013, 10:57:37 PM »
You people are feakin' scary. :D

I can just see someone at brammo reading this, and going. "no, no, Nooo."  While someone else is tearing up a keyboard writing a software patch while muttering something like. "Oh, those Brammoforum guys think they hack my code.  Yeah, well hack this!"  But I always picture the Brammo folks having more fun then they probably are. :D

flar

  • Brammovangelist
  • *****
  • Posts: 488
    • View Profile
Re: Data Logger
« Reply #18 on: January 01, 2013, 11:03:17 PM »
This ain't hacking.  When I started using computers you had to load your hexcodes in by hand just to balance your checkbook, if any of you kids know what that is...
Current bikes: 2013 Brammo Empulse R, 2005 BMW R1200RT
Prior bikes: 1988 Honda Hawk GT, 1997 BMW F650

protomech

  • Brammovangelist
  • *****
  • Posts: 1987
    • View Profile
    • ProtoBlog
Re: Data Logger
« Reply #19 on: January 01, 2013, 11:40:15 PM »
A checkbook? Those belong in a museum..
1999 Honda VFR800i | 2014 Zero SR
Check out who's near you on frodus's EV owner map!
http://protomech.wordpress.com/

Mr.Rodgers

  • Empulse Guru
  • ****
  • Posts: 118
    • View Profile
    • Email
Re: Data Logger
« Reply #20 on: January 03, 2013, 09:20:03 PM »
A checkbook? Those belong in a museum..

I completely agree. I have never had one and don't plan on changing that
(somewhat)Patiently waiting

frodus

  • Brammovangelist
  • *****
  • Posts: 509
    • View Profile
Re: Data Logger
« Reply #21 on: February 11, 2013, 01:59:05 PM »
Any more work on this?

flar

  • Brammovangelist
  • *****
  • Posts: 488
    • View Profile
Re: Data Logger
« Reply #22 on: February 11, 2013, 06:40:51 PM »
I've written a "slightly better than a hex dump" viewer, but all it does so far is recognize the date fields, express them as dates and then print the rest of the entry out as hex codes except for the V (VIN) and C (Comment?  Charge?) sections which appear to be in ASCII.

I've written it in JavaFX because it's what I know and there is a nice charting package built in which I'm sure will come in handy once I get to that point.  The question is how to share and collaborate on it?  For now I have a few things I'd like to get going on it before it is really useful so I'm going to keep hacking on it, but I've attached a snapshot of what it looks like.
Current bikes: 2013 Brammo Empulse R, 2005 BMW R1200RT
Prior bikes: 1988 Honda Hawk GT, 1997 BMW F650

flar

  • Brammovangelist
  • *****
  • Posts: 488
    • View Profile
Re: Data Logger
« Reply #23 on: February 14, 2013, 12:39:15 AM »
A little bit more work - I think I can calculate SoC from the logs (and graph it).
Current bikes: 2013 Brammo Empulse R, 2005 BMW R1200RT
Prior bikes: 1988 Honda Hawk GT, 1997 BMW F650

FreepZ

  • Brammovangelist
  • *****
  • Posts: 776
    • View Profile
    • Empulse Experience
    • Email
Re: Data Logger
« Reply #24 on: March 16, 2013, 11:10:55 PM »
If any body is interested is helping us figure out what wondrous secrets are hidden in the Empulse log files, now is your chance!

I've uploaded a modification of Flar's fantastic Enspector java program.

https://bitbucket.org/freepz/enspector/downloads

The big change here is that you can edit what data is displayed on the graph.

So far, Flar and I have figured out the Odometer, and I think that I have the air and motor temperatures.

Here's what it looks like:



Once you've figured out some of those data values, just post your settings.json file somewhere and we can all import it and find out what you've discovered.
Richard #935 #595 #44

FreepZ

  • Brammovangelist
  • *****
  • Posts: 776
    • View Profile
    • Empulse Experience
    • Email
Re: Data Logger
« Reply #25 on: March 28, 2013, 09:25:45 PM »
To facilitate sharing, I've created an editable spreadsheet that has a definition of the various values that can be found in the logs.

Here's a link to that spreadsheet:
https://docs.google.com/spreadsheet/ccc?key=0AhH9n2kvW1yEdDJfNjkzakFPcmxZRlI3Q2RNanRVNWc&usp=sharing

If anybody has figured out what some of the other bits mean, please update the spreadsheet.
Richard #935 #595 #44

FreepZ

  • Brammovangelist
  • *****
  • Posts: 776
    • View Profile
    • Empulse Experience
    • Email
Re: Data Logger
« Reply #26 on: March 30, 2013, 10:16:39 PM »
I've uploaded a new version of the Enspector.
https://bitbucket.org/freepz/enspector/downloads

Changes for 1.03:
  • The Edit Graph window is now a table that can be scrolled and sorted. This makes it work a lot better when there are many entries in the table (the old version got pretty wonky with more than about 6 rows).
  • The Log Data now shows the data values that are known: Speed, RPM, Odometer, Motor and Air temp, and Throttle Position
Richard #935 #595 #44

frodus

  • Brammovangelist
  • *****
  • Posts: 509
    • View Profile
Re: Data Logger
« Reply #27 on: July 30, 2013, 04:29:57 PM »
Any more work on this?

flar

  • Brammovangelist
  • *****
  • Posts: 488
    • View Profile
Re: Data Logger
« Reply #28 on: July 30, 2013, 09:35:26 PM »
My log drive stopped working a few months ago so I haven't had much incentive, but I'm looking to get that fixed soon...
Current bikes: 2013 Brammo Empulse R, 2005 BMW R1200RT
Prior bikes: 1988 Honda Hawk GT, 1997 BMW F650