Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the IO forum.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Free,
Welcome to JavaRanch!
There aren't many rules around here, but we have one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks!
[ February 23, 2003: Message edited by: jason adam ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!