Dear all,

 

I’m trying to compile a simple UDPbased-Shell application on a telosb
platform, like BLIP Tutorial describes, and I’ve got the following warnings
and errors:

 

mkdir -p build/telosb

    compiling HelloWorldBlipC to a telosb binary

ncc -o build/telosb/main.exe  -Os -O -DPACKET_LINK -DDEF_MEMCPY
-DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS
-DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.1.1/tos/lib/net/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/libtcp/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/shell/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/serial/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/platform/
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/opt/tinyos-2.1.1/tos/lib/net/blip/table.c -mdisable-hwmul
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-DIDENT_APPNAME=\"HelloWorldBlipC\" -DIDENT_USERNAME=\"lucia\"
-DIDENT_HOSTNAME=\"lucia-1001PXD\" -DIDENT_USERHASH=0xde990436L
-DIDENT_TIMESTAMP=0x4e71ee67L -DIDENT_UIDHASH=0x453130eeL
-I/usr/msp430/include -I/usr/lib/gcc-lib/msp430/3.2.3/include
HelloWorldBlipC.nc -lm 

In file included from /opt/tinyos-2.1.1/tos/lib/net/blip/UdpSocketC.nc:3,

                 from
/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellC.nc:30,

                 from HelloWorldBlipC.nc:10:

In interface `UDP':

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:16: warning: `struct
sockaddr_in6' declared inside parameter list

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:16: warning: its scope
is only this definition or declaration,

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:16: warning: which is
probably not what you want.

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:23: warning: `struct
sockaddr_in6' declared inside parameter list

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:23: warning: `struct
ip_metadata' declared inside parameter list

/opt/tinyos-2.1.1/tos/chips/msp430/usart/Msp430Spi0C.nc:62:2: warning:
#warning "Enabling SPI DMA on USART0"

/opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"

/opt/tinyos-2.1.1/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning:
#warning "*** USING PACKET LINK LAYER"

In file included from /opt/tinyos-2.1.1/tos/lib/net/blip/UdpC.nc:9,

                 from /opt/tinyos-2.1.1/tos/lib/net/blip/UdpSocketC.nc:6,

                 from
/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellC.nc:30,

                 from HelloWorldBlipC.nc:10:

In component `UdpP':

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc: In function `IP.recv':

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc:117: warning: passing argument 1
from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc:117: warning: passing argument 4
from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc: At top level:

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc:129: conflicting types for
`UDP.sendto'

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:16: previous
declaration of `UDP.sendto'

/opt/tinyos-2.1.1/tos/lib/net/blip/UdpP.nc:196: conflicting types for
`UDP.recvfrom'

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:23: previous
declaration of `UDP.recvfrom'

In file included from
/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellC.nc:31,

                 from HelloWorldBlipC.nc:10:

In component `UDPShellP':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`action_help':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:112: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:135: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`ShellCommand.write':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:146: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`action_echo':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:164: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`action_uptime':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:184: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`action_ident':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:189: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: At top level:

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:237: conflicting types
for `UDP.recvfrom'

/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/UDP.nc:23: previous
declaration of `UDP.recvfrom'

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`UDP.recvfrom':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:254: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:258: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`ICMPPing.pingReply':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:268: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc: In function
`ICMPPing.pingDone':

/opt/tinyos-2.1.1/tos/lib/net/blip/shell/UDPShellP.nc:275: warning: passing
argument 1 of `UDP.sendto' from incompatible pointer type

make: *** [exe0] Error 1

 

Anybody can help me? I have no idea what is the problem. The UDP  interface
and the UdpP and UDPShellP components, compile succesfully with another
applications like UPDEcho.

 

These are my configuration and module files:

 

HelloWorldBlipC.nc

 

                configuration HelloWorldBlipC {}

                implementation {

                               components UDPShellC, HelloWorldBlipP;

                               components new ShellCommandC(“hello”);

                               HelloWorldBlipP.ShellCommand ->
ShellCommandC;

                }

 

HelloWorldBlipP.nc

 

                module HelloWorldBlipP {

                               uses interface ShellCommand;

}

implementation{

                event char *ShellCommand.eval(int argc, char **argv){

                                char *ret = call ShellCommand.getBuffer(15);

                               if(ret!=NULL){

                                               strncpy(ret, “Hello,
World!\n”,15);

}

return ret;

}

}

 

Thanks in advance for your consideration.

 

Br,

Lucia.

 

 

De: Lucia Lopez Gonzalez [mailto:lgonza...@itg.es] 
Enviado el: Wednesday, September 14, 2011 12:12 PM
Para: 'tinyos-help@millennium.berkeley.edu'
Asunto: [Tinyos-help] [blip-users] Problems adding commands to UDP-Shell

 

Hi all,

 

I’m trying to the UDPbased-Shell in a similar application like Aldo Javier’s
one, and I’ve got the same error. 

 

Any idea what is it happening?  Javier, did you find a solution?

 

Thanks in advance for your consideration.

 

Regards,

Lucía López

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to