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

Connect nRF52840-Dongle in a Raspberry pi 3B+

Hi :)

I would like to test the nRF52840-Dongle in a Raspberry Pi 3B+ OS = Rasbian  (the bluetooth 5 features: 2Mbps and Long range).  but unfortunately I didn't find a nRF-Connect to install in ARMv7 CPU.

Questions:

1. There is a nRF-Connect for the CPU ARMv7

2. did you have one example how I can interact with the nRF52840-Dongle in the Raspberry PI 3B+ without to install the nRF-Connect (for example with the command line, library...)

Thanks in advance

Diana

Parents Reply Children
  • Hi Jorgen,

    I had tried to install the nRF-Connect in my raspberry but it is not working :(...

    I had installed successfully (the installation ended without any error) the pc-ble-driver-py in the folder /home/pi/pc-ble-driver-py, following the commands:

    git clone [email protected]:NordicSemiconductor/pc-ble-driver-py.git
    cd pc-ble-driver-py/
    git submodule init
    git submodule update
    cd build/
    cmake -G "Unix Makefiles" ..
    make
    
    I can see in the folder home/pi/pc-ble-driver-py/build/outdir the files:

    libpc_ble_driver_shared_sd_api_v2.so
    libpc_ble_driver_shared_sd_api_v3.so
    libpc_ble_driver_static_sd_api_v2.a
    libpc_ble_driver_static_sd_api_v3.a
    pc_ble_driver_sd_api_v2.i
    pc_ble_driver_sd_api_v2.py
    pc_ble_driver_sd_api_v2PYTHON_wrap.
    _pc_ble_driver_sd_api_v2.so
    pc_ble_driver_sd_api_v3.i
    pc_ble_driver_sd_api_v3.py
    pc_ble_driver_sd_api_v3PYTHON_wrap.c
    _pc_ble_driver_sd_api_v3.so
    test_uart

    so I guess that the library pc_ble_driver was compiled successfully... (I hope)

    Question: should I move this files to other folder, to be used for the nrConnect?

    After I had cloned the project https://github.com/NordicSemiconductor/pc-nrfconnect-core.git
    cd /home/pi/pc-nrfconnect-core
    in this folder I had tried to install the pc-ble-driver-js 
    but I get always the following error:

    make: Verzeichnis „/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/build“ wird verlassen
    gyp ERR! build error
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    gyp ERR! System Linux 4.14.71-v7+
    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding" "--napi_version=3" "--node_abi_napi=napi"
    gyp ERR! cwd /home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb
    gyp ERR! node -v v11.1.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    node-pre-gyp ERR! build error
    node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)
    node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
    node-pre-gyp ERR! System Linux 4.14.71-v7+
    node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb
    node-pre-gyp ERR! node -v v11.1.0
    node-pre-gyp ERR! node-pre-gyp -v v0.10.3
    node-pre-gyp ERR! not ok
    Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)
    ../libusb/libusb/descriptor.c:1199:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/libusb/libusb/libusb/descriptor.o.d.raw: Datei oder Verzeichnis nicht gefunden
     }
     ^
    compilation terminated.
    libusb.target.mk:138: die Regel für Ziel „Release/obj.target/libusb/libusb/libusb/descriptor.o“ scheiterte
    make: *** [Release/obj.target/libusb/libusb/libusb/descriptor.o] Fehler 1
    make: Verzeichnis „/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/build“ wird verlassen
    gyp ERR! build error
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    gyp ERR! System Linux 4.14.71-v7+
    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb/src/binding" "--napi_version=3" "--node_abi_napi=napi"
    gyp ERR! cwd /home/pi/pc-nrfconnect-core/node_modules/pc-ble-driver-js/node_modules/nrf-usb
    gyp ERR! node -v v11.1.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN [email protected] license should be a valid SPDX license expression
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/7zip-bin-win):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"arm"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/7zip-bin-mac):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/pi/.npm/_logs/2018-11-07T21_20_02_930Z-debug.log

    I had also tried npm install but still I have some errors.


    Then I had tried to install in other folder the pc-ble-drive-js also without succes :(
    git clone https://github.com/NordicSemiconductor/pc-ble-driver-js.git
    cd pc-ble-driver-js

    I had follow the instructions to building pc-ble-driver (https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/Installation.md)
    but unfortunately it was not clear which steps I need to do

    Do you have a detailed description about what I need to do to build the pc-ble-driver
    in my raspeberry?

    some steps was working, other not :(


    I am really interested that the nRF-82540 dongle works in a cpu architecture ARM (like the raspberry),
    since my company works with this kind of CPU. My company produces controllers
    (temperature controller) and we want to provide them with a wireless comunication.

    Thanks a lot and sorry for all the questions...

    Diana Lucia Serna

Related