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;

Attachment: ProcessCmd.nc
Description: Cdf file

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

Attachment: CmdM.nc
Description: Cdf file

Attachment: Cmd.nc
Description: Cdf file

Attachment: ADCREFM.nc
Description: Cdf file

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

Reply via email to