I would like to control some physical engines, switches on/off, lights through a self written C API.
I already have a very general overview of how to achieve this:
Use the kernels abstraction, write a driver on it and use this as control. The driver itself has to manage incoming bytes and interpret them (depends on port).
I personally would prefer to use a USB port because I can use my MacBook to develope.
But I know that the protocol is quite complicated. However here are my specific questions:
- Which port is good to use (is USB a suitable option?)
- Could I simply wire a engine to the USBs power cables and connect the data cables to a power swith or do I require an extra board?
- Are there better docs for OS X, BSD or gnu/Linux?
Bodo