• Post Reply Bookmark Topic Watch Topic
  • New Topic

RS485 Serial Port interface  RSS feed

 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have any recommendations on reading data from a serial port using the RS485 Standard. There is no other option due to acquiring data from a legacy piece of hardware. Any direction, sample code or site references would be helpful.
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One last attempt to get input on this issue.
 
Campbell Ritchie
Marshal
Posts: 56223
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never tried RS485, but I put "RS485 java" into a Google window.
I got several hits; it says there are 140000 of them, but this one near the top might be of use to you.

CR
 
John D. Lowe
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is somewhat off the mark- RS485 is an electrical standard, we can't do much about that in Java. There are many different communications protocols (most are propritary and ad-hoc) that can be used with RS485. The javax.comm package is a good place to start (since most RS485 interfaces are conneced to COM ports...). How to proceed depends on what exactly your trying to do....


-John
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand the protocol is not standardized but the problem is reading with the javax.comm package. I cannot find anywhere for a windows RI of the API on Sun's site. I am now looking into RXTX. If anyone has any experience with serial communications it would help greatly.
 
John D. Lowe
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried RXTX. Anymore I just buy the javax.com package from http://www.serialio.com/ -it's not worth my time messing with getting "free" solutions working (my labor isn't free....).

-John
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!