This page describes the diagnositcs for the hatch. Because the hatch has more than one mechanism associated with it, it is important that tests of the small and large hatch may be made independantly. Below are scripts used to test the hatch. These scripts are available under the lriseng account only.

tdopen

Usage: tdopen [small|big|both] (default is both)

Opens the hatches

Typical output:

[1007] lriseng@lris-red: tdopen
 
Opening BOTH hatches 3...
 
Requesting Opening BIG hatch FIRST ...
do_open: process hatch 1

BigHatch: Bit B = 1, Bit A = 0
SmlHatch: Bit 9 = 0, Bit 8 = 1
c = 9

td_read: 9: 9: - BigHatch OPEN & SmlHatch is CLOSED.-
returned from td_read w/ stat=0 & state of hatch=9
sending clear bits cmd  ...
Requesting Opening SMALL hatch...
do_open: process hatch 2

BigHatch: Bit B = 1, Bit A = 0
SmlHatch: Bit 9 = 1, Bit 8 = 0
c = 10

td_read: 10: 10: -- BOTH Big & Small Hatches are OPEN.--
returned from td_read w/ stat=0 & state of hatch=10
sending clear bits cmd  ...


      

tdclose

Usage: tdclose [small|big|both] (default is both)

Closes the hatches

Typical output:

[1006] lriseng@lris-red: tdclose
 
Closing BOTH hatches 3...
 
Requesting Closing SMALL hatch FIRST ...
do_close: process hatch 2

BigHatch: Bit B = 1, Bit A = 0
SmlHatch: Bit 9 = 0, Bit 8 = 1
c = 9

td_read: 9: 9: - BigHatch OPEN & SmlHatch is CLOSED.-
returned from td_read w/ stat=0 & state of hatch=9
sending clear bits cmd  ...
Requesting Closing BIG hatch ...
do_close: process hatch 1

BigHatch: Bit B = 0, Bit A = 1
SmlHatch: Bit 9 = 0, Bit 8 = 1
c = 5

td_read: 5: 5: -- BOTH Big & Small Hatches are CLOSED.--
returned from td_read w/ stat=0 & state of hatch=5
sending clear bits cmd  ...

      

tdread

Usage: tdread

Reads the current position of the hatch.

Typical output:

[1002] lriseng@lris-red: tdread
buf[0]=0X0
buf[1]=0X2a
buf[2]=0X38
buf[3]=0X41
buf[4]=0X46
buf[5]=0X46
buf[6]=0Xd
buf = - *8AFF -
sscanf'ed to tval 35583
resulting s is -8AFF-

BigHatch: Bit B = 1, Bit A = 0
SmlHatch: Bit 9 = 1, Bit 8 = 0
c = 10

10: 10: -- BOTH Big & Small Hatches are OPEN.--