*include
using System.IO.Ports;
* 객체 생성
SerialPort comPort = new SerialPort("COM3", 19200, Parity.None, 8);
*port open
comPort.Open();
*write
port.Write(bytep[], offset, length);
* read
DataReceived 이벤트 사용
using System.IO.Ports;
* 객체 생성
SerialPort comPort = new SerialPort("COM3", 19200, Parity.None, 8);
*port open
comPort.Open();
*write
port.Write(bytep[], offset, length);
* read
DataReceived 이벤트 사용
'프로그램' 카테고리의 다른 글
AutoResetEvent (0) | 2011.08.23 |
---|---|
C# 크로스 스레딩 문제 - 다른 스레드가 이개체를 소유하고 있어 호출한 스레드가 해당 개체에 액세스 할 수 없는 문제 (0) | 2011.04.08 |
13주차 (0) | 2009.06.01 |
12주차 (0) | 2009.05.26 |
Using Multi-Threading in Contiki (0) | 2009.05.22 |