Arnaud Quette
2008-Oct-04 12:44 UTC
[Nut-upsdev] Bug#501087: nut: support for a tripplite avr750u
Hi Raphael, btw, are you 2 bugs today a simple coincidence with my linkedIn invitation yesterday? ;-) 2008/10/4 Raphael Geissert <atomo64 at gmail.com>:> Package: nut > Version: 2.2.2-8 > Severity: wishlist > Tags: patch > > Attached is a patch adding "support" for tripplite's avr750u UPS. > Issues: > * productid still needs to be specified in ups.confyou missed to add an entry in drivers/tripplite-hid.c ->tripplite_claim() for that ;-) and an entry in the hotplug script for the sake of completion. thanks for the patch. I'll look into commiting it into the trunk, and possibly in sid, depending on the next release date.> * the battery charge information, at least as displayed by knutclient 0.9.4, > is either 0% or 100%, the latter only being displayed when the UPS is fully > charged. > * the runtime info is only updated after a test.battery.start.<quick/deep>, > there's no calibrate.<start/stop> for it.I don't know much about TL devices, and I've not dug the ml, but Charles might have an answer to that.> Bit OT, but wanted to ask: is there anyone trying to add support for Koblenz' > UPS?never heard about it. do you have any info on it, like the name of the windows software provided, or the protocol used, ... ? cheers, Arnaud -- Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ Free Software Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- A non-text attachment was scrubbed... Name: avr750u.patch Type: text/x-diff Size: 1341 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20081004/31acabe2/attachment.patch
Charles Lepple
2008-Oct-04 13:29 UTC
[Nut-upsdev] Bug#501087: nut: support for a tripplite avr750u
On Sat, Oct 4, 2008 at 8:44 AM, Arnaud Quette <aquette.dev at gmail.com> wrote:> 2008/10/4 Raphael Geissert <atomo64 at gmail.com>: >> Package: nut >> Version: 2.2.2-8 >> Severity: wishlist >> Tags: patch[...]>> * the battery charge information, at least as displayed by knutclient 0.9.4, >> is either 0% or 100%, the latter only being displayed when the UPS is fully >> charged. >> * the runtime info is only updated after a test.battery.start.<quick/deep>, >> there's no calibrate.<start/stop> for it. > > I don't know much about TL devices, and I've not dug the ml, but > Charles might have an answer to that.I don't know much about the Tripp Lite devices covered by the usbhid-ups driver, but the usual debug suggestions apply. You can run the driver with -DDD on the command line, and look for messages related to battery charge. Going out on a limb here, maybe it's something that we have to explicitly poll (versus waiting for it to be reported on the interrupt pipe), for the times when it is below 100%. In any case, it's probably a good idea to first verify that knutclient agrees with upsc. -- - Charles Lepple
Arjen de Korte
2008-Oct-04 16:08 UTC
[Nut-upsdev] Bug#501087: nut: support for a tripplite avr750u
Citeren Arnaud Quette <aquette.dev at gmail.com>:>> Attached is a patch adding "support" for tripplite's avr750u UPS. >> Issues: >> * productid still needs to be specified in ups.conf > > you missed to add an entry in drivers/tripplite-hid.c > ->tripplite_claim() for that ;-)And beware that you need to put it in the correct place as well. Some Tripp Lite HID devices (incorrectly) report battery voltage in decivolts so we need to apply a correction factor here. So there are basically two groups in this function. One that reports battery voltage in decivolts (productid 1003, 2005 and 2007) and one that reports battery voltage in volts (productid 3012, 4002, 4003). Before committing this change, we need to see the output of 'upsc' to know what it reports.> and an entry in the hotplug script for the sake of completion.Don't forget the udev and hal scripts either. We probably need to come up with some automation here, so that we have to put this in only one place and have these scripts generated automagically. Best regards, Arjen -- Please keep list traffic on the list
Raphael Geissert
2008-Oct-04 18:33 UTC
[Nut-upsdev] Bug#501087: nut: support for a tripplite avr750u
Hi Arnaud, 2008/10/4 Arnaud Quette <aquette.dev at gmail.com>:> Hi Raphael, > > btw, are you 2 bugs today a simple coincidence with my linkedIn > invitation yesterday? ;-)Pure coincidence :)> > 2008/10/4 Raphael Geissert <atomo64 at gmail.com>: >> Package: nut >> Version: 2.2.2-8 >> Severity: wishlist >> Tags: patch >> >> Attached is a patch adding "support" for tripplite's avr750u UPS. >> Issues: >> * productid still needs to be specified in ups.conf > > you missed to add an entry in drivers/tripplite-hid.c > ->tripplite_claim() for that ;-)I grepped for tripplite and tripp-lite but didn't find where the product id was missing. I should have grepped for the productid of the avr550u which I suppose is already listed in that file.> and an entry in the hotplug script for the sake of completion.done> thanks for the patch. I'll look into commiting it into the trunk, and > possibly in sid, depending on the next release date. > >> * the battery charge information, at least as displayed by knutclient 0.9.4, >> is either 0% or 100%, the latter only being displayed when the UPS is fully >> charged. >> * the runtime info is only updated after a test.battery.start.<quick/deep>, >> there's no calibrate.<start/stop> for it. > > I don't know much about TL devices, and I've not dug the ml, but > Charles might have an answer to that. > >> Bit OT, but wanted to ask: is there anyone trying to add support for Koblenz' >> UPS? > > never heard about it. > do you have any info on it, like the name of the windows software > provided, or the protocol used, ... ?The, pretty dummy, software is called Koblenz Protek, its, dead, website being http://www.koblenz-protek.com/ While checking their main website I found this page (in spanish): http://www.koblenz-energia.com.mx/nobr_usb1_4.htm Providing a link to the latest version of the windows software (available in spanish and english): http://www.koblenz-energia.com.mx/Koblenz_Protek_4_0_1.zip It is all the info I could find; the UPS didn't come with any doc about the USB interface.> > cheers, > Arnaud > -- > Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com > Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ > Debian Developer - http://people.debian.org/~aquette/ > Free Software Developer - http://arnaud.quette.free.fr/ >Cheers, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html