Baudrate serial with Dongle BLE nrf52840

Hi,


I use a dongle BLE nrf52840 with a software Bluetooth shell from NCS 2.0.
I use this dongle with this sample as a central device, i connect it to peripheral and receive 6 notifications at 10Hz and one more at 50Hz.
I use a socket to be connected to my dongle BLE with my PC.
To be able to save all my data i used to play with the serial baudrate.


1 ) Is it ok to configure baudrate with Uart_line_ctrl_set ?


2) Is it possible to configure Buadrate to 1M or even more (4M) for transmission ?

If it's possible, how to configure it ?

If it's not , is there another way to have all my datas ?

Regards,

Pierre-Yves

  • Hi,

     

    Thank you for sharing this.

    You are using usb cdc as the backend for your shell implementation, so the transport layer is effectively USB. 

    Piwy said:
    I subsribe to curstome services witch send accelerometer data, pressure...ect. these data are send at 10HZ for 6 of them and one is send at 50Hz.

    How many characters are you printing for each of these devices? If you're converting the data to human readable form, the overall throughput over the USB CDC interface will be quite alot more than the bytes you're receiving over BLE.

    You have to find where the bottleneck occurs. Receiving data from 7 sensors in total can be problematic wrt. overall BLE throughput.

    Q1: How much data (ie. amount of bytes per received payload?) is being sent over BLE for each device? 

    Q2: Printing the data, ie. converting it from binary to ASCII characters also gives overhead to the USB CDC interface. How much are you printing here?

     

    Kind regards,

    Håkon

     

Related