In this page we will discuss how to play LSCD with Neo Freerunner. Neo Freerunner is a Linux programmable cell phone from Openmoko.
It has:
# cross compile LSCD.
wget http://lscd.googlecode.com/files/liblscd0_armv4t.opk
opkg install liblscd0_armv4t.opk
{note|Neo's default IP is 192.168.0.202 }
2. connect to Neo other than USB network.
3. connect Neo with LSC-10 chip
mini USB male
<---->
USB A male | USB A female
<---->
USB A female | USB A male
<---->
USB B male
to assemble this line.
4. Switch Neo to USB host mode
* Neo is default on USB device mode, and if you want to control something with Neo you will have to switch it to host mode.
1. ifconfig usb0 down 2. echo "host" > /sys/devices/platform/s3c2410-ohci/usb_mode 3. echo "1" > /sys/devices/platform/neo1973-pm-host.0/hostmode
* of course you can write them in script
5. Play with LSC chip with python binding
* you may take http://code.google.com/p/lscd/source/browse/trunk/tests/robot.py or http://code.google.com/p/lscd/source/browse/trunk/tests/pylsc_init.py as examples
Pylsc is python binding. You can for sure using C code to control the LSC chip. And you can write script for this very easily.
Happy Hacking.
Comment by ticktock35, Nov 10, 2008
Pictures: http://picasaweb.google.com/ticktock35/NeoLSCRobot#