Solved

Mobile Phone should check if wlan connection is lost and reconnect automaticly

Posted on 2011-03-02
6
414 Views
Last Modified: 2013-12-27
Dear Experts,
I need a solution for the following Situation: In a huge production area there are two different WLANS  available (with different IPs, of course). When an employee leaves the zone, where he is connected to WLAN Nr. 1 he gets the 'OFFLIINE'-message on his screen. He then has to reset the Mobile Phone manually and it will connect to WLAN Nr. 2. automaticly.
This should be automated. To which event can I  listen, to make the Phone reset automaticly?
And how is it possible,to make the Phone watch the connection? Kind of service, timer ...?

Any help would be appreciated!
0
Comment
Question by:cosma20
  • 3
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
hjgode earned 250 total points
ID: 35020028
Hello

I assume you dont need to reset your device to connact to another WLAN (SSID). You just need an API to control WiFi ZeroConfig configuration.

Please take a look at the openNetCF SmartDevice Framework, it has classes to enable you to connect/disconnect to WLANs: http://www.opennetcf.com/library/sdf/html/e7233249-6758-6bec-b816-c2c0ad7f46b5.htm

To be able to automate this you may have to watch the list of available WLANs and the signal strength or give the use the ability to switch between two WLAN configurations manually. Then you need to unbind/bind the wireless adapter and you will get a new IP etc.

regards

Josef
0
 

Author Comment

by:cosma20
ID: 35025456
Thanks Josef,

the openNetCF SmartDevice Framework seems to fit my needs and I might give the user the ability to switch manually.

But I still have no idea, how to proceed to automate it. How can I make the phone watch the list of available WLANS? Is there an event, which I can catch, when it looses connection and shows the message 'Offline' on the screen?

Regards  from
Ingrid
0
 
LVL 16

Assisted Solution

by:hjgode
hjgode earned 250 total points
ID: 35030079
You may periodically ping a host or check the signal levels of the wlan to decide when to switch.

You can also periodically scan available wlans and there signal strength to enable switching.

Details: http://msdn.microsoft.com/en-us/library/aa446491.aspx

But I would go the manual way, but this depends on the scenario.

As you have to different wlans I assume they are designed for different purposes. Maybe one scenario is "Incoming Goods" and the other is "Outgoing Goods". The use then has to decide if he/she will actually process the one or the other.

Please let us know, why there are two different wifi networks.

regards

Josef
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Assisted Solution

by:cosma20
cosma20 earned 0 total points
ID: 35141793
Sorry for being offline for quite a long time - had to go abroad

Now my answer to your question - why two different wlans?

It's because it's two different companies working together. Each one has it's own wifi network being only reachable on the area of the specific company - but the people with the mobile phones have to pass the borders of the areas frequently, where only one or the other ip can be reached.

What did you mean with 'the manual way'? Ping the IPs?

Regards

Ingrid
0
 
LVL 16

Expert Comment

by:hjgode
ID: 35144416
Many thanks for the additional information.

In your case I would go the manual way as I assume the people also use two different applications. Manually means that the user decides when to use which wlan. For example they are working with application 1 in area 1 and if they want to go to area 2 they leave app 1 and start application 2.

If you use the ping approach, you would ping a known IP in area 1, if this is not reachable any more you try an IP in area 2. If ping to IP 1 is OK you jnow you are in area 1 and similar to IP2 in area2.

Best solution is to go with watching the WLAN visible access points list and there signal strength. If the signal strength of area1 WLAN APs is higher that WLAN2 access points you can switch the connection and vice versa.
So you will have three apps, one watching the wlan aand switching the connection, one app for area 1 and one app for area 2 (I assume they use different apps for the two companies). But I recommend manual switching as described above.

~josef
0
 

Author Closing Comment

by:cosma20
ID: 35331081
It was just necessary to release the IP assigned by the DHCP Server - no ping or measuring of signal strength needed
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Progress means simplifying, not complicating. Bruno Munari Preface How to detect the name of the internal storage or an SD-card on Windows Mobile device from the desktop application? I got this question, when I was working on a PC applicati…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now