Adding custom port to "terminal" example - bump
-
wrote on 22 Apr 2023, 15:36 last edited by
I am asking/ looking for somebody who
a) used / uses QT "simple terminal " example (C++ code) , for real...
b) or is interested to work with me (C++ code) to figure out how this example implements "add custom port".The "ass custom port " is not documented by the author of the QT example.
I have some idea how it fits into the example , however , I am still lacking a good "flow chart" of the process.
For example - if I attempt to test add "ttyUSB1 " as custom port , AFTER typing "tty" into the current blank pull down combo box , its text magically changes to "tttyUSB0".
So far I have not found how QT example does this "guessing"...
-
I am asking/ looking for somebody who
a) used / uses QT "simple terminal " example (C++ code) , for real...
b) or is interested to work with me (C++ code) to figure out how this example implements "add custom port".The "ass custom port " is not documented by the author of the QT example.
I have some idea how it fits into the example , however , I am still lacking a good "flow chart" of the process.
For example - if I attempt to test add "ttyUSB1 " as custom port , AFTER typing "tty" into the current blank pull down combo box , its text magically changes to "tttyUSB0".
So far I have not found how QT example does this "guessing"...
wrote on 22 Apr 2023, 18:06 last edited by Pl45m4@AnneRanch said in Adding custom port to "terminal" example - bump:
For example - if I attempt to test add "ttyUSB1 " as custom port , AFTER typing "tty" into the current blank pull down combo box , its text magically changes to "tttyUSB0".
You can only add/select a port or a configuration which is available on your system.
This comboBox has autocompletion. Check, what's in your list already. If you do have attyUSB1
port available, go toCustom
and typettyUSB1
without leaving the box.
Then apply your config and see if it works. -
@AnneRanch said in Adding custom port to "terminal" example - bump:
For example - if I attempt to test add "ttyUSB1 " as custom port , AFTER typing "tty" into the current blank pull down combo box , its text magically changes to "tttyUSB0".
You can only add/select a port or a configuration which is available on your system.
This comboBox has autocompletion. Check, what's in your list already. If you do have attyUSB1
port available, go toCustom
and typettyUSB1
without leaving the box.
Then apply your config and see if it works.wrote on 22 Apr 2023, 18:27 last edited by@Pl45m4 So the "custom" is poorly chosen term ....I am not surprised "custom" is not covered in doc...I'll take a look if I can trace the "autocompletion" - yet anther new term for me....
I hope it will have some code indicating where QSerial gets the current serial ports ....Your post actually partially suggest how to solve adding "virtual rfcomm" port ....
Thanks very much. -
@AnneRanch said in Adding custom port to "terminal" example - bump:
For example - if I attempt to test add "ttyUSB1 " as custom port , AFTER typing "tty" into the current blank pull down combo box , its text magically changes to "tttyUSB0".
You can only add/select a port or a configuration which is available on your system.
This comboBox has autocompletion. Check, what's in your list already. If you do have attyUSB1
port available, go toCustom
and typettyUSB1
without leaving the box.
Then apply your config and see if it works.wrote on 22 Apr 2023, 18:34 last edited by@Pl45m4 said in Adding custom port to "terminal" example - bump:
Check, what's in your list already. If you do have a ttyUSB1 port available, go to Custom and type ttyUSB1 without leaving the box.
Then apply your config and see if it works.That does not make much sense- as far as any interpretation what "Custom" actually does ( which is unknown / undocumented ,,,)
It the port is available, in the list, it will show up in the box after the "Configuration" is opened.
-
@Pl45m4 said in Adding custom port to "terminal" example - bump:
Check, what's in your list already. If you do have a ttyUSB1 port available, go to Custom and type ttyUSB1 without leaving the box.
Then apply your config and see if it works.That does not make much sense- as far as any interpretation what "Custom" actually does ( which is unknown / undocumented ,,,)
It the port is available, in the list, it will show up in the box after the "Configuration" is opened.
wrote on 22 Apr 2023, 18:43 last edited by Pl45m4@AnneRanch said in Adding custom port to "terminal" example - bump:
what "Custom" actually does
Custom means you are free to configure your port else than picking a port from that list, but you can't expect any port configuration to work.
What does
ls -l /dev/ttyUSB*
print?
-
@AnneRanch said in Adding custom port to "terminal" example - bump:
what "Custom" actually does
Custom means you are free to configure your port else than picking a port from that list, but you can't expect any port configuration to work.
What does
ls -l /dev/ttyUSB*
print?
wrote on 22 Apr 2023, 19:49 last edited by@Pl45m4 I finally found the code which actually reads the system available serial ports... it is a challenge to start with "update settings" and go backwards...
Temporary / partially solved
1/6