Skip to main content
Responsible
  • Samuel Schoenenberger
Last Updated10/12/2025, 12:48:54 PM
Last AuthorKai Berszin

Scope and Content

Test IDSAGE-ADCS-TR-9002
Parent Test ID-
Requirement ID-
Test ObjectCube ADCS Development Model
Model-
Test TypeHardware in the Loop trial
Testing Session1
FacilityETH Hanger Dübendorf Electronics Lab
Date28.03.2025
Trial Number1
Total Number of Trials1

Introduction

This experiment is a first test of the Hardware in the Loop (HIL) functionality of the CubeADCS DM and the EOS simulator. Three EOS simulations shall be run with the HIL functionality of EOS, while connected to the CubeADCS DM.

Test Operators

Test RoleProject RoleFull Name
Test LeadADCS Team LeadSamuel Schönenberger
TesterADCS MemberAndreas Dombos
TesterSysten EngineerKai Berszin

Test Setup

Ground Support Equipment

Equipment NameIdentification
Computer with Windows 7 or higher with USB-A port
CubeSpace CubeADCS Design Model Power Supply
Oscilloscope
Multi-Meter
Power Supply (10V to 17.6V at current limit set to 1.5A)
DC Power Cable
Cube Support PCB
PCAN USB
UART to USB Cable

Test Object Configuration

Configuration ItemValue

Software Configuration

SoftwareVersion
CubeSupport Softwarev4.3.0.3
EOS Satellite Simulation softwarev1.13.3
base-bootloader-cube-common-1-computer-5.3v1.5
control-program-cube-computer-5v5.16.0
D2S2 sattelite simulation1.0.19.3
CubeSpace Library (D2S2 Plugin)1.0.10.0

image image

Test Execution

Test Procedure

IDProcedureNotes
1Powering up the CubeADCS and connecting it to the CubeSupport PCB
2Connecting via CAN
3Activate EOS on Windows PC
4Clone latest version of repository
5Test EOS-Cubespace test script with DM in HIL mode
6Test Detumbling script on EOS with DM in HIL mode
7Test Sun Pointing script on EOS with DM in HIL mode
8Test Ground Tracking script on EOS with DM in HIL mode
9Turning D2S2 scenario into HIL scenario via execution of HIL Setup scriptSuccess
10Connecting to D2S2Fail :(

Test Results

TimeObjectivePass/FailComments
17:00 - 21:10Test EOS-Cubespace test script with DM in HIL modeFailSteps documented in anomaly. Question sent to CubeWade.
Test Sun Pointing script on EOS with DM in HIL mode
Test Ground Tracking script on EOS with DM in HIL mode
Test Detumbling script on EOS with DM in HIL mode
HIL SetupPass
Connecting to D2S2FailError below; buy CubeWade Pinata to hit very very hard

Anomalies

EOS

We had issues during HIL attempt 1:

  1. We set up all the hardware correctly (CubeSupport works as intended)
  2. We tried everything with UART and CAN and the same error popped up.
  3. We used EOS with the aris-sage.eos file that you provided.
  4. Clicked the HIL button.
  5. We set all the configs correcly. (Screenshot 1.) (We get the same error regardless of switching "Must Match" to True or False.)
  6. Then we tried setting "connected" to True.
  7. Then we get the error "TCTLM NACK: Length Invalid (ID=54)"

D2S2

Issues when connecting D2S2 with CubeADCS DM:

InterfaceConfiguration must matchError MessageNote
UARTFalse"Error in intialisation of remote ADCS: Error: TC Truncated / Corrupted reply (invalid length)"
UARTTrue"Error in intialisation of remote ADCS: Error: TLM Truncated / Corrupted reply (invalid length)"
PCANFalse"Error in initialisation of remote ADCS: NACK received in response to TC (ID = 62)"
PCANTrue"Error in initialisation of remote ADCS: Received reply with invalid length (ID: 190, received length=91, expected length = 98)This seems to be related to the "Reserved" 7 bits in the Controller Config. We don't know how to set those. Maybe the issue is something else.

Note: This is after converting the CubeComputer in the scenario to a HIL enabled CubeComputer using the HIL setup script.

Conclusions

This is still failing everytime.