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

Try connecting to a simple module #20

Open
naokiiwakami opened this issue Mar 18, 2018 · 2 comments
Open

Try connecting to a simple module #20

naokiiwakami opened this issue Mar 18, 2018 · 2 comments
Assignees

Comments

@naokiiwakami
Copy link
Owner

Module description is such as follows. This module is simple enough to build on a breadboard.

{
    "node_type": "Module",
    "model_name": "a3.poc",
    "model_id": 3,
    "component_number": 0,
    "channel": "can",
    "child_nodes": [{
        "node_type": "Knob",
        "node_name": "LED",
        "component_number": 1,
        "max_value": 255
    }, {
        "node_type": "Switch",
        "node_name": "Color",
        "component_number": 2,
        "options": [ "red", "green", "blue" ],
        "initial_value": 0
    }]
}
@naokiiwakami
Copy link
Owner Author

Instance descriptor:

instance_descriptor = {
    model_id: 3,
    instance_id: 0,
    components: [
        0, // module value, usually meaningless
        128,
        1
    ]
};

@naokiiwakami
Copy link
Owner Author

struct instance_descriptor {
  uint16_t model_id;
  uint16_t instance_id;
  uint16_t components[];
};

@naokiiwakami naokiiwakami self-assigned this Mar 21, 2018
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

No branches or pull requests

1 participant