Skip to content

[TODO] Implement a way to make a MIDI 2 device unavailable to clients until all discovery has been completed #818

@Psychlist1972

Description

@Psychlist1972

Upon connection, our service logic starts with the Group Terminal Blocks to create the MIDI 1 ports for a device. This way, because Function Blocks are optional, we have usable MIDI 1.0 ports.

Then we initiate discovery and protocol negotiation. After several seconds, when we receive all function blocks from the device, we recreate MIDI 1.0 ports based on the new names and enabled/disabled state of the function blocks.

This results in a period of 5-20 seconds, depending on the device, during which the ports for the device churn.

It would require rethinking how we do discovery and protocol negotiation in the service, but to avoid this churn, it would be beneficial to not show the device or its ports to apps until after negotiation/discovery has been completed. There will still be some churn later if the function blocks are updated, but that typically happens because of actions the customer took on the device.

Related #816

Metadata

Metadata

Assignees

Labels

area-service-or-api 🖥️Related to the Windows Service, core API, abstractions, etc.optimization ☄️Related to optimizing performance or other aspectstodo 🗃️Not really a bug just something we need to do that is useful to track in the open.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions