Community discussions

MikroTik App
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

iPhones dropping wifi (CAPsMAN)

Mon Aug 22, 2016 2:19 pm

Hi,

Everything used to work fine on the following devices: RB2011UAS-2HnD and RB951G-2HnD. Then I made 3 things:
1) changed main router/gateway from RB411AR to RB433 and not all the settings are the same (DHCP, pool, etc.)
2) changed firmware from 6.35.2 to 6.36 on all devices,
3) configured CAPsMAN on RB433 to manage wireless connections from one place.

Now I have 2 issues:
1) my 3 iPhones and other iPads started to loose wifi when locked and not used for some time, which is quite annoying,
2) when connected via winbox with RB433 it drops connection too when not touched for a while; sometimes it disconnects even, when used at the moment.

Is there anything I can do to improve both issues?

Cheers,
matt
 
flynno
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Aug 27, 2014 8:11 pm

Re: iPhones dropping wifi (CAPsMAN)

Mon Aug 22, 2016 8:23 pm

Have you tried turning off "TKIP" on the wireless "Secruity Profiles"?
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Mon Aug 22, 2016 8:25 pm

I never use TKIP mate. There is only WPA2 AES. Nothing else is set up.


----------
Wysłane za pomocą Tapatalk
 
User avatar
CyB3RMX
Member Candidate
Member Candidate
Posts: 148
Joined: Thu May 26, 2011 7:08 am

Re: iPhones dropping wifi (CAPsMAN)

Mon Aug 22, 2016 9:33 pm

Do you have an error message on the log?
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Mon Aug 22, 2016 9:51 pm

Do you have an error message on the log?
No errors, just infos like these below:
Aug/22/2016/20:32:53 memory caps,info AA:BB:CC:DD:EE:FF@cap3 disconnected, received dissasoc: sending station leaving (8)
Aug/22/2016/20:41:50 memory dhcp,info DHCP-server deassigned 192.168.83.15 from AA:BB:CC:DD:EE:FF
Aug/22/2016/20:42:01 memory caps,info AA:BB:CC:DD:EE:FF@cap3 connected
Aug/22/2016/20:42:02 memory dhcp,info DHCP-server assigned 192.168.83.15 to AA:BB:CC:DD:EE:FF
That's all. It keeps repeating of course.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 12:01 am

Well, the disconnect from Lock screen is due to iThings, not Mikrotik.
iThings power down their WiFi radios to conserve power when the screen is locked.
We have similar problems with iStuff users on our guest WiFi here at my work where we use Aruba + Captive portal.
Apple users complain about having to enter their credentials over and over. It's just because the devices actually leave the network on purpose.


As for getting disconnected from Winbox, it sounds like you're using the MAC connection - which is often flaky like that whenever you have actual IP addresses on your device and on the Mikrotik you're talking to. If this is the case - start using the IP address and not the MAC address to connect to your ROS gear from Winbox.



p.s. - I'm an iThings user myself, so I'm not some Android guy saying "apple suxx"
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 12:14 am

Well, the disconnect from Lock screen is due to iThings, not Mikrotik.
iThings power down their WiFi radios to conserve power when the screen is locked.
We have similar problems with iStuff users on our guest WiFi here at my work where we use Aruba + Captive portal.
Apple users complain about having to enter their credentials over and over. It's just because the devices actually leave the network on purpose.


As for getting disconnected from Winbox, it sounds like you're using the MAC connection - which is often flaky like that whenever you have actual IP addresses on your device and on the Mikrotik you're talking to. If this is the case - start using the IP address and not the MAC address to connect to your ROS gear from Winbox.

p.s. - I'm an iThings user myself, so I'm not some Android guy saying "apple suxx"
I would agree with this what you posted, if it happened before, but it didn't. I will keep looking then.
As it comes to winbox, I am using IP connection. What is strange, I haven't got disconnected for single time since I put the first post in this topic... That is magic... :)
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 12:21 am

Your posted log segment starts with "received disassoc" - meaning the client waved goodbye.
Perhaps an Apple Update came along which changed your phones' behavior at a similar time to your ROS update?

My iPhone4 started behaving VERY badly with my car's bluetooth after an update - a new phone on the same version magically had no trouble. Same car. Same bluetooth....
Sometimes, I just shrug my shoulders when it comes to Apple.
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 1:15 am

I thought about it, but I made an update quite long time ago. Besides, I have 4 completely different iDevices (iPhones 5S and 6S and iPads 1 and Mini) which behave the same way... Must be something else. I am thinking about getting back to v6.35.2. I don't want to turn CAPsMAN off as it is really comfortable to use.
 
dboreham
Frequent Visitor
Frequent Visitor
Posts: 96
Joined: Sat May 03, 2008 4:17 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 4:06 am

Well, the disconnect from Lock screen is due to iThings, not Mikrotik.
iThings power down their WiFi radios to conserve power when the screen is locked.
We have similar problems with iStuff users on our guest WiFi here at my work where we use Aruba + Captive portal.
Apple users complain about having to enter their credentials over and over. It's just because the devices actually leave the network on purpose.
Before you make that assertion, try those iDevices with an iAccessPoint ;)

I've spent longer than I care to remember investigating this kind of thing (my "real" business involves delivering real-time push events to mobile devices, and those stop arriving when the device drops WiFi when sleeping..).

What I have found, after purchasing and testing with some Apple AP's, is that they do not disconnect from Apple WiFi access points.

So there is some secret sauce there.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 4:11 am

Oh yeah, I'm completely certain that Apple has some "secret sauce" in their kitchen.

And I will say that my experience with Apple stuff + Mikrotik WAPs has been less than stellar. Apple devices seem to be pretty hard to please with them for some reason. I've seen this issue come up on the threads from time to time over the years, and I don't recall ever seeing anything definitive as a solution. My iPhone 4s was not super zippy with my 2011's AP, for instance. However, I think that device is just a single chain 802.11n so it's somewhat to be expected. My 5c and iPhone 6 both perform quite well - or at least well enough for me. I don't do any "on-net" stuff like stream from a plex server in my entertainment center or anything like that. I'm able to reach my Comcast connection's top speed when I run speed tests now, and that's good enough for me....

But I do agree that Apple seems to be a bit problematic with some wireless vendors. Mikrotik is one, and Aruba is another.
One thing, though, is that the Aruba stuff works great on the wpa2-enterprise wlan. The open wlan with captive portal is VERY bad for Apple users, though, and it's definitely because the iThings are so dadgum narcoleptic.
 
lmns
newbie
Posts: 26
Joined: Mon Aug 10, 2015 4:12 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 1:47 pm

What's your DHCP lease time? Maybe it's too low? If I recall correctly iOS doesn't like very low DHCP lease times.

You could raise the "Group Key Update" of your Security Profile to something like 1h. This should only be relevant to WPA2-EAP (as far as I know), but might be worth a try.
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 2:36 pm

I haven't changed anything in lease time for ages. It is set up to 00:10:00.

As it comes to "Group Key Update" I can't see anything like that at CAPsMAN... When APs were working separately it was set up to 00:05:00.



----------
Wysłane za pomocą Tapatalk
 
lmns
newbie
Posts: 26
Joined: Mon Aug 10, 2015 4:12 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Aug 23, 2016 4:58 pm

10min is probably too short. Try 2h or higher. iOS does some aggressive optimizations for wifi and I guess the downside is that it doesn't renew its DHCP lease in time. You could also set the DHCP server to "authoriative" (if it's the only DHCP server on your network) which makes DHCP faster.
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

iPhones dropping wifi (CAPsMAN)

Wed Aug 24, 2016 9:49 am

I set it up to 2 hrs. Will see if there's any difference after I come back home.

This is the only DHCP server I have.

----------
Wysłane za pomocą Tapatalk
 
ayger
just joined
Posts: 12
Joined: Sun Nov 20, 2011 7:44 pm

Re: iPhones dropping wifi (CAPsMAN)

Wed Aug 24, 2016 4:02 pm

Till v.6.35 if i recall correctly, i had similar issues *without* using capsman (which i recently discover and playing around) and
combination of iDevices in power saving mode (or locked screen mode).

I remember that i tweaked the parameters on the physical interface like multicast helper and wmm support.
The latter is not included on capsman, if i recall correctly.
 
snoopy86
newbie
Posts: 42
Joined: Sat Sep 14, 2013 10:46 pm

Re: iPhones dropping wifi (CAPsMAN)

Mon Oct 03, 2016 12:16 am

Hi, when can we expect this to be resolved?

I have the same issue, everytime my iphone connects to wifi, wifi stops working for this period.
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Mon Oct 03, 2016 11:09 am

Hi, when can we expect this to be resolved?

I have the same issue, everytime my iphone connects to wifi, wifi stops working for this period.
I don't know what was the problem, but after upgrading MT to the latest OS and iPhone to iOS 10 all problems are gone.


Wysłane z iPhone za pomocą Tapatalk
 
Jan89
just joined
Posts: 8
Joined: Sun Apr 24, 2016 5:13 pm

Re: iPhones dropping wifi (CAPsMAN)

Fri Oct 07, 2016 1:22 pm

If iphone has cellular data and wifi enabled, even then it using cellular data for push notifications (with lock screen enabled). In this state, I can't see any connections from iphone on the router. I think this behavior causes issues with captive portal. You can check it by disable cellular data and look if iphone will be disconecting from network or not.

To prevent disconnecting from my wifi network, I changed dhcp lease time and arp timeout on mikrotik, and extend inactivity timeout on my cisco aironet access point.
After that iphone stays connected to my wifi for long hours. But notice that, it still uses cellular data for notifications. I think even that it is connected to wifi network, the problem with captive portals will be occurrs.
Captive portal can't see any connections, maybe can't see arp from device, and it think that the device was disconnect from network.

Sorry for my english.

Regards
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Fri Oct 07, 2016 1:25 pm

Hi Jan,
I have no cellular signal at home. At all.
Anyway, problem is gone.


Wysłane z iPhone za pomocą Tapatalk
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: iPhones dropping wifi (CAPsMAN)

Mon Oct 10, 2016 5:26 pm

Mikrotik has definitely improved their wireless code over time. I recently pulled my old 951 out of the closet to set up as a wifi->wired bridge. It had old ~v6.1 code and while it would link up and work properly with my 2011, the modulated rate and throughput was poor. I upgraded the 951 to the current version and it immediately got full speed performance. I don't know what all has changed, but this is anecdotal evidence that things have been improved as you say.
 
stefkev
just joined
Posts: 3
Joined: Sun Jan 17, 2016 2:35 pm

Re: iPhones dropping wifi (CAPsMAN)

Wed Jun 14, 2017 2:48 am

Hi guys,

Having same issue with mikrotik - apple devices (ipad, iphone). And discovered that apple devices can't handle group key update over wifi. And mikrotik can't handle group key update being set to 0.
So cheapest solution, bought a junk wifi router for 10$+, hooked it up into mikrotik, set key group update to 0 and voila. Apple devices doesn't drop.

P.S imacs, macbooks and non apple products works 10/10 on mikrotik's wifi, issue only occurs on ipad's and iphone's.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2865
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: iPhones dropping wifi (CAPsMAN)

Wed Jun 14, 2017 3:11 am

I remeber such problem already discussed... I think that the resolution was to disable STP on bridges.
 
uldis
MikroTik Support
MikroTik Support
Posts: 3446
Joined: Mon May 31, 2004 2:55 pm

Re: iPhones dropping wifi (CAPsMAN)

Wed Jun 14, 2017 10:15 am

the Apple device drops connection to wifi even if it is used (not locked) when the 5 minutes update timer hits?
 
stefkev
just joined
Posts: 3
Joined: Sun Jan 17, 2016 2:35 pm

Re: iPhones dropping wifi (CAPsMAN)

Fri Jun 30, 2017 12:19 am

the Apple device drops connection to wifi even if it is used (not locked) when the 5 minutes update timer hits?
Even if actively used. If so in my case.
 
User avatar
matiaszon
Member
Member
Topic Author
Posts: 320
Joined: Mon Jul 09, 2012 9:26 am

Re: iPhones dropping wifi (CAPsMAN)

Tue Oct 17, 2017 11:13 pm

Coming back to this post again...

Now I have iPhone 7 with the latest iOS 11.0.2

There are 2 different issues now.

1. iPhone works fine, but then, suddenly, it somehow disconnects form wifi. However it shows full wifi signal on screen. I can't ping any IP, even local. I need to disconnect wifi on iPhone and reconnect. Then everything goes back to normal.

2. While on my laptop I am running Internet speed test on speedtest.net, it shows 50/15 (which is my line). When running from iPhone, it gets to 18-20 download and upload seems to be OK.

Anybody noticed similar problems?
 
Coolmanns
just joined
Posts: 3
Joined: Mon Dec 25, 2017 9:13 pm

Re: iPhones dropping wifi (CAPsMAN)

Tue Jan 02, 2018 9:40 pm

Hi,

i have the same issue with only one Ipad... all other devices work fine.
My setup are 3 WLAN spots (hAP ac) and a dedicated Router hEX. The latter is running Gateway, DNS, DHCP and firewall to the internet.

So last night I configured a VLAN on one of my Access points and suddenly the Ipad connects - all settings the same ... the only difference in the VLAN is that the DHCP Servicer is now running for the VLAN on the hAP ac......
DHCP settings are the same on both DHCP's but for whatever reasons the Ipad does not like the DHCP Server on the dedicated router ...

Frustrated Regards
SAscha
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2096
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: iPhones dropping wifi (CAPsMAN)

Thu Jan 04, 2018 11:04 pm

What version of RouterOS?


There are bugs with ARP prior to 6.41 that will cause the problem you are describing.
 
Coolmanns
just joined
Posts: 3
Joined: Mon Dec 25, 2017 9:13 pm

Re: iPhones dropping wifi (CAPsMAN)

Fri Jan 05, 2018 5:18 pm

Hi,
all routers are on 6.41...
Any suggestion how to debug this ?
Regards
Sascha
 
UpRunTech
Member Candidate
Member Candidate
Posts: 209
Joined: Fri Jul 27, 2012 12:11 pm

Re: iPhones dropping wifi (CAPsMAN)

Sat Jan 06, 2018 3:48 am

Follow this advice from Apple and then get back to this forum list.

https://support.apple.com/en-au/HT202068

And also in on Mikrotik's Wifi settings and in Capsman set enable WMM and set Multicast helper to Full.
 
Coolmanns
just joined
Posts: 3
Joined: Mon Dec 25, 2017 9:13 pm

Re: iPhones dropping wifi (CAPsMAN)

Sun Jan 07, 2018 9:57 pm

Hi,

I did all the steps above with no success, but found my issue resolved after diabling the Wi-Fi-Assist in the Celluar Data Section of the Ipad.
Not sure why this is not coming up in my Guest DHCP setting, but for now I am fine...
Many thanks for your support - now off to centralizing my WLAN Settings with CAPSMAN ;-)
unnamed.jpg
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: alexioma, GoogleOther [Bot], synchro and 28 guests