Shared helpers used by the different ate-apps, i.e. master-app, control-app, etc.)
Project description
The semi-ate-control-app package
This package provides some a command line tool (launch_control
). In order to use this application you have to configure it first. This tool should be run on some test node, i.e. some host controlling measurement instruments. It communicates with the master application from the semi-ate-master-app
package by MQTT. The master application sends mqtt-messages to steer the control application. The control application itself is responsible for loading/unloading and executing some test-program. Test results, i.e. STDF records, are send back to the master application.
Configuration
Configuration of the control application is done by writing a JSON file called control_config_file.json. The following key-value-pairs have to be defined:
{
"broker_host": "127.0.0.1",
"broker_port": 1883,
"device_id": "SCT-82-1F",
"site_id": "0",
"loglevel": 10
}
broker_host
defines the ip address of the mqtt broker.broker_port
defines the prot of the mqtt broker.device_id
defines a unique id of the so-called test-system. A test system can contain several host running he control applications. And some host running the master application.site_id
is the unique identifier of the host running the control applicationloglevel
defines the log-level of the control application
The device_id and site_id is used to build unique mqtt-message-topics automatically. The idea is that no test-system influences some other test system.
Starting the Control Application
We assume that the semi-ate-control-app has been installed in the current python environment. Further configuration control_config_file.json file is located in the current folder.
IMPORTANT: The configuration file has to be named control_config_file.json
(environment)> launch_control
control 0|21/03/2022 04:14:10 PM |INFO |mqtt connected
control 0|21/03/2022 04:14:10 PM |INFO |control state is: idle
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for semi-ate-control-app-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e763d886bdef926e869c7c460d281b0e0cce78162ef99ff3a04630d6c4262b |
|
MD5 | 7bdb0dfc880f919090bc12909c104734 |
|
BLAKE2b-256 | 6321f179356b79661686ae632e2fd5f58fbd111a93b227dda13f23be7476f952 |