Patent ID: 8625657

Claim:
A method comprising: correlating a pseudo-random spreading code having a first offset with a spread signal to produce a first correlation result; correlating the pseudo-random spreading code with a second offset having the spread signal to produce a second correlation result; determining a value of a cost function using the first correlation result and the second correlation result; adjusting the first offset and the second offset in dependence upon the value of the cost function, the cost function using a first weighting for the first correlation result and a second, different weighting for the second correlation result such that a ratio of the first weighting to the second weighting is less than 1; and providing a feedback loop that is at lock when the first correlation result is a predetermined factor of the second correlation result, wherein the predetermined factor is a ratio of a first value of a correlation function, at feedback loop obtained lock, at the first offset to a second value of the correlation function, at feedback loop obtained lock, at the second offset.