hello, with Com1 there isn't any problem. with Com2 there is a problem.
SERIAL_PARAM Com1Cfg; BYTE res ; Com1Cfg.Port = G_COM1; Com1Cfg.Speed = 38400; Com1Cfg.CharSize = 8; Com1Cfg.Parity = FALSE; Com1Cfg.Cwt= 0xFF; Com1Cfg.Bwt = 0xFF ; res = SerialOpen(&Com1Cfg, &ucPortId); read( .... .... write(.... .....