Page 1 of 1

OSC problems.

Posted: 06 Dec 2012, 13:14
by iNidHlp
Hi there! I am experiencing some troubles about interacting with Ventuz using my soft in C#.
Probably i can't get the mechanics so i'm counting on your help. Pleaseeeee :oops:

My program is sending OSC Messages via udp to localhost(127.0.0.1), port 7000.
I'm using OSC.NET. Is it neccessary to use Ventuz.OSC?
Listings:

Transmitter method:

Code: Select all

		public int Send(OSCPacket packet)
		{
			int byteNum = 0;
			byte[] data = packet.BinaryData;
			try 
			{
				byteNum = this.udpClient.Send(data, data.Length);
			}
			catch (Exception e)
			{
				Console.Error.WriteLine(e.Message);
				Console.Error.WriteLine(e.StackTrace);
			}

			return byteNum;
		}
And this is how i'm creating a message:

Code: Select all

                messageToSend = new OSCMessage("/POS", 2);
                float someFloat = 10f;
                float someNextFloat = 10f;
                messageToSend.Append(someFloat);
                messageToSend.Append(someNextFloat);
                transmitter.Send(messageToSend);
Feel free to ask any questions. Thx in advance.

Re: OSC problems.

Posted: 07 Dec 2012, 10:01
by TobiTobsen
Hi,
So what is happening?
You are trying to receive that data in ventuz or send it using c# node?
Tobi

Re: OSC problems.

Posted: 07 Dec 2012, 11:48
by iNidHlp
Well...nothing :)

But yesterday I've decided to use Ventuz.OSC and everything works pretty fine now. Only one thing is not clear enough right now - IPs.
I'm testing my app on a local computer so it works great. But what IPs i should send my OSC packets to and what IPs i should use for a Ventuz Machine Config which is 230.230.230.230 by default, and for a Node multicast IP which is 224.1.1.1 by default?

Right now i got it working by deleting a Node multicast IP and sending packets from my app to 127.0.0.1

Re: OSC problems.

Posted: 09 Dec 2012, 01:18
by TobiTobsen
Hi,
Should be fine If you send the data to the ip that your machine does have....

If the application runs on the Ventuz machine, sending to localhost 127.0.0.1 is of course fine as well...

Cheers,
Tobi

Re: OSC problems.

Posted: 09 Dec 2012, 11:03
by chriss0212
maybe you need to send to broadcast adress! for eg 230.230.230.230 and specify this adress also in the osc in node! if you try to send to localhost it could be, that the port is blocked!

greetz

christian