I am trying to read data send by another device through UART,
Looking through the spreadsheet I found online, I connected RX to pin 10 and TX to pin 8 on the 40 pin header extension.
Then I opened port on /dev/ttyTHS0 and I could read the data sent by the device. But the problem I am facing now is that I cannot read data without granting su permission to my application. How can I avoid this ? I have had similar issue when using USB device to read the data, to fix it i just added my user to dialout group but that doesnt seem to work with THS0.
Please advice! Thanks
~$ ls -al /dev/ttyT* crw--w---- 1 root tty 4, 143 Mar 30 10:24 /dev/ttyTCU0 crw--w---- 1 root tty 238, 0 Mar 30 10:24 /dev/ttyTHS0 crw-rw---- 1 root dialout 238, 1 Mar 30 10:24 /dev/ttyTHS1 crw-rw---- 1 root dialout 238, 4 Mar 30 10:24 /dev/ttyTHS4