03-05-2021 09:51 AM
Hi friends, i am writing a program to communicate to another computer via serial port, i am sending my bytes for every 1 sec, strange thing is happening which i dont understand that on every iteration of my while loop my byte index is shifting, please can anybody tell me whats going on with my code
Thanks
plz see attachement files
Solved! Go to Solution.
03-05-2021 10:28 AM - edited 03-05-2021 10:30 AM
Well, your immediate issue is that you are sending 6 bytes, but only reading 5.
Other issues you have:
If you want even better ideas for serial communication, you should really watch this: VIWeek 2020/Proper way to communicate over serial
03-05-2021 11:48 AM
Thank you very much