跳至主要内容

Overview

  • This section will cover how to install the WEDA Device Library for different programming languages.
  • It will also explain the system information that can be controlled and retrieved using the WEDA Device Library.
  • Detailed usage will be explained in the following sections.

Dependencies

WEDA Device Library requires the following software dependencies. Please verify with your sales representative if your hardware supports them. In principle, they should be pre-installed on your system. If you need to reinstall them, please visit the website below:

Software dependencies

Get the library

Containers

We provide base containers that allow users to operate in a containerized environment. You can search for these containers on the Advantech Container Catalog: EdgeSync Base Container.

For a better understanding of the containerized usage and development workflow experience, please refer to our Use Cases article.

Python

pip install advantech-edge

#or

pip3 install advantech-edge

Require Python 3.8 aborve, View on Advantech-Edge Pypi

.Net C#

dotnet add package Advantech.Edge

Require .Net8 / .Net9, View on Advantech.Edge NuGet

Confirm Successful Installation

In Shell :

  1. Execute this command to check package installation of the Device Library : pip show advantech-edge

    ubuntu@nvepcr7300a1:~$ pip show advantech-edge
    Name: advantech-edge
    Version: 1.0.0
    Summary: None
    Home-page: None
    Author: Advantech Co., Ltd.
    Author-email:
    License: None
    Location: /usr/local/lib/python3.8/dist-packages
    Requires: setuptools
    Required-by:
    ubuntu@nvepcr7300a1:~$
  2. Run the Python 3 interpreter with sudo privileges : sudo python3

    ubuntu@nvepcr7300a1:~$ sudo python3
    Python 3.8.10 (default, Mar 18 2025, 20:04:55)
    [GCC 9.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>

In Python 3 interpreter CLI:

  1. Run this script to verify initialization. If no errors are reported, the Device Library is successfully installed.

    import advantech.edge
    device = advantech.edge.Device()

    Execution result :

    ubuntu@nvepcr7300a1:~$ sudo python3
    Python 3.8.10 (default, Mar 18 2025, 20:04:55)
    [GCC 9.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import advantech.edge
    >>> device = advantech.edge.Deivce()
    d_name : libDiskInfo.so
    d_name : libSUSIDevice.so
    d_name : libSUSIDrv.so
    libDiskInfo.so
    libSUSIDevice.so
    libSUSIDrv.so
    >>>