Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial and USB ports
#5
Thanks for your input, Parkland.

What you is describe is similar (partly) to the method in Gambas3 - except I am opening it for read or write. Somewhere in my searches I came across something about opening the port using a com program first - think it was 'CuteCom' under Windows. If this is the case, its bit cumbersome - I rather hope I can find something that can be set up in QB64PE..
Anything I can find I will post here, so it can maybe used by someone else.

I guess you are working under Windows - ttyUSB?, and as yet I don't know if there is any difference in Linux - partly my reason for asking if anyone knew of any documentation. I'll try and give your suggestion a try under Linux, and see what happens. I assume that if you don't open the port with a separate com program, then it remains closed to QB64PE?

I'm beginning to think that I might have to write my own Serial Port Library. Since most computers nowadays offer USB ports, it may not be a big problem. There will be no need to handle the Serial handshake lines for USB use, The only setting will be Baud Rate, number of bits, and number of stopbits, so it might be worth a go.

Regards - Keith
Reply


Messages In This Thread
Serial and USB ports - by Keith - 03-28-2025, 05:20 PM
RE: Serial and USB ports - by Pete - 03-28-2025, 06:54 PM
RE: Serial and USB ports - by Keith - 03-29-2025, 04:52 PM
RE: Serial and USB ports - by Parkland - 03-30-2025, 01:56 AM
RE: Serial and USB ports - by Keith - 03-30-2025, 08:42 AM
RE: Serial and USB ports - by eoredson - 04-03-2025, 10:14 PM
RE: Serial and USB ports - by Keith - 04-04-2025, 08:34 AM
RE: Serial and USB ports - by eoredson - 04-04-2025, 09:57 PM
RE: Serial and USB ports - by hsiangch_ong - 04-05-2025, 07:03 AM
RE: Serial and USB ports - by Keith - 04-05-2025, 09:56 AM
RE: Serial and USB ports - by hsiangch_ong - 04-07-2025, 09:09 AM
RE: Serial and USB ports - by Parkland - 04-25-2025, 07:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connection address weird ports? Parkland 1 440 04-25-2025, 09:45 PM
Last Post: DSMan195276
  USB Camera? james2464 33 6,595 02-27-2025, 12:02 AM
Last Post: SpriggsySpriggs
  Struggling with serial comms Wolstan Dixie 8 2,539 05-20-2022, 09:58 PM
Last Post: moci

Forum Jump:


Users browsing this thread: 1 Guest(s)