Re: [Nut-upsuser] online yunto q700

2009-01-12 Thread Dario "subbia" Cavallaro
Arjen de Korte ha scritto:
> My mistake. I failed to notice the different productid of this device. 
> You should be able to connect to it by adding a couple of variables to 
> the ups.conf entry:
>
> [yunto]
> driver = megatec_usb
> port = auto
> desc = "yunto q700"
> subdriver = agiler-old
> vendorid = 06da
> productid = 0002
>
> Sorry about the confusion.
>
> We won't be able to support this out of the box for now, since we 
> already have another driver that is using the same VID:PID 
> combination. Adding an another (incompatible) driver will break 
> existing installations that rely on a HAL addon that might be in use. 
> It could be done, by trying out both at the time of connecting, but 
> this will require merging the megatec_usb and bcmxcp_usb drivers 
> somehow. At runtime, this could then select the appropriate protocol 
> handler.
>
> Best regards, Arjen


Just a feedback: on gentoo I had to upgrade to kernel 2.6.27 in order to 
make it all working. I was still on 2.6.25. And on ubuntu 8.10 I was on 
2.6.27.

I think something related to usb controller driver, but can't figure out 
exactly what. Anyway, everything is working now.

Thanks in again!

Dario

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


Re: [Nut-upsuser] online yunto q700

2009-01-05 Thread Arjen de Korte
Citeren "Dario \"subbia\" Cavallaro" :

> Just an idea (obviously OT from the topic) but why not writing a
> dedicated driver and let users configure it in ups.conf? It seems to me
> the most obvious solution without breaking existing installations.

The drivers that incorporate USB to serial conversion are mostly an  
interim solution (at best). Most of these problems would cease to  
exist if support for the USB to serial converters was build into the  
kernel. Adding that, probably requires some vendor support from the  
supplier of the USB to serial converters.

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] online yunto q700

2009-01-04 Thread Dario "subbia" Cavallaro
Arjen de Korte ha scritto:
> My mistake. I failed to notice the different productid of this device. 
> You should be able to connect to it by adding a couple of variables to 
> the ups.conf entry:
>
> [yunto]
> driver = megatec_usb
> port = auto
> desc = "yunto q700"
> subdriver = agiler-old
> vendorid = 06da
> productid = 0002
>
> Sorry about the confusion.
>
> We won't be able to support this out of the box for now, since we 
> already have another driver that is using the same VID:PID 
> combination. Adding an another (incompatible) driver will break 
> existing installations that rely on a HAL addon that might be in use. 
> It could be done, by trying out both at the time of connecting, but 
> this will require merging the megatec_usb and bcmxcp_usb drivers 
> somehow. At runtime, this could then select the appropriate protocol 
> handler.
>
> Best regards, Arjen

Yes, now it seems working.

Thank you very much!!

Just an idea (obviously OT from the topic) but why not writing a 
dedicated driver and let users configure it in ups.conf? It seems to me 
the most obvious solution without breaking existing installations.

Cheers,
Dario "subbia" Cavallaro


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


Re: [Nut-upsuser] online yunto q700

2009-01-04 Thread Arjen de Korte
Citeren "Dario \"subbia\" Cavallaro" :

> Ok, strange result.. the ups is still attached, the id is the same,
> but it is ignored by the driver.

My mistake. I failed to notice the different productid of this device.  
You should be able to connect to it by adding a couple of variables to  
the ups.conf entry:

[yunto]
 driver = megatec_usb
 port = auto
 desc = "yunto q700"
 subdriver = agiler-old
 vendorid = 06da
 productid = 0002

Sorry about the confusion.

We won't be able to support this out of the box for now, since we  
already have another driver that is using the same VID:PID  
combination. Adding an another (incompatible) driver will break  
existing installations that rely on a HAL addon that might be in use.  
It could be done, by trying out both at the time of connecting, but  
this will require merging the megatec_usb and bcmxcp_usb drivers  
somehow. At runtime, this could then select the appropriate protocol  
handler.

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] online yunto q700

2009-01-03 Thread Dario "subbia" Cavallaro
Arjen de Korte ha scritto:
> This one should support this device out of the box. But chances are, 
> the Ubuntu packaging is broken and that the udev support isn't 
> installed properly. Run the driver with debugging enabled to see where 
> things goes wrong:
>
> megatec_usb -D -a yunto
>
> You'll have to stop the driver with ctrl-C, since it will stay in the 
> foreground.
>
> Best regards, Arjen
Ok, strange result.. the ups is still attached, the id is the same, 
but it is ignored by the driver.

 From now on I'm lost. I don't know which infos could help to solve the 
problem. Please let me know how can I help you in order to let you to 
help me.

Thanks in advance!

Cheers,
Dario "subbia" Cavallaro

r...@mio:~# /lib/nut/megatec_usb -D -a yunto
Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb]
Carlos Rodrigues (c) 2003-2008

Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007

debug level is '5'
Checking device (1D6B/0002) (008/001)
- VendorID: 1d6b
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 008
Trying to match device
Device does not match - skipping
Checking device (14AA/022B) (004/006)
- VendorID: 14aa
- ProductID: 022b
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (05E3/0606) (004/002)
- VendorID: 05e3
- ProductID: 0606
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (1D6B/0002) (004/001)
- VendorID: 1d6b
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (007/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 007
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (006/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 006
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (005/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (0D3D/0026) (003/002)
- VendorID: 0d3d
- ProductID: 0026
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (003/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (06DA/0002) (002/003)
- VendorID: 06da
- ProductID: 0002
- Manufacturer: ONLINE
- Product: YUNTO
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (002/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (001/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No supported devices found. Please check your device availability with 
'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'vendorid' and 'subdriver' options
specified. Please refer to the man page for details about these options
(man 8 megatec_usb).
Please report your results to the NUT user's mailing list
.


r...@mio:~# dpkg -l|grep udev
ii  udev  
124-9   rule-based device node and 
kernel event mana

r...@mio:~# uname -r
2.6.27-9-generic


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


Re: [Nut-upsuser] online yunto q700

2009-01-03 Thread Arjen de Korte
Citeren "Dario \"subbia\" Cavallaro" :

> Is the patch included into official nut release? If yes, which version.
> Otherwise, is there a feature request for the inclusion of this patch?
>
> This is the version installed by ubuntu 8.10:
> r...@mio:~# dpkg -l|grep nut|grep core
> ii  nut
> 2.2.2-6ubuntu1  The core system of the nut -
> Network UPS Tools

This one should support this device out of the box. But chances are,  
the Ubuntu packaging is broken and that the udev support isn't  
installed properly. Run the driver with debugging enabled to see where  
things goes wrong:

 megatec_usb -D -a yunto

You'll have to stop the driver with ctrl-C, since it will stay in the  
foreground.

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] online yunto q700

2009-01-03 Thread Dario "subbia" Cavallaro
Charles Lepple ha scritto:
> Someone mentioned an Online Yunto q450 a while back:
>
> http://thread.gmane.org/gmane.comp.monitoring.nut.devel/3121
>
> What does 'lsusb -v' say about this device?
>   
Hi Charles,
yes, the id is the same:
Bus 002 Device 003: ID 06da:0002 Phoenixtec Power Co., Ltd UPS
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  0x0002 UPS
  bcdDevice0.02
  iManufacturer   1 ONLINE
  iProduct2 YUNTO
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   34
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  3
bmAttributes 0x80
  (Bus Powered)
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  4 Sample HID
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.00
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength  31
 Report Descriptors:
   ** UNAVAILABLE **
  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  32
Device Status: 0x
  (Bus Powered)

Is the patch included into official nut release? If yes, which version. 
Otherwise, is there a feature request for the inclusion of this patch?

This is the version installed by ubuntu 8.10:
r...@mio:~# dpkg -l|grep nut|grep core
ii  nut   
2.2.2-6ubuntu1  The core system of the nut - 
Network UPS Tools

I've changed the driver to megatec_usb, restarted nut service, but it 
still gives me a connection error. I suppose this patch is still not 
included into version I've installed (from ubuntu's repo).

Thanks in advance!

Cheers,
Dario "subbia" Cavallaro

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


Re: [Nut-upsuser] online yunto q700

2009-01-02 Thread Charles Lepple
On Fri, Jan 2, 2009 at 7:38 PM, Dario subbia Cavallaro  wrote:
> Hi guys,
> I've searched on lists, but nobody has talked about the online yunto
> series of ups. Anyone lucky with this model of ups? There's an usb and a
> proprietary driver, which does not work as I want (not able to send
> emails before shutting down), so I would like to use nut to monitor the ups.
>
> I'm trying it on an ubuntu 8.10 box and on a Gentoo box, but no luck
> yet. Port is set to auto. I've tried with driver bestups and usbhid-ups

Someone mentioned an Online Yunto q450 a while back:

http://thread.gmane.org/gmane.comp.monitoring.nut.devel/3121

What does 'lsusb -v' say about this device?

-- 
- Charles Lepple

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