[Tinyos-help] Listen and ListenRaw

2006-07-04 Thread Chang Li
How to get Java Listen format message from the ListenRaw format? For example 7e42 040108 01 047d 5d18 000100 87c17e --ListenRaw20 bytes 040108 01 047d 18000100 -- Listen 14 bytes And there were some packets without the tail 7e in raw message, werethey bad packets?

Re: [Tinyos-help] Listen and ListenRaw

2006-07-04 Thread Sankar Gorthi
The packets without the 7E at the end might have had carriage returns or other line feed characters. This causes MATLAB to drop the line if you use fscanf(). fread() should fix that. This link should help you decipher the packets: