开发者

Field testing iPhone for Cell ID and RSSI

开发者 https://www.devze.com 2023-02-14 21:20 出处:网络
I need to write a testing application to retrieve info about cell id and rssi on iphone4 IOS 4.2.1, like FieldTest application (Calling 3001#12345# view UMTS Cell Enviroment/GSM Cell Enviroment).

I need to write a testing application to retrieve info about cell id and rssi on iphone4 IOS 4.2.1, like FieldTest application (Calling 3001#12345# view UMTS Cell Enviroment/GSM Cell Enviroment).

I have tried to import CoreTelephony framework and using private API (CTServerConnectionCreate/CTServerConnectionCellMonitorStart).

In this way I am able to retriev开发者_JS百科e info if I connect to 2g network.

If enable 3G, when I call CTServerConnectionCellMonitorGetCellCount, cellcount is always 0.

How can I retrieve these info if connected to 3G Network?


I am working in a such application, i try to retrive cellId, lac and rssi values. I found a solution for rssi value:

void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LAZY);
int (*CTGetSignalStrength)();
CTGetSignalStrength = dlsym(libHandle, "CTGetSignalStrength");
if( CTGetSignalStrength == NULL) NSLog(@"Could not find CTGetSignalStrength");  
int result = CTGetSignalStrength();
dlclose(libHandle);

for the 2 other values i didn't found any way to retrive them even on a 2G network, can you post your code, i will test it and try to get it working on a 3G network.

0

精彩评论

暂无评论...
验证码 换一张
取 消