Subject:
|
Serial Com.
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 16 Jul 1996 16:14:50 GMT
|
Original-From:
|
Benny Brojde <brojd_b@cslab.uwlax.%StopSpammers%edu>
|
Viewed:
|
1612 times
|
| |
| |
The FAQ has information on sending and receiving info thru the serial port. My
Question is: How do I do the other end in C.
This is what I got the computer side of the serial cable:
port = open("/dev/ttyS3",O_RDWD); <- THis is from my head, not exact code.
read(port, buf,10); <- Same.
or
write(port,buf,10);
port = the serial device
buf is a char*
10 is a random number I made up.
Now how can I make the communications work?, is this code even headed in the
right direction????, any comments would be greatly appreciated.
Thanks
Benny
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|