• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parallel port IO problem

 
M. Sunil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to write into the parallel port using rxtx jars. The opening of the port is fine but when it comes to writing it somehow detects that there is no device connected. I am trying to use a mutlimeter to detect the data bits[using pins 2 ,3 ,..] [high and low]. So can somebody tell me how i can run the program without getting this exception.
'Thanks,
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M. Sunil wrote: it somehow detects that there is no device connected.


Let me get this straight: you are attempting to write data to a port without a device? That should fail.
If you want to test what would happen if you actually attached something, you would need a parallel port loopback device.
 
M. Sunil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. I am trying to write into a port to which no device is connected. Is there any way to make the driver believe that there is a device connected. Say by pushing some pins to high. I have a dll and a program in c# to write to the port and it works. i have tested it with a multi meter.
Thanks,.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic