Using Minicom to access my OpenWRT One?

If I try to run the Nano editor

~> nano /etc/config/dhcp

over a Serial (USB-C on front panel) via the Minicom program,

~> minicom -D /dev/ttyACM0 -b 115200

... the screen is garbled?

However, if I run Nano over an SSH connection or over a PuTTY serial connection, the displayed screen is as it should be.

What do I need to do to Minicom to allow me to use Nano to edit files on my OpenWRT One?

Regards, Martin

Garbage usually means wrong speed...

You could try fw_printenv via ssh, to check if the console speed is set by boot loader param.

Sorry, I should have been more explicit!
This in Nano via ssh:

... this is the same Nano command over a serial minicom connection:

My suspicion is that the Nano escape sequences are being filtered or screened by Minicom?

Regards, ?

Serial most likely assumes a fixed terminal size (24x80 chars ?), while ssh doesn't.

You could try to set the 'Terminal Emulation" in minicom from VT102 to ANSI.
I'm sorry i can't test this myself, for this i'd have to dismantle my router to connect to the serial port.
My family would be very angry...

1 Like