Skip to content
cowlum edited this page Jan 27, 2020 · 8 revisions

Welcome to the Midnite_NMEA wiki!

GPSD

midnite@raspberrypi:/python_scripts/nmeahp33a $ sudo systemctl stop gpsd.socket midnite@raspberrypi:/python_scripts/nmeahp33a $ sudo netstat -apn | grep 2947 midnite@raspberrypi:/python_scripts/nmeahp33a $ sudo systemctl disable gpsd.socket midnite@raspberrypi:/python_scripts/nmeahp33a $ sudo gpsd /dev/gps -F /var/run/gpsd.sock midnite@raspberrypi:~/python_scripts/nmeahp33a $ sudo netstat -apn | grep 2947

SYSTEMD restart intervals on failure

[Service] Restart=always StartLimitInterval=90 StartLimitBurst=3

Enable and Disable overlay

http://wiki.glidernet.org/wiki:prevent-sd-card-corruption

check read only

awk '{print $7}' /sys/block/mmcblk0/stat

Preform a few more hardening steps

https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79

TODO Ansible

@reboot sudo stty -F /dev/hp33a 38400 @reboot sudo stty -F /dev/vhf 4800

add 99-perm udev rules change ownership on ttyusb1

TCP to serial https://techtinkering.com/2013/04/02/connecting-to-a-remote-serial-port-over-tcpip/

PYSERIAL Serial<id=0xa81c10, open=False>(port='COM1', baudrate=19200, bytesize=8, parity='N', ˓→stopbits=1, timeout=None, xonxoff=0, rtscts=0)

3.1.1 Native ports class serial.Serial init(port=None, baudrate=9600, bytesize=EIGHTBITS, parity=PARITY_NONE, stopbits=STOPBITS_ONE, timeout=None, xonxoff=False, rtscts=False, write_timeout=None, dsrdtr=False, inter_byte_timeout=None, exclusive=None) Parameters • port – Device name or None. • baudrate (int) – Baud rate such as 9600 or 115200 etc. • bytesize – Number of data bits. Possible values: FIVEBITS, SIXBITS, SEVENBITS, EIGHTBITS • parity – Enable parity checking. Possible values: PARITY_NONE, PARITY_EVEN, PARITY_ODD PARITY_MARK, PARITY_SPACE • stopbits – Number of stop bits. Possible values: STOPBITS_ONE, STOPBITS_ONE_POINT_FIVE, STOPBITS_TWO • timeout (float) – Set a read timeout value. • xonxoff (bool) – Enable software flow control. • rtscts (bool) – Enable hardware (RTS/CTS) flow control. • dsrdtr (bool) – Enable hardware (DSR/DTR) flow control. • write_timeout (float) – Set a write timeout value. • inter_byte_timeout (float) – Inter-character timeout, None to disable (default).

NMEA requires Baud rate 4800 Data bits 8 (d7 = 0) Parity None Stop bits One

Clone this wiki locally