you can see here for transfer files via UART console:
You can see here for SSH/SCP through UART port in data mode: