Can anyone tell me how to get the scrambling code of serving cell in android? I have tried getPSC() but it is always retrieving -1 . I am able to get neighbour cell psc correctly but serving cell psc is always giving -1.
Asked
Active
Viewed 1,808 times
0
-
This is extremely vague, try adding more detail – Jack Satriano Jun 28 '12 at 02:24
-
be more specific on asking question – MBMJ Jun 28 '12 at 02:57
-
6I think the question here is perfectly clear, but it's very technical, and you can only understand the question if you have sufficient knowledge of cell phone technologies and the Android API. – Ken Bloom Jun 28 '12 at 03:06
-
1See http://en.wikipedia.org/wiki/Common_pilot_channel for some more technical background. – Ken Bloom Jun 28 '12 at 03:10
-
I agree with Ken Bloom. This question isn't vague, it's esoteric. – aroth Jun 28 '12 at 03:26
-
That said, it may be a dupe of a [couple](http://stackoverflow.com/questions/10613736/getpsc-using-gsmcelllocation-in-android) [other](http://stackoverflow.com/questions/9631870/how-to-getpsc-and-signal-strength-in-samsung-galaxy-ii-and-tab) questions that have been asked here before, but none of them have answers either. – Ken Bloom Jun 29 '12 at 03:15
1 Answers
1
If you read the documentation, you'll see that the scrambling code is only relevant to a UMTS network. If the cell network uses any other technology (e.g. GSM), you'll get -1 as the result.
Edit:
Another thought: maybe there's a bug and the hardware vendor didn't properly hook up the getPsc()
call to do the right thing.

Ken Bloom
- 57,498
- 14
- 111
- 168