Skip to content

Instantly share code, notes, and snippets.

@ao-kenji
Created October 20, 2013 15:14
Show Gist options
  • Save ao-kenji/7070940 to your computer and use it in GitHub Desktop.
Save ao-kenji/7070940 to your computer and use it in GitHub Desktop.
trantor% sudo ./blazer_usb -DDDD -a by35s
Password:
Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 (2.6.5)
0.000000 debug level is '4'
0.147968 Checking device (10DE/0000) (000/001)
0.148313 - VendorID: 10de
0.148321 - ProductID: 0000
0.148327 - Manufacturer: NVIDIA
0.148333 - Product: EHCI root hub
0.148339 - Serial Number: unknown
0.148345 - Bus: 000
0.148351 Trying to match device
0.148365 Device does not match - skipping
0.148409 Checking device (10DE/0000) (001/001)
0.148488 - VendorID: 10de
0.148495 - ProductID: 0000
0.148501 - Manufacturer: NVIDIA
0.148507 - Product: OHCI root hub
0.148513 - Serial Number: unknown
0.148519 - Bus: 001
0.148525 Trying to match device
0.148532 Device does not match - skipping
0.148552 Checking device (067B/2303) (001/002)
0.155953 - VendorID: 067b
0.156066 - ProductID: 2303
0.156073 - Manufacturer: Prolific Technology Inc.
0.156079 - Product: USB-Serial Controller
0.156085 - Serial Number: unknown
0.156091 - Bus: 001
0.156097 Trying to match device
0.156106 Device does not match - skipping
0.156130 Checking device (0590/0080) (001/003)
0.173950 - VendorID: 0590
0.174060 - ProductID: 0080
0.174067 - Manufacturer: OMRON
0.174073 - Product: BY35S
0.174079 - Serial Number: unknown
0.174084 - Bus: 001
0.174090 Trying to match device
0.174106 Device matches
0.177058 Trying megatec protocol...
0.180963 send: Q1
1.239577 read:(103.6 102.2 103.9 024 59.9 13.6 40.1 00101000
1.239793 Status read in 1 tries
1.239801 Supported UPS detected with megatec protocol
1.242889 send: F
2.279512 read:NAK
2.279632 blazer_rating: invalid start character [4e]
2.279640 Rating read 1 failed
2.282824 send: F
3.319452 read:NAK
3.319580 blazer_rating: invalid start character [4e]
3.319588 Rating read 2 failed
3.323760 send: F
4.359384 read:NAK
4.359512 blazer_rating: invalid start character [4e]
4.359519 Rating read 3 failed
4.359526 Rating information unavailable
4.362695 send: I
5.399322 read:NAK
5.399450 blazer_vendor: invalid start character [4e]
5.399458 Vendor information read 1 failed
5.402631 send: I
6.439257 read:NAK
6.439383 blazer_vendor: invalid start character [4e]
6.439391 Vendor information read 2 failed
6.442567 send: I
7.479223 read:NAK
7.479432 blazer_vendor: invalid start character [4e]
7.479440 Vendor information read 3 failed
7.479446 Vendor information unavailable
7.479456 Battery runtime will not be calculated (runtimecal not set)
7.482505 send: Q1
8.539128 read:(103.8 102.2 104.1 024 60.0 13.6 40.1 00101000
8.539913 dstate_init: sock /var/db/nut/blazer_usb-by35s open on fd 10
8.543441 send: Q1
9.609065 read:(104.4 102.2 104.0 027 60.0 13.6 40.1 00101000
10.562314 send: Q1
11.618939 read:(103.8 102.2 104.1 027 60.0 13.6 40.1 00101000
12.572185 send: Q1
13.628814 read:(104.1 102.2 104.1 023 60.0 13.6 40.1 00101000
14.582061 send: Q1
15.648690 read:(104.1 102.2 104.0 024 60.0 13.6 40.1 00101000
16.591937 send: Q1
17.648567 read:(104.0 102.2 104.1 027 60.0 13.6 40.1 00101000
18.601813 send: Q1
19.658444 read:(104.0 102.2 104.0 027 60.0 13.6 40.1 00101000
^C
trantor%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment