Skip to content

epcpower/st

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPyQ github actions github source

EPyQ screenshot

About

EPyQ is a cross-platform PC service tool for EPC Power power conversion modules. It is distributed for Windows and developed in Linux but has been run once on OSX (to the point of loading the GUI). Primary communication is done over CANbus using pythoncan and Twisted. The GUI is written in PyQt5. Most of the interesting parts of the GUI are loaded from device configuration files including .ui Qt GUI files and PEAK PCAN .sym files for CANbus message definitions.

Running From Source

Instructions are for Python 3.8, but they should work with higher versions.

Windows

  • Install Python 3.8

  • Install Git

  • git clone https://github.com/epcpower/st

  • cd st

  • git submodule update --init

  • poetry install

  • poetry run buildui

  • Note the links provided for possibly needed system and driver extras.

  • Try running poetry run epyq. If you get errors, consider installing the linked extras.

If using with PEAK PCAN hardware, install the PEAK drivers. Select the PCAN-Basic feature in the installer. The virtual and LIN features are not needed for this.

To launch EPyQ run poetry run epyq. To launch Qt Designer with the EPyQ plugins enabled run designer.bat. EPyQ widgets should be visible at the bottom of the widget box on the left.

Linux

  • Install Python 3.8

    • Consider pyenv to get Python versions
  • Install git

  • git clone https://github.com/epcpower/st

  • cd st

  • git submodule update --init

  • poetry install

  • poetry run buildui

  • Try running poetry run epyq

  • If it works, continue below regarding CAN bus setup

In Linux, EPyQ does not attempt to configure or bring up the socketcan links despite still showing the baud rates. Presently the user must set these up themselves prior to opening EPyQ since it detects on startup. As reference, the script below is used during development on Ubuntu 16.04 (Xenial) with a PEAK PCAN USB adapter for a 500kbps bus.

#!/bin/bash

sudo modprobe -a can can_raw
for e in 0 1; do
    sudo sh -c "echo $e > $(dirname $(sudo grep --files-with-matches --recursive --include=idVendor 0c72 /sys/bus/usb/devices/* | head -n 1))/authorized"
done
sudo ip link set can0 type can bitrate 500000 restart-ms 500
sudo ip link set can0 txqueuelen 1000
sudo ip link set can0 up