Nsh terminal - serial port select

Hey all,

Is there a way of changing the serial port that connects to the nsh terminal (pixhawk)?
It is currently for serial 5, but I would prefer to use serial 4/5 for my own serial applications and set telem2 for nsh terminal.
I cannot find a way through QGC (unless i am simply just missing the parameter).

Thanks,

You’d have to update the pixhawk (px4fmu-v2) board config (https://github.com/PX4/Firmware/blob/master/nuttx-configs/px4fmu-v2/nsh/defconfig#L547), and PX4 init script (https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/rcS#L542). It’s probably not worth the effort.

You can also open a shell over an existing mavlink instance (telem1 or usb) with the script https://github.com/PX4/Firmware/blob/master/Tools/mavlink_shell.py

What is the serial device port name for the USB on the side of the Pixhawk?