Hi there,

  I got CoAP running on my 2 Z1 motes on Contiki (border router + CoAP
rest server), and am now trying out the TinyOS equivalent according
to:

[1] http://docs.tinyos.net/tinywiki/index.php/CoAP
[2] http://docs.tinyos.net/tinywiki/index.php/BLIP_2.0_Tutorial
[3] http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0

Environment:
- Debian 6.0.3 VM
- running TinyOs trunk r5889
- more simple apps are working fine (e.g. Blink)
- all default settings for PppRouter and CoapBlip, except for Z1
adjustments as in [3] (compile output below)

Symptoms:
- CoAP transmissions fail (echo -e -n \\x02 | ./coap-client -m put
coap://[fec0::3]:61616/l -T 3a -t binary -f -)
- ping6 fec0::1 is ok, fec0::3 is not
- added printf()s to the CoAP server: the message handler is not triggered
- logs below - should I be seeing "radio startDone" or other in the
CoapBlip output?

Any ideas or suggestions on how to debug further?

thanks,
sd

=====
PppRouter mote serial output
=====
/dev/ttyUSB0: Device or resource busy

=====
CoapBlip mote serial output
=====
init()
init: port 61616
booted 3 start

=====
PPP setup
=====
# pppd debug passive noauth nodetach 115200 /dev/ttyUSB0 nocrtscts
nocdtrcts lcp-echo-interval 0 noccp noip ipv6 ::23,::24
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x56aea37a> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0xb <mru 1280> <asyncmap 0x0> <accomp>]
sent [LCP ConfAck id=0xb <mru 1280> <asyncmap 0x0> <accomp>]
rcvd [LCP ConfRej id=0x1 <magic 0x56aea37a> <pcomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <accomp>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::0000:0000:0000:0023>]
rcvd [IPV6CP ConfReq id=0x1 <addr fe80::0000:0000:0000:0000>]
sent [IPV6CP ConfNak id=0x1 <addr fe80::0000:0000:0000:0024>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::0000:0000:0000:0023>]
rcvd [IPV6CP ConfReq id=0x2 <addr fe80::0000:0000:0000:0000>]
sent [IPV6CP ConfNak id=0x2 <addr fe80::1853:a997:4316:1ad3>]
rcvd [IPV6CP ConfReq id=0x3 <addr fe80::0000:0000:0000:0024>]
sent [IPV6CP ConfAck id=0x3 <addr fe80::0000:0000:0000:0024>]
local  LL address fe80::0000:0000:0000:0023
remote LL address fe80::0000:0000:0000:0024
Script /etc/ppp/ipv6-up started (pid 7340)
Script /etc/ppp/ipv6-up finished (pid 7340), status = 0x0
# ifconfig ppp0 add fec0::100/64

=====
PppRouter compile & install
=====
$ make z1 blip install bsl,/dev/ttyUSB0
mkdir -p build/z1
    compiling PppRouterC to a z1 binary
ncc -o build/z1/main.exe  -Os -DRPL_ROUTING -DRPL_STORING_MODE
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/rpl
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/ppp
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/fragpool
-DPPP_HDLC_RX_FRAME_LIMIT=1 -DPPP_HDLC_TX_FRAME_LIMIT=8
-DIN6_PREFIX=\"fec0::\" -DROUTE_TABLE_SZ=3 -DMAX_PARENT=1
-DCC2420_HW_ACKNOWLEDGEMENTS  -DCC2420_HW_ADDRESS_RECOGNITION
-DPACKET_LINK -DTOSH_DATA_LENGTH=112
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/printf/
-I/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/interfaces/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/nwprog/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/shell/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/serial/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/platform/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/icmp/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/dhcp/
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/iovec.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/in_cksum.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/utility.c
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/table.c -mdata-64k
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=z1
-fnesc-cfile=build/z1/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-DIDENT_APPNAME=\"PppRouterC\" -DIDENT_USERNAME=\"stewy\"
-DIDENT_HOSTNAME=\"d6\" -DIDENT_USERHASH=0x3741c59cL
-DIDENT_TIMESTAMP=0x4f3a9781L -DIDENT_UIDHASH=0x113d1cbcL
PppRouterC.nc -lm
/home/stewy/work/GIT/tinyos-fork/tos/chips/cc2420/lpl/DummyLplC.nc:39:2:
warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/home/stewy/work/GIT/tinyos-fork/tos/chips/cc2420/link/PacketLinkC.nc:38:2:
warning: #warning "*** USING PACKET LINK LAYER"
/home/stewy/work/GIT/tinyos-fork/tos/chips/msp430/pins/HplMsp430Interrupt.nc:
In function `DefaultHdlcUartP__streamFeeder_task__runTask':
/home/stewy/work/GIT/tinyos-fork/tos/lib/ppp/DefaultHdlcUartP.nc:120:
warning: `loadable_endp' might be used uninitialized in this function
    compiled PppRouterC to build/z1/main.exe
           45484 bytes in ROM
            8146 bytes in RAM
msp430-objcopy --output-target=ihex build/z1/main.exe build/z1/main.ihex
    writing TOS image
cp build/z1/main.ihex build/z1/main.ihex.out
    installing z1 binary using bsl
tos-bsl --z1 -c /dev/ttyUSB0 -r -e -I -p build/z1/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 2.13 (Device ID: f26f)
Changing baudrate to 38400 ...
Program ...
45548 bytes programmed.
Reset device ...
rm -f build/z1/main.exe.out build/z1/main.ihex.out

=====
CoapBlip compile & install
=====
$ make z1 blip coap install,3 bsl,/dev/ttyUSB1
mkdir -p build/z1
    compiling CoapBlipC to a z1 binary
ncc -o build/z1/main.exe  -Os -DRPL_ROUTING -DRPL_STORING_MODE
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/rpl
-DIN6_PREFIX=\"fec0::\" -DCC2420_HW_ACKNOWLEDGEMENTS
-DCC2420_HW_ADDRESS_RECOGNITION -DPACKET_LINK -DTOSH_DATA_LENGTH=112
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/printf/
-I/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/interfaces/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/nwprog/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/shell/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/serial/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/platform/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/icmp/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/dhcp/
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/iovec.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/in_cksum.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/blip/lib6lowpan/utility.c
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/blip/table.c
-DBIG_ENDIAN=4321 -DLITTLE_ENDIAN=1234 -DBYTE_ORDER=LITTLE_ENDIAN
-DNDEBUG=1 -I/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/
-I/home/stewy/work/GIT/tinyos-fork/tos/lib/app/coap/interfaces/
-I/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/tinyos_net.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/encode.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/list.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/net.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/pdu.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/str.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/subscribe.c
/home/stewy/work/GIT/tinyos-fork/support/sdk/c/coap/uri.c -mdata-64k
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=z1
-fnesc-cfile=build/z1/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-Ibuild/z1 -DNEW_PRINTF_SEMANTICS -DPRINTFUART_ENABLED
-DCOAP_SERVER_ENABLED -DCOAP_SERVER_PORT=61616L -DMAX_URI_LENGTH=5
-DNUM_URIS=1 -DCOAP_RESOURCE_LED -DCOAP_PREACK_TIMEOUT=500
-DCOAP_CLIENT_PORT=61617L -DCOAP_CLIENT_DEST=\"fec0::100\" -I.
-DIDENT_APPNAME=\"CoapBlipC\" -DIDENT_USERNAME=\"stewy\"
-DIDENT_HOSTNAME=\"d6\" -DIDENT_USERHASH=0x3741c59cL
-DIDENT_TIMESTAMP=0x4f3a964fL -DIDENT_UIDHASH=0x44cb6655L
CoapBlipC.nc -lm
In file included from CoapBlipP.nc:41:
/home/stewy/work/GIT/tinyos-fork/tos/chips/msp430/x2xxx/usci/PrintfUART.h:82:2:
warning: #warning including printfZ1
/home/stewy/work/GIT/tinyos-fork/tos/chips/cc2420/lpl/DummyLplC.nc:39:2:
warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/home/stewy/work/GIT/tinyos-fork/tos/chips/cc2420/link/PacketLinkC.nc:38:2:
warning: #warning "*** USING PACKET LINK LAYER"
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:293:2:
warning: #warning "CoAP Resource .wellknown/core disabled. Add CFLAGS
+= -DINCLUDE_WELLKNOWN to Makefile, if you want it included."
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:496:2:
warning: #warning "FIXME: CoAP: subscriptions not yet implemented"
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:803:2:
warning: #warning "FIXME: CoAP: putDoneDeferred not yet implemented"
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:809:2:
warning: #warning "FIXME: CoAP: POST method not yet implemented"
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:816:2:
warning: #warning "FIXME: CoAP: DELETE method not yet implemented"
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:482:
warning: call via function pointer
/home/stewy/work/GIT/tinyos-fork/tos/lib/net/coap/CoapUdpServerP.nc:714:
warning: call via function pointer
    compiled CoapBlipC to build/z1/main.exe
           49666 bytes in ROM
            8032 bytes in RAM
msp430-objcopy --output-target=ihex build/z1/main.exe build/z1/main.ihex
    writing TOS image
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump
--target ihex build/z1/main.ihex build/z1/main.ihex.out-3
TOS_NODE_ID=3 ActiveMessageAddressC__addr=3
    installing z1 binary using bsl
tos-bsl --z1 -c /dev/ttyUSB1 -r -e -I -p build/z1/main.ihex.out-3
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 2.13 (Device ID: f26f)
Changing baudrate to 38400 ...
Program ...
49730 bytes programmed.
Reset device ...
rm -f build/z1/main.exe.out-3 build/z1/main.ihex.out-3
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to