Bluetooth LE connectable unidirected advertisements' long intervals unreliable #1674
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk#1674
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Values greater than approx. 100 ms are unreliable for connectable unidirected advertisements, ex. 150 ms equals more likely to 800 ms, 1280 ms - 6500 ms (with high variations). Non-connectable unidirected advertisements' intervals are reliable. BTstack it is not the root of the problem. It is the same with or without it - just HCI commands written by cyw43 driver. To reproduce, just use some BTstack example, like
hog_mouse_demo.c:adv_int_minandadv_int_maxare values of intervals in number of time slots (0,625 ms). Min value is 32 (0x20), max 16384 (0x4000).adv_typeof 3 will switch it to non-connectable unidirected. It seems to be more likely firmware or CYW43439 ROM for Bluetooth.What exactly is unreliable? Is it the connection to the device? I do see problems pairing to a hog mouse device when these values are high (10000). But I see the same problem when using the libusb port and a USB dongle. So I guess I need convincing that this is a specific issue with cyw43 that doesn't affect other controllers. Are you wanting to modify these values to save power?
What is unreliable, is interval value between advertisements, when the value is set to "high" number of milliseconds. To be honest, it won't be a real world issue, maybe there is something wrong with Bluetooth firmware, I don't know. Spec allows broad range of values and just high ones doesn't seem to do what they are told to do. I see it a problem, when Pico W would be told specifically to advertise in wide intervals for whatever reason. So very edge case. Since radio is on for a short amount of time to TX and comparing to Pico W current draw, there won't be great power savings.