It is quite likely that you have an MTS310CB board (look for a jumper wire on the bottom-side of the sensor board). The MTS310CA uses INT2 for temperature power control where as the CB version uses PW0. It sounds like you are using CA code on CB hardware and hence the Temp sensor never gets turned on and returns 0. The software modification involves changing one line of code. In sensorboard.h file of the app, change TOSH_ALIAS_PIN(TEMP_CTL, INT2) to TOSH_ALIAS_PIN(TEMP_CTL, PW0) Recompile and reprogram the Mote attached to the Mote. You should be able to read the correct temperature value now. I hope that helps, Giri
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oussama Chougna Sent: Friday, June 01, 2007 12:51 AM To: 'Monica Bell'; tinyos-help@Millennium.Berkeley.EDU Subject: RE: [Tinyos-help] (no subject) I mean the ADChannel input that you are reading is grounded. Sorry, Chougna ________________________________ From: Oussama Chougna [mailto:[EMAIL PROTECTED] Sent: vrijdag 1 juni 2007 9:40 To: 'Monica Bell'; 'tinyos-help@Millennium.Berkeley.EDU' Subject: RE: [Tinyos-help] (no subject) Sounds like your temperature sensor output is grounded on the board? ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Monica Bell Sent: vrijdag 1 juni 2007 4:03 To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] (no subject) Dear all, I am having some problem with the temperature sensor value that I am getting from MTS310 sensorboard. I am using Crossbow's contrib/xbow/apps/XSensorMTS300 application. This application reads , among other things, the temperature sensor value. My problem is I always get 0 from Temperature.dataReady(uint16_t data) event. Please note that I am using micaz and tinyos 1.1.11. But when I remove the MTS310 board from the micaz mote, the temperature reading that I get is not 0. Please let me know what I am missing here. Thanks a lot, Monica ________________________________ Get your own web address. <http://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains /?p=BESTDEAL> Have a HUGE year through Yahoo! Small Business.
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help