×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    elocation module not working - cannot fetch imst

    Hi!

    I am using the elocation module to try and determine IMSI. In the interactive console, I gave the following commands -
    Code:
    >>> import elocation
    >>> elocation.get_imsi()
    u''
    >>> elocation.get_registration_status()
    'RegistrationUnknown'
    However, if I give the command "elocation.extended_gsm_location" or "elocation.gsm_location", I get the correct (expected) output with all the network details.

    I remember signing the scriptshell with highest capabilities. Do I need to sign the elocation module as well? Or recompile it with the ReadUserData capability?

    Any idea how I could get the imsi to be determined?

    Thanks
    Kedar

    PS : I tried to check the capabilities, but I got the following error -
    >>> import e32
    >>> e32.get_capabilities()
    Traceback (most recent call last):
    File "<console>, line 1, in ?
    AttributeError: 'module' has no attribute 'get_capabilities'
    In fact, I could not find the get_capabilities and has_capabilities (mentioned here) when you give the command -
    >>> import e32
    >>> dir(e32)
    I apologise for the double-posting. I had brought this up on an older thread, but the title of the thread is rather misleading - "Retrieving SIM information".

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: elocation module not working - cannot fetch imst

    Are you using PyS60 1.4.x? Because get_capabilities and has_capabilities were introduced in PyS60 1.9.x.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: elocation module not working - cannot fetch imst

    hello kedar

    AFAIK you need to get the elocation module too signed separately before using that, so if you have not signed that please try doing so.

    Regards,

  4. #4
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: elocation module not working - cannot fetch imst

    @ bogdan.galiceanu:
    Ok.. that makes sense.. I'm using Python 1.4.5

    @ gaba88:
    I will sign the module. I think I had signed it with necessary capabilities. Will try.
    The thing is, there are some functions that are working - location has no problem. However, the sim card seems to have an unknown registration and get_imsi seems to not work.
    I guess I need to check for ReadUserData capability, right?


    Thanks

  5. #5
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: elocation module not working - cannot fetch imst

    Hi!

    I checked the elocation module I am using. On opening it with siscontents, I see that it already has the following capabilities -
    PowerMgt, ReadDeviceData, WriteDeviceData, TrustedUI, ProtServ, SwEvent, NetworkServices, LocalServices, ReadUserData, WriteUserData, Location, SurroundingsDD, UserEnvironment
    Still, I cannot read the SIM card IMSI. Is the elocation.get_imsi() function dependent on the country? I'm trying to get IMSI information in India (AirTel).

    Thanks
    Kedar

  6. #6
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: elocation module not working - cannot fetch imst

    Someone?

    Need help to read IMSI!

    Thanks
    Kedar

  7. #7
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: elocation module not working - cannot fetch imst

    Hi!

    Sorry, but am having absolutely no luck in determining the imsi of the sim card I am using.

    Do I require Python 1.9.x for this functionality? I am presently using Python 1.4.5, and have had no luck determining the IMSI.
    I checked the capabilities of the file _elocation.pyd and ensured it had 'ReadDeviceData' as well as 'ReadUserData' capabilities (amongst the others).

    Could my problem be country specific, or service provider specific?

    Sorry for posting repeatedly on this thread.

    Kedar

Similar Threads

  1. BUG?: IMAP drops connection after UID FETCH
    By adb in forum General Messaging
    Replies: 1
    Last Post: 2008-08-07, 05:43
  2. No rule to male target
    By arayappan_it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-02-28, 10:49
  3. Replies: 2
    Last Post: 2007-08-09, 14:22
  4. Replies: 0
    Last Post: 2005-09-02, 07:07
  5. location module not working on 6220
    By bercobeute in forum Symbian
    Replies: 3
    Last Post: 2005-08-25, 21:29

Posting Permissions

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