From: CeDeROM <tom...@gm...> - 2010-02-10 19:29:44
|
Hello! On Wed, Feb 10, 2010 at 3:59 PM, Grzegorz Behrens <grz...@gm...> wrote: > With those particular lines, I'm getting this error : > (...) > Missing power for Parallel Cable III > Could not open parallel port /dev/ppi0 > > without, it looks like this : > (...) > Found Xilinx Parallel Cable III This happens because code does not want to run when cable is not connected to a device, or the device is not powered on. Reading parallel port might look different in different OS - so this could be related to some ioctl reading parallel port control lines? Where is the "power detect" line located - at data lines or control lines? Maybe the first invocation of the program sets the control register of the parallel port and the second reads the value..? What happens if the port is being read twice (two read functions before to detect power? Regads, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info |