I am using Linux - Ubuntu 11.04 on the computer I am using and the computer I am connecting to.
As far as the ports I am using it depends on which serial cables I am using. The 2 ports I use are some combination of ttyUSB0, ttyUSB1 or ttyS0 depending on if I am using regular RS-232 serial cables or RS-232 cables with USB converters. The reason for the USB converters is because the computer only has one serial port so I need to use one regular serial port and one USB or just 2 USB's. I have tried this with different serial cables and it makes no difference if I use ttyUSB0 and ttyS0 or ttyUSB0 and ttyUSB1. The reason for needing 2 ports at the same time is because it is for communicating with some hardware that receives data on one port and returns it on another port. But for now I am just going between two identical Ubuntu computers just bouncing data back and forth with c++ programs on each computer and these issues have come around. I don't have the programs I am using with me at the moment but it is pretty straight forward, just opening the ports, exchanging data between the computers and then closing the ports.
|