ebiguy / RespeQt

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

new Qt Serial Backend + setting DTR + RTS for better Arduino compatibility #50

Closed TheMontezuma closed 7 years ago

TheMontezuma commented 7 years ago

The new backend is based on the Qt serial port abstraction. This means the same RespeQt code is used for handling low level communication under Windows, Linux or Mac. At the end, the QSerialPort implementation uses native API of the corresponding OS, like it is done in the Standard Backend right now. From the first point of view, you may see no benefit of introducing new backend, but the benefit is that if the user encounters any problem with the native implementation of the Standard Backend (which will of course will not be removed from the project), he can switch the backend and perhaps have better luck with the Qt code. At the time of writing of the AspeQt, there was no serial port support in the Qt, so there was no other choice, as to write it on your own. Today we can benefit of having two approaches :)

Setting the DTR/RTS line occurred to be necessary when using Arduino Micro Pro (as a SIO2PC). There is a new project called SIO CART which is using this hardware and they wanted to make the USB port usefull for users.