Candela Technologies Logo
Network Testing and Emulation Solutions

LANforge InterOp Setup for iOS

Goal: Cable an iOS device to a LANforge machine, then have the LANforge machine recognize the device as a resource.

For iPhone setup -- following this cookbook requires LANforge GUI version 5.4.8 and above.
For iPad setup -- LANforge GUI version 5.4.9 and above is required.

Background

Our LANforge InterOp solution is used to support real client testing for access points. InterOp combines the benefits of testing with real clients with customizable testing and reporting.

We have support for various kinds of real clients:

-      Android clients.
-      iOS clients.
-      Windows Machines.
-      Linux Machines.
-      MacOS Machines.

Network Topology:

Hands-Free Device Control:

In order to provide a hands-free solution for iOS testing, LANforge controls each device via a Bluetooth connection. USB Bluetooth adapters plugged into the LANforge act as Bluetooth keyboard devices. An adapter connects with the iOS device and then sends it keystroke packets. These keystrokes are interpreted by the device as actions, and it's possible to perform system functions, navigate the UI, send text, etc.

Supported Devices:

The LANforge InterOp iOS platform supports the following devices:

(iOS 17/18)

(iPadOS 18)

Before getting started:

The LANforge Manager this device will be clustered with must be in clustering mode. That includes configuring the realm, mode, and resource number of the manager, as well as having the right licenses. Please verify you have the correct licenses and follow this cookbook to set your manager up.

Hardware Requirements:

LANforge Machine Installs/Config

  1. Open a terminal on your LANforge machine and run:
    sudo ./lf_kinstall --do_ios_tools
    Then restart LANforge so that it notices the new IOS binaries:
    sudo /home/lanforge/serverctl.bash restart

iOS Device Initial Setup

  1. For a new iOS device, ensure that the initial Apple setup is complete and that the device is logged into an Apple account. Ensure also that the lock screen passcode is disabled. This can be disabled in Settings->Face ID & Passcode.

  2. Download LANforge InterOp (beta) onto the device by opening the Testflight Invite Link in the device's browser. You can access this link by re-opening this cookbook on your device (search the web for this cookbook via 'Candela iOS setup' or similar).
    If this method is not working, you may require an invite to be sent to you. In this case, please contact Candela support.

  1. Download TestFlight, Open TestFlight, and install the LANforge InterOp App. It's recommended that most users disable Automatic Updates. But users who frequently update their testbed with new LANforge beta builds should leave it enabled. This way, iOS devices with an internet connection will automatically stay updated with the latest InterOp App releases.

  1. Open the LANforge App and accept TestFlight prompts.

  1. Open the Settings App on the device.

    1. Disable All Keyboard Settings shown

    1. Set Display Auto-Lock to Never

Connecting the iOS Device to LANforge

  1. Connect the device via its USB port (Lightning or USB-C) to one of the USB-A slots on the LANforge. (as per the testbed topology)

  2. On the device screen, when prompted about trusting the computer, select 'Trust'.

  1. Open the LANforge GUI window. The Interop tab should appear now. Click on the tab to see your device detected as an InterOp device.

Connecting Bluetooth USB Adapter

  1. Open a terminal on the LANforge machine and run:
    dmesg -w

  2. Plug your USB Bluetooth dongle into one of the USB ports on the LANforge.

  3. The terminal window should show dmesg output acknowledging the new USB device.

  1. The string 'usb 1-2.1.4' indicates that '2-1-4' is the USB-path of the adapter. Write this down.

Setting up iOS Device Keyboard Control

  1. On your LANforge machine, select the iOS device in the Interop tab and click the button labeled Batch-Modify.

  1. In the Batch-Modify window, enter the Bluetooth Controller’s USB path (found from dmesg earlier). And click Apply to start the Bluetooth control process.

  1. On the device, open the Bluetooth settings page and enable Bluetooth.

  1. Keep watch on the device's Bluetooth settings page and a connection prompt should appear. Select ‘Pair’ to pair the device with your Bluetooth adapter.

  1. On the device, open the Keyboard Accessibility settings and enable 'Full Keyboard Access'.

  1. The device MUST be in the 'Full Keyboard Access' screen before running this step, see above. Back in the LANForge Batch-Modify window, tap the Set BT Keybinds button. Allow 5-10 minutes for this command to run and do not interfere with the process by touching the screen or power-cycling the device. Once this command is finished, the device will return to the home screen and appear idle again.

  1. To ensure that the keyboard shortcut setup process was successful, re-open the Full Keyboard Access settings page and check for any differences against these expected values below.
iPhone Keyboard Shortcuts

iPad Keyboard Shortcuts

Starting the LANforge App

  1. Set the values needed to connect the device to LANforge: LANforge Manager IP and Resource ID (must be a Resource ID that's not in use). And if you wish to automatically connect the device to a WiFi network, then enter the SSID and password. Click Apply when done populating fields. The app will restart and attempt to connect using the configured values.

  1. Wait for roughly a minute. And if this is your first time connecting the device to LANforge, you will need to manually accept some authorization prompts. If you do not see these prompts appear, ensure that your configuration values are correct and that the device is connected to the correct network. After this, use the batch-modify window to Stop (wait for it to complete) and then Start the app again.

  1. Open the Resource Mgr tab and the iOS device should appear under the requested resource ID.

  1. Back in the Port Mgr tab, we can see the iOS device's ports, IP address, and MAC address.

  1. Your iOS device is now ready for use with LANforge testing.

Known Limitations:

  1. A LANforge CT521B system supports management of up to four iOS devices connected via USB, where each is paired with its own USB bluetooth dongle that is also connected to the system. (4 devices + 4 dongles)

  2. Screen Mirroring iOS devices on Fedora-based LANforge systems is not yet supported. But screen mirroring on MacOS machines is supported.

  3. Automated installation and removal of the iOS InterOp app through the Interop tab's Batch-Modify window is not yet supported.


Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1.360.380.1618
Facebook | LinkedIn | Blog