Re: [Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem
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
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
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
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/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
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
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
[Nut-upsuser] megatec_usb vs Mustek NetGuard / Ippon SmartWinner problem
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: lsusb -v Bus 002 Device 002: ID 06da:0003 Phoenixtec Power Co., Ltd Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x06da Phoenixtec Power Co., Ltd idProduct 0x0003 bcdDevice2.00 iManufacturer 3 OMRON iProduct1 USB UPS iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType33 bcdHID 1.11 bCountryCode0 Not supported bNumDescriptors 1 bDescriptorType34 Report wDescriptorLength 27 Report Descriptor: (length is 27) Item(Global): Usage Page, data= [ 0x00 0xff ] 65280 (null) Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Local ): Usage, data= [ 0x02 ] 2 (null) Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x08 ] 8 Item(Main ): Input, data= [ 0x82 ] 130 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Volatile Bitfield Item(Local ): Usage, data= [ 0x02 ] 2 (null) Item(Global): Report Count, data= [ 0x08 ] 8 Item(Main ): Output, data= [ 0x82 ] 130 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Volatile Bitfield Item(Main ): End Collection, data=none Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 20 vi /proc/bus/usb/devices T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=06da ProdID=0003 Rev= 2.00 S: Manufacturer=OMRON S: Product=USB UPS C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=20ms ups.conf: [netguard] driver = megatec_usb port = auto vendorid = 06da desc = "SVEN NetGuard 1000(USB)" megatec_usb -D -a netguard Checking device (06DA/0003) (002/002) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 002 Trying to match device Device matches DTR=1, RTS=0 Starting UPS detection process... Asking for UPS information [I]... I => FAILED [short read] I detail: (1 bytes) => 49 Asking for UPS status [Q1]... get_data_phoenix: got so far [(213.8 2] get_data_phoenix: (8 bytes) => 28 32 31 33 2e 38 20 32 3]t_data_phoenix: got so far [(213.8 2001001 get_data_phoenix: (16 bytes) => 28 32 31 33 2e 38 20 32 30 30 31 30 30 31 0d 33 3.8 031 5]hoenix: got so far [(213.8 2001001 get_data_phoenix: (24 bytes) => 28 32 31 33 2e 38 20 32 30 30 31 30 30 31 0d 33 2e 38 20 30 33 31 20 35 3.8 031 50.0 27.3]got so far [(213.8 2001001 get_data_phoenix: (32 bytes) => 28 32 31 33 2e 38 20 32 30 30 31 30 30 31 0d 33 2e 38 20 30 33 31 20 35 30 2e 30 20 32 37 2e 33 3.8 031 50.0 27.3 76.2 00]ar [(213.8 2001001 get_data_phoenix: (40 bytes) => 28 32 31 33 2e 38 20 32 30 30 31 30 30 31 0d 33 2e 38 20 30 33 31 20