I'm trying to use gpsd together with
another application which only uses the PPS-informationen provided by the
LinuxPPS framework. Because the ldattach process creates a file descripter
pointing to my /dev/ttyS0 device, gpsd fails to get access:
~ # gpsd -n -N -D3 /dev/ttyS0
gpsd:INFO: launching (Version 3.4)
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate:
1
gpsd:INFO: stashing device /dev/ttyS0
at slot 0
gpsd:INFO: opening GPS data source type
2 at '/dev/ttyS0'
gpsd:ERROR: /dev/ttyS0 already opened
by another process
gpsd:ERROR: initial GPS device /dev/ttyS0
open failed
The reason for that is that the function
"fusercount" scans the /proc directory for any process having
/dev/ttyS0 open. I would disable the fusercount function for my setup now,
but I feel a bit uneasy doing so: Is there any drawback having the ldattach
process running on the same device as gpsd? BTW: I start ldattach this
way:
SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
280355
Vorstand: Dr. Robert Bauer (Vorsitzender) - Reinhard Bösl -
Markus Paschmann - Markus Vatter
Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger (Vorsitzender)