I have a simple question about a problem that surely someone has already encountered. I have a legacy device that communicates (communicated) with another device through RS-485. It does this with its own protocol, which is quite simple and embedded in there are raw ARP, IP, TCP, etc packets.
So, having gotten the cables all correct and stripping the respective (serial) headers off, I'm basically left with raw TCP/IP packets.
What it the most convenient way to have these packets handled, without having to write a complete tcp/ip stack?
If I understood correctly, I must substitute the layer 5 with the code I wrote to dismantle the serial protocol, but how to go on from there?
Thanks in advance,