Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

OSC problems.

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
iNidHlp

OSC problems.

Post by iNidHlp » 06 Dec 2012, 13:14

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.

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: OSC problems.

Post by TobiTobsen » 07 Dec 2012, 10:01

Hi,
So what is happening?
You are trying to receive that data in ventuz or send it using c# node?
Tobi
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

iNidHlp

Re: OSC problems.

Post by iNidHlp » 07 Dec 2012, 11:48

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

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: OSC problems.

Post by TobiTobsen » 09 Dec 2012, 01:18

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
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

chriss0212
Posts: 666
Joined: 18 Jan 2012, 20:56
Location: wuppertal
Contact:

Re: OSC problems.

Post by chriss0212 » 09 Dec 2012, 11:03

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

Post Reply