Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor aaaaapo's Avatar
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323
    I'm trying to get network connection work in N97 -- without success.

    Even this simple script hangs python script shell so I must reboot the device to get it killed:

    Code:
    import time
    
    def debug(t):
        print "# " + t,
        time.sleep(2)
        print "."
    
    debug("import urllib")
    import urllib2
    debug("req")
    req = urllib2.Request(url='http://www.example.com/')
    debug("urlopen")
    f = urllib2.urlopen(req)
    debug("read")
    print f.read()
    debug("print")
    print f
    
    ### Running script prints: ###
    # import urllib .
    # req .
    In emulator script works as expected. Any ideas?

    N97 (RM-505) firmware version: 20.0.019

    Keywords: nokia n97 network connection problem device hang
    --
    Aapo Rista
    http://code.google.com/p/pys60gps/
    http://opennetmap.org/

  2. #2
    Regular Contributor simo.salminen's Avatar
    Join Date
    Aug 2004
    Posts
    295
    I guess best choice would be to get pys60 sources and start debugging the c++ sources. Add log statements etc, figure out where the problem lies.

  3. #3
    Regular Contributor aaaaapo's Avatar
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323
    I quickly tested with N82 (without SIM-card) via WLAN and it partly worked. I'll do more tests this evening.

    Quote Originally Posted by simo.salminen View Post
    I guess best choice would be to get pys60 sources and start debugging the c++ sources. Add log statements etc, figure out where the problem lies.
    Sounds like it is not my job. N97 is so buggy anyway.

    I'll start looking at Python for Maemo.
    --
    Aapo Rista
    http://code.google.com/p/pys60gps/
    http://opennetmap.org/

Similar Threads

  1. Python for S60 1.9.7 released
    By tvijayan in forum Python
    Replies: 42
    Last Post: 2009-11-27, 14:32
  2. S60 2nd Ed. FP2 wins udeb - No network connection
    By timomon in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-12-03, 16:08
  3. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-08-31, 18:47
  4. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-31, 18:45
  5. Symbian OS C++/PJava Socket Connection loss if no network coverage?
    By suppu in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-04-02, 18:33

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