(Linux) Unable to open Port for OSC messages

69 views
Skip to first unread message

Olaf

unread,
Apr 25, 2012, 11:42:40 AM4/25/12
to KeyKit
Hello Keykit Group users,

I compiled Keykit (Version 7.7b) under Ubuntu 12.04 and the midi part
works fine :-)
Unfortunately it's not possible send or receive OSC messages.
If I run the examples from osc.k keykit prints out:

key> simpleosc_listen()
Unable to open port: open(90...@127.0.0.1,rA,osc_listen) ?!
key> osc_listen("localhost",88888)
Unable to open port: open(88888@localhost,rA,osc_listen) ?!

What goes wrong here? It's necessary to set some system rights for
keykit?


Kind regards, Olaf

P.S. Some background information:
I've wrote a small keykit application which handle TUIO messages like
Space Palette send. It runs in Windows and I try to port it to Linux,
now.

OS: Ubuntu 12.04,
Version: keykit_alsa, 77b
OSC-library: oscpack.

Tim Thompson

unread,
Apr 25, 2012, 4:26:43 PM4/25/12
to Olaf, KeyKit
I compiled Keykit (Version 7.7b) under Ubuntu 12.04 and the midi part
works fine :-)

Good to hear.
 
Unfortunately it's not possible send or receive OSC messages.
If I run the examples from osc.k keykit prints out:

key> simpleosc_listen()
Unable to open port: open(90...@127.0.0.1,rA,osc_listen) ?!
key> osc_listen("localhost",88888)
Unable to open port: open(88888@localhost,rA,osc_listen) ?!

What goes wrong here? It's necessary to set some system rights for
keykit?

It shouldn't be necessary for additional rights, given those port numbers.  I would assume the machine-dependent code for UDP on Linux needs work.  I know I used the TCP code on Linux (many years ago), but don't recall ever trying the UDP code.  I don't have any cycles to investigate this, so you'll have to use the force, uh, source code.  mdep2.c is the file to look at.
 
I've wrote a small keykit application which handle TUIO messages like
Space Palette send. It runs in Windows and I try to port it to Linux,
now.

Neat!  TUIO is a very useful standard, since there's a nice number of iPhone/iPad apps that send it.

Nice email address, by the way.  :-)

      ...Tim... 

O. S.

unread,
May 2, 2012, 8:40:48 AM5/2/12
to KeyKit
Hello Tim,

thanks for your fast reply.


> trying the UDP code.  I don't have any cycles to investigate this, so
> you'll have to use the force, uh, source code.  mdep2.c is the file to look
> at.
>

 I compared mdep2.c from mdep/linux_alsa with the mdep/nt branch and (just) copied  the osc stuff. (I remove the keyword 'FAR' from several pointers and suppose that is ok.)
 Now, keykit can send osc messages. Receiving did not work yet but I will try to fix this today.
Although the work isn't finished I attached the diff file for other readers.


>
> Nice email address, by the way.  :-)

:-)

Regards Olaf
linux_alsa_-_osc_messages.diff
Reply all
Reply to author
Forward
0 new messages