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

Using CDC ACM Command Line Transport Layer in usbd_cdc_acm_pca10056 example

Hey all,

I'm trying to replace the nrf_cli_uart transport layer with the CDC ACM equivalent (nrf_cli_cdc_acm), since I have an nrf52840 dongle and can't use the uart libraries. 

Generally, I'm just trying to get my hands around this because I think it would be useful in the future. Specifically, I'm trying to have an interface to eventually make the dongle a central bluetooth device, whose ble communication ports over to a host device via CDC ACM. 

So, I noticed multiple transport layers for the command line interface. The one for uart in the example is spun up as follows:

NRF_CLI_UART_DEF(m_cli_uart_transport, 0, 64, 16);
NRF_CLI_DEF(m_cli_uart,
            "uart_cli:~$ ",
            &m_cli_uart_transport.transport,
            '\r',
            4);

So, just wondering how to do something similar in the cdc acm transport layer. Looking in the source, it just looks like it's a queued event handler. Do I need to init the cdc acm layer and just let it do its thing? Again, just confused.

Parents Reply Children
No Data
Related