Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qb64 "OPEN" linux /dev/ devices
#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


Messages In This Thread
qb64 "OPEN" linux /dev/ devices - by Parkland - 06-29-2024, 01:38 PM
RE: qb64 "OPEN" linux /dev/ devices - by DSMan195276 - 06-30-2024, 02:52 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)