OpenWRT + Router Station Pro + Arduino = Fun

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

Comments

  • thanks man you helped me alot

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

    Regards,

    IgorJune 3, 2010
  • 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

    Ril3yJune 3, 2010
  • Hello…

    I’ve flashed a USR9108 adsl modem with Openwrt. It had a USB printer sharing capability so the USB was already on it. I could never use the USB though. I flashed the latest Broadcom built for the router but even /dev/ttyUSB0 is not there. The device was working perectle and I can see the serial console with SSH through my FDTI converter. I’ve enabled the WIFI so the router is working as a server now. What I can’t do is opkg. The kmod’s don’t install. When I try to install a package the watchdog kicks in and restarts the device.

    My arduino code is ready buy I can’t use the Openwrt device. An ideas?

    ConnJanuary 22, 2012
  • @Conn I am not quite sure I follow. US Robotics is not an Router station Pro. However since you are running openwrt I assume you posted here. So in the spirit of trying to help.

    Can you run opkg?
    What watchdog are you refering to that would restart the device? I am not sure how running a command would restart a device.

    In closing I do not have any experience with your hardware so I am not quite sure I can help ya bud.

    Riley

    Ril3yJanuary 22, 2012
  • Sorry, I realised that I had several typos… Anyway, USR9108 has a built in USB port, it is Openwrt friendly and you did the OpenWrt+Arduino integration so here I am.
    When Openwrt boots it detects the USB as follows in dmesg:

    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    usbcore: registered new interface driver usbserial
    USB Seriai support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core

    when I check /dev there is a 1-1 device ( /dev/1-1) When I plug in a USB stick it detects the media but I can not mount the media. I connected my arduino but to make it recognizable I tried to install FTDI support. Guess what; watchdog kick in and restart.

    That’s is…

    ConnJanuary 23, 2012
  • Typo’s again, sorry…

    ConnJanuary 23, 2012
Comments Are Closed