I’m trying to communicate through UART1 on my WP710x devkit, but I’m unable to find which device in /dev/ is connected with UART1 (or UART3).
There is more than 300 others tty* in /dev/, I found that UART2 is /dev/ttyHSL1 but nothing for the others.
There is a ttyGS0 that make microcom freeze each time I try to connect it, so I can’t find if it’s used for an UART.
I don’t have ttyHSL0, I only have ttyHSL1, ttyGS0 and a lot of tty1 to ttyzf.
my ttyHSL1 is the one used for serial console.
It seems that something is wrong somewhere.
To setup the role of each UART port, you have to use the AT command “AT!MAPUART”.
In your case, only UART2 (ttyHSL1) is activated in linux console mode.
If you want to have UART1 (ttyHSL0) activated in linux “raw data” mode then you have to send the AT command “AT!MAPUART=17,1” and then reboot your target.
Example:
echo -e "AT!MAPUART=17,1\r" > /dev/ttyAT
reboot
After the reboot you will have a /dev/ttyHSL0 port available to manage your own data/protocol on the UART1 port.