Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: seawolf on October 18, 2011, 07:44:29 PM

Title: Best way to interface a microcontroller with a router?
Post by: seawolf on October 18, 2011, 07:44:29 PM
Hey,
I'm working on an underwater robot project. The goal right now is to have an ROV with a camera and sensors (pressure, heading, etc.) communicating through a tether to a wireless router located in a buoy. The wireless buoy will transmit the data to a laptop on the shore. A user will be able to see the data being collected by the ROV and send commands back to the vehicle.

If I've lost you already, it looks something like this:
(http://i.imgur.com/xXgiE.png)

Most of this design is based off of the wireless RC car found at http://www.jbprojects.net/projects/wifirobot/ (http://www.jbprojects.net/projects/wifirobot/)

I've already got a network camera working. What I need is some input on is how to interface a microcontroller (in my case, an arduino) to the wireless router.

The methods I've seen so far are:
1. Hack the wireless router to have a serial port, as shown in the RC car tutorial.  Requires physical and software hacking.
2. Hack the firmware on a router that has a USB port (like this: http://todbot.com/blog/2010/12/16/wifi-for-arduino-with-asus-wl-520gu/ (http://todbot.com/blog/2010/12/16/wifi-for-arduino-with-asus-wl-520gu/))  Requires a similar amount of software hacking, and no physical hacking.
3. Use an arduino ethernet shield.

My background is in electrical engineering, but networking and communication protocols are new to me. I would appreciate some input as to what would be the best way to send and receive data between a laptop and an arduino using a wireless router.

Also, if someone could clue me in as to what has to be done on the laptop side, I'd appreciate it.

Thanks,
-Seawolf
Title: Re: Best way to interface a microcontroller with a router?
Post by: Soeren on October 18, 2011, 10:33:34 PM
Hi,

Why not make a web server on the controller and just browse it by its IP number.
Title: Re: Best way to interface a microcontroller with a router?
Post by: Rent2Own on December 04, 2011, 12:14:08 PM
If you're still interested in this, I've made a thread/project (based on the same links you left) on hacking the Asus wl-520gu.

Getting the dd wrt software on the router isn't hard, and it doesn't require soldering in the serial port.  Here is my progress so far...
http://www.societyofrobots.com/robotforum/index.php?topic=14782.0 (http://www.societyofrobots.com/robotforum/index.php?topic=14782.0)

*I'm trying to figure out "the laptop side of it" as you've stated.  e.g. Putting the router in the correct mode, and establishing a connection with the microcontroller.
Title: Re: Best way to interface a microcontroller with a router?
Post by: seawolf on December 13, 2011, 01:56:27 PM
Decided to go with the wireless router approach (Asus 520gu). Got it working so that commands can be sent from a laptop to the microcontroller. We also managed to get a virtual serial port up and running so that the wireless router interface is transparent to serial commands.
I'll get one of the software guys to do a write up at the end of the semester.

Cheers,
-Seawolf