Pico-ASHA: USB audio to ASHA adapter

Pico-ASHA: USB audio to ASHA adapter

Pico-ASHA is an try to implement Android’s Audio Streaming for Hearing Aids (ASHA) protocol on a Raspberry Pi Pico W microcontroller.

This undertaking remains to be a Work in Progress. Currently, it’s doable to find and stream audio to Oticon More listening to aids.

Device Status
Oticon More 2 Working
Starkey Arc AI Can Pair, however not open L2CAP CoC Connection

It must be protected, however I can not assure it won’t mess up your listening to aids!

Precompiled builds for testing

Any commits pushed to this repository compiles an ELF and UF2 binary that may be loaded onto a Pico W.

Both UART and USB serial binaries are compiled, you possibly can select whichever is most fitted for you.

Binaries can be found for obtain from the Github Actions tab. You mist be logged into Github to obtain these binaries.

Download pico-sdk 2.0.0, utilizing the offered directions.

Create an atmosphere variable referred to as PICO_SDK_PATH that factors to the downloaded SDK location.

Obtain an up to date BT firmware to repair a problem with Data Length Extensions (DLE). Download and apply the patch from this github remark. Hopefully the following model of the Pico SDK will embody this repair.

Download a modified btstack with outgoing credit score assist:

git clone https://github.com/shermp/btstack.git -b master-credits.

Create an atmosphere variable referred to as PICO_BTSTACK_PATH that factors to the downloaded btstack location.

Build pico-asha

mkdir construct
cd construct
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .

To load this system onto your Pico W, press the BOOTSEL button whereas plugging it into the PC over USB. Then copy the pico-asha.uf2 onto the mass storage machine.

Developers with an acceptable debug (SWD) connection to the Pico might alternatively load pico-asha.elf utilizing OpenOCD. This offers a non-interactive methodology of loading Pico-ASHA with out having to press the BOOTSEL button.

Instructions for doing so are exterior the scope of this readme.

By default, Pico-ASHA logs output by way of USB serial. The USB serial settings are as follows:

  • Baud Rate: 115200
  • Data Bits: 8
  • Stop Bits:" 1
  • Parity: None
  • DTR and RTS enabled

You may also reset the Pico into BOOTSEL mode (to add new firmware) by altering the baud charge to 1200 baud.

It is advisable that your listening to units aren’t related to any telephone/pill/streamer whereas testing Pico-ASHA. It shouldn’t be essential to unpair from current bluethooth units, though this shall be machine particular.

Currently, Pico-ASHA makes an attempt to pair/bond with any listening to help units which are promoting. So to start out, it’s best to put your listening to units into their pairing mode, then begin Pico-ASHA by plugging the Pico W into USB, or reloading the firmware, or resetting it.

Once listening to units have paired/bonded the primary time, they may robotically reconnect without having to be in pairing mode.

Pico-ASHA ought to seem as a regular USB audio "sound card" in your working system. To begin streaming audio to your listening to units, set Pico-ASHA as your present sound output machine. Note, Pico-ASHA may even present a microphone. Ignore this.

I additionally extremely suggest connecting to the Pico-ASHA serial for logs whereas testing, both UART or USB as described in earlier sections.

Unless in any other case famous within the file, the supply code on this repository is licenced below the BSD 3-clause licence, nonetheless any binaries should be offered on a extra restrictive licence, see beneath.

Pico-ASHA makes use of BTstack by BlueKitchen, which basically has a non-commercial free licence obtainable. Raspberry Pi have offered a business licence if utilizing BTstack on official Raspberry Pi Pico W or WH. If Pico-ASHA is applied on another machine, then the phrases of the unique BlueKitchen BTstack licence MUST be adhered to.

HI-FI News

by way of Hacker News https://ift.tt/kCRSVzb

September 15, 2024 at 09:10PM