INFORMATION PROCESSING METHOD, INFORMATION PROCESSING APPARATUS, AND NON-TRANSITORY COMPUTER-READABLE STORAGE MEDIUM
20220334781 · 2022-10-20
Inventors
Cpc classification
G06F3/1204
PHYSICS
International classification
Abstract
An information processing method for an information processing apparatus that communicates with an image output apparatus is provided. The information processing apparatus operates in at least one of a first connection mode in which the information processing apparatus is wirelessly connected to the image output apparatus via an access point and a second connection mode in which the information processing apparatus is wirelessly connected to the image output apparatus without intervention of the access point. The method comprises: executing setup processing comprising: registering a first print queue to be used at the time of printing via the connection unit operating in the first connection mode, and registering a second print queue to be used at the time of printing via the connection unit operating in the second connection mode.
Claims
1. An information processing method for an information processing apparatus that communicates with an image output apparatus, the information processing apparatus including a connection unit configured to operate in at least one of a first connection mode in which the information processing apparatus is wirelessly connected to the image output apparatus via an access point and a second connection mode in which the information processing apparatus is wirelessly connected to the image output apparatus without intervention of the access point, the method comprising executing setup processing that can execute registering a first print queue to be used at the time of printing via the connection unit operating in the first connection mode, and registering a second print queue to be used at the time of printing via the connection unit operating in the second connection mode.
2. The method according to claim 1, further comprising transmitting, to the image output apparatus, first connection information to be used for connection to the access point, wherein in the transmitting, the image output apparatus is connected to the access point using the first connection information by transmitting the first connection information to the image output apparatus.
3. The method according to claim 2, wherein the first connection information includes an identifier and a passphrase of a network provided by the access point.
4. The method according to claim 1, wherein in the second connection mode, the connection unit establishes temporary connection to the image output apparatus without intervention of the access point, acquires, from the image output apparatus via the temporary connection, second connection information to be used for direct connection to the image output apparatus, and performs direct connection to the image output apparatus based on the acquired second connection information.
5. The method according to claim 4, wherein the second connection information includes an identifier and a passphrase of the direct connection.
6. The method according to claim 4, wherein the temporary connection is established by activating the image output apparatus in an access point mode based on predetermined setting information and performing connection to the wirelessly connectable image output apparatus.
7. The method according to claim 1, wherein the information processing apparatus accepts, from a user, a selection of whether to register the first print queue and the second print queue, and registers, if a selection of not registering the first print queue and the second print queue is accepted, only one of the first print queue and the second print queue in the setup processing.
8. The method according to claim 1, further comprising: accepting a selection of whether to perform connection to the image output apparatus in the first connection mode or the second connection mode in the setup processing; and deciding an order of registration of the first print queue and registration of the second print queue in accordance with the selection accepted in the accepting.
9. The method according to claim 1, further comprising: determining whether the image output apparatus is connectable in the second connection mode; and instructing, if it is determined in the determining that the image output apparatus is not connectable in the second connection mode, the image output apparatus to transition to a status in which the image output apparatus is connectable in the second connection mode.
10. The method according to claim 1, further comprising accepting, if it is determined that registration of the first print queue and the second print queue succeeds, a change of names of the first print queue and the second print queue.
11. An information processing apparatus for communicating with an image output apparatus, comprising: a connection unit configured to operate in at least one of a first connection mode in which the information processing apparatus is connected to the image output apparatus via an access point and a second connection mode in which the information processing apparatus is connected to the image output apparatus without intervention of the access point; and a setting unit configured to execute setup processing, wherein the setting unit executes the setup processing that can execute registration of a first print queue to be used at the time of printing via the connection unit operating in the first connection mode, and registration of a second print queue to be used at the time of printing via the connection unit operating in the second connection mode.
12. A non-transitory computer-readable storage medium storing a program for causing an information processing apparatus, that communicates with an image output apparatus, to execute an information processing method, wherein the information processing apparatus includes a connection unit configured to operate in at least one of a first connection mode in which the information processing apparatus is connected to the image output apparatus via an access point and a second connection mode in which the information processing apparatus is connected to the image output apparatus without intervention of the access point, and the program includes setup processing that can execute registering a first print queue to be used at the time of printing via the connection unit operating in the first connection mode, and registering a second print queue to be used at the time of printing via the connection unit operating in the second connection mode.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
DESCRIPTION OF THE EMBODIMENTS
[0025] Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.
[0026] A connection form among an information processing apparatus, a wireless LAN router, and an image output apparatus will be described with reference to
[0027]
[0028]
[0029]
[0030] To which of the statuses shown in
[0031] The arrangements of the information processing apparatus 101 and the image output apparatus 103 will be described next with reference to
[0032] The information processing apparatus 101 includes an input interface (I/F) 202, a CPU 203, a ROM 204, a RAM 205, an external storage device 206, an output I/F 207, a display unit 208, a keyboard 209, a mouse 210, a network I/F 211, and a USB I/F 212. The network I/F 211 controls wireless communication processing and communication processing via a wired LAN cable. The USB I/F 212 controls USB connection via a USB cable. The ROM 204 stores a program, and the external storage device 206 saves application programs, an Operating System (to be referred to as an OS hereinafter), a printer driver, and other various data. The RAM 205 is used as a work memory by various programs stored in the external storage device 206. A form in which Microsoft Windows® is used as the OS will be exemplified below.
[0033] The image output apparatus 103 includes a network I/F 252, a RAM 253, a print engine 256, a ROM 254, and a CPU 255. The network I/F 252 controls wireless communication and communication processing via a wired LAN cable. A USB I/F 257 controls USB connection via a USB cable. The RAM 253 is used as a main memory and a work memory of the CPU 255, is used as a reception buffer for temporarily saving received print job print data, and saves various data. The print engine 256 executes printing based on the data saved in the RAM 253. The ROM 254 stores various control programs and data to be used by each control program, and the CPU 255 controls the respective units of the image output apparatus 103 in accordance with these control programs.
[0034] As an example, processing sharing between the information processing apparatus 101 and the image output apparatus 103 is done, as described above. However, the present invention is not particularly limited to this, and may adopt another form.
First Embodiment
[0035] This embodiment will be described in detail below with reference to
[0036]
[0037] The information processing apparatus 101 executes setup processing that can execute registration of a print queue to be used at the time of printing using wireless direct connection and registration of a print queue to be used at the time of printing using wireless infrastructure connection. This eliminates the necessity of re-executing, after a setup, the setup such as addition of a print queue required due to a change of the communication method, thereby making it possible to improve user convenience after the setup. Note that the print queue indicates preparation of an area for storing print jobs in an input order on the operating system of the information processing apparatus 101. Thus, if a print job is input to the print queue, it is possible to transmit print data generated based on the print job to a corresponding IP address and port. Furthermore, in this embodiment, direct connection indicates connection between the information processing apparatus 101 and the image output apparatus 103 without intervention of an external access point such as a wireless LAN router. Infrastructure connection indicates connection between the information processing apparatus 101 and the image output apparatus 103 via an external access point. Note that direct connection is connection established when the image output apparatus 103 functions as an access point based on the normal Wi-Fi standard, as will be described below, but the present invention is not limited to this. Direct connection may be connection based on the Wi-Fi Direct standard. In connection based on the Wi-Fi Direct standard, group owner (GO) negotiation may be executed and one of the information processing apparatus 101 and the image output apparatus 103 may operate as a GO. Furthermore, when the image output apparatus 103 operates in an Autonomous GO mode, the image output apparatus 103 may always operate as a GO.
[0038] In step S301, the information processing apparatus 101 acquires, using the Application Program Interface (to be referred to as the API hereinafter) of the OS, information of a wireless LAN router 102 to which the information processing apparatus 101 is connected. Subsequently, the information processing apparatus 101 uses the API of the OS to perform wireless connection processing for the image output apparatus 103 in a temporary connection mode (to be described later), thereby establishing temporary connection. Connection information used for connection to the image output apparatus 103 includes, for example, an identifier of direct connection provided by the image output apparatus 103 and a passphrase for connection. For example, the connection information includes an SSID (Service Set Identifier) and a passphrase. This embodiment assumes that the connection information is used when the information processing apparatus 101 is returned to original wireless LAN connection to the wireless LAN router 102 after performing connection to the image output apparatus 103 in the temporary connection mode and performing setting processing. In this embodiment, the temporary connection mode is a mode in which the image output apparatus 103 is activated, based on predetermined setting information such as a predetermined SSID, in an access point mode for a predetermined period, and the information processing apparatus 101 can temporarily, wirelessly be connected to the image output apparatus 103 without requiring the passphrase. The access point mode is a mode in which the image output apparatus 103 functions as an access point and is connected to the information processing apparatus 101 by direct connection. Note that in this embodiment, the temporary connection mode is a mode in which Wi-Fi connection to the information processing apparatus 101 is established, as described above. The present invention, however, is not limited to this. The temporary connection mode may be a mode in which connection to the information processing apparatus 101 is established by a communication method other than Wi-Fi. Then, communication (to be described later) between the information processing apparatus 101 and the image output apparatus 103 may be executed by the communication method other than Wi-Fi. The communication method other than Wi-Fi is, for example, Bluetooth or Near Field Communication (NFC). Bluetooth may be Classic Bluetooth or Bluetooth Low Energy.
[0039] After establishing temporary connection to the image output apparatus 103 in step S301, the information processing apparatus 101 acquires, in step S302, wireless direct connection information from the image output apparatus 103. In this embodiment, the wireless direct connection information includes an SSID and a passphrase necessary to perform wireless direct connection processing for the image output apparatus 103. In step S303, the information processing apparatus 101 generates a network connection setting packet for connecting the image output apparatus 103 to the wireless LAN router 102. In this embodiment, the setting packet is an example of a packet including the network identifier and passphrase of a network provided by the wireless LAN router 102. The connection information according to this embodiment includes an SSID, an encryption method, and a passphrase necessary for connection to the wireless LAN router 102.
[0040] Processing of designating an SSID, an encryption method, and a passphrase by the user will be described with reference to wireless LAN router setting screens shown in
[0041] In
[0042] The screen shown in
[0043] Next, in step S304, the information processing apparatus 101 accepts, from the user, a selection of a wireless LAN connection method for connection between the information processing apparatus 101 and the image output apparatus 103. More specifically, the user is prompted to select the wireless infrastructure connection status shown in
[0044]
[0045] Next, processing when it is determined in step S305 that the user selects wireless direct connection as the connection status between the information processing apparatus 101 and the image output apparatus 103 after the end of the setup processing will be described below.
[0046] In step S306, the information processing apparatus 101 accepts a selection of whether two print queues are to be created by including a print queue for wireless infrastructure connection in addition to a print queue for wireless direct connection.
[0047] If the “create” button 601 is selected (YES in step S307), the information processing apparatus 101 advances the process to step S308, and transmits the network connection setting packet generated in step S303 to the image output apparatus 103. Next, in step S309, the information processing apparatus 101 uses the connection information (SSID/passphrase) of the wireless LAN router 102 held in step S301 to perform processing of reconnecting the information processing apparatus 101 to the wireless LAN router 102. Next, in step S310, the information processing apparatus 101 registers a print queue for executing printing by connecting the information processing apparatus 101 and the image output apparatus 103 by wireless infrastructure connection. More specifically, the information processing apparatus 101 searches for the image output apparatus 103 using a Simple Network Management Protocol (to be referred to as an SNMP hereinafter), and acquires IP address information from the image output apparatus 103 connected by wireless infrastructure connection via the wireless LAN router 102. Then, the information processing apparatus 101 uses the API of the OS to designate the acquired IP address information and a WSD (Web Services for Devices) port number as connection port information, thereby registering the print queue for wireless infrastructure connection. Note that in this embodiment, the SNMP is used as a method of acquiring IP address information. However, another protocol such as WSD may be used. Furthermore, the WSD port is used as connection port information but a Line PRinter daemon protocol (to be referred to as an LPR hereinafter) or Port 9100 port may be designated to register the print queue. Next, in step S311, the information processing apparatus 101 uses the SNMP to determine whether the image output apparatus 103 functions in a status in which wireless direct connection is possible. Note that in this embodiment, the SNMP is used as a method of determining whether the image output apparatus 103 is in a status in which wireless direct connection is possible. However, the API of the OS may be used to search for the SSID included in the wireless direct connection information of the image output apparatus 103 acquired in step S302.
[0048] Next, in step S312, the information processing apparatus 101 branches the process in accordance with the result of the determination processing in step S311. If it is determined that the image output apparatus 103 can be connected by wireless infrastructure connection and wireless direct connection at the same time (to be referred to as a simultaneous operable device hereinafter), and is in a status in which wireless direct connection is possible (YES in step S312), the information processing apparatus 101 advances the process to step S313. In step S313, the wireless direct connection information of the image output apparatus 103 acquired in step S302 is used to connect the information processing apparatus 101 to the image output apparatus 103 by the API of the OS.
[0049] If it is determined that the image output apparatus 103 is not a simultaneous operable device and is not in the status in which wireless direct connection is possible (NO in step S312), the information processing apparatus 101 advances the process to step S314. In step S314, the information processing apparatus 101 generates a setting packet for instructing the image output apparatus 103 to transition to the status in which wireless direct connection is possible, transmits the setting packet to the image output apparatus 103, and advances the process to step S313.
[0050] Next, in step S315, the information processing apparatus 101 registers a print queue for executing printing by connecting the information processing apparatus 101 and the image output apparatus 103 by wireless direct connection. More specifically, the information processing apparatus 101 searches for the image output apparatus 103 using the SNMP, and acquires the IP address information from the image output apparatus 103 connected to the information processing apparatus 101 by wireless direct connection. Then, the information processing apparatus 101 uses the API of the OS to designate the acquired IP address information and a WSD port number as connection port information, thereby registering the print queue for wireless direct connection. Note that in this embodiment, the SNMP is used as a method of acquiring IP address information. However, another protocol such as WSD may be used. Furthermore, the WSD port is used as connection port information but an LPR or Port 9100 port may be designated to register the print queue.
[0051] Next, processing when it is determined in step S305 that the user selects wireless infrastructure connection as the connection status between the information processing apparatus 101 and the image output apparatus 103 after the end of the setting processing (NO in step S305) will be described below. In step S316, the information processing apparatus 101 accepts a selection of whether two print queues are to be created by including a print queue for wireless direct connection in addition to a print queue for wireless infrastructure connection.
[0052]
[0053] Next, in step S320, the information processing apparatus 101 transmits the network connection setting packet generated in step S303 to the image output apparatus 103. In step S321, the information processing apparatus 101 uses the information (SSID/passphrase) of the wireless LAN router 102 held in step S301 to perform processing of reconnecting the information processing apparatus 101 to the wireless LAN router 102. In step S322, the information processing apparatus 101 registers a print queue for executing printing by connecting the information processing apparatus 101 and the image output apparatus 103 by wireless infrastructure connection. More specifically, the information processing apparatus 101 searches for the image output apparatus 103 using the SNMP, and acquires the IP address information from the image output apparatus 103 connected by wireless infrastructure connection via the wireless LAN router 102. Then, the information processing apparatus 101 uses the API of the OS to designate the acquired IP address information and a WSD port number as connection port information, thereby registering the print queue for wireless infrastructure connection. Note that in this embodiment, the SNMP is used to acquire the IP address information. However, another protocol such as WSD may be used. Furthermore, the WSD port is used as connection port information but an LPR or Port 9100 port may be designated to register the print queue.
[0054] Next, in step S323, the information processing apparatus 101 uses the API of the OS to list the registered print queues, performs a search based on the print queue information, and executes processing of determining whether both the print queues have been successfully registered in steps S310 and S314. The print queue information includes, for example, the IP address information and the port number. Note that in this embodiment, by listing the registered print queues, and confirming whether a designated one of them has been registered, it is determined whether registration of the print queue to be used for wireless infrastructure connection and the print queue to be used for wireless direct connection has succeeded. In an example, a success/failure flag may be managed when each print queue is registered. If, as a result of the determination processing in step S323, it is determined that registration of both the print queue to be used for wireless infrastructure connection and the print queue to be used for wireless direct connection has succeeded (YES in step S324), the information processing apparatus 101 advances the process to step S325. In step S325, the information processing apparatus 101 performs name change processing of accepting a change of the names of the two registered print queues. If it is determined that registration of both the print queues has not succeeded (NO in step S324), the processing shown in
[0055]
[0056] Next, a simultaneous operable device according to this embodiment will be described. If the image output apparatus 103 is a simultaneous operable device, even if the image output apparatus 103 has already been connected by wireless infrastructure connection, the information processing apparatus 101 can find the SSID to be used for wireless direct connection to the image output apparatus 103. If the image output apparatus 103 is not a simultaneous operable device, a user operation of enabling the wireless direct setting of the image output apparatus 103 is required in order for the information processing apparatus 101 to find the SSID to be used for wireless direct connection to the image output apparatus 103. An example of the required user operation is an operation of enabling the wireless direct connection mode by a panel operation on the image output apparatus 103.
[0057] Wireless LAN profile information according to this embodiment will be described next. The OS according to this embodiment allows, when the information processing apparatus 101 is connected to another device by a wireless LAN, saving of wireless LAN profile information of the connected device. Therefore, if the information processing apparatus 101 makes a connection setting with another device once, the information processing apparatus 101 can automatically be connected when the SSID of the target device is found, unless the user actively deletes the saved wireless LAN profile information. That is, by making a setting for executing printing by a plurality of wireless communication methods at the time of setup processing, it becomes unnecessary to re-execute the setup processing even if the wireless communication method is switched. When, for example, the user carries the information processing apparatus 101 and the image output apparatus 103 to an environment where there is no AP, if the information processing apparatus 101 finds the SSID to be used for wireless direct connection to the image output apparatus 103, the information processing apparatus 101 is automatically connected by wireless direct connection. Then, if both the print queues for wireless infrastructure connection and wireless direct connection have already been created in the setup processing, it is unnecessary to additionally register a print queue. The user can execute printing only by selecting a target print queue from the identifiable print queues, thereby making it possible to reduce the labor for executing printing when the communication method is switched.
[0058] A default queue according to this embodiment will be described next. With respect to the print queues registered in the information processing apparatus 101, the last registered print queue is a print queue to be selected by the OS by default in the initial setting of the OS. Therefore, in step S304, the print queue used by the connection method arbitrarily selected by the user from the two connection methods of wireless infrastructure connection and wireless direct connection is selected by default after connection setting. Thus, when executing printing from the information processing apparatus 101 using the image output apparatus 103, the user need not change the print queue selected by default, thereby making it possible to further reduce the user labor.
[0059]
[0060] For example, in
[0061] With the above processing, when the user wirelessly connects the information processing apparatus 101 and the image output apparatus 103, and makes a setting to execute printing, the user can perform print processing from the image output apparatus 103 using the print queue selected by default. Then, if the user carries the information processing apparatus 101 and the image output apparatus 103 to an environment where there is no AP, the information processing apparatus 101 and the image output apparatus 103 are automatically connected by wireless direct connection. Furthermore, the print queue usable by wireless infrastructure connection and the print queue usable by wireless direct connection have already been created. Therefore, the user can output an image from the information processing apparatus 101 to the image output apparatus 103 only by selecting the print queue to be used for printing after the setup processing, thereby making it possible to reduce the user labor for preparation for printing. This can improve convenience when the image output apparatus is used by a plurality of communication methods.
Other Embodiments
[0062] Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as anon-transitory computer-readable storage medium') to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)TM), a flash memory device, a memory card, and the like.
[0063] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
[0064] This application claims the benefit of Japanese Patent Application No. 2021-071331, filed on Apr. 20, 2021, which is hereby incorporated by reference herein in its entirety.