[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 258: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 320: mysqli_free_result(): Couldn't fetch mysqli_result
rusefi.com The most advanced open source ECU 2014-04-04T14:10:19 https://www.rusefi.com/forum/app.php/feed/topic/527 2014-04-04T14:10:19 2014-04-04T14:10:19 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7280#p7280 <![CDATA[Re: Knock sensing and Serial USB in software]]>
TPIC8101/HIP9011 for example has a sampling frequency about 200 kHz. Who knows what is the reason of a choice this frequency ?
With a higher frequency you get better precision, and you can take harmonics into account, to avoid false positive.

Statistics: Posted by mobyfab — Fri Apr 04, 2014 2:10 pm


]]>
2014-04-03T21:24:19 2014-04-03T21:24:19 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7243#p7243 <![CDATA[Re: Knock sensing and Serial USB in software]]>
I seem to recall that if you call and ask about the chip, you'll either find they don't have an engineering department, or you'll find they have an engineer that used to work for the other company. Seems someone bought someone or something like that, and they are really the same thing behind the scenes. I also seem to recall one has a more detailed datasheet, that happens to work with the other one. However that's mostly hearsay and horse shit, so take those comment with a deaf ear.

Statistics: Posted by kb1gtt — Thu Apr 03, 2014 9:24 pm


]]>
2014-04-03T15:04:28 2014-04-03T15:04:28 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7228#p7228 <![CDATA[Re: Knock sensing and Serial USB in software]]> Statistics: Posted by Sergey89 — Thu Apr 03, 2014 3:04 pm


]]>
2014-04-03T14:39:56 2014-04-03T14:39:56 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7227#p7227 <![CDATA[Re: Knock sensing and Serial USB in software]]> Unless things are done really wrong.

This MCU has DSP instructions, it would be a shame not to use them :)

There is probably a way to implement the Goertzel algorithm using DSP as well.

Statistics: Posted by mobyfab — Thu Apr 03, 2014 2:39 pm


]]>
2014-04-03T02:21:03 2014-04-03T02:21:03 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7197#p7197 <![CDATA[Re: Knock sensing and Serial USB in software]]> Statistics: Posted by kb1gtt — Thu Apr 03, 2014 2:21 am


]]>
2014-04-02T12:30:37 2014-04-02T12:30:37 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7164#p7164 <![CDATA[Re: Knock sensing and Serial USB in software]]> I only use command line which I feel is what works best. (Linux and Cygwin for windows)
TortoiseGit stopped working for me, so it's not an option. MsysGit works pretty well.

SVN is so limited for team work that I think sticking with it is will make you loose a lot of support and visibility.

For the Goertzel algorithm, I'll try to come with some implementation for the STM32F4 using DSP.

The FFT+Mag calculation of 3.82ms of data only takes 181us. (256 points at 67khz)
That's not even 5% CPU time.
So sticking with FFT might be a good option.

Thanks.

Statistics: Posted by mobyfab — Wed Apr 02, 2014 12:30 pm


]]>
2014-04-01T23:52:17 2014-04-01T23:52:17 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7151#p7151 <![CDATA[Re: Knock sensing and Serial USB in software]]>
About Knock, much like how FFT is a stream lined version of DFT, things like the Goertzel algo are a stream lined version of FFT.

http://en.wikipedia.org/wiki/Goertzel_algorithm

Basically it stream lines things a bit more, making a kind of go / no go output signal. If we are looking for say 5kHz, with a Q of blah, the output from the algo would simply be a 1 if you have had a specified amount of energy for a specified amount of time. A great thing with these algo's are that they only use N and N-1, so minimal memory usage, and the math done each cycle is also minimal, so it typically executes fast and uses little memory.

Statistics: Posted by kb1gtt — Tue Apr 01, 2014 11:52 pm


]]>
2014-04-01T14:14:03 2014-04-01T14:14:03 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7128#p7128 <![CDATA[Re: Knock sensing and Serial USB in software]]>
I am well aware of this
Image
concept but I hope that this is not the case here. I sure might be wrong :)

Statistics: Posted by AndreyB — Tue Apr 01, 2014 2:14 pm


]]>
2014-04-01T14:06:03 2014-04-01T14:06:03 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7127#p7127 <![CDATA[Re: Knock sensing and Serial USB in software]]>
1) I could give a hand if you were using Git. :P

2) You probably need to play with the VBUS to force windows to reconnect. Also might need some delays.

3) Git is really as easy as SVN if you don't do crazy branching. It's just a mater of getting used to it.

Thanks :)

Statistics: Posted by mobyfab — Tue Apr 01, 2014 2:06 pm


]]>
2014-04-01T13:51:07 2014-04-01T13:51:07 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7126#p7126 <![CDATA[Re: Knock sensing and Serial USB in software]]>
1) knock detection: I do not have time to finish the relatively easy external hardware integration, so there is no chance that I would have time to look at the software implementation any day soon. This simply would not happen any time in 2014 :( Unfortunately there are not so many sw developers actively involved with this project. That's part of the reason why kickstarter

2) USB: there is a major usability issue in case of MCU reset - see http://sourceforge.net/p/rusefi/tickets/46/ http://forum.chibios.org/phpbb/viewtopic.php?f=16&t=1727

3) http://rusefi.com/forum/viewtopic.php?f=5&t=501

Statistics: Posted by AndreyB — Tue Apr 01, 2014 1:51 pm


]]>
2014-04-01T13:43:39 2014-04-01T13:43:39 https://www.rusefi.com/forum/viewtopic.php?t=527&p=7125#p7125 <![CDATA[Knock sensing and Serial USB in software]]>
It seems most of the tasks are done on hardware, such as knock sensing and additional serial to USB.

Why don't you do these in software?

To me, knock sensing is simply calculating FFT on a buffer, and measuring the value of specific bins (frequency).
Of course there are a few other things to do but in the end it's not that complicated.
It does take some CPU power but the F4 is a beast and could handle that easily.

For the Serial to USB, you can make a composite device and have several serial ports over one cable. (up to 7 on the F4)

Another advantage of using the USB peripheral is that you can make a bootloader.

I have a few code examples if you are interested :)

Last thing, you should really move to github, it helps people to contribute code ;)

Statistics: Posted by mobyfab — Tue Apr 01, 2014 1:43 pm


]]>