Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File / port cconventions and use
#1
Hello folks,
I've been struggling for a few days on this. I'm trying to use 2 LoRa modules on 2 orange pi boards with qb64pe programs on them.
So far, i enabled UART 5, and wired the devices to the correct pins, and 'cutecom' (terminal program) can chat back and forth.
Now in QB64pe, i open the port like this:

Shell "stty -F /dev/ttyS5 9600 raw -echo -icanon -iexten -opost -ixon -ixoff -crtscts cs8 -parenb -cstopb min 1 time 0"
Open "/dev/ttyS5" For Binary As #1

Here's my issue, is have 'a' dimensioned as _unsigned _byte, and whenever i use 'get #1,, a', it will hang until it can receive data from the buffer. (but it does recieve the bytes one by one).
also, EOF(1) always equals zero, so i'm unable to use it to see if data should be read.

if i use GET #1 ,, d$ (d$ being just a random undefined string), it won't read anything.
if i use GET #1 ,, d ( d being just a random undefined variable ) , i get something crazy like 4.09884E+22

so the only way I can seem to read correctly is using a _byte variable, but i haven't figured out how to tell if theres data to read, and it hangs if there isn't.

If anyone has ideas thanks in advance!
Reply


Messages In This Thread
File / port cconventions and use - by Parkland - 03-30-2025, 12:31 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 01:52 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 02:49 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when inputting ASCII text from COM port MichelleL 11 1,901 01-24-2024, 08:01 AM
Last Post: mdijkens
  BIOS com port eoredson 9 1,951 09-08-2023, 04:37 PM
Last Post: DSMan195276
  Comm and VCSP port twiddling controls sigs doppler 2 847 06-08-2023, 07:19 PM
Last Post: doppler
  _OPENHOST to port 443 fails jleger2023 9 1,882 01-19-2023, 08:20 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)