Generating a Knowledge Pack¶
In the Download Model tab we are going to generate a SensiML Knowledge Pack. A Knowledge Pack takes the event detection model you generated in the pipeline and transforms it into a binary or library file that can be run on your hardware device at the edge. Once the Knowledge Pack is on your hardware device, it starts outputting classification IDs that correspond to your events of interest.
Select the model you want to use from the list
Next, we are going to select our target hardware that we will want to flash our Knowledge Pack to. Let’s look at a screenshot and dive a little deeper.
SensiML Knowledge Packs are not locked to any specific hardware platform. This feature allows you to choose the platform where you will deploy your Knowledge Pack.
Select HW platform
If using SensorTile select STMicro SensorTile <latest version>
If using a QuickAI select QuickLogic S3 AI Merced <latest-version>
If using a QuickFeather select QuickFeather <latest-version>
If using a Nordic Thingy select Nordic Thingy 52 2.1
Select the Data Source, this is the Sensor Configuration we set inside the DCL
If using SensorTile select Sensor 1
If using a QuickAI select Sensor 1
If using a QuickFeather select Sensor 1
If using a Nordic Thingy select Motion (100hz)
We provide two formats for your Knowledge Pack: Binary and Library. The binary format will build a package that is ready to flash to your device and includes the predefined output methods listed in the widget (for our demo this will be BLE).
Set the Format to Binary
More on Library format: If you have your own application and want to integrate a Knowledge Pack to build application specific non-AI features (LEDS, GPIO, ADC, DAC), then download the library format. This allows you to make calls directly to the Knowledge Pack API from your application. We will not be going into this during the quick start guide, but if you want to know more about library files see the tutorial: Building a Knowledge Pack Library.
Output corresponds to how your events get broadcasted from the hardware device. BLE sends the events over Bluetooth Low Energy, LED will blink the LED light on the device a different color for each event, and serial allows you to plug your device into your PC over serial connection to send the events.
Select the output
If using SensorTile select BLE
If using a QuickAI select BLE
If using a QuickFeather select Simple Streaming
If using a Nordic Thingy select BLE
Your settings should look similar to the screenshots below:
Click Download to build your Knowledge Pack and download it to your computer