Bluetooth API access from the net core in the hci_rpmsg project for NRF5340

Hi,

I am trying to use radio notifications (mpsl_radio_notification.h) to call notify with data just before central connects. I do this with no problem with NRF52840.

With the NRF5340 it seems the radio notification api is only available from the net core.

So I have modified the hci_rpmsg project to hook into the radio call back and this is working fine using ncs sdk 1.6.1.

However, I now want to call bt_gatt_notify_cb, in order to actually execute the notify, which requires #include <bluetooth/gatt.h> in the main.c of hci_rpmsg project.

When I do this I get a compile error in /1.6.1/zephyr/include/bluetooth/gatt.h:628:27: error: 'CONFIG_BT_MAX_PAIRED' undeclared here (not in a function)  ;

I tried adding CONFIG_BT_MAX_PAIRED=1 in the prj.conf it made no difference.


Do you know why this compile error is happening and how to fix it?

A more general question: is it possible to access the high-level Bluetooth APIs in the net core when it is configured for running in the HCI_RPMSG as in the hci_rpmsg project. I was expecting that the APIs would be the same but just directly call the local net core app instead of rpmsg. 

Thanks

Parents Reply Children
Related