georgestheking Newbie
 Joined: 21/12/2021 Location: BelgiumPosts: 32 |
| Posted: 12:42pm 09 Jun 2025 |
|
|
|
Hi,
I already spend many hours with this problem. Here is the complete explanation.
The sender send 50 bytes every 10 mS.
I use SETTICK to read the serial port every 10 ms.
The routine I call :
PRINT LOC(#1) give +/- 100
data$=input$(100,#1) give an empty string
PRINT LOC(#1) give again +/- 100
' Then I clear the buffer
DO g$=input$(100,#1) LOOP UNTIL LOC(#1)=0
I think it is a timing problem. Things goes too far. We can not read datas during datas is coming.
What do you thinks guy ?
Best regards Georges |