I have problem to use RTS0 / COM1 in manual mode (C#)
public void ImpostaPorta485(String "COM1, int 9600)
{
if (this.sp485 != null) this.sp485.Close();
this.PortName485 = com;
this.BaudRate = baud;
this.sp485 = new SerialPort(this.PortName485, this.BaudRate, Parity.None, 8, StopBits.One);
this.sp485.Close();
this.sp485.ReceivedBytesThreshold = 1;
this.sp485.DataReceived += new SerialDataReceivedEventHandler(DatiRecevuti);
this.sp485.Open();
this.sp485.RtsEnable = true;
}
private void bTx485_Click(object sender, EventArgs e)
{
this.sp485.RtsEnable = false;
this.sp485.Write("Hello 485");
System.Threading.Thread.Sleep(8);
this.sp485.RtsEnable = true;
}
The state of RTS 0 Pin 15 does not change