Dear sir/madam,
I'm an electronics engineer with more that 10 years of professional experience. I've developed over 20 electronic devices which are currently sold in more than 100 countries and, of course, I've developed some projects similar to the yours, so I consider I can help you.
What I propose you to do:
1 - Incorporate an embedded RTOS, such as FreeRTOS, into your device, so your communication could be managed better, and your final poduct will be more reliable.
2 - Integrate a well known and reliable TCP/IP which could offer you standard BSD sockets, like Cyclone TCP.
3 - Create 2 tasks:
3.1 - RS-485 task which will be continuously polling the devices, and updating their status in RAM memory.
3.2 - TCP server task, which will enable you to read that information stored on RAM, as well as to send information to the devices.
3.3 - Create a mechanism, like a queue for sending the received TCP requests to the 485 connected devices.
Finally, it is important to say, that I know it is not easy to trust someone you meet on internet, that is why I will send you the code pre-built in libraries, you will be able to test it, and once you verify that it is working as expected, you will pay me and I send you the sources. So you will never pay if you are not 100% satisfied with my work. Moreover, I'm not a nick name, I always sign my projects with my name and surname, as a well reputated engineer.
Sincerely,
Javier Longares