Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
* Re: Intel AX200 not receiving SCO data
@ 2020-05-14  3:12 Andrew Fuller
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fuller @ 2020-05-14  3:12 UTC (permalink / raw)
  To: linux-bluetooth

Update for posterity:

I found a newer firmware from the upstream git repo and that resolved
the SCO troubles.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Intel AX200 not receiving SCO data
@ 2020-05-12 19:10 Andrew Fuller
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fuller @ 2020-05-12 19:10 UTC (permalink / raw)
  To: linux-bluetooth

I sent this email yesterday, but it doesn't seem to have gone through.
I'm re-sending it now but this time without the attachments (maybe
that caused it to be redirected to /dev/null?)
If the attachments would be useful, please advise how to manage them
-- direct paste into the body?

If the first was just delayed, then this becomes a double-post.
Apologies in advance if that happens.

Original message below,
-Andrew


---- 8< ----------


First of all, I hope I'm in the right place for this, and if not
please direct me to where this is better suited.

Secondly, I know very little about Bluetooth, so please excuse my ignorance.

I have an Intel AX200 chip in my laptop and wish to use my Plantronics
Voyager Legend for teleconferencing under Linux.  It didn't work out
of the box, so I've been learning little pieces of Bluetooth and
profiles and such as I've dug progressively deeper into this.

I am now at the point where I understand (thanks Pali!) that SCO is
required for HSP/HFP and that my device doesn't seem to be receiving
any SCO packets.

Attached are the HCI logs from btmon and bluetoothd debug logs
(running master from a couple days ago).

Notably I see:

$ ag "SCO Data" hcitrace.txt
2048:< SCO Data TX: Handle 257 flags 0x00 dlen 96              #386
[hci0] 66.554983
2055:< SCO Data TX: Handle 257 flags 0x00 dlen 96              #387
[hci0] 66.554998
2690:< SCO Data TX: Handle 257 flags 0x00 dlen 96             #473
[hci0] 123.337072
2697:< SCO Data TX: Handle 257 flags 0x00 dlen 96             #474
[hci0] 123.337084

Looks like 4 SCO transmits, but 0 SCO receives.

Also looking peculiar to me is the content:

< SCO Data TX: Handle 257 flags 0x00 dlen 96              #386 [hci0] 66.554983
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
< SCO Data TX: Handle 257 flags 0x00 dlen 96              #387 [hci0] 66.554998
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

Is it typical/good/happy to be sending 96 bytes of nothing?

A little more detail about the bt chip in question:

$ lsusb
Bus 001 Device 006: ID 8087:0029 Intel Corp.

$  dmesg | ag blue
[    4.762863] Bluetooth: Core ver 2.22
[    4.762877] Bluetooth: HCI device and connection manager initialized
[    4.762879] Bluetooth: HCI socket layer initialized
[    4.762881] Bluetooth: L2CAP socket layer initialized
[    4.762887] Bluetooth: SCO socket layer initialized
[    4.975584] Bluetooth: hci0: Firmware revision 0.0 build 128 week 11 2020
[    5.037566] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio
is unblocked
[    5.821248] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.821249] Bluetooth: BNEP filters: protocol multicast
[    5.821253] Bluetooth: BNEP socket layer initialized
[   17.926249] Bluetooth: RFCOMM TTY layer initialized
[   17.926262] Bluetooth: RFCOMM socket layer initialized
[   17.926268] Bluetooth: RFCOMM ver 1.11

"Firmware revision 0.0" also looks strange to me, but AFAICT it's
loading ibt-20-1-3.sfi from the linux-firmware package.  Week 11 2020
certainly looks in line with what I would expect.

Googling has suggested that in the case of another vendor's chip SCO
traffic was being routed to PCI pins instead of HCI and that a
vendor-specific HCI command switched it to HCI, fixing the issue.

So, my questions are:
1. Am I in the right place?
2. Does this chip require a magic HCI command to route SCO to HCI?  It
appears some Intel folks are active here, perhaps they could chime in?
2a. If yes, where do I find the magic command?
3. Is the missing SCO Rx likely a symptom of something else gone wrong
in software, or likely the first indication of a hardware/firmware
issue?
4. Is there somewhere else I should be looking?

Thanks in advance,
-Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  3:12 Intel AX200 not receiving SCO data Andrew Fuller
  -- strict thread matches above, loose matches on Subject: below --
2020-05-12 19:10 Andrew Fuller

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git