mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Rick Niles <fniles@mitre.org>
Cc: LKML Kernel <linux-kernel@vger.kernel.org>
Subject: Re: 26 ways to set a device driver variable from userland
Date: Wed, 19 Oct 2005 14:36:49 -0400	[thread overview]
Message-ID: <AACE0A4B-1D25-490A-860D-3C8B526D755F@mac.com> (raw)
In-Reply-To: <1129745264.25383.36.camel@gnupooh.mitre.org>

I'm CCing this to the LKML, because it's useful to the list in  
general and you're much more likely to get useful replies as well.

On Oct 19, 2005, at 14:07:44, Rick Niles wrote:
> I really appreciate the prompt and complete feedback.  While you're  
> at it perhaps you can answer another one for me.

Please don't top-post :-D.  Thanks!
http://www.zipworld.com.au/~akpm/linux/patches/stuff/top-posting.txt
http://catb.org/~esr/jargon/html/T/top-post.html

> I'm doing a low-level GPS receiver driver. This is NOT a serial  
> port kinda thing.  I have to close tracking loops and that sort of  
> thing at faster that 1ms.  I was planning on outputing the actual  
> tracking data (not the parameters I asked about earlier) through a  
> read of a device file.   However, your point about binary  
> structures applied to this as well.  Would you say I should not use  
> a device file at all?  Should the device file output ASCII instead  
> of binary (this brings up an eff. argument)
>
> Also, each GPS satellite transmits a standard binary data message  
> that I definitely should not mess with in the kernel (IMHO).   
> However, the GPS range is computed using the settings of the  
> oscillator and some counters off the correlator chip.  I planned on  
> making each channel a separate
> device file. Would it be OK to mix this GPS data message with the  
> corellator tracking information, or should I make two files?  Or  
> perhaps, depending on your answer to above you might say the  
> tracking info should be in sysfs.

Umm, hmm.  This really depends on a bunch of stuff I don't really  
understand all that well, but I'll try :-D.  The simplest way to do  
it would be to just stick each distinct value in a sysfs file and let  
your GPS software read each one and do what it wants from them.  That  
would make it really easy to shell-script with GPS coordinates too :- 
D.  Others on the list may have more informative/useful responses  
here, sorry!

Cheers,
Kyle Moffett

--
There are two ways of constructing a software design. One way is to  
make it so simple that there are obviously no deficiencies. And the  
other way is to make it so complicated that there are no obvious  
deficiencies.  The first method is far more difficult.
   -- C.A.R. Hoare



  parent reply	other threads:[~2005-10-19 18:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 17:00 Rick Niles
2005-10-19 17:34 ` Kyle Moffett
2005-10-19 18:35   ` Christopher Friesen
2005-10-19 23:32     ` Matt Helsley
2005-10-19 23:50     ` Neil Brown
2005-10-20  4:04     ` Greg KH
     [not found]   ` <1129745264.25383.36.camel@gnupooh.mitre.org>
2005-10-19 18:36     ` Kyle Moffett [this message]
2005-10-19 20:09 ` linux-os (Dick Johnson)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AACE0A4B-1D25-490A-860D-3C8B526D755F@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=fniles@mitre.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®