|
department of computer engineering @ yeditepe university |
|||||||||||||||||
![]() |
|||||||||||||||||
|
|
|||||||||||||||||
![]() |
|||||||||||||||||
|
This page contains information about TinyOS implementation of a novel routing protocol used to disseminate query and construct topology across sensor nodes scattered around a terrain. This protocol tightly integrates with SeMA architecture for Mobile Ad Hoc Networks.. General Purpose Xml Parser For TinyOS (TinyXML)IntroductionXML ( Extensible Markup Language) is a markup language used to carry data without tag limitations as found on the HTML. If you don't know what XML is a free tutorial is available at http://www.w3schools.com/xml/xml_whatis.asp Due to limitations of hardware resources parsifal library has been chosen as the source for porting to tinyos platform.Parsifal library is known to be a fast non-validating xml parser that implements a subset of SAX(Simple API for XML) API. In order to speed up processing no tight checking of the xml data is made at sensor nodes.Sensor nodes own very slow CPUS ( 8 bit RISC based cpus from Atmel).So the library had to be fast enough to meet the cpu speed problem. There are some features removed from parsifal library in order to decrease code size.These include:
Note that TinyXML is not intended for complex XML data. DownloadTinyXML can be downloaded here
Compile and Install Instructions
TestingXml library provides a StdControl and a XmlParser interface for use with other applications.StdControl interface is used to initialize , start and stop the library. XmlParser interface is used to register the callback function that will be called after issuing the start command of StdControl. Stop command will release any memory obtained during parse operations.The sample application will parse strcpy(strbuf,"<hello><1>test</1><2>test2</2></hello>"); and display the results using dbg command. Here is the output from pc environment: 0: hello Have a look at TestXml project for details of xml library usage. For questions regarding to the tinyos port of the library please contact oskaya@softhome.net |
|||||||||||||||||