>>        I want to connect the serial port to a terminal that is not
>>serial
>>communication format. I just want to check the pin whether it is high or
>>low. I have tried to use SerReceive(SerialRef,a,length,5,&err) to check
>>it, but it say fatalerror. it is because there is no stops ?
 
> You might try the CTS or DSR pins and the SerGetStatus() call.  You're right
> that the Rx pin will not do what you want.

but the value of CTS and DSR return from  SerGetStatus(SerialRef,CTS,DSR)
is not meaningful. 
maybe I am not familiar with serial port, so still cannot slove the
problem ! anyone can give me a hand !!

Siupo


Reply via email to