Skip to content

App for capturing log messages from UR robot (via TCP/IP sockets), decoding and logging them into ms sql database

Notifications You must be signed in to change notification settings

WiktorSusfal/ur_sql_logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UR SQL Logger

Application for saving log messages read from industrial robot to a SQL database.

Presentation video (YouTube) - [https://youtu.be/Qyen2PXdwu4].

Basic information:

  • language: Python 3.10.2
  • design pattern - MVVM (Model - View - View Model)
  • SQL database - Postgres version 15.4
  • Robot model - Universal Robot UR10 e-Series, software (PolyScope) version: 5.13.1
  • Database interaction library: SQLAlchemy 2.0.20
  • Robot interaction library: socket (built-in), interaction via TCP/IP sockets
  • GUI development library: PyQt5 version 5.15.9
  • For more requirements see requirements.txt file
  • Icons used for GUI development downloaded from:

Repository structure

  • main folder:
    • main.py script - entry point for executing application
    • compose.yaml - definitions of containers containing SQL database and robot simulator
  • config folder - definitions of database connections
  • lib folder - custom modules used in application
  • resources folder:
    • qss styles (css-like syntax for PyQt5 widget styling)
    • png icons
    • sql queries executed during database connection initialization
    • robot's messages structure reference file
  • tests folder - simple scripts testing particular app components

More details in relevant README.md files in particular folders.

Application description

Application connects to multiple robots and captures log messages using TCP/IP socket connection. Bytes stream received is decoded and stored in cache - as message objects. Then, the messages are saved in the database automatically, after predefined time interval.

app_home

User chooses relevant DB connection (so far DB connections are defined using config\db_connections.yml file). User can connect to this database and see connection status.

db_config

Then user can add multiple robot connections and save them in the database. Each connection can be connected and disconnected independently from the robot. The messages are being saved all the time in the background, if the database connection is active. Last messages received are shown in the GUI interface.

Log messages from robots can be captured even without working database connection - the messages are displayed in the GUI but not stored in database. After connecting to the database, robot connections data present in cache will be merged with the data that came from the database. Connection definitions which not existed in the database earlier must be saved manually.

Database structure

DatabaseStructure

About

App for capturing log messages from UR robot (via TCP/IP sockets), decoding and logging them into ms sql database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages