![]() CATEGORIES: BiologyChemistryConstructionCultureEcologyEconomyElectronicsFinanceGeographyHistoryInformaticsLawMathematicsMechanicsMedicineOtherPedagogyPhilosophyPhysicsPolicyPsychologySociologySportTourism |
Protocol Layer 5 (Session Layer)Operating Modes Figure 1: Mode Transition Diagram Power-on starts the unit in bootloader mode. The remaining mode transitions have the following triggers. In each case where a mode transition is caused by a command, the command is assumed to have been addressed to the supervisor processor. Table 24: Mode Transition Mechanisms
Table 25: Mode Description
The table above shows the configuration of the major hardware elements in the different modes. Self-Test Sequence The star tracker can be commanded to run a self test sequence. It will run through the following steps: 1. Turn on the main power switch. Log analog telemetry. Wait 1 second. 2. Turn on the +1.8 V Vdd IO rail. Log analog telemetry. Wait 1 second. 3. Turn on the +2.8 V detector rail. Log analog telemetry. Wait 1 second. 4. Turn on the Vdd core rail. Log analog telemetry. Wait 1 second. 5. Turn on the Vdd MPU rail. Log analog telemetry. Wait 1 second. 6. Release the functional processor reset signal. Log analog telemetry. 7. Boot the functional processor. Switch to full speed. Put the power supplies into default state. Log analog telemetry. Wait 1 second. 8. Command the Vdd MPU rail up to its maximum voltage. Log analog telemetry. Wait 2 seconds. 9. Command the Vdd MPU rail to its default. Command the Vdd core rail to its maximum voltage. Log analog telemetry. Wait 2 seconds. 10. Comand the Vdd core rail to its default. Command the Vdd IO rail to its maximum voltage. Log analog telemetry. Wait 2 seconds. 11. Command Vdd IO rail to its default. Engage Smart Reflex dynamic voltage adjustment. Configure the detector for a diagonal test pattern and read one image. Log analog telemetry. 12. Read second image. Wait 1 second. Compare the images to the predicted test pattern, and to each other. Log analog telemetry. 13. Configure the detector with its operational settings and read two images. Return hardware health telemetry. Log analog telemetry. Wait 1 second. 14. Compute image statistics on dark columns. Log analog telemetry. 15. Drop functional processor to idle speed. Wait 1 second. Log analog telemetry.
The timeout period is overridden and set to 30 seconds for the duration of the self-test. This gives the test time to complete before returning to idle mode. Byte Order All multi-byte values transported in the data field of NSP messages are in little-endian format. That is, the least-significant byte is stored first, and the most-significant byte is stored last. Command Codes Table 26: Command Codes
The table above shows the command codes that can be used by the host spacecraft to communicate with the star tracker. It shows which of the star tracker processors will accept each type of command in each mode. The functional processor will only accept host commands in maintenance and application modes, and the supervisor processor supports only a limited command set in bootloader mode. In addition to the codes shown above, there are a number of private command codes used by the star tracker’s two processors to communicate with each other. These are not documented here. PING (0x00) The PING command is typically used during testing to verify communications. Incoming data is ignored. The reply packet contains a human-readable text string containing: · The type of device and the manufacturer · The name, and compile time and date of the software that is currently running on the target processor. Command Format
Reply Format
INIT (0x01) The INIT command is used to change the operating mode of a processor. In general, and INIT with data is interpreted as an address to jump to. An init with no data is interpreted as a reset or exit command. In all cases, if a reply has been requested (“Poll” bit set to ‘1’) then the reply will be sent before the processor state is changed. The supervisor will respond to an INIT with no data by completely resetting the device, returning to bootloader mode. If it is in bootloader mode, it will respond to an INIT with 4 bytes of data by running an Application Module at the corresponding 32-bit start address. By convention, devices will ship from the factory with the supervisor processor primary application program stored at address 0x00002000. Thus, a command of INIT 0x00002000 will start the default behaviour. If the functional processor is in application mode, it will respond to an INIT with no data by exiting the Application Module and returning to its previous program. This is probably its bootloader (maintenance mode). If one application module is called from a second, then the INIT will return to the first application module. The functional processor will respond to an INIT with 4 bytes of data by attempting to load an Application Module from the corresponding 32-bit page address in NAND memory. If the CRC of the module fails, NAK will be returned. Otherwise the module will be executed. By convention, devices will ship from the factory with the functional processor primary application program stored at address 0x0008000. Thus, a command of INIT 0x00008000 will start the default behaviour. When using the INIT command to the functional processor in application mode, be sure that the second application module is compatible with the first. If both use the same DRAM resources, trouble will occur. Do not attempt to INIT to an Application Module that is already running. Command Format Reboot command:
Application start command:
Reply Format Reboot reply:
Application start reply:
PEEK (0x02) The PEEK command is used to read the device memory. Short and long formats of this command are available for historical reasons. Short commands can be distinguished from long commands by their lengths. The supervisor processor has no restriction on the alignment or length of a peek. The functional processor can perform only the following peeks:
Date: 2015-12-17; view: 966
|