Li Jianfeng wrote: > And then I send a package "00 FF FF 00 00 01 00 09 05" from UART, but > nothing happened, even the red light that indicates having receive a > message from UART did not on at all. I modified the package as the the > format of UART receiving message from mote, that is "7E 45 00 FF FF 00 > 00 01 00 09 05 DD 1D 7E", the mote still did not work.
You should read TEP 113 (http://www.tinyos.net/tinyos-2.x/doc/html/tep113.html). It gives the format of serial messages and describes the rules for delimiting and escaping packets. > I have also tried to find how the java application send the data > package, but what I found in AbstractSource.java is a function that > always return TRUE ( writeSourcePacket(byte[] packet) ). So I did not > know what happened during the sending process. The code for sending packets in the TinyOS serial format is in net.tinyos.packet.Packetizer. Greg Hackmann _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help