connecting to hardware mixer

Post new topic   Reply to topic

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Re: connecting to hardware mixer

Post  zaboomafoo on Tue Dec 24, 2013 4:50 pm

x32 listens on port 10023 and responds to the port that requested /xremote command. That is what causes problem to all osc programs (both ios and android).

Let me try to explain the "random port" thing.

When you send a UDP message, it goes from IP1:PORT1 to IP2:PORT2. You specify IP2 and PORT2 (that is your outgoing setting). IP1 is your client's IP. Now PORT1 is the problem. Normally you don't care what it is and usually it is randomly assigned by OS or socket library.

You can set the originating port when you create an istance of the DatagramSocket class. I am assuming you are not specifying the port when you create an instance, something like this:

DatagramSocket clientSocket = new DatagramSocket();

However you could do it this way:

DatagramSocket clientSocket = new DatagramSocket(intSomePortNumber);

That way your outgoing packets would be bound to a known port. And that is the port where x32 sends its responses

Now I don't know if it is possible to bind the sending packets to the same port that you are listening to (incoming port), don't have time to try that now. If that works that would be an ideal and simple fix.

(http://developer.android.com/reference/java/net/DatagramSocket.html).

Regards,
Frank


zaboomafoo

Posts: 3
Join date: 2013-12-24

View user profile

Back to top Go down

Re: connecting to hardware mixer

Post  Admin on Tue Dec 24, 2013 5:49 pm

oh, that's what you mean by 'random'.

I'll look into it further after Christmas, but I don't think I'll get it to work simply because the main port is still being used by the incoming and outgoing stream. So, basically, don't hold your breath unfortunately Sad

I'll try my best!

Admin
Admin

Posts: 382
Join date: 2012-11-17

View user profile http://dawosc.forumotion.com

Back to top Go down

Re: connecting to hardware mixer

Post  zaboomafoo on Tue Dec 24, 2013 6:43 pm

I understand. Thanks for your prompt response.

This is one android app that is specifically built for x32
https://play.google.com/store/apps/details?id=com.davidgiga1993.mixingstation

Regards,
Frank

zaboomafoo

Posts: 3
Join date: 2013-12-24

View user profile

Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions in this forum:
You can reply to topics in this forum