[Tinyos-help] Re: micaz and Listen application

Tatiana Bokareva tbokareva at cse.unsw.edu.au
Mon Mar 28 12:48:34 PST 2005


Hello Raghu,
Thank you for your reply. Looks like you are right. I try to run the 
Oscilloscope application and the Listen program again and this is what I 
get:
serial at COM5:57600: resynchronising
TOS_Msg length is invalid: header_length=136,real_length=31 ... modifying 
msg to fit
Received message:7E 00 0A 88 1A 02 00 C8 00 01 00 9C 01 AD 01 D5 01 9E 01 
A8 01
D8 01 A3 01 A5 01 D8 01 A8 01
15 00 0A 88 1A 02 00 C8 00 01 00 9C 01 AD 01 D5 01 9E 01 A8 01 D8 01 A3 01 
A5 01 D8 01 A8 01

Do any one have a clue how to fix this problem for micaz. I looked for it 
in the archives and the sujestion on adding MSG_SIZE=31 into the 
Makefile did not worked.

Is there are complete explanation somewhere on how to run tinyos on 
redhat 9 for micaz? What changes do I need to make in what files?

Regards Tatiana.

On Sat, 26 Mar 2005, Raghu Ganti wrote:

> Hi
> 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
>
> Raghu
>
>
>
>> 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="TOSBase"
>> -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