RTS0 Problem in WEC2013 XIPVYB_C8GE_V2.2_150513

  • 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

  • Hello,


    please try to enable RS485 by register:
    [HKLM\Drivers\BuiltIn\<Board Type>\UART<n>\RS485=DWORD:1] (UART<n> where "index"=1 belongs to COM1:!) .


    Please refer also latest Device Driver Document.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Now I have the problem with RTS polarity inversione:


    Invert dword: This optional value specifies the polarity of Tx, Rx and RTS lines.

    0x0 -> no polarity inversion at all (default)


    0x1 -> Tx polarity inversion


    0x2 -> Rx polarity inversion


    0x4 -> RTS polarity inversion

    I set the value Invert = 0x4, but the polarity does not change, Always 0 and go 1 when start the data transmit