Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What's the DEVICE_COMPANY_ID used for?

nrf_mesh_config_app.h at the generic level mesh example contains constants like DEVICE_COMPANY_ID, DEVICE_PRODUCT_ID and DEVICE_VERSION_ID.
I've expected those values to be included in the advertisement data, but oddly enough, they ain't, which leads to a few question:

  1. Are those constants actually used somewhere? (A quick grep lead to the suspicion that they are orphans.)
  2. Do those values need to be in sync with the settings page?
  3. What needs to be done to have those values included in the advertisement data?

Any clarification is welcome, thank you.
 

  • Hi BlueMike, 
    As defined in the spec, the composition data should include the information about product ID (PID) Version ID (VID). Please have a look at section 4.2.1.1 in the Mesh spec v1.0.1

    You can find that we use DEVICE_PRODUCT_ID and DEVICE_VERSION_ID in config_composition_data_get() in composition_data.c 

    2. I'm not sure which settings page you are talking about. 

    3. I assume you are talking about advertising data for Proxy role  ? It's not necessary to include such information. You may need to modify the adv_data_set() function in proxy.c to add your manufacturer data with the PID and VID in .

  • Hello Hung Bui,

    Thank you very much for the clarification. Second point was referring to the bootloader/DFU settings page.

Related