hi all.... i am working on tmote-sky modules..my requirement is to sample two 50Hz signals at 1kHz through external ADC ports...and calculating a value(which is the multiplication of both the external sensors data) over 100 samples and sending tht value (means need to send 10 samples/sec using MULTIHOP technique)...i hav prepared my application ..it was sending the data only for a short interval of time..can u please suggest me what might be the reasons for sending the data only for a short duration...???
I wil be thankful to you .. can u please give me the reason(bug),why it is stop sending the data after some time..here i am attaching my code..please hav a look at my code..i hav been struggling with this problem from the last one month..i hope u wil help me...pls..!!
#include "MultiHop.h"
enum
{
TOS_ADC_my1_PORT = unique("ADCPort"),
TOSH_ACTUAL_ADC_my1_PORT = ASSOCIATE_ADC_CHANNEL(
INPUT_CHANNEL_A0,
REFERENCE_VREFplus_AVss,
REFVOLT_LEVEL_1_5
),
TOS_ADC_my2_PORT = unique("ADCPort"),
TOSH_ACTUAL_ADC_my2_PORT = ASSOCIATE_ADC_CHANNEL(
INPUT_CHANNEL_A1,
REFERENCE_VREFplus_AVss,
REFVOLT_LEVEL_1_5
),
AM_COUNTMSG = 12
};
typedef struct
{
//uint16_t reading1;
//uint16_t reading2;
uint32_t sum;
uint32_t sum1;
uint16_t src;
uint16_t parent;
//uint8_t neighborsize;
//uint8_t retransmissions;
//uint16_t neighbors[MHOP_PARENT_SIZE];
//uint16_t quality[MHOP_PARENT_SIZE];
}CountMsg_t;
extADC3pC.nC
Description: Cdf file
extADC3pM.nC
Description: Cdf file
VALID_PLATFORMS = telos telosa telosb tmote VALID_TARGETS = $(VALID_PLATFORMS) clean help ifeq ($(filter $(VALID_TARGETS),$(MAKECMDGOALS)),) $(error ERROR: Invalid platform! Valid platforms: $(VALID_PLATFORMS)) endif COMPONENT = extADC3pC DEFAULT_LOCAL_GROUP = 0x32 include $(MAKERULES)
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
