Hi Emanuele,

the sniffer code in contrib has not been updated to match the recent changes
in the CC2420 driver. We currently don't have plans to further maintain that
part of the code.  Essentially the apps/BaseStation15.4 in the main tree
should be used instead, but it lacks channel switching support at the
moment. The wireshark dissectors should still be ok.

Vlado


On Tue, Sep 15, 2009 at 14:01, Emanuele Toscano <[email protected]> wrote:

> Hi to everyone,
> I'm trying to install the PacketSniffer_802_15_4 from
> /tinyos-2.x-contrib/tub but I'm having some problems.
> I'm using the Xubuntos distro in a VMware virtual machine. I installed
> both the "tinyos-2.x" and "tinyos-2.x-contrib" projects from CVS and
> edited the ".bash_tinyos", so that I'm able to compile the apps in the
> "tinyos-2.x/apps" folder.
> However, when I go in the
> "tinyos-2.x-contrib/tub/apps/PacketSniffer_802_15_4" folder and
> execute the "make telosb install" command, I receive the following
> error:
>
> mkdir -p build/telosb
>    compiling Sniff802154C to a telosb binary
> ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
> -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
> -DDEFINED_TOS_AM_GROUP=0x22 -DTOSH_DATA_LENGTH=128
> -DCC2420_NO_ACKNOWLEDGEMENT -DCC2420_NO_ADDRESS_RECOGNITION
> -DIDENT_PROGRAM_NAME=\"Sniff802154C\" -DIDENT_USER_ID=\"xubuntos\"
> -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
> -DIDENT_UNIX_TIME=0x4aaf7e09L -DIDENT_UID_HASH=0xa8bff954L
> Sniff802154C.nc -lm
> In file included from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:50,
>                 from Sniff802154C.nc:5:
> In component `CC2420ReceiveP':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc:65:
> syntax error before `T32khz'
> In file included from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:50,
>                 from Sniff802154C.nc:5:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc:
> In function `RXFIFO.readDone':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc:624:
> `PacketTimeStamp' undeclared (first use in this function)
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc:624:
> (Each undeclared identifier is reported only once
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc:624:
> for each function it appears in.)
> In file included from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:51,
>                 from Sniff802154C.nc:5:
> In component `CC2420PacketC':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc: At
> top level:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:46:
> syntax error before `T32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:47:
> syntax error before `TMilli'
> In file included from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:54,
>                 from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:51,
>                 from Sniff802154C.nc:5:
> In component `CC2420PacketP':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:51:
> syntax error before `T32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:52:
> syntax error before `TMilli'
> In file included from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:54,
>                 from
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:51,
>                 from Sniff802154C.nc:5:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:130:
> unknown interface `PacketTimeStamp32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:135:
> unknown interface `PacketTimeStamp32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:140:
> unknown interface `PacketTimeStamp32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:146:
> unknown interface `PacketTimeStamp32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:154:
> unknown interface `PacketTimeStampMilli'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: In
> function `PacketTimeStampMilli.isValid':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:155:
> `PacketTimeStamp32khz' undeclared (first use in this function)
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: At
> top level:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:161:
> unknown interface `PacketTimeStampMilli'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: In
> function `PacketTimeStampMilli.timestamp':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:162:
> `PacketTimeStamp32khz' undeclared (first use in this function)
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: At
> top level:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:168:
> unknown interface `PacketTimeStampMilli'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: In
> function `PacketTimeStampMilli.clear':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:169:
> `PacketTimeStamp32khz' undeclared (first use in this function)
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: At
> top level:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:173:
> unknown interface `PacketTimeStampMilli'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc: In
> function `PacketTimeStampMilli.set':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:175:
> `PacketTimeStamp32khz' undeclared (first use in this function)
> In component `CC2420PacketC':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc: At
> top level:
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:59:
> cannot find `PacketTimeStamp32khz'
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:60:
> cannot find `PacketTimeStampMilli'
> In component `CC2420ReceiveC':
> /home/xubuntos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:78:
> cannot find `PacketTimeStamp'
> make: *** [exe0] Error 1
>
> I pinpoint also that, before installing the CVS version of
> tinyos+contrib, I tried the version contained in the Xubuntos 2.1
> distro, but I got nearly the same output.
> If someone can help me I would really appreciate.
>
> Thanks in advance
> Emanuele
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to