The MIB520 shows up as two serial ports, the one with the lower ID is for programming the mote, the other one for communication. You will need to supply the other one (most probably /dev/ttyUSB1) to the TestSerial java app. Also, the MOTECOM environment variable should refer to this one.
Janos On Mon, Sep 29, 2008 at 9:27 AM, <[EMAIL PROTECTED]> wrote: > I'm trying to run the test application TestSerial, but something is going > wrong. > > I install the application on the mote with sudo make mica2 > mib510,/dev/ttyUSB0 (that's correct, I'm sure), and then I try to run the > java apllication. Here is my output: > > [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tests/TestSerial$ java TestSerial > -comm serial@/dev/ttyUSB0:57600 > Sending packet 0 > serial@/dev/ttyUSB0:57600: resynchronising > 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 > [...] > > I also tried the following: > [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tests/TestSerial$ java > net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:mica2 & > [3] 12816 > [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tests/TestSerial$ java TestSerial > 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 > [...] > But my sf kept "resynchronizing". This is what appears on its screen: > Listening to serial@/dev/ttyUSB0:mica2 > Listening for client connections on port 9002 > serial@/dev/ttyUSB0:57600: resynchronising > write failed > write failed > [...] > > > I'm using a MIB520 board, and it is connected on the computer through its > USB cable, I guess it should also work, right? > > > > > Thansks, > Fernando. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
