You Are Here:

Community: Developer Discussion Boards

#1 Old Programmatically starting a GPRS connection - 2008-08-24, 16:33

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Although I received some tips about this topic in another thread, being them not enough to solve the problem, and being that thread title completely misleading about my issue, I open a new thread to ask:
how can I have my program starting a GPRS connection without asking user intervention? My phone has 2 operator-locked access points, so I can't define a "default" one, and I'm always asked which one I want to use every time a program try accessing internet. Can I override the request in python?

I tried:
import socket #imports the Module
#apid = socket.select_access_point() # Skip user request
ap = socket.access_point(1)
ap.start() # start an GPRS connection
ap.stop()

It does not work: ap.ip() reveals the connection IS active, but upon using it to upload a file (with ftplib.FTP), I get a "(0, 'getaddrinfo failed')" error.
Reply With Quote

#2 Old Re: Programmatically starting a GPRS connection - 2008-08-24, 16:51

Join Date: Aug 2008
Posts: 28
skewlboy
Offline
Registered User
From what I read in the other thread it really seems you have no solution, mate..
ap.start(), <network code>, ap.stop() here in my phone works just fine without setting default AP nor selection dialog showing up..
Reply With Quote

#3 Old Re: Programmatically starting a GPRS connection - 2008-08-24, 18:51

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
hi cassioli
sorry for asking this stupid question what sort of connection you are using a WAP or GPRS connection.

Hope you get this question


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Programmatically starting a GPRS connection - 2008-08-24, 19:21

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Quote:
Originally Posted by gaba88 View Post
hi cassioli
sorry for asking this stupid question what sort of connection you are using a WAP or GPRS connection.

Hope you get this question
Actually I don't know, phone is operator locked, so I can't edit or even view settings. I only know there are 2 APN named "3" and "3 MMS" ("3" is for "H3G"). I think the first one is a GPRS connection, as it works with a midlet of mine which requires GPRS connection to work rather than WAP... But it's also the same which works while browsing with internal browser, which maybe is a WAP browser... or not?
Guys, I'm quite confused....

Isn't there any other module apart from socket to check/access connection status?
Reply With Quote

#5 Old Re: Programmatically starting a GPRS connection - 2008-08-24, 19:26

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
hi cassioli
as far as i know the error you are getting is due to the wap connection. I suggest you to try with some other operators GPRS connection and i think that will work. Or contact your operator they can explain you about your connection type.
but i am very much sure the error you are getting is due to wap connection.

Hope this will help you


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check gprs connection +j2me? mrrajesh_1982 Mobile Java Networking & Messaging & Security 3 2006-10-27 00:41
how to check gprs connection +j2me? mrrajesh_1982 Mobile Java General 1 2006-10-25 11:23
GPRS connection help please! bevered General Discussion 0 2005-03-08 13:25
GPRS connection help please! bevered General Browsing 0 2005-03-08 13:22
http connection / gprs DaneelGiskard Mobile Java General 1 2002-06-16 09:30

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