Information processing device, control method, program, and storage medium

The information processing apparatus addresses driver installation issues by generating appropriate icons and ports using WSD and TCP/IP protocols, ensuring smooth transitions and avoiding port interference during driver updates.

JP7534882B2Active Publication Date: 2024-08-15CANON KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020128509
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-29
Publication Date
2024-08-15
Estimated Expiration
2040-07-29

AI Technical Summary

Technical Problem

Existing driver installation processes in PC environments, particularly when transitioning from an Inbox driver to an Outbox driver, often result in the inability to replace the Inbox driver associated with an icon due to residual WSD ports, leading to interference with new WSD icon generation.

Method used

An information processing apparatus and method that includes an installation mechanism for installing drivers, generating icons, and controlling the display of icons based on port and icon availability, ensuring appropriate driver installation by detecting reusable icons and generating new ports and icons as needed, using protocols like WSD and TCP/IP to avoid port interference.

Benefits of technology

Enables accurate and efficient generation of icons corresponding to installed drivers, preventing interference from residual ports and ensuring seamless driver transitions without redundant icon creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534882000013
    Figure 0007534882000013
  • Figure 0007534882000007
    Figure 0007534882000007
  • Figure 0007534882000009
    Figure 0007534882000009
Patent Text Reader

Abstract

To provide a mechanism capable of achieving further appropriate processing of installation processing of a driver.SOLUTION: In response to the installed driver, it is determined whether or not generation of an icon can be performed by first generation means for generating the icon. When it is determined that the generation of the icon cannot be performed by the first generation means, the icon corresponding to the installed driver is generated by second generation means for generating the icon.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing apparatus capable of installing a driver corresponding to a device, and a control method thereof. 、 program and storage media Regarding. [Background technology]

[0002] To use a peripheral device (hereafter referred to as a "device") such as a printer from a computer (hereafter referred to as a "PC"), first a device driver is installed on the PC. Next, a device port is generated in which the device's destination information (address, interface, protocol, etc.) is set. Then, an icon object (hereafter referred to as an "icon") is generated that is identified as a virtual printer device on the OS (Operating System). At this time, the previously installed device driver and device port are associated with the icon. As a result, when a print command is issued to the icon, the driver associated with the icon is called and print data is generated. Furthermore, the print data generated by the driver is sent to the device based on the destination information set in the port associated with the icon.

[0003] Device drivers installed on a PC are roughly classified into two types. One is the driver provided by the device manufacturer, which is called an outbox driver. The other is the driver provided by the OS, which is called an inbox driver. Generally, outbox drivers have more features than inbox drivers, so device manufacturers recommend using outbox drivers.

[0004] In the Windows (registered trademark) OS, device drivers can be installed using OS functions such as Plug-And-Play and Add Printer Wizard without using a driver installer provided by the device manufacturer. If the PC is connected to the Internet, the above-mentioned OS functions download and install the outbox driver via the Internet. On the other hand, if the PC is not connected to the Internet, the inbox driver that is included in the OS in advance is installed.

[0005] When installing an Outbox driver in a PC environment where an Inbox driver has already been installed, the Inbox driver linked to the icon cannot be replaced. Therefore, the user had to delete the Inbox driver and the icon linked to the Inbox driver (hereinafter referred to as the "Inbox icon") before installing the Outbox driver. The user can delete the Inbox driver and the Inbox icon in advance by using the method described in Patent Document 1. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2018-194910 A Summary of the Invention [Problem to be solved by the invention]

[0007] In recent years, there has been a demand for more appropriate driver installation processing.

[0008] An object of the present invention is to provide a mechanism that enables a more appropriate driver installation process to be realized. [Means for solving the problem]

[0009] In order to solve the above problems, an information processing apparatus according to the present invention is an information processing apparatus capable of communicating with a device, comprising: an installation means for installing a driver corresponding to the device; and a first generation means for generating an icon corresponding to the driver installed by the installation means. a second generating means for generating an icon corresponding to the driver installed by the installing means; and an acquiring means for acquiring the number of ports registered in the information processing device before and after the icon generation is executed by the first generating means, if the number of ports has not increased before and after the icon generation is executed by the first generating means, An icon corresponding to the driver installed by the installation means is displayed. By the second generating means Generate Control so that and a control means. Effect of the Invention

[0010] According to the present invention, when a driver is installed, an icon corresponding to the driver can be appropriately generated. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 illustrates a configuration of a network system. [Diagram 2] FIG. 1 is a diagram showing the configuration of a PC. [Diagram 3] FIG. 2 is a diagram showing a configuration of a device. [Figure 4] FIG. 13 is a diagram illustrating a configuration of an application. [Diagram 5] FIG. 13 is a diagram showing a UI screen of an application. [Figure 6] FIG. 13 is a diagram showing a UI screen of an application. [Figure 7] 13 is a flowchart showing the processing of an application. [Figure 8] 13 is a flowchart showing the process of S706. [Figure 9] 13 is a flowchart showing the process of S707. [Figure 10] 13 is a flowchart showing the process of S902. [Figure 11] 13 is a flowchart showing the process of S903. [Figure 12] 13 is a flowchart showing the process of S709. [Figure 13]13 is a flowchart showing the process of S1202. [Figure 14] 13 is a flowchart showing the process of S1202. [Figure 15] 13 is a flowchart showing the process of S1408. [Figure 16] 13 is a flowchart showing the process of S1202. [Figure 17] 13 is a flowchart showing the process of S1601. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] [First embodiment] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0013] Fig. 1 is a block diagram showing an example of the configuration of a network system including an information processing device (PC 101). In the system shown in Fig. 1, the PC 101, a device 102, and a router 103 are connected to each other so as to be able to communicate with each other via a network 104. The devices communicate with each other according to the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol and UDP. The network 104 is connected to an external network 105 via the router 103.

[0014] The device 102 is a peripheral device such as a printer, a copier, a facsimile, a scanner, or a device having a combination of these functions. The device 102 supports a predetermined communication protocol, for example, the TCP / IP protocol. The device 102 also supports WSD (Web service on Devices), which is a Windows OS standard network protocol that supports UPnP (Universal Plug and Play). The device 102 also supports the LLMNR (Link-Local Multicast Name Resolution) protocol that can resolve the names of nearby network devices. The WSD function and LLMNR function of the device 102 can be enabled / disabled by a user directly operating the device 102. The router 103 has a DHCP (Dynamic Host Configuration Protocol) server function, and assigns IP addresses to the PC 101 and the device 102.

[0015] 2 is a diagram showing an example of the configuration of the PC 101. The PC 101 includes a monitor 201, a CPU 202, a ROM 203, a RAM 204, an auxiliary storage device 205, a keyboard 206, a pointing device 207, and a network board 208. The components are connected to each other via a bus 209. The monitor 201 displays, for example, a user interface (hereinafter, referred to as UI) screen of an application such as an application 401 or a driver.

[0016] The CPU 202 comprehensively controls the PC 101, and for example, loads programs such as applications and drivers stored in the ROM 203 and the auxiliary storage device 205 into the RAM 204 and executes them. For example, the operation of this embodiment is realized by the CPU 202 executing the programs loaded into the RAM 204. The ROM 203 stores, for example, basic software such as a BIOS, and various programs for implementing the processes executed by the PC 101. The RAM 204 temporarily stores, for example, software such as applications and drivers, and data used by them. The auxiliary storage device 205 is, for example, a hard disk, and stores software (programs) such as an OS, applications, drivers, and various modules.

[0017] The drivers stored in the auxiliary storage device 205 include device drivers (such as a scanner driver, a printer driver, and a facsimile driver) that control the device 102. The drivers stored in the auxiliary storage device 205 also include a display control driver that controls the display on the monitor 201, a keyboard driver that controls the keyboard 206, and a pointing device driver that controls the pointing device 207. The drivers stored in the auxiliary storage device 205 also include a network driver that controls communication with a network board 208.

[0018] The applications stored in the auxiliary storage device 205 include an application 401 shown in FIG. 4. The application 401 has a device search function using TCP / IP. The application 401 may call a module having the search function and execute the function. The search function may be provided in another module. The keyboard 206 and the pointing device 207 are input devices for inputting instructions from the user. The network board 208 communicates with the device 102 via the network 104.

[0019] Fig. 3 is a diagram showing an example of the configuration of the device 102. Fig. 3 shows an example of the hardware configuration when the device 102 is a printer. The device 102 includes a CPU 301, a ROM 302, a RAM 303, a communication unit 304, a recording unit 305, an operation unit 306, and a display unit 307. The various components that make up the device 102 are connected to each other via a bus 308.

[0020] The CPU 301 is, for example, a microprocessor. The CPU 301 functions as a central processing unit of the device 102 and performs overall control of the device 102. The CPU 301 controls the communication unit 304, the recording unit 305, the operation unit 306, and the display unit 307, for example, by loading a program stored in the ROM 302 into the RAM 303 and executing the loaded program. The ROM 302 stores, for example, various programs for implementing processes executed by the device 102. The RAM 303 is used, for example, as a work area for the CPU 301, and temporarily stores various data.

[0021] The communication unit 304 communicates with other devices via the network 104. The recording unit 305, for example, prints on a recording medium such as paper based on image data. The operation unit 306 includes an input device such as a button or a touch panel. The display unit 307 displays, for example, a UI screen for operating the device 102 and various information on the device 102. If the device 102 is a device other than a printer, the device 102 includes other components as appropriate instead of or in addition to the recording unit 305. For example, if the device 102 is a scanner, the device 102 includes a reading unit that optically reads an image on a document.

[0022] Here, an example of a problem assumed by this embodiment will be described. For example, Windows 10 (registered trademark) comes standard with a driver for Microsoft IPP (Internet Printing Protocol) Class Driver (hereinafter referred to as "IPP driver"). If the device to which the driver is to be installed supports the IPP protocol, the IPP driver can be installed by using the Add Printer Wizard. The icon generated at this time is linked to a WSD (Web service on Devices) port (hereinafter referred to as "WSD icon").

[0023] Normally, when a WSD icon is deleted, the WSD port associated with the icon is automatically deleted as well. However, in the case of a WSD icon that was generated associated with an IPP driver, the WSD port may remain even after the WSD icon is deleted. If the Outbox driver is installed in a PC environment where the WSD port associated with the IPP driver remains, the remaining WSD port may prevent a new WSD icon from being generated.

[0024] 4 is a block diagram showing an example of the configuration of an application that communicates with the device 102. As shown in FIG. 4, the PC 101 holds an application 401, a driver INF file 402, a printer driver 403, a scanner driver 404, and a fax driver 405.

[0025] The application 401 is a driver installer that installs device drivers in the PC 101. The application 401 searches for devices 102 connected to the PC 101, and displays information related to the devices detected by the search on the monitor 201. Then, the application 401 installs in the PC 101 a driver for a device that corresponds to information selected by a user from the displayed information.

[0026] The driver INF file 402 includes driver information corresponding to the driver (at least one of a printer driver 403, a scanner driver 404, and a fax driver 405) installed by the application 401. The driver information includes, for example, model information of the device.

[0027] The application 401 has a device search unit 406, a detected device output unit 407, a driver installation unit 408, a generated port type determination unit 409, a reusable icon detection unit 410, and a new port / icon generation unit 411. Each unit shown in Fig. 4 is realized by the CPU 202 of the PC 101 reading and executing the application 401 stored in the auxiliary storage device 205. In this embodiment, the application 401 searches for devices within the same network, and displays the detected devices on the monitor 201. On the other hand, if a device within the same network cannot be searched for, the application 401 displays on the monitor 201 a message that the device could not be detected.

[0028] The device search unit 406 compares the device name information of the target device acquired from the driver INF file 402 including the driver information with the device name information of the device searched by the device search unit 406. Here, the target device refers to a device model that the application 401 supports. If the device name information of the device searched by the device search unit 406 matches the device name information of the target device acquired from the driver INF file 402, the detected device output unit 407 displays the detected device on the monitor 201. The user can select a desired device from the list of devices displayed on the monitor 201.

[0029] The driver installation unit 408 installs a driver corresponding to a device (hereinafter, referred to as a "desired device") selected by the user from the devices displayed by the detected device output unit 407. The driver to be installed differs depending on the type of device selected by the user from the devices displayed by the detected device output unit 407. For example, if the device selected by the user is a printer, the application 401 installs a printer driver 403 in the PC 101. If the device selected by the user is a scanner, the application 401 installs a scanner driver 404 in the PC 101. Furthermore, the device selected by the user may be an MFP (Multi-Function Printer). In that case, the application 401 installs at least one of the printer driver 403, the scanner driver 404, and the fax driver 405 in the PC 101. For example, if the MFP has a scanner function and a print function, the printer driver 403 and the scanner driver 404 are installed. Also, for example, if the MFP has a scanner function, a print function, and a fax function, the printer driver 403, the scanner driver 404, and the fax driver 40 are installed. In addition, if an Inbox driver corresponding to a desired device is linked to an icon already registered in a PC, the linked Inbox driver can be replaced with an Outbox driver provided by the device manufacturer while leaving the icon as is. In this embodiment, a case will be described in which the Inbox driver is replaced with the Outbox driver by installing the Outbox driver by a device installer.

[0030] The generated port type determination unit 409 communicates with the device 102 to identify the type of port (port type) that can be generated in the PC 101. The reusable icon detection unit 410 detects a reusable icon from among existing icons already registered in the PC 101. In this embodiment, a reusable icon refers to an icon that is linked to a driver installed by the driver installation unit 408 and is linked to a port that can communicate with the device 102. The new port / icon generation unit 411 newly generates a port and icon that can communicate with the device 102, based on the type of port identified by the generated port type determination unit 409.

[0031] Fig. 5 is a diagram showing an example of a UI screen of the application 401, which shows the device detection result displayed on the monitor 201 by the detected device output unit 407. Each item in Fig. 5 will be described later.

[0032] Fig. 6(a) is a diagram showing an example of a UI screen of the application 401. The screen of Fig. 6(a) is displayed when the application 401 is executing the processes of the driver installation unit 408, the generated port type determination unit 409, the divertable icon detection unit 410, and the new port / icon generation unit 411. The installation screen 601 includes an internal processing status 602 that indicates the status of the internal processing. For example, when the application 401 is executing the process of the driver installation unit 408, the internal processing status 602 displays a message such as "Installing driver..." and a progress bar 603.

[0033] Fig. 6(b) is a diagram showing an example of a UI screen of the application 401, which is displayed when the internal processing of Fig. 6(a) is completed. For example, when the processing of the driver installation unit 408 is completed, a message 602 indicating that the installation is complete is displayed.

[0034] FIG. 7 is a flowchart showing the process from when the application 401 is started to when it is terminated. First, when the application 401 is started, the application 401 displays the device search result screen 501 shown in FIG. 5. After displaying the default screen of the device search result screen 501, the application 401 automatically starts searching for devices connected to the PC 101 without user operation (S701). At this time, not only the network but also devices connected by different interfaces (for example, USB (Universal Serial Bus) cables, etc.) may be searched at the same time. When the application 401 ends the device search (Yes in S702), it displays the detected devices in the device list 502. The application 401 accepts the user's selection of a desired device from the device list in FIG. 5 and the pressing of the installation start button 504 (S703). On the other hand, if the user cannot find the device desired by the user in the device list 502 or the device is not displayed in the device list 502, the user presses the search again button 503. When this user operation is accepted, a device search is executed again by the device search unit 406. When a search again button 503 is pressed, the application 401 clears the contents of the device list 502.

[0035] When the selection of a desired device from among the detected devices is accepted and the installation start button 504 is pressed, the application 401 switches the UI from the device search result screen 501 to the driver installation screen 601. At this time, the application 401 saves network information (such as an IP address) of the selected device (S704). Note that the network information is acquired from each device searched for during the device search in S701. When the screen is switched to the driver installation screen 601, the application 401 executes a driver installation process for the selected device (S705). Then, the application 401 executes a generation port type determination process (S706) in FIG. 8, which will be described later, and a diversion-available icon detection process (S707) in FIG. 9, which will be described later, in that order. The driver installation process (S705) is executed by the driver installation unit 408. Also, the generation port type determination process (S706) is executed by the generation port type determination unit 409. Also, the diversion-available icon detection process (S707) is executed by the diversion-available icon detection unit 410.

[0036] The application 401 determines (S708) whether or not a divertable icon has been detected in the divertable icon detection process (S707). If a divertable icon has not been detected in S707 (No in S708), the new port / icon generation unit 411 executes a new port / icon generation process (S709). In the new port / icon generation process, new ports and icons associated with the various drivers 403 to 405 installed by the driver installation unit 408 are generated based on the type of port determined in the generated port type determination process. The process of S709 will be described later with reference to FIG. 12.

[0037] On the other hand, if a divertable icon is detected in the divertable icon detection process of S707 (Yes in S708), the application 401 does not generate a new port / icon, but uses the detected divertable icon (S710). In other words, the divertable icon is used as is, and the driver linked to the divertable icon is changed to the driver installed in S705. When the process of S709 or S710 ends, the application 401 displays the screen of Fig. 6(b) indicating that the installation process is complete. At this time, when the user presses the end button 604, the process of Fig. 7 ends.

[0038] Fig. 8 is a flowchart showing the generation port type determination process (S706) of Fig. 7. In Fig. 8, a priority order is set for communication ports, and the process of determining the type of port to be generated is executed based on the port with the highest priority. In this embodiment, the port priority order is WSD, then TCP / IP. First, the generation port type determination unit 409 executes a network device search process by the WSD protocol (S801). That is, the generation port type determination unit 409 searches for devices connected to the network 104 according to the WSD protocol.

[0039] The generated port type determination unit 409 determines whether or not a device matching the network information of the desired device stored in S704 has been detected as a result of the device search (S802). For example, the generated port type determination unit 409 determines whether or not a device having the same IP address as the IP address stored in S704 has been detected in the search process of S801. When a device matching the network information of the desired device stored in S704 has been detected (Yes in S802), the generated port type determination unit 409 determines that the type of the port to be generated is WSD (S803). After S803, the generated port type determination unit 409 holds the UUID of the device acquired during the network device search by the WSD protocol (S804), and ends the processing of FIG. 8. On the other hand, when a device matching the network information of the desired device stored in S704 has not been detected (No in S802), the generated port type determination unit 409 determines that the type of the port to be generated is TCP / IP (S805), and ends the processing of FIG. 8.

[0040] 9 is a flowchart showing the divertable icon detection process (S707) of FIG. 7. First, the divertable icon detection unit 410 determines whether the type of the port to be generated is WSD or TCP / IP as a result of the port generation type determination process of S706 (S901). If the type of the port to be generated is WSD (Yes in S901), the divertable icon detection unit 410 executes the divertable WSD icon detection process of FIG. 10 (to be described later) (S902). On the other hand, if the type of the port to be generated is determined to be TCP / IP (No in S901), the divertable icon detection unit 410 executes the divertable TCP / IP icon detection process of FIG. 11 (to be described later) (S903). After S902 or S903, the divertable icon detection unit 410 ends the process of FIG. 9.

[0041] FIG. 10 is a flowchart showing the divertable WSD icon detection process (S902) of FIG. 9. First, the divertable icon detection unit 410 acquires icon information of all icons registered in the PC 101 (S1001). The icon information includes, for example, the driver name, the port type, and the port name associated with the icon. After the icon information is acquired, the divertable icon detection unit 410 starts a loop process for searching for a divertable WSD icon for all the icon information acquired in S1001 (S1002). In the loop process, first, the divertable icon detection unit 410 determines whether or not the driver name associated with the check target icon that is the subject of the loop process matches the driver name installed in S705 (S1003). If the driver name associated with the check target icon does not match the installed driver name (No in S1003), the divertable icon detection unit 410 starts checking the icon information of the next icon. On the other hand, if the driver name associated with the icon matches the installed driver name (Yes in S1003), the usable icon detection unit 410 determines whether the type of the port associated with the icon to be checked is WSD (S1004).

[0042] If the type of the port associated with the icon is not WSD (No in S1004), divertable icon detection unit 410 starts checking the next icon. On the other hand, if the type of the port associated with the icon is WSD (Yes in S1004), divertable icon detection unit 410 determines whether the UUID set in the WSD port matches the UUID of the device held in S804 (S1005). Specifically, divertable icon detection unit 410 acquires a UUID corresponding to the port name acquired in S1001 from the UUID management module. S1005 is executed using the UUID acquired here.

[0043] In this manner, in S1003 to S1005, as a result of the icon determination, a usable WSD icon that satisfies the conditions is detected.

[0044] If the UUIDs do not match (No in S1005), divertable icon detection unit 410 starts checking the next icon. On the other hand, if the UUIDs match (Yes in S1005), divertable icon detection unit 410 ends the loop process, determines that a divertable WSD icon has been detected (S1006), and then ends the process in Fig. 10. On the other hand, if the loop process has been performed for all icons, divertable icon detection unit 410 determines that there is no divertable WSD icon (S1007), and then ends the process in Fig. 10.

[0045] FIG. 11 is a flowchart showing the divertable TCP / IP icon detection process (S903) of FIG. 9. First, the divertable icon detection unit 410 acquires icon information of all icons registered in the PC 101 (S1101). After the icon information is acquired, the divertable icon detection unit 410 starts a loop process for searching for a divertable TCP / IP icon for all icon information acquired in S1101 (S1102). In the loop process, the divertable icon detection unit 410 first determines whether or not the driver name associated with the check target icon that is the subject of the loop process matches the driver name installed in S705 (S1103). If the driver name associated with the icon does not match the installed driver name (No in S1103), the divertable icon detection unit 410 starts checking the icon information of the next icon. On the other hand, if the driver name associated with the icon to be checked matches the installed driver name (Yes in S1103), the reusable icon detection unit 410 determines whether the type of port associated with the icon to be checked is TCP / IP (S1104).

[0046] If the port associated with the icon is not TCP / IP (No in S1104), the divertable icon detection unit 410 starts checking the icon information of the next icon. On the other hand, if the port associated with the icon is TCP / IP (Yes in S1104), the process proceeds to S1105. The divertable icon detection unit 410 determines whether the network information set in the TCP / IP port matches the network information of the device held in S704 (S1105). The network information is, for example, an IP address.

[0047] In this manner, in steps S1103 to S1105, a TCP / IP icon that satisfies the conditions and can be reused is detected as a result of the icon determination.

[0048] If the network information does not match (No in S1105), divertable icon detection unit 410 starts checking the icon information of the next icon. On the other hand, if the network information matches (Yes in S1105), divertable icon detection unit 410 ends the loop process, determines that a divertable TCP / IP icon has been detected (S1106), and then ends the process in Fig. 11. On the other hand, if the loop process has been performed for all icons, divertable icon detection unit 410 determines that there is no divertable TCP / IP icon (S1107), and then ends the process in Fig. 11.

[0049] Fig. 12 is a flowchart showing the new port / icon generation process (S709) of Fig. 7. First, new port / icon generation unit 411 determines whether the type of port determined in the generated port type determination process of S706 is WSD or TCP / IP (S1201). If the type of port determined in the generated port type determination process of S706 is TCP / IP (No in S1201), new port / icon generation unit 411 generates a new port / icon in TCP / IP (S1205).

[0050] On the other hand, if the type of port determined in the generation port type determination process of S706 is WSD (Yes in S1201), new port / icon generation unit 411 starts a new WSD port / icon generation process in Fig. 13 described below (S1202). Then, new port / icon generation unit 411 determines whether the generation of the new WSD port / icon was successful (S1203).

[0051] If the generation of a new WSD port / icon is successful (Yes in S1203), new port / icon generation unit 411 determines that the generation of the WSD icon is successful (S1204), and then ends the processing in Fig. 12. On the other hand, if the generation of a new WSD port / icon fails (No in S1203), new port / icon generation unit 411 generates a new port / icon by TCP / IP instead (S1205). After S1205, new port / icon generation 411 ends the processing in Fig. 12.

[0052] Fig. 13 is a flowchart showing the new WSD port / icon generation process (S1202) in Fig. 12. First, new port / icon generation unit 411 acquires all ports registered in PC 101 (S1301). After acquiring all ports registered in PC 101, new port / icon generation unit 411 executes a new WSD port / icon generation API (S1302). Note that by executing the new WSD port / icon generation API, an icon and a WSD port for that icon are generated. New port / icon generation unit 411 determines whether the response from the new WSD port / icon generation API is a success or failure (S1303).

[0053] If the response from the new WSD port / icon generation API is a failure (No in S1303), new port / icon generation unit 411 determines that the WSD icon generation has failed (S1304), and then ends the processing in Fig. 13. On the other hand, if the response from the new WSD port / icon generation API is a success (Yes in S1303), new port / icon generation unit 411 again acquires all ports registered in PC 101 (S1305).

[0054] When new port / icon generation unit 411 acquires all ports registered in PC 101, it determines whether the number of ports acquired in S1305 is greater than the number of ports acquired in S1301 (S1306). If the number of ports acquired in S1305 is not greater than the number of ports acquired in S1301 (i.e., has not increased) (No in S1306), new port / icon generation unit 411 determines that the WSD icon generation has failed (S1304). After S1304, the processing in FIG. 13 ends.

[0055] On the other hand, if the number of ports acquired in S1305 is greater (i.e., has increased) than the number of ports acquired in S1301 (Yes in S1306), the process proceeds to S1307. New port / icon generation unit 411 attempts to acquire the UUID set for the newly generated new WSD port, and determines whether the acquisition was successful (S1307). Specifically, new port / icon generation unit 411 identifies the port that was increased in S1306 as a new port. New port / icon generation unit 411 attempts to acquire the UUID of the port name identified as the new port. If the acquisition of the UUID of the newly generated WSD port fails (No in S1307), new port / icon generation unit 411 determines that the WSD icon generation has failed (S1304), and then ends the processing in FIG. 13.

[0056] On the other hand, if the UUID of the newly generated WSD port has been successfully acquired (Yes in S1307), the process proceeds to S1308. The new port / icon generation unit 411 determines whether the UUID of the new WSD port acquired in S1307 matches the UUID of the device held in S804 (S1308). If the UUID of the new WSD port acquired in S1307 does not match the UUID of the device held in S804 (No in S1308), the new port / icon generation unit 411 determines that the WSD icon generation has failed (S1304). After S1304, the new port / icon generation unit 411 ends the processing in FIG.

[0057] On the other hand, if the UUID of the new WSD port acquired in S1307 matches the UUID of the device held in S804 (Yes in S1308), the new port / icon generation unit 411 determines that the WSD icon generation was successful (S1309). After S1309, the new port / icon generation unit 411 ends the processing in FIG.

[0058] As described above, according to the present embodiment, when it is determined that there is no icon that satisfies the conditions and can be reused as a result of the port determination, the application 401 executes the new port / icon generation process shown in FIG. 12. In the new port / icon generation process, the application 401 compares the number of ports acquired before and after executing the new WSD port / icon generation API, and determines whether a new WSD icon has been generated based on the comparison result. With such a configuration, even if the generation of a new WSD icon fails because a port that hinders the generation of a new WSD icon remains in the PC 101, the application 401 can generate a new icon using another port (TCP / IP port). As a result, it is possible to prevent a situation in which an icon that the user should operate is not generated due to the remaining port being an obstacle. In addition, since it is determined based on the UUID set in the new WSD port that the new WSD port is a WSD port associated with the desired printer, it is possible to more accurately determine whether the generation of the new WSD icon has been successful.

[0059] In this embodiment, an example is shown in which a WSD port and a TCP / IP port are used in the process of determining the type of port to be generated in S706, but the present invention is not limited to this. For example, other protocols such as IPP (Internet Printing Protocol) may be added to the determination process or may be substituted. Also, in this embodiment, the priority order of the communication ports to be generated is WSD, then TCP / IP, but other protocols such as WSD, TCP / IP, and IPP may be added. Or, the priority order may be changed according to the status of the application 401 or the device 102.

[0060] In addition, in this embodiment, the application 401 is configured to automatically determine the communication port without user operation. However, for example, a screen for specifying a new port to be generated may be displayed on the UI of the application, and the user may specify the communication port he or she wants to generate. At this time, if generation at the specified communication port fails, a screen may be displayed to inform the user that generation at the specified communication port has failed, or the application 401 may automatically determine and generate an alternative communication port without user operation.

[0061] In this embodiment, the generation port type determination process of S706 is executed after the user selects a desired device on the device search result screen 501 in S703. However, the generation port type determination process of S706 may be executed immediately after the device is detected in the device search process of S701. On the other hand, there may be cases where a device connected through multiple interfaces (such as a network and USB) is searched for. In that case, if the generation port type determination process of S706 is executed immediately after the device search process of S701, the generation port type determination process may become meaningless if the user selects a USB device. Therefore, in the case of performing a device search for multiple interfaces, the generation port type determination process of S706 (S706) may be executed as necessary after the user specifies the desired device and the desired interface. With such a configuration, it is possible to improve processing efficiency, such as by reducing packets to be transmitted.

[0062] [Second embodiment] The second embodiment will be described below with respect to the differences from the first embodiment. As described in the first embodiment, even if a port that prevents generation of a new WSD icon remains in the PC 101 and generation of a new WSD icon fails, the application 401 can generate a new icon by using another port.

[0063] In this embodiment, the following use case is further assumed. For example, the installation target device is a device (e.g., MFP) that supports multiple functions such as print and fax. In addition, a WSD icon and a WSD port are generated in PC 101 by installing an IPP driver for the installation target device using the OS function. Then, the WSD icon is deleted by a user operation, and only the WSD port remains. In such a PC environment, when installation is performed by an installer, first, the printer driver installation process and printer icon generation process (S709) or the use of a printer icon that can be reused (S710) are performed by the process of the first embodiment described above. Then, only the WSD icon for the fax function is generated by reusing the remaining WSD port. This is because the fax function supports the WSD port, but the IPP driver does not support the fax function.

[0064] In the above use case, application 401 determines that the generation of a WSD icon has failed based on the fact that there is no change in the number of ports registered in PC 101, and executes the generation of a TCP / IP port. In this case, two fax icons are generated, one for the WSD port and one for the TCP / IP port. In this embodiment, even in the above use case, it is possible to prevent two fax icons, one for the WSD port and one for the TCP / IP port, from being generated in duplicate.

[0065] Fig. 14 is a flowchart showing the new WSD port / icon generation process (S1202) of Fig. 12 in this embodiment. First, the new port / icon generation unit 411 acquires all ports and all icons registered in the PC 101 (S1401, S1402). After S1401 and S1402, the new port / icon generation unit 411 executes a new WSD port / icon generation API (S1403). Then, the new port / icon generation unit 411 determines whether the response from the new WSD port / icon generation API is a success or failure (S1404).

[0066] If the response from the new WSD port / icon generation API is a failure (No in S1404), the new port / icon generation unit 411 determines that the WSD icon generation has failed (S1405), and then ends the processing in Fig. 14. On the other hand, if the response from the new WSD port / icon generation API is a success (Yes in S1404), the new port / icon generation unit 411 again acquires all ports registered in PC 101 (S1406).

[0067] When new port / icon generation unit 411 acquires all ports registered in PC 101, it determines whether the number of ports acquired in S1406 is greater than the number of ports acquired in S1401 (S1407). If the number of ports acquired in S1406 is not greater than the number of ports acquired in S1401 (i.e., has not increased) (No in S1407), new port / icon generation unit 411 executes unnecessary WSD icon deletion processing in Fig. 15, which will be described later (S1408). After the unnecessary WSD icon deletion processing is completed, new port / icon generation unit 411 determines that the WSD icon generation has failed (S1405), and then ends the processing in Fig. 14.

[0068] On the other hand, if the number of ports acquired in S1406 is greater (i.e., has increased) than the number of ports acquired in S1401 (Yes in S1407), the process proceeds to S1409. New port / icon generation unit 411 attempts to acquire the UUID set for the newly generated new WSD port, and determines whether the acquisition was successful or unsuccessful (S1409). If acquisition of the UUID for the newly generated new WSD port fails (No in S1409), new port / icon generation unit 411 determines that the WSD icon generation has failed (S1405), and then ends the processing in FIG.

[0069] On the other hand, if acquisition of the UUID of the newly generated new WSD port is successful (Yes in S1409), the process proceeds to S1410. The new port / icon generation unit 411 determines whether or not the UUID of the new WSD port acquired in S1409 matches the UUID of the device held in S804 (S1410). If the UUID of the new WSD port acquired in S1409 does not match the UUID of the device held in S804 (No in S1410), the new port / icon generation unit 411 determines that the WSD icon generation has failed (S1405). After S1405, the new port / icon generation unit 411 ends the processing in FIG. 14.

[0070] On the other hand, if the UUID of the new WSD port acquired in S1409 matches the UUID of the device held in S804 (Yes in S1410), the new port / icon generation unit 411 determines that the WSD icon generation was successful (S1411). After S1411, the new port / icon generation unit 411 ends the processing in FIG.

[0071] FIG. 15 is a flowchart showing the unnecessary WSD icon deletion process (S1408) of FIG. 14. First, the new port / icon generation unit 411 acquires all icons registered in the PC 101 (S1501). Then, the new port / icon generation unit 411 judges whether the number of icons acquired in S1501 is greater than the number of icons acquired in S1402 (S1502). If the number of icons acquired in S1501 is not greater than the number of icons acquired in S1402 (i.e., has not increased) (No in S1502), the new port / icon generation unit 411 ends the process of FIG. 15. On the other hand, if the number of icons acquired in S1501 is greater than the number of icons acquired in S1402 (i.e., has increased) (Yes in S1502), the process proceeds to S1503. The new port / icon generation unit 411 judges whether the port associated with the newly generated new icon is WSD (S1503).

[0072] If the port associated with the new icon is not WSD (No in S1503), new port / icon generation unit 411 ends the processing in Fig. 15. On the other hand, if the port associated with the new icon is WSD (Yes in S1503), new port / icon generation unit 411 determines whether the driver name associated with the new icon matches the driver name installed in S705 (S1504).

[0073] If the driver name associated with the new icon does not match the driver name installed in S705 (No in S1504), new port / icon generation unit 411 ends the processing in Fig. 15. On the other hand, if the driver name associated with the new icon matches the driver name installed in S705 (Yes in S1504), new port / icon generation unit 411 deletes the new icon (S1505), and then ends the processing in Fig. 15.

[0074] As described above, according to this embodiment, it is possible to prevent multiple overlapping function icons (such as icons for WSD and TCP / IP) from being generated. In this embodiment, after the WSD icon is deleted, a TCP / IP icon is generated in the process of FIG. 12. However, in order to prevent two fax icons, one for a WSD port and one for a TCP / IP port, from being generated, other processes may be executed. For example, the WSD icon for fax generated in S1403 may not be deleted, and only a print icon may be generated without generating a fax icon when generating a TCP / IP icon.

[0075] In this embodiment, after the new WSD port / icon generation API is executed in S1403, all icons registered in PC 101 are acquired in S1501, but in this case, the following configuration may be used. For example, if the WSD icon cannot be generated immediately due to low specifications of PC 101, all icons may be acquired in S1501 after waiting for a fixed period of time. Also, when determining the number of icons in S1502, if there is no change in the number of icons (i.e., No in S1502), the process of determining the number of icons in S1502 may be repeated for a fixed period of time. With such a configuration, appropriate determination can be made taking into account the processing time of the PC related to the icon generation process.

[0076] [Third embodiment] The third embodiment will be described below with respect to the differences from the first and second embodiments. In the first and second embodiments, it was described that after the new WSD icon generation API execution process (S1302, S1403), it was determined whether a new WSD icon was successfully generated. In this embodiment, before executing the new WSD icon generation API, it is determined whether any WSD ports that would hinder the generation of a new WSD icon remain.

[0077] Fig. 16 is a flowchart showing the new WSD port / icon generation process (S1202) in Fig. 12 in this embodiment. First, new port / icon generation unit 411 executes existing WSD port check process in Fig. 17 to determine whether an existing WSD port that will hinder the generation of a new WSD port / icon is registered in PC 101 (S1601). Then, new WSD port / icon generation unit 411 determines whether an existing WSD port that will hinder the generation of a new WSD port / icon has been detected in PC 101 (S1602).

[0078] If an existing WSD port that will hinder the generation of a new WSD port / icon is detected from PC 101 (Yes in S1602), new port / icon generation unit 411 determines that a new WSD icon cannot be generated (S1603), and then ends the processing in Fig. 16. On the other hand, if an existing WSD port that will hinder the generation of a new WSD port / icon is not detected from PC 101 (No in S1602), new port / icon generation unit 411 executes a new WSD icon generation API execution process (S1604). Then, new port / icon generation unit 411 determines whether the response from the new WSD port / icon generation API is a success or failure (S1605).

[0079] If the response from the new WSD icon generation API is a failure (No in S1605), the new port / icon generation unit 411 determines that the generation of a new WSD icon is not possible (S1603), and then ends the processing in Fig. 16. On the other hand, if the response from the new WSD icon generation API is a success (Yes in S1605), the new port / icon generation unit 411 determines that the generation of a new WSD icon is successful (S1606), and then ends the processing in Fig. 16. After S1603, in S1203 in Fig. 12, it may be determined that the generation of a new WSD port / icon has failed.

[0080] Fig. 17 is a flowchart showing the existing WSD port check process (S1601) of Fig. 16. First, new port / icon generation unit 411 acquires all ports registered in the PC (S1701). Then, new port / icon generation unit 411 starts a loop process for checking whether or not there is a WSD port that will hinder the generation of a new WSD icon from among the acquired ports (S1702).

[0081] In the loop process, first, new port / icon generation unit 411 determines whether or not the port to be checked in the loop process is a WSD port (S1703). If the port to be checked is not a WSD port (No in S1703), new port / icon generation unit 411 switches the port to be checked to another port and repeats the loop process. On the other hand, if the port to be checked is a WSD port (Yes in S1703), the process proceeds to S1704. New port / icon generation unit 411 determines whether or not the UUID set in the port to be checked matches the UUID of the device held in S804 (S1704).

[0082] If the UUID set in the port to be checked does not match the UUID of the device held in S804 (No in S1704), new port / icon generation unit 411 switches the port to be checked to another port and repeats the loop process. On the other hand, if the UUID set in the port to be checked matches the UUID of the device held in S804 (Yes in S1704), the process proceeds to S1705. New port / icon generation unit 411 determines whether an IPP PortID is set in the port to be checked (S1705).

[0083] If the IPP PortID is not set in the port to be checked (No in S1705), the new port / icon generation unit 411 switches the port to be checked to another port and repeats the loop process. On the other hand, if the IPP PortID is set in the port to be checked (Yes in S1705), the process proceeds to S1706. The new port / icon generation unit 411 determines that the port to be checked is a WSD port that will hinder the generation of a new WSD icon (S1706), and then ends the process of FIG. 17. That is, in S1706, it is determined that an existing WSD port that will hinder the generation of a new WSD port / icon has been detected from PC 101. On the other hand, if the loop process is ended without proceeding to S1706, the new port / icon generation unit 411 determines that a new WSD icon can be generated (S1707), and then ends the process of FIG. 17. That is, in S1707, it is determined that an existing WSD port that will hinder the generation of a new WSD port / icon has not been detected from PC 101.

[0084] As described above, according to this embodiment, the new port / icon generation unit 411 can determine whether or not there is a remaining WSD port that would hinder the generation of a new WSD icon before executing a new WSD icon generation API. As a result, if there is a remaining WSD port, the processing of the new WSD icon generation API is skipped. This can improve the processing efficiency of the application 401.

[0085] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0086] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0087] 101 PC: 102 Device: 202 CPU: 203 ROM: 204 RAM

Claims

1. An information processing device capable of communicating with a device, an installation means for installing a driver corresponding to the device; a first generating means for generating an icon corresponding to the driver installed by the installing means; a second generating means for generating an icon corresponding to the driver installed by the installing means; an acquisition means for acquiring the number of ports registered in the information processing device before and after the icon generation is executed by the first generation means; a control means for controlling the second generation means to generate an icon corresponding to the driver installed by the installation means when the number of ports has not increased after the first generation means generates an icon; An information processing device comprising:

2. The information processing device described in Claim 1, characterized in that the control means controls the second generation means to generate an icon corresponding to the driver installed by the installation means based on the fact that the number of ports acquired by the acquisition means after icon generation is executed by the first generation means has not increased compared to the number of ports acquired by the acquisition means before icon generation is executed by the first generation means.

3. a port determination unit for determining whether the newly generated port satisfies a condition; The control means When the port determination means determines that the newly generated port satisfies the condition, an icon corresponding to the installed driver is not generated by the second generation means, when the port determination means determines that the newly generated port does not satisfy the condition, control is performed so that the second generation means generates an icon corresponding to the installed driver.

3. The information processing apparatus according to claim 1, wherein the information processing apparatus is a computer.

4. 4. The information processing apparatus according to claim 3, wherein the condition includes a match between information set in the newly created port and information on the device.

5. The information processing device further includes an icon determination unit that determines whether or not an icon satisfying a condition is present among icons acquired from icons registered in the information processing device, the control means controls the second generation means to generate an icon corresponding to the driver installed by the installation means when the icon determination means determines that there is no icon satisfying the condition and the first generation means does not execute icon generation.

5. The information processing apparatus according to claim 2, wherein the information processing apparatus is a computer.

6. 6. The information processing apparatus according to claim 5, wherein the conditions include at least one of a driver-related condition and a port-related condition.

7. 7. The information processing apparatus according to claim 6, wherein the condition regarding the driver includes a match between a driver name corresponding to an icon and a driver name of the driver.

8. 8. The information processing apparatus according to claim 6, wherein the condition regarding the port includes a match between a type of a port corresponding to an icon and a type of a port generated corresponding to the device.

9. The information processing device according to any one of claims 5 to 8, characterized in that when the icon determination means determines that there is an icon that satisfies the conditions, the control means does not execute icon generation by the first generation means, and uses the icon that satisfies the conditions as the icon corresponding to the driver installed by the installation means.

10. The information processing device according to any one of claims 2 to 9, further comprising a deletion means for deleting an icon when icon generation is executed by the first generation means, but the number of ports acquired by the acquisition means has not increased compared to before the execution, and an icon is generated corresponding to multiple port types for the functions of the device.

11. a second port determination means for determining whether or not a port satisfies a condition before the icon generation is executed by the first generation means, instead of acquiring the number of ports by the acquisition means; When the second port determination means determines that there is a port that satisfies the condition, the first generation means does not generate an icon, and when the second port determination means determines that there is no port that satisfies the condition, the first generation means generates an icon.

11. The information processing apparatus according to claim 2,

12. 12. The information processing apparatus according to claim 11, wherein the condition includes a predetermined type of communication port.

13. 13. The information processing apparatus according to claim 1, wherein the first generating means generates an icon associated with a WSD (Web service on Devices) port.

14. 14. The information processing apparatus according to claim 1, wherein the second generating means generates an icon associated with a TCP / IP port.

15. 15. The information processing apparatus according to claim 1, wherein the driver installed by the installation unit is a driver provided by a device manufacturer.

16. A control method executed in an information processing device capable of communicating with a device, an installation step for installing a driver corresponding to the device; a first generating step of generating an icon corresponding to the driver installed in the installing step; a second generating step of generating an icon corresponding to the driver installed in the installing step; an acquisition step of acquiring the number of ports registered in the information processing device before and after the icon generation is executed in the first generation step; a control step of controlling the second generation step to generate an icon corresponding to the driver installed in the installation step when the number of ports has not increased after the execution of the icon generation in the first generation step; A control method comprising the steps of:

17. A program for causing a computer to function as each of the means of the information processing apparatus according to any one of claims 1 to 15.

18. A storage medium that stores a program for causing a computer to function as each of the means of an information processing device described in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Information processing device, driver installation method and program

    JP2018194910A

  • Information processing apparatus, control method, and storage medium

    US20170279998A1