Ethernet to GPIO

Have questions about a SparkFun product or board? This is the place to be.

Moderator: phalanx

Post Reply
orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Ethernet to GPIO

Post by orbital_fox » Fri Oct 17, 2008 8:31 am

Greeting sparkfun forum.

I am looking for a low budget, small factor solution to convert ethernet TCP packets to GPIO (general purpose outputs). Basically i want the TCP packet to break from serial to a parallel output that i can read with other circuitry.

Any recommendations?

Regards
Fox
www.orbitalfox.com

User avatar
leon_heller
Support Volunteer
Posts: 5734
Joined: Sun May 01, 2005 11:20 am
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller » Fri Oct 17, 2008 9:01 am

Leon Heller
G1HSM


theatrus
Support Volunteer
Posts: 633
Joined: Thu Oct 02, 2008 1:50 pm
Location: CA
Contact:

Post by theatrus » Fri Oct 17, 2008 10:35 am

The LanTronix XPort modules are a great way to go. We use them in two designs at work.

It helps to be able to make your own PCB, as the pin through-hole headers are small pitch and won't go through your standard protoboard. I don't remember if the MatchPort had such small pin headers, but it comes in 802.11b/g :).

- Yann

orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Post by orbital_fox » Fri Oct 17, 2008 11:24 am

Lantronix looks good yeah, i have to research more into them though, cause im looking about something very specific.

I need a system that takes in TCP packets from ethernet and spits out raw data on GPIO pins, or anything near that.
www.orbitalfox.com

wiml
Posts: 487
Joined: Tue Feb 08, 2005 11:45 pm
Location: Seattle, WA, USA
Contact:

Post by wiml » Fri Oct 17, 2008 7:32 pm

Does it need to talk TCP? If you can use UDP it gets a lot simpler.

orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Post by orbital_fox » Sat Oct 18, 2008 1:48 am

Good call, UDP would be fine as well.
www.orbitalfox.com

orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Post by orbital_fox » Sat Oct 18, 2008 4:25 am

Ive looked into the Lantronix ones. They look like the will still need addition development work to get them to the point were we want. But this is work that we would like to avoid if possible.

Basically i need a system that i can send UDP or TCP packets, and it will unfold them and spit out the data in GPIO pins in a parallel matter. We need this so that we can connect them up straight into logic, without the need of something intermediate between comms and logic.

I hope im getting through right, i knew it would take several posts from me to get this through right :P.

If nothing like that exists my team can develop it.
www.orbitalfox.com

User avatar
ds18s20
Posts: 104
Joined: Wed Jun 28, 2006 12:17 am
Location: San Francisco
Contact:

Post by ds18s20 » Sat Oct 18, 2008 11:10 pm


orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Post by orbital_fox » Sun Oct 19, 2008 4:26 pm

Extremely cool solution. Spot on with not extra costs. Ill make sure it works perfectly with what we intent to use it.

Thank you very much
www.orbitalfox.com

User avatar
ds18s20
Posts: 104
Joined: Wed Jun 28, 2006 12:17 am
Location: San Francisco
Contact:

Post by ds18s20 » Sun Oct 19, 2008 5:23 pm

HP Jet Direct EX3 Plus from eBay. It has 3 ports, 8 bits each, total IP controllable outputs 8*3 = 24. Total cost $10

Opto22 PCB11 board from eBay.

Drivers? NetCat nc doesnt need any drivers, it is a utility to write to IP port. Wirting to ports is nothing like writing to lpt ports. You basically open TCP connection, send data, then close. Here is an example how to set all outputs to "1"

Code: Select all


printf "\xFF" | nc 192.168.1.100 9100 

This sends FF to 192.168.1.100 on TCP port 9100 which cases all 8 outputs of the Jet DIrect to go high... 
Image

Popular Opto22 boards from eBay can be interfaced directly to the Jet Direct Plus card

Image[/code]

Here is the complete solution using HP Jet Direct EX3 Plus. Only one port is used to interface with the Opto22 board:

Image

Rhys also took the idea and developed a more friendly looking interface box with outlets sticking out and all. His apps is focused on the black Optos which are 110V AC controls contrasted to my 12V red Optos... Same thing, different applications

http://rhysgoodwin.wordpress.com/2008/0 ... trol-hack/

orbital_fox
Posts: 11
Joined: Fri Oct 17, 2008 6:40 am

Post by orbital_fox » Mon Oct 20, 2008 1:49 am

This is brilliant! Perfect price and operation. I wont be using it for high voltage stuff, but i know how to modify the boards.

Thanks a million, this saved me a lot of search time, taken from precious research.

Regards.
www.orbitalfox.com

User avatar
ds18s20
Posts: 104
Joined: Wed Jun 28, 2006 12:17 am
Location: San Francisco
Contact:

Re:

Post by ds18s20 » Sun Aug 08, 2010 12:04 pm

orbital_fox wrote:This is brilliant! Perfect price and operation. I wont be using it for high voltage stuff, but i know how to modify the boards.
Thanks a million, this saved me a lot of search time, taken from precious research.
It made a good college project:

ISYS Industrial Automation Project Image

Post Reply