×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    8

    Lightbulb newbie to python and i need some help

    Dear Nokia and Python community

    I am newbie to Python for s60, i already installed python for s60 to my Nokia 5800 and I tried simple programs and it works perfectly.

    now, I need to code a program that open a packed data connection through certain access point and ping server like "nokia.com" and wait for 2 minutes then disconnect this connection and loop this process.

    is this can be done through import socket???

    any help with sample code or a already made script will be much appreciated... Thanks in advance.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: newbie to python and i need some help

    Hi

    Have you seen this bunch of tutorials -- selecting access point and some examples about networking are here.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    8

    Re: newbie to python and i need some help

    yes Sir,

    I already downloaded this python script and I tried to run but it gives me error, then I found the script is missing ' import e32 '
    I added it and it works now and give me 2 options...option to "unset access point" and other to "download"...

    when clicking download i get error:
    Traceback (most recent call last): File "e:\data\python\ex_setting_default_access_point.py", line39, in download
    set_acccesspont apid=socket.select_access_point()
    attribute error: 'module' object has no attribute 'select_access_point'
    also I tried to open a simple connection to download a gif image and i succeeded in the following code

    import urllib, appuifw, e32
    URL = "http://www.python.org/images/python-logo.gif'
    dest_file=u"E:\\Images\\python-logo.gif"
    urllib.urlretrieve(URL, dest_file)

    Now... just i need to open a simple connection to download a gif image promting the access point i wish to use use then after downloading this image, I need to disconnect and close this connection then open it again without prompting me the (APN) download the image and close... and loop this process...


    Thank you for your fast reply and I hope you can help me with your great knowledge.. Thanks in advance

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    8

    Re: newbie to python and i need some help

    Please any help is appreciated.............

    Nokia Developers where are you?? it is a so simple program to auto connect via certian (APN) download a file and auto disconnect.... is it hard for Experts like you...
    PLEASE help me

  5. #5
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: newbie to python and i need some help

    Hi

    What is your target platform?

    'Select Access Point' system dialog prompt for each application individually has gone since S60 5th edition if you targeting Symbian^3 , Anna, Belle -- you cannot set dedicated IAP unless you implement this functionality with Symbian native. Because of Bearer mobility your connection will be set automatically.

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    8

    Re: newbie to python and i need some help

    Thanks izinin, you helped me alot...
    I was targeting S60v5.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: newbie to python and i need some help


Similar Threads

  1. Replies: 1
    Last Post: 2010-11-02, 04:58
  2. Replies: 2
    Last Post: 2010-01-18, 11:14
  3. Replies: 4
    Last Post: 2009-08-06, 18:09
  4. Newbie at python at all.
    By m3m0r3xXx in forum Symbian
    Replies: 8
    Last Post: 2007-11-03, 16:17
  5. Newbie - How to Use Python with an Emulator
    By Phil Bartie in forum Symbian
    Replies: 3
    Last Post: 2006-05-05, 00:21

Posting Permissions

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