Alexa-Gadgets-Raspberry-Pi-Samples icon indicating copy to clipboard operation
Alexa-Gadgets-Raspberry-Pi-Samples copied to clipboard

when I choose BLE mode , gadget can`t connect to echo.

Open Hansong-stack opened this issue 4 years ago • 5 comments

I choose BLE mode, and set gadget to pairing ,

when i pair echo to gadget use alexa app , but Immediately disconnects。

what`s the problem ?

thank you

Hansong-stack avatar Apr 16 '20 11:04 Hansong-stack

Can you please share more details? Which Echo Device are you using? After you switch to BLE mode, are you un-pairing the gadget from the Echo Device first before attempting to pair again?

vartakr avatar Jul 02 '20 04:07 vartakr

Hi vartakr,

I had a similar issue, when tried to connect to Bluetooth from Alexa app my raspberry pi console show as disconnected. Below are the details:

  1. Raspberry pi 3 B+
  2. Echo dot 2nd generation (Currently it's not available in India I have purchased it from Amzon.in). Not sure whether it support BLE or not as it's not mentioned in product description page if amazon.in. Only mentioned about A2DP and AVRCP. Echo Dot Link: https://www.amazon.in/gp/product/B071NB4PGV/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
  3. Console logs: pi@nitinpi:~/Alexa-Gadgets-Raspberry-Pi-Samples/src/examples/wakeword $ sudo python3 wakeword.py INFO:agt.alexa_gadget:Now in pairing mode over BLE. Pair Gadget0CA in the Alexa App. INFO:agt.alexa_gadget:Disconnected from Echo device with address 54:B1:Z5:36:F5:88 over BLE

Requesting you to please help me out to resolve this.

Nitinvermaa avatar Apr 13 '21 18:04 Nitinvermaa

I switch the transport from ble to bt now it's working. I went through the Alexa Gadgets Toolkit page, which says Echo dot (2nd Gen) supports Classic BT and BLE. But wakeword example is not working somehow (Refer above comment).

Console logs when triggered wakeword example in ble mode: pi@nitinpi:~/Alexa-Gadgets-Raspberry-Pi-Samples/src/examples/wakeword $ sudo python3 wakeword.py INFO:agt.alexa_gadget:Now in pairing mode over BLE. Pair Gadget0CA in the Alexa App. INFO:agt.alexa_gadget:Disconnected from Echo device with address 54:B1:Z5:36:F5:88 over BLE

Console logs when triggered wakeword example in bt mode (Working fine): Successfully installed agt Which transport mode would you like to configure your gadget for (ble/bt)?bt +------------------------------+ | SUCCESS | +------------------------------+

pi@nitinpi:~/Alexa-Gadgets-Raspberry-Pi-Samples $ cd src/examples//wakeword/ pi@nitinpi:~/Alexa-Gadgets-Raspberry-Pi-Samples/src/examples/wakeword $ sudo python3 wakeword.py Can't set Simple Pairing mode on hci0: Network is down (100) INFO:agt.alexa_gadget:Now in pairing mode over BT. Pair Gadget0CA in the Alexa App. INFO:agt.alexa_gadget:Connected to Echo device with address F0:81:73:BD:56:79 over BT INFO:main:Wake word active - turn on LED INFO:main:Wake word cleared - turn off LED INFO:main:Wake word active - turn on LED INFO:main:Wake word cleared - turn off LED

Can you help me out what's wrong while running in ble mode

Nitinvermaa avatar Apr 13 '21 19:04 Nitinvermaa

I have the exact same problem as @Nitinvermaa - using Echo Dot (2nd Gen). Has anybody got this working with 2nd gen? Or has anybody got this working with newer generations?

bwindsor avatar Oct 01 '21 11:10 bwindsor

Solved this particular issue - for me it was an issue with the Raspberry Pi kernel which was introduced in 5.10.11 and was fixed again in 5.10.20 according to this thread.

You can get the current kernel version with uname -a You can upgrade to kernal 5.10.20 with sudo rpi-update e150906

bwindsor avatar Oct 01 '21 11:10 bwindsor