Build Procedure For Direct Internet Connectivity (DIC)
Build command with DIC
To enable DIC functionality use the
enable_dic=true
flag.
Here is an example to build the lighting-app with DIC feature for the EFR32MG24 + 9116
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/rs9116_DIC_light BRD418XX disable_lcd=true use_external_flash=false chip_enable_wifi_ipv4=true enable_dic=true chip_enable_ble_rs911x=true --wifi rs9116
Here is an example to build the lighting-app with DIC feature for the EFR32MG24 + WF200
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/wf200_DIC_light BRD418XX chip_build_libshell=false chip_enable_wifi_ipv4=true enable_dic=true --wifi wf200
Here is an example to build the lighting-app with DIC for the EFR32MG24 + 917 NCP
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/siwx917_DIC_light BRD418XX disable_lcd=true use_external_flash=false chip_enable_wifi_ipv4=true enable_dic=true chip_enable_ble_rs911x=true --wifi SiWx917
Here is an example to build the lighting-app with DIC for the SiWx917 SoC
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/siwx917_DIC_light BRD4325B enable_dic=true chip_enable_wifi_ipv4=true
Build command with DIC AWS OTA
To enable DIC AWS OTA functionality use the
aws_sdk_ota=true
flag.
Here is an example to build the lighting-app with DIC feature for the EFR32MG24 + 9116
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/rs9116_DIC_light BRD418XX disable_lcd=true use_external_flash=false chip_enable_wifi_ipv4=true enable_dic=true aws_sdk_ota=true chip_enable_ble_rs911x=true --wifi rs9116
Here is an example to build the lighting-app with DIC feature for the EFR32MG24 + WF200
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/wf200_DIC_light BRD418XX chip_build_libshell=false chip_enable_wifi_ipv4=true enable_dic=true aws_sdk_ota=true --wifi wf200
Here is an example to build the lighting-app with DIC for the EFR32MG24 + 917 NCP
./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/siwx917_DIC_light BRD418XX disable_lcd=true use_external_flash=false chip_enable_wifi_ipv4=true enable_dic=true aws_sdk_ota=true chip_enable_ble_rs911x=true --wifi SiWx917
Compile using new/different certificates
Two devices should not use the same Client ID. To use a different Client ID for your second connection do the following:
If using AWS, Change the following file
examples/platform/silabs/DIC/matter_abs_interface/src/dic_nvm_cert.cpp
under#if USE_AWS
provide device_certificate and device_key with your device cert and device key. (There is no need to change the CA certificate.), Refer Openssl Certificate Creation
provide
DIC_SERVER_HOST
with your hostnameprovide
DIC_CLIENT_ID
macro value with your Client ID inexamples/platform/silabs/DIC/matter_abs_interface/include/dic_config.h
file
The preferred certificate type to use in the application is ECDSA.
If using mosquitto, change the following files
matter/examples/platform/silabs/DIC/matter_abs_interface/src/dic_nvm_cert.cpp
andexamples/platform/silabs/DIC/matter_abs_interface/include/dic_config.h
enableUSE_MOSQUITTO
and disableUSE_AWS
.Under
#if USE_MOSQUITTO
provide DIC_CLIENT_ID macro value with your Client ID
provide
DIC_SERVER_HOST
with your hostnameprovide ca_certificate, device_certificate and device_key with your ca_certificate, device cert and device key. Refer Openssl Certificate Creation
provide mosquitto client user in
DIC_CLIENT_USER
and password imDIC_CLIENT_PASS
inexamples/platform/silabs/DIC/matter_abs_interface/include/dic_config.h
file.
The preferred certificate type to use in the application is ECDSA.