Skip to content

Transition to binary protocol #43

Open

Description

@waveform80

The string protocol is nice and easy to debug, but there's enough variability in parsing time to make it a problem, at least when dealing with an array of Pi 1's (Pi 2's parsing time is almost constantly 0.2ms, Pi 1's varies between 0.4ms and 1.2ms which is enough to warrant refactoring the protocol).

The concept of the protocol can probably remain the same (a separated protocol module with class decorators used to handle parsing and construction of messages), but messages will be strictly binary. This will probably restrict data-types for parameters to something simple to handle (32-bit integer and 64-bit float only ... perhaps a one-byte for a bool). This might be a good opportunity to integrate #33 as well (make part of the header a variable length list of units?).

Activity

  1. self-assigned this
    on Sep 2, 2015
  2. added this to the 0.5 milestone on Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions