Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm testing an iPad application that requires an Internet connection. I'd want to simulate a situation when the connection isn't stable and can be suddenly lossed. If it's possible I'd want to control this process and "hit a button" that will abort the connection for a couple of seconds. I'd want to abort/resume connection quickly to test that app will resume it in case of connection abort.

How can I simulate non-stable Internet connection?

I know that it's possible to just turn Wi-Fi off on iPad but will it be the same for application as abortness of connection because of other reasons?

share|improve this question
    
It is the actual loss of WiFi you want to detect, or a bad TCP/IP connection? –  Thorbjørn Ravn Andersen Jul 26 '12 at 8:32
    
@ThorbjørnRavnAndersen loss of TCP/IP connection –  Andrey Botalov Jul 26 '12 at 8:32
add comment

2 Answers 2

There are a few ways you can do this, depending on your situation:

  1. Move further away from your router. While this may seem a bit obvious, I realize that it isn't always possible while testing/debugging (for example, if you are working on a desktop computer).
  2. Put aluminum foil around the router and/or antenna. This will (partially) block some or all of the radio signals by creating a makeshift Faraday cage. The results you get will depend on the strength of your router signal, distance from the router, and other environmental factors.
  3. Set your router's wireless signal power to a lower setting. The method for doing this is different for each router, so you will have to look at the user guide for instructions on how to do this.

I hope this helps solve your problems!

EDIT:

Another thing I just thought about would be to make your SSID hidden. iDevices are known to have problems reconnecting to hidden networks, and you might be able to programmatically disconnect from the network at random intervals.

share|improve this answer
    
However, I'd want this abort to be easy to control, predictable. Also I'd want to abort connection quickly. Is there a programmatical way? –  Andrey Botalov Jul 26 '12 at 8:13
    
NAFAIK, unfortunately. You might be able to programmatically modify your router's config file for #3 above, but that may or may not work (and would be more appropriate on SO.SE). –  Matt Jul 26 '12 at 8:19
add comment

Rather than accomplishing this on the iPad, how about shifting the wifi instability to a Mac instead? You could use Internet Sharing to provide a network connection to the iPad (activate and deactivate it without disturbing the rest of your network), and ipfw to throttle the connection however necessary for your test...

share|improve this answer
    
Does internet sharing exist in Windows? I don't have Mac –  Andrey Botalov Jul 26 '12 at 6:41
    
It does, but it's very complicated (IMO) and not very reliable (AIMO). –  Matt Jul 26 '12 at 7:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.