Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Reading/writing from/to serial port  RSS feed

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to write java application which read/write data from/to serial port , I have found this application in the net
(http://www.captain.at/howto-java-serial-port-javax-comm-rxtx.php) which is a very good example.

According to the logs I am able to write into the port but am not able to read from the port..

Any one can help to fix the issue




WriteReadSerialPort.java







 
Bartender
Posts: 9521
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have anything plugged into the port?
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe Ess,

Thanks alot for your , I Have nothing is plugged into the port.
 
Joe Ess
Bartender
Posts: 9521
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If nothing is plugged in, you can't really read anything. You may be able to set your port to local loopback but it's been a long time since I've worked with serial ports and I've never used RXTX to do it.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!