[Tinyos-help] how to wire CC2420Packet to user code encounters in tinyOS?

2017-02-26 Thread desword
Recently I want to use the interface CC2420Packet to set transmission power. By using the command setPower. I am now working at Tinyos 2.1.2. However, I encounter this error: RadioCountToLedsC.nc: In function `changepower': RadioCountToLedsC.nc:139: CC2420Packet.setPower not connected In

[Tinyos-help] how to sample the channel power when no node is transmitting?

2016-12-15 Thread desword
how to sample the channel power when no node is transmitting? the example in tinyos tutorial only the sampling under the transmission power. as shown in http://tinyos.stanford.edu/tinyos-wiki/index.php/Rssi_Demo However, as the application that is mentioned in above website: *"Another usage

Re: [Tinyos-help] how to printf the sample data with a high sampling rate?

2016-12-15 Thread desword
Thanks very much, I have tried to output the timestamp using hex and just shorten the output length, reformat the output format to "cca,sfd,timestamp", and the results are fine. 1,0,aca7. 0,0,acac. 1,0,acb4. 0,1,acb6. 1,0,acbe. 1,0,acbf. 1,0,acc5. 1,0,acca. 0,1,acd0. 1,0,acd8. 1,0,acdb. 1,0,acdc.

[Tinyos-help] how to printf the sample data with a high sampling rate?

2016-12-14 Thread desword
Currently, I am intending to record the cca and sfd value using a timer. Due to the high frequency sampling rate (5ms/ sample), the output of the printf would flush themselves like follows: [26804][26820]cca:1, sfd:0. [26823][26831]cca:1, sfd:0. [26834]cca:1, sfd:0. [26841]cca:1, [26847]cca:0,

Re: [Tinyos-help] how to wire CC2420Packet to user code encounters in tinyOS?

2017-03-14 Thread desword
Thanks, I have figured it out. The reason is that I edited the source file in another editor, while the compiled source file is not changed. = = -- View this message in context:

[Tinyos-help] Why the path-ETX is calculated as the addition of each link but not the multiplication?

2018-06-27 Thread desword
In general, the path ETX is calculated as (1/first_link(P)+ ... +1/last_link(P) ), along with the each link. However, intuitively, the ETX of a path P should have this form "1/first_link(P)*...*last_link(P). why it is actually an additive metric rather than multplicative one? -- Sent from: