Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File / port cconventions and use
#9
(03-30-2025, 02:49 AM)Pete Wrote: What if you added something to the message being sent?

message = "Four score and seven years ago." or in qb... msg$ = "Four score and seven years ago."

31-characters.

Now if I use QB64 to count the characters len(msg$), assign that to a variable, use some divider like chr$(3), and combine it, I get... msg$ = "31 Heart Four score and seven years ago." When the receiver gets the bytes, it recognizes chr$(3) (heart symbol) and converts the bytes received in front of it as the total characters to receive in the transmission before exiting the routine.

Could this type of logic be applied in your set of circumstances?

Pete

I think I understand what you mean, but the problem is still when the program is running and to check for more serial data.
A 'GET' statement hangs until more data comes.
Even if I know where the end of the data is, the program would still freeze checking for more data again.

If I remember correctly I used this for a networking program before and 'GET' would just return nothing if there was no new data, but obviously the way I'm accessing the file (serial port) isn't behaving the same.
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 Parkland - 03-30-2025, 03:05 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,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: