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

nRF52840 Dongle cannot scan LE Coded PHY devices #28145

Closed
kasapreyizz opened this issue Sep 8, 2020 · 3 comments
Closed

nRF52840 Dongle cannot scan LE Coded PHY devices #28145

kasapreyizz opened this issue Sep 8, 2020 · 3 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@kasapreyizz
Copy link

I am working with Zephyr version 2.4 on nRF52840-Dongle for adding ability to scan CODED PHY devices. My host is Raspberry Pi3 with kernel version 5.4.51 v7+,
HCI_USB sample is used with following configuration:

CONFIG_STDOUT_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_BT=y
CONFIG_BT_H4=y
CONFIG_BT_CTLR=y
CONFIG_BT_HCI=y

CONFIG_USB=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_BLUETOOTH=y
CONFIG_USB_DEVICE_BLUETOOTH_VS_H4=y

CONFIG_MAIN_STACK_SIZE=1024
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1024

CONFIG_BT_CTLR_RX_BUFFERS=18
CONFIG_BT_CTLR_TX_BUFFERS=19
CONFIG_BT_CTLR_TX_BUFFER_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_HCI_CMD_COUNT=20
CONFIG_BT_RX_BUF_COUNT=20
CONFIG_BT_RX_BUF_LEN=258
CONFIG_BT_DISCARDABLE_BUF_SIZE=257
CONFIG_BT_MAX_CONN=24

CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_PHY_UPDATE=y
CONFIG_BT_AUTO_PHY_UPDATE=y
CONFIG_BT_LLL_VENDOR_NORDIC=y
CONFIG_BT_LL_SW_SPLIT=y

I trying to scan and connect a Coded PHY device, which is nRF52-PCA10056 board running the Long Range Demo (Nordic's Solution). I can not reach the board when board is advertising via CODED PHY but I can reach it when it advertising via 1M PHY.

Since automatic PHY update is activated, I tried to change it via hcitool, following command: hcitool cmd 08 31 03 04 04 and I got the following answer at btmon:

< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3 #28 [hci0] 540.203681
All PHYs preference: 0x03
No TX PHY preference
No RX PHY preference
TX PHYs preference: 0x04
LE Coded
RX PHYs preference: 0x04
LE Coded

HCI Event: Command Complete (0x0e) plen 4 #29 [hci0] 540.205957
LE Set Default PHY (0x08|0x0031) ncmd 1
Status: Success (0x00)

But still, no Coded PHY device cannot scannable via my Zephyr USB HCI Bluetooth controller.
Any help will appreciated. Thanks in advance.

@kasapreyizz kasapreyizz added the bug The issue is a bug, or the PR is fixing a bug label Sep 8, 2020
@carlescufi
Copy link
Member

@kasapreyizz this is not implemented yet. @andrzej-kaczmarek is currently working on it. Please join the #bluetooth channel on our Slack for more details.

@eriklins
Copy link

Hello,
came across the same issue today and hence wondering if this has been fixed?
Thanks,
ER!K

@carlescufi
Copy link
Member

Hello, came across the same issue today and hence wondering if this has been fixed? Thanks, ER!K

@eriklins this should now work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

4 participants