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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Make windows .exe using Linux version? Circlotron 7 502 01-15-2026, 09:42 PM
Last Post: ahenry3068
  Linux Lubuntu INKEY$ issue TempodiBasic 7 641 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  Linux - file dialogue boxes... atl068 7 921 08-05-2025, 07:21 PM
Last Post: hsiangch_ong
  System Linux Chris 9 1,214 07-12-2025, 08:51 PM
Last Post: Chris
  Linux: terminal output Parkland 4 840 06-08-2025, 04:00 PM
Last Post: DSMan195276

Forum Jump:


Users browsing this thread: 1 Guest(s)