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

Parents
  • Hi 

    If the BD Address is 00:00:00:00:00:00 then hci cannot detect the bluetooth, this is the public mac addr  which is 00:00:00:00:00:00.

    Are you able to build the zephyr hex file..??

    If you are able to build that add the following in zephyr/samples/bluetooth/hci_usb/src/main.c file and build the hex.

        u8_t val[10];
       val[0] = 0xFF;
       val[1] = 0xFF;
       val[2] = 0xFF;
       val[3] = 0xFF;
       val[4] = 0xFF;
       val[5] = 0xFF;

    ll_addr_set(0, val); 

    Now you wont see the above error which you mentioned. 

  • Hi

    From one of your thread

    We tried pc-ble-driver on ubuntu18.04 and were successfully tested heart_rate_monitor with smart phone.

    Now we want to cross compile pc-ble-driver examples to AM4378 processor based linux system, can you guide us with what changes need to be done while compiling.

    Thanks alot for your response

Reply Children
Related