c++ - ReadFile Rs232 Too Slow -


i have problem executing program on windows 8; use readfile retrieve data rs232 serial port.

my code working since many year on os windows xp win 7 without problems, readfile opertion took between 94 , 100ms while fast or immediatly on precedent os :

i have try modifying timeouts force 1ms same results :

getcommtimeouts(handle, &cto); cto.readintervaltimeout=maxdword; cto.readtotaltimeoutmultiplier=0; cto.readtotaltimeoutconstant=0; cto.writetotaltimeoutmultiplier=0; cto.writetotaltimeoutconstant=0; if(setcommtimeouts(handle, &cto) == 0)  // , read function : rol.offset = 0; rol.offsethigh = 0; if (readfile(handle, &byte, 1, &i, &rol) == true) 

i don't find solution after reading lot of post , msdn!

i find , correct problem, hans passant wich indicate me right way !

so it's driver issue, big problem latest prolific driver made specially windows 8 , 7 , available on windows update , catalog.update.microsoft.com buggy :

so downgrade 2010/12/03 version , it's working perfectly.

i made procedure , can find working driver in zip :

http://www.soft-control.com/media/exe_soft/sav/prolificdowngrade.3.11.zip

i hope else concerning problem !


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -