diff --git a/obsw_tmtc_client.py b/obsw_tmtc_client.py index c2da60cd9f2ee9b0e7e0c7c007478d1372cea5da..b0058344182e167d0ba0b04b9dce932be0687b22 100755 --- a/obsw_tmtc_client.py +++ b/obsw_tmtc_client.py @@ -5,52 +5,11 @@ @details This client features multiple sender/receiver modes and has been designed to be extensible and easy to use. This clien is based on the PUS standard for the format -of telecommands and telemetry. +of telecommands and telemetry. It can also send TMTC via different interfaces like the +serial interface (USB port) or ethernet interface. @manual -Manual installation of crcmod and pyserial for serial communication might be needed - 1. Install pip if it is not installed yet - 2. Install crcmod and all other required packages: - Command: python3.8 -m pip install crcmod - or use IDE (interpreter settings -> pip in PyCharm) - -The script can be used by specifying command line parameters. -Please run this script with the -h flag or without any command line parameters to display options. -GUI is work-in-progress -It might be necessary to set board or PC IP address if using ethernet communication. -Default values should work normally though. Use higher timeout value (-t Parameter) for STM32 - -Example command to test PUS Service 17 with serial communication - obsw_tmtc_client.py -m 3 -s 17 -c 1 -Example to run Unit Test with QEMU: - obsw_tmtc_client.py -m 5 -c 2 -Example to test service 3 with HK output and serial communication: - obsw_tmtc_client.py -m 3 -s 3 --hk -c 1 -Get command line help: - obsw_tmtc_client.py -h - -There are four different Modes: - 0. GUI Mode: Experimental mode, also called if no input parameter are specified - 1. Listener Mode: Only Listen for incoming TM packets - 2. SingleCommandMode: Send Single Command repeatedly until answer is received, - only listen after that - 3. ServiceTestMode: Send all Telecommands belonging to a certain G_SERVICE - and scan for replies for each telecommand. Listen after that - 4. SoftwareTestMode: Send all services and perform reply scanning like mode 3. - Listen after that - 5. Unit Test Mode: Performs a unit test which returns a simple OK or NOT OK. This mode - has the capability to send TCs in bursts, where applicable - -There are following communication interfaces, specified by supplying -c <Interface ID>: - 0: Dummy Interface: Not fully developed yet. - 1: Serial Interface: Serial communication. Specify COM port with --COM <Com Port Name> - or type it in manually. Serial settings are hardcoded for now in obsw_com_config.py . - 2: QEMU Interface: Start a QEMU session and then command the session with the QEMU interface. - 3. Ethernet: Not used anymore. Can be used to send packets to sockets by specifying the - port and IP address. - -If there are problems receiving packets with Ethernet Communication, check the firewall -settings and ensure that python.exe UDP packets are not blocked in advanced firewall settings. +Run this file with the -h flag to display options. """ import atexit import time