microserver HOWTO timeservice patch

Gary E. Miller gem at rellim.com
Wed Jun 8 18:23:35 UTC 2016


Yo Frank!

On Wed, 8 Jun 2016 14:18:05 -0400
Frank Nicholas <frank at nicholasfamilycentral.com> wrote:

> > On Jun 8, 2016, at 2:13 PM, Gary E. Miller <gem at rellim.com> wrote:
> > 
> > 	
> > +		# Make sure the UART device is in a good state
> > +		stty -F /dev/gpsd0 raw 9600 cs8 clocal -cstopb
> > 
> > This assumes the GPS is at 9600 baud, I usually up the speed for
> > better performance, 9600 is marginal.  
> > 
> > I'd just remove the stty totally, let gpsd do its job and auto
> > baud.  
> 
> The ‘stty’ line above is from Adafruit’s “how to” page.  For the chip
> on the Adafruit Hat, the above ‘stty’ is REQUIRED (not necessarily
> the speed)), or you will not get reliable output from a ‘cat’
> statement.

Maybe then the script should have the speed as a variable.  And explain
the usage.  Not everyone is using the Adafruit.

I just set the port to raw:

    # stty speed 115200 raw < /dev/ttyXX

> I fought with logic level converters for days (weeks?) until I
> realized that I had to properly set the device with ‘stty’ to get
> sane tty output. I was trying to fix hardware, when it was the
> hardware...

Ouch....

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20160608/cb04049f/attachment.bin>


More information about the devel mailing list