GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument Flight Software Flight.

Slides:



Advertisements
Similar presentations
CS-334: Computer Architecture
Advertisements

GLAST LAT Instrument 1 Summary of Progress  Completed TVAC with no additional reboots  Ran refresh rate test showing that the refresh rate was not an.
GLAST LAT ProjectManager’s Face to Face - ISOC, 17 March GLAST Large Area Telescope WBS 4.1.B Instrument Science Operations Center Manager’s Face.
1 GLAST Large Area Telescope Monthly Mission Review LAT Flight Software Status June 6, 2007 Jana Thayer Stanford Linear Accelerator Center Gamma-ray Large.
GLAST LAT Project I&T Integration Kickoff Meeting 03/09/04 Online 1 GLAST Large Area Telescope: I&T Integration Kickoff Meeting EGSE Hardware March 9th,
GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument Flight Software Flight.
GLAST LAT Project4.1.7 Dec 15’03 V 1 FSW Organization Chart FSW Lead J. J. Russell Project Manager (IPM) L. Klaisner Electronics & FSW Manager G. Haller.
GLAST LAT Project ISOC Peer Review - March 2, 2004 Document: LAT-PR Section 3 LOF Operations Concept 1 Gamma-ray Large Area Space Telescope GLAST.
GLAST LAT Project Quarterly Review, Aug. 14, 2001 Gunther Haller1 GLAST Large Area Telescope: Electronics, DAQ & Flight Software Gunther Haller Stanford.
GLAST LAT Project28 March 2005 LAT System EngineeringLAT Test Planning Meeting GLAST LAT GLAST LAT System Engineering Gamma-ray Large Area Space Telescope.
ISOC Peer Review - March 2, 2004 Section GLAST Large Area Telescope ISOC Peer Review Test Bed Terry Schalk GLAST Flight Software
GLAST LAT ProjectNovember 18, 2004 I&T Two Tower IRR 1 GLAST Large Area Telescope: Integration and Test One and Two Tower Integration Readiness Review.
GLAST Large Area Telescope ISIS Post Acceptance Test Review 28 January 2005 ISIS Completion Status Jana Thayer Stanford Linear Accelerator Center
GLAST LAT ProjectDOE/NASA Status Review, March 30 & 31, DAQ & FSWV8 1 GLAST Large Area Telescope: Gunther Haller SLAC LAT Chief Electronics.
GLAST LAT ProjectPDU/GASU MRR, February 3, DAQ & FSWV1 1 GLAST Large Area Telescope: B. Estey, G. Haller SLAC xxxx LAT Quality Engineer
INPUT-OUTPUT ORGANIZATION
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Telecommand and Telemetry Data Dictionary Services Sergio.
CS-334: Computer Architecture
Solar Probe Plus FIELDS ICU/FSW Peter R. Harvey Dorothy Gordon –ICU Will Rachelson – FSW Dec 1, 2012.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Current Status Sergio Maldonado FSW Test Team Lead Stanford Linear Accelerator Center.
1. 2 Purpose of This Presentation ◆ To explain how spacecraft can be virtualized by using a standard modeling method; ◆ To introduce the basic concept.
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 LAT Housekeeping Sergio Maldonado Stanford Linear Accelerator.
1 Lunar Reconnaissance Orbiter (LRO) CRaTER Technical Interchange Meeting C&DH Flight Software April 14, 2005.
Top Level View of Computer Function and Interconnection.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Primary Boot Code (PBC) D. Wood Naval Research Laboratory.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Diagnostics Framework James Swain Stanford Linear Accelerator.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Software Watchdog Steve Mazzoni Stanford Linear Accelerator.
GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument Flight Software Flight.
GLAST LAT ProjectCDR/CD3 Review May 12-16, 2003 Document: LAT-PR-01967Section 4 1 GLAST Large Area Telescope: Instrument Design Overview Lowell A. Klaisner.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Thermal Control System Steve Mazzoni Stanford Linear.
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes 12/25/20151 Flight Software Template for Instrument Critical Design Review Gary M. Heiligman.
GLAST LAT ProjectLAT Muons at NRL 28 Feb 2006 J. Eric Grove Naval Research Lab Washington DC LAT Muon Data Taking During Environmental Test at NRL J. Eric.
GLAST LAT Project LAT System Engineering 1 GLAST Large Area Telescope: LAT System Engineering Pat Hascall SLAC System Engineering Manager
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Systems Engineering Mike DeKlotz GSFC Stanford Linear Accelerator Center Gamma-ray Large.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Test Suites (Backup) Stanford Linear Accelerator Center Gamma-ray Large Area Space Telescope.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Instrument Configuration James Swain Stanford Linear.
IT3002 Computer Architecture
GLAST LAT Project4.1.7 G. Haller V2 1 GLAST Large Area Telescope: Electronics, Data Acquisition & Flight Software W.B.S April Status Gunther.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
GLAST LAT ProjectISOC CDR, 4 August 2004 Document: LAT-PR-04500Section 3.21 GLAST Large Area Telescope: Instrument Science Operations Center CDR Section.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
GLAST LAT ProjectCDR/CD-3 Review May 12-16, 2003 Document: LAT-PR Section 5 IOC Subsystem 1 GLAST Large Area Telescope: IOC Subsystems WBS: 4.1.B.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
HarveyFIELDS iCDR – Flight Software Solar Probe Plus FIELDS DCB Flight Software Design Peter Harvey University of California 1.
GLAST Large Area Telescope Instrument to Spacecraft Interface Simulator (ISIS) Test Readiness Review 15 December 2004 Jana Thayer Eric Hansen Stanford.
GLAST LAT ProjectCDR/CD-3 Review, May 12-15, 2003 LAT-PR FSW Overview LAT FSW is divided into two components –SIU FSW LAT command and control from.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR FSW Overview Sergio Maldonado FSW Test Team Lead Stanford Linear Accelerator Center.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Test Environment Sergio Maldonado FSW Test Team Lead Stanford Linear Accelerator Center.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Secondary Boot Code (SBC) D.Wood Naval Research Laboratory.
GLAST LAT ProjectDOE/NASA Peer Critical Design Review, March 19-20, 2003 D. Nelson 1 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Instrument Configuration by File James Swain Stanford.
GLAST LAT ProjectSLAC Internal Review, April 16-18, 2002 LAT-PR Electronics and Flight Software WBS GLAST Large Area Telescope: Electronics,
GLAST Large Area Telescope Instrument Flight Software Flight Unit Peer Review 16 September 2004 Software Architecture J. J. Russell Stanford Linear Accelerator.
Generic Remote Interface Unit (RIU) Interface Control Document (ICD)
GLAST Large Area Telescope:
GLAST Large Area Telescope:
GLAST Large Area Telescope
Operating Systems Chapter 5: Input/Output Management
GLAST Large Area Telescope
GLAST Large Area Telescope
Chapter 13: I/O Systems.
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument Flight Software Flight Software I A.P.Waite Stanford Linear Accelerator Center Engineering Physicist (650) Gamma-ray Large Area Space Telescope

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 2 Outline Key Functional Requirements FSW Interfaces – Logical – Physical Communications – 1553 – LCB Architecture File Management LAT Command and Telemetry Housekeeping

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 3 Derived Functional Requirements (SIU) InterfacesS/C CMD & TLMLAT ControlSystem StartupFunctions Authentication Real-Time Commands Event Driven Commands GPS Message Attitude Message GBM Message Transient Alert S/C Repointing Request File Upload File Download Save Audit Trail 1553 Solid State Recorder PPS Interrupt GBM Interrupt Watchdog Off-CPU Timers EEPROM / File DAQ I/O EPU I/O Thermal Mode Control/Synch Configuration Control Fault Handling Save Audit Trail Processor Boot Instrument Startup Housekeeping Low Rate Science Calibration (master) Diagnostics (master) Identify Transients Event Post Processing Instrument Flight Software Ancillary Message *Blue indicates items addressed in EM1 Document: LAT-SS-00399

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 4 Derived Functional Requirements (EPU) InterfacesS/C CommandingLAT ControlSystem StartupFunctions SIU I/O Event Builder I/O CPU Reset Off-CPU Timers Mode Control/Synch Processor Boot Calibration (slave) Diagnostics (slave) Event Monitoring Event Filtering Instrument Flight Software *Blue indicates items addressed in EM1 Document: LAT-SS-00399

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 5 FSW External Interface Summary – SIU Ground / SC Commands / Uploads SC TimeTone SC Ancillary/Attitude Data Telemetry to SC SIU FSW Via 1553 Immediate Trigger from GBM GRB Telecommand from GBM Via 1553 Discrete 1 PPS Time Hack from SC Command / Response Data Via LCB Via 1553 LAT Repoint Request to SC Via 1553 Telemetry to SSR Via LCB Communications to EPU Via LCB Command / Response CMDs to LAT HW (includes config. data) Via LCB Boot Status Outputs (2 levels – i.e. 2 bits) Discrete TCS Heater Control Signals PCI PDU / GASU Power On Signals PCI Communications from EPU Via LCB

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 6 FSW External Interface Summary – EPU SC TimeTone SC Ancillary/Attitude Data EPU FSW Discrete 1 PPS Time Hack from SC Communications from SIU Via LCB Processed Events to SSR Via LCB Communications to SIU Via LCB Event Data Via LCB

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 7 RAD750 External Interfaces In flight configuration the RAD750 by itself has two interfaces – PCI interface PCI standard bus, 32 bits wide, 33 MHz – Programmable Input/Output Discretes Provided as a feature of the RAD750 Programmability includes – Input or output » Inputs can be configured to deliver interrupts – Time/timer functions » Driven by internal or external clocks The RAD750 board is mounted in a crate with a custom backplane

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 8 RAD750 Interfaces: Backplane, PCI and PIDs RAD750 SIB LCB GASU Cable PCI BusCustom Bus RAD750 RAM 1553 RAM SC Cable Results FIFO Bridge Chip Section that deals with PCI/memory operations Bridge Chip Section that deals with PIDs LATpDiscretes 1553 RAD750 CPU 1553 Summit Thermal Control BufferingFPGA (CorePCI) 20 MHz / 2 TCS Boxes EEPROM SIB 40 MHz CLKCLK PPSPPS GBMGBM

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 9 RAD750 PID Assignment #InputSIUEPUInput/Output 23-25SC Inputs 0-2YInput 21-22GBM Interrupt Primary/RedundantYInput 17LCB PCI InterruptYYInput 16SIB PCI InterruptYInput 15Select MeYOutput 14Clock EnableYOutput 11-13External Clock – PrimaryYYInput 8-10External Clock – RedundantYYInput 7SC Primary/Redundant SelectionYOutput 5-6SC Outputs 0-1YOutput 2LCB Interrupt – AlternateYYInput 1SIB Interrupt – AlternateYInput

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 10 RAD750 Signal Definitions SC Inputs – 3 general purpose levels from the SC Clock Enable – Enables the 40 MHz clock to the GASU Select Me – Contingency Clocks – 3 Sets, 2 External, 1 Internal Clock, driven by a 10 MHz version of the LAT clock Snapshot, driven by the 1 PPS Clear, driven by a reset signal – Purpose 2 External clocks provide the CPUs with a counter synchronized with the system counters 1 Internal clock is used in systems without access to 1 PPS GPS input (test stand) SC Primary / Redundant Selection – Selects Primary/Redundant SC Inputs/Outputs set SC Outputs – 2 Lines to provide primary boot status, before 1553 is operational

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V Interface MIL_STD_1553B (1553) bus is primary interface for exchanging information between LAT and SC – Commands from SC – Telemetry to SC – Commands to SC (limited to SC Repoint Request) SC will act as bus controller (BC) node Each SIU can act as remote terminal (RT) node Bus protocol and schedule under control of SC – Spectrum Astro 1553 Bus Protocol Interface Control Document All traffic will consist of CCSDS packets

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V Architecture

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 13 SIU 1553 Subaddresses SubaddressTransfer DirectionTransfer RateInterfaceDescription Command Receive (CmdRx) BC  RT 3.5 – 10 kbps (3.5 kbps always for SC GPS, time and NAV messages) Asynchronous Telecommand input Ground commands Ground uploads SC real-time cmds SC stored cmds SC GPS, time, NAV msgs GBM alert messages Command Transmit (CmdTx) RT  BC 0 – 2.5 kbpsAsynchronous Telecommand output SC repoint request Telemetry (Telem) RT  BC 0 – 30.7 kbpsAsynchronous / Synchronous Variable-length tlm packets Real-time housekeeping Real-time diagnostics Alerts Data Wraparound (Wrap) N/A SC test of RT basic functionality

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V Telecommand Packet Structure Additional detail in Spectrum Astro 1553 Bus Protocol Interface Control Document

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V Telemetry Protocol Data Unit Structure Additional detail in Spectrum Astro 1553 Bus Protocol Interface Control Document GLAST Telemetry Protocol Data Unit (GT_PDU) Structure Telemetry transfers use 960 byte data transfer block GLAST Telemetry Packet Structure Telemetry transfers use 960 byte data transfer block

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 16 SIU 1553 Drivers Interrupt Mode Drivers – Intended for use after RTOS has booted and its services are available – Provide a service task that responds to controller device interrupts Polled Mode Drivers – Intended for use before RTOS has booted and is providing Interrupt handlers Multitasking Advanced memory management – Less flexible for general use Status – Design is mature – Code already exists 1553 Device and Shared Memory 1553 Task Synchronous Callbacks CCSDS Packet Queues 1553 Device and Shared Memory Synchronous Callbacks CCSDS Packet Queues Application

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 17 LCB Interface Communication within LAT provided by LAT Communications Board (LCB) Built in two form factors – PMC mezzanine card (used for EM1/EM2 with mv2304 SBCs) – cPCI module (used for EM2/Flight with mcp750/rad750 SBCs) LCB communicates with nodes on the command and event fabrics – Instrument to CPU (asynchronous, event fabric) – CPU to CPU (asynchronous, event fabric) – CPU to SSR (asynchronous, event fabric) – CPU  instrument (synchronous, command/response fabric) LATp is packet protocol for all traffic through this interface

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 18 LCB Architecture Event Data Fabric Event Data Fabric CMD/RSP Fabric CMD/RSP Fabric PCIBUSPCIBUS DMA Engine Control Registers Export FIFO Results FIFO Buffering and Logic CMD Data RSP Data Event Data In Event Data Out Fabric Reset

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 19 LCB Drivers Document: LAT-TD Hardware Interface Driver – Supports low-level services of the LCB Access to LCB PCI registers Initialization and configuration routines PCI utility/convenience routines – Intended as private interface used by LIO to support high-level public interface Interrupt Mode Driver – Public, stable interface to multiple users – All user applications communicate via LIO interface Polled Mode Driver – Designed Status – Code has “seen” the LCB – Design less mature than 1553 LCB Hardware LCBD Task Unsolicited Handler 00 Applications Command Queue Solicited Response Queue Unsolicited Response Queue 00 Unsolicited Response Queue 01 Unsolicited Response Queue N … System Init Unsolicited Handler 01 Unsolicited Handler N

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 20 LAT Protocol (LATp) Overview Document: LAT-TD LATp packet consists of one or more 128-bit LATp cells – First cell in sequence contains 16-bit LATp header – Each cell is preceded by a 2-bit cell announce sequence – Each cell is trailed by a truncate bit and parity bit LATp packet formats – For hardware configuration, packet formats are specified in programming ICDs – For CPU-to-CPU and CPU-to-SSR communications, LATp packets are built up into CCSDS source packets Cell Announce Cell Header Cell Body Cell Truncate Cell Parity LATp status – Already developed and in use for hardware testing at 16 sites world-wide (SLAC, NRL, GSFC and Italy)

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 21 LATp Two Cell Packet Example Cell Announce Cell Header Cell Body Cell Parity Cell Announce Cell Body Cell Parity Cell 1Cell 2 Cell Truncate

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 22 LATp Cell Header Requires Response Destination Address Protocol Type Source Address Header Parity

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 23 FSW Architecture LAT FSW architecture strongly coupled to LAT hardware design All LAT-side CPU communications go via the LCB – SIU to EPU via GASU (EBM) – SIU to PDU for internal power control via GASU (CRU) Initial PDU and GASU power on via separate SIB mechanism – SIU to TEMs for instrument configuration via GASU (CRU) – SIU to AEM, GEM for instrument configuration via GASU (CRU) – Event data to EPU for processing via GASU (EBM) – All data to SSR from SIU or EPU via GASU (EBM)

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 24 GASU Role in FSW Communications Architecture cPCI RAD750 EPU 0 (SIB) LCB CRU EBM 4 x 32 bit registers 31 x 32 bit registers GEM 22 x 32 bit registers 17 x 64 bit registers 19 x 96 bit registers 1 x 112 bit register Command/Response Unit cPCI RAD750 SIU SIB LCB cPCI RAD750 EPU 1 (SIB)LCB TEM0 TEM1 TEM2 TEM15 PDU’s.. GASU ACD Electronics Module Event Builder Module GLT Electronics Module Event Data Fragments Trigger Data TEM0 TEM1 TEM2 TEM15.. EPU 0 In EPU 1 In SIU In SIU EPU 0 EPU 1 SSR Merge Combinatoric Logic Event Data Cmd/Response Trigger Data

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 25 FSW Framework Fundamental construct for LAT FSW is Master/Slave tasks – Master running in SIU – Slaves running in SIU or in EPUs or in both – Communications between master and its slaves is full-duplex Slave tasks may have multiple inputs – E.g. a slave task receiving instrument data as well as messages from its master task – Slave will have two input queues with priority given to messages from the master task Master tasks may also have multiple inputs – Needed to achieve connectivity back to the spacecraft – Master task will also have two input queues, one from the slave(s) and one from the spacecraft 1553 dispatch, with priority given to the 1553 messages Structure of masters and slaves can be replicated as often as necessary to accomplish all the functions required of FSW

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 26 FSW Architecture with Internal Framework 1553 Rx service SIU Crate/BackplaneEPU Crate/Backplane Q Q Q Q Q Q Q Q Q Q Q Q Masters LCB Rx service Q Q Q Q Slaves Telecommand (SC to LAT) Telemetry (LAT to SC) Master (SIU) to slave (EPU) Slave (EPU) to master (SIU) Physics data from instrument Data to SSR 1553 Tx service LCB Tx service “Magic 7” File/Object HSK Instr. Phys. “Magic 7” Primitives File/Object HSK Instr. Phys. Command/Response LCB Rx service Q LCB Tx service Q Q Other Tasks Software Watchdog 1 PPS Interrupt GBM Interrupt Q Q Q Slaves “Magic 7” File/Object HSK Q Q Other Tasks Software Watchdog 1 PPS Interrupt

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 27 Description of Masters “Magic 7” deals with dispatching the 7 “magic” messages per second from the spacecraft – 5 attitude – 1 time-tone – 1 ancillary (containing orbit information as well as status info) File master deals with all file upload/copy/delete/… processing Housekeeping master deals with accumulating and examining housekeeping information – Requests info from SIU, EPUs, GASU, hardware – Provides monitoring and alarming – Outputs telemetry Instrument Physics master deals with all instrument data related processing Immediate (or primitive) master deals with the very primitive LAT configuration command set

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 28 Framework Implementation Implemented as a framework so that replication is trivial Frameworks then acquire their identities by plugging in routines – Plugging in functionality can be a one-time configuration step at system start for static tasks “Magic 7” functional code File master functional code Immediate/primitive master functional code – Can also be dynamic at run time Instrument Physics master – Physics acquisition code during normal operations – Charge injection calibration code – Other diagnostics during engineering mode Housekeeping master – May collect different kinds of information during various modes (normal observing, calibration, diagnostics, engineering, etc.)

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 29 On-Board File System LAT will use an on-board file system for storage – Configuration files – Startup & command scripts – Object modules File system is managed by TFFS (commercial product) – TFFS compensates for the fact that EEPROM is not infinitely writeable Spreads the writes as evenly as possible Manages damaged memory using bad blocking techniques Preserves logical continuity even if the file is not physically contiguous – A 4 MB EEPROM with 1000 writes supports 4 GB lifetime During a 5 year mission, can write ~2 MB/day Example of configuration file sizes: TKR mask 2 bits per strip – Stored “dumb”: ~222 kByte – Stored “smart” (OR and XOR the bits then gzip): ~20 kByte – Update frequency estimated at less than once a week LAT Usage of the File System – Supports both EEPROM and RAM based file systems Allows testing in RAM before commitment to EEPROM – Limits file specifications to 32-bits with sub-directory depth of 1 Limitation driven by the size restrictions of telecommand packets

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 30 EEPROM Layout Layout In EEPROM Bank 0 AddressUseComment 0x RTOS executable image (compressed)An absolutely linked image 0x RTOS auxiliary module 0 (SSB0)Second stage boot executable 0x RTOS auxiliary module 1 (SSB1)Second stage boot script 0x Start of region managed by TFFSObject & Configuration Files 0x End EEPROM BANK 0 (2 MB) SIB Reserved for Secondary Boot Managed By TFFS Software EEPROM BANK 1 (2 MB) Managed By TFFS Software

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 31 LAT Command and Telemetry SIU receives 62-byte CCSDS telecommand packets via 1553 bus LAT executes all commands received immediately – Complex activities contained in files Configurations Command lists – Executed sequentially – No scripting SC may perform multi-step command procedures by executing sequences of time-tagged commands File uploads may be performed in real-time during commanding contacts Commands to initiate execution of activities / configurations in files will be stored as time-tagged commands on SC

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 32 LAT Telecommands (1) Document: Telecommand and Telemetry Formats (Draft) Limited number of commands defined to date – Boot – Commands required to support EM1 – “Magic 7” SC messages APIDFunction CodeDescription 0x640 0Boot Start. Removes the primary boot code from the initial timeout and allows further operational telecommands or file uploads for the primary boot code to take place. 1Boot Reset. Forces a reset of the primary boot code into a known restart state. 2Boot Memory Dump Start. Start a dump of memory into the HKP telemetry by the primary boot code. 3Boot Memory Dump Cancel. Cancels a primary boot code memory dump that is in progress. 4Boot Error Dump. Dump the value of a queued error work by the primary boot code. 5Boot RTOS Execute. Begins execution of an RTOS image and the second stage boot process. Boot Telecommands

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 33 LAT Telecommands (2) APIDFunction CodeDescription 0x641 0File Upload Start. Announces the beginning of a new upload and provides total size and packet count. 1File Upload Cancel. Cancels an outstanding upload set. 2File Upload Commit. Writes the upload data to the final storage destination. 3File Upload Data. Actual file upload data packet string. 4File Dump. Dump the contents of a file into telemetry packets. 5File Delete. Remove a file from on board storage. 6File Copy. Copies the contents of one file into another. 7File Directory Dump. Dump a listing of a directory into a series of telemetry packets. 8File Object Link. Loads the contents of an ELF object file into memory. File Telecommands APIDFunction CodeDescription 0x642 0Memory Dump. Dump the contents of a range of memory into a series of telemetry packets. 1Memory Symbol Lookup. Dump the value of a symbol table symbol into a telemetry packet. 2Memory Pool Status. Dump the status of a memory pool into a telemetry packet. Memory Telecommands

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 34 LAT Telecommands (3) APIDFunction CodeDescription 0x643 0No Operation. Just sends back a telemetry packet reply. 1Reboot. Reboot the processor. 2Task Create. Spawns a new task. 3Task Delete. Deletes a task. 4Task Status. Dump the status of tasks into a series of telemetry packets. Task Telecommands APIDFunction CodeDescription 0x701 1SC Attitude (SIATTITUDE). Contains latest SC attitude information. 2SC Ancillary (SIANCILLARY). Contains latest SC position and mode. 3SC Time (SITIMETONE). Contains synchronization time information for GPS PPS. Spacecraft Telecommands

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 35 LAT Telecommands (4) APIDFunction CodeDescription 0x648 0GLT register read 1GLT register load 2GLT command 3TIC register read 4TIC register load 5TIC command 6PDU register read 7PDU register load 8PDU command 9TEM register read 10TEM register load 11TEM command 12CCC register read 13CCC register load 14CCC command 15CRC register read 16CRC register load 17CRC command 18CFE register read 19CFE register load FE Primitive Telecommands APIDFunction CodeDescription 0x648 20CFE command 21TCC register read 22TCC register load 23TCC command 24TRC register read 25TRC register load 26TRC command 27TFE register read 28TFE register load 29TFE command 30AEM register read 31AEM register load 32AEM command 33ARC register read 34ARC register load 35ARC command 36AFE register read 37AFE register load 38AFE command

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 36 LAT Telecommand Format Each telecommand in table has detailed definition Example shows File Upload Commit command to place file data contents from file upload buffer to the actual storage device location /ee0/d009/f , which translates to: EEPROM partition 0, directory 9, file 4 (EEPROM partition 0 is specified as file device 2)

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 37 Telemetry LAT has been allocated a real-time telemetry bandwidth of a 116-byte housekeeping packet 4 times per second Translates to an instrument telemetry rate of 3.7 kbps Telemetry APIDs not defined yet Additional diagnostic telemetry may be commanded up to a limit of 960 byte blocks 4 times per second (including the housekeeping telemetry) – Subject to SSR space and downlink bandwidth constraints

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 38 Housekeeping and Low Rate Science Housekeeping – A set of metrics monitoring the health of the LAT – Monitored by the SIU – Run independently of the event path (“always on”) – The housekeeping scans collect Instrument: temperatures, voltages, currents, … (via LCB command/response) CPU metrics: idle time, memory usage, … (via LCB CPU-CPU communications) Low Rate Science – A set of counters which can be multiplexed to test points – Controlled and monitored by the SIU – Run independently of the event path (“always on”) – All counters can be started and stopped synchronously – Counters can target a variety of information … examples ACD tile singles rates A single tower’s three-in-a-row trigger rate

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 39 LAT HSK (0)

GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 LAT Flight Software FSW I V1 40 LAT HSK (1) Uniform sampling rate for all LAT HSK allows 1 sample per 8 sec for each sensor This rate leaves ~1.5 kbps for CPU metrics and LRS