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

nRF52840 as Network processor for Linux to avail Bluetooth Functionality

Hi,

We have AM4378 Processor Based Linux System. We want to add Bluetooth 5.0 module and use all BLE Features 

1. Is there any Ready Solution something link  usb plug-in and Linux library or driver to use.

2. After going through Documentation and many discussions on forums, I thought to use nRF52840 with hci_usb and Bluez on Linux

   i)Took nRF52840DK, compiled and programmed with hci_usb.hex (zephyr/samples/bluetooth/hci_usb)

   ii) Connected to Linux and ran hciconfig command found hci1.  Things are happy as of now

        $ hciconfig
        hci1:    Type: Primary  Bus: USB
        BD Address: 00:00:00:00:00:00  ACL MTU: 27:7  SCO MTU: 0:0
        UP RUNNING
        RX bytes:486 acl:0 sco:0 events:41 errors:0
        TX bytes:217 acl:0 sco:0 commands:41 errors:0

    iii) Since BD Address is 00:00:00:00:00:00, tried to modify Address with command ./bdaddr reference link

        $ sudo ./bdaddr -i hci1 -r -t 00:de:ad:be:ef:00
        Manufacturer:   not assigned (1521)
        Device address: 00:00:00:00:00:00 (XEROX CORPORATION)   
        Unsupported manufacturer

    iv) Tried scanning Application from reference link. But stuck with error and not able to solve below error even after rigorous search

        $ ./scan
        Device ID 1
        hci_inquiry: Operation not supported

3) Please can you share any documents or tutorials on Bluez, I haven't found any.  Is Bluez a better solution, Since we are looking for some ready solution

4) Please can you suggest some easy way to use BLE5 features and communicating with Linux (Preferable with SPI or USB communication, since we need to transfer files on BLE)

Any Inputs are highly Appreciated.

Thanks and Regards

ERobotics

Related