Hi, Hope this solves your problem.
I had the exact same problem with my micaz mote. When you plug in the mote, you should see two serial ports. For me it's ttyUSB0 and 1. When you program, you use one port. When you receive, it's the other. So when you try the TestSerial command, plz use the non-programming port which is USB1. hope that helps. Xiaodong Wang-2 wrote: > > Hi all, > > I try to TestSerial to receive pacekt from PC. However, while the PC is > running "java testserial -comm ....." and sendin packet, the mote receives > nothing. It appears to me that the below function in TestSerialC.nc > > event message_t* Receive.receive(message_t* bufPtr, > void* payload, uint8_t len) { > call Leds.set(7); > ....... > } > > is never executed. The LED never light up. > > Any idea what the problem is? > > Thanks, > Xiaodong Wang > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- View this message in context: http://old.nabble.com/not-able-to-receive-packet-from-PC-tp28187110p30923099.html Sent from the TinyOS - Help mailing list archive at Nabble.com. _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help