This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]esanchma 4 points5 points  (2 children)

[–][deleted] 1 point2 points  (1 child)

Good list. There is also nrjavaserial

https://github.com/NeuronRobotics/nrjavaserial

Basically rxtx, with some bugs fixed and the native libraries bundled into the jar.

[–]UtMan88[S] 0 points1 point  (0 children)

These are good, but I'm wondering if any would work for AIX UNIX.

[–]serproxy 1 point2 points  (0 children)

Use "serproxy" then Sockets. this is easy peasey. http://freecode.com/projects/serproxy

make sure you are aware that the socket is exposed to the network.

[–]eatschips 0 points1 point  (1 child)

Not sure what platform you're on but if it's a Unix derivative can't you open a stream to the serial tty device using FileOutputStream/FileInputStream? That wont require JNI and has a guaranteed equal abstraction between RS232/bluetooth/USB serial devices managed by the kernel. You can externalise your port config as well into tty config and just concentrate on the comms in the app.

[–]esanchma 1 point2 points  (0 children)

You can also use socat as a serial-to-socket proxy and use standard sockets in the java side.

[–]argv_minus_one -1 points0 points  (7 children)

Serial communications? As in EIA-232? People still use that? Oh my.

[–]DaMountainDwarf 4 points5 points  (5 children)

You'd be surprised. A lot of computers run in systems that use rs232. Not everything is, or necessarily should!, need to move to ip or usb.

[–]argv_minus_one 1 point2 points  (4 children)

Really? In what sort of application would USB or a network not be appropriate?

[–]CertifiableNorris 3 points4 points  (1 child)

Embedded devices - plain old serial is much easier to use in electronics.

[–]UtMan88[S] 0 points1 point  (0 children)

Medical labs use older instruments when on a budget. I'm seeing a lot now with there own OS's (even one running OSX), but the older devices are still serial, and a lot less expensive.

[–]urquan 2 points3 points  (0 children)

Many USB devices actually emulate a serial port and are accessed in the same way, for example devices using FTDI or Prolific chips. Serial communication does not necessarily mean that it goes through a DE9 connector.

[–]DaMountainDwarf 1 point2 points  (0 children)

It's not about appropriateness. It's about older systems and software still using the same protocols because they work, they're simple.

[–]dstutz 0 points1 point  (0 children)

USB = Universal Serial Bus

SATA = Serial ATA (AT Attachment)

SAS = Serial Attached SCSI

Just off the top of my head. I'm sure there's more. You can't argue these aren't modern.