Skip to main content

No project description provided

Project description

User Guide

Install SUSI IoT

https://github.com/ADVANTECH-Corp/SUSI

  • ReleasePackage
  • Choice ARM or x86 Architecture
  • Choice Board Type
  • Un-Zip and Run Installation

On x86 Ubuntu

  • Docker File
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y pciutils && apt clean

RUN mkdir -p /opt/Advantech/susi/service/ && \
    mkdir -p /usr/lib/x86_64-linux-gnu && \
    mkdir -p /usr/lib/Advantech

CMD ["/bin/bash"]
  • Docker Build
docker build -t susiiot_x86:1 .
  • Docker Run
sudo docker run \
    -it \
    --name kengweisusiiotdemo \
    --privileged \
    --mount type=bind,source=/opt/Advantech/susi/service/,target=/opt/Advantech/susi/service/,readonly \
    --mount type=bind,source=/etc/Advantech/susi/service/,target=/etc/Advantech/susi/service/,readonly \
    --mount type=bind,source=/usr/lib/x86_64-linux-gnu/libjansson.so.4,target=/usr/lib/x86_64-linux-gnu/libjansson.so.4,readonly \
    --mount type=bind,source=/usr/lib/libjansson.so.4,target=/usr/lib/libjansson.so.4,readonly \
    --mount type=bind,source=/usr/lib/libjansson.so,target=/usr/lib/libjansson.so,readonly \
    --mount type=bind,source=/usr/lib/libSusiIoT.so,target=/usr/lib/libSusiIoT.so,readonly \
    --mount type=bind,source=/usr/lib/libSUSIDevice.so.1,target=/usr/lib/libSUSIDevice.so.1,readonly \
    --mount type=bind,source=/usr/lib/libSUSIDevice.so,target=/usr/lib/libSUSIDevice.so,readonly \
    --mount type=bind,source=/usr/lib/libSUSIAI.so.1,target=/usr/lib/libSUSIAI.so.1,readonly \
    --mount type=bind,source=/usr/lib/libSUSIAI.so,target=/usr/lib/libSUSIAI.so,readonly \
    --mount type=bind,source=/usr/lib/libSUSI-4.00.so.1,target=/usr/lib/libSUSI-4.00.so.1,readonly \
    --mount type=bind,source=/usr/lib/libSUSI-4.00.so,target=/usr/lib/libSUSI-4.00.so,readonly \
    --mount type=bind,source=/usr/lib/libSUSI-3.02.so.1,target=/usr/lib/libSUSI-3.02.so.1,readonly \
    --mount type=bind,source=/usr/lib/libSUSI-3.02.so,target=/usr/lib/libSUSI-3.02.so,readonly \
    --mount type=bind,source=/usr/lib/libEApi.so.1,target=/usr/lib/libEApi.so.1,readonly \
    --mount type=bind,source=/usr/lib/libEApi.so,target=/usr/lib/libEApi.so,readonly \
    --mount type=bind,source=/usr/lib/Advantech,target=/usr/lib/Advantech,readonly \
    -v /home/:/volume \
    susiiot_x86:1 \
    bash

On ARM Ubuntu

  • No need to extra build image.
  • Docker Run
sudo docker run \
        -it \
        --name susiiot_demo \
        --privileged \
        --mount type=bind,source=/lib/libSUSI-4.00.so,target=/lib/libSUSI-4.00.so,readonly \
        --mount type=bind,source=/lib/libSUSI-4.00.so.1,target=/lib/libSUSI-4.00.so.1,readonly \
        --mount type=bind,source=/lib/libSUSI-4.00.so.1.0.0,target=/lib/libSUSI-4.00.so.1.0.0,readonly \
        --mount type=bind,source=/lib/libjansson.a,target=/lib/libjansson.a,readonly \
        --mount type=bind,source=/lib/libjansson.so,target=/lib/libjansson.so,readonly \
        --mount type=bind,source=/lib/libjansson.so.4,target=/lib/libjansson.so.4,readonly \
        --mount type=bind,source=/lib/libjansson.so.4.11.0,target=/lib/libjansson.so.4.11.0,readonly \
        --mount type=bind,source=/lib/libSusiIoT.so,target=/lib/libSusiIoT.so,readonly \
        --mount type=bind,source=/lib/libSusiIoT.so.1.0.0,target=/lib/libSusiIoT.so.1.0.0,readonly \
        --mount type=bind,source=/usr/lib/Advantech/,target=/usr/lib/Advantech/,readonly \
        -v /home/:/volume \
        ubuntu:20.04 \
        /bin/bash

Install PyPI package : advantech.edge

sudo pip3 install advantech_edge

Get Demo Code

git clone https://github.com/Advantech-EdgeSync/advantechiot.git
cd advantechiot/tests

In the Container

python3 -m unittest -v test_advantech_edge

In the Host

sudo python3 -m unittest -v test_advantech_edge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

advantech_edgesync_edge-0.0.0a1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

advantech_edgesync_edge-0.0.0a1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file advantech_edgesync_edge-0.0.0a1.tar.gz.

File metadata

File hashes

Hashes for advantech_edgesync_edge-0.0.0a1.tar.gz
Algorithm Hash digest
SHA256 afff167bf3cba15d1b399f7bd1d10d674734291d8fd2a76e17af9320f71849d5
MD5 4abd5b77ea207c8eda7c48315123a786
BLAKE2b-256 cd62e6ee1c38cb43b8de8555554fafcf6274cbb96f82732b7f978ec5055e39d0

See more details on using hashes here.

File details

Details for the file advantech_edgesync_edge-0.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for advantech_edgesync_edge-0.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c1ec10a484b1a01883c0a1c9b8fe38019ccd914b1a11ddafa6b61700b3f083
MD5 b11a834131d7dc485a1dee0ca5b9cdf2
BLAKE2b-256 c1c175e6d08e99af2d1f458df12a6827ad6e0495b4e9f3d1c9d1c13ea97b2359

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page