Server and Client of PyIEC61850 based on mz-automation
a. Python 2.7 or higher
b. CMake 3.7.2 or higher
- wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
- tar zxvf cmake-3.7.2.tar.gz
- cd cmake-3.7.2
- ./bootstrap && make
- sudo make install
c. SWIG 4.0.0 or higher
- wget http://prdownloads.sourceforge.net/swig/swig-4.0.0.tar.gz
- tar xzf swig-4.0.0.tar.gz
- cd swig-4.0.0
- ./configure
- make
- sudo make install
- cd ~
- sudo apt update && upgrade
- git clone https://github.com/keyvdir/pyiec61850.git
- cd pyiec61850
- git clone https://github.com/mz-automation/libiec61850.git
- wget https://tls.mbed.org/download/mbedtls-2.16.0-apache.tgz
- tar zxvf mbedtls-2.16.0-apache.tgz
- mv mbedtls-2.16.0 libiec61850/third_party/mbedtls/mbedtls-2.16
- cd libiec61850
- cmake -DBUILD_PYTHON_BINDINGS=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 .
- make WITH_MBEDTLS=1
- cd ..
- python3 server.py and python3 client.py (different terminal window)
Data type for write, read, and other complete functions can be found in “libiec61850/pyiec61850/iec61850.py”. Please refer to the original website of IEC61850 for further information of the data types. https://libiec61850.com/api/modules.html