User Tools

Site Tools


faq:iphone

This is an old revision of the document!



Warning: Declaration of syntax_plugin_blockquote_quote::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/doc/lib/plugins/blockquote/syntax/quote.php on line 119

Warning: Declaration of syntax_plugin_blockquote_quote::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/doc/lib/plugins/blockquote/syntax/quote.php on line 119

iPhone/iPad FAQ

While this method works, it is not the recommended one as the internal wireless adapter of the Macs is too weak to provide good results with show control applications. If you really need to connect a wireless device with your Mac but don't have a router handy, please follow these instructions:

  1. On your Mac: Click on Airport icon in the menu bar (this is the one that looks like a radar scan).
    • Check that Airport is turned on, and select “Create Network”.
    • Give a name to this network. Optionally, if you are concerned with security, protect your network with a password (could be handy if you are performing on stage!)
  2. On your iPhone: Go in the Settings application, and start by turning on the Airplane mode. That will shut down the GSM, Bluetooth and WiFi antennas.
    • Go in the WiFi section, and turn it back on.
    • Wait for the networks list to populate, and select the network you've previously created on your Mac.
    • Before leaving this application, click on the blue disclosure button on the right of the network name, and patiently wait that numbers like 169.254.xxx.yyy appear in the “IP Address” field (wait around 20 seconds). This will ensure that your phone is ready to send messages on this local network.
  3. You can now leave the Settings app, and run TouchOSC, OSCemote or any iPhone music controller app you like.

The method that gave the most satisfactory results to connect a wireless device and OSCulator together is to use a WiFi router: connect the Mac to the WiFi router using an Ethernet cable and connect the iPad to the WiFi router using its wireless network. The router must be configured to allow networking between Ethernet and WiFi interfaces (which is often the case by default).

Check out [http://www.osculator.net/forum/threads/1398-WiFI-connectivity-Tips-and-recommended-list-of-access-points|this thread] for more information on WiFi routers.

It is possible that you have an issue with a firewall configured on your machine.

If you are using a third party software to control network communication, you should disable it or set it up in order to accept OSC packets.

Mac OS X includes a basic firewall, which can be configured. Go in the System Preferences, then click on the Security button. From there you will be able to change the firewall's settings, or simply disable it if you are sure you don't need it.

If you are using Mac OS X Snow Leopard, the system will prompt you as soon as it receives a packet from outside. That means that you just have to launch OSCulator, and make the setup as usual.

Under some circumstances, it is possible that OSCulator loses track of the bindings between the two applications. The simple cure is to delete all messages starting with /midi. OSCulator will recreate them automatically as soon as you start using TouchOSC.

If you are using TouchOSC, you can get your device's IP address by going in the Network setup. The IP address is displayed as “Local IP Address” with something like 10.0.1.4.

However, using the IP address is not the best thing to do if you want to send OSC messages to your iPhone. Using a human readable name is much more convenient, easy to remember, and it will not change if you use your phone on another wireless network.

The network host name is given from the iPhone's name in iTunes. For example if your iPhone is named “Gedeon”, its network name will be gedeon.local.

By default, iPhones are configured with a name like “Peter's iPhone”, but this makes a cluttered network name. To workaround this, the solution is to choose a simple one-word name with plain ASCII letters. For this, go in iTunes, and select your iPhone icon in the Devices view. Click again to make the field editable, and enter the desired name.  How to change the iPhone's name in iTunes

There are two ways of doing this:

  1. First option, use OSCulator's Duplicate command. This solution is better when you only want to duplicate some messages on two computer, and is easier to configure.
    • First, run OSCulator on both computers.
    • Choose one computer as the master and the other as the slave.
    • In the main list of the master computer, locate the message you want to send to the slave computer, and duplicate it (Command-D)
    • Open the Parameters Window, and go to the OSC tab
    • In the table at the top, define a new target by choosing an empty slot, click on the gear icon, then choose the item that matches your slave computer (you should see the OSCulator service with your computer name in the list). Remember the slot number (most of the time it should be slot number 2).
    • In the table at the bottom, add a new routing by clicking the + button, and change the slot number from default slot (Đ) to the number you've just memorized (2 for instance).
    • Close the Parameters Window.
    • Finally assign the newly created OSC routing to one of your duplicated message.
  1. Second option, use the oscbroadcast tool. This solution is a little bit more advanced, but has the advantage of routing every OSC message without distinction and is therefore more powerful. It also helps keeping the OSCulator document less cluttered with duplicates.
    • Start the tool using the command line, for example:
      ./oscbroadcast -s 3333 -t osc.udp://computer-1:8000 -t osc.udp://computer-2:8000


      Where 3333 is a free network port, computer-1 and computer-2 are IP addresses or host names of two computers on the local network, and 8000 is the network port on which OSCulator is running.

    • Setup your iPad or iPhone device to send data to a oscbroadcast OSC port (here 3333).

References:

faq/iphone.1328549367.txt.gz · Last modified: 2012/02/06 18:29 by camille