[Tinyos-help] Regarding XML Parser for TinyOS

Michael Schippling schip at santafe.edu
Wed Aug 1 22:32:29 PDT 2007


I agree...since you need a proxy of some kind on a PCish host,
I would put parsing and encoding software there instead of pushing
it all the way out to the sensors. Appropriate Technology and all...
MS


J. Ryan Stinnett wrote:
> As I said, the largest packet would be about 256 bytes, but the standard 
> T2 application data length is 28 bytes, which seems far too small for 
> tagged data of any more than the simplest kind.  This would mean you'd 
> likely have to split your data across multiple packets, which also adds 
> more complexity.  Keep in mind that micaz motes only have 4 KB of RAM, 
> so you could run out of RAM quickly if you increase the data length or 
> store a large number of packets.  Also, the XML parser could cause a 
> huge increase in code size.
> 
> Most likely, you should be able to do without XML.  With more details on 
> your specific application, perhaps someone could suggest an alternative.
> 
> - Ryan
> 
> Adi Mallikarjuna Reddy V wrote:
>> Ofcourse, what ever your saying regarding the XML on a sensor node is 
>> right. As you said, it is the application that forced us to think in 
>> this way.
>>  
>> What do you think are the possible obstacles in using XML format for 
>> messages and then parsing them at the sensor nodes.
>>  
>> Regards
>> Adi
>>
>>  
>> On 8/2/07, *J. Ryan Stinnett* <jryans at rice.edu 
>> <mailto:jryans at rice.edu>> wrote:
>>
>>     Interesting, so there apparently is an XML library...  However, I 
>> still
>>     can't see a real need for that on a mote.  I've found that XML can be
>>     useful way to store data on a computer that is connect to a sensor
>>     network, but on the motes themselves I can't see why you'd want to go
>>     that route.  Is there a particular reason or application that led
>>     you to
>>     consider XML?
>>
>>     - Ryan
>>
>>     Adi Mallikarjuna Reddy V wrote:
>>      > Hi Ryan,
>>      >
>>      > Later when I searched for it, I found something called TinyXML at
>>      > http://ics.yeditepe.edu.tr/tnl/html/tinyxml.html. Have look at  
>> it. I
>>      > didnt explore the capabilities of it.
>>      >
>>      > Regards
>>      > Adi
>>      >
>>      >
>>      > On 8/2/07, *J. Ryan Stinnett* < jryans at rice.edu
>>     <mailto:jryans at rice.edu> <mailto:jryans at rice.edu
>>     <mailto:jryans at rice.edu>>>
>>      > wrote:
>>      >
>>      >     If you mean parsing XML data in messages sent via the radio,
>>     I don't
>>      >     think that would be very feasible.  XML is a pretty verbose
>>     format, and
>>      >     the largest packet the CC2420 can send is around 256
>>     bytes.  It would
>>      >     probably be best to stick with more compact data
>>     representations.
>>      >
>>      >     - Ryan
>>      >
>>      >     Adi Mallikarjuna Reddy V wrote:
>>      >      > Hi all,
>>      >      >
>>      >      > Has any one tried out having an XML parser running on the
>>     sensor
>>      >     nodes
>>      >      > along with TinyOS/nesC? Something like TinyXMLParser,
>>     which can
>>      >      > interpret the XML messages that a node receives?.
>>      >      >
>>      >      > Any suggestions on this line would be of great helpful.
>>      >      >
>>      >      > Regards
>>      >      > Adi
>>      >      >
>>      >      > --
>>      >      > -----------------------------------------------
>>      >      > I was always alone in this world,
>>      >      > wanted to be loved,by someone.
>>      >      > I always had teary eyes,
>>      >      > wanted it to be wiped by someone.
>>      >      > --------------------------------------------------
>>      >
>>      >
>>      >
>>      >
>>      > --
>>      > -----------------------------------------------
>>      > I was always alone in this world,
>>      > wanted to be loved,by someone.
>>      > I always had teary eyes,
>>      > wanted it to be wiped by someone.
>>      > --------------------------------------------------
>>
>>
>>
>>
>> -- 
>> -----------------------------------------------
>> I was always alone in this world,
>> wanted to be loved,by someone.
>> I always had teary eyes,
>> wanted it to be wiped by someone.
>> --------------------------------------------------
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list