I am having the problem of mts300's photo sensor always returning zero (in
tinyos-2.x). Can it's reason be related to this PW / Int issue? The code for
mts300 uses Int, but I had to change it to PW to compile. I know this is not
a good idea, so how do I see if everything is ok? The souder works fine, the
temperature prevents leds from working...

2007/6/1, Giri Baleri <[EMAIL PROTECTED]>:

 It is quite likely that you have an MTS310C*B* 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'; [email protected]
*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'; '[email protected]'
*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:* [email protected]
*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
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
"Segmentation Fault"
             ...de onde concluímos que a falha de segmentação é
ninfomaníaca.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to