[Tinyos-help] signed/unsigned packet byte

2006-03-01 Thread davisj2
Hey all,
  In trying to decipher the TOS packet via "java net.tinyos.tools.Listen" using
the XSensorMTS400 application, I have run into a problem.

When converting the packet data, they are in type byte, and I need these in
floats to do the conversions, and for some i need to concat two bytes,  However,
are these raw hex values signed or unsigned values??? so when i convert, i need
to know this.  THanks in advance:)

Josh

-
This mail sent through IMP: http://horde.org/imp/
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] signed/unsigned packet byte

2006-03-01 Thread Gregory A. Moore

Josh,

The Listen application returns the packets in signed bytes.  Since Java 
does not have an unsigned type, you will have to crete the conversion 
methods yourself.  They are not hard and shouldn't take that much time.
You will have to convert from signed byte to Hex and then probably back 
to unsigned ints in order for you to deal with the data that is 
returned from the TestMTS400 applications.



Greg


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help