You need to use the class
System.IO.Ports.SerialPort
. You need to read device manufacturers documentation of communication parameters, such as baud rate, parity, number data bits and stop bits. These parameters can be set in constructor of instance properties. You may also need to set up advanced communication parameters such as handshake, RTS enabled, DTR enabled, etc., accessible through instance properties.
The data can be sent using
BaseStream
; you can also check
BytesToRead
/
BytesToWrite
— number of bytes in receive/send buffer. The data itself (like "000") is described by some application-level protocol which you should be able to find in device documentation.
For further information, please see
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[
^] (with some code sample on the same page).
—SA