2

I am building an Arduino based servo driver that I want to control with OSC commands from my iPad over the Internet.

Is it possible to send OSC commands over 3G / UMTS with my iPad or iPhone to control a device? So I will not be limited by the router's range when I send OSC commands to the controller when both devices are part of the same Wi-Fi network.

It seems that the applications I downloaded (TouchOSC, iOSC) can only send OSC data over Wi-Fi, however I'd like to send the commands over the Internet (with port forwarding settings in my router).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Patrick
  • 21
  • 1
  • 2
  • It's not immediately obvious what you mean by "OSC". Given the sample apps that you named, am I correct in assuming you want "Open Sound Control"? – Aidan Steele Feb 28 '11 at 02:51
  • Yes, you're right, I want to use the "Open Sound Control" protocol. – Patrick Feb 28 '11 at 08:23

3 Answers3

0

OSC typically uses UDP (User Datagram Protocol), even if some newer OSC implementations also allow TCP/IP messaging (also see Difference between TCP and UDP?).

Unfortunately (as far as I know), UDP does not work over 3G, which seems to be your problem. In other words: two mobile devices cannot talk to each other on a cellular network. So it has nothing to do with OSC apps not being able to do this, it's just not available from the cellular network.

However (I think, not tested), I see two workarounds here:

  • try to use TCP/IP instead of UDP to send your OSC packets
  • if you need UDP on the Arduino side, you could use a server in-between
Community
  • 1
  • 1
auco
  • 9,329
  • 4
  • 47
  • 54
0

Do port forwarding on your router to forward port x to the Arduino, and then use the IP address from whatsmyip.com and use that one in the touchOSC app when inputting the IP address. That may work.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sbonkosky
  • 2,537
  • 1
  • 22
  • 31
  • That is exactly what I tried. It only works when my iPhone or iPad is connected via Wi-fi. If I disable wi-fi then it doesn't seem to be possible to send OSC messages with TouchOSC. – Patrick Feb 28 '11 at 23:01
  • For some reason all the "open sound control" apps can only send OSC data over wi-fi. What I want is sending OSC commands with my iPhone over Internet so I can control my OSC receiver from anywhere without the limitation of my wi-fi area. – Patrick Feb 28 '11 at 23:09
  • How is your arduino connected to the Internet? – sbonkosky Mar 01 '11 at 02:27
  • Arduino is connected to my router, with a fixed IP. With TouchOSC I can reach the Arduino (with port forwarding enabled) but only if my iPad/iPhone is connected to wi-fi. So the problem seems to be the app which cannot send OSC without being attached to a wi-fi network. – Patrick Mar 01 '11 at 05:14
  • I wonder if you were to jailbreak your iphone and download an app that makes the phone think its on wifi if this would then work. They have these so you could do VOIP calls over 3G, so may be worth a shot if your already jailbroken. – sbonkosky Mar 02 '11 at 16:05
0

I would get one of these. Look ma, no wi-fi :)

bioffe
  • 6,283
  • 3
  • 50
  • 65