peedee
peedee

Reputation: 2031

serial port communication in linux OS

Can anyone tell me whats the best and efficient way to communicate to a serial port connected devices in linux operating system.I am trying to send messages to eftpos machine using serial port in my java program. Any suggestion and advice would be great !!! Thanks in advance

Upvotes: 2

Views: 479

Answers (2)

imm
imm

Reputation: 5919

This SO question points out the serialio driver as an option. You might also have a look at javacomm from sun/oracle.

Upvotes: 2

Arafangion
Arafangion

Reputation: 11908

Open the appropriate device file. Eg, /dev/cu.foo

Upvotes: 0

Related Questions