Lazarus Release Candidate 3 for 2.0. Is there a free component for Serial Port (COM) communication? I want to use it in Firemonkey (XE5 or XE6). (self.,,,OPEN_EXISTING) work, and have never looked back since. I even use it on USB! (getting the 'port name' from QueryDosDevice) Don't know if that'll work with FireMonkey, though.
The stock Debian image for the Raspberry Pi uses the UART as a serial console. I was able to connect to it from my Ubuntu laptop via my 3.3-volt USB FTDI TTL-232 cable. I connected Raspberry Pi’s ground pin to the ground pin of the FTDI, the Rasberry Pi’s TX pin to the FTDI’s RX pin and vice versa. (The Raspberry Pi’s pinout is available here.) Then on my Ubuntu laptop I installed minicom (sudo apt-get install minicom) and fired it up with:
After typing in a username, I got a password prompt and was able to log in. Also, the serial console allowed me to see all the kernel output during boot, which could be handy someday.
But I wanted to use the Raspberry Pi’s UART for my own purposes, not as a serial console. To achieve that, I did the following.
First, I made a backup of the /boot/cmdline.txt file, which contains the kernel parameters:
Then I edited it:
Originally it contained:
I deleted the two parameters involving the serial port (ttyAMA0) to get the following:
I rebooted (sudo reboot) to confirm that kernel output was no longer going to the serial port. But the serial console was still available. So I edited /etc/inittab:
I commented out the following line:
Finally, I rebooted again and confirmed that nothing was touching the serial port anymore. Then, to test it out I installed minicom on the Raspberry Pi:
And ran it:
After firing up minicom on my Ubuntu laptop again, I was able to send data in both directions!
Now to get the Raspberry Pi talking to an Arduino…