This was just a topic on help...search back a couple weeks.
Basically the temp sensor "on-switch" is shared with the micaz
radio receive interrupt...good design, eh? I think the solution
is to Start and Stop the temp sensor for each measurement.

The details about the conflict are in the revB User's Manual
MS


virginia estellers wrote:
Hi everyone!

I've got some trouble sensing temperature and battery voltage with
micaz and tinyos 1.x. I'm sending a message to my motes asking them to
measure temperature or voltage and sending back it's measure. The
problem is than after sensing the temperature (not with voltage) they
won't even understand any other message and notice reception. I've
been triyng to detect where's the problem, checking the interrupts,
setting correctly the ADC pins, adapting codes from
Surge_reliable...but i'm far away from succeding. Could someone help
me? I attach the code (wich does other things with the temperature
values, but never mind) so to be clearer.
Any comment would be most appreciated.
Thanks in advance

VirgĂ­nia


------------------------------------------------------------------------

/* * File Name: SimpleCmd.h
 *
 * Description:
 * This header file defines the AM_SIMPLECMDMSG and AM_LOGMSG message
 * types for the SimpleCmd and SenseLightToLog applications.
 */

enum {
 AM_SIMPLECMDMSG = 8,
};

enum {
  LED_ON = 1,
  LED_OFF = 2,
  SENSE  = 3,
  POWER = 4,
  RADIO = 6,
};

// SimpleCmd message structure
typedef struct SimpleCmdMsg {
    int8_t seqno;
    int8_t action;
    uint16_t source;
    uint8_t hop_count;
    uint16_t bat;
    float value;
} SimpleCmdMsg;


------------------------------------------------------------------------

COMPONENT=Cmd
SENSORBOARD=micasb
XBOWROOT=%T/../contrib/xbow/tos


PFLAGS= -I../../tos/platform/micaz -I%T/../beta/CC1000RadioAck 
-I../../tos/lib/ReliableRoute -I%T/lib/Queue -I%T/lib/Broadcast 
-I%T/lib/Attributes
PFLAGS= -I../../../beta/tos/lib/CC2420RadioAck -I../../tos/lib/ReliableRoute 
-I%T/lib/Queue -I%T/lib/Broadcast -I%T/lib/Attributes
include ../MakeXbowlocal
include $(TOSROOT)/tools/make/Makerules


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to