anszom / vtty

Virtual serial port driver for Linux
Other
69 stars 19 forks source link

baud rate on ttyV0 device #3

Closed deblauwetom closed 3 years ago

deblauwetom commented 3 years ago

Hello,

I was trying out your driver to use it with a gps using gpsd, and another serial device, so I can choose which data gets sent to a real serial device port. The baudrate of the serial device, in my case called /dev/ttyTHS1 is 9600 baud. So now I mirror the port into ttyV0 and ttyV1. If I let gpsd connect to the "fake" serial port ttyV0, it autodetects that V0 is 38400 baud. The original ttyTHS1 port is 9600 when I start the mirror program. How can I force ttyV0 to return 9600 baud?

Best regards

deblauwetom commented 3 years ago

Hi, it seems towork now, my gps device was in some weird state, but it works now after resetting. So seems to work ok with gpsd!