if (SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X) {
// for MAC OS default pattern of jssc library is too restrictive
portNames = SerialPortList.getPortNames("/dev/", Pattern.compile("cu\\..*"));
} else {
portNames = SerialPortList.getPortNames();
}