Sending serial commands on DB9 Arria 10 SoC FPGA
I am attempting to send serial based commands using the RS-232 protocol on the DB9 connector on the Arria 10 but do not know which device to use within my C program.
I've opened "/dev/tty0" and can send appropriate commands "AT+CGMM\r" but these commands are sent out the J10 UART1 (HPS) on the board and not the DB9.
I'm unable to read "/dev/ttyS1" within my c program.
I've tried various other devices without luck.
I've also set status to "okay" on serial0@ffc02000.
In file: ./arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts and rebuild the dtb and placed on SD card.
I've looked in Non-8250 serial port support in .config but haven't modified the kernel. Previously, I did enable the FTDI in the kernel for another device and got that working correctly.
Any suggestions will be greatly appreciated. Thank you.
stty -F /dev/ttyS1
stty: /dev/ttyS1: Input/output error