Fred's firmware development diary

Official FreeEMS vanilla firmware development, the heart and soul of the system!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

I also fixed the wave form to be realistic when inverted and offset the edges of the sync pulse to not coincide with the other edges.

Image

Now it can be used for error condition checking too.

Next, and final, step is RPM control from outside in real time. That will involve a simple PC app to spew packets at the device setting the RPM. I have a few ideas on how to implement this inefficiently, which will be good enough for what I want, so I'll likely just do that.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Thanks to John Howe for helping me get a bench test function generator working:

viewtopic.php?f=8&t=1486&p=21088#p21088

Just needs some fancy features and it'll be AWESOME :-)

Now, all I need are wires... might have to wait till post xmas before I can buy enough stuff to hook up my test gear again.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Christmas day treat, for those who ever want to review a specific revision of a file and manually compare with the current version with tools git does not know about, this little script is pretty useful:

Code: Select all

#!/bin/bash

if [[ "$#" != "3" ]]; then
echo Needed 3 arguments, but got $#! Usage: gitcheckoutas HASH path newFile
exit -1
fi

git checkout $1 -- $2
cp $2 $3
touch $3:$2@$1
git checkout HEAD -- $2
This assumes no change to the current file, commit it or stash it first if so.

It checks out the old version, copies it to the new name requested, touches a file as "name colon original name @ hash" as a reference so that you can see where it came from in future, in case you forget, then finally checks out the latest of the file again.

I use this to visually diff PDFs in one project, but it's often a pain in the arse if you don't want to use std diff tools to compare. Maybe hex editor or hex dump compare etc.

Enjoy!

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Today I shall go forth and attempt to build a board to connect two FreeEMS' together! How is this relevant? If I succeed, then I can resume serious firmware work, specifically, missing teeth weirdness fixes to allow at least three more engines to run! Fingers crossed! :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

May I proudly present: FredStim! :-)

Some progress made, should be testing by end of tomorrow with some luck!

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

A couple of days ago I received a package here in Madrid containing some electronic parts. Big thanks to the forum member who pointed me at these. I'll be attempting to put them to good use early in the new year, so keep an eye out for that :-) Exciting times! 2012 is going to be a HUGE year for FreeEMS with it really maturing into something special. I foresee a stable firmware with tools to configure and tune it and a selection of good reliable hardware to run it on. The fruits of our labour are coming, I can feel it! :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Spudmn has been doing testing and digging in NZ for missing tooth stuff and found an issue with the header file array generation. I've fixed that this morning here and hopefully it resolves the issues being seen with this as yet unused code.

http://issues.freeems.org/view.php?id=491
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

The issues aren't resolved, but it is working better than it was. In the mean time, I've built a test setup entirely free of any MS crap, vid and pics here:

viewtopic.php?p=21485#p21485

Tomorrow is go hard or go home day for Missing tooth troubles! I feel like it's within reach now! :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Apparently 8 engines have run now! viewtopic.php?f=55&t=1507

10/10 for effort there, the code he's using isn't even working right yet and is dangerous to use! Balls of steel! Congratulations Spudmn! :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

I fixed the missing tooth stuff last this morning. Hopefully that's the last of the fixes. Ignition and fuel both look 100% good. I've notified the two users so that they can fiddle with it when they wake up.

http://stuff.fredcooke.com/spankme.is.r ... .logicdata
http://stuff.fredcooke.com/spankme.read ... reeems.png

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Locked