Getting the Current Cell Id using Symbian S60
来源:互联网 发布:盐与避难所 mac下载 编辑:程序博客网 时间:2024/04/30 08:05
What you need:
Series 60 SDK
Communicator 9200 SDK version 0.9 or higher
etel.h from Communicator 9200 SDK
etelbgsm.h from Communicator 9200 SDK
Instructions:
Copy etel.h and etelbgsm.h to the /Symbian/6.1/Series60/Epoc32/Include directory.
Link your app to gsmbas.lib and etel.lib.
Use this code:
RBasicGsmPhone phone;
RTelServer server;
User::LeaveIfError( server.Connect() );
// load a phone profile
_LIT(KGsmModuleName, "phonetsy.tsy");
User::LeaveIfError( server.LoadPhoneModule( KGsmModuleName ) );
// initialize the phone object
RTelServer::TPhoneInfo info;
User::LeaveIfError( server.GetPhoneInfo( 0, info ) );
User::LeaveIfError( phone.Open( server, info.iName ) );
MBasicGsmPhoneNetwork::TCurrentNetworkInfo netinfo;
User::LeaveIfError( phone.GetCurrentNetworkInfo( netinfo ) );
Now you should be able to access the fields of
MBasicGsmPhoneNetwork::TCurrentNetworkInfo
which are
.iCellId
.iLocationAreaCode
.iNetworkInfo.iShortName
Once you have grabbed the info use this code to clean up:
phone.Close();
server.UnloadPhoneModule( KGsmModuleName );
server.Close();
All the code should work for the 6600 as well. You have the option of
just compiling with the 1.2 SDK or copying the headers to the 2.0 SDK .
Explore the other functions and data available through these objects as well. The headers should provide you with enough information to figure out what they are. Not all of them are completely implemented. According to a Forum Nokia post you can get to the information by:
- ManufacturerId, Serial No: GetPhoneInfo()
- BER, battery status: GetX - async version
- Signal Strength: SignalStrengthNotification()
Use the NotifyChangeOfCurrentNetwork, so that works as well.
- Getting the Current Cell Id using Symbian S60
- Getting the Current Cell Id using Symbian S60
- Getting the ID of the element that fired an event using jQuery
- Getting the Current Date and Time
- Current-voltage ( I-V) curves of the photovoltaic cell
- symbian s60 vc设置
- Symbian/S60 新手指南!
- symbian s60应用程序框架
- Symbian S60 Camera
- Symbian S60开发经验
- symbian s60 widget
- symbian s60 字符串操作
- Symbian S60 blog
- Symbian S60文件格式关联
- Building and Debugging PJSIP on Symbian S60 3rd Edition Device using Carbide C++ 1.2
- Using the CCheckListBox and getting check state notification
- Current version is 2.2.1. If using the gradle wrapper
- Cell-ID
- 使用资源文件实现窗体多国语言版
- 用 Apache 和 Subversion 搭建安全的版本控制环境
- 测试一下你的C语言水平
- 成为嵌入式程序员应知道的0x10个问题
- 笑看龙芯笔记本的三次"易容"
- Getting the Current Cell Id using Symbian S60
- 寂寞的颜色
- hp6315购买须知
- 默认调试器设置
- mathworld的一些资源
- 文件下载字符乱码完整解决方案【servlet+Tomcat】
- ORACLE分析表和索引的脚本
- 搜索引擎优化 通向成功十步(九)
- 没有的测试的一段代码