Simple Terminal runtime error when opening port
-
Hi and welcome to devnet,
Can you print what port you have ? And which one is it trying to open ?
-
Hi and welcome to devnet,
Can you print what port you have ? And which one is it trying to open ?
-
How are you setting up your serial port ?
-
Can you please run another example (e.g. the console enumerator), and paste here an output (for a device names and their locations)?
-
Can you please run another example (e.g. the console enumerator), and paste here an output (for a device names and their locations)?
@kuzulis here is the printout:
"Port: Bluetooth-Serial-1
Location: /dev/cu.Bluetooth-Serial-1
Description: incoming port - Bluetooth-Serial-1
Manufacturer:
Serial number:
Vendor Identifier:
Product Identifier:
Busy: No
"
"Port: Bluetooth-Serial-2
Location: /dev/cu.Bluetooth-Serial-2
Description: incoming port - Bluetooth-Serial-2
Manufacturer:
Serial number:
Vendor Identifier:
Product Identifier:
Busy: No
"
"Port: Bluetooth-Modem
Location: /dev/cu.Bluetooth-Modem
Description: Bluetooth-Modem
Manufacturer:
Serial number:
Vendor Identifier:
Product Identifier:
Busy: No
"
"Port: Bluetooth-PDA-Sync
Location: /dev/cu.Bluetooth-PDA-Sync
Description: incoming port - Bluetooth-PDA-Sync
Manufacturer:
Serial number:
Vendor Identifier:
Product Identifier:
Busy: No -
Thanks, now all is clear, it is a bug in library. Recently (in Qt5.4.1) was "improved" a code for conversion from the port location to the port name and back. Was implied that on OSX the QSerialPortInfo will be returns the port name in "cu.blabla" form, but it is returns in "blabla" form. Thus the back conversion to the port location is wrong (result is "/dev/blabla" instead of "/dev/cu.blabla"). And as result - opening is failed, because this device does not exists.
So, as workaround, need to manually pass to SimpleTerminal the port name as a custom, in "cu.blabla" form.
-
sorry?
in here: ab51ad6a5f4e533c31bd8e5b6f16a3bcd09a3ee6
Simply forgot to make changes and in QSerialPortInfo for MacOSX. :)
Watch for a patch: https://codereview.qt-project.org/#/c/108571/
-
Thanks, now all is clear, it is a bug in library. Recently (in Qt5.4.1) was "improved" a code for conversion from the port location to the port name and back. Was implied that on OSX the QSerialPortInfo will be returns the port name in "cu.blabla" form, but it is returns in "blabla" form. Thus the back conversion to the port location is wrong (result is "/dev/blabla" instead of "/dev/cu.blabla"). And as result - opening is failed, because this device does not exists.
So, as workaround, need to manually pass to SimpleTerminal the port name as a custom, in "cu.blabla" form.