there is no working code about IMSI for 6600 WHY???
| Thu, 2005-05-05 09:04 | |
|
In the eric web sites this code doesnt work:
CTelephony telephony = CTelephony::NewL(); TRequestStatus status; CTelephony::TSubscriberIdV1 subscriberId; CTelephony::TSubscriberIdV1Pckg subscriberIdPckg(subscriberId); telephony->GetSubscriberId(status, subscriberIdPckg)); User::WaitForRequest(status); User::LeaveIfError(status); TPtrC theIMSI(subscriberId.iSubscriberId); /////////////////////////////////////////////////// The i ve forund this code from http://db.cs.helsinki.fi/~mraento/lxr/source/context_log/src/locationing.cpp RMobilePhone phone; 082 RTelServer::TPhoneInfo info; 083 TInt ret; 084 if ( (ret=TelServer().GetPhoneInfo( 0, info ))==KErrNone) { 085 if ((ret=phone.Open( TelServer(), info.iName ))==KErrNone) { 086 CleanupClosePushL(phone); 087 RMobilePhone::TMobilePhoneSubscriberId i; 088 TRequestStatus r; 089 phone.GetSubscriberId(r, i); 090 User::WaitForRequest(r); 091 if (r==KErrNone) { 092 imsi=i; 093 success=true; 094 } else { 095 TBuf<80> msg=_L("error getting imsi "); 096 msg.AppendNum(r.Int()); 097 msg.Append(_L(" ")); msg.Append(i); 098 if (cb) cb->status_change(msg); 099 } There are some virtual funtions and when i can use them in GUI app, there gives an error that about abstrac class, see decleration..(in container or APpui Class for ex..) ///////////////////////////////////////// Also i tried some codes from nokia forum which includes RAdvgsm class.. This class is for platform 1.0/ or 1.2 not used for 6600 So plz help me, i ve get rid of searching and getting errors... |
|






Forum posts: 28
Also i tried many codes but i can not be succesfull...
Is there anybody succesfull getting IMSI number from 6600
Forum posts: 51
http://www.symbian.com/developer/development/syslibs.html#mobinfo
B
Forum posts: 10
AM I WRONG?
IF SO, PLZ HELP MEEEEEE!!!!
Forum posts: 77
Forum posts: 10
i have a graduated project and i have to take imsi for 6600...
is there anybody that can succes taking IMSI number on 6600?
PLZ HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!!!!!!!!!!!!!!!!!!!!!!!
Forum posts: 10
Forum posts: 1379
Well, If I had an answer you liked to this question, i would have posted it. Alas, I don't. I do know how to get the IMEI number of early 7.0s phones, but this is using non-public librarys.
Most methods have been disclosed at somepoint on various forums, but most rely on headers/libs not offically released from Symbian.
I'm affraid the only way I could help you is to send you the headers and libs you need to do it, and thats not something I'm willing to do for obvious reasons - there not offically public domain.
That example code should work on a 6600 (you need to tidy it up a bit), but you will need the relavant headers and libs to build it. They are on the web somewhere, i think, so see if you can find them. Once you find them, I can help you get that code working.
didster
Forum posts: 10
do u mention about the first code or the second??
if you mentioned the second one, how can i get rid of virtual funtions?
As the TelServer() is a virtual funtion and i can not declare it in any gui class...
Forum posts: 1379
So:
RMobilePhone phone;
RTelServer aTelServer;
aTelServer.Connect();
RTelServer::TPhoneInfo info;
TInt ret;
if ( (ret=aTelServer.GetPhoneInfo( 0, info ))==KErrNone) {
if ((ret=phone.Open( aTelServer, info.iName ))==KErrNone) {
CleanupClosePushL(phone);
RMobilePhone::TMobilePhoneSubscriberId i;
TRequestStatus r;
phone.GetSubscriberId(r, i);
User::WaitForRequest(r);
if (r==KErrNone) {
imsi=i;
} else {
TBuf<80> msg=_L("error getting imsi ");
aTelServer.Close();
didster
Forum posts: 165
how come when i'm trying to use your code i get:
TMobilePhoneSubscriberId is not a member of RMobilePhone
is there a library that i should link with etelmm.h?
thanks..
were you able to get the imsi of 6600?
b
Forum posts: 176
To send the command you will find working code in the forum, but receiving the answer is a little bit tricky. But it is possible with official header and libs! Sorry i couldnt send you the code (owned by my company), but if you got a the right line and open a call-object with the line, there is a official command (with the call) to get the answers of the modem.
Hope this will help;
CG
Forum posts: 165
To send the command you will find working code in the forum, but receiving the answer is a little bit tricky. But it is possible with official header and libs! Sorry i couldnt send you the code (owned by my company), but if you got a the right line and open a call-object with the line, there is a official command (with the call) to get the answers of the modem.
Hope this will help;
CG
hmmm. sorry for me.. well, i'm just asking if TMobilePhoneSubscriberId is somewhere in etelmm.h...
i tried to look for it in the etelmm.h that i have, but there isn't any... is there a higher version or full version of it???
Forum posts: 176
Bye;
CG
Forum posts: 91
AM I WRONG?
IF SO, PLZ HELP MEEEEEE!!!!
No, you are not wrong, MobInfo has (apparently) been built for UIQ2.x.
However, try it on your 6600..... It works just fine for me getting the IMSI from S60 handsets, including the 6600, so the APIs Symbian is using inside Mobinfo must be binary compatible S60/UIQ.
---
Kevin Dixon
Symsource Ltd.
www.symsource.com
Forum posts: 31
No, you are not wrong, MobInfo has (apparently) been built for UIQ2.x.
However, try it on your 6600..... It works just fine for me getting the IMSI from S60 handsets, including the 6600, so the APIs Symbian is using inside Mobinfo must be binary compatible S60/UIQ.
Mobinfo is now available for most phones:
http://www.symbian.com/developer/development/syslibs.html#mobinfo
Gavin