4. In terminal 2, switched the device mode from the default ("native":1) to NMEA ("native":0). Changing the "native" flag usually takes a couple of attempts (or maybe I didn't wait long enough). Sent characters are in red, the response is in green, and important parts are bolded and underlined in the response.
$ telnet localhost 4000
Trying ::1...
Connected to localhost.
Escape character is '^]'.
{"class":"VERSION","release":"3.19","rev":"3.19","proto_major":3,"proto_minor":14}
?DEVICE;
{"class":"DEVICE","path":"/dev/ttyUSB0","activated":"2020-02-27T11:15:45.149Z","native":0,"bps":4800,"parity":"N","stopbits":1,"cycle":1.00}
?DEVICE;
{"class":"DEVICE","path":"/dev/ttyUSB0","activated":"2020-02-27T11:15:45.149Z","native":0,"bps":4800,"parity":"N","stopbits":1,"cycle":1.00}
?DEVICE;
{"class":"DEVICE","path":"/dev/ttyUSB0","driver":"u-blox","subtype":"SW EXT CORE 3.01 (107900),HW 00080000,ROM BASE 3.01 (107888),FWVER=SPG 3.01,PROTVER=18.00,MOD=NEO-M8N-0,FIS=0xEF4015 (100111),G","activated":"2020-02-27T11:16:16.336Z","flags":1,"native":1,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00,"mincycle":0.25}
?DEVICE={"native":0}
{"class":"DEVICE","path":"/dev/ttyUSB0","driver":"u-blox","subtype":"SW EXT CORE 3.01 (107900),HW 00080000,ROM BASE 3.01 (107888),FWVER=SPG 3.01,PROTVER=18.00,MOD=NEO-M8N-0,FIS=0xEF4015 (100111),G","activated":"2020-02-27T11:16:48.331Z","flags":1,"native":1,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00,"mincycle":0.25}
?DEVICE={"native":0}
{"class":"DEVICE","path":"/dev/ttyUSB0","driver":"u-blox","subtype":"SW EXT CORE 3.01 (107900),HW 00080000,ROM BASE 3.01 (107888),FWVER=SPG 3.01,PROTVER=18.00,MOD=NEO-M8N-0,FIS=0xEF4015 (100111),G","activated":"2020-02-27T11:16:53.717Z","flags":1,"native":0,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00,"mincycle":0.25}
5. In terminal 3:
6. I repeated the above steps, but instead used `?DEVICE={"native":1}` to switch the receiver to binary mode rather than NMEA mode using terminal 2, and then I used `gpspipe -R -n 100 localhost:4000 > /tmp/binary.log` in terminal 3 to record to a second logfile.