Patent ID: 6915368

Claim:
A method of processing the driving program of a smart peripheral device in a computer system using an operating system, wherein the smart peripheral device is connected to the computer system through a peripheral bus and the operating system includes a bus-driving program for controlling the peripheral bus and the processing method comprising: requesting that the operating system return any data regarding a connectivity status of a particular peripheral device connected to the peripheral bus; receiving any plug-and-play indicator from the operating system; inspecting a driving program of the smart peripheral device using the plug-and-play notification and determining whether the connected peripheral device is supported; and if the connected peripheral device is supported, using the plug-and-play notification to open the function device object established by a factory-provided driving program; using the function device object to retrieve a physical device object established through the bus-driving program; using the physical device object to retrieve a plurality of descriptors and calling data of the connected peripheral device; and using the descriptors and calling data to set up necessary data for executing the driving program of the smart peripheral device; if the connected peripheral device is not supported, a general-purpose driving program for communicating with the smart peripheral device through the smart peripheral device to the physical device object, where if the smart peripheral device is connected to the computer system: the general-purpose driving program switches on the function device object in order to: retrieve the physical device object established through the bus-driving program according to the function device object; and retrieve a plurality of descriptors and calling data of the smart peripheral device according to the physical device object: and finally set up necessary information for executing the general-purpose driving program.