|
General Volvo and Motoring Discussions This forum is for messages of a general nature about Volvos that are not covered by other forums and other motoring related matters of interest. Users will need to register to post/reply. |
Information |
|
A simple as possible 4 cylinder ODB-II ECU?Views : 744 Replies : 12Users Viewing This Thread : |
|
Thread Tools | Display Modes |
Jan 31st, 2018, 12:17 | #11 |
SilverBrick Lives!
Last Online: Apr 5th, 2024 19:06
Join Date: Apr 2015
Location: Poynton, Cheshire
|
As it runs Linux, I guess you would need a custom kernel to be able to react to all the inputs and send outputs when you want them, rather than when the OS decides.
We tried to use embedded linux in a video recorder and had a lot of trouble with critical timings. It may be possible, but the work involved would be far more complicated. (I could be completely wrong, the wife thinks I am most of the time, but having talked to people who know far more about these things than I do, the Raspberry PI is not one to use).
__________________
Jeep ZJ, 960, Past:- Mazda2, Jumbuck, V70 (2002), 945 (1995), Hyundai Coupe, Golf Mk4, Previa, Carina, 2 x Corsa, 4 x Astra, 944 16v (1991), Espace, Escort, Audi 80, Renault 21 Savanna, Polo, Mini Clubman/Pickup, Standard 8, Capri, Maxi. |
The Following User Says Thank You to GreenBrick For This Useful Post: |
Jan 31st, 2018, 15:26 | #12 |
marches on his stomach
Last Online: Feb 11th, 2022 03:15
Join Date: Jan 2018
Location: Somewhere in the Netherlands
|
I don't know which processors / operating systems would be best but I guess they are pretty low tech. You've got a mechanical system that operates in a speed range between 0 and say 7000rpm = equivalent frequency range (cycles per second) => 0 to 167 Hz
Double that and add on a bit of extra bandwidth for anti-aliasing filters (which probably don't get used as I suspect it is probably lazy cheap as chips digital signal processing) and you've got to have something that can sample say ten things at a rate of at least 400Hz - a little bit of decision making and two output signals per cycles (for a four cylinder engine) might mean you need a system that needs a 5kHz processor... ...I don't think (non Microsoft) computers are made that slow any more! EDIT - there is probably the need for a little bit more decision making - more of the IF this THEN that - so processor clock speeds might need to be a bit higher
__________________
1961 Volvo PV544 the quick and easy in between project(!) 1981 Mercedes 300D <=> 230 diesel to petrol conversion project 1965 Series 2a Station Wagon mega build 1992 Mercedes 190E The car that works! Last edited by Army; Jan 31st, 2018 at 15:36. |
Feb 1st, 2018, 17:54 | #13 | |
Premier Member
Last Online: Nov 16th, 2019 18:20
Join Date: Mar 2009
Location: Yorkshire
|
Quote:
Linux has an interesting approach to input and output. Everything is basically a file stream. As such, when you write to it, you're basically telling the OS to write it out, sort of whenever you get a moment like. It won't be forever, but it depends when the scheduler gives focus to the task of doing the right. On some Linux installs it could be 20 milliseconds. I'd have to do some sums but my gut instinct tells me it wouldn't be responsive enough. Processing speed wouldn't be an issue. It's a surprisingly capable cpu in the pi. It's just IO that might be the problem. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|