Hello Community,
I created my simple script file to read and write data over UART from my PC to controller.
I do use standard APIs given by windows to do the job. Below is current state:
1. Write (WriteFile(......) windows api) works like champ. I see data on COM port and inside controller it is received perfectly.
2. Read is not working (ReadFile(....) api). It returns status TRUE but ZERO bytes are read . But, I can see data on UART line that it has been send from controller but READ is failed because no bytes read.
Is there any specific windows environment settings needed to make read work?
I thought, if write works then read should also because system APIs are very similar.
Any help would be highly appreciated!
Regards,
-Varun