Re: [Tinyos-help] How to send a message from PC to mote through UART?

2008-04-14 Thread Jeongyeup Paek
There are two levels of packet formatting. First is related to 'Serial.h', and second is related to delimiting and escaping. Serial.h has been modified (2.0.0->2.0.2->2.HEAD)... so you might have problems if you have different versions of code... or TEPS might not have been updated. Regarding the

Re: [Tinyos-help] How to send a message from PC to mote through UART?

2008-04-10 Thread Li Jianfeng
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 lengt

Re: [Tinyos-help] How to send a message from PC to mote through UART?

2008-04-09 Thread Greg Hackmann
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

[Tinyos-help] How to send a message from PC to mote through UART?

2008-04-09 Thread Li Jianfeng
Hi all, I am trying to send control messages from PC to motes through UART. Since the program run on PC was written in C#, I could not use the java code directly. I tried to confirm the package form by modifying the TestSerial application as follows: /*TestWriteSerial.h*/ #ifndef TEST_WRITE_SERIA