It looks to me that the TOSMsg.data byte offsets are defined in the enum
at the top of TestSensorM.nc:
enum { SENSOR_ID = 0, PACKET_ID, NODE_ID=2, RSVD,
VREF=4, THERM =6, PHOTO = 8, MIC = 10,
ACCEL_X=12, ACCEL_Y=14, MAG_X=16, MAG_Y=18 };
and that the results are stuck into, e.g., ACCEL_X, in the various
dataReady() methods in that file.
It _could_ have been more confusing, I admit, but why bother?
MS
nandy jones wrote:
Hi ,
Thanks for those who have taken time to reply my last mail...sorry
for troubling again but i have one more querry.....I have been working
on the following application......about which most of them should be
familier...
Ø To test sensor boards:
o First make sure that you are in the directory:
/opt/tinyos-1.x/contrib./xbow/apps
o Go to XSensorMTS300 (or MTS400 based on the sensor you are using)
o Load sensor board on a mote that is uploaded with the right
XSensor application. use the command:
MIB510=COM1 make mica2 install.<nodeid>
o Turn the mote on.
o Load a mote on the MIB, turn it off, load it with TOSBase (from
apps/TOSBase folder) using:
MIB510=COM1 make mica2 install.<nodeid>
o Run from /usr/local/bin the following:
xlisten -r -p -c -b=mica2 -s=com1 –w
for which i got the following as one of the outputs...now i want to
know which bytes are for which measurement...where can i get the
information about which bytes are for Light...Temp...Batery...Mic...etc
and how are the conversions being done..??
Is there any Manual or any document where it
specifies /clearly explains which bytes are being used for the
measurements...??
7e42ffff007d5d1d84010100b0010d028d03e601e60149014901c8000000000000000000009105
[39]
mts310 id=01 vref= 1b0 thrm=020d light=038d mic=01e6
accelX=01e6 accelY=0149 magX=0149 magY=00c8
MTS310 [sensor data converted to engineering units]:
health: node id=1 parent=0
battery: = 2898 mv
temperature=26.10 degC
light: = 2575 ADC mv
mic: = 486 ADC counts
AccelX: = 720.000000 milliG, AccelY: = -2420.000000 milliG
MagX: = 44.43 mgauss, MagY: =27.01 mgauss
I would really appreciate if someone could spare sometime
and reply back .....i am thankful to those who have replied to my
earlier mail.
Thanks in Advance.
nandy J
------------------------------------------------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com>
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help