Go Down

Topic: Access internet via USB without ethernet module? (Read 2 times) previous topic - next topic

czaralex

Would it be possible to have my Arduino access the internet while its hooked up via USB only without using an ethernet module?  :-?

Andrew

#1
May 18, 2009, 11:53 pm Last Edit: May 18, 2009, 11:54 pm by Andrew Reason: 1
If you mean via a PC that the Arduino is plugged into using USB then yes, sort of. You'd have to have some kind of proxy running on the PC - people have written them in Processing, Python, C#, all sorts. The proxy then communicates with the Arduino as normal via serial and with the internet via the language's network functions.

Andrew

czaralex

Sounds perfect. I searched and found some info here on the website. Thanks!

andresleon

I would say no. However, since your Arduino is connected to the computer, and the computer can access the internets  :D then you could write a program using Processing or your favorite language to interface with the Arduino via its serial interface. You could program the Arduino to listen to commands from the serial interface and perform the actions you wish.

hope this helps....

Andres

czaralex

Quote
then you could write a program using Processing or your favorite language to interface with the Arduino via its serial interface.


Way beyond my current programming skills. Besides.. my favorite language is MOO :) ha

westfw

You should be able to have the PC act as an IP router ("internet sharing") using a serial internet protocol like SLIP or PPP over the USB serial port.  I'm not sure whether that's possible or easy with windows, but I'm pretty sure linux can do it.  (whether you can find instructions to set it up in this broadband-era  world is a separate question.)

Using SLIP/PPP on the arduino would require that you implement the whole TCP/IP stack (as if it were a bare ethernet chip), PLUS slip or PPP itself; it might end up bigger than an ethernet stack...

Go Up