[Tinyos-help] [lesson 4 with tinyOs2.0]

Benjamin Madore bcmadore at cs.pitt.edu
Tue Jun 5 10:08:01 PDT 2007


On Tue, June 5, 2007 12:48 pm, vazoumana fofana said:
> My platform is Xubuntos. I've got a firewall. I know it 's possible to
> execute java Testserial without defining MOTECOM.

Only if you have the SerialForwarder running.

> I understand you must
> execute java testserial in adding options -comm with port. if you just type
> java testserial, it doesn't work. Is it right ?

Java mote communication defaults to a loopback connection, not the serial
port. If you want to communicate over the serial port you use one of:

  export MOTECOM=serial at COM1:19200 # mica baud rate
  export MOTECOM=serial at COM1:mica  # mica baud rate, again
  export MOTECOM=serial at COM2:mica2 # the mica2 baud rate, on a different
serial port
  export MOTECOM=serial at COM3:57600 # explicit mica2 baud rate

or you may:

  java net.tinyos.sf.SerialForwarder -comm serial at COM1:<baud rate>

But I am not familiar with the testserial program. It may be able to take
arguments on its own or not work with the SerialForwarder.

>>From: "Benjamin Madore"
>>To: "vazoumana fofana"
>>CC: tinyos-help at millennium.berkeley.edu
>>Subject: Re: [Tinyos-help] [lesson 4 with tinyOs2.0]
>>Date: Tue, 5 Jun 2007 12:12:37 -0400 (EDT)
>>
>>
>>On Tue, June 5, 2007 10:26 am, vazoumana fofana said:
>> > i try to compile the lesson 4 Mote Pc serial Communication and Serial
>> > Forwarder :
>> > When i execute java TestSerial, there is an error message wich appears :
>> > sf at localhost:9002 died - exiting (java.net.ConnectException: Connection
>> > refused).
>>
>>What platform? (Windows, Linux, Mac) Do you have a firewall? Have you set
>>up
>>your motecom variable? What commands are you using to execute TestSerial?
>>Are you using the serial forwarder or not?
>>
>>What version of TinyOS?
>>
>>--
>>The difference between the right word and the almost right word is really a
>>large matter- it's the difference between a lightning bug and the
>>lightning.
>>-Twain
>>
>
> _________________________________________________________________
> Gagnez des écrans plats avec Live.com http://www.image-addict.fr/
>


-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain



More information about the Tinyos-help mailing list