Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Software UPS/battery?

  1. #1
    Newbie mm_202's Avatar
    Join Date
    Sep 2004
    Location
    Missouri, USA
    Posts
    40

    Question Software UPS/battery?

    Does anyone here know how, or if its even possible, to make a 'software' battery/UPS for Windows 2k?

    And by that I mean be able to call some type of function (from C/C++ preferably) like:

    void SetPower(int battOrAc, int battLevel)

    The function would make Windows think that its on AC power or has a battery with a certain level; like laptops and UPSs do.

    The purpose of this is to be able to, thru an external voltmeter connected to my carputer, have Windows register the car's battery level and act accordingly.

    Thank you in advance,

    mm_202.

  2. #2
    Newbie mm_202's Avatar
    Join Date
    Sep 2004
    Location
    Missouri, USA
    Posts
    40
    Im a pretty good programmer, so Im sure that I can find a way to do it.
    But I just want to see if its been done already before I start wasting my time.

    And would anyone else out there find this useful or am I the only one?

  3. #3
    Variable Bitrate
    Join Date
    Sep 2005
    Location
    Pomona, CA
    Posts
    340
    Don't most power supplies do this for you? Or do you want to get the car battery level for a reason other than to shut the computer off when it gets too low?
    Carputer Progress:

    Re-do fabrication of screen [DONE]
    Add mini-USB and micro-USB power from M2-ATX [DONE]
    Teardown PC [100%]
    Add HDMI > VGA converter [0%]

  4. #4
    Newbie mm_202's Avatar
    Join Date
    Sep 2004
    Location
    Missouri, USA
    Posts
    40
    Yes, a different reason. Or at least a supplemental one.
    I want to be able to start the car when the battery power gets low;
    but that has nothing to do with this request (because I already know the voltage and Windows knowing about it plays no part).

    Why I want it is a little hard to explain, but I'll try.
    Basically, I do a lot of work in Ai and have a main program that runs on my laptop and my home computers (which all have UPSs). My Ai program has built-in logic that if the power goes out (or is getting low, in case of my laptop), it will start turning things off, use less CPU cycles, alert me, save all open files, etc. And because I have all this code written using Window's power management functions, I'd like to be able to use the same exact code for my carputer instead of having two different versions (because the same exact Ai program runs in my car too).

    And being able to emulate a battery would also make debugging much easier.

  5. #5
    Variable Bitrate
    Join Date
    Sep 2005
    Location
    Pomona, CA
    Posts
    340
    Quote Originally Posted by mm_202 View Post
    Yes, a different reason. Or at least a supplemental one.
    I want to be able to start the car when the battery power gets low;
    but that has nothing to do with this request (because I already know the voltage and Windows knowing about it plays no part).

    Why I want it is a little hard to explain, but I'll try.
    Basically, I do a lot of work in Ai and have a main program that runs on my laptop and my home computers (which all have UPSs). My Ai program has built-in logic that if the power goes out (or is getting low, in case of my laptop), it will start turning things off, use less CPU cycles, alert me, save all open files, etc. And because I have all this code written using Window's power management functions, I'd like to be able to use the same exact code for my carputer instead of having two different versions (because the same exact Ai program runs in my car too).

    And being able to emulate a battery would also make debugging much easier.
    Ah, that's pretty cool. I definitely understand wanting to emulate the battery cuz I'm a progammer myself and I would want less work for myself. That said, I don't have a solution for that and you could definitely make one better/faster than me
    Carputer Progress:

    Re-do fabrication of screen [DONE]
    Add mini-USB and micro-USB power from M2-ATX [DONE]
    Teardown PC [100%]
    Add HDMI > VGA converter [0%]

  6. #6
    Newbie
    Join Date
    Oct 2006
    Posts
    1

    Exclamation Onsite Power 2006

    Remote Monitoring & Networking 2006 -- SCADA, Data Acquisition, Device Networking, M2M and Security for Remote Sites and Onsite Power -- Offgrid, Standby and Back-up Power for Mission Critical Operations will be held November 9-10, 2006 Long Beach, California at the The Westin Long Beach. These technology-driven and solution oriented conferences bring together the in novators and users from multiple industries, including utilities, power, oil & gas, telecom, industrial, water & public utilities, agriculture and facilities management.

    Remote Monitoring & Networking 2006 will focus on the leading advancements for the monitoring and management of distributed equipment and facilities, remote assets, automated process & system controls and device networks. Large-scale users and industry experts will speak on SCADA, security, control, automation, M2M, networking, telemetry and condition monitoring.

    Onsite Power 2006 will cover the latest advancements in back-up, UPS, emergency and standby power systems, and design strategies for monitoring & controlling distributed, remote and mission-critical equipment and facilities. MORE INFO AT:

    http://www.remotemagazine.com/rem_conf_index.htm

  7. #7
    Newbie norwegianguy's Avatar
    Join Date
    Sep 2006
    Location
    norway
    Posts
    35
    i belive the batterylevelstuff is in the bios on the laptop....windows just read the info in bios.... think u would have to mod the bios to emulate a battery, or find a way to alter where windows get the info, (good luck) would rather go for biosmodding rather than going tru windows

  8. #8
    Newbie mm_202's Avatar
    Join Date
    Sep 2004
    Location
    Missouri, USA
    Posts
    40
    Quote Originally Posted by norwegianguy View Post
    i belive the batterylevelstuff is in the bios on the laptop....windows just read the info in bios.... think u would have to mod the bios to emulate a battery, or find a way to alter where windows get the info, (good luck) would rather go for biosmodding rather than going tru windows
    No, Windows uses a driver that pulls it out of the BIOS, no Power Management itself. Indirect proof would be the way that Power Management (PM) can read a laptop battery or a USB UPS or a serial UPS. And Windows supports more then one UPS/battery. So Im sure that it doesnt take the UPS info and stuff it into the BIOS just to go and re-read it.

  9. #9
    Constant Bitrate Vineet Singh's Avatar
    Join Date
    Jul 2003
    Location
    Naperville IL
    Posts
    166
    What about parts of this circuit? You would need the PIC, and a way to program it... but it's still just software mostly

    http://www.madhacker.org/usb_hid_keys.htm

    You don't get a voltage reading off of it, just that it's either above or below a preset limit (he uses 10v)

    Alternatively, you could just buy a cheap, but intelligent USB or RS232 UPS, and rip out the inverter portion, and just use the HID UPS monitor section that reports on it's own 12v battery, only it's now attached to the car... but I don't know their ranges, but you could rescale the info. www.tigerdirect.com has a few for less than $40.

    91 Stealth RT/TT
    CarPuter: Inspiron 5150 P4 3.0ghz; Built-in WiFi; Deluo GPS; Radio Shark; OBD1; Nostromo Speedpad
    Audio: Audigy 2 NX; Clarion 500.5 amp; 100.2 center channel amp; Kicker Solo-baric L7 10" Sub
    Display: Lilliput 7" Touchscreen

  10. #10
    Newbie mm_202's Avatar
    Join Date
    Sep 2004
    Location
    Missouri, USA
    Posts
    40
    Quote Originally Posted by Vineet Singh View Post
    What about parts of this circuit? You would need the PIC, and a way to program it... but it's still just software mostly

    http://www.madhacker.org/usb_hid_keys.htm

    You don't get a voltage reading off of it, just that it's either above or below a preset limit (he uses 10v)

    Alternatively, you could just buy a cheap, but intelligent USB or RS232 UPS, and rip out the inverter portion, and just use the HID UPS monitor section that reports on it's own 12v battery, only it's now attached to the car... but I don't know their ranges, but you could rescale the info. www.tigerdirect.com has a few for less than $40.
    Im not worried about the hardwareportion of it, but cutting up a UPS is actually a good idea!

    But I'd still like to be able to do it with software because ofthe flexibility and debugging ease. No one has any software ideas?

Page 1 of 3 123 LastLast

Similar Threads

  1. AutoTap used to develop custom software!
    By Dodger1417 in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 5
    Last Post: 09-25-2006, 10:51 AM
  2. MSDXM.OCX - Why oh why don't you fix that NOW?!
    By Zippy1970 in forum Media Engine
    Replies: 18
    Last Post: 02-28-2005, 04:36 PM
  3. Replies: 2
    Last Post: 01-06-2004, 09:19 PM
  4. My numpad controlled custom MP3Car software - need your opinions
    By PorscheMP3 in forum Software & Software Development
    Replies: 7
    Last Post: 04-11-2002, 10:30 AM

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
  •