Hi,

I have written a simple program to send and receive messages among two or
more nodes and the program works fine. However when I add the low power
sensing flag as *CFLAGS += -DLOW_POWER_LISTENING *to the makefile, the
program stops communicating and no messages are sent or received.

I have attached the source code that I have been using. The program works
fine on commenting out the CFLAGS statement from the makefile. However I
need to analyse the communication in energy aware scenarios so need LPL to
work. Please help!!

Thanks & Regards,
Nivedita Datta
#ifndef BLINKTORADIO_H
#define BLINKTORADIO_H


 enum {
   TIMER_PERIOD_MILLI = 250
 };
 
typedef nx_struct ctr{
nx_uint8_t counter[16];

} ctr;
typedef nx_struct BlinkToRadioMsg {
  nx_uint16_t nodeid;
  ctr counter_;
} BlinkToRadioMsg;

#endif

Attachment: BlinkToRadioAppC.nc
Description: Cdf file

Attachment: BlinkToRadioC.nc
Description: Cdf file

Attachment: Makefile
Description: Binary data

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

Reply via email to