基站信息:[CF.Skills]C#中如何通过RIL获得
基站信息
疯狂代码 http://CrazyCoder.cn/ ĵ:http:/CrazyCoder.cn/DotNet/Article49325.html
在Windows Mobile手机上面, RIL提供了访问Radio模块接口, 下面以个简单举例介绍说明如何在
C#中通过RIL获得基站信息.
第步. 定义必要数据结构和回调
1. 包含基站信息RILCELLTOWERINFO类
public RILCELLTOWERINFO
{
public u cbSize;
public u dwParams;
public u dwMobileCountryCode;//中国MCC为460
public u dwMobileNetworkCode;
public u dwLocationAreaCode;
public u dwCellID;
public u dwBaseStationID;
public u dwBroadcastControlChannel;
public u dwRxLevel;
public u dwRxLevelFull;
public u dwRxLevelSub;
public u dwRxQuality;
public u dwRxQualityFull;
public u dwRxQualitySub;
public u dwIdleTimeSlot;
public u dwTimingAdvance;
public u dwGPRSCellID;
public u dwGPRSBaseStationID;
public u dwNumBCCH;
}
2.用于异步返回RIL结果回调RILRESULTCALLBACK
public delegate void RILRESULTCALLBACK(u dwCode,
评论0
最新资源