On 31/12/13 21:00, Charles Lepple wrote: > > There is a very proof-of-concept-y driver (nutdrv_atcl_usb) in the atcl > branch in GitHub. > > We can probably remove a bunch of the retry loops that it inherited from > richcomm_usb. > > There should also be a tarball here fairly soon: > > > http://buildbot.networkupstools.org/public/nut/builders/Debian-x64-gcc/builds/115 >
That's great! I downloaded the code from github, built it and here's what happened. With AC ok: root@lucy:/usr/local/ups/bin# ./nutdrv_atcl_usb -a ups -DDD -u root Network UPS Tools - 'ATCL FOR UPS' USB driver 0.01 (2.7.1.5) Warning: This is an experimental driver. Some features may not function correctly. 0.000000 debug level is '3' 2.297779 read: (8 bytes) => 03 00 00 00 00 00 00 00 2.298029 dstate_init: sock /var/state/ups/nutdrv_atcl_usb-ups open on fd 5 3.345960 read: (8 bytes) => 03 00 00 00 00 00 00 00 4.394102 read: (8 bytes) => 03 00 00 00 00 00 00 00 6.306350 read: (8 bytes) => 03 00 00 00 00 00 00 00 8.306648 read: (8 bytes) => 03 00 00 00 00 00 00 00 10.306919 read: (8 bytes) => 03 00 00 00 00 00 00 00 12.315210 read: (8 bytes) => 03 00 00 00 00 00 00 00 14.315452 read: (8 bytes) => 03 00 00 00 00 00 00 00 16.315744 read: (8 bytes) => 03 00 00 00 00 00 00 00 18.315995 read: (8 bytes) => 03 00 00 00 00 00 00 00 20.316306 read: (8 bytes) => 03 00 00 00 00 00 00 00 [continues forever] Here I started it with AC unplugged and then plugged it back in, you can see the change: root@lucy:/usr/local/ups/bin# ./nutdrv_atcl_usb -a ups -DDD -u root Network UPS Tools - 'ATCL FOR UPS' USB driver 0.01 (2.7.1.5) Warning: This is an experimental driver. Some features may not function correctly. 0.000000 debug level is '3' 2.521094 read: (8 bytes) => 01 00 00 00 00 00 00 00 2.521346 dstate_init: sock /var/state/ups/nutdrv_atcl_usb-ups open on fd 5 3.569176 read: (8 bytes) => 01 00 00 00 00 00 00 00 4.617379 read: (8 bytes) => 01 00 00 00 00 00 00 00 6.529645 read: (8 bytes) => 01 00 00 00 00 00 00 00 8.529894 read: (8 bytes) => 01 00 00 00 00 00 00 00 10.530161 read: (8 bytes) => 01 00 00 00 00 00 00 00 12.538490 read: (8 bytes) => 01 00 00 00 00 00 00 00 14.538700 read: (8 bytes) => 01 00 00 00 00 00 00 00 16.539040 read: (8 bytes) => 01 00 00 00 00 00 00 00 18.539349 read: (8 bytes) => 01 00 00 00 00 00 00 00 20.539600 read: (8 bytes) => 03 00 00 00 00 00 00 00 22.539836 read: (8 bytes) => 03 00 00 00 00 00 00 00 24.548131 read: (8 bytes) => 03 00 00 00 00 00 00 00 [continues forever] Then, I started upsd and tryed upsc: With AC ok: ./upsc ups@localhost device.mfr: ATCL FOR UPS device.model: ATCL FOR UPS device.type: ups driver.name: nutdrv_atcl_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.7.1.5 driver.version.internal: 0.01 ups.mfr: ATCL FOR UPS ups.model: ATCL FOR UPS ups.productid: 0000 ups.status: OL ups.vendorid: 0001 Unplugging: root@lucy:/usr/local/ups/bin# ./upsc ups@localhost device.mfr: ATCL FOR UPS device.model: ATCL FOR UPS device.type: ups driver.name: nutdrv_atcl_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.7.1.5 driver.version.internal: 0.01 ups.mfr: ATCL FOR UPS ups.model: ATCL FOR UPS ups.productid: 0000 ups.status: OB ups.vendorid: 0001 Low battery beeping: device.mfr: ATCL FOR UPS device.model: ATCL FOR UPS device.type: ups driver.name: nutdrv_atcl_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.7.1.5 driver.version.internal: 0.01 ups.mfr: ATCL FOR UPS ups.model: ATCL FOR UPS ups.productid: 0000 ups.status: LB OB ups.vendorid: 0001 When the battery runs out, the ups (and it's load) powers off and it reads: device.mfr: ATCL FOR UPS device.model: ATCL FOR UPS device.type: ups driver.name: nutdrv_atcl_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.7.1.5 driver.version.internal: 0.01 ups.mfr: ATCL FOR UPS ups.model: ATCL FOR UPS ups.productid: 0000 ups.status: OL ups.vendorid: 0001 2892.952972 read: (8 bytes) => 03 00 00 00 00 00 00 00 2894.953249 read: (8 bytes) => 03 00 00 00 00 00 00 00 2896.953469 read: (8 bytes) => 03 00 00 00 00 00 00 00 Very strange! It seems like the completly powered down and OK status yeild the same reading. The reading didn't change after plugging back in the AC. _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

