Closed ozett closed 10 years ago
TouchOSC for example as mobile application is very good.
whats wrong using oscsend? (or what does not work with oscsend?)
Works perfectly. But my usecase is the Gira-Homeserver. It is a closed perl-binary which can send text-Strings (and binary-data) to tcp and UDP ports. I am still hoping that the OSC-Message format must not be (binary)converted somehow but instead send as a string like "/Message int int" to the listening port. but not that easy .... missing more clues.. i am not a programmer ...
See http://cnmat.berkeley.edu/user/adrian_freed/blog/2008/10/06/open_sound_control_1_1_specification for details. Long story short, the used OSC Protocol needs some encoding, it wont work the way you did it.
you have two options: -use a proxy daemon that will translate the data from your server to osc messages -ask the gira guys to support osc
I close this issue, as your request is out of scope for pixelcontroller.
As it stays unrelated, i just wanted to add a solution to send OSC-Messages to Pixel-Controller, but from outside. (You have to close this again, i think, because adding this comment re-opens.put for archive-purpose here..)
As i have running Pixelcontroller on linux (ubuntu/debian) i installed "liblo-tools" with apt. now i have oscsend in bash an on command-line.
[SYNTAX] /usr/bin/oscsend IP port OSC-Message [EXAMPLE] /usr/bin/oscsend 192.168.14.25 9876 /FREEZE
i openend a port with socat on my linux-box, which has on the other end a restricted bash.
socat tcp-listen:8998 SYSTEM:'/bin/bash -r'
now i can send bash-cmdlines (i intentionally do this from our gira homeserver) to this port. i do this to change speed, presets and generators up and down. gira-homeservers 'ip-send' is sure beyond scope, there could be an option to create an logic-module with python to send OSC-Message. So i show here how i tested it from another linux box. OSC-cmds are the readme. example for freezing output:
echo "oscsend 192.168.14.25 9876 /FREEZE" | socat - tcp:192.168.14.25:8998
Attention. Restricted-Shell is not realy secure. but i is our home-environment. else on could create a user with restriction to restricted shell an limited cmd-set. This needs some basic linux-skills, but if you want to secure this. Here only a hint, which way to go ....
Thanks for this, I will add those informations to the documentation.
just for the archive, and: i dont know if anybody would ever find this info here, but the internet is a wonder:
My original concern for sending OSC-Messages to control the pixelcontroller directly from my Gira Homeserver is solved! Also i can now send Artnet-Messages directly from Gira-Homeserver to the Arduino-Artnetclient, at which the ws2811 strips are connected is SOLVED.
The Gira Homeserver can send IP (tcp/udp) Telegrams. And the artnet and OSC message specifications helped (also user michi in knx-user-forum.de). As a hint how to do this i attach a screenshot.
I can send OSC Messages via oscsend from unix-liblo-tools. I am no Programmer. I am wondering if it could be made possible, to send the OSC-Message directly to the listening port from bash with some helper tools.
Anybody with any idea are greatly welcome...
my trials here...