Re: [Tinyos-help] Serial problem testing deluge TOS 2.x

2007-10-18 Thread Luis Miguel López Ramos
Hi

Here it is. Thank you for helping us.

[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tests/deluge/Blink$ ./burn
/dev/ttyUSB0 micaz
rm -rf build
rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py
 Compile and load Blink

mkdir -p build/micaz
tos-storage-at45db /opt/tinyos-2.x/tos/platforms/micaz
build/micaz/StorageVolumes.h || rm -f
build/micaz/StorageVolumes.h
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=10 -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-Ibuild/micaz -DDELUGE_BASESTATION -DDELUGE_BASESTATION -DDELUGE
-I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/Deluge
-I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/avr
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/mica2
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x47157635L -DIDENT_UID_HASH=0x94dcc068L
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
compiled BlinkAppC to build/micaz/main.exe
   30448 bytes in ROM
 925 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/ttyUSB0 --wr_fuse_h=0xda -dpart=ATmega128
--wr_fuse_e=ff  --erase --upload if=build/micaz/main.srec.out
Firmware Version: 1.8
Atmel AVR ATmega128 is found.
Uploading: flash

Fuse High Byte set to 0xda

Fuse Extended Byte set to 0xff
rm -f build/micaz/main.exe.out build/micaz/main.srec.out
installing micaz bootloader using mib510
uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xda -dpart=ATmega128
--wr_fuse_e=ff  --upload if=/opt/tinyos-2.x
/tos/lib/tosboot/build/micaz/main.ihex
Firmware Version: 1.8
Atmel AVR ATmega128 is found.
Uploading: flash

Fuse High Byte set to 0xda

Fuse Extended Byte set to 0xff
   +---+
   |   |
   | At this point the first led (red) should be blinking. |
   |   |
   |   Press ENTER to continue...  |
   |   |
   +---+

= Compile a new Blink
==
mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=10 -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-Ibuild/micaz -DBLINK_REVERSE -DDELUGE_BASESTATION -DDELUGE_BASESTATION
-DDELUGE -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/Deluge
-I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/avr
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/mica2
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x47157661L -DIDENT_UID_HASH=0xcba6eb76L
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
compiled BlinkAppC to build/micaz/main.exe
   30448 bytes in ROM
 925 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
=== Upload the image
===
Pinging node ...
ERROR: Unable to retrieve image information over serial
   ++
   ||
   | In the next step the following things will take place: |
   | - the mote will be rebooted|
   | - all the leds will blink for some time as the |
   |   reprogramming by tosboot takes place.|
   | - a fading of the leds will indicate the exiting from tosboot. |
   | - the mote should start blinking the 3rd led (blue/yellow).|
   ||
   |  

Re: [Tinyos-help] Serial problem testing deluge TOS 2.x

2007-10-17 Thread Chieh-Jan (Mike) Liang

Hi Luis,

Could you please send me your screen output from ".burn /dev/ttyUSB0 micaz"?

Thank you

Mike

Luis Miguel López Ramos wrote:

Hi all

I'm experiencing a problem running the apps/tests/deluge/Blink
application. I'm using XubunTOS over a VMWare Player, my mote is a
micaz and my board is an USB mib510, so I type:

./burn /dev/ttyUSB0 micaz

The first version of Blink executes normally, and then, when burn says
'Pinging node' it seems not to find any mote and after a while it says
'Unable to retrieve information over serial'. The mote neither reboots
nor does anything different from the first blink.

Has anybody else found this problem?

Thank you very much
Luis Miguel Lopez
Universidad Rey Juan Carlos, Fuenlabrada, Madrid (Spain)
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help