I have set up Kplex on my Kubuntu box to manage GPS & AIS data to all my applications. One application is under Wine (WinlinkExpress) and has a serial com port only input to read the GPS data. I can read just fine the GPS data without Kplex but I need to use Kplex.
What I did:
Configured Kplex.conf like this:
[serial]
# GPS & AIS
from USB0
filename=/dev/AIS
direction=in
baud=38400
[pty]
# Virtual serial port for Linux Wine
direction=out
baud=38400
mode=master
filename=/home/sergio/.virtual_com
group=dialout
$ ls -l ~/.wine/dosdevices/
lrwxrwxrwx 1 sergio sergio 10 Jan 12 20:08 c: -> ../drive_c
lrwxrwxrwx 1 sergio sergio 25 Jan 16 18:09 com1 -> /home/sergio/.virtual_com
And
$ ls -la /home/sergio/.virtual_com
lrwxrwxrwx 1 root root 10 Jan 16 18:07 /home/sergio/.virtual_com -> /dev/pts/0
So all ok...no, not really ! Running putty in Wine, I get a 'COM1 Access denied' error trying to connect unless I change the permissions from:
crw--w---- 1 root dialout 136, 0 Jan 16 18:27 /dev/pts/0
to:
crw-rw-rw- 1 root dialout 136, 0 Jan 16 18:07 /dev/pts/0
Obviously, I need someone to help me understand why access to com1 is denied. Changing the permissions on /dev/pts/0 is not persistent when Kplex service is restarted.
$ groups
sergio adm tty dialout sudo... etc
Thanks