Serial Communication On Linux......
Hi, Everyone.
It's my Second time to writing to foreigner.
I can't speake English very well.
I'm studing RFID communication use v720-H01 RFID Module made by 'OMRON'
I'm trying to make program C++(QT, in Linux).
for that, I have to use Serial communication.
I have already seen Serial Communication HOWTO.
there was some information what I need.
BAURATE, COM1="/dev/ttyS1", CRTSCTS,,,,
and, I check <asm/termbits.h> header file, so I could see many parameters.
But I have question yet.
Way that "BCC Setting [Enable/Unable]"???
I tried to find explanation of Parameters in <termbits.h> header file, But It's not easy.
ex) CS8 = Databit_8, ParityBit_No, StopBit_1
please teach me How can I setting "BCC" on the coding.
or How can I find explanation of Parameters in <termbits.h> header file.
I append my serial communication setting, and coding.
============================================================
BARURATE=38400, comport=com1, 8bit, no parity, 1 stopbit.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#define BAUDRATE B38400
#define MODEMDEVICE "/dev/ttyS1"
.....
newtio.c_cflag = BAUDRATE | CRTSCTS | CS8 | CLOCAL | CREAD;
.....
============================================================
|