harp-tech / protocol

Description of the Harp protocol.
https://harp-tech.org/protocol/BinaryProtocol-8bit.html
MIT License
3 stars 5 forks source link

Clarify `Connected` behavior #34

Open bruno-f-cruz opened 5 months ago

bruno-f-cruz commented 5 months ago

This PR partially addresses issue #14 by explicitly stating what is the expected definition of connected between device and host.

Since the harp protocol can be implemented on top of distinct transport layers, we simply define that each transport layer/implementation is responsible for defining its own way to make sure that the connection is alive. We suggest that for USB connections, the DTR pin can be leveraged.

The immediate implication of this decision is that the C# Bonsai client will set this DTR flag high by default so that devices that can leverage this behavior will now be able to do so.