The com ports will work in linux with qb64.
But you need to use a shell command to open them, and open the device file not com port like normal.
Shell " stty -F /dev/ttyS0 9600 raw -ixon -ixoff -crtscts cs8 -echo -parenb -cstopb -icanon min 0 time 0"
Open "/dev/ttyS0" for binary as #1
You might have to mess around with the stty command.
I tried using this on laptop with usb serial, desktop with built in serial port, and orange pi uart ports. Just find the ports in the dev folder and adjust stty command and open command.
This is just how I found I can make it work is with the stty command and open in binary mode.
I have a timer set to check port 10x per second and if any data is there it reads it otherwise just checks 10x a second waiting so it doesn't waste crazy cpu cycles.
I can't use strings, I use a _byte variable to read.
So you use get to grab byte by byte.
Can send strings though.
It was a trick to figure out but now it's not bad.
But you need to use a shell command to open them, and open the device file not com port like normal.
Shell " stty -F /dev/ttyS0 9600 raw -ixon -ixoff -crtscts cs8 -echo -parenb -cstopb -icanon min 0 time 0"
Open "/dev/ttyS0" for binary as #1
You might have to mess around with the stty command.
I tried using this on laptop with usb serial, desktop with built in serial port, and orange pi uart ports. Just find the ports in the dev folder and adjust stty command and open command.
This is just how I found I can make it work is with the stty command and open in binary mode.
I have a timer set to check port 10x per second and if any data is there it reads it otherwise just checks 10x a second waiting so it doesn't waste crazy cpu cycles.
I can't use strings, I use a _byte variable to read.
So you use get to grab byte by byte.
Can send strings though.
It was a trick to figure out but now it's not bad.

