If you now have "/dev/ttyUSB0" and "/dev/ttyUSB1" then you program them just like any other serial ports.
If you want to do testing with commandline you should first read up on "stty" command.
For a simple test try this:
Code: Select all
#Open one terminal and run
stty -F /dev/ttyUSB1 9600
#Open another terminal and run
stty -F /dev/ttyUSB0 9600
echo "Hello World" > /dev/ttyUSB0
If I have understood your setup correctly and everything is wired accordingly then "Hello world" should appear in the first terminal.
If there is some buffering going on, then maybe try "ls -al > /dev/ttyUSB0" to send a bigger chunk of text.