Skip to content

Added broadcast for (extended) accessory commands#445

Open
reinder wants to merge 2 commits into
DCC-EX:masterfrom
reinder:add-accessory-broadcast
Open

Added broadcast for (extended) accessory commands#445
reinder wants to merge 2 commits into
DCC-EX:masterfrom
reinder:add-accessory-broadcast

Conversation

@reinder

@reinder reinder commented Mar 28, 2025

Copy link
Copy Markdown

This PR adds broadcast commands <y a ...> for accessory and <y A ...> for extended accessory. Similar to the <l ...> command for engines/locomotives.

Without these broadcasts it is impossible to track these accessory command when multiple clients are involved.

Closes #444

@Asbelos

Asbelos commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

This or introduces a pervasive change to the standard parsing algorithms which treat letters after the opcode as uppercase regardless of the case used. Thus the client side parsers can't distinguish between <y a and <y A.

It's important to consider the wider implications before implementing an apparently simple modification.

@Asbelos Asbelos closed this Mar 29, 2025
@Asbelos Asbelos reopened this Mar 29, 2025
@Asbelos

Asbelos commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

Didn't mean to close this...
But requires further consideration.

@reinder

reinder commented Mar 29, 2025

Copy link
Copy Markdown
Author

This or introduces a pervasive change to the standard parsing algorithms which treat letters after the opcode as uppercase regardless of the case used. Thus the client side parsers can't distinguish between <y a and <y A.

Sorry, I wasn't aware of that, we can change the A to a E for extended. I choose to use one opcode, because there aren't many opcodes left.

…s uppercase.

Extended accessory now uses an E instead of an A.

@Asbelos Asbelos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my friend request on discord (ukbloke) where we can discuss more easily.

@reinder

reinder commented Mar 29, 2025

Copy link
Copy Markdown
Author

We've made contact on Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add broadcast event for accessory control

2 participants