ebiguy / RespeQt

RespeQt Atari serial peripheral emulator
GNU General Public License v2.0
31 stars 16 forks source link

Simplify serial port selection #51

Closed TheMontezuma closed 7 years ago

TheMontezuma commented 7 years ago

The user can now select one of the available serial ports from a list (QComboBox). The last entry in the list is called "Custom". This entry is editable, so you can enter a serial port name of a currently not connected device. Additionally Windows / Linux port names are treated now in consistent way: "/dev/" path does not belong to the serial port name.

jzatarski commented 7 years ago

something inside me struggles with saying "/dev/" is not part of the serial port name, but at the same time, I know certain utilities (core utilities, I might add, like getty) also make the same assumption.

My main question, is whether this works properly migrating from previous respeqt versions which saved the entire /dev/ttyxxx path in the settings files/registry? EDIT: looking through the old code, I see this is the case.

TheMontezuma commented 7 years ago

Yes, I took care about it :) If we read "/dev/ttyUSB0" from registry, then I will skip "/dev/", so the user will be presented with "ttyUSB0" only, and RespeQt will properly open "/dev/ttyUSB0"

LameLefty commented 7 years ago

So I cloned Joey's RespeQt git repository on my Rpi and tried to build an updated binary but I get an error message when I use qmake - "Project ERROR: Unknown module(s) in QT: serialport"

Herb Schaltegger Sent from my iPhone Auto-transcribed or typed on tiny keys - please excuse typos

On Apr 8, 2017, at 12:58 PM, TheMontezuma notifications@github.com wrote:

Yes, I took care about it :) If we read "/dev/ttyUSB0" from registry, then I will skip "/dev/", so the user will be presented with "ttyUSB0" only, and RespeQt will properly open "/dev/ttyUSB0"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

TheMontezuma commented 7 years ago

Hi, I have already posted some days ago on Atari Age:

Note: QSerialPort is not included in qt-default / qtbase, so you need to install libqt5serialport5-dev in order to compile RespeQt:

sudo apt-get update sudo apt-get install build-essential git qt5-default qtbase5-dev libqt5serialport5-dev