摘要 |
PROBLEM TO BE SOLVED: To provide the control method of a controller and the controller capable of simplifying the development of an application, and improving processing performance on device control.SOLUTION: A method for controlling a controller includes: a step of receiving a processing request from an application 1; a step of, when the received processing request is an initialization request, determining whether or not the request is a first initialization request after the activation of the application 1; a step of, when the received processing request is the first initialization request, transmitting the request to a device driver 3; a step of storing initialization setting information indicating the state after the initialization processing of the device driver 3; a step of detecting the state of the device driver 3; a step of, when an error is generated in the device driver 3, performing restoration processing based on the state; and a step of, when the device driver 3 is restored, making a request for setting the state of the device driver 3 to the state based on the initialization setting information. |