You Are Here:

Community: Developer Discussion Boards

#1 Old Question Internet connection hangs? - 2005-01-04, 20:44

Join Date: Dec 2004
Posts: 10
Location: Groningen, Netherlands
zechgron
Offline
Registered User
Hi,

First of all,. it is quite fun playing around with this port of Python. I think some people did a hell of a job!

I tried several examples on a real device (the orginal NGage) and emulator and I found out that the weather stuff and my own internet access is not working properly anymore: after working for two times, it somehow does not get to the maps on the internet anymore. When I use the same url in the WAP browser it works fine, so there isn't a problem with the WAP gateway.

Has anyone experienced a similar problem?

Greetz zechgron
Reply With Quote

#2 Old 2005-01-06, 07:01

Join Date: Jan 2005
Posts: 7
Location: Wellington, NZ
flash5standingby
Offline
Registered User
Yes I am having the same problem. I have a 6600 and am using the PythonForSeries60_2ndEd_SIS. Eventually an error is thrown with a "connection time out" message.
Last edited by flash5standingby : 2005-01-06 at 09:38.
Reply With Quote

#3 Old 2005-01-06, 09:50

Join Date: Jan 2005
Posts: 7
Location: Wellington, NZ
flash5standingby
Offline
Registered User
I found the solution to the problem. I had not set up a GPRS data account on my phone. I was trying to use either the PXT apn or the VLive! accounts... thinking that these were generic data connections. Using the GPRS data account all the internet examples work fine.
Reply With Quote

#4 Old Thanks, but still having problem... - 2005-01-06, 12:48

Join Date: Dec 2004
Posts: 10
Location: Groningen, Netherlands
zechgron
Offline
Registered User
Thanks for answering, but this solution does not work for me..

Let me give some more details:

First I thought by using an supported phone (6600) the problem would disappear... but:

GPRS works, for every address, but NOT within python! When I try to fetch the weathermap or another picture from my own webserver in the wap browser the image is shown, so my conclusion would be that there are no access restrictions concerning my GPRS account (Btw it is a TMobile Holland GPRS PrePaid account)

I found out by removing the try/except block in the weather_maps example that an IOError was raised by line 162 in socket.py. Looking into this code in the emulator oddly enough the source of the exception is gethostbyname...looks some weird is wrong in the e32python.pyd?

So, I thought, let try to grab an image from my own IP address, so the gethostbyname wouldn't get called. No error, it just hangs. When I cancel the GPRS connection/attachment I get the 'Connection timed-out' problem.

Conclusion: I just don't see the obvious solution or something is really wrong...
Reply With Quote

#5 Old I went down the same path - 2005-01-06, 19:49

Join Date: Jan 2005
Posts: 7
Location: Wellington, NZ
flash5standingby
Offline
Registered User
I also removed the exception handling code and got the same sorts of errors you describe. I also spent some time watching the traffic using the "Conn. Mgr." app on the phone. Even when my apps were hanging they were generating traffic... so it definitely looked like a problem upstream.

I checked out the docs on my service providers web site (www.vodafone.co.nz) and discovered that i was missing the generic internet connection settings. The key difference between that connection and the other two was the name of the access point (it also sets the 'Authentication' to secure where the other two connections have it set to 'Normal').
Reply With Quote

#6 Old 2005-01-07, 19:05

Join Date: Jul 2004
Posts: 76
eriksmartt
Offline
Regular Contributor
flash5standingby - when you changed the access point settings did it start working?

TMobile is having some GPRS connectivity problems where I'm at (they said something about a cut fiber), so I haven't been able to try reproducing this.
Reply With Quote

#7 Old 2005-01-08, 05:55

Join Date: Jan 2005
Posts: 7
Location: Wellington, NZ
flash5standingby
Offline
Registered User
eriksmartt

Yes. When I altered my settings the problem went away. I have not had a repeat of the problem since.

If you want I can forward you the various connection settings.
Reply With Quote

#8 Old 2005-01-09, 23:28

Join Date: Dec 2004
Posts: 10
Location: Groningen, Netherlands
zechgron
Offline
Registered User
Again, I find it a bit weird that a J2ME midlet and the WAP browser can get anything from the internet, while the python is hanging.. but I believe/hope this problem will be solved soon. In the meantime I was working on a NMEA parser and a Bluetooth GPS: it just works after only two hours fooling around with some code.. Really cool, being a teacher I had a student doing some C++ symbian BT stuff and after two weeks it still doesn't work ;-(

Flash5standingby: thanks for answering, again, probably something stupid is wrong at Tmobile or they changed some settings.. time will tell.
Reply With Quote

#9 Old 2005-01-12, 02:37

Join Date: Jan 2005
Posts: 1
coffelius
Offline
Registered User
in release notes for python for s60 v1.0 we can read:
"urllib.py: Proxy settings are loaded from the environment variables, not the phone access point configuration. "

urllib.getproxies() returns an empty list in my nokia 7610
Last edited by coffelius : 2005-01-12 at 02:54.
Reply With Quote

#10 Old 2005-01-12, 10:57

Join Date: Dec 2004
Posts: 10
Location: Groningen, Netherlands
zechgron
Offline
Registered User
That might be a solution, at least it explains why J2ME and WAP just work perfectly.. I'll look into it.
Reply With Quote

#11 Old Problem finally solved - 2005-02-04, 12:11

Join Date: Dec 2004
Posts: 10
Location: Groningen, Netherlands
zechgron
Offline
Registered User
Finally, the problem is solved and the solution is simple: indeed, use a generic internet access point.
It turned to be that TMobile Holland stopped their general internet access for prepaid users (that's why I thought J2ME was still working, but it didn't ..) and Vodafone never had it. After some consultation I found out that an other dutch provider, Orange, offers a special internet access bundle...

Moral: do not assume too much .. ;-)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia