From: Marcel Holtmann <marcel@holtmann.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev rules and USB bluetooth
Date: Mon, 08 Nov 2004 00:57:16 +0000 [thread overview]
Message-ID: <1099875436.6896.60.camel@pegasus> (raw)
In-Reply-To: <418EBA09.4030905@tesco.net>
Hi Derek,
> I was trying to write a rule to provide a persistent naming for multiple
> USB Bluetoot dongles. I need this for testing purposes, as the devices
> may be restarted at random times and I need to ensure I'm speaking to
> the same device.
>
> My attempts so far have failed!
>
> I have the following output from udevinfo -a -p /sys/class/bluetooth/hci0
>
> looking at the device chain at
> '/sys/devices/pci0000:00/0000:00:1d.2/usb2/2-1':
> BUS="usb"
> ID="2-1"
> SYSFS{bConfigurationValue}="1"
> SYSFS{bDeviceClass}="e0"
> SYSFS{bDeviceProtocol}="01"
> SYSFS{bDeviceSubClass}="01"
> SYSFS{bMaxPower}="200mA"
> SYSFS{bNumConfigurations}="1"
> SYSFS{bNumInterfaces}=" 3"
> SYSFS{bcdDevice}="1393"
> SYSFS{bmAttributes}="80"
> SYSFS{detach_state}="0"
> SYSFS{devnum}="4"
> SYSFS{idProduct}="0001"
> SYSFS{idVendor}="0a12"
> SYSFS{manufacturer}="Cambridge Silicon Radio"
> SYSFS{maxchild}="0"
> SYSFS{product}="CSR NanoSira"
> SYSFS{serial}="012C5A-5B-0002"
> SYSFS{speed}="12"
> SYSFS{version}=" 2.00"
>
>
> I was thinking that my rule would be
>
> BUS="usb", SYSFS{serial}="012C5A-5B-0002", name=%k SYMLINK="Nano%n"
>
> This has no affect!
Bluetooth devices don't use any device nodes. You can identify them by
their BD_ADDR.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
prev parent reply other threads:[~2004-11-08 0:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-08 0:12 udev rules and USB bluetooth Derek Philip
2004-11-08 0:57 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1099875436.6896.60.camel@pegasus \
--to=marcel@holtmann.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).