Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serial Port Connection  RSS feed

 
Nidheesh Puthalath
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

how can i connect to a serial port (comm port) in java.
i have the url like,
String commURL = "comm:com1;baudrate=38400;bitsperchar=8;stopbits=1;parity=none;autocts=off;autorts=off";

my intention is to read and write bytes in the serial port.

Thanks in advance

Nidheesh
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to look at the Java Comm API. Since this is not part of the Java IO API, I'm moving this post to the Other API's Forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!