Brammo Owners Forum

Brammo Empulse Discussion => Brammo Empulse => Topic started by: flar on February 27, 2013, 02:36:45 AM

Title: Log Inspector
Post by: flar on February 27, 2013, 02:36:45 AM
I've been working on a JavaFX program to load and view the logs from the Empulse log drive under the seat.  I've gotten to a pre-Alpha stage and put some source code up on bitbucket and I'd like a small number of volunteers who are capable of downloading their logs and using a program with a minimal UI without poking anyone's eyes out.  If you are interested, PM me and I'll point you to the sources and executable so we can start brainstorming how to make this a useful tool.

I'd love to see some volunteers with Java programming skills, but adventurous non-programmer end-users would also be welcome in limited quantities...
Title: Re: Log Inspector
Post by: FrankH on March 02, 2013, 05:38:06 AM
I don't have an Empulse but I do have a lot of Enertia Plus driving log files that end with an error message. No idea how similar those log files are, but I'd like to try it out...

BTW I'm not a Java programmer but I code for a living (mostly ActionScript and some Objective C) so I think I have the tools to run and test your code.
Title: Re: Log Inspector
Post by: frodus on March 02, 2013, 09:44:03 AM
I'm down to test it out, I'll have my Empulse in another couple hours.
Title: Re: Log Inspector
Post by: NutsnVolts on March 02, 2013, 11:32:34 AM
I'm down to test it out, I'll have my Empulse in another couple hours.

So pumped to see you finally thrash around on an El Moto!
Title: Re: Log Inspector
Post by: frodus on March 02, 2013, 01:47:53 PM
I just got the bike, see my "took the plunge" thread... I will be writing up an extensive review over the next few days.... It may make it into the next EVAA mag.


As far as the Java program, let me know, PM me and we'll exchange email and I can test.
Title: Re: Log Inspector
Post by: FreepZ on March 03, 2013, 09:36:12 AM
I've been playing with flar's log viewer, and graphing out some of the Data values. Check it out.

(http://freepz.files.wordpress.com/2013/03/graphs.png)

Here's my guess for what these lines mean:
Notes:
- Butt Dyno - I was trying out acceleration along a deserted stretch of road (that happened to be in front of a Harley Davidson place!)
- Top Speed A - I got on the highway (at an exit I'll call 'X') and went to the first exit (call is 'Y'). (X to Y)
- Top Speed B - Went back, passed the exit X, and took the next exit ('Z'). (Y to Z)
- Top Speed C - Went back again, and exited at X again. (Z to X)
- There was a fairly strong tailwind in one direction (I think going from Y to Z).
- Notice that Data 4 is not 0 near the start. That's probably when I rolled the bike out of the garage.

I'm probably wrong about most of these values. Anybody want to give me some better info?

(By the way, all you PC users out there are hosed since the USB chip is formatted to Apple's file system. Lucky for me my fiancee has an Apple!)
Title: Re: Log Inspector
Post by: flar on March 03, 2013, 04:48:52 PM
<jaw on floor>

Wow FreepZ, you've been busy with my code!  I'll take a look at that source code fork you made and we can start integrating it in if we can verify and name some of the data points.  Any luck on finding speedo?

BTW, my drive read just fine on my PC.  I didn't check the formatting, but I'm running Windows 7 x64 and I don't think it can read the Mac file system out of the box so mine must have been formatted with FAT or NTFS...
Title: Re: Log Inspector
Post by: FreepZ on March 03, 2013, 05:58:52 PM
The speedo is probably not be recorded since speed can be calculated with the odometer and time stamp. Also, the engineers are probably more interested in motor speed, voltages, temperatures, etc. than actual vehicle speed.
I'm surprised that I haven't been able to find the current gear number in there. Some of values go all over the place without any apparent rhyme or reason.

My changes to your program are a total hack, but perhaps we can get to a point where anybody can use your program to view those data graphs, and then more people can help to figure out what those number mean.