Hello
I have been trolling the web trying to workout how to use the built-in
ttyO2 to perform rs-232 communications. I wish to use the built-in
rs-232 transceiver.
I have found how to disable ttyO2 as a console by deleting the console
arguement out of uEnv.txt and removed /etc/init/ttyO2.conf. So now the
built-in rs-232 port doesn't present itself as a console.
The following is what I deleted:
Sudo rm /etc/init/ttyO2.conf
delete the following out of uEnv.txt from the boot partition of the sd
card.
- console=ttyO2,115200n8
- optargs=console=tty0
- console=${console} ${optargs}
However I can't seem to go any further. I have been trying to set the
port as 9600 8-n-1 with no flow control from the command line on my
dvi monitor. However I can't seem to get stty or setserial to perform
any commands on ttyO2.
I was wonder if anyone had a bash script or knew commands that have
worked on the beagleboard xm to setup ttyO2 into a known configuration
and check the ports configuration.
My understanding is that I once I can configure the port I should be
able to simply type on the commandline to send data out the port:
Echo "test" > /dev/ttyO2
Any help would be appreciated.
Thankyou
Troy