Re: Udev?

Gene Heskett <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Not detectable
Message-ID <[email protected]>
On Tuesday 06 March 2007, Alan Stern wrote:
>On Tue, 6 Mar 2007, Gene Heskett wrote:
>> On Monday 05 March 2007, Gene Heskett wrote:
>> Repost, slight edit.
>> No one has any comments on this lack of usb connectivity?
>>
>> I have a new F6C1500 Belkin UPS, which when I plug in a pl2303
>> cable, becomes /dev/ttyUSB0 and Belkins own monitor soft works about
>> 99%.
>>
>> Its found by the kernel and an lsusb if I plug a usb cable in
>> directly, but no device is made by udev when I do.  dmesg sees this:
>>
>> Mar  5 20:07:59 coyote kernel: usb 3-3.4.4: new low speed USB device
>> using ehci_hcd and address 9
>> Mar  5 20:07:59 coyote kernel: usb 3-3.4.4: configuration #1 chosen
>> from 1 choice
>> Mar  5 20:08:00 coyote kernel: hiddev96: USB HID v1.11 Device [Belkin
>> Belkin UPS] on usb-0000:00:02.2-3.4.4
>>
>> And two new devices /dev/usbdev-hub.address_ep00 and _ep80 are
>> created but cat can't find them to test if any data is coming out.
>>
>> Greg K-H:You can't cat those files, that doesn't do anything.
>
>True.  Those files are mainly placeholders, waiting for usbfs2 to be
>developed.
>
>> Shouldn't I see a /dev/ttyUSB2 created since there are already 2
>> pl2303 cable's there now?  FC6, uptodate, homebrewed kernel so I
>> could be missing a module.
>
>Why do you think there should be a new terminal device?  When you plug
> in a mouse or a keyboard, you don't get /dev/ttyUSBn.  It's the same
> situation here -- the UPS registers itself as an HID device, not as a
> serial device.
>
>> Greg K-H:Can you provide the output of /proc/bus/usb/devices?  And
>> this should be on the linux-usb-devel list, not linux-hotplug-devel,
>> as it doesn't have anything to do with udev.
>>
>> Gene:Thank you, Greg.
>>
>> I've unplugged the pl2303 and plugged a usb cable in direct, here is
>> the cat of /proc/bus/usb/devices:
>
>...
>
>> T:  Bus=03 Lev=03 Prnt=05 Port=00 Cnt=01 Dev#=  9 Spd=1.5 MxCh= 0
>> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
>> P:  Vendor=050d ProdID=0751 Rev= 0.01
>> S:  Manufacturer=Belkin
>> S:  Product=Belkin UPS
>> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 20mA
>> I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
>> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=248ms
>
>As you can see, the UPS binds to the usbhid driver.  Not a serial
> driver.
>
>> I obviously have too many hubs...
>>
>> Is there no chance of making a direct usb connection work to this
>> device?
>
>Isn't it working now?
>
No, not until I unplug the usb cable, plug in the serial end of the pl2303 
cable, disconnect and reconnect the pl2303 from the front panel usb-1.2 
hub I have, and restart the daemon.  The daemon is config file coded to 
look for /dev/ttyUSB0, but that's fixable with vim if I knew how to fix 
it.  I know nothing about howto configure this as an HID access device.  
And the comm is two-way at least for the serial path as I can control the 
ups from the Bulldog gui when the serial cable is in use.

I've also found the serial cable doesn't connect, even if the /dev/ttyUSB0 
device is created, if its plugged into a 7 port ALPS hub I also have.  
However a logitek 802-11 mouse dongle and 2 other gizmos are working when 
plugged into that usb-2.0 hub.

So how do I address it as an HID device in a manner compatible with their 
supplied software?

Thanks Alan.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
We already sent around a notice about that.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.