×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    50

    retrieve cell-id and location area code

    hi..

    I want to retrieve the cell-id and location area code of a cell phone. I m currently working on S60 2nd Edition FP3. Since we dont have CTelephony class in S60 2nd edition, I need some help.


    please suggest some API's with which i can start.


    Thans in advance...

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: retrieve cell-id and location area code

    You could maybe search this forum a bit and you could indeed find plenty of discussions on the topic. anyway, if I remember right, the Call if can be gotten with non-public Symbian API (one of the APIs inside etelmm) only.

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    50

    Re: retrieve cell-id and location area code

    Thanks symbianyucca...

    I searched in google and i got some help. The header file I need to have is etel.h. and the lib files are etel.lib and gsmbas.lib. I dont know from where should i get the gsmbas.lib.

    I m stuck..

    Please help..

    Thanks in advance..

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: retrieve cell-id and location area code

    Those are for 1st edition, and would not work with 2nd edition.

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    50

    Re: retrieve cell-id and location area code

    Thanks symbianyucca...

    I got the gsmbas.lib file in SDK 1st Edition and i copied it to my SDK 2nd Edition. The program is now running successfully on the emulator as well as my N70 device. The code for retrieving cell id and location area code in 2nd Edition is:
    Code:
    	RTelServer server;
    	CleanupClosePushL(server);
    	User::LeaveIfError(server.Connect());
    	User::LeaveIfError(server.LoadPhoneModule(_L("phonetsy.tsy")));
    	RTelServer::TPhoneInfo info;
    	User::LeaveIfError(server.GetPhoneInfo(0, info));
    	RBasicGsmPhone phone;
    	CleanupClosePushL(phone);
    	User::LeaveIfError(phone.Open(server, info.iName));
    	MBasicGsmPhoneNetwork::TCurrentNetworkInfo ni ;
    	phone.GetCurrentNetworkInfo( ni ) ;
    
    	
    	//Cell Id
    	TInt cellId = ni.iCellId;
    		
    	TBuf<20> cellidrepr;
    	cellidrepr.AppendNum(cellId);
    	
    		
            
    	//Location Area Code
    	TInt locationareacode = ni.iLocationAreaCode;
    		
    	TBuf<20> locationareacoderepr;
            locationareacoderepr.AppendNum(locationareacode);

    The above code gives the cellid in cellidrepr and location area code in locationareacoderepr.

    The header files required are etel.h,etelbgsm.h.
    The library files are etel.lib and gsmbas.lib.

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    7

    Re: retrieve cell-id and location area code

    hii can anyone post a working full project for retrieving network information such as
    area code
    cellid
    MMC
    MNC
    etc

    iam a newbie and donno much how to use if u paste it in pieces i need a full project.

    thanks a tom in advance.
    9chakri@gmail.com

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: retrieve cell-id and location area code

    Read IMSI using CTelephony and retrive MCC MNC from there.
    followings are usefull links.

    Get IMSI:
    http://wiki.forum.nokia.com/index.ph...in_3rd_Edition
    Or
    http://wiki.forum.nokia.com/index.ph...-Synchronously

    Get MCC MNC from IMSI:
    http://wiki.forum.nokia.com/index.php/IMSI

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,345

    Re: retrieve cell-id and location area code

    Quote Originally Posted by debianmaster View Post
    iam a newbie and donno much how to use if u paste it in pieces i need a full project.
    Better you should learn it rather than asking for complete project. Simply search for CTelephony keyword on Forum Nokia Wiki, you would get enough good results to start with.

    If you find any difficulty in your learning path then please feel free to ask here.

    All the best.
    Nokia Developer Wiki Moderation team

  9. #9
    Registered User
    Join Date
    Jan 2009
    Posts
    7

    Re: retrieve cell-id and location area code

    thnaks for code. i'll test it now.
    do i need to pay to get developer certificate??
    thanku

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,345

    Re: retrieve cell-id and location area code

    Quote Originally Posted by debianmaster View Post
    thnaks for code. i'll test it now.
    do i need to pay to get developer certificate??
    thanku
    With your specific requirements, you would need ReadDeviceData capability at most. If you do not own Publisher ID(I guess, you don't) then simply use free available option, i.e, OpenSigned Online to sign your application to test on your device. Here is the link to proceed: OpenSinged Online

    Define ReadDeviceData capability in your .mmp file as follows and build your application. Of course you need to implement actual logic to retrieve such network parameters. For that see my previous thread and get going:

    Code:
    CAPABILITY ReadDeviceData
    All the best.
    Nokia Developer Wiki Moderation team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×