[Tinyos-help] Deluge/TelosB: Can't Ping the node and Inject the application

jwhui at EECS.Berkeley.EDU jwhui at EECS.Berkeley.EDU
Tue Mar 22 10:03:58 PST 2005


Yes, Deluge 2.0 has changed quite a bit from version 1.0. One of the goals was to provide much more user feedback. You are getting the correct results.

Currently, Deluge assumes the entire network runs the same app. Thus, any Deluge node operating within your TinyOS group id will accept a program and reprogram to it upon command.

-- 
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/ 

----- Original Message -----
From: Krisakorn Rerkrai <kre at mobnets.rwth-aachen.de>
Date: Monday, March 21, 2005 9:31 am
Subject: Re: [Tinyos-help] Deluge/TelosB: Can't Ping the node and Inject the application

> Hi Jonathan,
>    Thank you very much for your extremely fast response. Yes you 
> are 
> right. I was confused with
> commands in version 1.0 and 2.0.  Almost the questions in [TinyOS-
> help] 
> are about version 1.0.
> I followed the instructions in README. This is what I got:
> (still have some questions below)
> 
> $ java net.tinyos.deluge.Deluge -p
> Pinging node ...
> Connected to Deluge node.
> --------------------------------------------------
>  Currently Executing:
>    Prog Name:   GoldenImage
>    Compiled On: Mon Mar 21 17:41:00 CET 2005
>    User Hash:   0x93cf23a9
>  Stored Image 0
>    Prog Name:   GoldenImage
>    Compiled On: Mon Mar 21 17:41:00 CET 2005
>    User ID:     kre_admin
>    Hostname:    gracchus
>    User Hash:   0x93cf23a9
>    Num Pages:   N/A
>  Stored Image 1
>    Prog Name:   N/A
>    Compiled On: N/A
>    User ID:     N/A
>    Hostname:    N/A
>    User Hash:   N/A
>    Num Pages:   N/A
>  Stored Image 2
>    Prog Name:   N/A
>    Compiled On: N/A
>    User ID:     N/A
>    Hostname:    N/A
>    User Hash:   N/A
>    Num Pages:   N/A
> --------------------------------------------------
> DONE!
> 
> Is this the correct result? It's changed quite a lot from version 
> 1.0 
> (because of XML support?)
> Then I tried to install Blink app on the second node(not connected 
> to PC)
> with
> 
> kre_admin at gracchus /opt/tinyos-
> 1.x/beta/Deluge/TestDeluge/Blink/build/telosb$ java 
> net.tinyos.deluge.Deluge -i -ti=tos_image.xml -in=1
> 
> it works fine. Then I reboot it.
> 
> $ java net.tinyos.deluge.Deluge -r -in=1
> 
> _questions_
> - the second node starts to blink. But the question is why my 
> first node 
> (connected to PC)
> is also blinking?
> - Is Deluge working only in a "broadcast" mode? Does it have a 
> "multicast" mode?
> 
> Thank you so much.
> 
> Regards,
> Krisakorn
> 
> 
> 
> Jonathan W. Hui wrote:
> 
> >
> > The Deluge java tools for Deluge 1.0 does not work with Deluge 
> 2.0. 
> > Please look at the README in tinyos-1.x/beta/Deluge for more 
> > instructions on setting up the Deluge 2.0 java tools.
> >
> > -- 
> > Jonathan W. Hui
> > jwhui at cs.berkeley.edu
> > http://www.cs.berkeley.edu/~jwhui/
> >
> > Krisakorn Rerkrai wrote:
> >
> >> Hi all,
> >>      I've successfully compiled and installed the GoldenImage 
> into my 
> >> motes(telosb). Also, I got
> >> a correct LED sequence as mentioned in the manual section 2.3.  
> I had 
> >> problems when I tried
> >> to ping the node and inject the application.
> >> These are what I already did:
> >> 1. installed GoldenImage on all nodes (i have 2)
> >> 2. Serial Forwarder is running on the node connected to PC
> >> 3. Blink app is modified as written in the manual and compiled
> >>
> >> *Results*
> >> _Ping
> >> _$ java net.tinyos.tools.Deluge --ping
> >> -------------------------------------------------------
> >> Openning connection to node ...
> >> Connection to node established ...
> >> -------------------------------------------------------
> >> Pinging node ...
> >> Pinging node ...
> >> Pinging node ...
> >> Pinging node ...
> >> Pinging node ...
> >>
> >> # it never stops
> >>
> >>
> >> _Inject_
> >> $ java net.tinyos.tools.Deluge --inject --ihexfile 
> >> build/telosb/main.ihex --img
> >> num 0
> >> -------------------------------------------------------
> >> Reading file: build/telosb/main.ihex
> >> Read complete: (Bytes=23112,Sections=2)
> >> Deluge image stats: (Size=23184,Pages=21,Pkts=1008)
> >> -------------------------------------------------------
> >> Openning connection to node ...
> >> Connection to node established ...
> >> -------------------------------------------------------
> >> # this hangs...
> >>
> >> # Also tried the solution on Jan 13 message 
> >> (http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-
> January/007303.html) 
> >>
> >>
> >> $ java net.tinyos.deluge.Deluge --inject --ihexfile 
> build/telosb/ 
> >> --imgnum 1
> >> usage: java net.tinyos.tools.Deluge <action> [options]
> >>  actions are:
> >>   -p,  --ping            : ping status of node
> >>   -i,  --inject          : inject a binary
> >>   -r,  --reboot          : send reboot command
> >>   -e,  --erase           : erase an object
> >>   -d,  --dump            : dumps data injected to node
> >>  options are:
> >>   -ti, --tosimage=<xml>  : tos_image.xml file (program images)
> >>   -in, --imgnum=<num>    : image num
> >>   -v,  --verbose         : print all sent/received msgs
> >>   -h,  --help            : print this message
> >>
> >>
> >> Any help would be appreciated.
> >>
> >> Regards,
> >> Krisakorn
> >>
> >> _______________________________________________
> >> Tinyos-help mailing list
> >> Tinyos-help at Millennium.Berkeley.EDU
> >> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> >
> >
> >
> >
> 
> -- 
> Krisakorn Rerkrai, M.Sc.
> Department of Wireless Networks, RWTH Aachen
> Kackertstrasse 9, 52072 Aachen, Germany
> Tel. +49 2407 575 7054, Fax +49 2407 575 7050 
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> 



More information about the Tinyos-help mailing list