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

High rate serial logging

Hi,

I'm trying to log data over a serial connection using the DK52. 

The data is coming from a sensor at about 2KHz at a size of 30 bytes per sample, so 60KBps.

I've set the Baudrate to 912600 and enabled HWFC. Using NRF_LOG_RAW_INFO to print the data into a PuTTY terminal configured the same way.

The issue is that the data printed isn't up to speed with what is expected. Between 10 and 100 characters are being printed per batch of 240.

Is there any special configuration that has to be set to log at a high rate?

Thanks

Parents
  • Hi,

    Have you looked at a logic analyzer trace when transmitting 240bytes only?

    This can identify if the problem is the USB to UART bridge (you may try a FTDI chip if possible) or if the problem is the UART driver on the nRF52.

    Best regards,
    Kenneth

  • Hi,

    I've connected Pin 6 (TX) to a logic analyzer.

    When not transmitting the channel is clean without any noticeable noise.

    The first 240 characters are always printed correctly on the terminal.

    I suspect this has something to do with bad configuration on my part...

    I've integrated this as part of the ATT_MTU Throughput example , so I'm relying mostly on the configuration used in the example, with the Baudrate set now at 1M on both the sdk_config.h and on the terminal.

Reply
  • Hi,

    I've connected Pin 6 (TX) to a logic analyzer.

    When not transmitting the channel is clean without any noticeable noise.

    The first 240 characters are always printed correctly on the terminal.

    I suspect this has something to do with bad configuration on my part...

    I've integrated this as part of the ATT_MTU Throughput example , so I'm relying mostly on the configuration used in the example, with the Baudrate set now at 1M on both the sdk_config.h and on the terminal.

Children
Related