[Tinyos-help] Re: micaz and Listen application

Raghu Ganti raghukiran at gmail.com
Sat Mar 26 05:47:20 PST 2005

 There could be several problems of you not receiving data, here are a
few I know of:
1. Check if the programming board's switch is set to "off" position,
else it will not receive any data.
2. If you access a null pointer, ex. if you have an array A[3] and u
access A[4], the appln will run as if everything's fine, but you will
not receive any data, even for that matter, if you toggle leds in the
Send, it will be as if everything is correct!
3. In case the TOSH_DATA_LENGTH differs betn the 2 applns, then too
you wil not receive any data.

Hope this helps


> Hello,
> I compile the OscilloscopeRF for micaz. It appears to be working, i.e
> yellow light is flashing. I have also compile the TOSBase for the micaz.
> However when I run the
> java net.tinyos.tools.Listen
> I get :
>   serial at COM5:57600: resynchronising
> And no data:(
> Below is the output of the compilation of the TOSBase program:
> make micaz install mib510,/dev/ttyS4
> mkdir -p build/micaz
>      compiling TOSBase to a micaz binary
> ncc -o build/micaz/main.exe -Os -I%T/lib/Counters
> -I%T/../contrib/xbow/tos/platform/micaz -finline-limit=100000 -Wall
> -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz
> -fnesc-cfile=build/micaz/app.c -board=micasb
> -DIDENT_PROGRAM_NAME_BYTES="84,79,83,66,97,115,101,0"
> -DIDENT_USER_ID="root" -DIDENT_USER_ID_BYTES="114,111,111,116,0"
> -DIDENT_HOSTNAME="barramundi"
> -DIDENT_HOSTNAME_BYTES="98,97,114,114,97,109,117,110,100,105,0"
> -DIDENT_USER_HASH=0x08351af7L -DIDENT_UNIX_TIME=0x4243cd96L
> -I/tinyos-1.x/tos/lib/CC2420Radio T
> OSBase.nc -lm
> /tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: warning:
> `CCATimer.start' called asynchronously from `CCA.startWait'
> /tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:115: warning:
> `Send.sendDone' called asynchronously from `sendFailed'
>      compiled TOSBase to build/micaz/main.exe
>             10110 bytes in ROM
>              1450 bytes in RAM
> avr-objcopy --output-target=srec build/micaz/main.exe
> build/micaz/main.srec
> avr-objcopy --output-target=ihex build/micaz/main.exe
> build/micaz/main.ihex
>      writing TOS image
> cp build/micaz/main.srec build/micaz/main.srec.out
>      installing micaz binary using mib510
> uisp -dprog=mib510 -dserial=/dev/ttyS4 --wr_fuse_h=0xd9 -dpart=ATmega128
> --wr_fuse_e=ff  --erase --upload if=build/micaz/main.srec.out
> Firmware Version: 2.1
> Atmel AVR ATmega128 is found.
> Uploading: flash
> Fuse High Byte set to 0xd9
> Fuse Extended Byte set to 0xff
> rm -f build/micaz/main.exe.out build/micaz/main.srec.out
> Any ideas where should I go next?
> Regards Tatiana.

More information about the Tinyos-help mailing list