Patent ID: 8185305

Claim:
A rewrite apparatus for reading data stored in a storage medium and writing data into the storage medium, and for executing a refresh which reads data stored in a predetermined area of the storage medium and rewrites the read data in the predetermined area, the rewrite apparatus comprising: a storage device configured to store a refresh start condition under which the refresh is started in the predetermined area of the storage device; a control device configured to execute a start condition determination for determining whether the refresh start condition stored in the storage device is satisfied, and for executing the refresh in the predetermined area when it is determined that the refresh start condition is satisfied; a route identifying device configured to identify a route of a vehicle; and a road type identifying device configured to identify a type of a road on which the vehicle is traveling, wherein: the rewrite apparatus is mounted to the vehicle, the refresh start condition stored in the storage device is satisfied when a possibility to execute the refresh completely is at least a predetermined risk value, the refresh start condition stored in the storage device includes a first condition about an expected time during which the vehicle travels on an expressway; and when the type of the road on which the vehicle is traveling is the expressway, the control device is further configured, in the start condition determination, to calculate an expected time during which the vehicle travels on the expressway in accordance with the route of the vehicle identified by the route identifying device, and to consider that the first condition is satisfied when the expected time during which the vehicle travels on the expressway is a predetermined time or over to thereby determine that the refresh start condition is satisfied.