This is embarrassing. I found the cause. I have to use a different port for
injecting an image than for programming the mote.

2009/9/30 Yee Wei Law <[email protected]>

> Hi Razvan, Bunsenbrenah,
>
> Just want to add that I have the same problem with my IRIS motes, i.e.,
> the command "tos-deluge serial@/dev/ttyUSB0:57600 -p 1" and (naturally)
> the script "burn" hang at
>
>   Flushing the serial port..
>   Checking if node is a Deluge T2 base station ...
>
> I am using the latest version of TinyOS-2.x from the CVS. I have also made
> sure the tools package is up-to-date. So I am totally stuck. Does nobody
> have the same problem at all?
>
> Regards,
> Yee Wei
>
> 2009/9/9 Razvan Musaloiu-E. <[email protected]>
>
> Hi!
>>
>> Sorry for reply so late. :-(
>>
>> On Sat, 5 Sep 2009, Bunsenbrenah wrote:
>>
>> > Razvan Musaloiu-E. wrote:
>> >>> Using the most recent TinyOS CVS version (on a clean install as
>> described
>> >>> at [1]) hangs while trying to check if the node is a Deluge T2 base
>> >>> station:
>> >>>
>> >>> Flushing the serial port..
>> >>> Checking if node is a Deluge T2 base station ...
>> >>>
>> >>> I left it this way for half an hour with no visible change. The mote
>> >>> itself keeps blinking red from the previous step.
>> >>>
>> >>
>> >> Can you please elaborate a little about what 'clean install' means? The
>> >> instruction from [1] don't clearly indicate how to use the CVS.
>> >>
>> >
>> > Beginning with a fresh VMWare image with no piror tinyos or cygwin
>> > installation I followed the guide as described. Then instead of
>> installing
>> > tinyos-2.1.0-2.cygwin.noarch.rpm I used the sources from the CVS using
>> the
>> > instructions from  the sourceforge cvs page of tinyos [1] (modulename:
>> > tinyos-2.x\).
>> > Basically I wanted to avoid conflicts with the old installation.
>> >
>>
>> What about the tools package? :-)
>>
>> >> You should not try to manually install tosboot. As I said in my
>> previous
>> >> message, the 'BOOTLOADER=tosboot' from the application's Makefile will
>> make
>> >> the install part to upload to the mote both the bootloader and the
>> >> applications. Here is the proof:
>> >>
>> >>      [...]
>> >>
>> >> You can see the tos-bsl is run twice. The tosboot goes first and then
>> the
>> >> application.
>> >>
>> >
>> > I'm not wondering if it necessary or that it should be done with the
>> > appropriate makefile entry. What I'm wondering about is that installing
>> _by
>> > hand_ does not work for me at all. Isn't that an indicator of something
>> being
>> > wrong? Or just me overlooking something?
>> >
>>
>> Installing by hand cannot be done just by doing "make ... install". For
>> telosb an install by hand will mean you do the "make telosb" in tosboot
>> and the application and then run the tos-bsl with the proper arguments.
>> For telosb this looks something like this:
>>
>>        tos-bsl --telosb -c /dev/ttyUSB4 -r -e -I -p
>> /home/deluge/local/src/tinyos-2.x/tos/lib/tosboot/build/telosb/main.ihex
>>         tos-bsl --telosb -c /dev/ttyUSB4 -r -I -p
>> build/telosb/main.ihex.out
>>
>> >>> 'Deluge T2' tutorial link? Basically I'm interested in anything that
>> might
>> >>> help getting a mica2 to work with deluge T2.
>> >>>
>> >> I don't have any mica2 so I can be of limited help for this. :-(
>> >>
>> >
>> > You have me helped out a lot so far don't worry about it :-)
>> >
>> > I tried compiling the examples for mica2 and followed all the errors.
>> Mostly
>> > the problem is a missing case for mica2 but since there usually is one
>> for
>> > micaz it wasn't too hard to find the places where they have to go.
>> > tos/lib/net/Deluge/extra is a special case as one needs a folder with
>> several
>> > files here. Copying micaz is not enough however since there are
>> NetProg{C|M}
>> > files needed as well. Basically they don't seem to do much in terms of
>> using
>> > special protocols but then again I have little idea what they are
>> supposed to
>> > do anyways and why they aren't needed for micaz.
>>
>> The stuff for tos/lib/net/Deluge/extra are not in the best possible shape.
>> :-(
>>
>> > In the end that doesn't matter, however, because the connection hangs
>> when
>> > trying to determine whether the mote is a basestation. Either the python
>> > serial script or the communication with the node itself cause trouble.
>> >
>>
>> Can you please give a try to the head I indicate in thread about mica2?
>> I'm not sure if it works but with some feedback we might be able to get it
>> to work. :-)
>>
>> > Why was there a switch from java based utilities in deluge 2.0 to python
>> > based ones in T2 anyway?
>>
>> Talking to the serial port using Python is much easier than going through
>> the Java route. tos-bsl is another program that also doing the same. :-)
>>
>> > Might the old ones still be working with TOS2.x ?
>>
>> No, they will not.
>>
>> > Thank you for your efforts!
>> > Bb
>> >
>> > PS: Is there any alternative to deluge for mica2 and TOS-2.x ? (I asked
>> the
>> > same question in more detail in Re: [Tinyos-help] make deluge support
>> mica2)
>>
>> I'm not aware of another. I am interested in implementing a very simple
>> one hop one. :D
>>
>> --
>> Razvan ME
>>
>> > [1] http://sourceforge.net/scm/?type=cvs&group_id=28656
>> >
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to