Java Simple Serial Connector (jssc) no ports detected -
i'm using jssc-2.6.0 in cross-platform application. returned portlist on windows machines (32/64bit) correct, macosx (v10.6 , 10.7) application not return serial devices. if view serial devices manually in terminal ls /dev/tty.*
, can view 3 devices. running following line jssc example file returns nothing on same mac machine:
string[] portnames = serialportlist.getportnames();
i can see whole bunch of devices, including ones in terminal, after use:
string[] portnames = serialportlist.getportnames("/dev/", pattern.compile("tty."));
a drawback hangs machine 10 seconds , on other machine (10.7) not respond after 30 seconds.
is there way reliably connect serial device on mac using jssc?
jssc use regexp
listing serial ports on mac: tty.(serial|usbserial|usbmodem).*
if device cannot found regexp should change getting device name.
the next important thing jssc try open port , termios
structure identify real serial device. in described situation can suggest use official , latests drivers. port listing functionality realy simple, try use serial port terminal checking issue on software.
Comments
Post a Comment