Patent ID: 8554961

Claim:
A method of handling impending peripheral device decoupling, comprising: receiving at a controller of a host device, from an onboard detector of a peripheral device, an indication of a detected impending loss of wired electrical connectivity with the peripheral device while a host interface of the host device is electrically coupled to a device port of the peripheral device, the host interface operative for data exchange between the host device and a non-volatile memory of the peripheral device; determining by the controller of the host device, in response to the indication of the impending loss of wired electrical connectivity, whether there is a data flow between the host device and the peripheral device; determining by the controller of the host device whether the detected impending loss of wired electrical connectivity presents a risk to data in the data flow; triggering a damage reduction process in response to determining that the detected impending loss of wired electric connectivity presents a risk to the data in the data flow; providing a user alert at the host device indicating the impending loss of wired electrical connectivity in response to a combination of the indication of detected impending loss of wired electrical connectivity and the determination that there is the data flow between the host device and the peripheral device; and providing an indication from the host device to the peripheral device to cease monitoring of the impending loss of wired electrical connectivity when the data flow between the host device and the peripheral device has completed.