If you start SF with the -comm argument I think MOTECOM is not used.
Assuming that argument used to work, it should still...but it is
software after all...I did once have trouble when specifying the baud
rate rather than the device name (mica2 in my case).

If you installed any new software you might want to see what it changed
for you. Also check what Java you are running with:  type java
and see if it is changed. I think toscheck looks for javax.comm
so it should complain if it's not installed correctly, but....

And again, try Listen and ListenRaw to see what you are actually getting.
They will be easier to debug into, or put in trace messages, if you need
to dig deeper. And you can search the SF code for the "Write failed"
message to see if it gives any clues about why.

MS

Javier Barbarán wrote:
Thank you very much Michael, I will check MOTECOM variable but when I run SerialForwarder I type java net.tinyos.sf.SerialForwarder -comm [EMAIL PROTECTED]:57600. And yes, SerialForwarder seems to work because it increment the messages written and the mote receive the message using BcastInject because it toggles its leds, but "Write failed" message appears also.

And, using TOSBase, I see how the led toggle each time the base station receives a message from the mote, but it seems that it isn't in the correct format or something similar because my application doesn't understand it. But take into account that 2 weeks ago everything worked fine, I think that I have modified something to the environment or java virtual machine or javax.comm or something similar... I really don't know the reason...

Another thing I have to tell you is that toscheck is completed without errors, so.. I am a little bit lost...

Thanks again

Michael Schippling escribió:
Are you using the right MOTECOM setting when you start the SerialForwarder?
Make sure it's talking to the correct serial port, etc...

Also check all your cables and the base-station power.

I would backup and try using Listen or ListenRaw without SF to see if I could get messages from the re-Motes. And then try some simple Send type program
to send messages back. The standard TOSBase will toggle it's leds when
it sends and receives messages so you can see if anything is really happening.

MS

Javier Barbarán wrote:
Hi everybody

I have installed 1.1.11 version and in the beginning SerialForwarder application does not give me the write failed message when I sent packet to motes. But maybe I have changed something (I really don't know what) and now executing BcastInject, I get write failed in the serialforwarder but the mote receive the message. But also, I have a java application where a remote mote send data to base station and java application process the message in order to answer to the mote. Again in the beginning the system worked fine but know the mote send data to base station (with TOSBase installed on base station mote) that receives the message but it isn't processed. It seems that is something related to baudrate or something similar, I have been looking through the mailing list archives and I have tried some actions, but it doesn't work. I have also tried to re-install tinyOS 1.1.11 but the problem stills...

Could you give me any suggestion... I hope so...

Thanks in advance...


Regards
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


__________ Información de NOD32, revisión 2237 (20070503) __________

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com



_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to