Sections
You are here: Home Forum .NET C# Using OSC Timestamps

Using OSC Timestamps

Up to .NET C#

Using OSC Timestamps

Posted by Jonas at October 02. 2008
Hi! I'm building a set of applications communicating via OSC. I began using an OSC .Net implementation made by Ventuz (www.ventuz.com), since I found it on the OSC homepage. Since I'm (among other data) is distributing sensor data from the Make Controller Board, I thought it might be nice to only use one OSC library. I'm missing one thing in the library though: OSC timetags. When the MakeControllerOsc is communicating via OSC you are able to send OSC bundles. But I haven't found if the library can handle OSC timetags (as it should, if you look into the OSC specification...). All bundles get a null timestamp when a bundle is created. My question is simply: How would I do if I want to insert a DateTime timetag instead of the null timestamp that is used? Thanks.

Re: Using OSC Timestamps

Posted by Liam Staskawicz at October 02. 2008
The board does not make use of OSC timetags. This is a little bit of an oddity in the OSC spec - it's in there but its support in all the various OSC implementations is spotty at best. I'm not sure from your question whether you're wanting to insert timetags into messages going to or coming from the board. Messages to the board with timetags will be delivered immediately, ignoring the timetag, and messages from the board will have a null time tag unless you create a modified heavy firmware.

Re: Using OSC Timestamps

Posted by Jonas at October 03. 2008
I have a few applications that is communicating via the OSC protocol. The messages that are sent and received between the applications need a timestamp. So when a message from the board is received I want to create a new OSC-message (with the current time as timestamp). Then, maybe modify the message by inserting a few other parameters than what I got from the board. Finally, send the message to another application in my system. MC board -> MC Application -> Other applications (Where '->' is symbolizing OSC communication) So, in other words... The timestamp I want to insert has nothing to do with the board itself. It's for communication between other applications in my system. You say that you can insert a timetag into a message to the board. How would one do this in C#?
Powered by Ploneboard
Document Actions