Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qb64 "OPEN" linux /dev/ devices
#1
Hi guys

I hate bugging but I'm not smart enough to figure this out on my own.

On desktop/ linux mint, I used qb64 to make a program to talk to rs485 devices.
The issue was that QB64 wouldn't properly open the /dev/usbserial1 (or whatever it was) so I'd open it using cutecom and then the qb64 program could send/receive over the device.

Now I have QB64 running on an orange pi zero3 and really want to figure out how I could make qb64 open devices so I can use them.

I do not know what I'm doing lol help
Reply
#2
I am by no means an expert on Linux, but I ran into a similar issue before. It had to do with permissions. I found this little article on askubuntu. https://askubuntu.com/questions/58119/ch...erial-port

Hope this helps!
Reply
#3
I don't think you'll get very far using `OPEN` with a serial device like that, it's really just not designed for it. There is `OPEN COM` which is intended for this, but it's Windows only.

The "easiest" way with the fewest questions around how it works would be to open the file directly with the underlying APIs (via `Declare Library`) -> `open()`, `read()`, `write()`, `close()`, etc. The `termios.h` header has the functions and structures for configuration the serial device. Unfortunately if you're not that familiar with these C APIs though it will be tricky to use them from QB64.
Reply




Users browsing this thread: 1 Guest(s)