[ CnUnix ] in KIDS 글 쓴 이(By): leh (no touch) 날 짜 (Date): 1995년04월21일(금) 11시06분18초 KST 제 목(Title): re.[HELP]workstation에서..RS-232C통신.. 그냥.. 다른 화일 오픈 하는 것처럼.. 오픈 (open)함수를 사용하면 됩니다.. 예를 들어.. 두개의 포트..ttya,ttyb중 ttya를 사용 한다면.. tty_port = open("/dev/ttya",O_RDWR); --------- read and write... 를 하고..각 플래그를 셋팅.. struct termios tty_init; tty_init.c_cflag = B9600 | CS8; ---> 9600bit를 사용할 경우.. 데이타 비트는 8비트.. 이외에도 많아요.. 그건..메뉴얼 참조.. tty_init.c_iflag = IGNBRK | IGNPAR; ---> No parity등등.... lflag와..og flag등도 셋팅... 일단..메뉴얼을..먼저 참조..방법은.. 화일 오픈과..유사하다는 것만..기억.. 그럼.. ------------------------------------------------------ Why is it that we rejoice at a birth and grieve at a funeral? It is because we are not the person involved. -------------------------------------------------------- |