The C code uses ioctl() calls controls the logic levels of DTR and RTS pins of a Linux Serial Port.
The full explanation of the code can be found here.
The C files can be compiled using GCC
The Code will Work With Standard RS232 Serial ports or any USB to Serial Converter.
More info about the USB to Serial/RS232/RS485 Converter used in the above tutorial can be found here