6

I want to write a small proxy as a user-level program for the DD-WRT environment.

The proxy will read/write between a USB HID device (Arduino) attached to the DD-WRT box and a specific web server. The USB device will use an AT-style code. The web server uses HTTP.

I'm new to the DD-WRT environment.

Pointers to useful sample apps, GIT repos, blog posts, etc would be appreciated. Anything about getting started writing a DD-WRT app.

Googling has not been successful.

Charles
  • 50,943
  • 13
  • 104
  • 142
Larry K
  • 47,808
  • 15
  • 87
  • 140
  • BTW, have you considered using an Arduino ethernet shield to run the HTTP server on the Arduino itself, without touching the DD-WRT router? – Tadeusz A. Kadłubowski Feb 09 '12 at 08:42
  • @Tadeusz: I want wifi, not wired Ethernet. The Asus WL-520GU is much cheaper than a wireless shield, connects to the Arduino via USB and supplies pwr as well. – Larry K Feb 09 '12 at 15:03

3 Answers3

2

More Googling and reading has led me to:

  • Apparently, OpenWRT packages can be loaded onto DD-WRT systems. "Note that you can install any OpenWRT package, using ipkg." -- from a DD-WRT page
  • An intro to writing an OpenWRT package.
Larry K
  • 47,808
  • 15
  • 87
  • 140
0

http://www.dd-wrt.com/wiki/index.php/Development

If you want to write a kernel module for DD-WRT, this seems like a good start.

Paul Wand
  • 323
  • 5
  • 12
0

DD-WRT has packages for many useful things. Python and pyserial struck my attention.

It is trivially easy to write a HTTP server in python. It is equally easy to interface with a serial port in python.

Load kernel drivers for the USB serial emulator chip on your Arduino (mine has a FTDI chip). It will manifest itself as /dev/ttyUSB0 or something. Do everything else in python.

Tadeusz A. Kadłubowski
  • 8,047
  • 1
  • 30
  • 37
  • it takes a lot of space to install python on dd-wrt. so it will be possible for some (expensive) routers. – Frederic Aug 05 '12 at 22:09