writing and reading to a serial port in c#

  • Thread starter Thread starter Gayathri Subramaniam
  • Start date Start date
G

Gayathri Subramaniam

hai,
im a student. i am assigned a task to instruct a robot. for this i
want to write and read from com1. i do not know how to configure the
port using DCB structure. i have a data rate of 9600bps, odd parity, 7
data bits, hardware flow control. i do not know how to do this in c#.

thanks in advance.
 
hi,
thank u very much avnrao. i found the link useful. now i am able to
configure and write to the port. but i am unable to read from the port.
i guess i should use the overlapped operation i don't know how to do
this. can anyone help me.

thank u.
 
hi all,
i have found one dll for serial communication in c#. it is really
useful. we can connect to the com port using only one class. really it
is an easy job. i will send the rs232 dll as soon as possible.

gayathri
 
Back
Top