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

Disconnects every 10mins - Signia-5AX HA #19

Open
amarnath-kashyap opened this issue Jan 7, 2025 · 5 comments
Open

Disconnects every 10mins - Signia-5AX HA #19

amarnath-kashyap opened this issue Jan 7, 2025 · 5 comments

Comments

@amarnath-kashyap
Copy link

I am using Pico2 W board and had to compile your code with Pico SDK 2.1 to get the firmware loaded with that I am able to stream audio from Windows11 to Signia 5AX HA but unfortunately connection doesnt last longer than 10mins; gets disconnected and have to unplug & plug again for another 10mins of streaming.

@shermp
Copy link
Owner

shermp commented Jan 7, 2025

Hi @amarnath-kashyap thanks for testing.

Do you have the serial connection open when the connection stops? Is there anything in the logs that might provide a clue?

I don't yet have a Pico 2W to test with unfortunately.

Also, I had a quick look at your changes to get it to compile with the SDK 2.1/RP2350. Looks like PseudoAtomic is causing some potential issues? I had plans at some point to use the atomic support in the SDK 2.x, I guess I need to look into that.

@amarnath-kashyap
Copy link
Author

amarnath-kashyap commented Jan 8, 2025

Thanks for the quick response.

How do I know the serial connection is open (LED light is on. Not blinking) and how to get the log. I am new to Pico development; any reference will be helpful.

FYI: Also Build action isn't uploading the uf2 with your recent changes, mostly after renaming files. Builds gets successful but no files were uploaded. I suspect maybe path mismatch

@shermp
Copy link
Owner

shermp commented Jan 9, 2025

You need a program that can read from a serial port.

If you use or have Visual Studio Code (VS Code) you can install the serial-monitor extension and use that. Otherwise, on Windows you can use PuTTY or similar software.

When you plug in the Pico to USB, as well as a sound card, it should also show as a serial port that you can connect to. On connecting, you may have to press enter to start seeing the logs.

@amarnath-kashyap
Copy link
Author

I use VS Code. Let me give a try tonight.

Could you pls fix the build. Latest code isn't uploading the compiled file to artifactory. Infact I took the older code from trunk branch.

@amarnath-kashyap
Copy link
Author

Here are the logs

---- Opened the serial port COM5 ----
[INFO : 1135] BT Started
[INFO : 1271] HA with address 4F:92:4D:D9:13:F6 discovered. Connecting
[INFO : 1329] 4F:92:4D:D9:13:F6: Connected
[INFO : 1331] 4F:92:4D:D9:13:F6: Discover services
[INFO : 1331] 4F:92:4D:D9:13:F6: Discovering services
[INFO : 1667] 4F:92:4D:D9:13:F6: ASHA service found
[INFO : 1671] 4F:92:4D:D9:13:F6: Set Data Length
[INFO : 1671] 4F:92:4D:D9:13:F6: Setting data length
[INFO : 1707] 4F:92:4D:D9:13:F6: Data length set
[INFO : 1711] 4F:92:4D:D9:13:F6: Pair and bond
[INFO : 1827] 4F:92:4D:D9:13:F6: Paired and bonded
[INFO : 1831] 4F:92:4D:D9:13:F6: Discover characteristics
[INFO : 1908] 4F:92:4D:D9:13:F6: Got device name char
[INFO : 1909] 4F:92:4D:D9:13:F6: Got ROP char
[INFO : 1909] 4F:92:4D:D9:13:F6: Got ACP char
[INFO : 1909] 4F:92:4D:D9:13:F6: Got ASP char
[INFO : 1909] 4F:92:4D:D9:13:F6: Got Volume char
[INFO : 1909] 4F:92:4D:D9:13:F6: Got PSM char
[INFO : 1909] 4F:92:4D:D9:13:F6: Characteristics discovered
[INFO : 1911] 4F:92:4D:D9:13:F6: Read characteristics
[INFO : 1947] 4F:92:4D:D9:13:F6: Read device name
[INFO : 2007] 4F:92:4D:D9:13:F6: Read ROP
[INFO : 2008] ROP - Side: L, Mode: B, M. ID: 0295, Delay: 89, 16KHz: Y, 24KHz: N
[INFO : 2047] 4F:92:4D:D9:13:F6: Read PSM
[INFO : 2047] Left: Characteristics Read
[INFO : 2051] Left: Create L2CAP CoC
[INFO : 2087] Left: L2CAP CoC created
[INFO : 2091] Left: Enable ASP notification
[INFO : 2207] Left: ASP Notification enabled
[INFO : 2224] HA with address 66:C2:98:A9:2B:79 discovered. Connecting
[INFO : 2279] 66:C2:98:A9:2B:79: Connected
[INFO : 2281] 66:C2:98:A9:2B:79: Discover services
[INFO : 2281] 66:C2:98:A9:2B:79: Discovering services
[INFO : 2640] 66:C2:98:A9:2B:79: ASHA service found
[INFO : 2641] 66:C2:98:A9:2B:79: Set Data Length
[INFO : 2641] 66:C2:98:A9:2B:79: Setting data length
[INFO : 2680] 66:C2:98:A9:2B:79: Data length set
[INFO : 2681] 66:C2:98:A9:2B:79: Pair and bond
[INFO : 2800] 66:C2:98:A9:2B:79: Paired and bonded
[INFO : 2801] 66:C2:98:A9:2B:79: Discover characteristics
[INFO : 2881] 66:C2:98:A9:2B:79: Got device name char
[INFO : 2881] 66:C2:98:A9:2B:79: Got ROP char
[INFO : 2881] 66:C2:98:A9:2B:79: Got ACP char
[INFO : 2881] 66:C2:98:A9:2B:79: Got ASP char
[INFO : 2881] 66:C2:98:A9:2B:79: Got Volume char
[INFO : 2881] 66:C2:98:A9:2B:79: Got PSM char
[INFO : 2881] 66:C2:98:A9:2B:79: Characteristics discovered
[INFO : 2882] 66:C2:98:A9:2B:79: Read characteristics
[INFO : 2920] 66:C2:98:A9:2B:79: Read device name
[INFO : 2960] 66:C2:98:A9:2B:79: Read ROP
[INFO : 2960] ROP - Side: R, Mode: B, M. ID: 0295, Delay: 89, 16KHz: Y, 24KHz: N
[INFO : 3000] 66:C2:98:A9:2B:79: Read PSM
[INFO : 3000] Right: Characteristics Read
[INFO : 3002] Right: Create L2CAP CoC
[INFO : 3040] Right: L2CAP CoC created
[INFO : 3042] Right: Enable ASP notification
[INFO : 3180] Right: ASP Notification enabled
[INFO : 3182] Set complete
[INFO : 7696] Left: Starting audio
[INFO : 7697] Right: Starting audio
[INFO : 7748] Left: ASP Ok
[INFO : 7760] Right: ASP Ok
[INFO : 7768] Left: Setting volume to -72
[INFO : 7769] Right: Setting volume to -72
[INFO : 129628] Left: Available credits: 0, restarting stream
[INFO : 129628] Left: Stopping audio
[ERROR : 129628] Stop audio: In wrong state
[INFO : 129628] Right: Available credits: 0, restarting stream
[INFO : 129628] Right: Stopping audio
[ERROR : 129628] Stop audio: In wrong state

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

No branches or pull requests

2 participants