In order to optimize high-level services and development speed, we have implemented an embedded communication framework using Javascript: I extended the spidermonkey interpreter core with a number useful of low-level features like basic file access, BSD socket support etc., which enables developers to comfortably store service information in hashmaps (JS objects), exchange data using JSON, and not bother with memory leaks. A lean state machine implementation for encapsulating reconnects and device states let us create maintainable code
I have been working with a FreeScale-based SBC made by Bluetechnix, which comes with the standard 2.6.31 kernel as patched by Freescale. One requirement was talking to a board that hosts an FTDI USB/Serial bridge, which did not communicate well under this environment.