Re: [Nut-upsuser] UPS Atlantis OnePower - VT12094S

2011-03-29 Thread Arjen de Korte

Citeren Andrea krog...@gmail.com:


   0.257887 Trying megatec protocol...
   0.257901 send: Q1
   0.506931 blazer_status: short reply
   0.506950 Status read 1 failed


Sadly there is a small flaw in the krauler subdriver here and it  
doesn't output the data it has read from the UPS. But since it doesn't  
report a failure here, it means that it has successfully read  
something. Add the fact that the megatec_usb driver was able to talk  
to your UPS probably means that it returns 46 bytes in the reply  
(sufficient for megatec_usb) and not 47 (which is required by  
blazer_usb). Most likely, the terminating '\r' which is expected is  
not part of the reply. I've made it optional in the development  
version, so it will be in the next released version. If you're able to  
build from sources, you can modify line 189 in drivers/blazer.c from


if (blazer_command(cmd, buf, sizeof(buf))  47) {
to
if (blazer_command(cmd, buf, sizeof(buf))  46) {

and compile the driver again. Otherwise, running the megatec_usb  
driver from nut-2.4.3 is the only alternative.


Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] UPS Atlantis OnePower - VT12094S

2011-03-29 Thread Andrea
Exactly what benefit can i have using the new driver with this hack?
If nothing changes i can wait for nut 2.6.1 ;-)
But thinking about all the people with this ups and the same
problem... can you write some note on the compatibility list page?
Many thanks for your job.
If you need to test future drivers with this ups model feel free to contact me.
Andrea

2011/3/29 Arjen de Korte nut+us...@de-korte.org:

 If you're able to build from sources, you can modify line 189 in 
 drivers/blazer.c from

        if (blazer_command(cmd, buf, sizeof(buf))  47) {
 to
        if (blazer_command(cmd, buf, sizeof(buf))  46) {

 and compile the driver again. Otherwise, running the megatec_usb driver from
 nut-2.4.3 is the only alternative.

 Best regards, Arjen
 --

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser