03-30-2025, 03:05 AM
(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$ = "31Four 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.


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.