[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot open parallel port on 100LX board




I am trying to program the parallel port in manual mode
on the 100LX board.

I tried hwtest utility, and it claims it cannot initialize the
parallel port. Is this normal? Does this mean I cannot program the
parallel port, or is the hwtest code not designed for the 100LX board
or something?

Does anyone have some simple example code of opening
/dev/lp0 and setting a clearing some output pins manually?

  [root@Beartronics /]49# hwtest INIT lp0
  hwtest INIT lp0

  ERROR INIT lp0 (-1):failed to open /dev/lp0

  [root@Beartronics /]49# hwtest INIT lp1
  hwtest INIT lp1

  ERROR INIT lp1 (-1):failed to open /dev/lp1

  [root@Beartronics /]49# hwtest INIT ttyS0
  hwtest INIT ttyS0

  OK INIT ttyS0
  [root@Beartronics /]49# hwtest SEND ttyS0 foobar
  hwtest SEND ttyS0 foobar

  OK SEND ttyS0 6 bytes
  [root@Beartronics /]49# hwtest SEND ttyS0 foobar
  hwtest SEND ttyS0 foobar

  OK SEND ttyS0 6 bytes
  [root@Beartronics /]49# hwtest INIT lp0
  hwtest INIT lp0

  ERROR INIT lp0 (-1):failed to open /dev/lp0

  [root@Beartronics /]49#