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

[net-diag] vendor name, model, and sw version TLVs #8898

Merged
merged 1 commit into from
May 3, 2023

Commits on May 1, 2023

  1. [net-diag] vendor name, model, and sw version TLVs

    This commit adds new Network Diagnostic TLVs for vendor name, vendor
    model and vendor software version. The TLVs follow similar format as
    the MeshCoP TLVs with the same name, i.e., all of them use UTF8
    strings as value with name and model limited to 32 characters, and
    software version to 16 characters.
    
    The values for these TLVs can be set at build-time using a set of
    newly added configs `OPENTHREAD_CONFIG_NET_DIAG_VENDOR_*`, or their
    equivalent CMake options (e.g., `OT_VENDOR_NAME`).
    
    It is recommended that these parameters are set at build time using
    the configs. This way they are stored as constant strings and won't
    consume RAM. However, for situations where the OT stack is integrated
    as a library into different projects/products, we can enable a
    feature for APIs to be added to set these strings at run-time. In
    this case, the `OPENTHREAD_CONFIG_NET_DIAG_VENDOR_*` are treated as
    the default values (used when OT stack is initialized).
    
    This commit also adds Thread Stack Version TLV which has a string
    value (up to 64 characters) and provides the version string from
    `otGetVersionString()`.
    
    This commit also adds CLI commands to get and set (when enabled) the
    vendor name, model, and sw version on device. Also adds a test case
    `test-020-net-diag-vendor-info.py`.
    abtink committed May 1, 2023
    Configuration menu
    Copy the full SHA
    9d658b6 View commit details
    Browse the repository at this point in the history