<div class="gmail_quote">Hi,<br><br>I'm new in the list and I'm having a little bit trouble to put the megatec_usb to work.<br><br>I've been using NUT for a while with the apc and megatec driver (serial), with no problem.<br>
<br>The server is a Ubuntu 8.04.2 with NUT version 2.2.1-2.1ubuntu7.2, the default package version in this ubuntu release.<br>
<br>I've configured the ups.conf as follows:<br><br>[sms]<br> driver = megatec_usb<br> port = auto<br> desc = "Servidor Dados"<br><br>But when I run /var/lib/megatec_usb -a sms it says that "No supported devices found"<br>
<br>root@comserver:/lib/nut# /lib/nut/megatec_usb -a sms<br>Network UPS Tools 2.2.1- - Megatec protocol driver 1.5.13 [megatec_usb]<br>Carlos Rodrigues (c) 2003-2007<br><br>Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]<br>
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007<br><br>No supported devices found. Please check your device availability with 'lsusb'<br>and make sure you have an up-to-date version of NUT. If this does not help,<br>
try running the driver with at least 'vendorid' and 'subdriver' options<br>specified. Please refer to the man page for details about these options<br>(man 8 megatec_usb).<br>Please report your results to the NUT user's mailing list<br>
<<a href="mailto:nut-upsuser@lists.alioth.debian.org" target="_blank">nut-upsuser@lists.alioth.debian.org</a>>.<br><br>My device is connected in the bus 001, device 004, and when i do a lsusb -s 001:004 -vvv the result is as follows:<br>
<br>Bus 001 Device 004: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter<br>Device Descriptor:<br> bLength 18<br> bDescriptorType 1<br> bcdUSB 1.00<br> bDeviceClass 0 (Defined at Interface level)<br>
bDeviceSubClass 0<br> bDeviceProtocol 0<br> bMaxPacketSize0 8<br> idVendor 0x04b4 Cypress Semiconductor Corp.<br> idProduct 0x5500 HID->COM RS232 Adapter<br> bcdDevice 0.00<br>
iManufacturer 1 Cypress Semiconductor<br> iProduct 2 USB to Serial<br> iSerial 0<br> bNumConfigurations 1<br> Configuration Descriptor:<br> bLength 9<br>
bDescriptorType 2<br> wTotalLength 41<br> bNumInterfaces 1<br> bConfigurationValue 1<br> iConfiguration 4 Sample HID<br> bmAttributes 0x80<br> (Bus Powered)<br>
MaxPower 100mA<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 0<br> bAlternateSetting 0<br> bNumEndpoints 2<br>
bInterfaceClass 3 Human Interface Device<br> bInterfaceSubClass 0 No Subclass<br> bInterfaceProtocol 0 None<br> iInterface 0<br> HID Device Descriptor:<br> bLength 9<br>
bDescriptorType 33<br> bcdHID 1.00<br> bCountryCode 0 Not supported<br> bNumDescriptors 1<br> bDescriptorType 34 Report<br> wDescriptorLength 37<br>
Report Descriptors:<br> ** UNAVAILABLE **<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x81 EP 1 IN<br> bmAttributes 3<br>
Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0008 1x 8 bytes<br> bInterval 1<br>
Endpoint Descriptor:<br>
bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x02 EP 2 OUT<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br>
Usage Type Data<br> wMaxPacketSize 0x0008 1x 8 bytes<br> bInterval 1<br>Device Status: 0x0000<br> (Bus Powered)<br><br>Anybody knows how to handle this?<br><br>
I think that I will probably need to alter something in the megatec_usb.c so tath it acodamodates the ew driver.<br><br>
The device is a SMS Manger III Senoidal with a USB (by the output of lsusb I understand that it has a converter to RS232).<br><br>Any help would be appreciated.<br><br>Thanks in advance.<br><font color="#888888"><br>Gabriel.<br>
</font></div><br>