N80 camera phone will serve as an eye of the roomba. To get the 320x240 jpg-picture from the camera, the desktop must run a tcp/ip server process. The phone has a client process (since servers are hard to implement in a phone) that sends pictures to the server over the CS department wlan.
The picture is rotated 90 degrees clockwise - a command "jpegtran -rot 270 -outfile pic-90 pic" solves the problem by rotating "pic" to "pic-90".
Phone 2, as labelled on the backside of the phone, communicates with desktop dop-49. Phone 1 communicates with dop-48.
chmod u+x jpgserver.py
./jpgserver.py picturefile.jpg
This is provided so you can bypass the jpgserver.py running in the desktop if you wish.
while True:
try:
send to server the picture length + \n as a string
send to server picture contents
except:
connect to server