Hi Lobo
Thank you so much for the libraries. I tried using it for gpio and it works great. However, while trying to use it for serial communication, I am facing some issues.
While doing a serialOpen(), I always get '-1' as the return value, irrespective of which file I pass - /dev/ttys0, /dev/ttys1, /dev/ttyAMA0, etc.
But when I open a terminal and use this command:
echo -ne '\033[2J' > /dev/ttyS1
The data is transmitted over serial port on pins 8 and 10 with a baud rate of 9600. Is there something that has to be done and I am not doing it? Please let me know. Thanks in advance
Thank you so much for the libraries. I tried using it for gpio and it works great. However, while trying to use it for serial communication, I am facing some issues.
While doing a serialOpen(), I always get '-1' as the return value, irrespective of which file I pass - /dev/ttys0, /dev/ttys1, /dev/ttyAMA0, etc.
But when I open a terminal and use this command:
echo -ne '\033[2J' > /dev/ttyS1
The data is transmitted over serial port on pins 8 and 10 with a baud rate of 9600. Is there something that has to be done and I am not doing it? Please let me know. Thanks in advance



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)