ebiguy / RespeQt

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

Linux - error opening serial port #71

Open billhana opened 4 years ago

billhana commented 4 years ago

I was getting "Cannot set DTR and RTS lines in serial port" error opening the serial port. Those don't normally need to be set, but commenting that out resulted in a "Cannot set serial port speed to 19200" error. I dug around port init on the net (I'm not experienced on Linux) and found that CLOCAL and CREAD need to be set using tcsetattr(). In StandardSerialPortBackend::open() after the port is opened I added code to set those as well as turning HW flow control off. It works now. I can copy/paste if you wish. Bill

jzatarski commented 4 years ago

I have not had an issue with the serial port myself. Further, DTR and RTS are set for a reason, unfortunately there are RS232 SIO2PC's in existance that require these lines to be set or else they go into a second 1050-2-PC mode (particularly Atarimax SIO2PCs, IIRC). Which release did you grab that gave you these issues?

jzatarski commented 4 years ago

Also, these sorts of errors are often related to permissions, is it possible something else changed other than the changes you made in the source? What hardware are you using, x86/x86-64 or something else? And what device for SIO2PC? a USB version, or an RS232 adapter attached to an RS232 port?