cr / hx870

Python tools for the Standard Horizon HX870
GNU General Public License v3.0
21 stars 5 forks source link

Adding simulator stub #17

Closed cr closed 5 years ago

cr commented 5 years ago

Try hxtool --simulator devices. The simulator has a rudimentary command parser that supports config reads in CP mode, and it dumps fake NMEA sentences when in NMEA mode.

Implementation is rather elegantly as pseudo serial device, enabling full-stack testing with just few additional code.

cr commented 5 years ago

This is the groundwork for #13.