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 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 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 BLE output
Next, you would normally click the download icon and flash your Knowledge Pack to your hardware. However, since the free version of the SensiML Toolkit does not allow you to download Knowledge Packs, we will showcase how you normally would validate your Knowledge Pack running on a device using the SensiML TestApp.