Hi!

On Fri, 10 Jul 2009, Michael Schippling wrote:

> Make sure you have set your MOTECOM environment variable correctly.

I think the -comm settings will overwrite the MOTECOM variable. :P

> If you are programming on ttyS0 and using a MIB520 it may be that
> you need to use ttyS1 to communicate.

This is point is very important. MIB520 is offering two serial ports. The 
first one is used to reprogram the mote while the other is used to talk 
tot mote. In VMWare + XUbuntos this should show up as /dev/ttyUSB0 and 
/dev/ttyUSB1. If run the 'dmesg' command you should see some kernel 
message announcing this.

If you run the latest CVS you can also use the tos-dump.py provided from 
tools/tinyos/misc.

All the best!
Razvan ME

> Mazid H Chowdhury wrote:
>> Hello All,
>>
>> I was trying to read raw data using my pre-programmed motes by
>> following the tutorial 'Mote-PC serial communication and
>> SerialForwarder'.
>>
>> I need to read data received and sent from the base station. All the
>> time I issue the command - java net.tinyos.tools.Listen -comm
>> serial@/dev/ttyS0:micaz,
>> I get just a line stating - resynchronizing. Nothing shows-up after that.
>>
>> So now I think I should try for some Serial reader in C/C++ so that I
>> can read the port and create some text file as output. If anybody has
>> any idea on the whole
>> thing or any example code on how to do that, it would be a great help for 
>> now!
>>
>> By the way - I am using WindowsXP, VMWare and XUbuntos.
>>
>> and I have flashed my motes using - /dev/ttyS0 port.
>>
>> Thank you.
>>
>> MazidH
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to