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

Connection between nRF52840 Dongle and MATLAB

Hi everyone, I am newcommer in here. I just buy one nRF52840 Dongle. I want to connect it with nRF52832 DK with ble_app_uart implemented; and open a COM port in MATLAB to receive data and send commands from MATLAB to the DK. I have read about pc-ble-driver-py but I do not understand how to use it . In addition, about nRF Connect, I have try but I cannot receive any data when I config the generic attributes. Hence, my question is:

Is there any possble way to open COM port in MATLAB and transfer data between DK and dongle (with Nordic UART Service (NUS))?

Thanks in advance.

Milo

Parents
  • I agree with ,

    to get the nRF52840 dongle to communicate with Matlab, you must find out what API Matlab uses. 

    You can check out the example usbd_ble_uart, which is located in:

    SDK15.2.0\examples\peripheral\usbd_ble_uart. It doesn't have a project file for the dongle yet, but you can test it with an nRF52840DK if you have one. The reason it is hard to test on the dongle is because it doesn't have a programming chip, like the DK, so it is not possible to debug on the dongle.

    Here is the documentation on how to test the usbd_ble_uart example.

    Best regards,

    Edvin

  • In fact, I just tested the example on the dongle, and it works. You should just be aware that the LEDs are on different pins on the Dongle and the DK, so it will not show the correct LED states, unless you change the preprocessor define BOARD_PCA10056 to BOARD_PCA10059.

    BR,

    Edvin

Reply
  • In fact, I just tested the example on the dongle, and it works. You should just be aware that the LEDs are on different pins on the Dongle and the DK, so it will not show the correct LED states, unless you change the preprocessor define BOARD_PCA10056 to BOARD_PCA10059.

    BR,

    Edvin

Children