nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

CLI 16 character limit?

I have a small program that is to be used in production to test my device. It has to be scriptable so I'm using teraterm over rtt.

No external IO for a serial port.

Everything is working great until I try to issue a long command, anything > 16 characters

So 'mfg led all on' is OK but 'mfg led all off' fails. When I press enter the first time I just see a CR, no LF, if I press enter a second time the command works.

if I change the command to 'mfg led all of' it works again!

I've looked through nrf_cli.c but I don't see anything.

SO there looks like a limit of 15 characters?

Oh, so this only happens in teraterm and putty, it works in the Segger IDE and in rtt viewer. So I'm now thinking it's a issue with the terminal programs??

Thanks for any insight

Keith

Parents
  • I do agree it's likely something in the terminal programs

    I'm not using the UART, I'm using putty and teraterm in telnet mode. port 19021

    I'm using SDK v17.0.2

    Soft device 7.2.0

    Here is my sdk_config

  • Aha, so it is all RTT. I thought you were using PuTTY and Tera Term for UART. Then this is really strange, and I do not expect to find an explanation in sdk_config.h.

    I gave this a test now, and see the same as you. Using the unmodified CLI example I see the following (erroneous) behavior:

    rtt_cli:~$ rtt_cli:~$ print all a b c d e f g h i k
    print all a b c
    a b c

    Using UART (with PuTTY) I get the expected result:

    uart_cli:~$ print all a b c d e f g h i k
    a b c d e f g h i k

    I am not able to explain this at the moment but I will look at it again in Monday.

Reply
  • Aha, so it is all RTT. I thought you were using PuTTY and Tera Term for UART. Then this is really strange, and I do not expect to find an explanation in sdk_config.h.

    I gave this a test now, and see the same as you. Using the unmodified CLI example I see the following (erroneous) behavior:

    rtt_cli:~$ rtt_cli:~$ print all a b c d e f g h i k
    print all a b c
    a b c

    Using UART (with PuTTY) I get the expected result:

    uart_cli:~$ print all a b c d e f g h i k
    a b c d e f g h i k

    I am not able to explain this at the moment but I will look at it again in Monday.

Children
Related