×

Discussion Board

Results 1 to 6 of 6

Thread: Cell Id

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    Cell Id

    Hey all,

    I've seen a lot of code for retrieving Cell Id...

    It has not been any problem including the different libs from the 9200 sdk, to compile in vc6 and get the nokia emulator running!!

    The code I use is posted by: symbianyucca
    on the following URL:
    http://discussion.forum.nokia.com/fo...*&pagenumber=4

    But when I do the "abld build armi urel" I'will get the following error message!!!

    C:\Symbian\7.0s\Series60_v21\Series60Ex\helloworldplus\group>abld build armi urel
    1 fil(er) kopieret.
    1 fil(er) kopieret.
    1 fil(er) kopieret.
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\ARMI.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl -D \SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS ARMI

    1 fil(er) kopieret.
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\ARMI.make" LIBRARY VERBOSE=-s
    make -s -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWO
    RLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\HELLOWORLDPLUS.ARMI" LIBRARY
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\ARMI.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWO
    RLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\HELLOWORLDPLUS.ARMI" RESOURCEUREL
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\ARMI.make" TARGET CFG=UREL VERBOSE=-s
    make -s -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWO
    RLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\HELLOWORLDPLUS.ARMI" UREL
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x80):Helloworldplus: undefined reference
    to `RBasicGsmPhone::RBasicGsmPhone(void)'
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x80):Helloworldplus: relocation truncate
    d to fit: ARM_26 RBasicGsmPhone::RBasicGsmPhone(void)
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x94):Helloworldplus: undefined reference
    to `MBasicGsmPhoneNetwork::TNetworkInfo::TNetworkInfo(void)'
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x94):Helloworldplus: relocation truncate
    d to fit: ARM_26 MBasicGsmPhoneNetwork::TNetworkInfo::TNetworkInfo(void)
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x13c):Helloworldplus: undefined referenc
    e to `RBasicGsmPhone::GetCurrentNetworkInfo(MBasicGsmPhoneNetwork::TCurrentNetworkInfo &) const'
    ..\..\..\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWORLDPLUS\GROUP\HELLOWORLDPLUS\ARMI\
    UREL\HELLOWORLDPLUS.in(../../../EPOC32/BUILD/SYMBIAN/7.0S/SERIES60_V21/SERIES60EX/HELLOWORLDPLUS/GRO
    UP/HELLOWORLDPLUS/ARMI/UREL/HELLOWORLDPLUSAPPVIEW.o)(.text+0x13c):Helloworldplus: relocation truncat
    ed to fit: ARM_26 RBasicGsmPhone::GetCurrentNetworkInfo(MBasicGsmPhoneNetwork::TCurrentNetworkInfo &
    ) const
    make[1]: *** [..\..\..\EPOC32\RELEASE\ARMI\UREL\HELLOWORLDPLUS.APP] Error 1
    make: *** [TARGETHELLOWORLDPLUS] Error 2
    make -r -f "\Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\SERIES60EX\HELLOWOR
    LDPLUS\GROUP\ARMI.make" FINAL CFG=UREL VERBOSE=-s


    Could anyone pleace help me out???

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    you also need to include the required libraries to your mmp file, which after you need to re-build your works space again, then it should work just fine.

    yucca

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    celle id

    thx for the reply yucca!!

    I already think that I have included the required libs!!

    This is how my mmp file looks like!!

    TARGET HelloWorldPlus.app
    TARGETTYPE app

    // Change the second number here to change the UID for this application
    UID 0x100039CE 0x10005bcb
    TARGETPATH \system\apps\helloworldplus

    SOURCEPATH ..\src

    SOURCE Obstacle.cpp
    SOURCE CCar.cpp
    SOURCE HelloWorldPlus.cpp
    SOURCE HelloWorldPlusApplication.cpp
    SOURCE HelloWorldPlusAppView.cpp
    SOURCE HelloWorldPlusAppUi.cpp
    SOURCE HelloWorldPlusDocument.cpp

    SOURCEPATH ..\group
    RESOURCE HelloWorldPlus.rss
    RESOURCE HelloWorldPlus_caption.rss

    USERINCLUDE ..\inc

    SYSTEMINCLUDE \epoc32\include

    LIBRARY euser.lib
    LIBRARY apparc.lib
    LIBRARY cone.lib
    LIBRARY eikcore.lib
    LIBRARY avkon.lib
    LIBRARY commonengine.lib

    LIBRARY etel.lib
    LIBRARY gsmbas.lib

    It should be ok shouldn't??

    Any other idea yucca??

    Thanx

    Jon

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    and did you remember to re-build the workspace after makeing the changes to the mmp file ?

    yucca

  5. #5
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    cell id

    Hey again Yucca,

    I think so.. It is reallly strange..! This is my commands:

    1
    In the group folder: C:\Symbian\7.0s\Series60_v21\Series60Ex\helloworldplus\group makmake helloworldplus.mmp vc6

    to rebuild workspace!!
    No problem!

    2
    In the group folder: bldmake bldfiles
    No problem!

    3
    In the group folder: abld build armi urel
    Her goes the error posted earlier!!

    Just to be sure.. Here goes Your code Yucca .-)

    void CHelloWorldPlusAppView::GetNetWorkInfoL(void)
    {

    _LIT(KTsyName, "phonetsy.tsy");

    TInt enumphone = 1;
    RTelServer server;

    RBasicGsmPhone phone;
    RTelServer::TPhoneInfo info;
    MBasicGsmPhoneNetwork::TCurrentNetworkInfo NetworkInfo;

    User::LeaveIfError(server.Connect());
    CleanupClosePushL(server);
    User::LeaveIfError(server.LoadPhoneModule(KTsyName));
    User::LeaveIfError(server.EnumeratePhones(enumphone));

    if (enumphone < 1)
    {
    User::Leave(KErrNotFound);
    }

    User::LeaveIfError(server.GetPhoneInfo(0, info));

    User::LeaveIfError(phone.Open(server, info.iName));
    CleanupClosePushL(phone);

    User::LeaveIfError(phone.GetCurrentNetworkInfo(NetworkInfo));

    //aMcc = NetworkInfo.iNetworkInfo.iId.iMCC;
    //aMnc = NetworkInfo.iNetworkInfo.iId.iMNC;
    //aLocation = NetworkInfo.iLocationAreaCode;

    CellId = NetworkInfo.iCellId;

    CleanupStack::PopAndDestroy(2);//server,phone

    }

    Any ideas??
    I'm really frustrated right now...

    Thx :-)
    Jon

  6. #6
    Regular Contributor
    Join Date
    Aug 2004
    Location
    Hyderabad-India
    Posts
    160

    hi

    I am also facing the same problem....

    waiting for the solution


    Thanks
    --
    V.V.S.Naresh

Posting Permissions

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