# Safe mode in spacecraft

Safe mode is an operating mode of a modern uncrewed spacecraft during which all non-essential systems are shut down and only essential functions such as thermal management, radio reception and attitude control are active.
Safe mode is entered automatically upon the detection of a predefined operating condition or event that may indicate loss of control or damage to the spacecraft. Usually the trigger event is a system failure or detection of operating conditions considered dangerously out of the normal range. Cosmic rays penetrating spacecraft electrical systems can create false signals or commands and thus cause a trigger event. The central processor electronics are especially prone to such events. Another trigger is the lack of a received command within a given time window. Lack of received commands can be caused by hardware failures or mis-programming of the spacecraft, as in the case of the Viking 1 lander.
The process of entering safe mode, sometimes referred to as safing, involves a number of immediate physical actions taken to prevent damage or complete loss. Power is removed from non-essential subsystems. Regaining attitude control, if lost, is the highest priority because it is necessary to maintain thermal balance and proper illumination of the solar panels. A tumbling or cartwheeling spacecraft can quickly roast, freeze or exhaust its battery power and be lost forever.

## In safe mode

While in safe mode the preservation of the spacecraft is the highest priority. Typically all non-essential systems, such as science instruments, are shut down. The spacecraft attempts to maintain orientation with respect to the Sun for illumination of solar panels and for thermal management. The spacecraft then awaits radio commands from its mission control center monitoring for signals on its low-gain omnidirectional antenna. Exactly what happens while in safe mode is dependent on the spacecraft design and its mission.
Recovery from safe mode involves reestablishing communication between the spacecraft and mission control, downloading any diagnostic data and sequencing power back on to the various subsystems to resume the mission. The recovery time can be anywhere from a few hours to days or weeks depending on the difficulty in reestablishing communications, conditions found on the spacecraft, distance to the spacecraft and the nature of the mission.

## Overriding normal safe mode behavior

Normal safe mode operation can sometimes be overridden. A spacecraft's ability to enter safe mode may be suppressed during crucial spacecraft operations (such as the orbit insertion maneuver of the Cassini spacecraft at Saturn), during which – if a critical failure were to occur – most, if not all, of the mission objectives would be lost anyway. On occasion, a spacecraft is placed in safe mode deliberately by mission control, as the Spirit rover was on sol 451.

## Modern incidents
### 2005

* The Spirit rover had several incidents with safe mode.

### 2007

* Cassini–Huygens download of the Iapetus flyby data was interrupted by a safing event September 10, 2007.
* New Horizons entered safe mode March 19, 2007 due to an uncorrectable memory error in the primary Command and Data Handling (C&DH) computer.
* Odyssey has broken the communications link between the Mars Exploration Rovers and Earth during several sudden safing events.

### 2009

* The Mars Reconnaissance Orbiter (MRO) entered safe mode on August 26, 2009 for the second incident in a month, the fourth in 2009 and the eighth since launch in 2005. The spacecraft was kept in safe mode until December 8, 2009.
* Kepler entered safe mode on June 15 and again on July 3, 2009. Both cases were triggered by an on-board processor reset.
* Dawn entered safe mode due to a programming error during its February 17, 2009 Mars flyby.
* MESSENGER entered safe mode during its third flyby of Mercury on September 29, 2009.

### 2014

* The Philae lander entered safe mode on 15 November 2014, after its batteries ran down due to reduced sunlight and an off-nominal spacecraft orientation at its unplanned landing site.

### 2015

* New Horizons entered safe mode on July 4, 2015, ten days before its closest approach to Pluto, after a timing problem in a command sequence. Some scientific data was lost, but with only minimal impact on mission objectives.

### 2016

* Juno entered safe mode on 18 October 2016, just prior to a planned maneuvering burn using its main engine to lower its orbit. The spacecraft's on-board computer was rebooted, and subsequent check-out of its scientific research systems showed no major malfunctions. The exact cause remains under investigation.

### 2018

* The Opportunity rover entered safe mode on 13 June 2018 during the 2018 Mars dust storm. The opacity of the atmosphere was such that almost all sunlight was blocked and the rover's solar panels were unable to recharge its batteries even for minimal maintenance and communications. It was hoped it would reboot once the atmosphere cleared in October, but it did not, suggesting either a catastrophic failure or that a layer of dust has covered its solar panels. On February 13, 2019, NASA officials declared that the Opportunity mission was complete, after the spacecraft had failed to respond to over 1,000 signals sent since August 2018.
* The Hubble Space Telescope entered safe mode on October 5, 2018, after one of its three active gyroscopes failed. The failing gyro had been exhibiting end-of-life behavior for approximately a year, and its failure was not unexpected. Hubble had six new gyros installed during Servicing Mission 4 in 2009 (STS-125). The spacecraft usually uses three gyros at a time, but can continue to make scientific observations with just one.

### 2021

* NASA announced that the Hubble Space Telescope went into safe mode after experiencing synchronization issues with internal spacecraft communications. Science observations were temporarily suspended.

## Incidents resulting in spacecraft loss or near loss

* SOHO entered safe mode and was nearly lost on June 25, 1998. Normal operations were eventually restored after a gap of four months.
* NEAR entered safe mode, tumbled out of control and was nearly lost during the first attempt of Eros orbit insertion on December 20, 1998.
* Mars Global Surveyor entered safe mode and was lost when its batteries were overheated and destroyed by incorrect solar orientation on November 2, 2006.
* ISEE-3 was lost on September 16, 2014, during a civilian reboot effort. It is believed that the 36-year-old spacecraft entered safe mode due to a drop in power from its solar panels. The crowdfunded project has been unable to re-establish contact.