Hi!

On Fri, 4 Sep 2009, [email protected] wrote:

>>> The [1] is deprecated. The latest version is here:
>>>     http://docs.tinyos.net/index.php/Deluge_T2
>
> There seems to have been more change since the burn script now (latest 
> CVS version) needs the target platform as a last parameter:
>
> ./burn mib510,/dev/ttyS2 serial@/dev/ttyS2:57600 *micaz*
>
> Also my version of tinyos/deluge still needs another syntax:
> $ ./burn
> Usage: ./burn <port> [<comm_port>] <platform>
>  <port>       /dev/ttyUSB0
>  <comm_port>  /dev/ttyUSB1
>  <platform>   micaz, telosb or iris
>
> Just setting /dev/ttyS${x+1} doesn't work. The same goes for /dev/ttyS${x}:
>
> [...]
> /usr/local/bin/tos-deluge serial@/dev/ttyS${2|3}:57600 micaz -i 1 
> build/micaz/tos_image.xml
> ERROR: Unable to initialize serial port connection to serial@/dev/ttyS2:57600
>
> The example suggests port and comm_port shouldn't be equal. What's the 
> difference between port and comm_port?
>

If you run the burn script without any parameter it will print the 
following usage instruction:

        Usage: ./burn <prog_source> <comm_source> <platform>
          <prog_source> bsl,PORT | mib510,PORT | eprb,HOST
          <comm_source> ser...@port:SPEED | netw...@host:PORT
          <platform>    micaz | telosb | iris | epic

So first is the method to program (similar with 'make install ...') the 
mote followed by the way to talk to it.

> 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.

>> I see. Thank you for making that clear.
>> I get all kinds of errors trying to install tosboot by hand but since
>> there is no need to do that that should not bother me, right?
>
> Still curious about that one.

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:

        [...]
            compiled GoldenImageAppC to build/telosb/main.exe
                   38528 bytes in ROM
                    1332 bytes in RAM
        msp430-objcopy --output-target=ihex build/telosb/main.exe
        build/telosb/main.ihex
            writing TOS image
        cp build/telosb/main.ihex build/telosb/main.ihex.out
            installing telosb bootloader using bsl
        tos-bsl --telosb -c /dev/ttyUSB4 -r -e -I -p 
/home/deluge/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/ttyUSB4 -r -I -p build/telosb/main.ihex.out
        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 ...
        38560 bytes programmed.
        Reset device ...
        rm -f build/telosb/main.exe.out build/telosb/main.ihex.out

You can see the tos-bsl is run twice. The tosboot goes first and then the 
application.

>> I am, however, curious as to why the 'old' syntax did work for me.
>
> Silly me - using the old version might have that effect...
>
> Is there any more (up-to-date) documentation out there apart from that 
> '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. :-(

--
Razvan ME

> [1] http://docs.tinyos.net/index.php/Installing_TinyOS_2.1
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to