Spam detection software, running on the system "mail.Millennium.Berkeley.EDU",
has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: In module CC2420ControlP, I found this: 395 event void
RssiResource.granted()
{ 396 uint16_t data; 397 call CSN.clr(); 398 call RSSI.read(&data); 399 call
CSN.set(); 400 401 call RssiResource.release(); *402 data += 0x7f;* 403 data
&= 0x00ff; 404 signal ReadRssi.readDone(SUCCESS, data); 405 } [...]
Content analysis details: (4.3 points, 3.3 required)
pts rule name description
---- ---------------------- --------------------------------------------------
3.2 FH_DATE_PAST_20XX The date is grossly in the future.
0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60%
[score: 0.4993]
1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in bl.open-whois.org.
--- Begin Message ---
In module CC2420ControlP, I found this:
395 event void RssiResource.granted() {
396 uint16_t data;
397 call CSN.clr();
398 call RSSI.read(&data);
399 call CSN.set();
400
401 call RssiResource.release();
*402 data += 0x7f;*
403 data &= 0x00ff;
404 signal ReadRssi.readDone(SUCCESS, data);
405 }
And I want to know why plus 0x7f.
Thank you very much.
--
Best Regards,
SANG JUNJUN
Hi guns
i also have this delusion about this question. and follows
1 in 120-140 lines of RssiToSerialP.nc
atomic{ //atomic是可插入的
给total数值
total += val;
//val是CC2420ControlP.nc中得出 给read数值
reads ++;
if(largest < val){
largest = val;
}
}
if(reads == (1<<LOG2SAMPLES)){
I don't konw what do this to total ,reads ,largets and what is the mean of
LOG2SAMPLES?
if you are a chinese, you can tell me in chinese!
Thanks
--
View this message in context:
http://old.nabble.com/Why-plus-0x7f-when-read-rssi-in-CC2420ControlP.nc--tp22820881p28279782.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
--- End Message ---
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help