Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Alexander I. Gordeev
Hi Arjen,

On Fri, Feb 20, 2009 at 12:39:37PM +0100, Arjen de Korte wrote:
> Citeren "Alexander I. Gordeev" :
>
>>> Alex, be sure to also address blazer_usb since it's the long run approach.
>> Sure, actually I rechecked blazer_usb after Arjen's mail. Well, it is
>> not really working but it can read Q1 response at least! I didn't notice
>> this previously because the driver then tries to reconnect infinitely
>> and produces lots of output. I'll investigate it.
>
> Which UPS and driver are you talking about now?

Now I talk about blazer_usb and Ippon Back Power Pro 600 which I received
last Sunday.

--
  Alexander

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


Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Arjen de Korte
Citeren "Alexander I. Gordeev" :

>> Alex, be sure to also address blazer_usb since it's the long run approach.
> Sure, actually I rechecked blazer_usb after Arjen's mail. Well, it is
> not really working but it can read Q1 response at least! I didn't notice
> this previously because the driver then tries to reconnect infinitely
> and produces lots of output. I'll investigate it.

Which UPS and driver are you talking about now?

Best regards, Arjen
-- 
Please keep list traffic on the list


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


Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Alexander I. Gordeev
Hi Arnaud,

On Fri, Feb 20, 2009 at 11:05:37AM +0100, Arnaud Quette wrote:
> 2009/2/20 Alexander I. Gordeev 
> 
> > Hi Oleg,
> >
> > On Friday 20 February 2009 01:21:25 Oleg Pshenychnyy wrote:
> > > Greetings Gentlemen,
> > >
> > > I have Mustek NetGuard 1000 UPS which is equivalent to Ippon SmartWinner
> > > 1000.
> > > I have tried to run several latest builds of NUT, but run megatec_usb
> > > driver still failed with my device.
> > > I hope the information below might help.
> > >
> > > Regards,
> > > Oleg
> > >
> > > Here is the information which may help:
> > [snip]
> >
> > Yes, this is all we need, thanks.
> > Indeed, megatec_usb currently fails to talk to this device. Fortunately,
> > I've
> > recently received a unit with the same interface (thanks Arnaud) so I'll
> > fix
> > the driver soon.
> >
> 
> Alex, be sure to also address blazer_usb since it's the long run approach.

Sure, actually I rechecked blazer_usb after Arjen's mail. Well, it is
not really working but it can read Q1 response at least! I didn't notice
this previously because the driver then tries to reconnect infinitely
and produces lots of output. I'll investigate it.

--
  Alexander

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


Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Arjen de Korte
Citeren Arnaud Quette :

> Alex, be sure to also address blazer_usb since it's the long run approach.

It will already work with this UPS. The problem is in the way how the  
phoenix subdriver in megatec_usb deals with reading data from the UPS.  
Currently, it reads data until it receives a timeout or the supplied  
buffer is full. This will work for most devices, but not all.

The proper way to do this (implemented in blazer_usb) is to read until either

- a read for an eight byte chunk of data times out (which is a timeout error)
- the number of requested characters is read
- a '\r' character is read (characters following this should be discarded)

Also note that currently reading partial data (less data was read than  
requested) is broken in megatec_usb. Especially Mustek devices often  
seem to return 7 characters, when we requested 8.

Best regards, Arjen
-- 
Please keep list traffic on the list


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


Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Arnaud Quette
2009/2/20 Alexander I. Gordeev 

> Hi Oleg,
>
> On Friday 20 February 2009 01:21:25 Oleg Pshenychnyy wrote:
> > Greetings Gentlemen,
> >
> > I have Mustek NetGuard 1000 UPS which is equivalent to Ippon SmartWinner
> > 1000.
> > I have tried to run several latest builds of NUT, but run megatec_usb
> > driver still failed with my device.
> > I hope the information below might help.
> >
> > Regards,
> > Oleg
> >
> > Here is the information which may help:
> [snip]
>
> Yes, this is all we need, thanks.
> Indeed, megatec_usb currently fails to talk to this device. Fortunately,
> I've
> recently received a unit with the same interface (thanks Arnaud) so I'll
> fix
> the driver soon.
>

Alex, be sure to also address blazer_usb since it's the long run approach.

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
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/
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Alexander I. Gordeev
Hi Oleg,

On Friday 20 February 2009 01:21:25 Oleg Pshenychnyy wrote:
> Greetings Gentlemen,
>
> I have Mustek NetGuard 1000 UPS which is equivalent to Ippon SmartWinner
> 1000.
> I have tried to run several latest builds of NUT, but run megatec_usb
> driver still failed with my device.
> I hope the information below might help.
>
> Regards,
> Oleg
>
> Here is the information which may help:
[snip]

Yes, this is all we need, thanks.
Indeed, megatec_usb currently fails to talk to this device. Fortunately, I've 
recently received a unit with the same interface (thanks Arnaud) so I'll fix 
the driver soon.

--
  Alexander

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


Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem

2009-02-20 Thread Arjen de Korte
Citeren Oleg Pshenychnyy :

> I have Mustek NetGuard 1000 UPS which is equivalent to Ippon SmartWinner
> 1000.
> I have tried to run several latest builds of NUT, but run megatec_usb driver
> still failed with my device.
> I hope the information below might help.

[...]

Try the 'blazer_usb' driver instead. Make sure to read 'man 8 blazer',  
since there are quite a couple of differences in what the driver  
reports by default and what needs to be configured in 'ups.conf'.

Best regards, Arjen
-- 
Please keep list traffic on the list


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