RS-232 C++ Programming


 
Thread Tools Search this Thread
Top Forums Programming RS-232 C++ Programming
# 8  
Old 12-22-2007
User an appropriate layering in your software so that only the bottom bit is concerned about RS232, the higher levels should work on any stream at all, so if, for example you weren't directly connected to the device and it was a remote machine that did, you could have an SSH/SSL/TCP connection between the two machines and your code happily talk over that.
# 9  
Old 12-22-2007
good point

no matter what language you use, it's important to try to keep generic things generic. I like the C++ templates approach. It gets a bit complicated, but it's well worth it because it provides an incredibly versatile and portable way to deal with the io. There are some real good books that explain how to take advantage of the iostreams library. It takes a little effort to find the right balance between 'overly complicated' and usefulness.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

2. Programming

RS 232, CentOS 5.6, gcc 3.4.9

Hello! Can somebody help me with one problem. I write driver for I/o from COM port. That's the main code: #include <stdio.h> // standard input / output functions #include <string.h> // string function definitions #include <unistd.h> // UNIX standard function definitions #include <fcntl.h>... (0 Replies)
Discussion started by: alter_man
0 Replies

3. AIX

Console Setup for RS-232 port on 9131-52A

Hi, I have tried to setup the console on a Power5 9131-52A type IBM Server. On the back there are 2 RS-232 ports labeled T1 T2. I am going under the assuming that these are the serial ports (Normally the serial ports are S1 S0). When I finish assigning the console under smit, I get no response... (3 Replies)
Discussion started by: mrmurdock
3 Replies

4. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

5. HP-UX

XIO: fatal IO error 232 (Connection reset by peer) on X server "192.168.1.239:0.0"

Hi All... I'm newbie here..., i have problem when installing oracle9206, i use HPUX 11.11, i'm using Xmanager enterprise 2.1 for forwarding from server A to my laptop # export DISPLAY=192.168.1.239:0.0 # echo $DISPLAY output ==> 192.168.1.239:0.0 at the oracle directory, i execute ... (3 Replies)
Discussion started by: grimanda
3 Replies
Login or Register to Ask a Question