Galilleo: LAN TCP communication with RaspberryPi using Python. Simple HTTP server.

Goals:

– Learn how to deal with python scripts development and execution at Galilleo’s Yocto Linux.

– To establish TCP  communication between Galilleo (connected to home router by Ethernet cable)  and RaspberryPi (Raspbian Linux) connected to same home router’s LAN through Wi-Fi

– activation of simple http server

SW:

Pre-work: Getting Started with Galilleo Gen1 is completed. Raspberry Pi is prepared. There are two SSH consoles open through TCP by means of PuTTY.  RaspberyPi’s desktop is accessible by means of HDMI and KVM and also by means of TightVNC/VNC through LAN.

IMG_20150731_155650 IMG_20150731_202748

IMG_20150731_155620 IMG_20150731_160035

The Story:

– Single-command python file is created at Galilleo SSH console using ‘vi’ editor and then executed.

IMG_20150731_145455 IMG_20150731_145405

– Two Python files were created at PC: one for TCP server and one for client. Server-side file was taken to Galilleo using PSFTP utility and activated. Then using step-by step debug option client code was executed and TCP connection between PC and Galilleo was assured. Edits were taken from Galilleo back to PC to be saved at GitHub.

IMG_20150731_151214 IMG_20150731_155319 IMG_20150731_155415IMG_20150731_152010

 

– Then client-side Python file was taken to RaspberryPi by means of PSFTP and executed there with Idle Python editor. RaspberryPi and Galilleo communicated nicely. Thus this experiment may be treated as successful as all the goals met.

IMG_20150731_160948 IMG_20150731_160352

IMG_20150731_160023

  • simple http server is working at Galilleo

 

 

IMG_20150805_070553

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