# Dry Run - Step by Step
## Notes:
- Whenever anything is missing, immediately add it here
- Take plenty of pictures for future documentation and PR
- Whenever a problem occurs, post a description into the MOVE-III_Dry_Runs channel on Mattermost
- This document(and all linked documents) should be transfered to gitlab as soon as the test is over
### Debugger IDs
- ADCS: `066BFF544851717867214028`
- EPS Backplane: `0020000F5632500920313236`
- CDH: `066CFF333036434B43092749`
- COM: `000D002B3756501320303658`
### Flashing over move-lab0
```bash
ssh dry-run@move-lab0.lab.lrt.ed.tum.de
cat README.md
```
For logging debug output with an additional timestamp: <https://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command>
## Test personnel
TODO
## Preparation
1. [x] Drink a coffee
2. [x] Clean up cave
3. [ ] Get the necessary hardware and put it in the cave: https://hackmd.io/G7SmcadTT6yfTG8rhpexnw
5. [x] Turn on the official integration playlist: https://open.spotify.com/playlist/37XJUkxBoNBlyyMlg9Lvtg?si=a8ccfa0dae4d41bb
6. [x] Make a "Do not touch sign"
## Integration
### Battery Board Preparation:
1. [x] Cut paper pieces needed to make the batteries fit properly
3. [x] Measure battery voltages with Multimeter(expected 4.2V)
1. Battery 2 Actual Voltage: 4.184V
1. Battery 3 Actual Voltage: 4.125V
1. Battery 4 Actual Voltage: 4.176V
1. Battery 12 Actual Voltage: 4.22V
3. [x] Put the RBF on the battery board
4. [x] Unscrew battery holders from battery board
5. [x] Put Batteries into Battery Board and make sure that have a nice fit with the paper
- Assignment of Batteries to battery slots:
- Top side:
- Slot 1, Battery 2(INA 1000010)
- Slot 3, Battery 3
- Bottom side:
- Slot 2, Battery 12
- Slot 4, Battery 4
6. [x] Screw battery holders back on
6. [x] Check that no LEDs are on
7. [ ] Measure battery voltages in board
1. Slot 2: Can't measure
2. Slot 4: 4.175V
3. Slot 3: 4.23V
4. Slot 1: 4.18V
11. [x] Remove the RBF
12. [x] LED D2(?) should turn on
13. [x] Check that the voltage between the VBAT_Int pin and GND on the backplane connector
10. 8.41V
15. [x] Put the RBF back on
### Backplane Preparation:
6. [x] Connect the Backplane to the power supply over jumpers(DO NOT TURN ON YET)
12. [x] Connect Debugger to Backplane
1. [ ] Name on cave server: `/dev/serial/by-id/usb-STMicroelectronics_STLINK-V3_TODO-if02`
1. [ ] Set all power switches to ON
2. [ ] Check jumper Positions
1. [ ] VBAT On
2. [ ] All others off
4. [x] Set up power supply:
1. [ ] 8V
2. [ ] 0.1A
3. [ ] Off
7. [ ] Get Software human with knowledge about the Backplane Software
8. [ ] Check out correct git branch on the cave server
3. [ ] Document used version:
1. [ ] Branch:
2. [ ] Commit hash:
10. [ ] Compile Backplane software
13. [ ] Start reading UART output from Backplane(and log it to a file)
1. [ ] File location: ``
15. [x] Turn the power supply on
16. [ ] Check nominal operation:
1. [ ] Power supply stays at constant voltage
3. [ ] Following LEDs should be on:
1. [ ] All slot enable LEDs should be on for VBat
2. [ ] 3V3_Int
3. [ ] UART Tx
17. [ ] Flash the prepared firmware
18. [ ] Check UART output:
1. [ ] Let it run for a few seconds, then paste output here: https://hackmd.io/XcbvoXp7QkG1iNsD9LkQRQ
1. [ ] RODOS startup output
1. [ ] Git commit correct
2. [ ] No init errors
2. [ ] Check INA measurements
1. [ ] VBat Value(expected 7.9-8.1):
2. [ ] 5V Value:
3. [ ] 3V3 Value:
4. [ ] 3V3_Int current:
19. [ ] Check LEDs:
1. [ ] UART LED blinking
2. [ ] 5V Buck converter LED
3. [ ] 3V3 Buck converter LED
4. [ ] Power Channels
1. [ ] All fault LEDs off
2. [ ] All slot enable LEDs should be on for all voltages
21. [ ] Turn off Power supply
22. [ ] Upload UART log(location TODO)
### CDH Preparation
1. [x] Verify Jumpers on SSB:
1. [x] SSC1 ON
3. [x] CP_MCU on 3V3
4. [x] CP_CAN on 3V3
5. [x] All others off
9. [ ] Check RTC Battery Voltage
1. [ ] Voltage is above TODO
2. [x] Document exact value: 3.162V
10. [x] Plug in RTC Battery
2. [x] Connect MCU_BAT connector from breakout board to VBAT MCU connector on SSB
4. [x] Get Software human with CDH knowledge
5. [ ] Check out correct git branch
6. [ ] Document used version:
1. [ ] Branch:
2. [ ] Commit hash:
7. [ ] Compile softwarae
14. [x] Plug in SSB to the backplane slot TODO
15. [x] Plug in UART Converter to UART1 (beacon logging or satbus dump)
1. [ ] Name on cave server: `/dev/ttyTODO`
16. [x] Plug in UART Converter to UART2 (beacon logging or satbus dump)
1. [ ] Name on cave server: `/dev/ttyTODO`
18. [x] Connect Debugger
1. [ ] Name on cave server: `/dev/serial/by-id/usb-STMicroelectronics_STM32_STLink_066CFF333036434B43092749-if02`
19. [ ] Start logging Beacon data on cave server
1. [ ] file location: ``
20. [ ] Start reading & logging CDH output
1. [ ] File location:
21. [ ] Start reading & logging Backplane output
1. [ ] File location:
22. [x] Turn on Backplane Power
23. [ ] Check LEDs:
1. [ ] TODO
24. [ ] Flash the prepared firmware
25. [ ] Check CDH UART output:
1. Let it run for a few seconds, then paste log here(in CDH integration section): https://hackmd.io/XcbvoXp7QkG1iNsD9LkQRQ
2. [ ] RODOS startup output
1. [ ] Git commit correct
2. [ ] No init errors
3. [ ] TODO
26. [ ] Check backplane output:
1. [ ] Paste here after a few seconds: https://hackmd.io/XcbvoXp7QkG1iNsD9LkQRQ
3. [ ] INA Measurement on Slot TODO:
1. 3V3 Voltage(3.2-3.4):
2. 3V3 Current(TODO-TODO A):
3. 5V Voltage(4.5V-5.4V):
4. 5V Current(TODO-TODO A):
5. VBAT Voltage(0V):
6. VBAT Current(0V):
27. [ ] Check that UART Logger LED is blinking
28. [ ] After at least 60 seconds, turn off backplane power
29. [ ] Check logged beacon content
1. [ ] Guide for this TODO
2. [ ] Checks for this TODO
30. [ ] Upload UART logs
### OPS
TODO
### Battery board integration
1. [x] Make sure power supply is off
2. [x] Unplug the Banana Cable adapter from the backplane
3. [x] Plug the battery board into backplane slot 5
4. [x] Make sure that nothing turns on
5. [x] Start logging all UARTs
6. [x] Make sure that all switches are set correctly
7. [x] all slot 1 switches on
8. [x]
8. [x] Put rubber duck on slot 7
9. [x] Remove battery board RBF
10. Time: 15:21
11. [x] Check LEDs:
1. [x] Battery board LED ON
2. [x] 3V3, 5V, 3V3_Int on backplane ON
3. [x] Both CAN LEDs blinking
4. [x] TX, RX UART LEDs on backplane toggling between two levels
5. [x] NRST, TDI, SWDIO weakly ON
6. [x] 3V3, 5V and VBAT LEDs for slot 1 ON
7. [x] SSB 3V3, 5V and VBAT ON
9. [x] MCU LED ON
10. [x] CAN LED on
11. [x] All UART 1 & 2 LEDs ON
12. [x] All others off
12. [x] Check voltages from INA measurements in Backplane UART log
1. [x] VBAT(expected 8.4): 8.31V
2. [x] 5V: 5.03
3. [x] 3V3: 3.29
13. [x] Check subsystem currents:
1. Slot 1
2. 3V3: 65mA
3. 5V: 27mA
4. VBAT: 28mA
5. All others near 0
6. [x] Make sure that DO NOT TOUCH sign is on setup
### Dry run data evaluation
1. [ ] TODO
## Unplanned short check:
Problem: high current when enabling VBAT on slot 1 with Dori in it
No short on VBAT on Dori
No VBAT jumper on Dori
Doesn't happen without the board
Happens in other slots as well(minor difference in exact power draw)
Issue found: LED resistor is only 220 Ohm - meaning that with about 5-6ish V dropping across it, we get somewhere 20-30ish mA current draw
## Disintegration
1. [x] Put the RBF on the battery board: 2023-02-08T14:46+01
2. [x] Remove the battery board from the backplane
3. [x] Stop logging the data
4. [x] Remove RBF again
5. [x] Measure voltage between VBAT_INT and VBAT_GND pins
1. 0V
8. [x] Measure battery voltages in board:
1. Slot 3: 0.57V
2. Slot 1: 0.692V
3. Slot 2: Can't measure
4. Slot 4: 4.1V + noise
9. [x] Unscrew battery holders from battery board
10. [x] Remove batteries from battery board
11. [ ] Screw the battery holders back on
12. [x] Measure battery voltages
1. Cell 4: 4.146V
2. Cell 12: 2.965V
3. Cell 2: 0V
4. Cell 3: 4.087V
14. [x] Set up the power supply again with limits of 8V and 150mA. Do not turn it on yet.
15. [x] Connect the Power supply to the backplane
16. [x] Turn on the power supply
17. [x] Make sure that power draw is roughly as expected(50-150mA)
## UVP test after disintegration
1. [x] Slowly turn down power supply voltage in 100mV steps until backplane turns off
2. [x] Note down the voltage: 6.4V
3. [x] Slowly turn up PSU voltage in 100mV steps until it turns back on
4. [x] Note down the voltage: 7.6V
5. [x] Turn it all the way back to 8V
Cause: GND and BAT_GND are connected on the battery board