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

CLI overrun by remote host

We're using a host PC to write factory calibration data to an nrf52 running SDK14.0.0 and S132. We're using a serial port, 115200 8N1, without hardware handshaking. The SD is configured, but not advertising or connected to a BLE central. i.e. idle. Logging is not enabled.

The problem is the CLI frequently locks up, even when we use short commands. I.e. 10-20 bytes. The only way we can get it to be stable is to insert delays of 0.1 sec or so between characters. Sending data any faster causes the CLI to hang in the UART routines.

It seems like the CLI can only handle input as fast as a person can type. It can't handle data from another computer. This is really slowing down our calibration process. Loading data takes minutes when it should take seconds.

How can we increase the CLI's ability to handle fast data? Is there a way to raise the CLI or UART's priority?

Thanks

Related