Operating system : Ubuntu
Serial Ports Using : USB->Serial adapter (prolific PL2303)
I have a sample serial port read and write programs. While running the applications,I am trying to send 4100 bytes ,write program able to do it in single shot.
n = write (s_port,msg,4100);
Here I am checking 'n' value and it is 4100
I*strong text*n receiving end
n = read(s_port,msg,5000);
Above line is in a loop, I am getting not more than 32 bytes in a single read attempt.So more than 128 read attempts(32+32+32 etc...) to get full bytes(4100)
In sending side If it is able to push the whole bytes in a single shot, why not able to receive in single shot?