Home/Support/Support Forum/CC6 dev kit BlueTooth issue
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

CC6 dev kit BlueTooth issue

0 votes

I'm debugging Bluetooth functionality on a CC6 Jumpstart Dev Kit.
dey-bluetooth package is added to Yocto.

dmesg shows the Bluetooth software services are running:
Bluetooth: Core ver 2.22
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol ATH3K registered
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized

I traced the issue to the bluetooth-init script.
The call "hciattach ttyBt ath3k 4000000" step fails with:

Failed to Download configuration: Success
Can't initialize device: Success

Is this related to downloading the pst files?

In the kernel config, the following are defined:
Atheros AR300x serial support (CONFIG_BT_HCIUART_ATH3K)

Is this one needed too?
HCI_IBS protocol support (CONFIG_BT_HCIUART_IBS)

I would greatly appreciate any recommendations for debugging this issue.

asked Jun 25, 2020 in Linux by cnason1 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
What Yocto version are you using?
Are you testing on stock images on SBC?
are there any BT related errors in bootlog?
can you try commands listed here:
Does it work for you?
answered Jun 26, 2020 by LeonidM Veteran of the Digi Community (4,457 points)
I diff'ed the dts and dtsi files and differences are related to camera and parallel display (no bluetooth differences). Our custom build is using kernel 4.18.  Is there a way to build the 4.18 kernel with Digi release 2.6 instead of kernel 4.9?

I am afraid, not. What is preventing you from upgrading to the newer kernel?
The kernel we are using is actually newer.

Separate question, I'd like to examine the gpio states of the disable-gpios referenced from the Bluetooth Device tree entry:

bluetooth: bluetooth {
digi,pwrdown-gpios = <&gpio_extender 4 0>;
digi,disable-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
/* U-Boot will fill in the MAC address here */

pwrdown-gpios has you stated before is gpio244. what is disable-gpio?  Port 1, pin 9.  Is it gpio9? Thanks.
yes, if you look ad cc6 SBC schematics you will find that module's pad H3 is GPIO_9 and is used as BT_DISABLE_N

per https://www.digi.com/resources/documentation/digidocs/embedded/dey/2.6/cc6/bsp_r_gpio_cc6cc6qp

LinuxGPIO_num = (<imx6_gpio_port> - 1) * 32 + <imx6_gpio_pin>
so yes it will become /sys/class/gpio/gpiochip9
Relating back the kernel discussion, earlier in this thread.  I know the dey 2.6 release uses 4.9 linux kernel.
Do you know if the upstream 4.18 kernel tree supports the bluetooth interface on this SOM?