OpenWRT + Router Station Pro + Arduino = Fun

Posted by Ril3y on September 30, 2009

Around 11PM last night I finally was able to get all the Arduino Hardware talking to my Openwrt Router Station Pro Installation.  These are the packages you need to have on your system.  (if you built your own firmware with theses great! otherwise just opkg install them)

Like So:

root@OpenWrt:~# opgk install usbutils

Install the rest of these packages the exact same way:

  • usb-ohci
  • kmod-usb-serial-ftdi
  • kmod-usb2
  • kmod-usb-serial(Note: these packages are needed if you want to us the MMC/SD Card on the RS PRO)
  • kmod-usb-storage
  • kmod-mmc

Once that is done you can issue the lsusb command to see if your system recognizes the Arduino FTDI interface.  You should see something like this.

Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0723 Genesys Logic, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you do not see the UART (FTDI) device go ahead and reboot your system and it should come up.  If it does not you are missing a package email me we can see whats up.

Will add more later but here some screenshots of the system working.

DSC_4002

Google Buzz

Tags: , , , , , ,

Comments (3)

  • thanks man you helped me alot

  • Cool!! Do you have more information how to do it? Arduino scketch, router soft,… are you using C/bash script/… for the router?

    Regards,

  • No I do not anymore. But its not too hard. If you want to communicate with the arduino and the wifi router I suggest you read about pyserial.

    http://www.arduino.cc/playground/Interfacing/Python is a good place to start. However, You can use perl, c, c++, really any language you want that has serial port support. I use python because its quick and easy. You just need to implement some seral.read() lines in your arduino sketch and then toss in stuff from the router program to a serial port… /dev/ttyUSB0 or what not.

    Ril3y

Do you have anything to say?

Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)

Bad Behavior has blocked 88 access attempts in the last 7 days.