Data mixing with CDC ACM & CLI

Hello,

I have a problem when I send data with CDC ACM and using CLI interface my data is mixing. If I put a delay between sending data I have no problem but this solution is not very clean. 

Have you got an idea of why I can fix this problem?

Thank You,

Téo 

Parents
  • Hi Téo

    Can you share some additional information regarding your application/project? What SDK and SDK version are you using? How exactly is your data mixing, do the bytes/logging info weave together in-between each other or do you get any errors of some kind?

    It should be possible to have several USB classes on the same USB peripheral, as long as you initialize them before enabling USB. Have you done any debugging to see if the application throws any errors that might give us an idea of what's going wrong here. It might be some issues with the two creating a race condition of some kind if they have the same interrupt priority for example.

    Best regards,

    Simon

  • I use SDK 17.1.0, the goal is to communicate with my tracker with USB port. I have no error just my data are mixed when I receive it. I use nrf_cli_print_stream(&m_cli_cdc_acm, (char *) buf, size) to write my data and my cli is define with this 

    NRF_CLI_DEF(m_cli_cdc_acm,
                "",
                &m_cli_cdc_acm_transport.transport,
                '\r',
                CLI_EXAMPLE_LOG_QUEUE_SIZE);

    When I'm debugging I have 0 error it's work correctly but when I send lot off data it's mixed. The small transfer of data work nice but when I send multiple packet data is mixed. 

Reply
  • I use SDK 17.1.0, the goal is to communicate with my tracker with USB port. I have no error just my data are mixed when I receive it. I use nrf_cli_print_stream(&m_cli_cdc_acm, (char *) buf, size) to write my data and my cli is define with this 

    NRF_CLI_DEF(m_cli_cdc_acm,
                "",
                &m_cli_cdc_acm_transport.transport,
                '\r',
                CLI_EXAMPLE_LOG_QUEUE_SIZE);

    When I'm debugging I have 0 error it's work correctly but when I send lot off data it's mixed. The small transfer of data work nice but when I send multiple packet data is mixed. 

Children
No Data
Related