Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor anupamcins's Avatar
    Join Date
    Apr 2004
    Posts
    68
    Hello
    I want to know how can i access the information from SIM card in symbain os C++.But i have specific problem...that i want to know how can i access the mobile phone number from my symbian os code.how can i do this.



    Regard
    Anupam

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    you can't access the phones number. Basically it is not even necessarily stored in the SIM card at all. Some functionalities such as address book from SIM can be accesses using non-public API from etelbgsm.h header file (can be found from 9210 SDK), but they only work with OS 6.1 phones.

    yucca

  3. #3
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    To access your sim card information you can use
    etelbgsm.h

    To access contact from SIM use
    Class RGsmPhoneBook

    and in open method use SIM_PHONEBOOK.

    Regards,
    Micky

  4. #4
    Registered User atanu's Avatar
    Join Date
    Jul 2006
    Posts
    2
    Hi,
    i need to read SIM contact.I am using S60 public sdks for Symbian v7.0s ,
    v8.0a and v8.1. I cannot find any API in the public sdks to read SIM contacts. Although I am quite sure that it can be done in sdk of Symbian v6.0 or by using private sdk, but i want to be sure whether it is possible, by any means, to achieve the same using S60 public sdks for Symbian v7.0s ,
    v8.0a and v8.1. Any input will be highly appreciated.

    Thanks,
    atanu

  5. #5
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    As symbianyucca has suggested

    you will have to use etelbgsm.h (link against gsmbas.lib)

    I have used following classed from it

    RTelServer iTelServer;
    RBasicGsmPhone iPhone;
    RGsmPhoneBook iPhoneBook;
    RGsmPhoneBook::TEntry iEntry;

    You will have to open RBasicGsmPhone same as RPhone
    Then open phone book as

    iPhoneBook.Open(iPhone, SIM_PHONEBOOK); //there are other version of //PHONE BOOK available check the etelbgsm.h for detail

    then read the phone book as
    iPhoneBook.ReadFirst(iStatus,iEntry);
    SetActive();

    //For next enrty ReadNext

    Regards
    Micky

  6. #6
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,234
    Hello atanu,
    have a look at following.

    http://discussion.forum.nokia.com/fo...ad.php?t=84164

    Regards.
    Kiran.

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Hi MicMen, have you tried it on OS 7/8 devices ? I remember trying it out some two years ago with 6600 and it failed with -5 (KErrNotSupported), so would quess it wouldn't work on other OS 7 & 8 devices.

    yucca

  8. #8
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    yucca

    You got a good memory.
    yes, I was trying it nearly 2 years ago

    previouly I was getting that error
    but then it was successfull. I could read the SIM caontacts and SMS
    by the same method I have just posted.

    6600 is 7.0 OS only
    but I have not checked with 8.x

    Regards,
    Micky MeNeZeS

  9. #9
    Registered User atanu's Avatar
    Join Date
    Jul 2006
    Posts
    2
    Hi Micky,Yucca,Kiran
    thanks for your replies.

    But "etelbgsm.h" is not present in S60 public sdks like 'Series 60 SDK 2.1 (Symbian 7.0s)' or 'Series 60 2nd Edition SDK Feature Pack 2 (Symbian 8.0a)' or 'Series 60 2nd Edition Feature Pack 3 (Symbian 8.1a)' . I know that i can get this header file / related libraries in 9200 SDK. But it will not be a straight way solution. I just want to be sure that reading SIM contacts is not possible using the above mentioned public sdks.Do you corroborate my opinion?


    regards,
    atanu

  10. #10
    Regular Contributor techietintu's Avatar
    Join Date
    Nov 2006
    Posts
    98
    Hi All,

    Iam using the above code for reading the sim contacts for 2nd edition phones(6600) but i'm struck up with the following error.

    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: int __thiscall RGsmPhoneBook::ReadFirst(class RGsmPhoneBook::TEntry &)" (?ReadFirst@RGsmPhoneBook@@QAEHAAVTEntry@1@@Z)
    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: int __thiscall RGsmPhoneBook::Open(class RPhone &,class TDesC16 const &)" (?Open@RGsmPhoneBook@@QAEHAAVRPhone@@ABVTDesC16@@@Z)
    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: __thiscall RGsmPhoneBook::RGsmPhoneBook(void)" (??0RGsmPhoneBook@@QAE@XZ)
    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: __thiscall RBasicGsmPhone::RBasicGsmPhone(void)" (??0RBasicGsmPhone@@QAE@XZ)




    So please tell me which are the header files and libraries i need to include and what changes i need to make.



    Thanks,
    Techietintu

  11. #11
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    Hi

    Seems like library is not included
    please add gsmgas.lib (for basic GSm capablity) and gsmadv.lib (for advance GSM capablity)

    Regards
    Micky Menezes

  12. #12
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    Hi,

    I am Very sorry.

    It is not gsmgas.lib but gsmbas.lib (for basic GSM)


    Regards,
    Micky

  13. #13
    Regular Contributor techietintu's Avatar
    Join Date
    Nov 2006
    Posts
    98
    Hi All,

    I resolved the above errors by adding the etelmm.h but now i'm facing another set of errors


    Doing first-stage link by name
    link.exe @D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nma01388.
    Creating library \6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.lib and object \6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.exp
    LINK : warning LNK4005: no objects used from library \6680\series_60\EPOC32\RELEASE\WINS\UDEB\COMMDB.LIB
    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: void __thiscall RMobilePhone::GetSubscriberId(class TRequestStatus &,class TBuf<15> &)const " (?GetSubscriberId@RMobilePhone@@QBEXAAVTRequestStatus@@AAV?$TBuf@$0P@@@@Z)
    CONTACTIEAPPUI.obj : error LNK2001: unresolved external symbol "public: __thiscall RMobilePhone::RMobilePhone(void)" (??0RMobilePhone@@QAE@XZ)
    \6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.APP : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    Stop.
    if exist "\6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.exp" del "\6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.exp"
    Stopped the build by removing the export object,
    if present, because the pre-link stage failed
    Linking...
    LINK : fatal error LNK1104: cannot open file "\6680\series_60\EPOC32\BUILD\6680\SERIES_60\SERIES60EX\CONTACTIE\GROUP\CONTACTIE\WINS\UDEB\CONTACTIE.exp"
    Error executing link.exe.

    CONTACTIE.APP - 5 error(s), 1 warning(s)


    I searched all the SDK's and threads in forum nokia but not able to find which header file or library is missing.

    PlZ help me out...


    Thanks & Regards,
    techietintu

  14. #14
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    The header files are etel.h and etel.lib.
    But the problem is you are using S60 2nd edition FP2.
    With those there is a stripped version of etel.h.

  15. #15
    Registered User micmen's Avatar
    Join Date
    Nov 2003
    Location
    Mumbai, India
    Posts
    142
    I am afraid. You might be having the cut down version of etelmm.lib.
    To confirm open the etelmm.lib in any notepad and check for the entry of the function for which you are getting link error.

    Instead of etelmm you can make use use of etelagsm.h and etelbgsm.h link it against gsmadv.lib and gsmbas.lib respectively.

    IMSI number can be extracted by making use of the above.

    Check

    RAdvGsmPhone::GetSubscriberId

    Please note this has been deprecated now.

    Regards,
    Micky

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved