Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
petdocvmd
PostPosted: Apr 18, 2012 - 03:46 AM
Newbie


Joined: Mar 28, 2012
Posts: 11
Location: PA

Good Day,

I've spent the last several hours searching this forum and the web, poring over the choices for implementing Ethernet connectivity either directly with an AVR MC or indirectly e.g via a Wiznet. My head is spinning, and I am looking for some direction.

I do not need a web server, or even a web client. I simply need to exchange small amounts of data (maybe 16 bytes) at no more than 100 Hz with a Windows application acting as a TCP server. The client simply needs to establish a connection via a static IP/Port for this server app and start communicating.

My project will be gathering data from switch inputs (e.g. via I2C port expanders) and outputting to LEDs and such. Switch data will go out to the Windows app and display data will come in to my board. I have no control over the Windows app, so I either must port my data into my own PC app via USB and then to the other app via a socket (less ideal) or implement TCP/IP directly in my project.

What I am seeing out there is pretty much way overkill for my purposes, and the examples are almost all centered around web page service or consumption. Can anyone advise me what would be the simplest (and economical) solution, and give me a push in the right direction? I am comfortable using AVR Studio with AVR-GCC, but willing to learn & use an alternate development environment if thought to be better solution.

Thanks for any advice you can provide!

Scott
 
 View user's profile Send private message  
Reply with quote Back to top
bobgardner
PostPosted: Apr 18, 2012 - 05:20 AM
10k+ Postman


Joined: Sep 04, 2002
Posts: 21272
Location: Orlando Florida

Buy a Lantronix Xport3. A complete 186 computer running linux in a magjack. You give it an ip address using internet explorer, and you can transfer udp payloads into it from an avr serial port at 230K bps or 460K bps. Takes a lickin and keeps on tickin.

_________________
Imagecraft compiler user
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Kartman
PostPosted: Apr 18, 2012 - 05:31 AM
Raving lunatic


Joined: Dec 30, 2004
Posts: 8789
Location: Melbourne,Australia

Www.tuxgraphics.com have a few examples similar to what you want.
There's also the Arduino.
 
 View user's profile Send private message  
Reply with quote Back to top
petdocvmd
PostPosted: Apr 18, 2012 - 05:06 PM
Newbie


Joined: Mar 28, 2012
Posts: 11
Location: PA

The Xport looks intriguing. The windows app I need to interface with uses TCP only (not UDP), but a brief reading of the user manual suggests the following:

- I can program the Xport to connect to the Win app socket at a given IP addr and port

- I can program the Xport to communicate via RS232 protocol with an AVR chip.

- Data streaming from the Win App over the TCP/IP connection will be forwarded to the AVR chip via the serial connection.

- Data gathered by the AVR can be sent to the Xport via the serial port and will be forwarded on to the WIn App via the TCP/IP socket connection.

- All this at speeds well in excess of my needs (19.2k Baud at most)

Does that sound accurate?

Just for fun I'm going to grab the Arduino Ethernet shield as well. I've not dabbled in "sketches" and the like, and worry about flexibility, but perhaps could port code to AVR Studio/GCC for more granular control over the MC hardware for my application needs.

Tuxgraphics looked interesting as well, but everything was either web server, web client, or UDP - not a single simple TCP client example. I will still consider it, and try to tinker with existing examples to accomplish what I need.

Thanks!

Scott
 
 View user's profile Send private message  
Reply with quote Back to top
westfw
PostPosted: Apr 18, 2012 - 07:20 PM
Resident


Joined: Jun 19, 2002
Posts: 957
Location: SF Bay area

The Arduino ethernet shield is pretty expensive for what you get. The modules available directly from WizNet distributors are much cheaper, somewhat smaller, and very similar in functionality. Eg: http://www.saelig.com/BRD/ETH031.htm
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits