Revision 1 as of 2010-02-21 12:22:38

Clear message

Controlling the LURC

The gen1 front end is basically a serial program running on the bifferboard, controlled over ssh. There are a few things we can use to send hex values from the linux command line. The first is minicom, which is hard to learn and was designed more for modems than byte banging. Minicom also requires you to do some fancy piping to make it output hex. The second option, which is simple and works, is python serial. As python has a command line interpreter, it's very quick and easy to do (example is below). The third option is a program written in by LyndonWhite called gen1 which uses c++ libserial. This also works, but hasn't been extensively tested. The source for gen1 is in the project repo on the main page. Instructions and some simple documentation is also below.

pyserial

Fire up python from command line and type the following (note you have to have python serial installed):

   1 import serial
   2 ser = serial.Serial('/dev/ttyS0', 19200)
   3 ser.write('\xd2\x80')

The final write command will send 0xd2 then 0x80, which in our case is used to turn the motor on.

gen1