Learning how to use the Ethernet 2 Shield

I have just started working on a robot I've been dreaming about for 40 years. I have electronics training from college, the Army, and lots of digitals from self-study. I have a good understanding of how computers function down to the level of how microprocessors work. I have programming experience in BASIC, Fortran, C++, Assembly language, and machine language. I have just acquired an Arduino Uno rev 3, an Arduino Motor Shield, and an Arduino Ethernet 2 Shield. (Please show me how to shorten this.)

The point here is: I need help with the theory of operation for the Ethernet, as it pertains to the Arduino Ethernet 2 Shield. I've found a couple of programs for the Ethernet 2 Shield, but so far haven't gotten a clear understanding what they're doing from the commentary.

I want to be able to send a byte across the Ethernet, have it picked up by my Ethernet 2 Shield, then use that byte to decide what the Motor Shield is supposed to do, which is a separate issue.

Have a look at the Wiznet chip datasheet to see if it provides an API to send a single byte to a MAC address.

Most Arduino Ethernet examples use TCP/UDP high level packet based protocols to deliver a payload that contains one or more bytes.

1 Like

Did you find all the examples that come with your lib..
arduino-libraries Ethernet examples
take a peek at the ChatServer, it raises a telnet server that you can send chars too..
just need a telnet client to connect, could use the one built into windows..
get a command prompt and type telnet..

good luck.. ~q

1 Like

There are many ways to use the ethernet module. What you are looking for seems like modbus tcp. There are a few examples available.
I use it another way with the client server model. I have one unit set up as a server and one or many as a client. When the client sends a request to the server it sends the data requested. I use xml data structure which works well with arduinos as there are many examples and libraries available.
The modbus tcp model is more efficient I suppose but for some reason I just can't wrap my head around it.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.