Skip to content
Snippets Groups Projects
Forked from an inaccessible project.
user avatar
Robin.Mueller authored
commit b4795b4a
Author: Robin.Mueller <robin.mueller.m@gmail.com>
Date:   Thu Jan 2 21:24:24 2020 +0100

    listener mode notification print

commit db2c26db
Author: Robin.Mueller <robin.mueller.m@gmail.com>
Date:   Thu Jan 2 00:05:37 2020 +0100

    tmtc adapted for serial send and receive

commit faf01c5a
Author: Robin.Mueller <robin.mueller.m@gmail.com>
Date:   Mon Dec 30 20:55:36 2019 +0100

    service 3 testing first custom definition added

commit b8052826
Author: Robin.Mueller <robin.mueller.m@gmail.com>
Date:   Mon Dec 30 20:21:22 2019 +0100

    tmtc refactoring, service 3 tm and tc handling continued

commit 2774a1c2
Author: Robin.Mueller <robin.mueller.m@gmail.com>
Date:   Mon Dec 30 01:12:54 2019 +0100

    hk service print init, hk service test plan added

commit 03596fa7
Author: Robin Mueller <robin.mueller.m@gmail.com>
Date:   Sun Dec 29 02:06:03 2019 +0100

    tmtc script service 3 init
18bef65b
History

TMTC Client

Prerequisites

Manual installation of crcmod might be needed

  1. Install pip if it is not installed yet
  2. Install crcmod and all other reqiored packages: Command: pip install crcmod or use IDE (interpreter settings -> pip in PyCharm)

How To Use

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.

Example command to test service 17, assuming no set client IP (set manually to PC IP Address if necessary) and default board IP 169.254.1.38:

OBSW_UdpClient.py -m 3 -s 17

Example to run Unit Test:

OBSW_UdpClient.py -m 5

There are four different Modes:

  1. GUI Mode (-m 0): Experimental mode, also called if no input parameter are specified
  2. Listener Mode (-m 1): Only Listen for incoming TM packets
  3. SingleCommandMode: Send Single Command repeatedly until answer is received, only listen after that
  4. ServiceTestMode: Send all Telecommands belonging to a certain service and scan for replies for each telecommand. Listen after that
  5. SoftwareTestMode: Send all services and perform reply scanning like mode 3. Listen after that
  6. 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

The TC timeout factor is mulitplied with the TM timeout to specifiy when a TC is sent again, if no reply is received.

Ethernet Communication

If there are problems receiving packets, use the tool Wireshark to track ethernet communication for UDP echo packets (requests and response). If the packets appear, there might be a problematic firewall setting. Please ensure that python.exe UDP packets are not blocked in advanced firewall settings and create a rule to allow packets from port 2008.

Serial Communication

Work-In-Progress