I'm using c, with WinApi CreteFile, WriteFile, ReadFile.
The following are the settings. I'm trying to communicate to a 6210 Nokia phone.
// Change the DCB structure settings.
PortDCB.BaudRate = 9600; // Current baud
PortDCB.fBinary = TRUE; // Binary mode; no EOF check
PortDCB.fParity = TRUE; // Enable parity checking
PortDCB.fOutxCtsFlow = FALSE; // No CTS output flow control
PortDCB.fOutxDsrFlow = FALSE; // No DSR output flow control
// DTR flow control type
PortDCB.fDtrControl = DTR_CONTROL_DISABLE ;
PortDCB.fDsrSensitivity = FALSE; // DSR sensitivity
PortDCB.fTXContinueOnXoff = FALSE; // XOFF continues Tx
PortDCB.fOutX = FALSE; // No XON/XOFF out flow control
PortDCB.fInX = FALSE; // No XON/XOFF in flow control
PortDCB.fErrorChar = TRUE; // Enable error replacement
PortDCB.fNull = TRUE; // Enable null stripping
// RTS flow control
PortDCB.fRtsControl = RTS_CONTROL_DISABLE ;
PortDCB.fAbortOnError = FALSE; // Do not abort reads/writes on error
PortDCB.ByteSize = 8; // Number of bits/byte
PortDCB.Parity = NOPARITY;
PortDCB.StopBits = ONESTOPBIT;
When I call Readfile, the function does not return an error but I receive 0 bytes read.
The scanner shows that the port responded with false (no data to be sent) to ReadFile.
As I wrote the phone responds only via Hyperterminal.
Please ASAP.