×

Discussion Board

Results 1 to 10 of 10

Thread: Detect Roaming

  1. #1
    Registered User
    Join Date
    Jul 2010
    Location
    Vienna
    Posts
    22

    Question Detect Roaming

    Hello!

    I need to write an application, that detects roaming from one access point to another if I'm connected to WLAN. Unfortunately I couldn't find anything that detects roaming for me. All I could find are some explanations in the Bearer API. One sentence says:

    The second form of roaming is referred to as Forced Roaming. The system simply changes the link layer without consulting the application. It is up to the application to detect that some of its internal socket may have become invalid.
    Since I'm not a network guy I don't have any idea how I could track roaming. It would be enough to know, that the device switched from one access point to another.

    Maybe anybody of you can help me out on that?

    Thanks a lot!
    There's no other place than 127.0.0.1

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Detect Roaming

    QNetworkSession is the central class for managing roaming related issues.

    Class : QNetworkSession

  3. #3
    Registered User
    Join Date
    Jul 2010
    Location
    Vienna
    Posts
    22

    Re: Detect Roaming

    It seems, that this only works when my device switches the network. What I want to achieve is to get notified when my device switches Access Points INSIDE one network.

    Let's say you have a home network with 3 access points (one in each floor). you are in the first floor connected to your network on access point 1. now you go upstairs and access point 2 offers a better signal strength than access point 1. now your device will switch to access point 2. and this is the event I want to catch.
    But in this case - I think - the configuration does not get changed, so QNetworkSession#activeConfigurationChanged or QNetworkSession#preferredConfigurationChangend will not trigger.
    There's no other place than 127.0.0.1

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Detect Roaming

    Hi cyphorious,

    I think the QNetworkSession#preferredConfigurationChangend signal should be emited when access point are changed.

    Hav you tried if this signal is emitted or not?
    Jajal Mehul

  5. #5
    Registered User
    Join Date
    Jul 2010
    Location
    Vienna
    Posts
    22

    Re: Detect Roaming

    Yes, I've tried QNetworkSession#preferredConfigurationChangend, QNetworkSession#activeConfigurationChangend and QNetworkSession#stateChanged (with asking for QNetworkSession::Roaming) but none of them triggered inside my network. I think this is because the configuration does not change in the case of roaming inside a network, but only when you switch between networks (one configuration for each network). That's my guess at least.

    Is it possible to catch the hardware address of the access point I'm connected to? Haven't found anything for that, but this could be another approach.
    There's no other place than 127.0.0.1

  6. #6
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Detect Roaming

    Have you taken a look at the bearer management API 's bearer monitor example. It may be provide some help.
    Jajal Mehul

  7. #7
    Registered User
    Join Date
    Jul 2010
    Location
    Vienna
    Posts
    22

    Re: Detect Roaming

    Yes I did. And it indeed helped me in many ways, but not in my particular problem with access point roaming inside one network.
    There's no other place than 127.0.0.1

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Detect Roaming

    If not in Qt and, and this is about Symbian, you can use Symbian C++ calls to get the cell ID. If the cell ID changes, you've experienced a cell handover (which, unless you're really standing in cell edge conditions, means that you've moved as your connection moved (was handed over) from one cell to another.

    If you move also from a network operator's IP address routing area to another, then the local IPv4 address for an active connection for the phone probably changes, too. (The routing area will cover many cells, so it won't change for every handover as long as you are within the same routing area.)

  9. #9
    Registered User
    Join Date
    Mar 2003
    Location
    Oulu
    Posts
    132

    Re: Detect Roaming

    Quote Originally Posted by petrib View Post
    If you move also from a network operator's IP address routing area to another, then the local IPv4 address for an active connection for the phone probably changes, too. (The routing area will cover many cells, so it won't change for every handover as long as you are within the same routing area.)
    Did you mean that Routing Area Update in cellular network would change devices local IP address?

    I believe local IP address will stay the same during entire connection and connection must be rebuilded if operator or country changes. In this case local ip is given from new operators address pool.

  10. #10
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Detect Roaming

    Sorry, I didn't read the whole thread, so I might be repeat something.
    There are two types of roaming, between access points and different operator networks.
    The latter can be detected through Qt Mobility QSystemNetworkInfo
    http://doc.qt.nokia.com/qtmobility-1...kStatusChanged
    while the former is done through Qt (since 4.7) QNetworkSession
    http://doc.trolltech.com/latest/qnet...l#stateChanged

Similar Threads

  1. Roaming over wifi
    By fatah3000 in forum Symbian
    Replies: 1
    Last Post: 2010-05-17, 09:53
  2. How can i know that i am on roaming ?
    By amit.mangal in forum Symbian
    Replies: 1
    Last Post: 2009-12-22, 13:42
  3. roaming
    By tomereg in forum Symbian
    Replies: 1
    Last Post: 2004-03-29, 04:12
  4. Detect roaming
    By RenatoJMF in forum Symbian
    Replies: 2
    Last Post: 2003-07-18, 16:19
  5. Roaming
    By zerb in forum Symbian
    Replies: 0
    Last Post: 2002-09-06, 11:00

Posting Permissions

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