diff --git a/.gitignore b/.gitignore index 5b257ed3bd8f83d417ce7497dac99bbe864080de..b83ade39fc4e4e3e7f08c862b6c5a9dbf8540fed 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,6 @@ log # https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder # you can skip this first one if it is not already excluded by prior patterns .idea/* -!.idea/runConfigurations/ \ No newline at end of file +!.idea/runConfigurations/ + +venv \ No newline at end of file diff --git a/.idea/runConfigurations/OBSW_TmTcClient_Service_17_Serial_.xml b/.idea/runConfigurations/OBSW_TmTcClient_Service_17_Serial_.xml index ff8bcaf108630814dfa2570fdcd941c57c0ce526..40af93c6060ef79f2a6a88ef9fb817c3756b0141 100644 --- a/.idea/runConfigurations/OBSW_TmTcClient_Service_17_Serial_.xml +++ b/.idea/runConfigurations/OBSW_TmTcClient_Service_17_Serial_.xml @@ -12,8 +12,8 @@ <option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> - <option name="SCRIPT_NAME" value="C:\Users\Robin\NoSyncDokumente\sourceobsw\tmtc\obsw_tmtc_client.py" /> - <option name="PARAMETERS" value="-m 3 -s 17 -p -c 1" /> + <option name="SCRIPT_NAME" value="$PROJECT_DIR$/obsw_tmtc_client.py" /> + <option name="PARAMETERS" value="-m 3 -s 17 -c 1" /> <option name="SHOW_COMMAND_LINE" value="false" /> <option name="EMULATE_TERMINAL" value="true" /> <option name="MODULE_MODE" value="false" /> diff --git a/obsw_tmtc_client.py b/obsw_tmtc_client.py index 909736ebace6cb6bf0865b2848bcc65fc77ea32d..16087315ae3d045bf659b61b9a74f07b6e2d7249 100644 --- a/obsw_tmtc_client.py +++ b/obsw_tmtc_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/python3.8 """ @file obsw_tmtc_client.py @@ -8,10 +8,10 @@ This client was developed by KSat for the SOURCE project to test the on-board software. It can be used to to send and receive TMTC packets and TMTC sequences. @manual -Manual installation of crcmod might be needed +Manual installation of crcmod and pyserial might be needed 1. Install pip if it is not installed yet - 2. Install crcmod and all other reqiored packages: - Command: pip install crcmod + 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.