History

Regarding computer hardware I have had to hand in the last two years or so, things have been in flux, you might say. I have not had ready access to a proper non-work Linux desktop environment where I could happily run Docker and Python. This has meant that keeping my Pelican blog up to date has been rather difficult, and hence the content has somewhat languished.

I’m back to where I want to be now, having procured a new desktop machine quite capable of hosting a Docker environment effortlessly, so thought it was time to look once again at breathing life into this site.

Here follows a description of the new publishing process!

pi@astropi-dslr:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04a9:3145 Canon, Inc. EOS 450D
Bus 001 Device 004: ID 1546:01a8 U-Blox AG [u-blox 8]
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@astropi-dslr:~ $ dmesg | grep -i usb
[    0.106545] usbcore: registered new interface driver usbfs
[    0.106597] usbcore: registered new interface driver hub
[    0.106692] usbcore: registered new device driver usb
[    0.469467] usbcore: registered new interface driver r8152
[    0.469538] usbcore: registered new interface driver lan78xx
[    0.469593] usbcore: registered new interface driver smsc95xx
[    0.469937] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.473610] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.473625] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.473637] usb usb1: Product: xHCI Host Controller
[    0.473649] usb usb1: Manufacturer: Linux 4.19.97-v7l+ xhci-hcd
[    0.473661] usb usb1: SerialNumber: 0000:01:00.0
[    0.474203] hub 1-0:1.0: USB hub found
[    0.474786] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.474805] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.475167] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.475181] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.475193] usb usb2: Product: xHCI Host Controller
[    0.475204] usb usb2: Manufacturer: Linux 4.19.97-v7l+ xhci-hcd
[    0.475215] usb usb2: SerialNumber: 0000:01:00.0
[    0.475725] hub 2-0:1.0: USB hub found
[    0.477402] usbcore: registered new interface driver uas
[    0.477496] usbcore: registered new interface driver usb-storage
[    0.484356] usbcore: registered new interface driver usbhid
[    0.484365] usbhid: USB HID core driver
[    0.838035] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.020651] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.020666] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.020679] usb 1-1: Product: USB2.0 Hub
[    1.022945] hub 1-1:1.0: USB hub found
[    1.348081] usb 1-1.2: new high-speed USB device number 3 using xhci_hcd
[    1.482114] usb 1-1.2: New USB device found, idVendor=04a9, idProduct=3145, bcdDevice= 0.02
[    1.482132] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.482145] usb 1-1.2: Product: Canon Digital Camera
[    1.482157] usb 1-1.2: Manufacturer: Canon Inc.
[    1.798029] usb 1-1.1: new full-speed USB device number 4 using xhci_hcd
[    1.932515] usb 1-1.1: New USB device found, idVendor=1546, idProduct=01a8, bcdDevice= 2.01
[    1.932531] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.932543] usb 1-1.1: Product: u-blox GNSS receiver
[    1.932556] usb 1-1.1: Manufacturer: u-blox AG - www.u-blox.com
[    3.948791] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[    3.950554] usbcore: registered new interface driver cdc_acm
[    3.950565] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    4.109277] usbcore: registered new interface driver brcmfmac

Aha - usb 1-1.1 -> ttyACM0

pi@astropi-dslr:~ $ cat /dev/ttyACM0
$GNTXT,01,01,02,u-blox AG - www.u-blox.com*4E

$GNTXT,01,01,02,HW UBX-M80xx 00080000 *43

$GNTXT,01,01,02,ROM CORE 2.01 (75331) Oct 29 2013 13:28:17*4A

$GNTXT,01,01,02,PROTVER 15.00*01

$GNTXT,01,01,02,GNSS OTP:  GPS GLO, SEL:  GPS GLO*67

$GNTXT,01,01,02,ANTSUPERV=AC SD PDoS SR*3E

$GNTXT,01,01,02,ANTSTATUS=OK*25

$GNTXT,01,01,02,LLC FFFFFFFF-FFFFFFED-FFFFFFFF-FFFFFFFF-FFFFFF65*32

$GNRMC,113625.00,A,5332.26563,N,00022.97547,W,0.077,,160520,,,A*75

$GNVTG,,T,,M,0.077,N,0.142,K,A*3A

$GNGGA,113625.00,5332.26563,N,00022.97547,W,1,12,0.76,43.3,M,46.5,M,,*68

$GNGSA,A,3,29,31,25,26,18,21,14,12,02,,,,1.24,0.76,0.98*1F

$GNGSA,A,3,81,79,82,88,78,80,,,,,,,1.24,0.76,0.98*11

$GPGSV,4,1,13,02,14,037,12,04,14,326,18,05,09,070,15,09,00,356,*77

$GPGSV,4,2,13,12,08,103,20,14,10,230,23,16,09,283,,18,26,162,36*78

$GPGSV,4,3,13,21,25,171,36,25,36,106,35,26,41,286,36,29,73,077,37*7A

$GPGSV,4,4,13,31,62,242,37*4D
pi@astropi-dslr:~ $ sudo apt-get install gpsd gpsd-clients python-gps
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  gpsd gpsd-clients python-gps
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,552 kB of archives.
After this operation, 9,465 kB of additional disk space will be used.
Get:1 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf gpsd armhf 3.17-7 [248 kB]
Get:2 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf python-gps armhf 3.17-7 [98.6 kB]
Get:3 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf gpsd-clients armhf 3.17-7 [7,204 kB]
Fetched 7,552 kB in 8s (957 kB/s)
Selecting previously unselected package gpsd.
(Reading database ... 152934 files and directories currently installed.)
Preparing to unpack .../archives/gpsd_3.17-7_armhf.deb ...
Unpacking gpsd (3.17-7) ...
Selecting previously unselected package python-gps.
Preparing to unpack .../python-gps_3.17-7_armhf.deb ...
Unpacking python-gps (3.17-7) ...
Selecting previously unselected package gpsd-clients.
Preparing to unpack .../gpsd-clients_3.17-7_armhf.deb ...
Unpacking gpsd-clients (3.17-7) ...
Setting up python-gps (3.17-7) ...
Setting up gpsd (3.17-7) ...
Creating/updating gpsd user account...
Created symlink /etc/systemd/system/sockets.target.wants/gpsd.socket → /lib/systemd/system/gpsd.socket.
Setting up gpsd-clients (3.17-7) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u3+rpi1) ...
pi@astropi-dslr:~ $ sudo systemctl enable gpsd.socket
pi@astropi-dslr:~ $ sudo systemctl start gpsd.socket
pi@astropi-dslr:~ $ sudo systemctl status gpsd.socket
● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
   Loaded: loaded (/lib/systemd/system/gpsd.socket; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-16 12:44:26 BST; 46min ago
   Listen: /var/run/gpsd.sock (Stream)
           [::1]:2947 (Stream)
           127.0.0.1:2947 (Stream)
    Tasks: 0 (limit: 4915)
   Memory: 28.0K
   CGroup: /system.slice/gpsd.socket

May 16 12:44:26 astropi-dslr systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets.
pi@astropi-dslr:~ $ gpsmon

/dev/ttyACM0                  NMEA0183>
┌──────────────────────────────────────────────────────────────────────────────┐
│Time: 2020-05-16T12:45:49.000Z Lat:  53 32' 16.02882" Non:   0 22' 58.06277" W│
└───────────────────────────────── Cooked TPV ─────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ GNRMC GNVTG GNGGA GNGSA GPGSV GLGSV GNGLL                                    │
└───────────────────────────────── Sentences ──────────────────────────────────┘
┌──────────────────┐┌────────────────────────────┐┌────────────────────────────┐
│Ch PRN  Az El S/N ││Time:      124549.00        ││Time:      124549.00        │
│ 0   4 298 11   0 ││Latitude:    5332.27147 N   ││Latitude:  5332.27147       │
│ 1   5  42 16  29 ││Longitude:  00022.97713 W   ││Longitude: 00022.97713      │
│ 2   9 331  9   0 ││Speed:     0.031            ││Altitude:  38.1             │
│ 3  16 294 38  26 ││Course:                     ││Quality:   1   Sats: 12     │
│ 4  18 141 56  36 ││Status:    A       FAA: A   ││HDOP:      0.73             │
│ 5  20 148  1   0 ││MagVar:                     ││Geoid:     46.5             │
│ 6  21 156 57  36 │└─────────── RMC ────────────┘└─────────── GGA ────────────┘
│ 7  25 122  8  26 │┌────────────────────────────┐┌────────────────────────────┐
│ 8  26 277 72  30 ││Mode: A3 ...s: 5 16 18 21 2 ││UTC:           RMS:         │
│ 9  27 252 11  30 ││DOP: H=0.73  V=1.06  P=1.29 ││MAJ:           MIN:         │
│10  29  68 42  33 ││TOFF:  0.042827049          ││ORI:           LAT:         │
│11  31 204 38  36 ││PPS:                        ││LON:           ALT:         │
└────── GSV ───────┘└──────── GSA + PPS ─────────┘└─────────── GST ────────────┘
(52) $GNGLL,5332.27163,N,00022.97762,W,124548.00,A,A*60
(68) $GNRMC,124549.00,A,5332.27147,N,00022.97713,W,0.031,,160520,,,A*7A
(35) $GNVTG,,T,,M,0.031,N,0.057,K,A*3D
(74) $GNGGA,124549.00,5332.27147,N,00022.97713,W,1,12,0.73,38.1,M,46.5,M,,*6E
(60) $GNGSA,A,3,26,21,18,29,16,31,05,27,25,,,,1.29,0.73,1.06*12
(50) $GNGSA,A,3,80,81,73,79,,,,,,,,,1.29,0.73,1.06*1E
(66) $GPGSV,3,1,12,04,11,298,,05,16,042,29,09,09,331,,16,38,294,26*76
(68) $GPGSV,3,2,12,18,56,141,36,20,01,148,,21,57,156,36,25,08,122,26*72
(70) $GPGSV,3,3,12,26,72,277,30,27,11,252,30,29,42,068,33,31,38,204,36*70
(64) $GLGSV,3,1,09,65,14,015,,66,02,072,,72,08,334,,73,30,319,24*68
(68) $GLGSV,3,2,09,79,23,153,32,80,75,201,31,81,36,044,22,82,89,206,*6C
(29) $GLGSV,3,3,09,83,36,222,*50
(52) $GNGLL,5332.27147,N,00022.97713,W,124549.00,A,A*61

Done