Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Make XP think it's running on batteries?

  1. #21
    Newbie
    Join Date
    Mar 2008
    Posts
    4
    Quote Originally Posted by malcom2073 View Post
    C'mon man... this is mp3car. The entire purpose of this website is to over-engineer a simple problem to provide an outrageously complicated but nonetheless elegant solution
    Bravo Bravo Time to fine a meter

  2. #22
    Newbie
    Join Date
    Oct 2009
    Posts
    1
    For the PC software, I believe the most elegant solution here would be leverage the existing UPS and Battery monitoring code on XP. This code will report on battery vs main, and also initiate shutdown in the event of a low battery condition.

    As for hardware, if we think of the car in terms of a giant UPS, collect this information, and then provide it to the PC via USB with a standard UPS HID format, we get most of this for free.

    I would think of the system as follows: (Remember this is an abstraction)
    Car Battery = UPS Battery
    Car Alternator = Battery Charger,Utility Power
    DC-DC Power Supply = UPS Inverter

    We could than make a board that provides the following functions
    #0 - Car Start
    #1 - Measure Battery Voltage
    #2 - If battery voltage is at a safe level(preset by the user), turn on the inverter (Power Supply)
    #3 - If Battery Voltage is less then a preset value (13.0?) for a small amount of time then the System is "On Battery" otherwise it is "On Utility".
    #4 - If "On Battery" measure battery drain current (Note: You could also do this step instead of #2 and consider "On Battery" if a positive current drain, and "On Main" if a negative current drain.
    #5 - Using a look-up table specific to your car's battery, calculate battery charge state and battery time remaining.
    #6 - If the battery time remaining value from step #4 is below a set value, then report a "Low Battery" condition.
    #7 - Make all this information available to XP via USB in a format that makes XP believe it is connected to a UPS.
    #8 - If the Battery time remaining has expired, then shut off the inverter (Hopefully XP has shutdown before this point).
    This could be a starting point, it would also need to work with the PC power supply to prevent conflicts in overlapping functionality.

  3. #23
    Newbie rickhigginshtbr's Avatar
    Join Date
    May 2009
    Location
    Hatboro, PA
    Posts
    29
    Quote Originally Posted by malcom2073 View Post
    C'mon man... this is mp3car. The entire purpose of this website is to over-engineer a simple problem to provide an outrageously complicated but nonetheless elegant solution
    true, good call

  4. #24
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    malcom2073 has the right idea. A miniclass driver would be required for simulating a battery service in Windows with no HAL I/O, but rather interface it with Fusion Brain or some other hardware.

    But like a lot of people I don't see the point. Just having something that can read the battery can also display it even better embedded in a frontend. The only reason for the GUI to display percentage or voltage is because a laptop battery driver or UPS driver is the only way to display it. A car has a volt meter at least when the ignition is on, or can have an aftermarket meter, and a car PC has an intelligent PSU.

  5. #25
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    But an intelligent PSU doesn't give you a countdown till it shuts down.... It can't decide that since your playing music don't shutdown until low battery or since your just at the main page hibernate immediately... It can't be combined with OBDII info to tell you that a charging system malfunction is a bad alternator not a dieing battery....It gives you dozens of scripting options....

    why limit everything to the same old carpc basics?

  6. #26
    FLAC
    Join Date
    Dec 2008
    Posts
    1,292
    Quote Originally Posted by justchat_1 View Post
    But an intelligent PSU doesn't give you a countdown till it shuts down.... It can't decide that since your playing music don't shutdown until low battery or since your just at the main page hibernate immediately... It can't be combined with OBDII info to tell you that a charging system malfunction is a bad alternator not a dieing battery....It gives you dozens of scripting options....

    why limit everything to the same old carpc basics?
    i designed a simple shutdown controller that does just that. once the battery gets to a certain level you choose, a warning light starts flashing and then i know i have just a few minutes before hibernation starts.

    as far as 'estimating' how much battey life you have left like in a laptop, i still dont see the point. most of our pc's wont run for more then an hour before our batteries are too weak to start the car, so if you know you only have a good half hour to begin with there isnt much need for a ETA. just fire up the pc and use it for what you need, if you run over itll give you a warning and then hibernate.

    dont forget, windows screws up a lot too. to design a low-power shutoff script and run all that in windows you would be relying on software to do a somewhat critical function (not the best idea).

  7. #27
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Good point. A PC can (and will) hang on shutdown. A laptop, real UPS and car PSU can cut the power and save you a battery and possibly a tow to get a new battery.

    Using FB, OBD-II or even the serial input type hack you can detirmine when the engine is off and check volts (FB/OBD) and assuming you know the draw and battery condition/capacity, start an alert timer, voltage display, show battery level and all that while still allowing the PSU to cut power.

    I think the PSUs can do that? I have my own SDC as well, but redesigning it right now to work with a new DC-DC USB thing to do all kinds of strange stuff.

  8. #28
    FLAC
    Join Date
    Dec 2008
    Posts
    1,292
    its actually happened quite a few times to me already. its good to know though, that in a frozen state my pc doesnt draw that much... because after the m2 hard shuts off after 2 hours my truck still starts fine.

    here is basically a cheap hardware solution for all that smart stuff you guys are talking about. maybe you can use it to feed data into windows to get your built-in support you want... redundancy is never a bad thing in cars. http://www.amazon.com/Argus-BB-SBM12...9036043&sr=8-1

  9. #29
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Oh heck, just get a fusion brain and remote start add-on module. When the voltage reaches about 12.1V, send a pulse to the starter, let it run for 5 minutes, then pulse the brake input or whatever stops it. LOL

Page 3 of 3 FirstFirst 123

Similar Threads

  1. nGhost 2.0.2 on Ubuntu 9.0.4 - 'make' issue
    By ThePistonDoctor in forum LinuxICE
    Replies: 23
    Last Post: 07-23-2010, 08:30 PM
  2. Make Calls with BlackBerry through Win XP?
    By shooptek in forum Wireless Communications
    Replies: 2
    Last Post: 06-22-2009, 08:34 PM
  3. How To: Make Windows XP More Touchscreen Friendly
    By Maheriano in forum Operating System Optimization
    Replies: 1
    Last Post: 05-06-2009, 12:49 AM
  4. Another crazy mod: RAM booting XP (no, not EWF)
    By SFiorito in forum WinNT Based
    Replies: 11
    Last Post: 01-18-2007, 08:39 PM
  5. article on how to make XP boot up faster
    By blaster in forum Software & Software Development
    Replies: 2
    Last Post: 03-02-2005, 08:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •