Dear Greg, Thanks for your information, that's really helpful. But I found out that the example illustrated in TEP 113 section 3.6 was incompatible with the java code and the structure defined in Serial.h. I think there should be two bytes between the destination address (be ef) and the data length byte (05). I will verify it in my code.
Thank you! Jennifer On Thu, Apr 10, 2008 at 12:19 PM, Greg Hackmann <[EMAIL PROTECTED]> wrote: > 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 [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
