This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

android\linux supports nordic bluetooth 5.0

hi,

Requirement 1:Nordic Bluetooth 5.0 is supported on Android 6.0 and above:
What interface (hci or else) should be provided by nordic Bluetooth 5.0? How to debug nordic5.0 (scan, connect, send and receive data and files) on android? And how to verify\use nordic Bluetooth 5.0, give full play to the advantages of 5.0?

Requirement 2: How to support Nordic Bluetooth 5.0 on Linux:
What interface (hci or else) should be provided by nordic Bluetooth 5.0?
How to debug nordic5.0 (scan, connect, send and receive data and files) on Linux?
And how to verify\use nordic Bluetooth 5.0, give full play to the advantages of 5.0?


We learned earlier that Linux supports the standard hci interface, and the bluez protocol stack in the Linux system also supports the hci interface. by understand, nordic provided nrf connect sdk, which has hci_uart\hci_usb\hci_spi interface. To hci_uart for example: under the guidance of ncs\v1.3.0-rc1\
zephyr\samples\bluetooth\hci_uart\README.rst: we can use linuxc ommand line tools hcitool/hciconfig and other command line tools scan the surrounding Bluetooth
devices. But how to establish a connection and send and receive data, currently don't know how to do it? And the mac address of Bluetooth in the hci_uart routine
is always 00:00:00:00:00:00? Nrf connect does the hci interface project in the SDK support Bluetooth 5.0? How to verify? And can the Bluetooth function provided by
the hci interface project support our needs? Seeking (scanning, connecting, sending and receiving data)?

In android, we try to support hci project in nrf connect sdk on android6.0, android platform is different from linux, There is no tool to debug Bluetooth. We stop there. Also understand that before android6.0, the bluez protocol stack was used on android, After android6.0, bluedroid is used. How to support nordic 5.0 for this android6.0? Does bluedroid\bluez support nordic Bluetooth 5.0?  

  • Hi,

    I changed your post from preformatted/monospace text to normal text, as before it had horizontal scroll bars on all the paragraphs. If you paste text from a different editor, please use ctrl+shift+v to paste only the text and not the formatting. (Ctrl+v or right click menu "paste" option pastes text with formatting.)

    For the new functionality from Bluetooth 5, you need a phone with support for those features, and you need an Android version where the feature is available. If you have a smartphone with Android 6 then it is not likely to support any Bluetooth 5 specific features. Also, Android 6 was released in 2015 while Bluetooth 5 was announced in 2016.

    We do have some tools for Android for working with BLE. Most notably nRF Connect for Mobile. We also have libraries for app development on our github account: Android-BLE-Library. For showcasing Bluetooth 5 features we have an image transfer demo, and a long range demo.

    We do have some information about our devices running HCI with Bluez, in the blogpost nRF5x support within the Zephyr Project RTOS. For further questions regarding Bluez, please refer to the Bluez project and their support channels.

    Regards,
    Terje

  • Hi,

      I get it about setting the normal post. Next,  I still have some doubts. On our own android 7.0 development board, Broadcom's Bluetooth chip is onboard, using the sdio interface, and the android system calls it. Now, we want to replace the Broadcom chip with the nordic chip. How to call the noridc chip in the Android system, is there a solution?
    Just like on Linux, noridc provides the hci interface, we can use the bluez protocol stack tool hcitool, btmgmt to debug the hci interface Bluetooth, but on Android, how should we debug the noridc chip?

  • Hi,

    If you use HCI to communicate directly from the Android system over e.g. UART, then if you want to debug the firmware running on the nRF you need to connect a debugger directly to the nRF and run the debug session from e.g. a PC. Is that what you are looking for?

    I am not quite sure I if understand your setup.

    Regards,
    Terje

  • HI , thanks your reply, debug HCI on Android_ USB is delayed. The urgent problem we are facing now is: debugging HCI on Linux_ USB, how to set MAC address and send files. hci_usb fw : \ncs\v1.3.0\zephyr\samples\bluetooth\hci_ USB.Have you ever tested it? Can you give me more effective information?

  • Hi,

    Once you have built and put HCI on the nRF device, the information for how to do BLE is general and depend on the tools on the PC side. There is some information in the Zephyr documentation for getting bluez. After that, I must refer to documentation for the tools, e.g. btattach, btmgt, btproxy and btmon, which are the same regardless of what HCI Controller is used and connected to the Linux system.

    Regards,
    Terje

Related