Okay so you are on to the next problem. Good. Forward progress has been made.
Learning to debug this kind of problem is a very good exercise. It is a skill that will last you later in your career. Think about what you need to do next to flesh out the h/w paths you are using. How can you put something really simple that will test out the functionality that you are using. I would suggest a simple program that exercises the basic low level functionality of the serial port. If you look around the source tree you should be able to find stuff that is already there. Try TestSerial. On Fri, Feb 10, 2012 at 3:27 AM, Mashal al-shboul <[email protected]>wrote: > Hi, > I fixed the connection, i was wrongly connecting the USB plug (mote-side) > into the iMote2 mainboard, where it shoulb be plugged into the IIB2400 port > mounting on the iMote2's mainboard. > BUT.... > it seems that only the PC can send to the mote and the mote can't send > back ,also the leds are not blinking ! following is the output: > > mashal@ubuntu:/opt/tinyos-2.1.1/apps/tests/TestSerial$ java > TestSerial -comm serial@/dev/ttyUSB1:intelmote2 > > > serial@/dev/ttyUSB1:115200: resynchronising > Sending packet 0 > Sending packet 1 > Sending packet 2 > Sending packet 3 > Sending packet 4 > Sending packet 5 > Sending packet 6 > Sending packet 7 > Sending packet 8 > Sending packet 9 > Sending packet 10 > Sending packet 11 > Sending packet 12 > Sending packet 13 > > where as the output is supposed to be (according th the tutorials) as > follows : > > Sending packet 1Received packet sequence number 4 > Sending packet 2 > Received packet sequence number 5 > Sending packet 3 > Received packet sequence number 6 > Sending packet 4 > Received packet sequence number 7 > Received packet sequence number 8 > Sending packet 5 > Received packet sequence number 9 > Sending packet 6 > > > i hope there is someone who knows/guesses about this case . > > Thanks. > > Mash'al > ------------------------------ > *From:* Eric Decker <[email protected]> > *To:* Mashal al-shboul <[email protected]> > *Cc:* "[email protected]" < > [email protected]> > *Sent:* Friday, February 10, 2012 2:12 AM > *Subject:* Re: [Tinyos-help] help about problem in TestSerial > application:TOSComm JNI library runtime error: flush: Input/output error > > > > you need to figure out where the iMote2 is showing up. > > With the iMote2 unplugged from the USB port... do tail -f > /var/log/messages > > Then plug the iMote2 into the system. You should see something that > reflects the iMote2 being configured. > > It should say something about connecting it to something in /dev/. > > But I haven't used the iMote2 so don't know exactly what its h/w looks > like or what it looks like on Linux. > > > How did you try the other ports? > > what was you exact command syntax. > > > Also try running motelist and see what it says. > > eric > > > > On Fri, Feb 10, 2012 at 1:34 AM, Mashal al-shboul <[email protected]>wrote: > > Hi All, > > i am trying to run TestSerial application after correctly compiled and > flashed to iMote2, in tinyOS 2.1.1. > when i run: mashal@ubuntu:/opt/tinyos-2.1.1/apps/tests/TestSerial$ java > TestSerial -comm serial@/dev/ttyS0:intelmote2 > i get the following error: serial@/dev/ttyS0:115200 died - exiting ( > java.io <http://java.io.IO>.IOException: Could not open /dev/ttyS0: > TOSComm JNI library runtime error: flush: Input/output error). > > i tried ttyS0,ttyS1,ttyS2, ttyUSB0,ttyUSB1... as ports but the error > persisted ! > > please, what is the reason for this error?...is the problem in the port > naming?, or in java libraries for serial communication, or....? > > i use jdk 1.6 in tinyos 2.1.1 > > Please i need help from anyone who has tried this error or knows about it. > Thanks in advance. > > Best Regards, > Mash'al > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > Eric B. Decker > Senior (over 50 :-) Researcher > > > > > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
