Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File / port cconventions and use
#14
Alright, learning as I go here but this is what worked so far.

Shell "  stty -F /dev/ttyS5 9600 raw -ixon -ixoff -crtscts cs8 -echo -parenb -cstopb -icanon min 0 time 0"

And I'm able to send data from qb64pe out, and recieve raw characters, without a hang on 'GET' statement waiting for data.

It's amazing how many times I've used com ports for what I considered pretty advanced projects and never asked much questions.
For example i can 'PUT' whatever string i want without error, but can only 'GET' into a numerical byte array.


But, it does work, with this, I can use the orange pi UART serial from qb64 programs. 

I will probably arrange a subroutine where it checks several times a second for more data using 'GET', and if there is any just load the rest without delay. that way it's functional and not super CPU intensive.
I suppose theres probably a way to adjust buffer sizes so it needs less checking too, another days project.

Just adding that after the shell stty command, I open the serial device file, in my case /dev/ttyS5. then open as binary.
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
RE: File / port cconventions and use - by Parkland - 04-04-2025, 12:03 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)