Janos,

I have been searching more deeper in your code, I noticed that
VUMAKERULES/VUTOSDIR in my system was with errors. Once solved I have
tried to compile again:

make telosb

mkdir -p build/telosb
    compiling TestPacketTimestampAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/chips/cc2420x  
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa  
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x  
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/msp430/usart  
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/msp430/timer  
-I/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/lib/misc   
-I/opt/tinyos-2.1.1/tos/lib/diagmsg  -I/opt/tinyos-2.1.1/tos/chips/rf2xx/util  
-I/opt/tinyos-2.1.1/tos/chips/rf2xx/layers  -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=0x4daec9d9L 
-DIDENT_UIDHASH=0x74fa7656L -I/usr/msp430/include 
-I/usr/lib/gcc-lib/msp430/3.2.3/include  TestPacketTimestampAppC.nc -lm 
In file included
from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/TimeSyncMessageC.nc:49,

from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/ActiveMessageC.nc:54,
               from TestPacketTimestampAppC.nc:6:
In component `Cc2420XTimeSyncMessageC':
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:49:
 component CC2420XActiveMessageC not found
In file included
from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/TimeSyncMessageLayerC.nc:70,

from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:49,

from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/TimeSyncMessageC.nc:49,

from 
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/platforms/telosa/ActiveMessageC.nc:54,
                 from TestPacketTimestampAppC.nc:6:
In component `Cc2420XActiveMessageC':
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:64:
 component CC2420XRadioC not found
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:66:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:68:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:69:
 cannot find `Receive'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:70:
 cannot find `Snoop'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:71:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:73:
 cannot find `PacketForActiveMessage'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:74:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:76:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:77:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:79:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:82:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:84:
 cannot find `PacketLinkQuality'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:85:
 cannot find `PacketTransmitPower'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:86:
 cannot find `PacketRSSI'
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:88:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:89:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:90:
 no match
In component `TimeSyncMessageLayerC':
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XActiveMessageC.nc:30:
 warning: expected component `Cc2420XActiveMessageC', but got component 
'CC2420XActiveMessageC'
In component `Cc2420XTimeSyncMessageC':
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:68:
 component CC2420XDriverLayerC not found
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:51:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:57:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:61:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:65:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:66:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:70:
 no match
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:71:
 cannot find `PacketTimeSyncOffset'
In component `TimeSyncMessageC':
/home/kerbero/repo/tinyos-2.x-contrib/vu/tos/chips/cc2420x/Cc2420XTimeSyncMessageC.nc:26:
 warning: expected component `Cc2420XTimeSyncMessageC', but got component 
'CC2420XTimeSyncMessageC'
make: *** [exe0] Error 1
kerbero@kerbero-Aspire-5630:~/repo/tinyos-2.x-contrib/vu/apps/TestPacketTimestamp$
 




Nevertheless, If I compile it using, i.e., "make telosa", the code
compiles correctly.

Sorry to ask so many questions :(, I'm starting with TinyOS. 


Jose.


El mié, 20-04-2011 a las 12:13 +0200, Jose María Castillo Secilla
escribió:
> 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

Reply via email to