Your observation is correct. The default cc2420 stack does have issues with timestamping (under heavy load, in particular). The cc2420x stack should work, though. Based on the errors you're getting, you're using the default stack (tos/chips/cc2420). Make sure that you wire either against ActiveMessageC, TimeSyncMessageC, CC2420XTimeSyncMessageC or CC2420XActiveMessageC. Do _not_ wire CC2420ActiveMessageC.
Ctp should work: tests/TestNetwork compiles with "make telosb cc2420x". Those test applications that directly wire CC2420ActiveMessageC obviously exploit some features that are specific to the default cc2420 stack, and will not work without modifications with the cc2420x stack. Janos On Sat, Jul 16, 2011 at 10:22 PM, Xiaohui Liu <[email protected]> wrote: > Thanks. > What about packet-level time sync as stated in TEP133? Is there any known > issue of such time sync in the default cc2420 stack? I'm using it with CTP, > but sometimes it seems even TimeSyncPacket.isValid() returns true, the > timestamp seems to be invalid (this is detected by measurements such as time > interval close to 2 ^ 32 ms). Because packet-level time sync is based on > packet timestamping, so it should have issues as well, am I right? > The reason why I don't use cc2420x stack with CTP yet is that it constantly > prompts compilation error: > $/tinyos-2.1.x/tos/chips/cc2420/CC2420TimeSyncMessage.h:46: redefinition of > `nx_struct timesync_footer_t' > $/tinyos-2.1.x/tos/chips/cc2420/CC2420TimeSyncMessage.h:46: warning: tag > timesync_footer_t shadows enclosing struct/union/enum > $/tinyos-2.1.x/tos/chips/cc2420/CC2420TimeSyncMessage.h:49: conflicting > types for `timesync_footer_t' > $/tinyos-2.1.x/tos/lib/rfxlink/layers/TimeSyncMessageLayer.h:58: previous > declaration of `timesync_footer_t' > What changes are necessary to use packet-level time sync compatibly with > CTP? Thanks very much. > On Thu, Jun 16, 2011 at 2:53 PM, Janos Sallai <[email protected]> > wrote: >> >> Timestamping has known issues in the default cc2420 stack (telosb, >> micaz, etc.) under heavy load. Try using the cc2420x stack. Compile >> with "make telosb cc2420x". You'll need the latest sources from google >> code. >> >> Janos >> >> On Thu, Jun 16, 2011 at 1:34 PM, Xiaohui Liu <[email protected]> wrote: >> > I'm using the default one, I'm not sure how to use cc2420x. >> > >> > On Thu, Jun 16, 2011 at 1:50 PM, Janos Sallai >> > <[email protected]> >> > wrote: >> >> >> >> Is this the default cc2420 stack, or do you use cc2420x? >> >> >> >> Janos >> >> >> >> On Thu, Jun 16, 2011 at 10:49 AM, Xiaohui Liu <[email protected]> wrote: >> >> > Can anyone please give me some hint on what may be the cause? I'm >> >> > stuck >> >> > here. I really appreciate your assistance. >> >> > >> >> > On Wed, Jun 15, 2011 at 4:57 PM, Xiaohui Liu <[email protected]> >> >> > wrote: >> >> >> >> >> >> Telosb. >> >> >> >> >> >> On Wed, Jun 15, 2011 at 4:54 PM, Hamid Rafiei >> >> >> <[email protected]> >> >> >> wrote: >> >> >>> >> >> >>> Hi, >> >> >>> >> >> >>> What is the platform you are using? >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> Regards, >> >> >>> >> >> >>> >> >> >>> Hamid Rafiei Karkvandi >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> On Wed, Jun 15, 2011 at 2:36 PM, Xiaohui Liu <[email protected]> >> >> >>> wrote: >> >> >>>> >> >> >>>> Hi everyone, >> >> >>>> >> >> >>>> I'm using PacketTimeStamp interface to timestamp packet >> >> >>>> transmission >> >> >>>> and >> >> >>>> reception, but I find isValid() returns FALSE more than 90% of the >> >> >>>> time. Can >> >> >>>> anyone help me understand what may go wrong? I'm timestamping in >> >> >>>> sendDone() >> >> >>>> and receive() event only and sending 1 packet per second. Any help >> >> >>>> is >> >> >>>> appreciated. >> >> >>>> -- >> >> >>>> -Xiaohui Liu >> >> >>>> >> >> >>>> _______________________________________________ >> >> >>>> Tinyos-help mailing list >> >> >>>> [email protected] >> >> >>>> >> >> >>>> >> >> >>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> -Xiaohui Liu >> >> > >> >> > >> >> > >> >> > -- >> >> > -Xiaohui Liu >> >> > >> >> > _______________________________________________ >> >> > Tinyos-help mailing list >> >> > [email protected] >> >> > >> >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> > >> > >> > >> > >> > -- >> > -Xiaohui Liu >> > > > > > -- > -Xiaohui Liu > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
