Serialport in c# System.IO.Ports.SerialDataReceivedEventArgs

Hi I’m trying to get my c#.net app to work the problem is that when using SerialDataReceivedEventArgs it echos all bytes/strings that is sent to the port. If I send the AT command it always echoes the AT and OK I just want it to echo the OK.

BR Jeppe



Answer this question

Serialport in c# System.IO.Ports.SerialDataReceivedEventArgs

  • Udi Dahan The Software Simplist

    Thanks for the answer but what I ment with echo is that idon't want the SerialDataReceivedEvent to be fired when I'm sending a command it should only be fired when the modem response.
  • emp

    Put E0 in your init string.

    Look on the web for Hayes Command set.

    RMJR

  • daveCsharp

    If you put E0Q0 then the modem will not send the AT back, but it will send the OK.

    RMJR

  • paulKing

    Hello,

    I noticed your post regarding SerialPort echo and I'm having exactly the same issue. Did you ever get it resolved I assume there is a property somewhere, but I have been unable to find it.

    Thanks,

    Tori Harris


  • Serialport in c# System.IO.Ports.SerialDataReceivedEventArgs