Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 07-16-2009, 05:20 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: Jul 2009
Location: USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question MPGuino CPU > 100%

Got my new kit from spiffie and got it running...
Note: There was an imperfection in the circuit board that was causing a short across one of the zener diodes. I scraped some metal away and fixed it (before powering on).

One odd thing is that the CPU Util. is at 123.27. What is this measurement and how is over 100% possible?
Thanks

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-12-2010, 08:14 PM   #2 (permalink)
NightKnight
 
NachtRitter's Avatar
 
Join Date: Dec 2008
Location: Placerville, CA
Posts: 1,594

RippinRoo - '05 Subaru Legacy Wagon 2.5 GT
Subaru
90 day: 21.16 mpg (US)

Helga - '00 Volkswagen Jetta TDI
TEAM VW AUDI Group
Diesel
90 day: 53.91 mpg (US)

Olga - '03 Volkswagen Jetta Wagon
90 day: 46.24 mpg (US)
Thanks: 303
Thanked 311 Times in 186 Posts
Reviving an old thread since it's regarding the same topic...

I'm seeing the same thing... Mine shows 238%... When I first installed it, it was about 63%... now it's over 100%. Everything works fine, so I can't imagine it's accurate.

I believe I've got v 0.75 loaded.
  Reply With Quote
Old 08-13-2010, 10:35 AM   #3 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
the %cpu timing loop gets out of whack when you use the setup screen. If you unplug it and replug it, it should clear up. I added it originally to ensure that code changes did not put the CPU over its processing budget, it should have no bearing on accuracy.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-13-2010, 01:28 PM   #4 (permalink)
NightKnight
 
NachtRitter's Avatar
 
Join Date: Dec 2008
Location: Placerville, CA
Posts: 1,594

RippinRoo - '05 Subaru Legacy Wagon 2.5 GT
Subaru
90 day: 21.16 mpg (US)

Helga - '00 Volkswagen Jetta TDI
TEAM VW AUDI Group
Diesel
90 day: 53.91 mpg (US)

Olga - '03 Volkswagen Jetta Wagon
90 day: 46.24 mpg (US)
Thanks: 303
Thanked 311 Times in 186 Posts
Awesome, thanks... That's right, I remember having to change the VSS pulse count and then seeing the weird CPU % ... didn't think it affected anything, was more of a
  Reply With Quote
Old 08-15-2010, 09:09 PM   #5 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
Almost all the cpu % "load" is eaten up by all the delay periods for each LCD command. I reduced my delays from 5ms to 1ms (or whatever.. too lazy to look at the code), and my load dropped to around 10% on a 4-row LCD, 16mhz clock. I also added code to ignore cpu% if you entered Setup screens.
  Reply With Quote
Old 08-16-2010, 09:27 AM   #6 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Well it isn't technically "eaten up".
The way it is organized is that display updates are run in the main loop (low priority) every 1/2 second, and sensor updates happen in interrupts (and interrupt the main loop). If we get to the bottom of the main loop, where we sit and wait for the remainder of the 1/2 second, and we don't have any time left, then we would be at %100 indicated. So all the computations to display and interrupts are taking about 1/4 second if the cpu is at %50 and the rest is idle time, sort of (interrupts still happening)
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
The Following User Says Thank You to dcb For This Useful Post:
NachtRitter (08-16-2010)
Old 08-17-2010, 12:59 AM   #7 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
i know how it all works, and yes, the idle is being eaten up by every "delay2(5)" during every call to LcdCommandWrite and LcdDataWrite -- basically 5ms lost for every GotoXY and every char printed. Change those delays to "delay2(1)" and watch your cpu% hit single digits. I believe 1ms is within spec for the LCDs we're using, and i know it works on my 2-row and 4-row LCDs.

The computations are simple & fast; painting the screen (and data logging, if opted) is the real time consumer.
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
dcb (08-17-2010)
Old 08-17-2010, 02:10 PM   #8 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Thx Nick, I'll take another gander at the lcd code. It's been a while and I don't recall how it wound up at 5ms.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Reply  Post New Thread


Tags
cpu, mpguino, newbie



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 1061 01-17-2020 01:37 AM
Just some quick info on Scangauge vs. MPGuino NoCO2 OpenGauge / MPGuino FE computer 4 06-01-2015 04:58 PM
Quick question about EOCing with the MPGuino McTimson OpenGauge / MPGuino FE computer 10 03-11-2010 02:07 PM
MPGuino installation/setup: 1998 Geo Metro (Pontiac Firefly) MetroMPG OpenGauge / MPGuino FE computer 12 10-11-2009 03:29 PM
Will mpguino show the mileage going up while the engine is off and car is moving? abcdpeterson OpenGauge / MPGuino FE computer 6 06-02-2009 06:14 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com