I'm cc'ing back to the help list in case someone is better at this than me...
I'm not sure what all you are doing, or what the "terminal" software
and "run.sh" is. MicaHWVerify, and it's Java PC client do send messages
in both directions -- a request from PC and a reply from the mote. So
if it worked, then your hardware is OK.
The error messages you show indicate that you are trying to make a network
connection to a SerialForwarder program. SF acts as an (pointless and confusing
IMHO) intermediary between the PC serial port (assuming you are not using
the ethernet base station) and the rest of the world. If what you are trying
to do is connect directly to the serial port, you probably need to look at
the value of your MOTECOM environment variable. You can find all sorts of
useful information about this in the tutorial and via google.
I set this variable for using mica2's on a USB->serial converter as:
export MOTECOM="[EMAIL PROTECTED]:mica2"
MS
Pablo Andrés García wrote:
Hi again!
First of all... thank you very much for your help with this issue...
We have successfully programmed our mote. And we have passed the
MicaHWVerify correctly. So it seems that both Mica, and Mica to PC
connection is working... but not the other way round(PC to Mica).
To send data from PC to Mica we have used the "terminal" software...
provided by crossbow in the installation CD. we think baud rate and
message format are ok, because in the communication from Mote to PC it
works...
The program downloaded in the mote to transmit and receive is the TOSBase.
We have followed the steps of the document you sent to us to test our
system... but when we execute the script run.sh we get this error:
Exception in thread "main" java.net.ConnectException: Connection
refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at net.tinyos.packet.SFSource.openSource(SFSource.java:56)
at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)
at RadioCommTest.main(RadioCommTest.java:51)
Do you know why we get this problem? we have litle experience in Java
programming...
Thank you very much again for all your help!!
Pablo
> Date: Thu, 8 Mar 2007 02:10:09 -0700
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; [email protected]
> Subject: Re: [Tinyos-help] tinyos help
>
> I'm forwarding this back to the help list in case anyone else
> has a good idea...
>
> All of this stream-of-un-consciousness is based on TOS1.x...
>
> I assume that you have successfully programmed the mote so
> your port and cable are working ok. The MicaHWVerify app
> sends a message to the mote, so it can be used to verify
> that your connection is good.
>
> What program are you using to send from the PC? You may have
> a bad message format. I'm not sure if the base-station checks
> CRCs and stuff, but it can't hurt to do it right. I would also
> double check the PC-UART transmit parameters, baud-rate, etc.
>
> My posted code has an example of sending messages, you should
> be able to use the PC-Java program to send a bcast message to
> a base station, and have a second base-station receive it and
> send it to Listen or some other program. See:
> http://www.etantdonnes.com/Motes/robocode.tar.gz
>
> MS
>
>
> Pablo Andrés García wrote:
> > Hi!
> > I have also tried the TOSBase with the same result... the reception
> > event is not fired...
> > Do you know why it could be?
> > Thank you very much!!
> >
> > Pablo
> >
> > > Date: Wed, 7 Mar 2007 13:35:15 -0700
> > > From: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > CC: [email protected]
> > > Subject: Re: [Tinyos-help] tinyos help
> > >
> > > Try TOSBase instead.
> > > MS
> > >
> > > Pablo Andrés García wrote:
> > > >
> > > >
> > > > Hi! I have a problem… I want to build a system which transmits
from
> > one
> > > > PC to another PC. The first PC communicates via UART with the first
> > > > Micaz node. This node transmits via radio to the second Micaz
node,
> > and
> > > > this node communicates via UART with the second PC. The problem is
> > that
> > > > when the first PC sends a packet to the first Micaz node, the event
> > > > UARTreceive.receive is not fired. The program we have installed
in the
> > > > Micaz node is the one called “GenericBase”, provided by crossbow.
> > > >
> > > >
> > > >
> > > > Thank you very much for your help!!!
> > > >
> > > >
> > > >
> >
------------------------------------------------------------------------
> > > > ¡Ya está aquí Windows Live Spaces! Ahora podrás crear fácilmente tu
> > > > propio sitio Web. Pruébalo <http://spaces.live.com/signup.aspx>
> > > >
> > > >
> > > >
> >
------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Tinyos-help mailing list
> > > > [email protected]
> > > >
> >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
> >
------------------------------------------------------------------------
> > Consigue el nuevo Windows Live Messenger Pruébalo
> > <http://get.live.com/messenger/overview>
------------------------------------------------------------------------
¡Ya está aquí Windows Live Spaces! Ahora podrás crear fácilmente tu
propio sitio Web. Pruébalo <http://spaces.live.com/signup.aspx>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help