Skip to content

Read the number of available relays from the arduino #1

@NameOfTheDragon

Description

@NameOfTheDragon

Currently, the driver assumes there are 8 relays. It would be better to obtain this value from the Arduino firmware upon connecting.

This would require:

  • Adding a command to the Arduino protocol that allows the number of switches to be queried
  • Some way of configuring the Arduino sketch so that it knows what to report. This would probably have to be hard coded.
  • Adding a query in the ASCOM driver that reads the correct number of switches upon connection.
  • Adjusting other ASCOM driver code wherever it needs to perform range checking on the switch being accessed

See also: https://bitbucket.org/tigra-astronomy/arduino-sketch/issues/1/query-the-number-of-relays

Originally created at 07/04/2017 18:50:20 by Tim Long as a enhancement with severity major.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions