Hi, I'm new in the list and I'm having a little bit trouble to put the megatec_usb to work. I've been using NUT for a while with the apc and megatec driver (serial), with no problem. 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. I've configured the ups.conf as follows: [sms] driver = megatec_usb port = auto desc = "Servidor Dados" But when I run /var/lib/megatec_usb -a sms it says that "No supported devices found" root at comserver:/lib/nut# /lib/nut/megatec_usb -a sms Network UPS Tools 2.2.1- - Megatec protocol driver 1.5.13 [megatec_usb] Carlos Rodrigues (c) 2003-2007 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 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 <nut-upsuser at lists.alioth.debian.org>. 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: Bus 001 Device 004: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04b4 Cypress Semiconductor Corp. idProduct 0x5500 HID->COM RS232 Adapter bcdDevice 0.00 iManufacturer 1 Cypress Semiconductor iProduct 2 USB to Serial iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 4 Sample HID bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.00 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 37 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) Anybody knows how to handle this? 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). Any help would be appreciated. Thanks in advance. Gabriel. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20090304/264b5873/attachment.htm
Hi, I'm new in the list and I'm having a little bit trouble to put the megatec_usb to work. I've been using NUT for a while with the apc and megatec driver (serial), with no problem. 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. I've configured the ups.conf as follows: [sms] driver = megatec_usb port = auto desc = "Servidor Dados" But when I run /var/lib/megatec_usb -a sms it says that "No supported devices found" root at comserver:/lib/nut# /lib/nut/megatec_usb -a sms Network UPS Tools 2.2.1- - Megatec protocol driver 1.5.13 [megatec_usb] Carlos Rodrigues (c) 2003-2007 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 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 <nut-upsuser at lists.alioth.debian.org>. 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: Bus 001 Device 004: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04b4 Cypress Semiconductor Corp. idProduct 0x5500 HID->COM RS232 Adapter bcdDevice 0.00 iManufacturer 1 Cypress Semiconductor iProduct 2 USB to Serial iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 4 Sample HID bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.00 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 37 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) Anybody knows how to handle this? I think that I will probably need to alter something in the megatec_usb.c so tath it acodamodates the ew driver. 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). Any help would be appreciated. Thanks in advance. Gabriel. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20090305/2b4f1384/attachment.htm
Citeren Gabriel Hahmann <gabriel.hahmann op gmail.com>: [...]> 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: > > Bus 001 Device 004: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 > Adapter > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.00 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x04b4 Cypress Semiconductor Corp. > idProduct 0x5500 HID->COM RS232 Adapter > bcdDevice 0.00 > iManufacturer 1 Cypress Semiconductor > iProduct 2 USB to Serial > iSerial 0 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 41 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 4 Sample HID > bmAttributes 0x80 > (Bus Powered) > MaxPower 100mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 3 Human Interface Device > bInterfaceSubClass 0 No Subclass > bInterfaceProtocol 0 None > iInterface 0 > HID Device Descriptor: > bLength 9 > bDescriptorType 33 > bcdHID 1.00 > bCountryCode 0 Not supported > bNumDescriptors 1 > bDescriptorType 34 Report > wDescriptorLength 37 > Report Descriptors: > ** UNAVAILABLE ** > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 1 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x02 EP 2 OUT > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 1 > Device Status: 0x0000 > (Bus Powered) > > Anybody knows how to handle this?This device should be recognized by the kernel as a generic USB to serial converter. Usually this means that it will create a /dev/ttyUSBx port for you when you connect it. You can use the megatec driver to connect to this port. Best regards, Arjen PS Don't cross-post to the development mailing list if you don't get an answer immediately. This list is mostly run by volunteers, so give us a little time to answer. -- Please keep list traffic on the list
Citeren Gabriel Hahmann <gabriel.hahmann at gmail.com>:> I've sniffed the usb with usbsnoop and attached in this message, where > is the best place to post this to get any help, users or development?For a trimmed down version, the nut-upsdev mailinglist would be appropriate (note there is a 40kb limit on attachments). But I think posting a link where it can be downloaded would be better (to prevent flooding the mailinglist with lots of data that most people wouldn't use anyway). In all honesty, I don't think this would bring you any further though. The attached log doesn't really show much protocol information (if any). It looks like some kind of contact closure interface, for which the genericups driver would be the right driver. But given the total lack of model detection with such an interface, choosing which type is likely going to be difficult (if possible at all). If you really want this UPS to be supported, you'd need to have the protocol specifications that is used. Otherwise, there is little hope for this device to be supported and you'd better look for a supported one. Best regards, Arjen -- Please keep list traffic on the list