The bluetoothhd service uses a configuration file (main.conf) in which several parameters of the bluetooth connection can be configured, one of which is the device class. The main.conf file should be in the path /etc/bluetooth/ but in the reference image it does not appear. I manually created the file and modified the bluetooth.service so that when it starts up it takes the main.conf file in the following way:
bluetoothd -f /etc/bluetooth/main.conf
I have restarted the device and although now if it modifies the class it does not do it correctly. In the main.conf I have configured the following option:
[General] # Default adapter name # Defaults to 'BlueZ X.YZ'. Name = NIIRA # Default device class. Only the major and minor device class bits are # considered. Defaults to '0x000000'. Class = 0x00240414
And the device has partly modified the class type and has not modified the name:
So it has read the main.conf file but for some reason I don’t know, it has not taken correctly the value of the class, nor has it taken the name.
I am using the minimum reference image BSP 6.3.0 on the Verdin iMX8MM.
Thanks to all of you for your collaboration.