Hi Luis,

I had similar problems with telosa motes, and I don't know what caused
the problem, or how to resolve it, but I found a workaround.
Unofrtunatly it only worked on windows (xp)+cygwin:
Before opening the serial port with the tinyos java apps, I opened it
with rxtx (http://users.frii.com/jarvi/rxtx/). After that, everything
worked as it should.
I used telosb, micaz/mib520a and iris/mib520b motes on that machine
without a problem, both on linux and windows.

Andris

2011/10/26 Luís Pereira <luispereira....@gmail.com>:
> Hi Urs,
> I am already using the telos platform. I post a command with tmote because I
> read in some other question to try that way, and it doesn't make any
> difference. I am trying to communicate with the mote using the
> apps/tests/TestLed/Multiled program and I got this outputs:
> MAKE TELOS:
>
> mkdir -p build/telosa
>     compiling TestAppC to a telosa binary
> ncc -o build/telosa/main.exe  -Os -O
> -I/home/luis/documents/tinyos-main-read-only//tos/lib/printf
> -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosa
> -fnesc-cfile=build/telosa/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
> -DIDENT_APPNAME=\"TestAppC\" -DIDENT_USERNAME=\"luis\"
> -DIDENT_HOSTNAME=\"luis-eee\" -DIDENT_USERHASH=0x26cd4331L
> -DIDENT_TIMESTAMP=0x4ea848c1L -DIDENT_UIDHASH=0x63dafe9eL  TestAppC.nc -lm
>     compiled TestAppC to build/telosa/main.exe
>             4994 bytes in ROM
>               77 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosa/main.exe
> build/telosa/main.ihex
>     writing TOS image
>
> MAKE TELOS INSTALL:
>
> mkdir -p build/telosa
>     compiling TestAppC to a telosa binary
> ncc -o build/telosa/main.exe  -Os -O
> -I/home/luis/documents/tinyos-main-read-only//tos/lib/printf
> -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosa
> -fnesc-cfile=build/telosa/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
> -DIDENT_APPNAME=\"TestAppC\" -DIDENT_USERNAME=\"luis\"
> -DIDENT_HOSTNAME=\"luis-eee\" -DIDENT_USERHASH=0x26cd4331L
> -DIDENT_TIMESTAMP=0x4ea84969L -DIDENT_UIDHASH=0x59c6b937L  TestAppC.nc -lm
>     compiled TestAppC to build/telosa/main.exe
>             4994 bytes in ROM
>               77 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosa/main.exe
> build/telosa/main.ihex
>     writing TOS image
> cp build/telosa/main.ihex build/telosa/main.ihex.out
>     found mote on /dev/ttyUSB0 (using bsl,auto)
>     installing telosa binary using bsl
> tos-bsl --telos -c /dev/ttyUSB0 -r -e -I -p build/telosa/main.ihex.out
> rm -f build/telosa/main.exe.out build/telosa/main.ihex.out
> MSP430 Bootstrap Loader Version: 1.39-telos-8
> Mass Erase...
> Transmit default password ...
> Invoking BSL...
> Transmit default password ...
> Current bootstrap loader version: 1.10 (Device ID: f149)
> Adjust SP. Load PC with 0x0C22 ...
> Transmit default password ...
> Patch for flash programming required!
> Load and verify patch ...
> Program ...
> 5220 bytes programmed.
> Reset device ...
>
> MOTELIST:
>
> Reference  Device           Description
> ---------- ---------------- ---------------------------------------------
> M4MWCK4F   /dev/ttyUSB0     Moteiv Telos (Rev A 2004-04-27)
>
> java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telos
>
> serial@/dev/ttyUSB0:115200: resynchronising
>
> I already put my ttyUSB0 in chmod 666, and I also tried reset the device and
> plug off and plug in the device while in resynchronising like some people
> advice in other posts and nothing work so far.
> Thanks for all the help so far. Hope I can get a solution for this
> Luís Pereira
>
>
> 2011/10/26 Urs Hunkeler <urs.hunke...@epfl.ch>
>>
>> Hi Luís,
>>
>> I just had a look. It appears that telosa, telosb and tmote all use the
>> same baud rate, and that the platform name for telosa on TinyOS is just
>> "telos" (not tmote).
>>
>> TelosA and TelosB/Tmote are similar, but not identical. It is entirely
>> possible that if you compile your programs for the platform "tmote" they
>> will install on the TelosA and maybe even blink the LEDs, but that other
>> things (like serial communication) will not work. When you compile the test
>> programs, did you do a "make telos" (and not "make tmote")? (and similarly
>> "make telos install")
>>
>> If it still doesn't work, could you send us the exact commands that you
>> use (make, make install, java ...Listen...) and the output that you get for
>> each of the commands (e.g., copy/past the text from your terminal)?
>>
>> Cheers,
>> Urs
>>
>>
>> On 10/25/11 11:48 PM, Luís Pereira wrote:
>>>
>>> Hi Rafael,
>>>
>>> well when I run motelist i have:
>>>
>>> Reference Device Description
>>> ---------- ---------------- ---------------------------------------------
>>> M4MWCK4F /dev/ttyUSB0 Moteiv Telos (Rev A 2004-04-27)
>>>
>>> Then i run:
>>>
>>> java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:tmote
>>>
>>> and i got:
>>>
>>> serial@/dev/ttyUSB0:115200: resynchronising
>>>
>>> and the leds of the mote stop blinking.
>>>
>>> Luís Pereira
>>>
>>>
>>> 2011/10/25 Rafael de Oliveira Costa <rafaeldeoliveiraco...@gmail.com
>>> <mailto:rafaeldeoliveiraco...@gmail.com>>
>>>
>>>    Hi Luís,
>>>
>>>    please show what command did you executed.
>>>
>>>    Rafael de Oliveira Costa,M.Sc. Student
>>>    PPGI - UFRJ
>>>    Rio de Janeiro, RJ, Brazil
>>>    http://www.labnet.nce.ufrj.br <http://www.labnet.nce.ufrj.br/>
>>>    "The first step to getting the things you want out of life is this :
>>>    decide what you want", Ben Stein
>>>
>>>
>>>
>>>    2011/10/24 Luís Pereira <luispereira....@gmail.com
>>>    <mailto:luispereira....@gmail.com>>
>>>
>>>        Hi All,
>>>
>>>        I'm starting a project at my school using telosa. I'm trying to
>>>        do the tutorial and i got stuck in lesson 4.
>>>
>>>        I can't receive data from telosa. When I try
>>>        "java.net.tinyos.tools.Listen" or "java TestSerial" or even the
>>>        serialForwarder programs it shows me the "resynchronizing"
>>>        message and nothing else happens. With the application that the
>>>        mote blinks it's leds in an binary count, when i try to connect
>>>        it stops counting.
>>>
>>>        I already search in all the mailing list i nothing i found about
>>>        this solve my problem.
>>>
>>>        Can anyone help me please?
>>>
>>>        Thanks for your help
>>>        Luís Pereira
>>>
>>>        _______________________________________________
>>>        Tinyos-help mailing list
>>>        Tinyos-help@millennium.berkeley.edu
>>>        <mailto: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
>>
>
>
> _______________________________________________
> 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

Reply via email to