An object of the preset invention is to prevent unnecessary wireless connection from being established and to improve security. An information processing apparatus includes: a notifying unit that notifies a plurality of services which the information processing apparatus provides; a receiving unit that receives a connection request in which one service among the plurality of services is designated, from a terminal apparatus; and a controlling unit that when allowing the connection request, establishes a connection with the terminal apparatus, based on a communication method of wireless communication concerning the connection request and the designated service, and when not allowing the connection request, does not establish the connection with the terminal apparatus.
|
4. A control method for an information processing apparatus supporting a first communication communicating via an infrastructure network and a second communication communicating based on Wi-Fi Aware, the control method comprising:
notifying, to an external device, first information of a first print service for the external device provided by the information processing apparatus as a first Publish message of the Wi-Fi Aware; and
notifying, to the external device, second information of a second print service providing the external device with a service via a direct wireless connection of the Wi-Fi Aware as a second Publish message,
wherein the first information includes at least a print service name of the first print service, an ip address required to identify the information processing apparatus on the infrastructure network, and information indicating that the direct wireless connection is not supported, and
wherein the second information includes information indicating that the direct wireless connection is supported.
7. A non-transitory computer-readable storage medium storing a program for a control method for an information processing apparatus supporting a first communication communicating via an infrastructure network and a second communication communicating based on Wi-Fi Aware, the control method comprising:
notifying, to an external device, first information of a first print service for the external device provided by the information processing apparatus as a first Publish message of the Wi-Fi Aware; and
notifying, to the external device, second information of a second print service providing the external device with a service via a direct wireless connection of the Wi-Fi Aware as a second Publish message,
wherein the first information includes at least a print service name of the first print service, an ip address required to identify the information processing apparatus on the infrastructure network, and information indicating that the direct wireless connection is not supported, and
wherein the second information includes information indicating that the direct wireless connection is supported.
1. An information processing apparatus supporting a first communication communicating via an infrastructure network and a second communication communicating based on Wi-Fi Aware comprising:
a memory storing instructions; and
at least one processor executing the instructions causing the information processing apparatus to:
notify, to an external device, first information of a first print service for the external device provided by the information processing apparatus as a first Publish message of the Wi-Fi Aware; and
notify, to the external device, second information of a second print service providing the external device with a service via a direct wireless connection of the Wi-Fi Aware as a second Publish message,
wherein the first information includes at least a print service name of the first print service, an ip address required to identify the information processing apparatus on the infrastructure network, and information indicating that the direct wireless connection is not supported, and
wherein the second information includes information indicating that the direct wireless connection is supported.
2. The information processing apparatus according to
wherein the first information of the first print service further includes a URL path of the first print service and a port number.
3. The information processing apparatus according to
set whether or not to respectively enable the first print service and the second print service based on an instruction by a user.
5. The control method according to
wherein the first information of the first print service further includes a URL path of the first print service and a port number.
6. The control method according to
setting whether or not to respectively enable the first print service and the second print service based on an instruction by a user.
|
The present invention relates to an information processing apparatus, a terminal apparatus, an information processing method and a program.
In Wi-Fi Alliance Certification Program Wi-Fi Aware, NAN (Neighbor Awareness Networking) is provided that can detect services which close terminals provide. A terminal in a NAN cluster detects the services by exchanging a Publish message which is a signal for searching for the services, and a Subscribe message for notifying that the services are provided. In PTL 1, a communication device is disclosed which detects a chat service using the NAN, then establishes a data link, and executes a chat application.
The NAN device can detect the services in the NAN cluster, but it is necessary to separately establish a wireless connection for communication of an application for actually using the service after the service has been detected. As for the wireless connection, two types can be considered that are a direct wireless connection of directly using a NAN interface which has been used for service detection, and a wireless connection via an access point. However, there is a case where only service notification may be performed and it is not necessary so far as to perform wireless connection, though depending on the type of services.
An information processing apparatus according to an aspect of the present invention comprises: a notifying unit that notifies a plurality of services which the information processing apparatus provides; a receiving unit that receives a connection request in which one service among the plurality of services is designated, from a terminal apparatus; and a controlling unit that when allowing the connection request, establishes a connection with the terminal apparatus, based on a communication method of wireless communication concerning the connection request and the designated service, and when not allowing the connection request, does not establish the connection with the terminal apparatus.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The embodiments of the present invention will be described below with reference to the drawings.
In Embodiment 1, a process will be described below which controls whether or not a printing apparatus 100 permits or rejects a connection request for a direct wireless connection, according to a service. In Embodiment 1, an example with the use of the printing apparatus 100 will be described, but the processes and the like of the embodiments which will be described below are not limited to those in the example. The processes and the like of the embodiments to be described below can be applied to various information processing apparatuses in place of the printing apparatus 100, such as a camera, a projector, a scanner, a three-dimensional printer, a television, a game machine and a mobile telephone terminal, which notify that services are provided by using wireless communication. In the following, the printing apparatus 100 will be described as an example.
In a NAN service, a terminal in a NAN cluster exchanges a Publish message which is a signal for searching a service, and a Subscribe message for notifying that the service is provided, and detects and/or provides the services. For example, the printing apparatus 100 periodically publishes a service. The mobile telephone terminal subscribes to the published information, thereby can detect the service provided by the printing apparatus 100, and can receive the service.
The CPU 201 controls the whole printing apparatus 100. More specifically, the CPU 201 develops a program stored in a ROM 203 or an HDD 204 into a RAM 202, executes the process, and thereby achieves a function of the printing apparatus 100 and processes of flow charts in
The ROM 203 stores the programs. The RAM 202 is used as a temporary storage area for a main memory and a work area of the CPU 201. The HDD 204 stores: various data such as print data and scanned images; programs; and the like.
A printer 207 executes print processing based on print data received from an external device, a scanned image generated by a scanner 213, and the like, under control of the CPU 201. The scanner 213 reads a document and generates a scanned image (read image data). The scanned image generated by the scanner 213 is printed by the printer 207 or stored in the HDD 204.
The print I/F 206 is an interface between the CPU 201 and the printer 207. The print I/F 206 can transmit the print data transmitted from the CPU 201, to the printer 207, and can transmit the state of the printer which the print I/F 206 has received from the printer 207, to the CPU 201.
The scanner I/F 212 is an interface between the CPU 201 and the scanner 213. The scanner I/F 212 can transmit an image reading instruction which has been transmitted from the CPU 201, to the scanner 213, and can transmit the image data which the scanner I/F has received from the scanner 213, to the CPU 201. In addition, the scanner I/F 212 can transmit the state of the scanner 213 which the scanner I/F has received from the scanner 213, to the CPU 201.
The operation panel I/F 208 is an interface between the CPU 201 and an operation unit 209. The operation panel I/F 208 can transmit an instruction from the user input from the operation unit 209, to the CPU 201, and can transmit screen information for the user to operate, to the operation unit 209.
The printer 207 can print the image data having received from the print I/F 206, on a sheet, and transmit the state of the printer 207, to the print I/F 206.
The scanner 213 can read the paper placed on the scanner 213 according to the image reading instruction having received from the scanner I/F 212, digitize the contents, and transmit the digitized contents to the scanner I/F 212. In addition, the scanner 213 can transmit the state of the scanner 213, to the scanner I/F 212.
The operation unit 209 is a user interface which the printing apparatus 100 provides. The operation unit 209 is equipped with a liquid crystal screen, for example, having a touch panel, provides an operation screen to the user, and also accepts an operation from the user.
The wireless LAN interface (wireless LAN I/F) 210 achieves wireless communication with an external device via a wireless LAN chip 211. As for a connection type of wireless LAN, there are connection types such as wireless infrastructure and wireless direct.
A wired LAN interface (wired LAN I/F) 214 executes communication with an external device such as a PC terminal, through a wired LAN via a wired LAN chip 215.
The Bluetooth interface (Bluetooth I/F) 216 executes communication with an external device such as a PC terminal, through Bluetooth via a Bluetooth chip 217.
A CPU 10 controls the whole mobile terminal. More specifically, the CPU 10 develops a program stored in a ROM 12 into a RAM 11, executes the process, and thereby achieves the function of the mobile terminal and processes in a flowchart of
The ROM 12 stores programs, data to be used when the CPU 10 executes the processes, and the like. The RAM 11 is used as a temporary storage area for a main memory and a work area of the CPU 10.
The operation unit I/F 17 is an interface between the CPU 10 and an operation unit 18. The operation unit I/F 17 can transmit an instruction from the user, which has been input from the operation unit 18, to the CPU 10, and can transmit screen information for the user to operate, to the operation unit 18.
The operation unit 18 is an interface which the mobile terminal provides. The operation unit 18 is equipped with a liquid crystal screen, for example, having a touch panel, provides an operation screen to the user, and also accepts an operation from the user.
The wireless LAN interface (wireless LAN I/F) 13 achieves wireless communication with an external device via a wireless LAN chip 14. As for the connection type of wireless LAN, there are the connection types such as the wireless infrastructure and the wireless direct.
The Bluetooth interface (Bluetooth I/F) 15 executes communication with an external device such as a PC terminal, through Bluetooth via a Bluetooth chip 16.
When the “print service” is set at the “use”, the printing apparatus 100 periodically transmits a service notification such as a service notifying packet 500 in
When the “wireless direct print service for guest” is set at “use”, the printing apparatus 100 periodically transmits a service notification such as a service notifying packet 501 in
Next, a process for performing the NAN transmission on boot-up in the printing apparatus 100 will be described with reference to the flowchart of
After the power of the printing apparatus 100 has been turned on, in S601, the CPU 201 acquires the set value as to whether the Wi-Fi Aware is set at use or not, from the HDD 204 or the like via the screen 300 in
In S602, the CPU 201 acquires a set value of the print service in
More specifically, in S603 and S604, the CPU 201 stores the print service name, the IP address and other items, in the respective fields of the packet, as described in
When packet data to be notified as the service notifying packet 500 in
Next, in S606, the CPU 201 acquires a set value of the wireless direct print service for guest in
When packet data to be notified as the service notifying packet 501 in
Next, with reference to the flowchart of
In S701, the CPU 201 determines whether or not the printing apparatus 100 has received a connection request from the mobile terminal, at the interface through which the NAN is operating. This connection request is a connection request in a wireless layer. In addition, this connection request is one example of a connection request in which one service among the plurality of services notified by the process of the flowchart in
In S702, the CPU 201 determines for which service the connection request has been received. When the CPU 201 has determined that the print service has received the connection request, the CPU 201 proceeds to S703, because the print service operates only via the access point and accordingly does not operate at the NAN interface. In addition, when the CPU 201 determines that the print service for guest has received the connection request, the CPU 201 proceeds to S705, because the print service for guest operates at the NAN interface.
In S703, the CPU 201 rejects the connection request for the service.
In S705, the CPU 201 allows the connection request for the service, and establishes the connection in the wireless layer.
In S706, the CPU 201 executes the print processing, based on a request for the print processing or the like transmitted from the mobile terminal through TCP communication.
When the print processing has been completed, the CPU 201 ends the connection in the wireless layer, in S707. Then, the CPU 201 returns to S701.
In S708, the CPU 201 determines whether a connection request for the TCP has been received from the MLAN interface which is connected to the access point. This connection request is one example of a connection request in which one service among the plurality of services notified by the process of the flowchart in
In S709, the CPU 201 determines for which service the connection request is. When the CPU 201 has determined that the connection request is for the print service, the CPU 201 proceeds to S710; and when the CPU 201 has determined that the connection request is for the print service for guest, the CPU 201 proceeds to S713 because the print service for guest is a service operating at the NAN interface.
In S710, the CPU 201 allows the TCP connection request.
In S711, the CPU 201 executes the print processing, based on a request for the print processing from the mobile terminal or the like.
When the print processing has been completed, the CPU 201 ends the TCP connection in S712.
In S713, the CPU 201 rejects the connection request for the TCP.
In the case of a service which does not need to perform the direct wireless connection, if the mobile terminal and the printing apparatus establish the direct wireless connection, a security hole is formed; and accordingly the printing apparatus 100 controls whether to reject or allow the connection request, according to the service, and thereby can guarantee security.
In Embodiment 2, a process will be described in which a mobile terminal determines whether or not the mobile terminal should establish the direct wireless connection. In Embodiment 1, a control has been described in which the printing apparatus rejects when having received a connection request through a direct wireless connection that is not allowed. However, in Embodiment 2, the mobile terminal acquires the contents of the service notification, and determines whether or not the mobile terminal can perform the direct wireless connection. Because of this, in the case of a service which is not originally allowed from the mobile terminal, a request for the direct wireless connection cannot be transmitted from the mobile terminal.
When the NAN services is searched as illustrated on the screen 901, the CPU 10 determines whether or not the NAN service is notified, in S801. When the NAN service notification has been detected, the CPU 10 proceeds to S802, and when the NAN service notification has not been detected, the CPU 10 repeats the process of S801.
In S802, the CPU 10 displays a detected service list on the operation unit 18 as in the screen 902.
In S803, when a service is selected by the user, the CPU 10 determines a connection method according to the selected service. When the “print service” has been selected, the CPU 10 proceeds to S804; and when the “print service for guest” has been selected, the CPU 10 proceeds to S805.
In S804, the CPU 10 transmits a TCP connection request to the printing apparatus 100 via the MLAN interface, in other words, via the access point.
In S805, the CPU 10 transmits a request for the direct wireless connection via the NAN interface.
Due to a mobile terminal side selecting an appropriate connection method according to the service, an occurrence of such unnecessary processing can be prevented that rejection occurs due to the selection of an inappropriate connection method.
In addition, the selection of the above described connection method is an example in the case where the connection method corresponding to the service has been statically set beforehand in the mobile terminal. Instead of this method, the printing apparatus may be configured to include information as to whether or not the direct wireless connection method is possible, in the notifying packet of the NAN, as in the “P2PFlag” field of the NAN packet of
In the process of the present modified example, the mobile terminal side controls whether to directly establish the connection of the wireless communication or the connection via the access point, according to the service, and thereby can establish appropriate and reliable communication.
According to the above described embodiments, it is possible to prevent unnecessary wireless connection from being established and improve security.
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 a ‘non-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)™), a flash memory device, a memory card, and the like.
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.
This application claims the benefit of Japanese Patent Application No. 2017-213924, filed Nov. 6, 2017, which is hereby incorporated by reference herein in its entirety.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10368232, | Aug 05 2015 | Qualcomm Incorporated | Methods for connection capability exchange |
10506416, | Nov 30 2009 | Sony Corporation | Radio communication device, radio communication system, program, and radio communication method |
10585634, | Nov 30 2016 | Canon Kabushiki Kaisha | Information processing apparatus capable of performing wireless communication, control method for the information processing apparatus, and storage medium |
7613426, | Dec 20 2005 | Microsoft Technology Licensing, LLC | Proximity service discovery in wireless networks |
8903987, | May 15 2009 | Canon Kabushiki Kaisha | Communication apparatus and method for controlling communication apparatus |
9661445, | May 02 2014 | Qualcomm Incorporated | Methods and apparatus for integrating bluetooth devices into neighbor aware networks |
20060036679, | |||
20070140243, | |||
20100304752, | |||
20140044010, | |||
20150009414, | |||
20150169269, | |||
20150350905, | |||
20160050551, | |||
20160127996, | |||
20160234758, | |||
20160353233, | |||
20160353269, | |||
20170085638, | |||
20170094496, | |||
20170208559, | |||
20180213387, | |||
20180310232, | |||
20200081091, | |||
20200314625, | |||
20220232117, | |||
CN101341686, | |||
CN101888686, | |||
CN102083146, | |||
CN107925860, | |||
CN108121519, | |||
CN108418896, | |||
EP2257100, | |||
EP2645812, | |||
EP2950560, | |||
EP3101874, | |||
EP3382528, | |||
JP2003209877, | |||
JP2010278565, | |||
JP2015019122, | |||
JP2017063310, | |||
JP2017063312, | |||
JP2017103813, | |||
WO2004043107, | |||
WO2017105492, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 20 2022 | Canon Kabushiki Kaisha | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
May 20 2022 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Date | Maintenance Schedule |
Jan 30 2027 | 4 years fee payment window open |
Jul 30 2027 | 6 months grace period start (w surcharge) |
Jan 30 2028 | patent expiry (for year 4) |
Jan 30 2030 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 30 2031 | 8 years fee payment window open |
Jul 30 2031 | 6 months grace period start (w surcharge) |
Jan 30 2032 | patent expiry (for year 8) |
Jan 30 2034 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 30 2035 | 12 years fee payment window open |
Jul 30 2035 | 6 months grace period start (w surcharge) |
Jan 30 2036 | patent expiry (for year 12) |
Jan 30 2038 | 2 years to revive unintentionally abandoned end. (for year 12) |