On 27 December 2013 09:49, [email protected]
<[email protected]> wrote:
> After adding hotplug troubleshooting on wiki [1] and creating hotplug
> debug script I saw this for two different bluetooth dongles:
>
>
> action='add' product='a12/1/1915' type='224/1/1' interface=''
> action='add' product='a12/1/1915' type='224/1/1' interface='224/1/1'
> action='add' product='a12/1/1915' type='224/1/1' interface='224/1/1'
> action='add' product='a12/1/1915' type='224/1/1' interface='254/1/0'
> action='remove' product='a12/1/1915' type='224/1/1' interface='224/1/1'
> action='remove' product='a12/1/1915' type='224/1/1' interface='224/1/1'
> action='remove' product='a12/1/1915' type='224/1/1' interface='254/1/0'
> action='remove' product='a12/1/1915' type='224/1/1' interface=''
> action='add' product='a12/1/134' type='224/1/1' interface=''
> action='add' product='a12/1/134' type='224/1/1' interface='224/1/1'
> action='add' product='a12/1/134' type='224/1/1' interface='224/1/1'
>
> I was expecting to see "hci0" as interface because this is what
> hcitool and hciconfig report as bluetooth interface. Is interface 224
I do not have previous experience with BT device on Linux. But if you
are expecting "hci0" to appear as a network interface, then you should
turn to "/etc/hotplug.d/iface/".
> bluetooth specific interface? Is there anything here I could make
> hotplug detect bluetooth dongle from other types of usb devices?
>From [1]:
ACTION ... "add", "remove"
PRODUCT ... USB vendor, product, and version codes (hex)
TYPE ... device class codes (decimal)
INTERFACE ... interface 0 class codes (decimal)
If you do not need to distinguish 2 devices with the same ProductId,
then these information should be sufficient.
[1] https://www.kernel.org/doc/Documentation/usb/hotplug.txt
yousong
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel