Alexa-Gadgets-Raspberry-Pi-Samples
Alexa-Gadgets-Raspberry-Pi-Samples copied to clipboard
when I choose BLE mode , gadget can`t connect to echo.
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
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?
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:
- Raspberry pi 3 B+
- 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
- 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.
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
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?
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