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

NRF52 virtual com port over bluetooth

I need to make something like this and need that baudrate which are configurated in smartphone BLE app that this value be and on NRF528XX uart baudrate.

For example when I transmit from smartphone "Hello world" via bluetooth on 115200 baud rate that the nrf528XX transmit "Hello world" on his uart with the same baudrate.

Any help will be very usefull. Thank you.

  • nothing i cant find about configuring number of data bits

  • Always helpful to make clear that you have actually looked, and what you found!

    You're right - it's not explicitly stated!

    Disappointed

    But that fact that it only mentions using the 9th bit for parity:

    suggests that it will always and only use 8 bits for data.

    As there is no register to configure it, we must assume that it is not configurable.

    Disappointed

    Note that there is a link at the foot of each InfoCentre page for you to provide feedback on the documentation...

  • because that i have been confused ... In near future are maybe possibility to add this feature and maybe to add odd parity as well in next gen SoC of nrf528xx

  • You said you wanted even parity?

    Even Parity is supported:

    The nRF52840 & mRF52811 (newest BLE chip) UARTs seems to be the same - so this does not seem to be high on Nordic's priority list.

  • can you please help i use ble _ nus and after few message i need to change uart baudrate. I cloes uart then init uart with new baudrate parameter but everytime MCU goes to in error handler function. Where will be best to put  new uart initialization. I know that after i send via bluetooth to nrf52840 0x06 0x39 0x36 0x30 0x30 and nrf52840 forward this message on tx  in next 200 ms device connected to nrf52840s uart will respond on new baudrate which i have send that it changes.

1 2 3 4 5