This repository contains the COLLECTION build system for the MCCI® Model 4831 Outdoor Environment Sensor production sketch.
- Supported OS: Linux (Ubuntu 18.04 or later recommended)
Follow the steps below to build the firmware:
-
Open Git Bash and clone this repository with submodules by executing the following command:
git clone --recursive git@github.com:mcci-catena/COLLECTION-model4831.git
-
build-with-cli.shscript usesarduino-clito generate firmware builds for thecatena4618m201_simplesketch. Use the following command to build:-
to build with the test-signing key (
--test):./build-with-cli.sh --test --verbose
-
To perform a clean build:
./build-with-cli.sh --test --verbose --clean
-
-
The firmware can be built with various parameters. The following table shows available parameters to build the firmware.
-
Clock setting (
--clock):Value Frequency 22.097 MHz (no USB, least power) 44.194 MHz (no USB) 1616 MHz 2424 MHz 3232 MHz (most power) -
Available Serial Configuration (
--serial):Option Description usbUSB serial hwGeneric serial noneNo serial bothUSB + generic serial -
Available Regions (
--region):Region Frequency Plan us915North America 915 MHz eu868Europe 868 MHz au915Australia 915 MHz as923Asia 923 MHz as923jpJapan 923 MHz kr920Korea 920 MHz in866India 866 MHz projcfgUses arduino-lmic/project_config/lmic_project_config_preconditions.h -
Available Networks (
--network):Option Network ttnThe Things Network actilityActility ThingsPark heliumHelium machineqmachineQ senetSenet senraSenra swisscomSwisscom chirpstackChirpStack genericGeneric LoRaWAN Network projcfgUses arduino-lmic/project_config/lmic_project_config_preconditions.h -
Available Subbands (
--subband):Option Channels Notes defaultAll Works everywhere sb0ch 0–7 US / AU / CN470 sb1ch 8–15 US / AU / CN470 sb2ch 16–23 US / AU / CN470 sb3ch 24–31 US / AU / CN470 sb4ch 32–39 US / AU / CN470 sb5ch 40–47 US / AU / CN470 sb6ch 48–55 US / AU / CN470 sb7ch 56–63 US / AU / CN470 sb8ch 64–71 CN470 only sb9ch 72–79 CN470 only sb10ch 80–87 CN470 only sb11ch 88–95 CN470 only
-
-
Some example build commands:
-
to build for 2 MHz clock and generic serial, for Europe, with the test-signing key:
./build-with-cli.sh --clock=2 --serial=hw --region=eu868 --test --verbose
-
to build for 32 MHz clock and USB serial, for India, with the test-signing key:
./build-with-cli.sh --clock=32 --serial=usb --region=in866 --test --verbose
-
to build for multiple regions and multiple networks with a single command:
./build-with-cli.sh --test --verbose && ./build-with-cli.sh --test --verbose --region=au915 --network=ttn && ./build-with-cli.sh --test --verbose --region=eu868 --network=ttn
-
-
After a successful build, firmware artifacts are generated in
COLLECTION-model4831/build. Use the commandls -CF buildto verify the build files. Example usage given below.$ ls -CF build model4831-v0.5.0-ttn-us915-default-clk16-serusb-mcci_test/ model4831-v0.5.0-ttn-au915-default-clk16-serusb-mcci_test/ model4831-v0.5.0-ttn-eu868-default-clk16-serusb-mcci_test/ $
- The directory names are structured in a consistent way to reflect the build configuration:
outputname-version-network-region-subband-clock-serial-codekey
- The directory names are structured in a consistent way to reflect the build configuration:
-
The build directory includes two subdirectories.
boot, which contains the bootloader build directory.ide, which contains the application build directory.
-
The
idedirectory contains a number of files. The important files have the build configuration as part of their name.Name Description catena4618m201_simple-bootloader-release.dfu The combined bootloader and app, in DfuSe format. catena4618m201_simple-bootloader-release.hex The combined bootloader and app, in Intel hex format. catena4618m201_simple.ino-release.bin The signed application in binary format (used for uploads with the SPT) catena4618m201_simple.ino-release.dfu The signed application in DFU format. catena4618m201_simple.ino-release.elf The signed application in ELF format. catena4618m201_simple.ino-release.hex The signed application in Intel hex format. McciBootloader_46xx-release.bin The signed bootloader in binary format. McciBootloader_46xx-release.elf The signed bootloader in ELF format. McciBootloader_46xx-release.hex The signed bootloader in Intel hex format.
MCCI and MCCI Catena are registered trademarks of MCCI Corporation. LoRa is a registered trademark of Semtech Corporation. LoRaWAN is a registered trademark of the LoRa Alliance.
This document and the contents of this repository are copyright 2021-2026, MCCI Corporation.
This repository is released under the MIT license. Commercial licenses are also available from MCCI Corporation.
MCCI invests time and resources providing this open source code, please support MCCI and open-source hardware by purchasing products from MCCI, Adafruit and other open-source hardware/software vendors!
For information about MCCI's products, please visit store.mcci.com.