Serial device support?

Anyone ever try to interface a Unity application through a serial device (ie. RS 485, RS 232, etc.)? We are looking at the possibility of getting Unity to take input from a couple custom input devices and would appreciate any tips or leads on where to get started.

Thanks!

Some snooping around gave me this:
http://www.mono-project.com/HowToSystemIOPorts
and this:

Thanks for the links AngryAnt. The “how to” with Mono seems very straightforward, but can it be that easy? What we’d like to do is use a custom controller to use as an input device. I can see how, by using “System.IO.Ports” I can read and write to a serial port, but can I use that to control an object on the screen? Just seems too easy, there’s got to be a catch… :wink:

The catch is translating the signals you’re getting from the device into button presses, but that shouldn’t be that big a deal - assuming you can really get the signals as described on those pages.