Forum Archive

Access cellular service strength?

kylenessen

Hi all,

I want to write a script that will repeatedly log my location and cell service strength so I can identify dead zones along my commute. Gaining access to location information seems simple enough, but I'm wondering if anyone can help me get access to cell strength.

Here's one article that shows how to manually access what I'm looking for, rsrp0.

Thanks for the help!

mikael

@kylenessen, try this, not documented API, and just returns 100 for me, could be blocked by Apple.


from objc_util import *
import ctypes

load_framework('CoreTelephony')

CTGetSignalStrength = c.CTGetSignalStrength
CTGetSignalStrength.restype = ctypes.c_int
CTGetSignalStrength.argtypes = []

print(CTGetSignalStrength())
kylenessen

It's returning 100 for me as well :/

Will have to reconsider my project. Thank you for the code, though!

kylenessen

For any future readers, the app Sensorly seems to do exactly what I want. Unfortunately, development seems to have officially stopped.