Edwin Schwellinger wrote:
set symbolic links in Linux
/dev/ttyUSB0 -> /dev/USBCDS0
/dev/ttyAMA0 -> /dev/USBCDS1
and then in /etc/CODESYSControl.cfg only this line will be needed:
I did what you said.
Everything works perfect now.
But i have one question about serial com structure.
For example, i have GPS receiver. When i power up the receiver, gps datas comes regularly every one second.
I wonder, it is possible to understand there is data which coming or not.
I mean, according to your example we alwasys try to reading comport every 250ms randomly. If there is data we can get the data if there isnot data we still read comport every 250ms.
Is there any indicator which tell us data is coming or data has come.
I hope i explained well.