hi group,
i'm reading 100 bytes at a time from com1. this is a continuous loop.
every time entering the loop it will connect to port (makefile, setupcomm) n terminate conection while leaving the loop.
sometimes i can read the data n sometime it gives error setup com failed. getlast error returns error code 995.
setupcomm fails regularly. once in 2-3 reads.data is coming at 115200bps.
whts the reason. if setupcomm doesn't fails getcommstate fails.
please help.
thank you.
i'm reading 100 bytes at a time from com1. this is a continuous loop.
every time entering the loop it will connect to port (makefile, setupcomm) n terminate conection while leaving the loop.
sometimes i can read the data n sometime it gives error setup com failed. getlast error returns error code 995.
setupcomm fails regularly. once in 2-3 reads.data is coming at 115200bps.
whts the reason. if setupcomm doesn't fails getcommstate fails.
please help.
thank you.
Comment