[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • Last Modified:

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

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
cosma20
Asked:
cosma20
  • 3
  • 3
3 Solutions
 
hjgodeCommented:
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
 
cosma20Author Commented:
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
 
hjgodeCommented:
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
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
cosma20Author Commented:
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
 
hjgodeCommented:
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
 
cosma20Author Commented:
It was just necessary to release the IP assigned by the DHCP Server - no ping or measuring of signal strength needed
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now