Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working: GN/Resound #16

Open
shermp opened this issue Oct 3, 2024 · 15 comments
Open

Not working: GN/Resound #16

shermp opened this issue Oct 3, 2024 · 15 comments

Comments

@shermp
Copy link
Owner

shermp commented Oct 3, 2024

A comment was posted in #13 regarding unable to connect to a Resound HA.

This issue will track troubleshooting and/or progress made.

@sk408 are you able to provide logs from the HA's. Maybe I can try and see what's going on. You may also like to give the gatt-refactor-3 branch a try to see if it makes any difference.

@sk408
Copy link

sk408 commented Oct 6, 2024

I have been looking at gatt-refactor-3 today and I'll paste the logs here. I had to fork the branch and go in and modify the firmware characteristic to FIRMWARE instead of SOFTWARE as the software characteristic didn't exist in the resound devices. I decompiled one of their earliest versions of the android apps and was able to see a bunch of the uuids that it uses for services and characteristics. I get Subscribe to ASP failed with error code: 0x0a and I'm unable to locate 0x0a in the btstack for that function? But I'm definitely not a pro at any of this. I'm barely a beginner who pokes at things.

{"cmd":"clear_dev_db","success":true}
[INFO : 36268] Removing paired devices
[INFO : 36272] Removing: 7C:A1:5D:C9:82:57
[INFO : 36273] Removing: 7C:A1:5D:C9:82:0A
[ERROR : 36376] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 40101] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 42287] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 46221] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 51802] Left: Subscribe to ASP failed with error code: 0x1f
[INFO : 51802] Received disconnection event.
[ERROR : 51803] Disconnected with reason: 0x08
[INFO : 51803] Left: Disconnected with 0 available credits.
[INFO : 51893] HA discovered with addr 7C:A1:5D:C9:82:0A. Connecting...
[INFO : 51967] Device connected. Attempt pairing
[INFO : 51968] Pairing started
[INFO : 52056] Just Works requested
[INFO : 52380] Pairing complete, success
[INFO : 52436] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 52436] Device paired. Discovering ASHA service
[INFO : 52836] GAP service found
[INFO : 52836] DIS service found
[INFO : 53016] ASHA service found
[INFO : 53058] Unknown: Discovering characteristics for ASHA service
[INFO : 53117] Unknown: Got PSM Characteristic
[INFO : 53117] Unknown: Got ROP Characteristic
[INFO : 53117] Unknown: Got ACP Characteristic
[INFO : 53117] Unknown: Got VOL Characteristic
[INFO : 53156] Unknown: Got AUS Characteristic
[INFO : 53156] Unknown: Discover ASHA Chars success
[INFO : 53196] Left: Read ROP success
[INFO : 53235] Left: PSM: 129
[INFO : 53236] ROP - Side: L, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 53236] Left: 129
[INFO : 53236] Left: Read PSM success
[INFO : 53237] Left: Discovering characteristics for GAP service
[INFO : 53276] Left: Got Device Name Characteristic
[INFO : 53276] Left: Discover GAP Chars success
[INFO : 53278] Left: Discovering characteristics for DIS service
[INFO : 53317] Left: Got Manufacture Name Characteristic
[INFO : 53317] Left: Got Model Number Characteristic
[INFO : 53317] Left: Got FW Version Characteristic
[INFO : 53317] Left: Discover DIS Chars success
[INFO : 53361] Left: Read Device Name success
[INFO : 53396] Left: Read Manufacture Name success
[INFO : 53436] Left: Read Model Num success
[INFO : 53476] Left: HA: ReSound PZ861-DRWC - FW D10045C4501
[INFO : 53476] Left: Read FW Version success
[ERROR : 53516] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 53669] Right: Subscribe to ASP failed with error code: 0x1f
[INFO : 53669] Received disconnection event.
[ERROR : 53669] Disconnected with reason: 0x08
[INFO : 53670] Right: Disconnected with 0 available credits.
[INFO : 53706] HA discovered with addr 7C:A1:5D:C9:82:57. Connecting...
[INFO : 53778] Device connected. Attempt pairing
[INFO : 53780] Pairing started
[INFO : 53823] Just Works requested
[INFO : 54168] Pairing complete, success
[INFO : 54204] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 54204] Device paired. Discovering ASHA service
[INFO : 54463] GAP service found
[INFO : 54464] DIS service found
[INFO : 54783] ASHA service found
[INFO : 54824] Unknown: Discovering characteristics for ASHA service
[INFO : 54884] Unknown: Got PSM Characteristic
[INFO : 54884] Unknown: Got ROP Characteristic
[INFO : 54884] Unknown: Got ACP Characteristic
[INFO : 54885] Unknown: Got VOL Characteristic
[INFO : 54943] Unknown: Got AUS Characteristic
[INFO : 54943] Unknown: Discover ASHA Chars success
[INFO : 55003] Right: Read ROP success
[INFO : 55063] Right: PSM: 129
[INFO : 55063] ROP - Side: R, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 55063] Right: 129
[INFO : 55063] Right: Read PSM success
[INFO : 55064] Right: Discovering characteristics for GAP service
[INFO : 55123] Right: Got Device Name Characteristic
[INFO : 55124] Right: Discover GAP Chars success
[INFO : 55125] Right: Discovering characteristics for DIS service
[INFO : 55163] Right: Got Manufacture Name Characteristic
[INFO : 55164] Right: Got Model Number Characteristic
[INFO : 55164] Right: Got FW Version Characteristic
[INFO : 55164] Right: Discover DIS Chars success
[INFO : 55223] Right: Read Device Name success
[INFO : 55267] Right: Read Manufacture Name success
[INFO : 55303] Right: Read Model Num success
[INFO : 55343] Right: HA: ReSound PZ861-DRWC - FW D10045C4501
[INFO : 55343] Right: Read FW Version success
[ERROR : 55403] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 58960] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 60828] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 64515] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 66428] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 69896] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 71928] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 75395] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 77528] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 80796] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 82928] Right: Subscribe to ASP failed with error code: 0x0a

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

Hmm. In this case, error code 0x0a appears to be ATT_ERROR_ATTRIBUTE_NOT_FOUND. You can find those error codes in bluetooth.h

I wonder if the L2CAP connection has to be created before subscribing to the notification?

@sk408
Copy link

sk408 commented Oct 6, 2024

Oh, I thought I updated. I found the error code, yeah. It was strange because it would start coming out of sequence sometimes. I went back to messing around with the main branch. A week ago I had commented out the subscription in the main branch code and a lot more stuff happened but it didn't try to stream any audio. I'll do that again and post the logs if that helps.

@sk408
Copy link

sk408 commented Oct 6, 2024

Also your stuff works with Philips hearing aids which are basically Oticon.

@sk408
Copy link

sk408 commented Oct 6, 2024

This is the log from when I disable the disconnect from the notifications failing from the main branch.

[INFO : 261] BT ASHA starting.
[INFO : 261] L2CAP Init.
[INFO : 261] SM Init.
[INFO : 261] GATT Client Init.
[INFO : 261] HCI power on.
[INFO : 1168] BTstack up and running on 28:CD:C1:0F:F9:CB
[INFO : 1168] Removing paired devices
[INFO : 1173] Removing: 7C:A1:5D:C9:82:0A
[INFO : 1174] Removing: 7C:A1:5D:C9:82:57
[INFO : 1175] Start scanning.
[INFO : 1448] HA discovered with addr 7C:A1:5D:C9:82:57. Connecting...
[INFO : 1598] Device connected. Attempt pairing
[INFO : 1599] Pairing started
[INFO : 1707] Just Works requested
[INFO : 2092] Pairing complete, success
[INFO : 2127] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 2127] Device paired. Discovering ASHA service
[INFO : 2387] GATT service found
[INFO : 2387] ASHA service found
[INFO : 2767] ASHA service found
[INFO : 2827] Discovering characteristics for found services
[INFO : 2927] Got Service Changed Characteristic
[INFO : 2927] Characteristic discovery complete
[INFO : 2927] Continue discovering more characteristics
[INFO : 2968] Got PSM Characteristic
[INFO : 2968] Got ROP Characteristic
[INFO : 2968] Got ACP Characteristic
[INFO : 2968] Got VOL Characteristic
[INFO : 3007] Got AUS Characteristic
[INFO : 3007] Characteristic discovery complete
[INFO : 3007] Continue discovering more characteristics
[INFO : 3068] Got PSM Characteristic
[INFO : 3068] Got ROP Characteristic
[INFO : 3068] Got ACP Characteristic
[INFO : 3068] Got VOL Characteristic
[INFO : 3127] Got AUS Characteristic
[INFO : 3127] Characteristic discovery complete
[INFO : 3127] Characteristic discovery complete
[INFO : 3227] Completed value read of Device Name
[INFO : 3287] Getting ReadOnlyProperties value
[INFO : 3287] Completed value read of ReadOnlyProperties
[INFO : 3347] Getting PSM value
[INFO : 3347] PSM: 129
[INFO : 3347] Completed value read of PSM
[INFO : 3347] ROP - Side: R, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[ERROR : 3401] Enabling ASP notifications failed with error code: 0x0a
[INFO : 3402] Right: Subscribed to ASP Notification
[INFO : 3403] Right: Connecting to L2CAP
[INFO : 3447] Right: L2CAP CoC channel created
[INFO : 3500] HA discovered with addr 7C:A1:5D:C9:82:0A. Connecting...
[INFO : 3766] Device connected. Attempt pairing
[INFO : 3767] Pairing started
[ERROR : 3908] Pairing failed, disconnected
[INFO : 3909] Received disconnection event.
[ERROR : 3909] Disconnected with reason: 62
[INFO : 4038] HA discovered with addr 7C:A1:5D:C9:82:0A. Connecting...
[INFO : 4166] Device connected. Attempt pairing
[INFO : 4167] Pairing started
[INFO : 4215] Just Works requested
[INFO : 4561] Pairing complete, success
[INFO : 4594] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 4594] Device paired. Discovering ASHA service
[INFO : 4994] GATT service found
[INFO : 4995] ASHA service found
[INFO : 5174] ASHA service found
[INFO : 5214] Discovering characteristics for found services
[INFO : 5314] Got Service Changed Characteristic
[INFO : 5314] Characteristic discovery complete
[INFO : 5314] Continue discovering more characteristics
[INFO : 5355] Got PSM Characteristic
[INFO : 5356] Got ROP Characteristic
[INFO : 5356] Got ACP Characteristic
[INFO : 5356] Got VOL Characteristic
[INFO : 5394] Got AUS Characteristic
[INFO : 5394] Characteristic discovery complete
[INFO : 5394] Continue discovering more characteristics
[INFO : 5435] Got PSM Characteristic
[INFO : 5436] Got ROP Characteristic
[INFO : 5436] Got ACP Characteristic
[INFO : 5436] Got VOL Characteristic
[INFO : 5474] Got AUS Characteristic
[INFO : 5474] Characteristic discovery complete
[INFO : 5474] Characteristic discovery complete
[INFO : 5554] Completed value read of Device Name
[INFO : 5594] Getting ReadOnlyProperties value
[INFO : 5595] Completed value read of ReadOnlyProperties
[INFO : 5654] Getting PSM value
[INFO : 5654] PSM: 129
[INFO : 5654] Completed value read of PSM
[INFO : 5654] ROP - Side: L, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 5656] Connected to all aid(s) in set.
[ERROR : 5694] Enabling ASP notifications failed with error code: 0x0a
[INFO : 5696] Left: Subscribed to ASP Notification
[INFO : 5696] Left: Connecting to L2CAP
[INFO : 5735] Left: L2CAP CoC channel created
[INFO : 44954] Received disconnection event.
[ERROR : 44955] Disconnected with reason: 8
[INFO : 44955] Right: Disconnected with 8 available credits.
[INFO : 45033] Identity resolving succeeded
[INFO : 45033] Connecting to address 7C:A1:5D:C9:82:57
[INFO : 45170] Device connected. Attempt pairing
[INFO : 45172] Reencryption started
[INFO : 45310] Received disconnection event.
[ERROR : 45310] Disconnected with reason: 62
[INFO : 45417] Identity resolving succeeded
[INFO : 45417] Connecting to address 7C:A1:5D:C9:82:57
[INFO : 45556] Device connected. Attempt pairing
[INFO : 45558] Reencryption started
[INFO : 45687] Reencryption complete
[INFO : 45788] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 45788] Device paired. Discovering ASHA service
[INFO : 45867] GATT service found
[INFO : 45867] ASHA service found
[INFO : 46106] ASHA service found
[INFO : 46146] Discovering characteristics for found services
[INFO : 46267] Got Service Changed Characteristic
[INFO : 46267] Characteristic discovery complete
[INFO : 46267] Continue discovering more characteristics
[INFO : 46308] Got PSM Characteristic
[INFO : 46308] Got ROP Characteristic
[INFO : 46308] Got ACP Characteristic
[INFO : 46308] Got VOL Characteristic
[INFO : 46346] Got AUS Characteristic
[INFO : 46346] Characteristic discovery complete
[INFO : 46347] Continue discovering more characteristics
[INFO : 46388] Got PSM Characteristic
[INFO : 46388] Got ROP Characteristic
[INFO : 46388] Got ACP Characteristic
[INFO : 46388] Got VOL Characteristic
[INFO : 46447] Got AUS Characteristic
[INFO : 46447] Characteristic discovery complete
[INFO : 46447] Characteristic discovery complete
[INFO : 46526] Completed value read of Device Name
[INFO : 46567] Getting ReadOnlyProperties value
[INFO : 46567] Completed value read of ReadOnlyProperties
[INFO : 46606] Getting PSM value
[INFO : 46607] PSM: 129
[INFO : 46607] Completed value read of PSM
[INFO : 46607] ROP - Side: R, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 46608] Connected to all aid(s) in set.
[ERROR : 46646] Enabling ASP notifications failed with error code: 0x0a
[INFO : 46648] Right: Subscribed to ASP Notification
[INFO : 46648] Right: Connecting to L2CAP
[INFO : 46687] Right: L2CAP CoC channel created
[INFO : 46902] Received disconnection event.
[ERROR : 46902] Disconnected with reason: 8
[INFO : 46902] Left: Disconnected with 8 available credits.
[INFO : 46946] Identity resolving succeeded
[INFO : 46946] Connecting to address 44:C2:B0:16:5C:CF
[INFO : 47024] Device connected. Attempt pairing
[INFO : 47026] Reencryption started
[INFO : 47235] Reencryption complete
[INFO : 47314] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 47315] Device paired. Discovering ASHA service
[INFO : 47394] GATT service found
[INFO : 47395] ASHA service found
[INFO : 47614] ASHA service found
[INFO : 47694] Discovering characteristics for found services
[INFO : 47834] Got Service Changed Characteristic
[INFO : 47834] Characteristic discovery complete
[INFO : 47834] Continue discovering more characteristics
[INFO : 47875] Got PSM Characteristic
[INFO : 47875] Got ROP Characteristic
[INFO : 47876] Got ACP Characteristic
[INFO : 47876] Got VOL Characteristic
[INFO : 47934] Got AUS Characteristic
[INFO : 47934] Characteristic discovery complete
[INFO : 47934] Continue discovering more characteristics
[INFO : 47975] Got PSM Characteristic
[INFO : 47975] Got ROP Characteristic
[INFO : 47976] Got ACP Characteristic
[INFO : 47976] Got VOL Characteristic
[INFO : 48034] Got AUS Characteristic
[INFO : 48034] Characteristic discovery complete
[INFO : 48034] Characteristic discovery complete
[INFO : 48134] Completed value read of Device Name
[INFO : 48194] Getting ReadOnlyProperties value
[INFO : 48194] Completed value read of ReadOnlyProperties
[INFO : 48234] Getting PSM value
[INFO : 48234] PSM: 129
[INFO : 48234] Completed value read of PSM
[INFO : 48234] ROP - Side: L, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 48236] Connected to all aid(s) in set.
[ERROR : 48274] Enabling ASP notifications failed with error code: 0x0a
[INFO : 48275] Left: Subscribed to ASP Notification
[INFO : 48275] Left: Connecting to L2CAP
[INFO : 48335] Left: L2CAP CoC channel created
[INFO : 66882] Received disconnection event.
[ERROR : 66882] Disconnected with reason: 8
[INFO : 66882] Left: Disconnected with 8 available credits.
[INFO : 69151] Identity resolving succeeded
[INFO : 69151] Connecting to address 7C:A1:5D:C9:82:0A
[INFO : 69262] Device connected. Attempt pairing
[INFO : 69265] Reencryption started
[INFO : 69399] Reencryption complete
[INFO : 69479] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 69479] Device paired. Discovering ASHA service
[INFO : 69559] GATT service found
[INFO : 69559] ASHA service found
[INFO : 69719] ASHA service found
[INFO : 69759] Discovering characteristics for found services
[INFO : 69839] Got Service Changed Characteristic
[INFO : 69839] Characteristic discovery complete
[INFO : 69839] Continue discovering more characteristics
[INFO : 69880] Got PSM Characteristic
[INFO : 69880] Got ROP Characteristic
[INFO : 69880] Got ACP Characteristic
[INFO : 69881] Got VOL Characteristic
[INFO : 69919] Got AUS Characteristic
[INFO : 69919] Characteristic discovery complete
[INFO : 69919] Continue discovering more characteristics
[INFO : 69960] Got PSM Characteristic
[INFO : 69960] Got ROP Characteristic
[INFO : 69960] Got ACP Characteristic
[INFO : 69961] Got VOL Characteristic
[INFO : 69999] Got AUS Characteristic
[INFO : 69999] Characteristic discovery complete
[INFO : 69999] Characteristic discovery complete
[INFO : 70079] Completed value read of Device Name
[INFO : 70119] Getting ReadOnlyProperties value
[INFO : 70119] Completed value read of ReadOnlyProperties
[INFO : 70159] Getting PSM value
[INFO : 70159] PSM: 129
[INFO : 70159] Completed value read of PSM
[INFO : 70159] ROP - Side: L, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 70161] Connected to all aid(s) in set.
[ERROR : 70199] Enabling ASP notifications failed with error code: 0x0a
[INFO : 70200] Left: Subscribed to ASP Notification
[INFO : 70200] Left: Connecting to L2CAP
[INFO : 70260] Left: L2CAP CoC channel created

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

I just pushed some changes to gatt-refactor-3 if you want to try them.

The new code does two things:

  1. Connects to L2CAP CoC before subscribing to the AudioStatusPoint notifications. (I think this is what Android does).
  2. Skips reading any characteristics not found. Hopefully this fixes your issue of software vs firmware.

Please let me know if there is any change.

@sk408
Copy link

sk408 commented Oct 6, 2024

Here's the logs. I'll mess with it again tomorrow, I think. GN does do some weird stuff because it broadcasts multiple addresses. One is named GN, and one has the users name + "hearing aids"

[INFO : 261] BT ASHA starting.
[INFO : 261] L2CAP Init.
[INFO : 261] SM Init.
[INFO : 261] GATT Client Init.
[INFO : 261] HCI power on.
[INFO : 1175] BTstack up and running on 28:CD:C1:0F:F9:CB
[INFO : 1175] Start scanning.
[INFO : 2920] Identity resolving succeeded
[INFO : 2920] Connecting to address 7C:A1:5D:C9:82:0A
[INFO : 3085] Device connected. Attempt pairing
[INFO : 3087] Reencryption started
[INFO : 3087] HCI: Num Connnections changed to 1
[INFO : 3211] : Received disconnection event
[ERROR : 3211] : Disconnected with reason: 0x3e
[INFO : 3211] HCI: Num Connnections changed to 0
[INFO : 3369] Identity resolving succeeded
[INFO : 3369] Connecting to address 7C:A1:5D:C9:82:0A
[INFO : 3429] Device connected. Attempt pairing
[INFO : 3431] Reencryption started
[INFO : 3431] HCI: Num Connnections changed to 1
[INFO : 3585] Reencryption complete
[INFO : 3586] HCI: HCI_EVENT_ENCRYPTION_CHANGE
[INFO : 3665] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 3665] Device paired. Discovering ASHA service
[INFO : 3745] GAP service found
[INFO : 3745] DIS service found
[INFO : 3905] ASHA service found
[INFO : 3963] Unknown: Discovering characteristics for ASHA service
[INFO : 3998] Identity resolving succeeded
[INFO : 3998] Connecting to address 5F:99:13:60:57:7A
[INFO : 4006] Unknown: Got PSM Characteristic
[INFO : 4006] Unknown: Got ROP Characteristic
[INFO : 4006] Unknown: Got ACP Characteristic
[INFO : 4007] Unknown: Got VOL Characteristic
[INFO : 4045] Unknown: Got AUS Characteristic
[INFO : 4045] Unknown: Discover ASHA Chars success
[INFO : 4085] Left: Read ROP success
[INFO : 4125] Left: PSM: 129
[INFO : 4125] ROP - Side: L, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 4125] Left: 129
[INFO : 4125] Left: Read PSM success
[INFO : 4126] Left: Discovering characteristics for GAP service
[INFO : 4176] Device connected. Attempt pairing
[INFO : 4178] HCI: Num Connnections changed to 2
[INFO : 4179] Reencryption started
[INFO : 4185] Left: Got Device Name Characteristic
[INFO : 4186] Left: Discover GAP Chars success
[INFO : 4190] Left: Discovering characteristics for DIS service
[INFO : 4245] Left: Got Manufacture Name Characteristic
[INFO : 4245] Left: Got Model Number Characteristic
[INFO : 4246] Left: Discover DIS Chars success
[INFO : 4285] Left: Read Device Name success
[INFO : 4345] Left: Read Manufacture Name success
[INFO : 4358] Reencryption complete
[INFO : 4359] HCI: HCI_EVENT_ENCRYPTION_CHANGE
[INFO : 4385] Left: Read Model Num success
[INFO : 4386] Left: Skipping Read FW Version
[INFO : 4390] Left: Connecting to L2CAP
[INFO : 4445] Left: L2CAP CoC channel created
[INFO : 4458] DL set to: RX Octets: 251, RX Time: 2120 us, TX Octets: 167, TX Time: 1064 us
[INFO : 4458] Device paired. Discovering ASHA service
[ERROR : 4485] Left: Subscribe to ASP failed with error code: 0x0a
[INFO : 4558] GAP service found
[INFO : 4558] DIS service found
[INFO : 4737] ASHA service found
[INFO : 4786] Unknown: Discovering characteristics for ASHA service
[INFO : 4822] Unknown: Got PSM Characteristic
[INFO : 4823] Unknown: Got ROP Characteristic
[INFO : 4823] Unknown: Got ACP Characteristic
[INFO : 4823] Unknown: Got VOL Characteristic
[INFO : 4858] Unknown: Got AUS Characteristic
[INFO : 4858] Unknown: Discover ASHA Chars success
[INFO : 4898] Right: Read ROP success
[INFO : 4937] Right: PSM: 129
[INFO : 4938] ROP - Side: R, Mode: B, M. ID: 0089, Delay: 206, 16KHz: Y, 24KHz: N
[INFO : 4938] Right: 129
[INFO : 4938] Right: Read PSM success
[INFO : 4940] Right: Discovering characteristics for GAP service
[INFO : 4983] Right: Got Device Name Characteristic
[INFO : 4984] Right: Discover GAP Chars success
[INFO : 4985] Right: Discovering characteristics for DIS service
[INFO : 5018] Right: Got Manufacture Name Characteristic
[INFO : 5018] Right: Got Model Number Characteristic
[INFO : 5018] Right: Discover DIS Chars success
[INFO : 5058] Right: Read Device Name success
[INFO : 5098] Right: Read Manufacture Name success
[INFO : 5138] Right: Read Model Num success
[INFO : 5140] Right: Skipping Read FW Version
[INFO : 5145] Right: Connecting to L2CAP
[INFO : 5197] Right: L2CAP CoC channel created
[ERROR : 5238] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 10625] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 11537] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 16585] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 17360] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 22645] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 23405] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 28445] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 29317] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 34305] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 35337] Right: Subscribe to ASP failed with error code: 0x0a
[ERROR : 40228] Left: Subscribe to ASP failed with error code: 0x0a
[ERROR : 41017] Right: Subscribe to ASP failed with error code: 0x0a

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

Sigh... Thanks for trying. I'm a bit stumped at the moment.

@sk408
Copy link

sk408 commented Oct 6, 2024

It's impressive that you got it working with Oticon, tbh. Did you modify the btstack yourself at any point? I don't know. We could make a discord group if you want. I'd love to get this working outside just Oticon/Philips because it could help a lot of people.

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

No, no modifications to me, apart cherry picking a development feature (to get the number of outgoing credits) onto the current btstack release. As soon as the next btstack version is released, we can switch back to the upstream repository.

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

I've been DM'ing with someone else on the BlueZ slack server (they have an ASHA channel, where I have posted some things).

@sk408
Copy link

sk408 commented Oct 6, 2024

I've been using github actions and your yaml to build everything but I think the next step is I need to add some custom logging to the btstack to figure out where it chokes and what the output of the choking is, if possible (for me, anyhow). So I'll have to figure out how to do that. Would it be better to build a docker environment at that point? I'm using a MBP M3 if that helps. If the person you are dm'ing is responsive, maybe discord server is decent. And add anyone who is remotely interested.

@sk408
Copy link

sk408 commented Oct 6, 2024

I made a server PicoASHA but I can delete it or give you control if you want or whatever.

@shermp
Copy link
Owner Author

shermp commented Oct 6, 2024

I don't think btstack is the source of that error. It is basically reported from the HCI controller (so it comes from the controller or the remote device).

@shermp
Copy link
Owner Author

shermp commented Oct 9, 2024

An update, we figured out that this is an issue of having to enable a compile time define to use a different method to write the client characteristic configuration descriptor (CCCD), See bluekitchen/btstack#632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants