Add PdM anomaly detection demo
cover Add PdM anomaly detection demo
Add PdM (Predictive Maintenance) demo for anomaly detection, including building the demo from the top-level Makefile
Hongmei Gou (6):
packagegroup-arago-tisdk-qte: add qtcharts-examples packagegroup-arago-qte-toolchain-target: add qtcharts-mkspecs and
qtcharts-dev
pdm-anomaly-detection: predictive maintenance demo for anomaly
detection
packagegroup-arago-tisdk-addons*: add pdm-anomaly-detection
arago-source-ipk: include source for pdm-anomaly-detection
ti-tisdk-makefile: add pdm-anomaly-detection
.../conf/distro/include/arago-source-ipk.inc | 3 +++ ...ackagegroup-arago-tisdk-addons-sdk-host.bb | 21 ++++++++++++++- ...kagegroup-arago-tisdk-addons-sdk-target.bb | 6 ++++- .../packagegroup-arago-tisdk-addons.bb | 6 ++++- .../packagegroup-arago-tisdk-qte.bb | 3 ++- .../Makefile_pdm-anomaly-detection | 24 +++++++++++++++++ .../ti-tisdk-makefile_1.0.bb | 7 ++++- .../pdm-anomaly-detection_git.bb | 26 +++++++++++++++++++ ...packagegroup-arago-qte-toolchain-target.bb | 4 ++- 9 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_pdm-anomaly-detection create mode 100644 meta-arago-extras/recipes-apps/pdm-anomaly-detection/pdm-anomaly-detection_git.bb
Signature · 1 line
2.17.1
PATCH 1/6 packagegroup-arago-tisdk-qte: add qtcharts-examples
--- .../recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb +2 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to add Qt embedded related packages" LICENSE = "MIT" -PR = "r20" +PR = "r21" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -24,6 +24,7 @@ QT5_DEMOS = "\ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland-examples', '', d)} \ qtwebkit-examples-examples \ qtserialport-examples \ + qtcharts-examples \ " #QT5_DEMOS_append_k3 = " qtwebkit-examples-examples"
Signature · 1 line
2.17.1
PATCH 2/6 packagegroup-arago-qte-toolchain-target: add qtcharts-mkspecs and qtcharts-dev
In reply to Hongmei Gou--- .../packagegroups/packagegroup-arago-qte-toolchain-target.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-qte-toolchain-target.bb +3 -1
@@ -1,7 +1,7 @@ DESCRIPTION = "Target packages for Qt Embedded SDK" LICENSE = "MIT" -PR = "r14" +PR = "r15" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -65,6 +65,8 @@ QT5_DEV = " \ qtwebkit-dev \ qtserialport-mkspecs \ qtserialport-dev \ + qtcharts-mkspecs \ + qtcharts-dev \ " #QT5_DEV_append_k3 = " \
Signature · 1 line
2.17.1
PATCH 3/6 pdm-anomaly-detection: predictive maintenance demo for anomaly detection
In reply to Hongmei Gou--- .../pdm-anomaly-detection_git.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-arago-extras/recipes-apps/pdm-anomaly-detection/pdm-anomaly-detection_git.bb
meta-arago-extras/recipes-apps/pdm-anomaly-detection/pdm-anomaly-detection_git.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "Predictive maintenance demo for anomaly detection using Recurrent Neural Network (RNN)" +LICENSE = "BSD-3-Clause & MIT & GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e88016d2cbc82d0d2efbb0865891e9d6" + +inherit qt-provider + +PV = "1.0" +PR = "r0" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/apps/pdm-anomaly-detection.git;protocol=git;branch=${BRANCH}" + +SRCREV = "832c4021de19998c7e47e94e1868943c9a145489" + +S = "${WORKDIR}/git" + +DEPENDS += "qtbase qtdeclarative qtcharts" + +do_install() { + install -d ${D}${datadir}/ti/examples/pdm + install -m 755 RnnPdmAnomalyDetection ${D}${datadir}/ti/examples/pdm + install -m 644 ${S}/coeff.bin ${D}${datadir}/ti/examples/pdm + install -m 644 ${S}/logs/* ${D}${datadir}/ti/examples/pdm +} + +FILES_${PN} += "${datadir}/ti/examples/pdm"
Signature · 1 line
2.17.1
PATCH 4/6 packagegroup-arago-tisdk-addons*: add pdm-anomaly-detection
In reply to Hongmei Gou--- ...ackagegroup-arago-tisdk-addons-sdk-host.bb | 21 ++++++++++++++++++- ...kagegroup-arago-tisdk-addons-sdk-target.bb | 6 +++++- .../packagegroup-arago-tisdk-addons.bb | 6 +++++- 3 files changed, 30 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-host.bb +20 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to install sources for additional utilities/demos for SDKs" LICENSE = "MIT" -PR = "r34" +PR = "r35" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -86,7 +86,26 @@ EXTRA_LIBS_append_keystone = " \ # gdbserverproxy-module-drv-src \ #" +EXTRA_PACKAGES = "" + +EXTRA_PACKAGES_append_omap-a15 = " \ + pdm-anomaly-detection-src \ +" + +EXTRA_PACKAGES_append_ti33x = " \ + pdm-anomaly-detection-src \ +" + +EXTRA_PACKAGES_append_ti43x = " \ + pdm-anomaly-detection-src \ +" + +EXTRA_PACKAGES_append_k3 = " \ + pdm-anomaly-detection-src \ +" + RDEPENDS_${PN} = "\ ${UTILS} \ ${EXTRA_LIBS} \ + ${EXTRA_PACKAGES} \ "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb +5 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to install headers and libraries related to addons into the SDK" LICENSE = "MIT" -PR = "r41" +PR = "r42" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -160,17 +160,21 @@ EXTRA_PACKAGES = "" EXTRA_PACKAGES_append_ti33x = " voxelsdk-dev \ arm-compute-library-dev \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection-dev \ " EXTRA_PACKAGES_append_ti43x = " voxelsdk-dev \ arm-compute-library-dev \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection-dev \ " EXTRA_PACKAGES_append_omap-a15 = " voxelsdk-dev \ arm-compute-library-dev \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection-dev \ " EXTRA_PACKAGES_append_k3 = " arm-compute-library-dev \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection-dev \ " IPCDEV = " \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +5 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to install additional utilities/demos for SDKs" LICENSE = "MIT" -PR = "r73" +PR = "r74" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -151,11 +151,13 @@ ARMNN_PACKAGES = "" EXTRA_PACKAGES_append_ti33x = " voxelsdk \ arm-compute-library \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection \ " EXTRA_PACKAGES_append_ti43x = " voxelsdk \ arm-compute-library \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection \ " EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
@@ -163,10 +165,12 @@ EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \ big-data-ipc-demo-linux-firmware \ arm-compute-library \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection \ " EXTRA_PACKAGES_append_k3 = " arm-compute-library \ ${ARMNN_PACKAGES} \ + pdm-anomaly-detection \ " EXTRA_PACKAGES_append_omap-a15 = " ti-ipc-examples-linux"
Signature · 1 line
2.17.1
PATCH 5/6 arago-source-ipk: include source for pdm-anomaly-detection
In reply to Hongmei Gou--- meta-arago-distro/conf/distro/include/arago-source-ipk.inc | 3 +++ 1 file changed, 3 insertions(+)
meta-arago-distro/conf/distro/include/arago-source-ipk.inc +3 -0
@@ -76,6 +76,9 @@ SRCIPK_INSTALL_DIR_pn-protection-relays-hmi = "example-applications/${PN}-${PV}" CREATE_SRCIPK_pn-mmwavegesture-hmi = "1" SRCIPK_INSTALL_DIR_pn-mmwavegesture-hmi = "example-applications/${PN}-${PV}" +CREATE_SRCIPK_pn-pdm-anomaly-detection = "1" +SRCIPK_INSTALL_DIR_pn-pdm-anomaly-detection = "example-applications/${PN}-${PV}" + CREATE_SRCIPK_pn-image-gallery = "1" SRCIPK_INSTALL_DIR_pn-image-gallery = "example-applications/${PN}"
Signature · 1 line
2.17.1
PATCH 6/6 ti-tisdk-makefile: add pdm-anomaly-detection
In reply to Hongmei Gou--- .../Makefile_pdm-anomaly-detection | 24 +++++++++++++++++++ .../ti-tisdk-makefile_1.0.bb | 7 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_pdm-anomaly-detection
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_pdm-anomaly-detection new file +24 -0
@@ -0,0 +1,24 @@ +# PdM Anomaly Detection build targets +pdm-anomaly-detection: + @echo ====================================== + @echo Building PdM Anomaly Detection Demo + @echo ====================================== + @cd example-applications; cd `find . -maxdepth 1 -name "*pdm-anomaly-detection*"`; make -f Makefile.build + +pdm-anomaly-detection_clean: + @echo ====================================== + @echo Building PdM Anomaly Detection Demo + @echo ====================================== + @cd example-applications; cd `find . -maxdepth 1 -name "*pdm-anomaly-detection*"`; make -f Makefile.build clean + +pdm-anomaly-detection_install: + @echo ========================================================= + @echo Installing PdM Anomaly Detection Demo - Release version + @echo ========================================================= + @cd example-applications; cd `find . -maxdepth 1 -name "*pdm-anomaly-detection*"`; make -f Makefile.build install + +pdm-anomaly-detection_install_debug: + @echo ======================================================= + @echo Installing PdM Anomaly Detection Demo - Debug version + @echo ======================================================= + @cd example-applications; cd `find . -maxdepth 1 -name "*pdm-anomaly-detection*"`; make -f Makefile.build install_debug
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb +6 -1
@@ -51,9 +51,10 @@ SRC_URI = "\ file://Makefile_barcode-roi \ file://Makefile_sysfw-image \ file://Makefile_mmwavegesture-hmi \ + file://Makefile_pdm-anomaly-detection \ " -PR = "r94" +PR = "r95" MAKEFILES_MATRIX_GUI = "matrix-gui-browser \ refresh-screen \
@@ -96,6 +97,7 @@ MAKEFILES_append_ti33x = " u-boot-spl \ barcode-roi \ uio-module-drv \ mmwavegesture-hmi \ + pdm-anomaly-detection \ " MAKEFILES_append_ti43x = " u-boot-spl \ ${QUICK_PLAYGROUND} \
@@ -110,6 +112,7 @@ MAKEFILES_append_ti43x = " u-boot-spl \ barcode-roi \ uio-module-drv \ mmwavegesture-hmi \ + pdm-anomaly-detection \ " # debugss-module-drv
@@ -132,6 +135,7 @@ MAKEFILES_append_omap-a15 = " u-boot-spl \ barcode-roi \ uio-module-drv \ mmwavegesture-hmi \ + pdm-anomaly-detection \ " MAKEFILES_append_omapl138 = " linux-dtbs \ u-boot-spl \
@@ -178,6 +182,7 @@ MAKEFILES_append_k3 = " u-boot-spl \ pru-icss \ sysfw-image \ mmwavegesture-hmi \ + pdm-anomaly-detection \ " # Use this to export kernel arch to ARCH
Signature · 1 line
2.17.1