Re: Consistent enumeration of a btattached controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alan,

> I have a controller that is attached with btattach
> as a systemd service:
> 
> /usr/bin/btattach -B /dev/ttyACM0 -S 1000000
> 
> The same command seems to result in different
> enumerations. Sometimes its:
> 
> $ busctl tree org.bluez
> └─/org
>  └─/org/bluez
>    └─/org/bluez/hci1
> 
> other times:
> 
> $ busctl tree org.bluez
> └─/org
>  └─/org/bluez
>    └─/org/bluez/hci0
> 
> Is there a way to have fixed enumeration?

the hciX naming is assigned by the kernel and can not be guaranteed. For BR/EDR single mode or BR/EDR/LE dual-mode controller, you can read the property for the Bluetooth Device Address to find and match the controller.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux