Skip to main content

QView visualization and monitoring

Project description

The "qview" Python package is a powerful Visualization and Monitoring facility, which allows embedded developers to create virtual Graphical User Interfaces in Python to monitor and control their embedded devices from a host (desktop) computer. The interfaces created by QView can visualize the data produced by QP/Spy software tracing system and can also interact with the embedded target by sending various commands.

General Requirements

The "qview" package requires Python 3 with the tkinter package, which is included in the QTools distribution for Windows and is typically included with other operating systems, such as Linux and MacOS.

To run "qview" in Python, you need to first launch the QSPY console application to communicate with the chosen embedded target (or the host executable if you are simulating your embedded target).

Once QSPY is running, from a separate terminal you can launch qview.py and "attach" to the QSPY UDP socket. After this communication has been established, "qview" can interact with the instrumented target and receive data from it (through QSPY).

NOTE The embedded C or C++ code running inside the target needs to be built with the QP/Spy software tracing system instrumentation enabled. This is acheived by building the "Spy" build configuration.

Installation

The qview.py script can be used standalone, without any installation (see Using "qview" below).

Alternatively, you can install qview.py with pip from PyPi by executing the following command:

pip install qview

Or directly from the sources directory (e.g., /qp/qtools/qview):

python setup.py install --install-dir=/qp/qtools/qview

Using "qview"

If you are using qview as a standalone Python script, you invoke it as follows:

python /path-to-qview-script/qview.py [<cust_script> [<qspy_host> [<qspy_port>]]]

Alternatively, if you've installed qview with pip, you invoke it as follows:

qview [cust_script] [qspy_host[:udp_port]] [local_port]

Command-line Options

  • cust_script - optional customization Python scripts for your specific target sytem. If not specified, qview will provide only the generic facilities for interacting with the target (e.g., reset, setting QS filters, posting events, etc.)

  • qspy_host[:udp_port] - optional host-name/IP-address:port for the host running the QSPY host utility. If not specified, the default is 'localhost:7701'.

  • local_port - optional the local UDP port to be used by "qview". If not specified, the default is '0', which means that the operating sytem will choose an open port.

Examples (for Windows):

python %QTOOLS%\qview\qview.py

opens the generic (not customized) "qview".

python %QTOOLS%\qview\qview.py dpp.py

opens "qview" with the customization provided in the dpp.py script located in the current directory.

qview ..\qview\dpp.py localhost:7701

opens "qview" (installed with pip) with the customization provided in the dpp.py script located in the directory ..\qview. The "qview" will attach to the QSPY utility running at localhost:7701.

qview dpp.py 192.168.1.100:7705

opens "qview" (installed with pip) with the customization provided in the dpp.py script located in the current directory. The "qview" will attach to the QSPY utility running remotely at IP address 192.168.1.100:7705.

Examples (for Linux/macOS):

python $(QTOOLS)/qview/qview.py

opens the generic (not customized) "qview".

python $(QTOOLS)/qview/qview.py dpp.py

opens "qview" with the customization provided in the dpp.py script located in the current directory.

qview *.py ../qview/dpp.py localhost:7701

opens "qview" (installed with pip) with the customization provided in the dpp.py script located in the directory ../qview. The "qview" will attach to the QSPY utility running at localhost:7701.

qview dpp.py 192.168.1.100:7705

opens "qview" (installed with pip) with the customization provided in the dpp.py script located in the current directory. The "qview" will attach to the QSPY utility running remotely at IP address 192.168.1.100:7705.

More Information

More information about the QView Visualization and Monitoring is available online at:

More information about the QP/QSPY software tracing system is available online at:

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

qview-7.1.0.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

qview-7.1.0-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

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