摘要 |
First, link names of all the USB devices, that are connected to the system at that time, are retrieved, and a port is opened for one of the link names (S10, S20). Then, a command requesting a printer, that is connected to the subject port, to transmit device ID is issued, and a model name is extracted from device ID that is received in response to the command (S30-S50). Then, a serial number is retrieved from the subject link name (S60). Then, a port name such as "BRUSB001[PR1000]", is created to include both the serial number and the model name (S70). The created port name is registered in S80, and the subject port that has been processed in S20-S80 is closed (S90).
|