[LinuxPPS] : Re: [Bug 610] Generic NMEA GPS Receiverdriverw/PPS expects PPS after NMEA data (Udo van den Heuvel)

Rodolfo Giometti giometti at enneenne.com
Thu Nov 1 11:21:29 CET 2007


On Thu, Nov 01, 2007 at 08:02:10AM +1100, Cirilo Bernardo wrote:

>    Ciao Rodolfo,
> 
>      I agree, automatically creating a link to a device which is a GPS
>    is an impossible task.  I think any relationships should be in a
>    configuration file and a script should run at boot time.  Even then,
>    such a scheme is only useful if the devices are permanently connected.
>    If people unplug from one port and plug into another then the admin
>    has to remember to change the configuration file and somehow update

Yes.

>    links.  This is really the same problem as how do you know which
>    pps* device connects to which ttyS* device - whoever plugged in the
>    devices should know, but there is no guarantee you can match them.

I agree.

>    I noticed that the parent device name is put into the linuxpps
>    structure but even that will be of limited use - the board which I
>    am currently writing a driver for has a PPS which is not asserted on the
>    ttyS and the PPS driver has no way of knowing what the associated ttyS
>    is; this has to be determined by the admin.

The parent device name is meaningful only when the PPS device is
connected with ttyS*, if not this field should remain to NULL.

When you work with serial port you cannot easily have any kind of
automagic setup...

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