[LinuxPPS] : Re: [Bug 610] Generic NMEA GPS Receiver driver
w/PPS expects PPS after NMEA data (Udo van den Heuvel)
Rodolfo Giometti
giometti at enneenne.com
Wed Oct 31 10:20:12 CET 2007
On Wed, Oct 31, 2007 at 09:30:08AM +1100, Cirilo Bernardo wrote:
> > Ok, thanks. So I put this in /etc/udev/rules.d/pps.rules.
> > How can I test this besides by rebooting?
>
> 1. unload the module for the PPS source
> 2. unload the linuxpps module
> 3. remove your symlinks
> 4. kill -SIGHUP `pidof udevd`
> 5. load the linuxpps module
> 6. load the module for the PPS source
>
> > And how can I make a simple rule that will *only* make a
> > /dev/gps0 -> /dev/ttyS0 because we have a GPS on that port?
> > Of course I can add a link to /etc/udev/devices but what would
> > be the udev rules method?
>
> I can't answer that one because I don't know how to tell if there
> is a GPS on ttyS0. You can schedule a script by using the
> RUN= parameter in udev, but it is the script that will need to
> determine if ttyS0 is a GPS and create the link using 'ln -s'.
I think this is not realistic at all. You are trying to solve a very
hard problem. Serial ports are not USB ones, the user must provide
some informations to the system (think about ISA and PCI boards :).
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
More information about the LinuxPPS
mailing list