Patent ID: 7404027

Claim:
A slave device in an information processing system which communicates with a host device through a communication interface of the slave device, executes processing corresponding to a situation, and transmits a present state and a processed result to the host device, comprising: a program provided in a computer of the slave device for controlling operation of the slave device to execute the processing corresponding to the situation, wherein the program comprises: a discriminating function for discriminating types of communication interfaces of the slave device though a control part provided in the slave device which controls the communication interfaces; a communicating function for communicating with the host device through the communication interface; an analyzing function for analyzing a command transmitted from the host device by utilizing a module to execute processing corresponding to each of the communication interfaces; and a controlling function for controlling operation of the slave device depending on a command after analyzing is executed by utilizing a single module which is not dependent on the communication interfaces; wherein the discriminating function is structured to read a content of a predetermined address on the slave device; and the discriminating function is structured to identify the communication interface of the slave device as a USB-type communication interface if the content of the predetermined address matches a characteristic initial value, and the discriminating function is structured to identify the communication interface of the slave device as not a USB-type communication interface if the content of the predetermined address does not match a characteristic value.