Welcome to %s forums

BrainModular Users Forum

Login Register

grasping the basics of OSC

I need help on a Patch
Post Reply
gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 16:49

I am trying to learn the basics of OSC in Usine (and in general)
I figure a simple exercise should be usine an OSC Send module and a OSC Receive module to communicate one message across the local loopback ip, 127.0.0.1.
Trouble is is that adding an OSC send module immediately gives the error: Send failed: Socket permission denied, and the OSC Send does not seem to work.
Any suggestions on the best way to get started?


Edit:
Setup > OSC setup > OSC Active is a really good place to start! :|

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 22 Feb 2010, 17:30

Hi guru,
gurulogic wrote:Trouble is is that adding an OSC send module immediately gives the error: Send failed: Socket permission denied, and the OSC Send does not seem to work.
Maybe a problem with firewall permission ?
Make sure Usine is allowed by the firewall, if any.

Hope it help
Martin FLEURENT - Usine Developer - SDK maintainer

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 17:50

Hmm, no I tried without the firewall already. Maybe a problem only with windows 7.

Another example I am trying is I have an OSC monitor application running and it is capturing button presses from my Monome, so I am seeing for example an address of /256/press, type .iii tag and values for data 1, 2 and 3 with each press.

If the OSC receive module in Usine were working for me, I should be able to set the address as either /256 or 256/press and the ip to 127.0.0.1 and receive messages on data 1, 2 and 3 right?

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 22 Feb 2010, 18:22

Just tested OSC here on W7 (RTM 32 Bits), no problems.

The fact is the error message you have is explicit : Socket permission denied.

Normally, OSC in Usine is pretty straight forward, just turn on and go...
Eventually, the firewall ask you if let Usine go through the network, with the option to make a permanent permission.
Martin FLEURENT - Usine Developer - SDK maintainer

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 22 Feb 2010, 18:29

...maybe it's a 'W7 account level' problem, are you logged as administrator ?
and check if the Usine.exe is executed as administrator too (right click on the exe, compatibility tab, execute as administrator) .

But it really smell like a firewall denied access...
Martin FLEURENT - Usine Developer - SDK maintainer

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 18:36

I just deleted about 20 entries in my windows firewall for Usine, then when adding the OSC send module I again get the Socket permission denied error and the firewall will pop up and ask for permission. Even after allowing full network access and restarting Usine, the error remains, so I must have another problem? Would my windows being 64 bit make any difference?
I can't think of anything in my system that would cause network issues.
Also I use Molar VSTI in Usine with no problems and it is communicating via OSC.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 18:39

yes I am admin, tried running as admin too but same result
ok, now to scratch my head and wonder...

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 18:56

Exact same problem on my tablet also running win7 x64. Maybe Usine OSC is not 64 bit OS compatable yet?

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 22 Feb 2010, 20:34

strange, no problem here with XP...
Seb.Dub

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 22 Feb 2010, 21:21

the local IP 127.0.0.1. means that you're not connected to a network.
And usine can't send OSC to itself.
check your router and your network configuration
a good IP looks like 192.168.1.1

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 22 Feb 2010, 23:10

Yes, but right now I am only interested in OSC communication between Usine and another application on the same computer.
AFAIK, that should always be 127.0.0.1, right? Or is Usine only able to communicate OSC via another computer?
I'll try between two computers and see what happens....

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 22 Feb 2010, 23:36

With 127.0.0.1 in the ip field in the OSC send module, everything is allright within XP inside Usine....
Seb.Dub

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Feb 2010, 23:48

can't help you cause i' use OSC only via an ipod and as said senso,my ip is more something like 192.168.1.21...
and it's work fine..

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 22 Feb 2010, 23:55

As nay-seven and senso wrote, your IP in the OSC setup might looks like 192.168.1.X or 192.168.0.X...
Seb.Dub

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 23 Feb 2010, 01:30

This pretty much says it all...

"Turn your patch ON and verify that Usine sends OSC message when you change the faders value. The OSC send led of the Dashboard should blinking"

No blinking "led" no matter what I do, cannot get anything to happen between Monomeserial and Usine, iPhone and Usine or other computer running Usine and Usine, so I guess there is a problem after all...
I just checked and I have the exact same problem in Usine 4.2. Also just tried on my GF's 32 bit vista computer and the same error.
So I'm the only one it doesn't work for and I have 3 computers to try!? Am I missing a setting somewhere? Do I have to turn OSC ON in Usine settings somewhere?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 23 Feb 2010, 01:37

try to copy the ip adress you see in osc setup to the ip field of send module.

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 23 Feb 2010, 01:42

Not certain about this but I did a quick google for "Socket permission denied" and came up with a few people having that error when the port they want to use is already in use by another program? Have you tried changing your port settings? I think the Localport in the OSC setup needs to match that in the send module - is that correct Senso?

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 23 Feb 2010, 03:08

Oh good lord...Setup > OSC setup > OSC Active! It's a miracle I manage to even put my socks on the right foot in the morning...

I still get the error when loading the OSC send module but it seems to work anyways. (maybe an error message "OSC not active" might be usefull for noobs?) I hope at least someone else learns from my foolishness...
senso wrote:And usine can't send OSC to itself...
This was the very first thing I just tried and it works fine, so...?

I'm sure I will have some more questions yet...

[edit: hooray I am now receiving button presses from my Monome via Monomeserial. I am thinking it must not be hard at all now to make patches for the Monome in Usine! And even virtual Monome for Multi Touch cannot be that far off...]

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 23 Feb 2010, 08:12

Ok, so it seems there might be issues when trying to use OSC to communicate between two apps on the same computer?
..well, I'm at least having issues... Going over a network is so easy It seems you could broadcast random OSC to networks all over the world and start making other people's OSC setups go crazy!
I think for now I'll stick to fiddling with ideas for a simple Monome controlled patch in Usine...(Monome emulation is looking totally possible, but not much fun if there's OSC application issues on a localhost ip...)

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 23 Feb 2010, 09:13

Cool that you manage to make it work :)
Ok, so it seems there might be issues when trying to use OSC to communicate between two apps on the same computer?
I remember i made some OSC patching on XP with two usine v4 instance (one with audio OFF) with no problems.
- i just experimented one usine send OSC and the other receive (i mean, no bi-directional).
I am thinking it must not be hard at all now to make patches for the Monome in Usine! And even virtual Monome for Multi Touch cannot be that far off...]
you surely already noticed the monome OSC protocol page ;)

now, it's time to have fun
Martin FLEURENT - Usine Developer - SDK maintainer

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 23 Feb 2010, 09:32

Some Lan devices need to be connected to work even if you are in local host.
It's a 'classical' problem.
Just connect your computer to the network.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 23 Feb 2010, 09:56

Funny I should mention broadcasting OSC to the world... I am right now receiving OSC messages in Usine from an ip address 18 hops from my computer!
ie: [171] OSC from 81.88.xx.xx : /Skins/09.Range_Fader.bmpPK (this is definately not me!) (xx is me not publishing the ip)

About localhost, I have it working within Usine and between Usine and Monomeserial but am having trouble between Usine and other local apps.. I will try some new things tomorrow.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests