This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how can i program the COM2 of the reader

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(....
.....
when i replace G_COM1 par G_COM2
there isn't any reaction with the reader
thanks

Parents
  • there isn't any problem whith COM1 and COM2 of PC.
    the problem, that the program loaded in the smart card reader can't send or receive any data via COM2.

    Com2Cfg.Port = G_COM1; 
    				Com2Cfg.Speed = 38400;  
    				Com2Cfg.CharSize = 8;   
    				Com2Cfg.Parity = FALSE;  
    				Com2Cfg.Cwt= 0xFF; //DEFAULT_TIMOUT;              
    				Com2Cfg.Bwt = 0xFF ; //DEFAULT_TIMOUT;
    				SerialOpen(&Com2Cfg, &ucPortIdCom2); 
    
    SerialWrite(...
    ....
    

Reply
  • there isn't any problem whith COM1 and COM2 of PC.
    the problem, that the program loaded in the smart card reader can't send or receive any data via COM2.

    Com2Cfg.Port = G_COM1; 
    				Com2Cfg.Speed = 38400;  
    				Com2Cfg.CharSize = 8;   
    				Com2Cfg.Parity = FALSE;  
    				Com2Cfg.Cwt= 0xFF; //DEFAULT_TIMOUT;              
    				Com2Cfg.Bwt = 0xFF ; //DEFAULT_TIMOUT;
    				SerialOpen(&Com2Cfg, &ucPortIdCom2); 
    
    SerialWrite(...
    ....
    

Children