1 | initial version |
Most camera's have an interface library that allows you to set parameters based from C/C++ code. These libraries handle the serial port communication themselves, since setting that up from scratch is quite a challengin job. Using an intermediate file is somewhat the worse thing you could do...
Can you specify the camera you are using? Or take a quick look at the developers pages for some sort of API.