USB HID protocol documentation for UPS -


i bought cyberpower ups protect home computer unreliable grid power.

plugging usb cable got in syslog (linux):

localhost kernel: hid-generic 0003:0764:0501.0003: hiddev0,hidraw2: usb hid v1.10 device [cps cp900epfclcd] on usb-0000:00:14.0-12/input0 

reading /dev/hidraw2 or /dev/usb/hiddev0 there's data popping out:

# cat /dev/hidraw2 | hexdump -c 00000000  08 64 f6 09 2c 01 0b 11  08 64 14 0a 2c 01 0b 11  |.d..,....d..,...| 00000010  08 64 14 0a 2c 01 0b 11  08 64 d8 09 2c 01 0b 11  |.d..,....d..,...|  # cat /dev/usb/hiddev0 | hexdump -c 00000000  d0 00 85 00 01 00 00 00  44 00 85 00 00 00 00 00  |........d.......| 00000010  45 00 85 00 00 00 00 00  42 00 85 00 00 00 00 00  |e.......b.......| 00000020  46 00 85 00 01 00 00 00  43 00 85 00 00 00 00 00  |f.......c.......| 00000030  66 00 85 00 64 00 00 00  68 00 85 00 ba 09 00 00  |f...d...h.......| 00000040  2a 00 85 00 2c 01 00 00  d0 00 85 00 01 00 00 00  |*...,...........| 00000050  44 00 85 00 00 00 00 00  45 00 85 00 00 00 00 00  |d.......e.......| 00000060  42 00 85 00 00 00 00 00  46 00 85 00 01 00 00 00  |b.......f.......| 

i'd write own ups monitor daemon, cannot find documentation protocol. seems quite simple, don't want waste reverse engineering it.

somebody knows this? ton hint!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -