×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    254

    how to check whether GPRS connection is working

    hi all i want to know whether my GPRS is working or not by an application in J2ME

    regards
    Arun Gupta

  2. #2
    Regular Contributor
    Join Date
    May 2008
    Location
    Romania
    Posts
    53

    Re: how to check whether GPRS connection is working

    use a simple messenger application or a browser. what else could you need?

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: how to check whether GPRS connection is working

    Hi Arun Gupta,

    what do you mean by "GPRS is working"?

    If you want to check if your device is able to connect to network, then you could simply make, for example, an HTTP connection to a test page and check if you've got the expected response.

    Pit

  4. #4
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    254

    Re: how to check whether GPRS connection is working

    HI JAPPIT,
    thanks a lot but in my application sometimes it is connecting but some times it is unable to do so and i am pretty surprised to see that,can u suggest me why it happens like that more over in the Emulator it works fine i mean S60 emulator
    regards
    Arun Gupta

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: how to check whether GPRS connection is working

    Hi Arun,

    The emulator creates the GPRS connection using the services provided by your ISP(internet service provider) while the actual device uses your operator's channel. that is why if you are connected to internet and use the emulator the GPRS connection is alway working.

    Have you experienced the GPRS connection probelm during a particular time intervals?

    Regards
    Amit

  6. #6
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    254

    Re: how to check whether GPRS connection is working

    yes sometime it reads and sometime it fails
    and the difficulty is that i am unable to figure out where my programm is getting wrong
    regards
    Arungupta

  7. #7
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: how to check whether GPRS connection is working

    Hi Arun,

    To help you finding the point of error in your program i can suggest one option.

    Create a FORM object, make it the current display and start adding the debug string after every step e.g. after creating the HttpConnection, after getting teh response code, after opening the input stream, afer reading the chunk of data etc.

    Regards
    Amit

  8. #8
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    89

    Re: how to check whether GPRS connection is working

    Try the following.

    Make usre no exceptions are being thrown by your code. Simply output all the debug output strings to a FORM and see how your application is behaving on the phone.

    To this output also add the reponse sent by the server and see if there are any issues there.

    If you have access to your server install wireshark or any other similar tool. This will give you a detailed analysis of how HTTP requests are being received, what headers are being sent and what is the payload.

Similar Threads

  1. GPRS connection status---urgent, please
    By fanyulong in forum Symbian C++
    Replies: 3
    Last Post: 2008-07-15, 07:54
  2. Nokia 12 and GPRS connection
    By syspeo in forum Nokia M2M
    Replies: 0
    Last Post: 2004-11-25, 08:36
  3. Replies: 1
    Last Post: 2003-09-04, 12:26
  4. Internet connection with PDA, GPRS and 7250
    By musagani in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-04-02, 22:24
  5. Replies: 4
    Last Post: 2002-10-23, 09:59

Posting Permissions

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