How to write DD-WRT C application?

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

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

I am new to DD-WRT.

Pointers to useful sample applications, GIT repos, blog posts, etc. will be appreciated. Everything about getting started with the DD-WRT application.

Googling failed.

+6
source share
3 answers

More searching and reading led me to:

  • OpenWRT packages can apparently be downloaded to DD-WRT systems. "Please note that you can install any OpenWRT package using ipkg." - with DD-WRT page
  • intro for writing an OpenWRT package.
+2
source

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.

0
source

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

It is trivially easy to write an HTTP server in python. It is equally easy to interact with the serial port in python.

Download the kernel drivers for the USB serial emulator chip on your Arduino (I have an FTDI chip). It will show itself as / dev / ttyUSB 0 or something else. Do the rest in python.

0
source

Source: https://habr.com/ru/post/901923/


All Articles