Dear Janos,
thanks for your reply. The code works perfectly if I use it as follow:
interface PacketTimeStamp<T32khz,uint32_t>;
or
interface PacketTimeStamp<TMilli,uint32_t>;
but If I use...
interface PacketTimeStamp<TMicro,uint32_t>;
The system reports the follow at compiling time:
kerbero@kerbero-Aspire-5630:~/repo/tinyos-2.x-contrib/vu/apps/TestPacketTimestamp$
make telosb
mkdir -p build/telosb
compiling TestPacketTimestampAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -fnesc-separator=__
-Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c
-board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"TestPacketTimes\"
-DIDENT_USERNAME=\"kerbero\" -DIDENT_HOSTNAME=\"kerbero-Aspire-\"
-DIDENT_USERHASH=0xfad67c9fL -DIDENT_TIMESTAMP=0x4daeaf89L
-DIDENT_UIDHASH=0x472c846cL -I/usr/msp430/include
-I/usr/lib/gcc-lib/msp430/3.2.3/include TestPacketTimestampAppC.nc -lm
/opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
#warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
In component `TestPacketTimestampAppC':
TestPacketTimestampAppC.nc:19: no match
make: *** [exe0] Error 1
I set the enviroment variable
VUMAKERULES=/home/kerbero/repo/tinyos-2.x-contrib/vu/support/make/Makerules
I think that I have to change something more in my code...
Regards,
Jose.
El mar, 19-04-2011 a las 14:37 -0500, Janos Sallai escribió:
> Jose,
>
> Use the TestPacketTimeSync app. There is a readme file there that
> describes how to run it and what the resulting data means.
>
> http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/vu/apps/TestPacketTimeSync/README.txt
>
> Janos
>
> 2011/4/19 Jose María Castillo Secilla <[email protected]>:
> > Hi there!,
> >
> > thanks for your reply. I am in the /tinyos/vu/ directory. I have read the
> > source code and it appears that the synchronization application is
> > TestPacketTimestamp. Is it correct?
> >
> > Could you say to me the test scenario to use your application?
> >
> > Thank you again,
> > best regards,
> > Jose.
> >
> >
> >
> > El 18/04/2011 17:30, Janos Sallai escribió:
> >>
> >> Hi there,
> >>
> >> I have the code in tinyos-2.x-contrib/vu/. I wrote it quite some time
> >> ago, so it is not guaranteed to work out of the box, but if you're
> >> familiar with TinyOS, you should be able to get it up and running.
> >>
> >> Janos
> >>
> >> 2011/4/15 Jose María Castillo Secilla<[email protected]>:
> >>>
> >>> Dear Janos,
> >>>
> >>> I am a PhD Student at the University of Cordoba in Spain. I am working
> >>> with
> >>> the FTSP algorithm with milliseconds accuracy, but I need use it with
> >>> microseconds accuracy. My motes are TelosB, but I see that there is not
> >>> any
> >>> implementation of FTSP with microseconds accuracy. My question is the
> >>> follow, Do you know if I can to obtain microsecond accuracy?
> >>>
> >>> I have tried the follow:
> >>>
> >>> In "/tos/platforms/telosa/ActiveMessageC.nc" I have written:
> >>>
> >>> interface PacketTimeStamp<TMicro, uint32_t> as PacketTimeStampMicro;
> >>>
> >>> but I obtain a compilation error:
> >>>
> >>> "In component 'ActiveMessageC':
> >>> /opt/tinyOS-2.1.1/tos/platforms/telosa/ActiveMessageC.nc: 81: no math"
> >>>
> >>> I think that the cc2420 files needs to be modified to do this. Could you
> >>> give me some help?
> >>>
> >>> Thanks,
> >>> best regards,
> >>>
> >>> --
> >>> Jose María Castillo Secilla
> >>> ____________________________
> >>> Departamento Arquitectura de Computadores,
> >>> Electrónica y Tecnología Electrónica
> >>> Edf. Leonardo Da Vinci
> >>> Campus de Rabanales
> >>> Universidad de Córdoba
> >>> E-14071 Córdoba (España)
> >>> Tlf: +34 957 212039 (ext 6)
> >>> e-mail: [email protected]
> >>>
> >>>
> >
> >
> > --
> > Jose María Castillo Secilla
> > ____________________________
> > Departamento Arquitectura de Computadores,
> > Electrónica y Tecnología Electrónica
> > Edf. Leonardo Da Vinci
> > Campus de Rabanales
> > Universidad de Córdoba
> > E-14071 Córdoba (España)
> > Tlf: +34 957 212039
> > e-mail: [email protected]
> >
> >
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help