Get flash on the n810 talking to Arduino Firmata v. 2.0
The basic steps are:
1. install the ftdi kernel module
2. put the machine in usb host mode with usbcontrol
3. connect the arduino board to the n810, running firmata.
4. plug arduino in to the n810. it should turn on.
5. set up the n810 to talk/listen to the n810, i.e. using the serproxy program.
6. start flash and hope for the best.
The easy way to do this is to follow the instructions from Dave Vondle at IDEO Labs. Thanks Dave!
1. We're going to follow Dave's instructions,
but skp the part about soldering a cable:
http://code.google.com/p/ideo-maemotablet/wiki/NokiaN810ArduinoSetup
2. We'll change a few things to make it work with firmata:
a) as I mentioned, you will not solder your own cable. Instead, we will get usb gender changers (female-female USB A connectors) to connect the normal arduino cable to the normal n810 cable. These come from RadioShack or Fry's. For example: 70534.jpg 576×638 pixels
b) we will replace Dave's serproxy.cfg file with my version of the serproxy.cfg file, which can be downloaded from here:
http://hayesraffle.com/n810/serproxy.cfg.zip (from your mac/pc)
- or -
http://hayesraffle.com/n810/serproxy.cfg (from your n810)
c) we will use the flash files and tutorials proviced by Bjoern Hartmann, which we used last week.
http://protolab.pbwiki.com/TutorialFlashSetup2009
1. do your development and debugging on your desktop machine.
2. When things work, you can copy compiled swf files to the N810. Put them in /home/user/MyDocs, over an ssh tunnel, as explained earlier, and launch them from the File Manager, as Dave explains
3. make a desktop icon to launch the serproxy from the gui:
open "personal launcher" from the extras folder
click on the ' + '
Name = serial proxy
Command to execute = /home/user/MyDocs/serproxy
run in terminal = checked
type "ok"
close "personal launcher"
now there should be an icon on your desktop that will launch the serial proxy.
when you have your final flash file, you can add another icon to launch that from the desktop, too.
You're done!
But here are some more details on the basic steps:
1. install the ftdi kernel module
the easy way: Do the last step "Flash new kernel image" on the page:
RomToolInstructions - ideo-maemotablet - Google Code
you will need the flasher program and kernel image from here:
or, the hard way, which has to be done every time you boot up:
http://blog.locationist.net/2008/03/16/arduino-interaction/
insert the ftdi kernel module
with this code, tpyed from the device.:
insmod usbserial.ko
insmod ftdi_sio.ko
2. put the machine in usb host mode,
either using hardware (a custom cable you made) or software (using USBControl Application you just installed). You can do it from a script, too:
3. connect the arduino cable to the n810
you will need to buy an adapter at fry's or radioshack. a usb gender changer (connector that's female on both sides) will work to connect the standard n810 cable to the standard arduino cable.
4. set up the arduino to talk/listen to the n810. i.e. load the firmata firmware using your p.c.
5. plug arduino in to the n810. it should turn on.
6. set up the n810 to talk/listen to the n810, i.e. using the serproxy file from http://code.google.com/p/ideo-maemotablet/wiki/NokiaN810ArduinoSetup and launched with your personal desktop icon (#3 above).
7. start flash. From file manager, locate your file and double click on it. Or make a personal launcher desktop icon and use that.