Jack
You were right to look into device-filter.xml. After the change you suggested, it behaved as you said, I am prompted to choose between my app and « Serial USB Terminal » for the connection.
However, I am still not through. The port opens OK (although I had to add a missing self.is_open = True at the end of the open() procedure in driver.py), but I get a timeout error (I guess, as there is only a -1 return code after 1s) when writing, coming from self._connection.bulkTransfer() in the serial port class CdcAcmSerialPort.
There is no hardware handshake enabled by default, my baud rate is the standard 9600, and I am just trying to send a single character:
if self.serial_port is not None:
try:
self.serial_port.write('a') # also tried self.serial_port.write(b'a')
except Exception as e:
self.parent.label.text = str(e)
Thanks for any other idea...