I am a bit confused by your request, could you please clarify for me what you mean. Do you want:
A: a way to port a standard TCP/IP stack (lwip for example) on top of a MAC/PHY hardware?
B: do a custom protocol (not related to TCP/IP stack or OSI model) on top of a MAC/PHY hardware?
For the first use case, you’ll need your existing TCP/IP stack and an implementation of the LL_NET API in C. Everything else (HTTP client, NTP client, MQTT client…) would be done by Java libraries using TCP connections or UDP packets that are routed through the C TCP/IP stack.
For the second one, it is totally your call, you’ll need Java to Native communication (SNI here would do the trick) and your own way to communicate meaningfully through the MAC/PHY hardware. You’ll also surely need a queue of some kind to talk asynchronously with the Execution Environment.
Could you be more specific on the type on communication it will be? What do you want to achieve?
You will have to use new Java native methods and implement them thanks to SNI [1]. These native methods will surely involves reads and writes, so you’ll need a native C buffer for rx and tx. Depending on your need you’ll also want the reads and writes to not block the virtual machine so another native OS thread will be involved.
Further than that I’ll need more specific use cases.
Thanks again for your information, and please be advised that i just wanted to know if there is any reference implementation, for the MAC Address-based Communication - without a TCP/IP stack loaded, as a base line for our development.
We do not have these kind of reference implementations. It is pretty rare to have MAC-based communication without TCP/IP these days (the old days of XNS, Apple Talk or DECnet are gone). But if you explain your use case I may be of help. What’s the communication for? Is it based on an existing protocol? what are the use cases that make TCP/IP not suitable?