LiveCode Serial Problems - will they ever be fixed?
Posted: Wed Mar 23, 2016 5:46 pm
Hi all,
I encountered this issue before when I tried to write a LiveCode app to interface to an Arduino. LiveCode constantly crashed, refused to open the driver, etc... I eventually solved the issue by downgrading to LiveCode 6.
Unfortunately, I'm now on a 64-bit GNU/Linux computer, and LiveCode 6 doesn't run on 64-bit GNU/Linux.
What I need to do is have read / write support for a simple serial device. I had hoped this would be easy. It's not.
The eventual program will be cross platform, but for now I'm just trying to get it to work in *both* LiveCode 7 and 8, on GNU/Linux. The serial device appears as '/dev/ttyACM0', and data can be transmitted received using a text editor! Open the text editor to see what was last received, save some text into the file to transmit. LiveCode does not work with this. It can write data, but it cannot read it. It just returns empty. Opening the /dev/ttyACM0 file in a text editor shows that the data has been sent (and subsequently clears the buffer that should have been cleared when LiveCode read the data).
Can anyone advise for a simple, cross-platform method of serial? Python can do this easily (I've tried it), but I do want to stay with LiveCode, even for a bit longer...
Thanks,
Andrew
I encountered this issue before when I tried to write a LiveCode app to interface to an Arduino. LiveCode constantly crashed, refused to open the driver, etc... I eventually solved the issue by downgrading to LiveCode 6.
Unfortunately, I'm now on a 64-bit GNU/Linux computer, and LiveCode 6 doesn't run on 64-bit GNU/Linux.
What I need to do is have read / write support for a simple serial device. I had hoped this would be easy. It's not.
The eventual program will be cross platform, but for now I'm just trying to get it to work in *both* LiveCode 7 and 8, on GNU/Linux. The serial device appears as '/dev/ttyACM0', and data can be transmitted received using a text editor! Open the text editor to see what was last received, save some text into the file to transmit. LiveCode does not work with this. It can write data, but it cannot read it. It just returns empty. Opening the /dev/ttyACM0 file in a text editor shows that the data has been sent (and subsequently clears the buffer that should have been cleared when LiveCode read the data).
Can anyone advise for a simple, cross-platform method of serial? Python can do this easily (I've tried it), but I do want to stay with LiveCode, even for a bit longer...
Thanks,
Andrew