[mc1322x] Access to LQI

Mariano Alvira mar at devl.org
Thu Jun 10 18:17:02 EDT 2010


On Thu, Jun 10, 2010 at 10:37:29PM +0100, Clive Stubbings wrote:
> Hi Mar,
>
> That didn't work. I'm guessing that the rom call isn't compatible with 
> your wireless code - or the address is wrong, or the call in the s/w 
> build I have is different from the one into ROm... or whatever..
>
> Not done any RE for a long time... Is there a dis listing that people are 
> working on somewhere? I'm presuming the ws-dis and mc..img are ram only.

Here are some more clues:

Googling PhyPlmeGetLQI finds:

http://read.pudn.com/downloads155/sourcecode/embed/687920/My%20Solution/fallsensor/SMAC/Drivers/LibInterface/Rom_Phy.h__.htm

which has:

typedef struct{ 
  int32_t calFactor; 
  int32_t lnaMinGain; 
  int32_t lnaMaxGain; 
  int32_t ifaMaxGain; 
} LQIParams_t; 
 

And I also know the following:

        .global PhyPlmeGetLQI
        .type   PhyPlmeGetLQI,  %function
        .thumb_set      PhyPlmeGetLQI,  0x0000e04c

        .global LQIParams
        .type   LQIParams,      %object
        .set    LQIParams,      0x004001d4

This is probably the reason it isn't working for you... You need the
LQIParams struct at 0x4001d4. Then maybe that struct will be populated
if you call PhyPlmeGetLQI at 0xe04c... or maybe you need to fill
LQIParams and then do the call... in fact, those params match a bunch
of terms in the equation you gave.

-Mar.





More information about the mc1322x mailing list