46
Section 14.0 Flight Software David K. Leucht FSW Lead Engineer GSFC 5 Space Technology “Tomorrow’s Technology Today” ST5 PDR June 19-20, 2001

Section 14.0 Flight Software

Embed Size (px)

DESCRIPTION

5. Space Technology. GSFC. “Tomorrow’s Technology Today”. Section 14.0 Flight Software. David K. Leucht FSW Lead Engineer. ST5 PDR June 19-20, 2001. Agenda. Requirements Heritage Unique Resources Estimates Design Concepts. FSW Applications Overview. 5. Space Technology. GSFC. - PowerPoint PPT Presentation

Citation preview

Page 1: Section 14.0 Flight Software

Section 14.0

Flight Software

David K. LeuchtFSW Lead Engineer

GSFC 5Space Technology

“Tomorrow’s Technology Today”

ST5 PDR June 19-20, 2001

Page 2: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 2

GSFC Agenda• Requirements

- Heritage

- Unique

• Resources Estimates

• Design Concepts

Page 3: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 3

GSFC FSW Applications Overview

Software Bus

MemoryChecksum

EDACMemoryScrubber

Tlm &StatisticsMonitor

1 HzTime Mark

TransponderManager

VECs(Thermal)Manager

ACSManager

DataAcqusitionManager

PowerSwitching

BatteryManager

(FDC)

SRAMDataInput

CCNTOutput

Health &Safety

Manager

Mag.Data

Manager

SoftwareManager

TimeManager

StoredCommandProcessor

UplinkCommand

Input

TelemetryOutput

RecorderStorage

Transponder

Telemetry

CodeBlocks

Commands &Telemetry

CCNTVECs

VECs ThrusterMagneto

meter

SunSunser

CULPRiTVoltage

Controller

CULPRiT(RSE)

Voltage Bias Cmds

AllSpacecraft

Analogs

PowerSwitches

Commands &Readbacks

RangeCommandsMag Data

Heritage S/W

New S/W

CommandInjest

MemoryDwell

Page 4: Section 14.0 Flight Software

FSW Requirements

Heritage FSW

GSFC 5Space Technology

“Tomorrow’s Technology Today”

ST5 PDR June 19-20 2001 14 - 4

Page 5: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 5

GSFC

Telemetry Output Requirements

• 1 physical telemetry channel handles simultaneous real-time and playback downlink data (MRD 10303042)

• 2 Commandable downlink rates, 1 Kbps and 100 Kbps (MRD 10303063):

- 1 Kbps Real-time Telemetry Channel is system default (MRD 10303064)

- 99 Kbps Playback Telemetry Channel(s)

• 1 Kbps rate available at any point in orbit (MRD 10303066)

• CCSDS, AOS, Telemetry formats (MRD 10303050, 10303051, & 10303052)

• Virtual channels used to separate:

- Real-time S/C housekeeping telemetry (VC0)

- Playback S/C housekeeping telemetry (VC1 & VC11, for retransmit)

- Playback S/C event telemetry (VC2 & VC12 , for retransmit)

- Playback science telemetry (VC3 & VC13 , for retransmit)

• Packet filtering based on reconfigurable tables

• 90% Reuse from MAP

- Design new output interface to C&DH (FIFO fill upon interrupt)

Page 6: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 6

GSFC

Uplink Command Input Req’ts

• 1 Kbps Uplink Rate (MRD 10303061)

• CCSDS Telecommand formats (MRD 10303050 & 10303052)

- using COP-1 Command Acceptance and Verification Protocol

• Interfaces to Transponder via codeblocks input by C&DH

• Error Reporting (MRD 10303032)

- CCSDS protocol errors

- Command data checksum verification

• 60-90% Re-use of MAP Heritage (pseudo-randomization is at issue)

- Remove support for redundant Transponders (MAP Heritage)

- Design new Interface to C&DH for Codeblock input

- De-randomization of CCSDS compliant, pRandomization is TBR

Page 7: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 7

GSFC

Stored Command Requirements

• Provide autonomous spacecraft commanding (MRD 10303010)

• Absolute time-tagged sequences (ATS’s)

- 2 ATS buffers (sized for 16 orbits, byte length is TBD) (MRD 30502000)

- Execution synchronized with the S/C Clock

- Provides 1 second time-tagged resolution (UTC Time) (MRD 10303031)

- Only 1 ATS can be active at a time

- Inactive ATS is used for loading, followed by a switch command

• Relative time-tagged sequences (RTS’s)

- 256 RTS’s (300 bytes each) active (count and size are still TBR)

- Supports routine S/C housekeeping functions

- Supports emergency S/C subsystem safing operations

- Provides 1 second time-tagged resolution (MRD 10303031)

- Multiple RTS’s can execute concurrently

• Provide distribution of up to 8 stored commands per second

• 1 RTS dedicated to execute on system startup

• 95% re-use from MAP -- sizing, RTS count and loading of ST-5 specific needs

Page 8: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 8

GSFC

Recorder Storage Requirements

• 10 Mb recorder (MRD 10303020)

• Recorder will be partitioned into the following independent segments:

- S/C housekeeping in VR1; VR1 normal mode size 3.5 Mb TBR

- S/C events in VR2; VR2 normal mode size 0.5 Mb (TBR)

- Science telemetry in VR3; VR3 normal mode size 6 Mb (MRD 20301000)

• Each partition (Virtual Recorder) is managed separately:

- Partition Size (MRD 10303021)

- Playback and continuous playback status

- Store data during R/T downlink & recorder playback (MRD 10303022 & 10303023)

- Overwrite Status

• Provides for loadable Virtual Recorder memory reconfiguration

• Packet filtering based on reconfigurable tables

• Retransmission ground commands are supported by packet time or sequence #

• 95% Reuse from MAP

- ST-5 specific tables

Page 9: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 9

GSFC

Time Management Requirements

• All telemetry data, timetagged at the packet level (MRD 10303043)

• Maintain time on the spacecraft with a resolution of at least 0.1 ms (MRD 20302000)

• Correlate observatory time to ground time to within 5.0 mS (MRD 20500000)

• Timetag Time Correlation Events to accuracy of 0.5 mS (MRD 20505000)

• Provide ability to update & adjust on-board clock (MRD 20503000)

- Provide commands to jam spacecraft time, UTC correlation Factor, and leap seconds

- Provide commands to make delta time adjustments (-2ms <= adj <= 2ms)

- Provide commands to make continuous delta time adjustment to correct for oscillator drift (-2ms <= adj <= 2ms)

• Maintain UTC correlation factor and leap seconds onboard, UTC needed for Stored Command Processor

• Time Correlation Events occur on Real-time Channel only (VC0)

- 1 Time Correlation event every 162 Seconds

• 64-bit time format: 32 bits seconds, 32 bits subseconds

• ~100% Re-use from MAP

Page 10: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 10

GSFC

Health & Safety Requirements

• Health & Safety divided between 3 tasks

- Health & Safety

• Services processor’s Watchdog Timer

• Monitor critical S/W tasks to assure execution, can effect restart of FSW

• Monitor critical S/C event messages, can effect restart of FSW

• 75% Re-use from MAP -- redesign Task check-in to minimize CPU overhead)

- Telemetry & Statistics Monitor

• Extract & limit check critical telemetry points from CCSDS telemetry packets

• Provides derived (computed) monitor points

• Initiates stored command sequence on limit failures

• Maintains statistical data for each monitor point

• 80% Re-use from MAP (most effort is developing and testing ST-5 specific monitor points)

- Checksum

• Continuously monitors static RAM and EEPROM

• Checksum violation responses are TBD

• 95% Re-use from MAP -- reconfigure for ST-5 memory space

Page 11: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 11

GSFC

EDAC Management Requirements

• Referred to as Memory Scrub

• DRAM will be scrubbed in order to correct single bit flips and report uncorrectable multiple bit flips

• Scrubbing rate is determined by radiation environment which is currently TBD (waiting for orbit, radiation & parts data)

• Provides capability to scrub Processor Ram at a different rate than Recorder Memory

• Provides commands to enable/disable Multi-bit Error detection and set scrub rate

• 90% Re-use from MAP -- reconfigure for ST-5 memory space

Page 12: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 12

GSFC

Software Manager Requirements

• Provide capability to re-load software into RAM (MRD 10309060)

- Memory Load & Dumps

- Table Load & Dumps

• Provide diagnostic capability to monitor key memory locations (memory dwell)

• Manages system parameter tables and provides ability to load and dump tables for maintenance purposes

• 90% Re-use from MAP

- EEPROM load support to be removed

- Reconfigure for ST-5 memory space and tables

Page 13: Section 14.0 Flight Software

FSW Requirements

ST-5 Unique FSW Components

ST5 PSR June 19-20, 2001

5Space Technology

“Tomorrow’s Technology Today”GSFC

14 - 13

Page 14: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 14

GSFC

Transponder & CULPRiT Mgmt Reqts

• Transponder (Transponder EICD)

- Provide Command Interface for configuration and status query of Transponder

- Provide Telemetry sampling interface for Transponder Status

• Commands are issued to effect telemetry output from transponder

• CULPRiT

- Provide telemetry for monitor of CULPRiT performance (MRD 10103060)

- Provide command to disable (bypass) CULPRiT

- Provide Voltage Biasing Controller

• All requirements related to controller are TBD

• Need for controller may be obsolete, if most recent CULPRiT design is proven to work

Page 15: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 15

GSFC CCNT Mgmt Requirements• Issue Commands to CCNT

- On-Board Commands require BlackJack Protocol Encoding (MRD 10102031)

• Cross-link Housekeeping Data

• UTC Time Updates

• Science Event Alert

• Others (TBD)

- Uplinked Commands relayed without BJ Protocol Encoding (MRD 10102033)

• Accept Telemetry from CCNT for Storage in SSR (MRD 10102032)

- Do not decode BlackJack Protocol, just packetize in CCSDS and store for later downlink (fixed packet length of 256 bytes plus headers)

• Support Inter-Spacecraft Communications (MRD 30300000 & 30301000)

• Respond to Discrete CCNT input used to signal arrival of Science Event Alert (derived from design)

Page 16: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 16

GSFC

Magnetometer Mgmt Requirements

• Perform On-board Science Data reduction from 16Hz sample input rate to 8Hz sample storage rate, through simple averaging of data. (MRD 20201020)

• Maintain 100 second deep FIFO of magnetometer data, stored in FIFO at 16 Hz (full data rate)

• Provide autonomous instrument sensitivity setting

- Monitor sensor data at least 1Hz (MRD 20201010)

- 10 continuous seconds before switching sensitivity

- To switch from Low to High: any 1 of 3 axes must exceed threshold (>= 800nT, TBR)

- To switch from High to low, all 3 axes must fall below threshold (<= 600nT, TBR)

Page 17: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 17

GSFC

Thermal Technologies (VECs) Reqts

• Provide Command Interface for each VEC (Thermal ICD)

- Manual Mode Select with argument of polarity

- Autonomous Mode Select (no command arguments)

• Sample telemetry from each VEC once every 5 seconds (Thermal ICD)

- One discrete, 1 bit status from each VEC

- One multiplexed analog signal from each VEC

• 8 data per signal, multiplexed over 5 second period of time (TBR)

Page 18: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 18

GSFC ACS FSW Requirements (1 of 2)

• Implement Sun Acquisition Mode (SAM) of ACS Controller (MRD 10305010)

- Autonomously initiate SAM upon ELV separation (MRD 10305014)

- Provide ability to enter SAM upon command, either real-time or stored command (MRD 10305013)

- Autonomous SAM upon COLD or WARM Restarts is TBR (MRD says reset)

- Sun within 25 degrees normal to solar arrays (MRD 10305012)

- Generate autonomous MCGT pulses to reorient to and maintain required spin axis/Sunline geometry

- MCGT commanding halted if:

• (a) elevation angle variance exceeds a maximum threshold OR

• (b) maximum thruster firing time is exceeded (MRD 10305015)

- Must be able to maintain SAM indefinitely

• Provide ability to enable/disable SAM processing (MRD 10305030)

Page 19: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 19

GSFC ACS FSW Requirements (2 of 2)

• Perform 3 Additional ACS Modes (derived ACS Requirements)

- Standby Mode

• Supports nominal spacecraft operations

• Process sensor data, but no thruster commanding

- Maneuver Mode (MRD 10308000)

• Execute ground issued MCGT commands to reorient spin axis to desired pointing

• Open-loop control law execution

- Delta V Mode (MRD 10308000)

• Execute ground issued MCGT firing commands to modify orbit

• Open-loop control law execution

Page 20: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 20

GSFC

Thruster Management Requirements

• Provide ability to command thruster On/Off duty cycles from 10% to 100% in 10% increments (MRD10101050)

• Provide status telemetry to indicate previous actuation state of the valve (MRD 10101040)

• Will have an enable command to C&DH (MRD 10302040)

• Provide status telemetry to support estimating propellant supply pressure (MRD 10101031)

- Pressure Transducer readings

- Temperature readings

- Tracking Thruster On-Time measurements

• Employing Two Timers, programmed by FSW to control length of thruster firing:

- Timer 1 used to offset thruster firing start time, relative to Sun Presence pulse (FSW arms, C&DH starts timer upon Sun Presence signal)

- Timer 2 used to define length of thruster firing

Page 21: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 21

GSFC

HK Data Acquisition Requirements

• Sample HK data from all technologies and S/C subsystems for H&S assessments and technology validations (MRD 10303040)

• Sample all Thermistors at least once per minute (Thermal ICD)

• Sample all other S/C analog signals at TBD rate

• Report Magnetometer (0.25Hz) and Sun Elevation (1Hz) for ground-based Attitude Determination (ACS need)

• Sample Propellant Transducer at TBD rate (sample when commanded?)

• Collect and report FSW status telemetry (baselining 0.125Hz, MAP was .25Hz with 2Kbps downlink, ST5 has 1 Kbps downlink)

• Collect and report Transponder status telemetry at TBD rate

• Collect and report Thermal Technologies (VECs) analog and digital status once every 5 seconds

Page 22: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 22

GSFC

PSE Management Requirements

• Provide autonomous S/C power safeing (MRD 10305020)

• Commands to enable/disable autonomous power safeing (MRD 10305030)

• Power safeing achieved via Load shedding (MRD 10305021)

• Provide Command & Telemetry interface to power switching electronics

• Provide on-board Battery State of Charge calculation

• Provide on-board Battery FDC

- Monitor:

• Battery Temperature

• Battery Voltage

• Battery Current

• Battery State Of Charge

Page 23: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 23

GSFC

Science Event Detection (1 of 2)

• Employ CCNT to communicate Science Events (MRD 20403000)

• Employ Magnetometer Data to sense Science Events (MRD 20404000)

• 1 Sec (TBR) Response time from Science Event detection to response on S/C 2 & 3 (MRD 20402000)

MagnetometerSenses

Magnetic Field

FSWDetects Event

and IssuesAlert Message

FSWRecieves Alert

Message &Responds

CCNTReceives AlertMessage and

broadcastsmessage toconstellation

CCNTReceives

Broadcast AlertMessage and

issues messageto C&DH

Spacecraft 1

Spacecraft 2 & 3

Science Event AlertBroadcast Message

TriggeringData Set

Event AlertMessage

Event AlertMessage

Page 24: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 24

GSFC

Science Event Detection (2 of 2)

• Autonomously detect, respond and communicate occurrences of Science Events (MRD 20401000)

• Only one Science Event processed per orbit (MRD 20404020)

• Maintain Data buffer of 16 Hz Mag data (100 S deep) (MRD 20404010)

• Commands to En(Dis)able Science Event Feature (MRD 10305030)

• Parameters to Science Detection Algorithm will be modifiable

• 4 Modes of operation (Science Validation Plan):

- Trigger Enabled, Listen Enabled

- Trigger Enabled, Listen Disabled

- Trigger Disabled, Listen Enabled

- Trigger Disabled, Listen Disabled

Page 25: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 25

GSFC

Cross-Link Exchange of HK Data

• Utilizes same communication path as Science Event Alerts

• TBD data packet broadcast to other members of constellation (MRD30301010)

- CCNT employed to perform broadcast operation

• Receiving spacecraft stores the cross-linked data packet for later downlink (MRD 30301010)

- When received from CCNT (via CCNT’s S-band) the packet is encoded in BlackJack Protocol, simply packetize in CCSDS and store the packet into recorder for later downlink.

• Data packet must contain Spacecraft ID in the packet data region (MRD 30301020)

• Commands to enable and disable feature (MRD 10305030)

Page 26: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 26

GSFC FSW Startup Modes• Boot Mode

- Provides ability to load EEPROM from GSE (MRD 10309050)

- Autonomously transitions to COLD Restart when GSE absent

• Cold Restart

- Power-up, watchdog reset, ground command, or s/w detected anomaly

- Code copied to RAM from EEPROM

- Data initialized

• Warm Restart

- Ground command or s/w detected anomaly

- Code copied to RAM from EEPROM

- Data preserved in current state

Page 27: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 27

GSFC

Processor Performance Req’ts

• Launch Margins

- 20 % margin on RAM (MRD 10309030)

- 5 % margin on EEPROM (MRD 10309040)

- 20 % margin on I/O Bandwidth (MRD 10309020 -- TBR)

- 20 % margin on instruction execution (MRD 10309010)

Page 28: Section 14.0 Flight Software

FSW RequirementsResource Estimates

ST5 PDR June 19-20, 2001

5Space Technology

“Tomorrow’s Technology Today”GSFC

Page 29: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 29

GSFC Memory Resource Estimates• Core MAP Heritage Instruction and Initialized Data: 0.98 Mbytes, with

average total of 75 Kbytes/task (13 Tasks)

• Estimate 12 Add’l Tasks @ 75 Kbytes each for Code and Initialized Data yields 0.9 Mbytes

• EEPROM

- MAP Heritage: 0.98 Mbytes

- New Code: 0.90 Mbytes

- BootStrap: 0.26 Mbytes

- SubTotal: 2.10 Mbytes

- 5 % margin: 0.20 Mbytes (5% of 4 Mb)

- Grand Total: 2.30 Mbytes Required (est); C&DH Providing 4 MB)

• DRAM

- MAP Heritage: 1.8 Mbytes (incl .5 MB for S/W Bus buffers)

- New Code: 1.3 Mbytes ([1.3MB/12] MAP Avg Task need * 12 new tasks)

- SubTotal: 3.1 Mbytes

- 20 % margin: 1.4 Mbytes (20% of 7 Mb)

- Grand Total: 4.5 Mbytes Required (est); C&DH Providing 7 MB)

Page 30: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 30

GSFC CPU Resources

10

70

60

50

40

30

20

41 45

50

57

48

28

Sci EventProcessing

CCNTValidation

ACSProcessing

Nominal1 Kbps

Downlink

Nominal100 KbpsDownlink

CoreC&DH FSWOverhead

CPU Utilization (%) for various OperationalConfigurations (TBR)

Data Acq &FDC BackgrdProcessing

Page 31: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 31

GSFC CPU Resources (Core C&DH Estimates)

Process NameMAP (%)

(@ 12 MHz)ST-5 Data Rate Adj

Incl in ST-5? (1=TRUE)

ST-5 (%) (@ 12 mHz)

1 Kbps DnLink

(Nominal)

100 Kbps DnLink

(Nominal)

ACS Mode (Nominal)

Sci Event Detection (Nominal)

CCNT Validation (Nominal)

1773 STD Intr TaskTask XB_STD_TASK16.991773 Hi Priority Intr Task XB_HIP_TASK+Tlm Output, Med Rate Serial Task TO_MSP_TASK5.97 0.083 1 0.50 0.50 0.50 0.50Time Code, 1 Hz Task TC_1HZ_TASK0.21 1.0 1 0.21 0.21 0.21 0.21 0.21 0.21Health/Safety Task HS_TASK1.50 1.0 1 1.50 1.50 1.50 1.50 1.50 1.50Software Bus Task SB_TASK0.06 1.0 1 0.06 0.06 0.06 0.06 0.06 0.06Command Injest Task CI_TASK0.37 0.5 1 0.19 0.19 0.19 0.19 0.19 0.19ACS Task AC_TASK13.31Tlm Output Task TO_TASK6.67 0.1 1 0.56 0.56 0.56 0.56 0.56 0.56Bus Controller Task XB_TASK0.22

Data Storage Task DS_TASK4.62 0.5 1 2.20 2.20 2.20 2.20 2.20 2.20System Manager Task (Tables) SM_TASK0.05 1.0 1 0.05 0.05 0.05 0.05 0.05 0.05Ephemeris Propagation Task EP_TASK+0.06Stored Command Task SC_TASK0.14 1.0 1 0.14 0.14 0.14 0.14 0.14 0.14Instrument Data Storage Task IS_TASK2.82Time Code Task TC_TASK0.05 1.0 1 0.05 0.05 0.05 0.05 0.05 0.05Checksum Task CS_TASK4.97 1.0 1 4.97 4.97 4.97 4.97 4.97 4.97Memory Scrub Task (recorder) MS_TASK5.46 0.1 1 0.55 0.55 0.55 0.55 0.55 0.55Memory Dwell Task MD_TASK0.12 1.0 1 0.12 0.12 0.12 0.12 0.12 0.12Tlm/Statistics Monitor Task TS_TASK2.78 1.0 1 2.78 2.78 2.78 2.78 2.78 2.78IDLE Task IT_TASK19.35OS Time KERNEL14.28 1.0 1 14.28 14.28 14.28 14.28 14.28 14.28

TOTAL+

Subtotal Percentages (Core C&DH) 100.00 28.14 28.14 28.14 28.14 27.64 27.64

Page 32: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 32

GSFCCPU Resources (New S/W Background Estimates)

Process Name1 Kbps DnLink

(Nominal)

100 Kbps DnLink

(Nominal)

ACS Mode (Nominal)

Sci Event Detection (Nominal)

CCNT Validation (Nominal)

SRAM DMA Overhead (flat avg) 1.00 1.00 1.00 1.00 1.00

MAG, CCNT Inputs and Analog sampling steals CPU cycles from the DMA circuitry, D&DH Designer says <= 1% on average for the DMA cycle stealing

Transponder Data Collection (ISRs) 0.31 0.31 0.31 0.31 0.31(9 ISRs per second to input 9 registers per second) + 1 mS for input overhead

Analog Sampling 0.89 0.89 0.89 0.89 0.894 sample tables per second * (4 ISRs + 2 mS in input each table and process)

Sun Sensor Interrupts 0.22 0.22 0.22 0.22 0.22 1 interrupt + 2 mS for overhead --- peak

CodeBlock Input Interrupts 0.86 0.86 0.86 0.86 0.8616 Codeblock Interrupts per second, at 1Kbps + 5 mS for Overhead

Time Coorelation Interrupts 0.223 0.223 0.223 0.223 0.223 1 ISR every 162 S + 2 ms of Overhead

Transponder Command Processing 0.11 0.11 0.11 0.11 0.11(5 cmds per second to get tlm * .25 mS for cmd output processing) + 1 mS overhead

Data Acq 2.62 2.62 2.62 2.62 2.62MAP, ACE actual less analog time plus extra 10mS for overhead

Battery Control Processing 5.00 5.00 5.00 5.00 5.00 assume 50 mS to process @ 1 Hz

VECs Processing 0.25 0.25 0.25 0.25 0.25Assume 1 Cmd/sec at 2 mS per cmd, + (2 Interrupts every 5 seconds + 2 mS to build pkt)

New S/W Background Processing 11.49 11.49 11.49 11.49 11.49

Page 33: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 33

GSFCCPU Resources (Config dependent processing)

Process Name1 Kbps DnLink

(Nominal)

100 Kbps DnLink

(Nominal)

ACS Mode (Nominal)

Sci Event Detection (Nominal)

CCNT Validation (Nominal)

DnLink FIFO Fill ISR (1 Kbps) 0.05 0.05 0.05 0.05 1 Interrupt at 0.99Hz + 5 mS of overhead per interruptDnLink FIFO Fill ISR (100 Kbps) 4.95 1 Interrupt at 9.9Hz + 5 mS of overhead per interrupt

CCNT Input ISR (Validation) 3.56 Assume 16 Pkts/S * (ISR time +2 mS to input pkt)CCNT Science Event ISR 0.52 1 ISR + 5 mS for Overhead

Magnetometer Input ISR 0.30 0.30 0.301 ISR per second + 0.75 mS to input and dispatch data set + 2 mS for overhead

ST-5 ACS Task 9.60

MAP, Safehold was 20mS for 1 Hz Controller @ 12Mz + 8 mS for Sun Data Processing + 20 mS overhead per cycle --all at 2 Hz

Thruster Firing 0.17 1 programming every revolution at 5 mS per prog

CCNT Input Pkt processing (Validation) 3.20Assume 16 Pkts per second * 2 mS to build CCSDS Pkt and Dispatch

CCNT Output Task (Validation) 1.604 pkts output; 4 mS per pkt to convert from CCSDS to CCNT protocol and load buffer for output

Magnetometer Input Processing 0.59 0.59

(16/2 samples averaged per sec * ((averaging 2 data sets with 3 data/set ) * ( 5 uS per addition)) + (3*20 uS for three averages)) + (1.5 mS tp pkt and dispatch / 1pkt every 6 seconds) + 10 mS of margin

Magnetometer Sci Event Processing 16.29

16 updates/sec * { (5 multiplications*10 uS/Multi)+ (2 Additions*4 uS per add) + (4 Subtractions*4uS per sub) + (2 Compares*20 uS per compare)+ (6 assignments*4 uS per assignment) + (3 cooeff adjustments*10 uS per Multi) + 20 uS for compare to threshold +

Sub Total Features Processing 0.93 4.95 10.11 17.75 8.42

Core C&DH Processing 28.14 28.14 28.14 27.64 27.64New S/W Background Processing 11.49 11.49 11.49 11.49 11.49

40.56 44.58 49.74 56.87 47.54 GRAND TOTAL at 12 MHz

Page 34: Section 14.0 Flight Software

Flight Software

FSW Design Concept

ST5 PDR June 19-20, 2001

5Space Technology

“Tomorrow’s Technology Today”GSFC

Page 35: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 35

GSFC

Identified Interrupts (Nominal)

• Sun Presence * Rate: 0.33 Hz @ 20 RPM

• Uplink (Codeblock Ready) Rate: 16 Hz @ 1Kbps

• Downlink (FIFO 1/2 full) Rate: 9.9 Hz @ 100Kbps, 0.099Hz @ 1Kbps

• 1 Hz Clock * Rate: 1 Hz

• Time Correlation Rate: once every 162 Sec (0.006 Hz)

• Transponder Tlm Data Ready * Rate: 7 Hz (TBR, 7 register reads to get status)

• Magnetometer Input Rate: TBD (1 Hz)

• CCNT Packet Input * Rate TBD (~16 Hz peak, C&DH has flow ctrl)

• CCNT Packet Output * Rate TBD ( <= 1 Hz)

• CCNT Science Event Rate: twice per orbit, max

• S/C Analog Sampling Complete * Rate: TBD (0.1 Hz avg, governed by FSW)

• VEC 1 Analog Sampling Complete Rate: once every 5 Sec (0.2 Hz)

• VEC 2 Analog Sampling Complete Rate: once every 5 Sec (0.2 Hz)

• Thruster Pulse Complete (TBR) Rate: TBD

• O/S Scheduler * Rate TBD (20 Hz)

Peak interrupt loading is governed by the external devices being operated. Worst case interrupt loading ( * ) is estimated to be 47 Hz peak (45 Hz average) and assumes neither Uplink or Downlink are operating while CCNT is performing attitude solutions during its validation operations. RF is not expected to be active due to power constraints.

Page 36: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 36

GSFC

Identified Interrupts (Exception)

• Uplink Underflow Rate: on exception

• Uplink Overflow Rate: on exception

• Downlink Underflow Rate: on exception

• Downlink Overflow Rate: on exception

• Downlink Out-Of-Synch Rate: on exception

• Transponder Command Parity Error Rate: on exception (transponder generated)

• Transponder Telemetry Parity Error Rate: on exception (C&DH generated)

• CCNT Communications Error (TBR) Rate: on exception (framing, parity, over/underflow)

• Magnetometer Input Error (TBR) Rate: on exception (framing, parity, over/underflow)

• EDAC Uncorrected Error Rate: on exception

• EDAC Corrected Error Rate: on exception

• NDP Exception Rate: on exception

• Memory Access Violation Rate: on exception

Page 37: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 37

GSFC Identified Tasks (MAP Heritage)

• Command Ingest (uplink command)

• Telemetry Output (downlink telemetry)

• Data Storage (recorder management)

• Stored Command (absolute & relative time sequence management)

• Time Code (time management)

• Health & Safety (watchdog and task management)

• Memory Scrub (EDAC memory management)

• Checksum (memory integrity management)

• System Manager (table and memory load/dump management)

• Memory Dwell (memory dwell management)

• Telemetry & Statistics Monitor (on-board FDC management)

• Software Bus (message routing and management)

• 1 Hz Time Mark (1 second synchronization, interrupt driven)

Page 38: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 38

GSFC Identified Tasks (New Software)• ACS Controller (Sun Acquisition, maneuver management)

• Transponder Management (configuration and telemetry collection)

• HK Data Acquisition (acquire and packetize HK data spacecraft)

• Magnetometer Management (science event & sample storage mgmt)

• CCNT Input Management (input CCNT packets for storage, TBR)

• CCNT Output Management (protocol wrapping and packet output)

• VECs Management (configuration commanding)

• Power Switching Management (configuration commanding)

• Battery Management (BSOC and FDC management)

• CULPRiT Controller (Voltage Bias Controller)

• CodeBlocks Input (accept codeblocks from C&DH, interrupt driven)

• SRAM Input (input MAG, Analog, and CCNT (TBR) data, interrupt driven)

Page 39: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 39

GSFC Identified Support Software• Operating System (baselining Vx-Works to leverage MAP efforts)

• Algebra Libraries (MAP heritage)

• NDP Exception Handling (MAP heritage)

• EDAC Exception Handling (MAP heritage)

• Thruster Firing Management (to command firings)

• CCNT Protocol Builder (to format commands output to CCNT)

Page 40: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 40

GSFC FSW Build PlanBuild 1

Core C&DH + Power Switch & Thruster

- * Uplink Command Processing (T)

- * Telemetry Output (T)

- * Time Management (T)

- * 1 Hz Time Mark (T)

- * Table Management (T)

- * Memory Up/Down Load Management

- * Health & Safety (T)

- * Memory Checksum FDC (T)

- * EDAC Refresher and FDC (T)

- CodeBlock Input Processing (T)

- Transponder Management (T)

- Thruster Firing Management

- HK Data Acquisition Management (T)

- Power Switching (T)

- SRAM Input (T)

Build 2

Controllers, Instruments and Safety

- * Recorder Management (T)

- * Stored Command Processor (T)

- * Telemetry & Statistics Monitor (T)

- * Memory Dwell (T)

- Attitude Controller (T)

- Magnetometer Data Management (T)

- CCNT Data Input (T -- TBR)

- CCNT Data Output (T)

- Battery FDC and State of Charge (T)

- VECs Technologies Support (T)

- CULPRiT Controller (T)

- Science Event Management

- Cross-Link HK Data Exchange

- (T) := Task

Page 41: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 41

GSFC

FSW Configuration Management

• All work products will be managed for configuration

• Web-based Discrepancy Reports during S/W development

- Primary communication of FSW changes

- DRs used throughout life-cycle & trace all changes to work products

• Web-based Document Center for distributing documentation

• Source Codes maintained by developers until Build Test

- After delivery to Build Test, team manages all changes via CM plan

- Prior to Build 2 delivery, Development Team manages change

- After Build 2 is delivered to Project, manage change via Project CCB

• Commercial CM Tool to manage source codes and documents

- Document access per Project plan

- Source codes access per NASA requirements

Page 42: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 42

GSFC Documentation

Document Number Status

• FSW Product Development Plan ST5-495-072 Draft

• FSW Configuration Management Plan ST5-495-053 Draft

• FSW Test Plan ST5-495-065 Draft

• FSW Build 1 Verification Matrix ST5-495-066 ------

• FSW Build 2 Verification Matrix ST5-495-067 ------

• FSW Acceptance Test Plan ST5-495-068 ------

• FSW Requirements Specification ST5-495-021 Preliminary

• ACS, FSW Requirements Specification ST5-495-069 Preliminary

• FSW Requirements Traceability Matrix incorporated into FSW Reqts Spec.

• FSW Command List ST5-495-070 Preliminary

• FSW Telemetry List (in excel) ST5-495-071 Preliminary

• FSW Quality Records List ------ ------

Page 43: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 43

GSFC FSW Test Planning• Requirements and Design tested informally by peer review, Formally

tested at FSW SRR/PDR and FSW CDR

• Generally, Heritage Components tested for Build Integration

- Walkthrus and Inspections are not planned for heritage components

- However, all new I/Fs will be unit tested

• New, non-Heritage S/W Components will be fully tested

- Subjected to Formal Inspection (NASA-STD-2202-93)

- Unit Tests after inspection.

• Developers Test thru board integration, independent test team performs Build Verification & supports Acceptance and S/C I&T

• Build Verification Test Plan exists in draft form

• Build Acceptance Test Plan is TBR

• Regression Test performed at all levels appropriate to the change

Page 44: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 44

GSFC FSW Test Planning -- IV&V• NASA’S W. Va IV&V Facility will provide:

- Software engineering process definition, implementation and improvement

- Analysis of mission-critical software and documentation, focusing on spacecraft flight software and external communications and instrument interfaces

• Independent review of Product Development Plan, FSW Requirements, CM Plan, Test Plan.

- Identification of strategies for mitigating Project risks associated with software

- Catastrophic/Critical/High Risk Functions List (CFL)

Page 45: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 45

GSFCFSW Development & Test Simulators

C&DH Electronics

NTGSE

Ground System

CCNT Sim

Dynamics Sim (HDS)

RS422 (Asynch)

SunSensorData(Analog)

MagnetometerData

RS422 (Synch)

ThrusterCommands(Discrete)

C&DH Support PC

Commands

Telemetry

Telemetry

Commands

Commands:--Battery Charge--Deployables--VECS Commands

TransponderCommand &

StatusSimulator

ThermistorsBattery StatusPower Status

VECs Analogs

Power SwitchBreadboard

RS232 (Asynch)

Monitor SupportEEPROM Load

Power Status

-Thruster-Magnetometer-Sun Sensor

Discrete Pulse

Models:Battery State of ChargeBattery Trickle chargingDeployables State

User Commands

FOR:Config VEC AnalogsConfig Battery modelsConfig DeployablesConfig all other signals

User Commands For:Select Data files for test outputRetreive input data for test analysisNecessary Configuration yet TBD

Page 46: Section 14.0 Flight Software

ST5 PDR June 19-20, 2001 14 - 46

GSFC

FSW, GSE/Simulator Deliveries

Support For: Simulator Identified: Supplied By: Delivery Date:C&DH Electronics C&DH BreadBoards C&DH (561) 1/02

Ground Support Equipment Asist Operations (580) In Lab

Ground Support Equipment FEDS Operations (580) 10/01

Power Switching Breadboards Power (560) 9/01

Breadboard Power Supply N/A Power (560) 9/01

Magnetometer Dynamics Simulator

Science Event Dynamics Simulator (Mag)

Sun Sensor Dynamics Simulator

Thruster Firing Dynamics Simulator

Attitude Control Dynamics Simulator

G&NC (570) 12/01

Power/Battery FDC NTGSE

Deployables NTGSE

Variable Emmittance Analogs NTGSE

8/01

Transponder Transponder Cmd/Status Sim 8/01

CCNT CCNT Simulator

C&DH (566)

8/01