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; ..... ============================================================ |
I have a simple coding example you can D/L here.
If you can't access this site post back here and I'll move it to another location. This web server is currently black-listing most non-US ip ranges. |
hello,,
I need the website provided by randyding but i can't access it.. can u plz provide another link Thank u |
Since you have Qt, I assume you also have KDE? If so, go into Konqueror and type info:libc into the address bar. That is by far the most useful reference for C on Linux I've encountered.
ta0kira |
All times are GMT -5. The time now is 03:21 AM. |