• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaComm and Parellel Ports  RSS feed

 
Mr. Free
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I have a problem when I send Data throw Parllel port using javacomm ,
here is my code
try{
CommPortIdentifier dd =CommPortIdentifier.getPortIdentifier("LPT1");
CommPort ss = dd.open("ss",0);
System.out.println ("will send");
ss.getOutputStream().write(10);
System.out.println ("sent");

}
catch(Exception e){System.out.println (e);}

the program never print Sent when I tested the pins with leds there is a data sent to the port but the thread is blocked in the statement write(10)and never print sent
I dunno why
can any one help.
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!