Developing and deploying Web applications on networked embedded devicesis often seen as a way to reduce the development cost and time to marketfor new target platforms. However, the sizeof the messages and the processing requirements of today's Web protocols, such as HTTP and XML,are challenging for the most resource-constrained class of devicesthat could also benefit from Web connectivity.New Web protocols using binary representations have been proposedfor addressing this issue. Constrained Application Protocol (CoAP)reduces the bandwidth and processing requirementscompared to HTTP while preserving the core concepts of the Web architecture.Similarly, Efficient XML Interchange (EXI) format has been standardizedfor reducing the size and processing time for XML structured information.Nevertheless, the adoption of these technologies is lagging behind due to lack ofsupport from web browsers and current Web development toolkits.Motivated by these problems, this article presents the design and implementationtechniques for the EXIP framework for embedded Web development. The frameworkconsists of a highly efficient EXI processor, a tool for EXI data binding basedon templates, and a CoAP/EXI/XHTML Web page engine.A prototype implementation of the EXI processor is hereinpresented and evaluated. It can be applied to Web browsersor thin server platforms using XHTML and Web servicesfor supporting human-machine interactions with constrained hosts.This article contains four major results: (1) theoretical and practical evaluation of the use of binary protocolsfor embedded Web programming; (2) a novelmethod for generation of EXI grammars based on XML Schema definitions;(3) an algorithm for grammar concatenationthat produces normalized EXI grammars directly, and hence reducesthe number of iterations during grammar generation;(4) an algorithm for efficient representation of possible deviations from theXML schema.
Validerad; 2014; 20140328 (rumkyu)