Documentation Update needed - Matter Instructions

The documents for setting up and using a Matter network require a change to account for new behavior of the chip tools.

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/matter/python_chip_controller_building.html

Building and installing

Before you can use the Python controller, you must compile it from the source on Linux (amd64 / aarch64) or macOS.

To ensure compatibility, build the Python CHIP controller and the Matter device from the same revision of the connectedhomeip repository.

To build and run the Python CHIP controller:

  1. Install all necessary packages and prepare the build system. For more details, see the Building Matter documentation:

    sudo apt-get update
    sudo apt-get upgrade
    
    sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev python3-pip unzip libgirepository1.0-dev libcairo2-dev bluez
    

    If the Python CHIP controller is built on a Raspberry Pi, install additional packages and reboot the device:

    sudo apt-get install pi-bluetooth
    sudo reboot
    
  2. Clone the Project CHIP repository:

    git clone https://github.com/project-chip/connectedhomeip.git
    
  3. Enter the connectedhomeip directory:

    cd connectedhomeip
    
  4. Initialize the git submodules:

    git submodule update --init
    
  5. Build and install the Python CHIP controller:

    scripts/build_python.sh -m platform        <------------  This command not requires the "  -i separate    " option to generate the env. See --help
    

    Note: To get more details about available build configurations, run the following command: scripts/build_python.sh --help


  • Hi,

    1) Can you verify that this ticket is regarding a documentation update and not an issue regarding building the CHIP controller?

    scripts/build_python.sh -m platform <------------ This command not requires the " -i separate " option to generate the env. See --help

    2) Could you clarify this? The red text is a bit ambiguous. What should the command to generate the environment be? "scripts/build_python.sh -m platform -i separate"?

    3) And can you verify that this new command built the controller and it worked as intended?

    If you could verify/correct these three items, then I'll create an internal ticket for updating the documentation.


    Kind regards,
    Andreas

Related