Hello from NY

Your chance to introduce yourself and your vehicle
Post Reply
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Hello from NY

Post by Matrix »

Hello from NY.
It has been a long dream for me to do my own EFI. I have looked at all other projects out there. Won’t mention their names. I have selected rusEfi since I’m a big fan of OOP, and open source. I originally started to look seriously into my own EFI board when my 928 Porsche would not start after sitting for a while. Long story short, fuel injectors got stock closed. It works now. But I do want to be prepared for the day I will have to replace the ECU. After setting up my tools and getting the Discovery board running, I see someone has got it to work on a Camaro. I also will try to use rusEFI on my LS1 engine. I’m in the process of building a FFR GTM. I’m not happy with the GM ECU, since I’m not using the BCM, it has issues.
I’m an systems engineer with a lot of experience in embedded time critical programming. I have been mostly working on electrical machine controls. Unfortunately for the past 10 years, I have moved from MCUs to FPGAs for much faster control of time critical elements.

Looking forward to working with team.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Hello from NY

Post by kb1gtt »

Hello and welcome.

Have you found the wiki? Just in case you have not, here's a link. http://rusefi.com/wiki/index.php?title=Manual:Hardware_Frankenso_board

Cool to hear from you. I once considered doing a Papilio pro ECU. I like how easy it would be to make a huge pile of injector channels, and huge pile of ignition channels. I also like how you could have a hardware decode, such that the MCU is far more maintenance operations than real time control. Doing the timing critical stuff in hardware would be really handy as a small bug in other code wouldn't effect the timing critical stuff. However the software development enviroment gets really compliated as well.
http://papilio.cc/index.php?n=Papilio.PapilioPro

I have lots of dreams, and when it comes down to it, I'm weak at software generation. I just don't do it enough, so it takes me a long time. So using a more traditional bit pump is probably the best way to get there. After all these are fast enough for the task.

As a systems guy, perhaps you can help with code. Have you found the ticket tracker at the top of this page? If not here a link https://sourceforge.net/p/rusefi/tickets/ If you happen to take a ticket and provide a patch, that would be cool and helpful for forward progress.

No worries about mentioning MegaSquirt, FredEMS, Speeduino or the other systems out there. Just be honest about it and we suggest being pleasant. They have done some great things. We do not have any harmful emotions at them. However I also agree that we need this as a fully open system, with really great hardware. I really like the FPU in the STM32. That makes things really easy to work with.

Again welcome and I look forward to hearing from you in the forums.
Welcome to the friendlier side of internet crazy :)
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

kb1gtt
thanks for the links.

I have done a lot of "engine controls" using the Motorola now freescale family of MCUs ( i relay liked their processor expert tool, does all the work for you). I was not aware of that STM32 had TPU capability until i looked into what your are doing ans pulled the datasheets. i guess i lived in a vacuum. Looks like a very good choice was selected. I have a lot of Xilinx boards at my disposal.

on another note,
i spent half a day trying to figure out why i could not change engine type in the console. "set_engine_type" is relay "set engine_type" :evil: , Now that i can set it to 35, how do i get it to show pulses on the engine sniffer. it works when engine type is 2 I'm still trying to figure out the Code, it will take me some time before i get comfortable with the flow.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

Matrix wrote:i spent half a day trying to figure out why i could not change engine type in the console. "set_engine_type" is relay "set engine_type" :evil: ,
Where did you see "set_engine_type" exactly? Let me search wiki and update. Sorry, it's a relatively recent change.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

Matrix wrote: I’m an systems engineer with a lot of experience in embedded time critical programming. I have been mostly working on electrical machine controls.
This could help! Since my experience is 98% java I am definitely not doing things the embedded way.

set engine_type 35 was broken - it was producing a configuration which was using same pin twice which was causing a fatal firmware error, solid RED & BLUE leds as an indication of error, and it was refusing to control your engine as a consequence.

Part of the problem is that https://svn.code.sf.net/p/rusefi/code/trunk/firmware/config/engines/chevrolet_camaro_4.cpp was not based on Frankenso defaults.

Default pinout fixed now, should take about an hour for build server to get version 20170128 published.
Attachments
screenshot.png
screenshot.png (108.99 KiB) Viewed 9423 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Hello from NY

Post by kb1gtt »

The STM32 has a FPU which makes floating (fixed edit @) point math only take a couple clock cycles. We are using ChibioOS to abstract from the hardware. We don't have to deal with setting up clocks to ADC's, MUX'es, etc. We just initADC and then readADC. As well if we port to another chip we don't have to change the clocks, pre-scallers, etc. All that low level stuff is done by the ChibiOS HAL. ChibiOS support the SPC56x which include 2x TPU's but we don't have a free compiler for the TPU's. With out the compiler for the SPC56x is just a low speed bit pump. As well using the pre-made modules for the TPU requires use of their crank decoder. The free crank decoder basically requires a 36-1 wheel or near equivalent, so most engines need significant modification, as well the pre-made decoder has some problems with low RPM sync. We could write a injector and ignition output via assembler. But that's allot of low level code. So using the SPC56x has not come to fruition yet.

However we expect that if we had a compiler, we could fairly easily port over to this chip and put a bunch of stuff on the TPU's.
Welcome to the friendlier side of internet crazy :)
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

Thanks for the quick response. I was not getting the Fatal error, just the speed would go to 0.
I loaded the new FW, still the same problem. RPM 0 , nothing on the engine sniffer. When i connect to the Counsel the green LED stops blinking just blue and red blink. Do i need to do something with the rusefi.ini file. How is the rusefi.ini generated?
I also commented out the redefinition of the
//boardConfiguration->fuelPumpPin = GPIOB_8;

Is there a wiki on how to configure the engine config file? I looked at some and they seem to look a lot different from each other. I cant find were the default engine is selected in the code?
Got my Frankenso 0.4 DIY KIT yesterday, installed the power supply and tested functionality. 5.05Vdc. Going to setup one injector and one Ign circuit today. Any help or pointer to how to test thse would be greatly appreciated. ( I do have an ignition coils ( subaru H4, vw over spark, LS1) , and injectors to use).
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

Matrix wrote:Thanks for the quick response. I was not getting the Fatal error, just the speed would go to 0.
I loaded the new FW, still the same problem. RPM 0 , nothing on the engine sniffer. When i connect to the Counsel the green LED stops blinking just blue and red blink. Do i need to do something with the rusefi.ini file. How is the rusefi.ini generated?
I also commented out the redefinition of the
//boardConfiguration->fuelPumpPin = GPIOB_8;
I do not understand your workflow at all. You definitely should not edit rusefi.ini at this point. rusefi.ini is for TunerStudio, do you have TunerStudio installed and configured? If you do, please post your CurrentTune.msq file.

You are mentioning editing source codes. I assume you are compiling and flashing your custom firmware? This case I really need _much_ more details on what exactly you are doing.

I would suggest using pre-compiled firmware just to make things easy and publishing your CurrentTune.msq file with your current settings. Also TS would either show FATAL indicator in the bottom left or not show it.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

Maybe, i'm bit confusing. I'm using your bundle, the only reason i compiled teh code is i noticed this in the code:

Code: Select all

boardConfiguration->idle.solenoidPin = GPIO_UNASSIGNED;
	boardConfiguration->fuelPumpPin = GPIO_UNASSIGNED;

	...

	//boardConfiguration->fuelPumpPin = GPIOB_8;
i commented the fuelPumpPin and hoped it would help. you added the boardConfiguration->fuelPumpPin = GPIO_UNASSIGNED;

I have not done any changes or edit the INI. all i'm trying to see is the camaro ls1 in teh engine sniffer. when i connect the second usb it stops blinking teh green LED, all i get is red and blue.

Where can i find the CurrentTune.msq?

thanks
35.PNG
35.PNG (68.47 KiB) Viewed 9404 times
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

Do you want to shoot a video of your discovery? The problem is that there are three red LEDs and maybe two green ones, so I am a bit lost.

CurrentTune.msq file lives in My Documents/TunerStudioProjects/NAME_OF_YOUR_TUNERSTUDIO_PROJECT
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

OK, here you go. I'm not using tuner studio, I was just using the rusefi_console
Attachments

[The extension msq has been deactivated and can no longer be displayed.]

User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

What RPMs are you trying to self-stimulate?

Please try
rpm 600
in console

can I please have a full screen shot of the whole console frame and title with everything while it shows RPM and nothing in engine sniffer?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

It this what you need?
Attachments
Capture.PNG
Capture.PNG (31.48 KiB) Viewed 9401 times
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

yes

so you send
enable self_stimulation

and what happens?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Matrix
Posts: 7
Joined: Sat Jan 28, 2017 1:32 am

Re: Hello from NY

Post by Matrix »

well, when i send enable self_stimulation then it works. Thanks.

Why do i need to do this for engine 35, but not for the other configurations?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Hello from NY

Post by AndreyB »

I think you always need enable self_stimulation with real firmware, and always do not need it with windows simulator?

I mean real firmware does not want to inject fuel until engine is really cranking.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply