RS232 인터페이스 열기를 하고 있습니다.
열고자 하는 상태는 하이퍼터미널로 com1을 열때..
이렇게 열고 싶습니다..
아래 처럼 짜면되는지 알고 싶습니다..
http://myhome.naver.com/leolo/snap.gif
baud rate 9600
8bit data
no parity bit
1 stop bit
no flow control 입니다.
[code:1]
int open_port(char *device, int baud, int flow)
{
int fd;
struct termios oldtio, newtio;
static long BAUDRATE;
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY);
if(fd == -1){
fprintf(stderr, "err %s: Unable to open %s \n", __FUNCTION__, device);