\documentclass[11pt]{article}
%\documentstyle[11pt]{article}

\usepackage{lscape}

\topmargin -0.75truein
\oddsidemargin -0.4truein
\textheight 9.25truein
\textwidth 6.7truein
\hbadness=10001
\hfuzz=200pt


\begin{document}
%\input dspace12.tex
%\input pstricks.tex
%\input psfig
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\newcommand{\bc}{\begin{center}}
\newcommand{\ec}{\end{center}}
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\bd}{\begin{description}}
\newcommand{\ed}{\end{description}}
\newcommand{\bt}{\begin{tabbing}}
\newcommand{\et}{\end{tabbing}}
\newcommand{\eg}{{\it e.g.~}}
\newcommand{\ie}{{\it i.e.~}}
\newcommand{\ul}{\underline}
\newcommand{\axaf}{{\em AXAF}}
\def\la{\hbox{\rlap{$<$}\lower0.5ex\hbox{$\sim$}\ }}

\large
%\vspace*{-0.5in}
\centerline {\bf 4.23\_V2.3 Flight Software Event Histogram, CC 3x3,
Compress All,}
		
\centerline {\bf and Timed Lookup Patch Revision C } 
\vspace{0.25in}

\normalsize
\noindent{\it Last Revised: \today} \\
\noindent{\bf Filename: sw\_evhcc3x3\_catl} \\

\noindent {\bf BRIEF FUNCTIONAL DESCRIPTION:} \\
\normalsize

This procedure loads the standard patches and four optional patches.
This procedure is modified from 4.22\_V2.0 Flight Software Event 
Histogram and CC 3X3 Patch which loads the standard patches and 
two optional patches. The text describing the purpose
of the four optional patches in this procedure
 is included below in italics:

{\it This patch loads the standard flight patches and adds two new
optional patches in addition to the current optional patches.
The first new patch (known as the smTimedLookup patch) allows the
submode of Timed Exposure Mode to be read from dynamic tables.
In addition, a Compress All patch is added to allow all rows of
compressed raw mode data to be transmitted, even when compression
fails for some rows. 
The current optional patches, Event Histogram Mode and Continuous Clocking
3X3 Mode, had to be modified in order to be consistent with the new
smTimedLookup patch.  The functionality of the Event Histogram Mode and
Continuous Clocking 3X3 Mode is identical to that contained in the 
Revision B patch, but the patches in Revision C are distinct from those in 
Revision B. Under no circumstances should optional patches from different 
Revisions be used together as this will certainly lead to a hardware reset
of the BEP.  The
ACIS Flight SW team recommends that the optional patches be loaded
together with the standard patches; therefore this procedure first
removes any patches which may have been installed and then proceeds to
load the standard patches followed by the optional patches.

NOTE on MIT version identifiers: Numeric revision identifiers are preliminary,
and, although logged and controlled, have not been subjected to peer
review and sign-off. Letter revision identifiers reflect items which
have undergone peer review and sign-off. This procedure loads
``standard Rev. B'' and optional patches from
``optional Rev. C''.  Refer to the release notes for standard patches,
optional patches, and patch combination certification (see references 
below). \\}
 
The patches have been modified to include additional changes to the
ACIS Flight Software.  The CC3x3 patch uses new memory addresses 
and must be reloaded. In addition, the
Event Histogram patch has been altered to use a lookup table. The
CompressAll patch contains changes to allow for a more complete transmission of compressed raw data. The 
smTimedLookup patch is used in conjunction with the Event Histogram Mode
patch and allows for a dynamic timed exposure mode selection via a 
lookup table.
Refer to the release notes 
for standard patches, optional patches, and patch combination 
Revision C certification for more detail (see references 
below).

{\bf This procedure will change the flight software version from 30 to
version 31. Ground software should be changed to reflect the version
change once this procedure is executed.}
 
The FOT should implement the loading of the patches (steps 3.1 through 
step 7.1) as four realtime command loads in order to maximize the uplink
efficiency.  The command system should be configured with a blocking
factor of 90 and a minimum time delay of 3~s.\\

The following procedure loads the Standard and Event
Histogram/CC3x3/SmTimedLookup/CompressAll optional set
of patches into the ACIS instrument, and dumps the load to the
ground for verification. \\

This procedure implements the following basic operations:
\be
\item 
Confirm the current state of ACIS by verifying BEP HW and SW LEDs
\item
Reset the contents of the patch list to remove any existing patches,
dump the contents of the patch list to verify that the list is empty
\item
Load the ``standard Rev. B'' patch load
\item 
Load the smTimedLookup patch (part of ``optional Rev. C'')
\item
Load the Event Histogram patch (part of ``optional Rev. C'')
\item
Load the CC3x3 patch (part of ``optional Rev. C'')
\item 
Load the compressAll patch (part of the ``optional Rev. C'')
\item
Load the patch load version number
\item
Dump the contents of the patch list to verify the load
\item
Warm boot the DPA to activate the new load and verify proper BEP boot
\ee


Refer to the Option Patch Release Notes, for MIT 36-58020 Rev. C
for a detailed description of the effects of this patch load. \\

The verifiers for the procedure will be:
\be
\item
ACIS Ops will confirm the current status on the BEP
\item
A command echo for the reset patch list command
\item
A command echo for the 1st dumpPatchlist command
\item
A single bepReadReply packet for the 1st empty dump
\item
A series of command echoes for the addPatch commands. The SOT will
verify that each Result field of each commandEcho packet has a value
of 1. 
\item
A command echo for the dumpPatchlist command
\item
A series of bepReadReply packets for the dump command
\item
A bepStartupMessage packet with a modified ``version == 31'' field
\ee

ACIS flight software personnel will review the contents of the various
dumps after the procedure has been run. \\

\vspace{0.15in}
\normalsize
\noindent {\bf ASSUMED INSTRUMENT STATE:} \\
\normalsize
This assumes that DPA-A and/or DPA-B is on and the flight SW is running either
BEP-A or BEP-B. \\


%\vspace{0.25in}
\normalsize
\noindent {\bf SPECIAL INITIAL CONDITIONS:} \\
\normalsize
The OCC command system must be configured with ``Minimum Time Delay of
3~s'' and a ``Blocking Factor'' of 90.\\
Spacecraft telemetry should be in Format 2 when the patches are loaded
in order to ensure that all command verifiers can be included in the
telemetry stream.\\

%\newpage 

%\vspace{0.25in}
\normalsize
\noindent {\bf OPERATIONAL CONSTRAINTS/CAUTIONS:} \\
\normalsize
In order to avoid truncating a dump, each dumpPatchlist command
must be followed by at least a 30 second delay.

\vspace{0.15in}
\normalsize
\noindent {\bf CONTINGENCY PLANS:} \\
In case of a problem that may arise during the procedure, the
following contingencies may be followed:
\be
\item
If there is a failure to confirm a telemetry verifier, there are two
courses of action. If we have not yet loaded the event histogram
patch, we will restart from step 2.1 and reload the
patches. If we have already loaded the event histogram patch, we will proceed to
step 9 and dump the patch list.  If the dump of the patches verifies
against the reference file, we will proceed with the warm boot in step 10.
If the patch list does not verify, we will dump the patches one more time.
If the same discrepancy exists, we will return to step 2.1 and load the
patches again.  If the patch list verifies, we will proceed with the warm 
boot in step 10.
\item
If there is a failure to confirm the patch list dump(step 9), first
repeat step 9, dumping the 
patch list, to confirm that there wasn't a downlink corruption. If the
list is confirmed, continue to the next step(10), otherwise, restart
from step 2.1 and reload the patches.
\item 
If the warm boot of the BEP fails(step 10), retry the reboot (step
10). If this continues to fail, dump additional information for
diagnostic purposes (SOT Procedure 1.10, v 2.1 sw\_dump, FOT
SOP\_61055) and load version 30 patches (SOT Procedure 4.22, v. 2.0,
sw\_evhcc3x3b, FOT SOP\_61083).
\item
If there is a comm loss during the procedure, request a new comm. The
time at which the new comm is needed depends on the point of loss of
signal. The only vulnerability would occur if comm was dropped 
before the complete patch set was loaded (completion of step 7). If
the BEP then rebooted spontaneously, it would return to version 11
flight software.
\ee

\vspace{0.15in}
\normalsize
\noindent {\bf REFERENCES:} \\
\normalsize
\vspace{-0.15in}
\be
\item MIT 36-58020, Standard Patch Release, Rev. B
\item MIT 36-58020, Optional Patch Release, Rev. C
\item MIT 36-58021.02, certification of patch combination 
cc3x3+eventhist+smtimedlookup+compressall, Rev. C
\ee

\normalsize
\noindent {\bf CHANGE HISTORY:} \\
\normalsize

{\bf V1.0}
\begin{itemize}
\item Initial version, copied from 4.22\_V2.0 Flight
Software Event Histogram and CC 3x3 Patch
\end{itemize}

{\bf V1.1}
\begin{itemize}
\item Edited to reflect changes per Peter Ford's suggestions.
\item Both the tex file and the tables were updated to move the location of
the smTimedLookup patch.
\end{itemize}

{\bf V1.2}
\begin{itemize}
\item Edited to reflect changes per Peter Ford's suggestions.
\item Updated tables to add command verifiers and change telemetry format.
\end{itemize}

{\bf V2.0}
\begin{itemize}
\item ACIS team signed-off version
\end{itemize}

{\bf V2.1}
\begin{itemize}
\item Added more specific BEP/DPA initial states in the ``Assumed Instrument
State'' section.
\item Modified HW LED states to be verified in step 9.6 .  Added 1STAT5ST
to the list to be verified.  Changed expected state of 1STAT4ST to be
``0'', indicating BEP A is active.
\end{itemize}


{\bf V2.2}
\begin{itemize}
\item Allowed for BEP A or BEP B to be active for the initial state in
the ``Assumed Instrument State'' section.
\item Added a new step to verify the status of ACIS before starting
the uplink of patches.
\item Changed expected state of 1STAT4ST to be ``0 or 1'', indicating
BEP A or BEP B is active.
\item Added Contingency Plans section.
\end{itemize}

{\bf V2.3}
\begin{itemize}
\item Changed TLM verifier in step 9.1 from \lq\lq wubcc\_bcom.dumpedPatches.1.dat"
to \\
\lq\lq /nfs/benz/h1/beavis/wubcc\_bcom.dumpedPatches.1.dat''
\end{itemize}

\newcommand{\tablecaptiontext}{ACIS Event Histogram, CC 3x3,
smTimedLookup and CompressAll Flight Software Patch Revision C}

\input{sw_evhcc3x3_catl.tab}

\end{document}





