Date: Mon, 22 Mar 2004 13:30:49 +0100 From: Bernd Walter <ticso@cicely12.cicely.de> To: "M. Warner Losh" <imp@bsdimp.com> Cc: ticso@cicely.de Subject: Re: Opinions about using USB serial numbers Message-ID: <20040322123048.GP63452@cicely12.cicely.de> In-Reply-To: <20040321071100.GH33602@cicely12.cicely.de> References: <20040320052007.GC33602@cicely12.cicely.de> <20040320.184336.88475380.imp@bsdimp.com> <20040321071100.GH33602@cicely12.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 21, 2004 at 08:11:01AM +0100, Bernd Walter wrote: > On Sat, Mar 20, 2004 at 06:43:36PM -0700, M. Warner Losh wrote: > > However, having said that, you can use devd to extract the information > > from the node and then create a symbolic link... > > OK - lets try it with devd. > Usefull devd support is required anyway. > > That's what I get on plugging in a device: > Processing event '? at on uhub2' > Pushing table > Processing nomatch event > Popping table > Processing event '+ubser0 at on uhub2' > Pushing table > device-name=ubser0 > Processing attach event OK - I'm a bit further now: Processing event '?Vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber=" foo" at port=2 on uhub2' Pushing table vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber= foo port=2 bus=uhub2 Processing nomatch event Popping table Processing event '+ubser0 at port=2 on uhub2' Pushing table device-name=ubser0 port=2 bus=uhub2 Processing attach event [...] Processing event '-ubser0 at port=2 on uhub2' Pushing table device-name=ubser0 port=2 bus=uhub2 Processing detach event The serial numer is still a fake one, but proves that " surounded whitespace works. Getting the interface number and interface specific parameters is tricky so it's not done yet. What still puzzles me is why only the nomatch event includes pnpinfo. devinfo is just fine: [58]cicely13# devinfo -v | grep ubser0 ubser0 pnpinfo Vendor=0x03da Product=0x0001 DeviceClass=0x00 DeviceSubClass=0x00 DeviceProtocol=0x00 SerialNumber=" foo" at port=2 -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040322123048.GP63452>