Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, how could I measure the normal power consumption of my USB keyboard?

After I get my statistics, I may easily notice when a hardware keylogger gets installed, by the changed power consumption.

share|improve this question
1  
What is your real question or problem? Do you want to know how much your keyboard consumes (if so, why)? Do you actually just want to know whether there's a keylogger installed? Is your question purely hypothetical or are you in a situation where you suspect a keylogger being installed? –  slhck Jun 8 '12 at 16:13
2  
If a hardware keylogger is installed, you should notice by actually seeing the device sitting between the usb port and the keyboard connector. –  psusi Jun 8 '12 at 23:46
    
The question is hypothetical. I'm just curious about how to know the consumption for no particular reason. On the other hand, a hardware keylogger would be installed inside the case of my keyboard, I think. Then it would be hard to spot, or else it would be pointless. –  naxa Jun 9 '12 at 7:07
    
This question is off topic per the Site Help "You should only ask practical, answerable questions based on actual problems that you face." –  Scott Chamberlain Jun 10 '13 at 14:31
    
@ScottChamberlain interesting point. I think I face the problem that I cannot test another problem without a tool to measure it. How could I face the problem of having a logger installed into my keyboard if I cannot check if I face it? :) So the way to check it is a problem itself. –  naxa Jun 10 '13 at 14:39

5 Answers 5

up vote 8 down vote accepted

USB current/voltage meters exist. Here's one on Amazon (though unfortunately out of stock at the moment). Here's the same model on eBay (from Germany, but ships worldwide).

enter image description here

Alternatively, if you're up for a bit of DIY, see this project on Instructables. You'll need a multimeter, though, because that's just a passive passthrough connector that simply provides a couple of test points.

share|improve this answer
    
Thanks, I like it. I'll wait a bit to see if a computer-based solution comes up, in case if it's possible. On the other hand the computer would be also a target for such an attack, while a newly bought/made usb c/v meter won't. :) –  naxa Jun 9 '12 at 7:11
    
i'll just provide some further identification related things from your links PC Computer Check Diagnostic USB Port Voltage Current Tester Checker Extend Cable by Winter El. Co. on amazon. And, UPT- 0049 USB-Port-Spannungs- + Strommesser [7739] on ebay from seller m-ware. I could ask him re this... but could ask you perhaps. I see it's rectangular. On one side is a USB cable hardwired in, on the other There is a female usb socket and a power supply socket on it. does it need the power supply socket, and for what? –  barlop May 9 '13 at 9:45
1  
+1 just to add. I have tried the device, and while it has the socket, no power supply is necessary(so who knows why it's there). it has a little switch for volts or amps, and shows volts and amps nicely. though it hasn't given me any insight into why my usb hdd is recognized in one computer and not another. The one I got , same thing, on ebay, was called PC USB 2.0 Cable Device Voltage Current Meter Tester Item Number 290754313719 $14.25 USD –  barlop May 9 '13 at 11:52
1  
The above device is hard to find now though there is USB charger doctor dx.com/p/… and youtube.com/watch?v=fRl9a0PvoTo –  barlop Oct 17 '13 at 3:46

You didn't specify, but I know Windows (and probably other modern OS's) will tell you how much power is "required" for each attached USB device in the properties of each "USB Root Hub" in the Device Manager.

USB Root Hub Properties

Regardless of that, unless you're talking about a physical hardware keylogger that has to be in-line with the keyboard, then you're not going to be able to detect it by electrical draw in the way you are suggesting (by watching the keyboard).

share|improve this answer
2  
Please note that the "Power required" data is whatever the usb devices is reporting as its maximum, it's not an actual measurement. Nothing prevents a device from reporting 100 mA and actually drawing more (up to a limit, of course). So, if you have an in-line keylogger, it will not be reflected here since the USB keyboard does not know about it. –  haimg Jun 8 '12 at 17:43
    
@haimg and techie007, Thanks for both answer and comment. –  naxa Jun 9 '12 at 6:59

I would recommend this USB power meter...

http://www.smartronixstore.com/index.cfm?fuseaction=product.display&product_ID=53

I use it and it works great. Better than hacking up cables and trying to tie in a multimeter.

share|improve this answer
    
worth knowing, but worth noting that the one you suggest is many times more expensive than one or two already mentioned. though your has some longevity in availability,as it's still sold. –  barlop Oct 17 '13 at 3:49

I haven't tried it but you could get a regular Mains Power Meter plug and unplug the keyboard and measure the difference.

What I have tried, is you could also connect a multimeter in series and measure the current. Like break the usb cable and connect your multimeter in between. If somebody can describe that process fully then that'd be great and a better answer than mine. Given the Voltage(5V) and current/amps, you can measure the Power/watts.
Power(P) = Current(I) * Voltage(V)
P=I*V

added- now tried indrek's solution.. PC USB 2.0 Cable Device Voltage Current Meter Tester

share|improve this answer

There seems to be one at AdaFruit, called USB Charger Doctor. It looks simple, but efficient.

share|improve this answer
    
I see they ship from New York. "International orders are shipped using USPS which is the US Postal Service." In recent lights, this may (unfortunately) also be relevant: NSA reportedly installing spyware on US-made hardware –  naxa Aug 8 at 14:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.