[Tinyos-help] Problem with Deluge T2

邱杰凡 qiujiefan at ict.ac.cn
Tue Nov 9 06:35:10 PST 2010


Hello:
  Recently,I was going to use Deluge T2 in term of websit:
http://docs.tinyos.net/index.php/Deluge_T2,but I had some troubles:When
I respectively install Base station and GoldenImagin to two nodes, and
then send command:
$tos-deluge serial@/dev/ttyUSB0:115200 -dr 1
The LED1 of Base station node just was bright for several seconds, and
then nothing happened. The node with GoldenImagin has any response. My
using platform is telosb(msp430+cc2420). Please give me some helps or
suggestions, I will very appreciate your help.

Please find below the detailed steps I followed and their corresponding
outputs:
===================================================================== (
insert node 0 )
$cd /local/src/tinyos-2.x/apps/tests/deluge/Basastation
$ make telosb install,0 bsl,/dev/ttyUSB0
Output:
compiling BasestationAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul
-DCC2420_DEF_CHANNEL=16 -fnesc-separator=__ -Wall -Wshadow -Wnesc-all
-target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DDELUGE_BASESTATION
-DIDENT_APPNAME=\"BasestationAppC\" -DIDENT_USERNAME=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L
-DIDENT_TIMESTAMP=0x4cd91f83L -DIDENT_UIDHASH=0x99572546L -DDELUGE
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/drip
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/BlockStorageManager
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/msp430
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/telos
-Wl,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/telosb 
BasestationAppC.nc -lm
/home/xubuntos/local/src/tinyos-2.x/tos/platforms/epic/chips/ds2411/PlatformOneWireLowLevelP.nc:16:2:
warning: #warning "Please ignore the non-atomic access warnings for shared
variables port2"
/home/xubuntos/local/src/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2:
warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/home/xubuntos/local/src/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
warning: #warning Accessing TimerA for ADC12
    compiled BasestationAppC to build/telosb/main.exe
           40870 bytes in ROM
            1442 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
    writing TOS image
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target
ihex build/telosb/main.ihex build/telosb/main.ihex.out-0 TOS_NODE_ID=0
ActiveMessageAddressC__addr=0
    installing telosb bootloader using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p
/home/xubuntos/local/src/tinyos-2.x/tos/lib/tosboot/build/telosb/main.ihex
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
2118 bytes programmed.
Reset device ...
    installing telosb binary using bsl (without mass erase)
tos-bsl --telosb -c /dev/ttyUSB0 -r -I -p build/telosb/main.ihex.out-0
MSP430 Bootstrap Loader Version: 1.39-telos-8
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
40902 bytes programmed.
Reset device ...
rm -f build/telosb/main.exe.out-0 build/telosb/main.ihex.out-0
(inject tos_image.xml of Blink with revised in term of websit)
$ cd /home/xubuntos/local/src/tinyos-2.x/
$ tos-deluge serial@/dev/ttyUSB0:115200 -i 1
apps/Blink/build/telosb/tos_image.xml

Output:
Flushing the serial port..
Checking if node is a Deluge T2 base station ...
Pinging node ...
Connected to Deluge nodes.
No valid image was detected.
--------------------------------------------------
Create image: /home/xubuntos/local/bin/tos-build-deluge-image -i 1
apps/Blink/build/telosb/tos_image.xml
Ihex read complete:
  34184 bytes starting at 0x4A00
     32 bytes starting at 0xFFE0
  34216 bytes in 2 sections
CRCs:
  0x271E 0x7109 0x81BD 0x54CB 0x0DEB 0x3CD6 0xC5F3
  0x69CB 0xBCA5 0xC337 0xAA9E 0xE863 0x7DBB 0x30B7
  0x7E60 0x6236 0xF78D 0xE49C 0xF377 0x3DAF 0x08AA
  0x4836 0x0CE2 0x1794 0xD9A9 0x1BEC 0xC951 0xCA9F
  0x55F8 0xD942 0x03B8 0xCAC1
--------------------------------------------------
35712 bytes in 76.72 seconds (465.4661 bytes/s)
--------------------------------------------------
Replace image with:
  Prog Name:   BlinkAppC
  UID:         0xC0025B9B
  Compiled On: Tue Nov 09 17:50:18 2010
  Platform:    telosb
  User ID:     xubuntos
  Host Name:   xubuntos-tinyos
  User Hash:   0x00F95284
  Size:        35712
  Num Pages:   32
--------------------------------------------------
(ping the basestation node)
$tos-deluge serial@/dev/ttyUSB0:115200 -p 1

Output:
Flushing the serial port...
Checking if node is a Deluge T2 base station ...
Pinging node ...
--------------------------------------------------
Currently Executing:
  Prog Name:   BasestationAppC
  UID:         0x99572546
  Compiled On: Tue Nov 09 18:16:35 2010
  Node ID:     0
Stored image 1
  Prog Name:   BlinkAppC
  UID:         0xC0025B9B
  Compiled On: Tue Nov 09 17:50:18 2010
  Platform:    telosb
  User ID:     xubuntos
  Host Name:   xubuntos-tinyos
  User Hash:   0x00F95284
  Size:        35712
  Num Pages:   32
--------------------------------------------------
(remove node0,and insert node1. then set the client node)
$cd apps/tests/deluge/GoldenImage
$ make telosb install,1 bsl,/dev/ttyUSB0
Output:
compiling GoldenImageAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul
-DCC2420_DEF_CHANNEL=16 -fnesc-separator=__ -Wall -Wshadow -Wnesc-all
-target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DDELUGE_LIGHT_BASESTATION
-DIDENT_APPNAME=\"GoldenImageAppC\" -DIDENT_USERNAME=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L
-DIDENT_TIMESTAMP=0x4cd924feL -DIDENT_UIDHASH=0x823b3a2fL -DDELUGE
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/drip
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/BlockStorageManager
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/msp430
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/telos
-Wl,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000
-I/home/xubuntos/local/src/tinyos-2.x/tos/lib/net/Deluge/extra/telosb 
GoldenImageAppC.nc -lm
/home/xubuntos/local/src/tinyos-2.x/tos/platforms/epic/chips/ds2411/PlatformOneWireLowLevelP.nc:16:2:
warning: #warning "Please ignore the non-atomic access warnings for shared
variables port2"
/home/xubuntos/local/src/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2:
warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
/home/xubuntos/local/src/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
warning: #warning Accessing TimerA for ADC12
    compiled GoldenImageAppC to build/telosb/main.exe
           40052 bytes in ROM
            1368 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
    writing TOS image
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target
ihex build/telosb/main.ihex build/telosb/main.ihex.out-1 TOS_NODE_ID=1
ActiveMessageAddressC__addr=1
    installing telosb bootloader using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p
/home/xubuntos/local/src/tinyos-2.x/tos/lib/tosboot/build/telosb/main.ihex
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
2118 bytes programmed.
Reset device ...
    installing telosb binary using bsl (without mass erase)
tos-bsl --telosb -c /dev/ttyUSB0 -r -I -p build/telosb/main.ihex.out-1
MSP430 Bootstrap Loader Version: 1.39-telos-8
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
40084 bytes programmed.
Reset device ...
(now, remove node1, and insert node0)
$ tos-deluge serial@/dev/ttyUSB0:115200 -dr 1

Output:
Flushing the serial port..
Checking if node is a Deluge T2 base station ...
Command sent

After sending this command, the LED1 of node0 was bright for several
seconds, and then nothing happened (no LED blinked).  I had succeeded to
realize the Quickly Star mentioned by Website. So I thought the injection
is very well. So I doubt the trouble maybe have to do with the
transmission protocol : Drip.Can you give me some helps or suggestios.

 I kindly appreciate your Help.
Thanks in Advance!
------------------
Best Regards,
Jiefan Qiu,










More information about the Tinyos-help mailing list