well,
makes sense doesn't it? how can you simulate the strength of the recieved
signal? i'd imagine it's fairly random.
although, i wouldn't stake anything on it. maybe someone else has a better
idea.
Sankar.
On Tue, 06 Jun 2006 01:33:41 -0500, Rajat Bansal <[EMAIL PROTECTED]>
wrote:
okay i got it..i think tossim seems to be the problem. I also read it
somewhr that there is some problem with printing the strength value on
pc.
Thanks,
Rajat
On Tue, 6 Jun 2006, Sankar Gorthi wrote:
and oh - tinyos-1.1.0
Sankar.
On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi
<[EMAIL PROTECTED]> wrote:
well,
this is my (a colleague's) code:
Receive.receive(TOS_MsgPtr m)
IntMsg *message=(IntMsg*)buffer.data;
message->val=m->strength;
....
doesn't look too different.
although our experiments were done on the actual motes and we
broadcast the value in a message packet as you can see.
Sankar.
On Tue, 06 Jun 2006 00:11:29 -0500, Rajat Bansal
<[EMAIL PROTECTED]> wrote:
dear sanskar,
1) which version of tinyos did u use?
2) i am attaching my code for recieved packet.
event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {
TOS_MsgPtr ret = m;
IntMsgnew*message = (IntMsgnew *)m->data;
atomic{receivednode=message->src;}
// call ADC.getData();
// call ADCBattery.getData();
updateNeighbors(message->src,message->val,message->seqNo);
dbg(DBG_USR1,"strength %d",m->strength); --> this is how i am
trying to access...
// printNeighbors();
call Leds.redToggle();
ret = m;
this is a simple code i have written for recieved packet..i dont
know wat seems to be the problem. can u make out some mistake?
-rajat
On Mon, 5 Jun 2006, Sankar Gorthi wrote:
i was able to get it. what seems to be the problem?
all i did was access the message->strength value.
Sankar.
On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal
<[EMAIL PROTECTED]> wrote:
I am trying to print RSSI strength in the recieved broadcast
packet. First i was trying to access in tinyos-1.0 but i came to
know that it is not possible in this version. I upload my tinyos to
1.15 but i am getting the value as zero only. Has ne one else came
thru similar problem?
-rajat
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help