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

2007-06-05 Thread Firat TARAKTAS
 
Hi,

1. Did you run the command like java TestSerial -comm [EMAIL PROTECTED]:telos 
 or assign MOTECOM correctly?
2. Be sure that other running programs on your PC does not use your port.

Firat TARAKTAS


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vazoumana fofana
Sent: Tuesday, June 05, 2007 5:26 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] [lesson 4 with tinyOs2.0]

Hi,

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 :
[EMAIL PROTECTED]:9002 died - exiting (java.net.ConnectException: Connection 
refused).
somebody can help me , please ?

thanks.

_
Avec Windows Live OneCare éliminez tous les virus de votre PC ! 
http://www.windowslive.fr/liveonecare/default.asp

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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

2007-06-05 Thread Benjamin Madore

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 :
 [EMAIL PROTECTED]: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

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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

2007-06-05 Thread Peizhao Hu

A common problem that have to be mentioned in the documentation.
possible reasons:
1. if you are using SerialForwarder, make sure your problem is pointing 
to the same port number, which SerialForwarder is outputing to.

you can start your SerialForwarder as

java net.tinyos.sf.SerialForwarder -port 9003 -comm serial@/dev/ttyS0:mica2

then you use use [EMAIL PROTECTED]:9003

2. if you tried to connect from other host rather than localhost, you 
have to make sure the System-wide Environment Variable for MOTECOM is 
set to whatever you desired to use.

i.e.: [EMAIL PROTECTED]:PORT
if you look into the TinyOS source code, you will found the JNI function 
tries to get this variable using ENV.getenv(MOTECOM). It binds to 
default value ([EMAIL PROTECTED]:9002) when it can't resolve the variable. 
for Mac Users, there is a tool, called RCEnvironment, which allows you 
to add system-wide environment variable (require reboot/logout to take 
effect).



Benjamin Madore wrote:

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 :
[EMAIL PROTECTED]: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?

  


--
regards;

Peizhao

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Fwd: Re: [Tinyos-help] [lesson 4 with tinyOs2.0]]

2007-06-05 Thread Benjamin Madore
Forwarding to the list (remember everyone, REPLY ALL)

- Original Message -
Subject: Re: [Tinyos-help] [lesson 4 with tinyOs2.0]


My platform is Xubuntos. i ve got a firewall. I know it 's possible to 
execute java Testserial without defining MOTECOM. 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 ?

From: Benjamin Madore
To: vazoumana fofana
CC: tinyos-help@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 :
[EMAIL PROTECTED]: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

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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

2007-06-05 Thread Benjamin Madore

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 [EMAIL PROTECTED]:19200 # mica baud rate
  export [EMAIL PROTECTED]:mica  # mica baud rate, again
  export [EMAIL PROTECTED]:mica2 # the mica2 baud rate, on a different
serial port
  export [EMAIL PROTECTED]:57600 # explicit mica2 baud rate

or you may:

  java net.tinyos.sf.SerialForwarder -comm [EMAIL PROTECTED]: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@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 :
  [EMAIL PROTECTED]: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

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help