TCP Communications between a Raspberry Pi and an Arduino Using Lazarus / Free Pascal

This is the next installment in a series of posts discussing various ways to communicate between a Raspberry Pi and an Arduino. This post is only going to discuss the differences between using UDP vs TCP. If you are interested in this, you should first review these posts as they have detailed descriptions of the hardware and the function of the software:

UDP Communications between a Raspberry Pi and an Arduino Using Lazarus / Free Pascal

Serial Communications (USB) between a Raspberry Pi and an Arduino Using Lazarus / Free Pascal

Further, the post

TCP Communications between a PC and an Arduino Using Lazarus / Free Pascal

explains the changes necessary to go from the UDP versions of the software to the TCP versions.

Sorry for all of the cross references, but I’m beginning to tire from writing all this stuff up!

Suffice it to say, the Arduino code is exactly like that for the PC version of this software.

The PC/TCP version of the software was ported directly to the RPI and required only commenting out the multimedia calls.

So here are the versions of arduino and RPI software that allow TCP communications between the two:

http://www.xyfyx.com/files/arduino2RPIviaTCP.zip

Advertisements
This entry was posted in c-lazarus, c-rpi and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s