Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auxiliary Capabilities Request #454

Open
yuiopt opened this issue Mar 17, 2024 · 1 comment
Open

Auxiliary Capabilities Request #454

yuiopt opened this issue Mar 17, 2024 · 1 comment
Labels
enhancement New feature or request iso: virtual terminal Related to the ISO-11783:7 standard

Comments

@yuiopt
Copy link

yuiopt commented Mar 17, 2024

Hi,
I searched the source, found out that the "Auxiliary Capabilities Request" was not implemented , and I am confused about the protocol response describing "Number of Instances: Indicates the number of input/function instances where the described
Function attribute and Assigned attribute are the same". I'd like to contribute this part, can anyone explain how to get the number of instances?

@yuiopt yuiopt added the enhancement New feature or request label Mar 17, 2024
@ad3154
Copy link
Member

ad3154 commented Mar 17, 2024

It's a bit confusing to me as well... I can see if I can find out more. But, if you're wanting to contribute the client side of this, then a complete understanding might not be strictly needed I guess, as if I was going to implement sending of the request and receiving of the reply, I'd probably just give that information verbatim to the consumer of the library and let them use it as they see fit?

Like, I'd probably pass them (in a callback or something) the values listed under J.7.14 bytes 3-n repeating in a const class, maybe something like

class AuxiliaryCapabilities
{
public:
    class SetInformation
    {
    public:
        std::uint8_t numberOfInstances;
        std::uint8_t functionAttribute;
        std::uint8_t assignedAttribute; 
    };
    NAME auxiliaryUnitNAME;
    std::vector<SetInformation> sets;
};

Could also use enums or something to clarify further, but I think that'd be the general idea?
Then the answer to "how to get the number of instances" is just "it's whatever the VT sends back to you" since the VT provides that based on the content of the other working sets' object pools.

@ad3154 ad3154 added the iso: virtual terminal Related to the ISO-11783:7 standard label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iso: virtual terminal Related to the ISO-11783:7 standard
Projects
None yet
Development

No branches or pull requests

2 participants