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.0 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.4955]
 1.1 DNS_FROM_OPENWHOIS     RBL: Envelope sender listed in bl.open-whois.org.
-0.3 AWL                    AWL: From: address is in the auto white-list


--- 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 guys
1
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.

2

 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--tp22820881p28279870.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

Reply via email to