On Wed, Nov 01, 2006 at 02:57:42AM +0300, Vladimir Volovich wrote: > i have a UPS drive (Ippon Smart Power Pro 2000) which has a usb and a > serial interface, but my mainboard doesn't have an external serial port, > and i'd like to manage the UPS via the USB port. > > the USB interface is based on Cypress Semiconductor chip - here is the > output from "lsusb -v": > [...] > Report Descriptors: > ** UNAVAILABLE **
To get full "lsusb -v" output for a HID device, you need to unload the usbhid module. Be careful if you also have an USB keyboard - you will need to enter all commands on one line: rmmod usbhid; lsusb -v >lsusb.log; modprobe usbhid > i loaded the cypress_m8 module via "modprobe cypress_m8", but when i > plug in the USB cable, i don't get any serial device node created in > /dev/usb/ (which is supposed to happen?). > > when i plug in the USB cable, i get these messages in the dmesg output: > > usb 6-2: new low speed USB device using uhci_hcd and address 28 > usb 6-2: configuration #1 chosen from 1 choice > usbcore: registered new driver hiddev > hiddev96: USB HID v1.00 Device [Cypress Semiconductor USB to Serial] on > usb-0000:00:1d.1-2 > usbcore: registered new driver usbhid > drivers/usb/input/hid-core.c: v2.6:USB HID core driver > > i.e. the usbhid module gets loaded and it gets control over the USB > port (instead of thecypress_m8 driver), and creates the device node > /dev/usb/hiddev0 This would be normal for an UPS with USB interface, if the device name would not contain "USB to Serial"... > if i disable the usbhid module (rename usbhid.ko to usbhid.ko_ to > prevent it from auto-loading), i just get this: > > usb 6-1: new low speed USB device using uhci_hcd and address 29 > usb 6-1: configuration #1 chosen from 1 choice > > and no device node is created. > > my question is - could the cypress_m8 driver (or other driver) be used > with this controller (device id is 0665:5161) to make it look as a > plain serial device? I have tried to do this with an Ippon SmartWinner 1000 (don't remember the exact device ID) by adding the device ID to the table in cypress_m8, but it did not work - apparently this device is different. Actually, it was even worse than "does not work" - I have got a kernel oops in cypress_m8; I had no time to debug this, and just attached the UPS to a serial port.
pgpMZr1WXwn1u.pgp
Description: PGP signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel