RISC OS Pyromaniac serial connection to GPS receiver

by gerph
macOS ◆ xterm-256color ◆ fish 575 views

RISC OS Pyromaniac now has a OS_SerialOp (SerialV) interface which is provided by different implementations. There is a simple ‘null’ implementation, that does nothing, an ‘file’ implementation which reads or writes a file on disc, and an implementation that uses the PySerial abstraction to talk to real devices.

In this example it is configured to use a remotely connected GPS (a USB serial GPS mouse which is connected to a completely different machine, over an RFC2217 connection). The short BASIC program uses OS_SerialOp just as you would on RISC OS Classic to read bytes, and prints them out.

Here we have a GPS fix with 7 satellites reporting a location of 52˚10.0394’ N 0˚07.2370 E, with an altitude of 70.9 metres above sea level. And more importantly, it’s a serial port, looking just like a serial port.