Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
QuietlyLookingInward's avatar
5 years ago

How to receive OSC Data via UDP/IP on the Quest?

Hey
there, is it possible to receive OSC Data via UDP on the Quest? If yes,
is there an open default UDP-Port or is there any way to open a
specific Port?

I'm using Unity and made a project using the plugin extOSC that works on my Laptop but it doesn't on the Quest. I think it is because the UDP Port isn't set-up
properly.
I know that SideQuest and ADB are both possible to be connected using wifi UDP/IP so I guess there is a way to do it.

I also wrote to the developer of the plugin extOSC and he told me is not 100% sure but it could be something related to the Android Manifest and the Network Permissions.

Any ideas on how to figure this out?



6 Replies

  • Ok, just for the record. I solved by adding these two lines outside the application tag in the AndroidManifest.xml

























    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


    :)
    • oddpetrichor's avatar
      oddpetrichor
      Honored Guest

      Hi! i need to do this in Unity also for a quest. Where do you finde the AndroidManifest.xml ? 

  • Hello MatiasBru. I'm trying to also do the same thing; be able to send/receive OSC messages from/to the Quest to an external board (Raspberry PI or Arduino) but I have no idea where to start. So far I haven't found any tutorials/blogposts about it, only you seems to have successfully achieved this. Would you mind sharing a bit more how you did it or even better share a basic project blueprint for us to work from ? That would be ideal.

     

    Thanks for your help

     

    • valfg's avatar
      valfg
      Explorer

      Me again. I've successfully created an OSC conversation in-between a remote laptop (on the same network) and my Unreal Engine interface. Pressing an OSC button from the remote control trigger an event in the game. This work flawlessly. When I build, save and load that game onto the quest, this event doesn't work unfortunately.

       

      I went into my game folder Projectname/Intermediate/Android/APK when I found the AndroidManifest.xml where I've added the two lines you've indicated above outside of the <applications> tags. Saved, rebuild/save and load the game but same behavior. Have I missed something here? What IP and port are you using in your OSC blueprint? In IP i've left it empty as putting 0000 wasn't working, and i've used the 8000 port.

       

      Thanks