Announcement

Collapse
No announcement yet.

Software UPS/battery?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment


    • #3
      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%]

      Comment


      • #4
        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.

        Comment


        • #5
          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%]

          Comment


          • #6
            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

            Comment


            • #7
              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

              Comment


              • #8
                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.

                Comment


                • #9
                  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

                  Comment


                  • #10
                    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?

                    Comment


                    • #11
                      Using the UPS parts, you WOULD have an external voltmeter, and standard HID class battery/ac reporting. I'm not a programmer (though I did stay at a holiday inn, and do have a Unix/C/C++ associates degree )

                      I hate programming. I can try to fix/mod others, but can't create my own

                      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

                      Comment


                      • #12
                        So no one knows of any already built drivers/code for this?
                        I was really hoping to avoid doing it myself

                        But if I end up writing an emulator, would anyone else be interested in it?

                        Comment


                        • #13
                          So no one knows of any already built drivers/code for this?
                          I was really hoping to avoid doing it myself

                          But if I end up writing an emulator, would anyone else be interested in it?

                          Comment


                          • #14
                            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.

                            I'd definately be interested in your idea. I'm not much of a programmer, more of an electronics tech. I was looking to do the same, only by using a small 12volt PLC. That's the only way I could accomplish that. That's a big expense, however, but provides a good control interface for the vehicle.

                            Are you looking to start the vehicle at a point where the voltage is low for a set period of time (as an additional step in your software)? I can see that being advantageous in applications where the puter stays on long-term, for purposes like remote comms/ control.
                            It's been a while...

                            Comment


                            • #15
                              I found this, thought I would share. Sorry however it is not a software solution. Pretty pricey too. But it is a way, I think, to get the appropriate variable inputs.
                              It's been a while...

                              Comment

                              Working...
                              X