u-blox / c209-aoa-tag

Bluetooth Direction Finding Tag sample application. Works with u-connectLocate.
https://www.u-blox.com/en/technologies/bluetooth-indoor-positioning
Apache License 2.0
31 stars 11 forks source link

C209 Tag use with Conectionless Locator example #21

Closed vChavezB closed 1 year ago

vChavezB commented 1 year ago

I would like to know if its possible to use the C209 tag with the zephyr conectionless locator example?

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/direction_finding_connectionless_rx

I tried using the example but the advertisment report for the tag reports that the periodic advertising equals 0 ms

[DEVICE]: F6:D4:16:D0:61:83 (random), AD evt type 4, Tx Pwr: 127, RSSI -64 u-blox C209 DF Tag C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255

and thus does not connect as seen by this conditional branch

https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/bluetooth/direction_finding_connectionless_rx/src/main.c

jakkra commented 1 year ago

Hi @vChavezB you need to add this to the conf. of connectionless_rx sample due to the default value of those are less than the payload we put in the ext. adv. data causing Zephyr to drop the packets.

CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=255
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=255
vChavezB commented 1 year ago

Thanks I just made the change and now it works