Need help understanding OSC commands
I tried to make my own android app to control brobot. I tried to send a string like “/1/fader1 ,f 0.65”
But i float OSC_extractParamFloat(uint8_t pos) gives me always 0.00 as return value.
So I activated DEBUG and watched in serial windows what comes from the original app.
For example: The Byte value ist 63 3 162 244 and converted to float it gives me 0.51
I dont get how the conversion works or even what the original app sends because the byte values change even on the same float values….
Can someone tell me what I dont get here ???
Some example string from the original app would maybe help.
actually, the OSC commands are documented in the code itself. There’s an app called Protokol which allows you to listen to the OSC commands if you point the remote app (I use Touch OSC on iOS) to your computer.
Here are some of the messages I captured in Protokol:
RECEIVE | ENDPOINT([192.168.61.200]:2223) ADDRESS(/1/fader1) FLOAT(0.15412542)
RECEIVE | ENDPOINT([192.168.61.200]:2223) ADDRESS(/1/push1) FLOAT(1)
The faders range from 0 to 1 with 0.5 being “stick center”, the neutral position.
The buttons for pro and the arm are either 0 or 1.
Hope this helps…
Hi – I am unable to send a value from my bRobot to a TouchOCS app I made for my iPhone. Can anyone please explain to me how this should be done – or provide a code snipet. Are there specific “Options” which I need to set in my TouchOCS app?