I have a couple (hopefully quick) questions about using the onboard serial port on the GPIO connector on the RP. I've already built a small adapter with a MAX3232 chip so I have the RX and TX using proper RS-232 voltage levels to connect to my device. Now that it is connected I need to start using it.
From searching the forums I found a great thread about using this port and it mentioned that I should make a couple config changes to prevent the boot console from using it:
http://www.raspberrypi.org/phpBB3/viewt ... 44&t=15683
This thread also has some great details:
http://www.raspberrypi.org/phpBB3/viewt ... 34&t=12000
After going through all that I still have a couple questions:
- If I just want to echo the contents of a txt file to /dev/ttyAMA0 is there a way to set the port to 9600 8N1 from the command line? What is the default speed of this port and how can it be set to 9600 if needed?
- When using the serial port does it support XON/XOFF directly or is that only supported in the Pyton library for using the port? Is it also supported in C or is that something I have to code for myself when using the port in C?
- Is minicom part of the default dist of Linux for the RP? If not, where can I get that and how do I install it? I'd really like to get minicom up and running so I can verify that my serial connection is working as I expect it to.
- Can anyone point me to other examples of using the serial port? Some simple ones I can use from the command line would be ideal.
With the boot config files altered to stop using the ttyAMA0 I am able to receive data from it. As a quick test I just typed:
and then turned on my serial device. It was able to display all the startup details ok so I can see that the RX portion works. That was at 9600 baud. Under normal operation I can just ignore all that and would really only be looking for the XON/XOFF codes coming back (unless the serial driver can do that for me)
If you can help answer any of these questions I would appreciate it.