Skip to content

Instantly share code, notes, and snippets.

@ao-kenji
Created October 16, 2013 09:17
Show Gist options
  • Save ao-kenji/7004978 to your computer and use it in GitHub Desktop.
Save ao-kenji/7004978 to your computer and use it in GitHub Desktop.
% sudo /usr/local/bin/blazer_usb -DDDD -a by35s
Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 (2.6.5)
0.000000 debug level is '4'
0.171836 Checking device (10DE/0000) (000/001)
0.172024 - VendorID: 10de
0.172032 - ProductID: 0000
0.172038 - Manufacturer: NVIDIA
0.172044 - Product: EHCI root hub
0.172049 - Serial Number: unknown
0.172055 - Bus: 000
0.172061 Trying to match device
0.172075 Device does not match - skipping
0.172114 Checking device (10DE/0000) (001/001)
0.172189 - VendorID: 10de
0.172196 - ProductID: 0000
0.172202 - Manufacturer: NVIDIA
0.172207 - Product: OHCI root hub
0.172213 - Serial Number: unknown
0.172219 - Bus: 001
0.172225 Trying to match device
0.172232 Device does not match - skipping
0.172250 Checking device (1774/1001) (001/002)
0.181819 - VendorID: 1774
0.181826 - ProductID: 1001
0.181832 - Manufacturer: Strawberry Linux Co.,Ltd.
0.181838 - Product: Hygrometer/Thermometer
0.181843 - Serial Number: unknown
0.181849 - Bus: 001
0.181855 Trying to match device
0.181862 Device does not match - skipping
0.181880 Checking device (056E/5004) (001/003)
0.189818 - VendorID: 056e
0.189826 - ProductID: 5004
0.189832 - Manufacturer: Prolific Technology Inc.
0.189837 - Product: USB-Serial Controller
0.189843 - Serial Number: unknown
0.189849 - Bus: 001
0.189854 Trying to match device
0.189862 Device does not match - skipping
0.189880 Checking device (0590/0080) (001/004)
0.207816 - VendorID: 0590
0.207824 - ProductID: 0080
0.207830 - Manufacturer: OMRON
0.207835 - Product: BY35S
0.207841 - Serial Number: unknown
0.207847 - Bus: 001
0.207852 Trying to match device
0.207866 Device matches
0.210842 Trying megatec protocol...
0.213823 send: Q1
0.444803 read: (102.2 101.2 102.4 030 59.9 13.6 43.2 00101000
0.444983 Status read in 1 tries
0.444991 Supported UPS detected with megatec protocol
0.460803 send: F
1.547729 read: timeout
1.547741 blazer_rating: short reply
1.547747 Rating read 1 failed
1.551739 send: F
1.580733 read: NAK
1.580741 blazer_rating: short reply
1.580747 Rating read 2 failed
1.636731 send: F
2.717657 read: timeout
2.717666 blazer_rating: short reply
2.717672 Rating read 3 failed
2.717678 Rating information unavailable
2.720663 send: I
2.756660 read: NAK
2.756667 blazer_vendor: short reply
2.756674 Vendor information read 1 failed
2.812656 send: I
3.897584 read: timeout
3.897593 blazer_vendor: short reply
3.897599 Vendor information read 2 failed
3.900590 send: I
3.932592 read: NAK
3.932601 blazer_vendor: short reply
3.932607 Vendor information read 3 failed
3.932613 Vendor information unavailable
3.932620 No values provided for battery high/low voltages in ups.conf
3.932636 Using 'guestimation' (low: -0.866667, high: -1.083333)!
3.932644 Battery runtime will not be calculated (runtimecal not set)
3.988585 send: Q1
5.227504 read: timeout
5.227514 blazer_status: short reply
5.227521 Communications with UPS lost: status read failed!
5.228071 dstate_init: sock /var/db/nut/blazer_usb-by35s open on fd 10
5.231510 send: Q1
5.468499 read: (102.5 101.2 102.2 029 59.9 13.6 43.2 00101000
7.240388 send: Q1
8.487306 read: timeout
8.487315 blazer_status: short reply
8.487322 Communications with UPS lost: status read failed!
9.260263 send: Q1
9.492246 read: (102.0 101.2 102.2 026 59.9 13.6 43.2 00101000
11.270139 send: Q1
12.507062 read: timeout
12.507073 blazer_status: short reply
12.507080 Communications with UPS lost: status read failed!
13.290015 send: Q1
13.523998 read: (102.0 101.2 102.2 030 59.9 13.6 43.2 00101000
@ao-kenji
Copy link
Author

/etc/nut/ups.conf is:

[by35s]
        driver = blazer_usb
        port = auto
        desc = "OMRON BY35S"
        vendorid = 0590
        productid = 0080
#       subdriver = ippon
        subdriver = cypress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment