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

dont work running example #641

Open
Flouzl opened this issue Nov 3, 2024 · 14 comments
Open

dont work running example #641

Flouzl opened this issue Nov 3, 2024 · 14 comments

Comments

@Flouzl
Copy link

Flouzl commented Nov 3, 2024

Describe the bug

hi,
I want to use an example on my raspiberry b but it doesn't work

To Reproduce

Steps to reproduce the behavior:

  1. Run ' cd btstack/port/raspi'
  2. Start action './gatt_counter'

Logs

Packet Log: /tmp/hc1_dump.pklg
H5, 921600, BT_REG_EN at GPIO 128, Reset Controller Phase 1: Download firmware Download firmware failed

@mringwal
Copy link
Member

mringwal commented Nov 4, 2024

Which Raspberry Pi do you have?
Please try after a power cycle.

Please post hci_dump.pklg (you need to .zip it to for upload)

@Flouzl
Copy link
Author

Flouzl commented Nov 6, 2024

hi i on raspberry pi 3b
what is a power cycle ?

hci_dump.zip

@mringwal
Copy link
Member

mringwal commented Nov 6, 2024

Power Cycle = turn power off, wait, turn it on again.

Roy in 'The IT Crowd': "Have you tried turning it off and on again".
https://www.youtube.com/watch?v=5UT8RkSmN4k

@mringwal
Copy link
Member

mringwal commented Nov 6, 2024

The log says "Unable to open port /dev/serial1"
Does /dev/serial1 exist on your installation and do you you have the necessary rights to open it?

Did you disable bluez as described in the readme?

@Flouzl
Copy link
Author

Flouzl commented Nov 9, 2024

Yes I disble bluez but is dont work and when I import 'btstack.h' the Library not exists

@Flouzl
Copy link
Author

Flouzl commented Jan 10, 2025

it is possible to make vocal on Discord for talk about btstack: my user name is Flouzi

@mringwal
Copy link
Member

Hi. I'd prefer to answer here.

Please explain in detail what you've tried, what happened, and what you've expected.

@Flouzl
Copy link
Author

Flouzl commented Jan 21, 2025

I installed the library on my raspberry pi but it is not recognized when I include in file in c #include btstack.h and I wanted to do this again and I can't find where is the code to receive the cover and display on an LCD screen https://bluekitchen-gmbh.com/avrcp-cover-art-in-ios-android/

@mringwal
Copy link
Member

Hi there. Thanks for the link to our blog.

In the Cover Art blog post, we were using a Raspberry Pi Pico W, which is a microcontroller with two ARM Cortex M0+ Cores. It's much smaller than your Raspberry Pi 3b. We don't have an example that demonstrates AVRCP Cover Art on a Raspberry Pi with regular display.

To run BTstack, please follow the readme in btstack/port/raspi. You can either cross compile on a desktop in a Docker container or with a cross-compile toolchain. Or, you can compile the BTstack examples on the Raspberry Pi itself. You can try the a2dp_sink_demo which allows to setup an AVRCP Cover Art connection with 'd', then press 'j' to get info on the current song, and finally, press '@' to download the current image as cover.jpg into the current folder.

@Flouzl
Copy link
Author

Flouzl commented Jan 27, 2025

I have the same error, even if I recompiled all btstack with docker

Packet Log: /tmp/hc1_dump.pklg
H5, 921600, BT_REG_EN at GPIO 128, Reset Controller Phase 1: Download firmware Download firmware failed

@mringwal
Copy link
Member

Well. Before it looked like a compile error " I include in file in c #include btstack.h..".
Now, you managed to compile it somehow but you get the error that firmware download failed.
Can you send another packet log?

@Flouzl
Copy link
Author

Flouzl commented Feb 9, 2025

In the first picture are the folder were he compiled for raspi and this is the log image

flouzi@raspberrypi: - S sudo systemctl stop bthelper
Failed to stop bthelper.service: Unit bthelper.service not loaded. flouzi@raspberrypi: $ sudo systemctl stop bluetooth flouzi@raspberrypi: $ cd btstack/port/raspi
- btstaclflouzi@raspberrypi:~/btstack/port/raspi.$ ./azdp_sink_demo
Packet Log: / tmp/hc1_dump. pklg
к_кеу-н5, 921600, BT_REG_EN at GPIO 128, Reset Controller
OPhase 1: Download firmware
Download firmware failed ```

@mringwal
Copy link
Member

mringwal commented Feb 9, 2025

Please post hci_dump.pklg again (you need to .zip it to for upload)

@Flouzl
Copy link
Author

Flouzl commented Feb 10, 2025

hci_dump.zip

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