Increasing MultipeerConnectivity WIFI range

Is there a way to increase the range of MultipeerConnectivity WIFI? I have read a few posts answered by @eskimo at Apple which states that a range over 5 meters is probably to long.

"Given the way that Apple’s peer-to-peer Wi-Fi is currently implemented, there’s a tradeoff between range and connection setup reliability. The longer the range, the harder it is for the system to set up the connection. To help with this Apple uses very low transmission power for peer-to-peer Wi-Fi. This reduces the effective range but makes connection setup much more reliable. So the range you’re testing at, 5 metres, is actually quite long range for peer-to-peer Wi-Fi."

I am trying to write a rear view mirror app for my 7 meter long Motorhome using MultipeerConnectivity and although I can get an iPhone at the back of the motorhome to transmit video to an iPhone at the front of the motorhome attached to the rear view mirror which displayed the live video, the connection gets dropped quite regularly. Is there a way to boost the signal by another 50% once I have made the connection which I can initially do with the iPhones in close proximity?

Answered by RobinL in 687245022

I created a WIFI extender app by creating a MCNearbyServiceBrowser for my rear camera type and a MCNearbyServiceAdvertiser for my rear view mirror. I launch the app on an iPhone mid way between the front and the back of the 7 meter motorhome. The Rear camera app thinks that it is connecting to a rear view mirror device and the front rear view mirror app thinks that it has connected to a rear camera. Once both the MCNearbyServiceBrowser and the MCNearbyServiceAdvertiser have connected, any data from the rear camera is just relayed forward to the front rear view mirror. The front mirror can send data back to the camera to adjust the angle of the camera so that message is passed back via the relay app. All works 100% with a 7m distance with non of the devices needing more than 3.5m range. Only 3 old iPhones needed to create an effective rear view mirror.

If the range restriction is with peer-to-peer WiFi, then perhaps consider using WiFi, but not peer-to-peer, with a battery-powered router half-way between the two iPhones?

I am going to try set up a repeater peer-to-peer device which will link with the back camera and then advertise itself as a peer-to-peer to connect with the front "rear view mirror" and just relay the data when it receives any. I have another old iPhone I can use. Hopefully a device can be both an advertiser and a receiver.

Accepted Answer

I created a WIFI extender app by creating a MCNearbyServiceBrowser for my rear camera type and a MCNearbyServiceAdvertiser for my rear view mirror. I launch the app on an iPhone mid way between the front and the back of the 7 meter motorhome. The Rear camera app thinks that it is connecting to a rear view mirror device and the front rear view mirror app thinks that it has connected to a rear camera. Once both the MCNearbyServiceBrowser and the MCNearbyServiceAdvertiser have connected, any data from the rear camera is just relayed forward to the front rear view mirror. The front mirror can send data back to the camera to adjust the angle of the camera so that message is passed back via the relay app. All works 100% with a 7m distance with non of the devices needing more than 3.5m range. Only 3 old iPhones needed to create an effective rear view mirror.

By the way, if any Apple engineers want to take a look, my colleague filed detailed feedback about MultipeerConnectivity range with a sample project at FB9857904.

Increasing MultipeerConnectivity WIFI range
 
 
Q