I’m using RS485 with VF50/CE6 and with T20/CE7, with these settings
PortDCB.BaudRate = m_BaudRate ; PortDCB.StopBits = m_StopBits; PortDCB.Parity = m_Parity; PortDCB.fBinary = TRUE; PortDCB.fParity = FALSE; PortDCB.fOutxCtsFlow = FALSE; PortDCB.fOutxDsrFlow = FALSE; PortDCB.fDtrControl = DTR_CONTROL_ENABLE; PortDCB.fDsrSensitivity = FALSE; PortDCB.fTXContinueOnXoff = TRUE; PortDCB.fOutX = FALSE; PortDCB.fInX = FALSE; PortDCB.fErrorChar = FALSE; PortDCB.fNull = FALSE; PortDCB.fRtsControl = RTS_CONTROL_TOGGLE; PortDCB.fAbortOnError = FALSE; PortDCB.ByteSize = 8; BOOL res=SetCommState (m_hserialport, &PortDCB);
- With T20 COM1 works, receiving data is correct and sending data is correct.
- With VF50 COM1 or COM2 and T20 COM2 receiving data is correct, but they send less data or bad data. It seems the direction not work properly, receiving is always correct but change of direction not works. (I’m using VF50 Image 1.3beta RTS is connected by not gate to RE/DE of transceiver)