Results 1 to 7 of 7

Thread: GPRS Connection

  1. #1
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default GPRS Connection

    Hi all,
    i'm using Qt 4.6 in my application, now i need to make an internet connection using
    GPRS/HSDPA USB modem but i cant find any library in Qt 4.6.
    any help?

    thank you.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GPRS Connection

    Quote Originally Posted by spaccabbomm View Post
    Hi all,
    i'm using Qt 4.6 in my application, now i need to make an internet connection using
    GPRS/HSDPA USB modem but i cant find any library in Qt 4.6.
    any help?
    I dont think so, that you need to take care of any other library for using USB modem.
    See, when you have connects the USB modem, it beacomes the part of system.
    And Qt's networking classes will take care of undeligned communication channel.
    I remember I had to change the CAPABILITY of exe when I wanted to use GPRS/HSDPA/WIFI channel. But my application was for S60 5th edition.

  3. #3
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: GPRS Connection

    Quote Originally Posted by yogeshgokul View Post
    I dont think so, that you need to take care of any other library for using USB modem.
    See, when you have connects the USB modem, it beacomes the part of system.
    And Qt's networking classes will take care of undeligned communication channel.
    I remember I had to change the CAPABILITY of exe when I wanted to use GPRS/HSDPA/WIFI channel. But my application was for S60 5th edition.
    I know, so now the modem is /dev/ttyusb0 and i can connet using pppd, but how to make a connection on demand in my application?

  4. #4
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GPRS Connection

    I know, so now the modem is /dev/ttyusb0 and i can connet using pppd, but how to make a connection on demand in my application?
    Perhaps you could use QProcess class to run and control pppd.
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

  5. #5
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: GPRS Connection

    Quote Originally Posted by calhal View Post
    Perhaps you could use QProcess class to run and control pppd.
    Yes, you're right, but i leave this as last chance... because in that way i dont know when the connection is established...

  6. #6
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GPRS Connection

    Yes, you're right, but i leave this as last chance... because in that way i dont know when the connection is established...
    So what do you expect from Qt?

    You can use libusb to connect your app with the modem by yourself, but you WILL HAVE TO write your own code that sets up and controls the modem and the connection anyway.
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

  7. #7
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: GPRS Connection

    Quote Originally Posted by calhal View Post
    So what do you expect from Qt?

    You can use libusb to connect your app with the modem by yourself, but you WILL HAVE TO write your own code that sets up and controls the modem and the connection anyway.
    I found Network Services from this http://qt.nokia.com/doc/qtopia4.1/ne...ices.html#gprs

    but i think they are not available in Qt 4.6 but only in Qt Extended...

Similar Threads

  1. QslDatabase and default connection
    By frog in forum Qt Programming
    Replies: 2
    Last Post: 10th November 2009, 14:28
  2. SQL connection closure problem.
    By cbarmpar in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2008, 08:42
  3. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 10:22
  4. Replies: 3
    Last Post: 2nd August 2007, 21:28
  5. How do I keep the client connection open ?
    By probine in forum Newbie
    Replies: 2
    Last Post: 25th March 2006, 19:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.