Did you remake both your base-station and the java code using
the new DATA_LENGTH?
MS


himanshu barve wrote:
> Hello friends .. 
> I am having some problem when i receive packet data . I am using Listen 
> tool to just have look at what packets i am receiving .. 
> I have already changed TOSH_DATA_LENGTH thus i am able to send 9*4 +3*1 
> = 39 byte data . 
> Now on base mote (connected to pc) i have developed a program which on 
> reception of data from radio , transfer it to pc via serial data 
> transfer . This program is motivated from Oscilloscope program.  I am 
> working on telosb platform in T2.
> 
> my header file contain structure oscilloscope as 
> 
> typedef nx_struct oscilloscope {
>  
>  
>  
>   nx_int32_t reading1;
>    nx_int32_t reading2;
>    nx_int32_t reading3;
>   nx_int32_t reading4;
>    nx_int32_t reading5;
>    nx_int32_t reading6;
>   nx_int32_t reading7;
>    nx_int32_t reading8;
>    nx_int32_t reading9;
>    nx_int8_t reading10;
>    nx_int8_t reading11;
>    nx_int8_t reading12;
>   
> 
> } oscilloscope_t;
> 
> and 
> Packet data i am getting is ..  (with the help of Listen)
> 
> 00 FF FF 00 00 09 00 72 21 00 13 00 01 00 01 00 69
> 00 FF FF 00 00 27 00 93 1E 70 19 12 20 56 E9 80 30 C5 9B 05 32 2D 47 A7 
> 63 0E 12
>  56 62 08 53 DB 1C F9 9E 7E 2E 90 7A 37 5E F5 C1 CD 04 04 04
> 
> 
> 1) Here we can observe that .. PC is receiving 2 messages for only one 
> radio message ..  WHY ?
> 2) My message length is 39 
> here 
> 00 FF FF 00 00 ---*09---* 00 72 21 00 13 00 01 00 01 00 69
> 00 FF FF 00 00 ---*27---* 00 93 1E 70 19 12 20 56 E9 80 30 C5 9B 05 32 
> 2D 47 A7 63 0E 12
>  56 62 08 53 DB 1C F9 9E 7E 2E 90 7A 37 5E F5 C1 CD 04 04 04
> 
> it is either 9 or 27 .. which on adding becomes 38 . all three does not 
> equals with my payload length. 
> 
> 3) 00 FF FF 00 00 09 00 72 21 00 13 00 01 00 01  -----*00 69-------*
> 00 FF FF 00 00 27 00 93 1E 70 19 12 20 56 E9 80 30 C5 9B 05 32 2D 47 A7 
> 63 0E 12
>  56 62 08 53 DB 1C F9 9E 7E 2E 90 7A 37 5E F5 C1 CD 04 04 04
> 
> the bold part is counter .. which is not set by me .. 
> 
> please help ..  
> thanks in advance ..  
> 
> 
> 
> -- 
> With Best Regards
> Himanshu Barve
> M.Tech Electrical Engineering (Power System)
> IIT Kharagpur , West Bengal , India
> Ph: - +91 9775201181
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to