gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] Blocked device when using ldattach


From: Marc Sowen
Subject: [gpsd-users] Blocked device when using ldattach
Date: Tue, 31 Jan 2012 11:18:40 +0100

Hi,

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:

ldattach PPS /dev/ttyS0

Thanks for your help!

Regards,

Marc Sowen
Research Engineer

--
SICK AG
Merkurring 20
22143 Hamburg, Germany
Phone: +49 40 611680-215
Mobile: +49 172 4248462
Fax: +49 40 611680-202
E-Mail: address@hidden

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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]