Device driver with generic communication media layer

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-16T01:45:49Z Indexed on 2010/04/16 1:53 UTC
Read the original article Hit count: 671

Greetings all,

I'm trying to implement driver for an embedded device with generic communication media layer. Not sure what is the best way to do it so I'm seeking an advice from more experienced stackoverflow users:). Basically we've got devices around the country communicating with our head office. Usual form of communication is over TCP/IP, but could be also using usb, RF dongle, IR, etc. The plan is to have object corresponding with each of these devices, handling the proprietary protocol on one side and requests/responses from other internal systems on the other.

The thing is how create something generic in between the media and the handling objects. I had a play around with the TCP dispatcher using boost.asio but trying to create something generic seems like a nightmare :). Anybody tried to do something like that? What is the best way how to do it?

Cheers, Tom

© Stack Overflow or respective owner

Related posts about c++

Related posts about network-protocols