59
v.
Program Analysis and Explanation
Abstract
From the perspective of software, the smart car is of C/S structure. The TCP server
program is run on Raspberry Pi to listen to the command from the client and control
the car accordingly. The client program is run on the PC and connected with the
server through the TCP, which provides the user with a graphical user interface
(GUI) to conveniently control the Raspberry Pi remotely. Both the client and server
programs are written in Python.
Make sure that the circuit is connected properly. Power the smart car, log in t
he Raspberry Pi remotely, go to the directory Sunfounder_Smart_Video_Car_K
it_for_RaspberryPi and check the files under it.
cd Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi
ls
You can see four files under the directory:
client
,
datasheet
,
mjpg-streamer
and
server
, and a file
README.md
.
Wherein,
README.md
is an introduction file,
client
, the client run on your PC,