Info module

The Info module provides the following device information through the configuration channel:

  • Highest ID of configuration channel listener

  • Board name

  • Hardware ID (HW ID)

The data provided by Info module is required by HID configurator for nRF Desktop to identify, discover, and configure the device.

Module events

Source Module

Input Event

This Module

Output Event

Sink Module

Source modules for config_event

config_event

info

Source modules for module_state_event

module_state_event

config_event

Sink modules for config_event

module_state_event

Sink modules for module_state_event

Note

See the Application overview for more information about the event-based communication in the nRF Desktop application and about how to read this table.

Configuration

The module selects the CONFIG_DESKTOP_HWID option to make sure that nRF Desktop Hardware ID utility is enabled. The utility uses Zephyr’s Hardware Information to obtain the hardware ID and selects the CONFIG_HWINFO Kconfig option to automatically enable the required driver.

The module is enabled with the same Kconfig option as the Configuration channel: CONFIG_DESKTOP_CONFIG_CHANNEL_ENABLE.

Implementation details

Providing the highest ID of the configuration channel listener is based on the number of elements in the config_channel_modules section. GEN_CONFIG_EVENT_HANDLERS adds an element to the section for every registered configuration channel listener.

The board name provided by the module through the Configuration channel is a part of the Zephyr board name (CONFIG_BOARD), ending with the predefined character (BOARD_NAME_SEPARATOR).