I'm working on establishing communication via ethernet between 2 microcontrollers.
Its a stand alone system. Controller1 will interface with the user via a keypad. Controller2 will be interface with a couple of motors(via drivers). When Controller1 receives keypad presses it will request controller2 to carry out certain motion tasks.
The block diagram will be(standard circuit): Controller(with an in built MAC) --- PHY --- transformer -- RJ45 and the same repeated on the other controller board.
What I'm trying to understand(from the firmware perspective) is whether I really need to get into all the abstraction layers (upto http), will my controllers need an i/p assigned, etc.
Assume that these are the only 2 devices interacting. Is it sufficient to have the code working up to only the data link layer. i.e I configure the MAC registers, each controller having its own MAC address and the communication is done via the ethernet frames with no higher level layers involved.
Working with ethernet for the first time so apologies if there are any basic errors in the query. All the forums mention using tcp/ip stacks, ip addresses but its not clear to me why that is needed.