Information processing apparatus, method, and program
By using secondary identification information like a serial number or original MAC address, the device overcomes the challenge of MAC randomization to maintain communication with networked devices.
Patent Information
- Application Number
- JP2023078695
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing information processing devices struggle to identify a desired communication device from a network when its identification information, such as the MAC address, is randomized, leading to communication failures.
The device employs a mechanism to acquire and utilize secondary identification information, such as a serial number or original MAC address, to identify and reconnect with the communication device even if its MAC address is randomized.
Enables successful communication with the desired device by updating the stored IP address based on the acquired secondary identification information, ensuring connectivity despite MAC address randomization.
Smart Images

Figure 2024162789000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, method, and program. [Background technology]
[0002] In recent years, a technology for operating communication devices that can connect to the Internet, such as image forming devices and home appliances, using information processing devices such as smartphones and PCs, has become widespread. In order to allow a user to select a specific communication device from the information processing device and operate it, the information processing device stores network information such as the IP address and MAC address of the communication device when communicating with the communication device. Then, when a connection is subsequently made to a specific communication device in response to a user operation, the stored IP address is used for connection. However, if the IP address of the communication device has been changed by DHCP (Dynamic Host Configuration Protocol), the information processing device cannot find the IP address and cannot communicate with the communication device. In that case, the communication device is identified by acquiring the MAC address of the communication device through broadcast communication and comparing it with the MAC address stored in the information processing device.
[0003] On the other hand, due to security concerns that the MAC address of a communication device may be observed by a third party and the user may be identified, a technology for periodically changing the MAC address (hereinafter, MAC address randomization) has been introduced into devices such as smartphones. If the MAC address of a communication device is randomized, the communication device cannot be identified from an information processing device by the above-mentioned method.
[0004] In Patent Document 1, a first wireless terminal transmits an identifier generated from a stored MAC address of a second wireless terminal to the second wireless terminal. The second wireless terminal verifies the received identifier, and if the identifier is correct, transmits its current MAC address to the first wireless terminal. The first wireless terminal then establishes a connection with the second wireless terminal using the received MAC address. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Special Publication No. 2017-525287 Summary of the Invention [Problem to be solved by the invention]
[0006] Patent Document 1 refers to communication between two devices, an information processing device and a specific communication device. Even if the identification information of the communication device is randomized, a mechanism is required that enables a communication device to be identified from multiple communication devices existing on a network.
[0007] An object of the present invention is to provide an information processing device, method, and program that can identify a desired communication device from among multiple communication devices even when the identification information of the communication devices is randomized. [Means for solving the problem]
[0008] In order to solve the above problem, the information processing device of the present invention is characterized in that it comprises a storage means for storing information of a communication device to be communicated with, a first acquisition means for acquiring first identification information from a communication device, a second acquisition means for acquiring, if the first identification information acquired by the first acquisition means is randomized identification information, a second identification information of a type different from the first identification information from the communication device that acquired the randomized identification information, and an identification means for identifying a communication device to be communicated with from among the communication devices that have acquired the randomized identification information, based on the second identification information included in the information of the communication device stored in the storage means and the second identification information acquired by the second acquisition means. Effect of the Invention
[0009] According to the present invention, even if the identification information of the communication devices is randomized, it is possible to identify a desired communication device from among a plurality of communication devices. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram showing a configuration of a system including an information processing device and a communication device. [Diagram 2] FIG. 13 is a diagram showing a user interface screen. [Diagram 3] 4 is a flowchart showing a process executed in the information processing device. [Figure 4] 4 is a flowchart showing a process executed in the information processing device. [Diagram 5] 1 is a sequence showing a network setup process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] 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.
[0012] [First embodiment] The information processing device 101 and the communication device 151 included in the communication system of the present embodiment will be described. In the present embodiment, a smartphone is exemplified as the information processing device 101, but is not limited thereto. For example, various devices such as a mobile terminal, a PC (personal computer), a tablet terminal, a PDA (personal digital assistant), and a digital camera can be applied as the information processing device 101. In addition, a printer is exemplified as the communication device 151, but is not limited thereto, and various devices that can perform wireless communication with the information processing device 101 can be applied. For example, as a printer, an inkjet printer, a full-color laser beam printer, a monochrome printer, and the like can be applied. In addition to printers, copiers, facsimile machines, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, smart speakers, and the like can be applied. In addition, a multifunction device having multiple functions such as a copy function, a FAX function, and a print function can be applied.
[0013] First, the configuration of the information processing device 101 of the present embodiment and the communication device 151 capable of communicating with the information processing device 101 of the present embodiment will be described with reference to the block diagram of Fig. 1. In addition, the following configuration will be described as an example in the present embodiment, but is not limited to the functions shown in the figure. A device applicable to the information processing device 101 and the communication device 151 may have a configuration corresponding to the executable functions as appropriate.
[0014] The information processing device 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, a display unit 108, a communication unit 110, a short-range wireless communication unit 111, and an imaging unit 112. The CPU 103, ROM 104, RAM 105, etc. form a computer of the information processing device 101 that executes a program.
[0015] The input interface 102 is an interface for accepting data input and instruction operations from a user by operating an operation unit such as a keyboard 109. Note that the operation unit may be a physical keyboard, physical buttons, etc., or may be a soft keyboard, soft buttons, etc. displayed on the display unit 108. In other words, the input interface 102 may accept input from the user via the display unit 108.
[0016] The CPU 103 is a system control unit, and controls the entire information processing device 101, such as by executing application programs. The ROM 104 stores fixed data, such as control programs and data tables executed by the CPU 103, and an embedded operating system (hereinafter, referred to as OS) program. In this embodiment, each control program stored in the ROM 104 performs software execution control, such as scheduling, task switching, and interrupt processing, under the management of the embedded OS stored in the ROM 104.
[0017] The RAM 105 is composed of a static random access memory (SRAM) that requires a backup power source. The RAM 105 holds data using a primary battery (not shown) for data backup, so that important data such as program control variables can be stored without volatilization. The RAM 105 also has a memory area for storing setting information for the information processing device 101, management data for the information processing device 101, and the like. The RAM 105 is also used as the main memory and work memory for the CPU 103.
[0018] The external storage device 106 stores a service registration application, an application program for executing the network setup of the communication device 151, a printer management application, a print information generation program for generating print information that can be interpreted by the communication device 151, and the like. Each program is stored in the external storage device 106 by being installed from an external server (not shown) by Internet communication via the communication unit 110, for example. The service registration application is an application program for transmitting information acquired from the communication device 151 and personal information of a user acquired by the information processing device 101 to a service management server (not shown). The application program (setting application) for executing the network setup of the communication device 151 is an application program for setting an access point to which the communication device 151 is connected. The printer management application is an application for managing printer information. The service registration application, the setting application, the printer management application, and the print information generation program (print application) may be configured as one application.
[0019] The output interface 107 is an interface that controls the display unit 108 to display data and notify the status of the information processing device 101. The display unit 108 is composed of an LED (light emitting diode), an LCD (liquid crystal display), and the like, and displays data and notifies the status of the information processing device 101. The imaging unit 112 is, for example, a camera that captures an image of the outside.
[0020] The communication unit 110 is configured to connect to devices such as the communication device 151 and the access point 131 to perform data communication. For example, the communication unit 110 can connect to an access point (not shown) in the communication device 151. The communication unit 110 also has an access point for connecting to devices such as the communication device 151 as an access point inside the information processing device 101. This access point is generally called tethering. The communication unit 156 of the communication device 151 can be connected to the access point. When the communication unit 110 enables the access point, the information processing device 101 operates as an access point. When the communication unit 156 and the access point in the communication unit 110 are connected, the information processing device 101 and the communication device 151 can communicate with each other. When the communication unit 110 of the information processing device 101 is connected to the Internet, the communication device 151 can also be connected to the Internet via the information processing device 101. In this embodiment, the information processing device 101 can communicate with the communication device 151 via an external device that exists outside the information processing device 101 and outside the communication device 151. The external device includes an external access point (such as the access point 131) that exists outside the information processing device 101 and outside the communication device 151, and a device that can relay communication other than an access point. An example of the access point 131 is a device such as a wireless LAN router. A method in which the information processing device 101 and the communication device 151 are connected via an external access point is called an infrastructure connection method.
[0021] The short-range wireless communication unit 111 is configured to wirelessly connect to a device such as the communication device 151 at a short distance and execute data communication, and communicates by a communication method different from that of the communication unit 110. The short-range wireless communication unit 111 can be connected to, for example, a short-range wireless communication unit 157 in the communication device 151. Examples of the communication method include Near Field Communication (NFC), Bluetooth (registered trademark) Classic, Bluetooth Low Energy (BLE), and Wi-Fi Aware.
[0022] The communication device 151 includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range wireless communication unit 157, and a display unit 158. The ROM 152, the RAM 153, the CPU 154, etc. form a computer of the communication device 151 that executes a program.
[0023] The communication unit 156 has an access point for connecting to an external device such as the information processing device 101 as an access point inside the communication device 151. The access point can be connected to the communication unit 110 of the information processing device 101. The communication unit 156 enables the access point, causing the communication device 151 to operate as an access point. The communication unit 156 may be wirelessly connected directly to the information processing device 101, or may be wirelessly connected via the access point 131. The wireless communication method used by the communication unit 156 is, for example, a communication standard conforming to the IEEE802.11 series. The communication unit 156 may be provided with hardware that functions as an access point, or may operate as an access point by software for functioning as an access point.
[0024] Here, a mode and a connection method for performing wireless communication using the communication unit 156 will be described.
[0025] <About the direct connection method> A direct connection refers to a form in which devices are directly (i.e., peer-to-peer) wirelessly connected to each other without going through an external device such as the AP 131. A direct connection is also called a peer-to-peer connection (P2P connection). The communication device 151 can operate in a mode for communicating via a direct connection (direct connection mode) as one of the connection modes. In Wi-Fi communication, there are multiple modes for communicating via a direct connection, such as a software AP mode and a Wi-Fi Direct (WFD) mode.
[0026] A mode in which a direct connection is performed by WFD is called a WFD mode. WFD is a standard established by the Wi-Fi Alliance, and is included in the IEEE802.11 series of communication standards. In the WFD mode, after a device to be a communication partner is searched for by a device search command, the roles of the P2P group owner (GO) and the P2P client are determined, and the remaining wireless connection processing is performed. The group owner corresponds to a Wi-Fi parent station (parent device), and the client corresponds to a Wi-Fi child station (child device). This role determination corresponds to, for example, GO Negotiation in P2P. Note that in the WFD mode before the role determination, the communication device 151 is in a state of neither a parent station nor a child station. Specifically, first, one device issues a device search command between devices to communicate with each other and searches for a device to connect in WFD mode. When the other device to be a communication partner is searched for, the two devices confirm information about services and functions that can be provided by each other's devices. Note that this device provision information confirmation is optional and not required. This device provision information confirmation phase corresponds to, for example, Provision Discovery of P2P. Next, by mutually confirming this device provision information, it is determined which one will be the P2P client and which one will be the P2P group owner as their roles. Next, when the client and the group owner are determined, parameters for performing communication by WFD are exchanged between them. Based on the exchanged parameters, the remaining wireless connection processing and IP connection processing are performed between the P2P client and the group owner. Note that in the WFD mode, the communication device 151 may always operate as the GO without executing the above-mentioned GO Negotiation. That is, the communication device 151 may operate in the WFD mode, which is an autonomous GO mode. Also, the state in which the communication device 151 operates in the WFD mode is, for example, a state in which the communication device 151 operates as the GO even though a connection by WFD is not established, or a state in which a connection by WFD is established and the communication device 151 operates as the GO.
[0027] In the software AP mode, between devices that communicate (for example, the information processing device 101 and the communication device 151), one device (for example, the information processing device 101) becomes a client that plays a role of requesting various services. The other device realizes the function of an access point in Wi-Fi by software settings. The software AP corresponds to a parent station of Wi-Fi, and the client corresponds to a child station of Wi-Fi. In the software AP mode, the client searches for a device that will become a software AP by a device search command. When the software AP is searched, the remaining wireless connection processing (establishment of a wireless connection, etc.) between the client and the software AP is performed, and then the IP connection processing (assignment of an IP address, etc.) is performed. Note that commands and parameters transmitted and received when realizing a wireless connection between the client and the software AP may be those specified in the Wi-Fi standard, and therefore a description thereof will be omitted here.
[0028] In this embodiment, when the communication device 151 establishes and maintains a direct connection, it operates as a master station in the network to which the communication device 151 belongs. The master station is a device that constructs a wireless network and provides a slave station with parameters used for connecting to the wireless network. The parameters used for connecting to the wireless network are, for example, parameters related to a channel used by the master station. By receiving the parameters, the slave station connects to the wireless network constructed by the master station using the channel used by the master station. In the direct connection mode, the communication device 151 operates as a master station, and therefore, it is possible for the communication device 151 to determine which frequency band and which channel are to be used for communication in the direct connection mode. In this embodiment, it is assumed that the communication device 151 is capable of using a channel corresponding to a 2.4 GHz frequency band and a channel corresponding to a 5 GHz frequency band for communication in the direct connection mode.
[0029] <About infrastructure connection method> The infrastructure connection is a connection form in which devices that communicate with each other (for example, the information processing device 101 and the communication device 151) are connected to an access point (for example, AP131) that manages a network of the devices, and the devices communicate with each other via the access point. The communication device 151 can also operate in a mode for communicating via an infrastructure connection (infrastructure connection mode) as one of the connection modes.
[0030] In infrastructure connections, each device searches for an access point using a device search command. Once an access point has been found, the remaining wireless connection processing (establishment of a wireless connection, etc.) between the device and the access point is carried out, and then IP connection processing (assignment of an IP address, etc.) is carried out. Note that commands and parameters sent and received when establishing a wireless connection between a device and an access point can be those specified in the Wi-Fi standard, and so a description of these will be omitted here.
[0031] In this embodiment, when the communication device 151 operates in the infrastructure connection, the AP 131 operates as a parent station, and the communication device 151 operates as a child station. That is, in this embodiment, the infrastructure connection refers to a connection between the communication device 151 operating as a child device and a device operating as a parent device. When the communication device 151 has established an infrastructure connection and the information processing device 101 has also established an infrastructure connection with the AP 131, communication between the communication device 151 and the information processing device 101 via the AP 131 is possible. Since the channel used for communication in the infrastructure connection is determined by the AP 131, the communication device 151 executes communication in the infrastructure connection using the channel determined by the AP 131. In this embodiment, the communication device 151 is assumed to be able to use a channel corresponding to the 2.4 GHz frequency band and a channel corresponding to the 5 GHz frequency band for communication in the infrastructure connection. Note that the communication device 151 is also able to use a channel corresponding to the DFS band in the 5 GHz frequency band for communication in the infrastructure connection. In order to communicate with the communication device 151 via the AP 131, the information processing device 101 needs to recognize that the communication device 151 belongs to the network formed by the AP 131 and to which the information processing device 101 belongs.
[0032] <About network setup mode> The communication device 151 can operate in a network setup mode. A trigger for the communication device 151 to start operating in the network setup mode may be, for example, a user pressing a network setup mode button, or the communication device 151 being started (powered ON) for the first time after arrival. The network setup mode button may be a hardware (physical) button provided in the communication device 151, or may be a software button displayed on the display unit 158 by the communication device 151.
[0033] When the communication device 151 starts operating in the network setup mode, it enables Wi-Fi communication. Specifically, the communication device 151 enables an internal AP (connection setting AP) of the communication device 151, which is dedicated to the network setup mode, as an enabling process of Wi-Fi communication. This allows the communication device 151 to establish a direct connection with the information processing device 101 by Wi-Fi. It is assumed that connection information (SSID (Service Set Identifier) and password) for connecting to the connection setting AP is held in advance in a setup application installed in the information processing device 101, and the information processing device 101 recognizes the connection information for connecting to the connection setting AP in advance. Therefore, unlike the connection information of the AP enabled in the direct connection mode, it is assumed that the connection information for connecting to the connection setting AP cannot be arbitrarily changed by the user. Note that in the network setup mode, the communication device 151 may connect to the information processing device 101 by Wi-Fi Direct (WFD) instead of normal Wi-Fi. That is, the communication device 151 may operate as a Group Owner and receive a setting command from the information processing device 101 through communication by WFD. Also, in the network setup mode, the communication device 151 may connect to the information processing device 101 through Bluetooth. Here, Bluetooth includes Bluetooth Classic and Bluetooth Low Energy (BLE). That is, for example, the communication device 151 may operate as a slave device in BLE in the network setup mode and receive a setting command from the information processing device 101 through communication by BLE. Also, in the network setup mode, the communication device 151 may be capable of executing both network setup by Wi-Fi and network setup by BLE. That is, when the communication device 151 starts operation in the network setup mode, it may enable both Wi-Fi communication and BLE communication.Specifically, when the communication device 151 starts operating in the network setup mode, it may perform both enabling the connection setting AP and enabling the advertising state, which is a state in which advertising information is sent via BLE and BLE connection is possible.
[0034] When the communication device 151 operates in the network setup mode, it controls the communication unit 156 to operate as a setup access point (connection setting AP) that is valid only while the communication device 151 operates in the network setup mode. The setup access point is an access point different from the access point that is enabled in the soft AP mode described above. The SSID of the setup access point includes a predetermined character string that can be recognized by the setting application of the information processing device 101.
[0035] The communication device 151 operating in the network setup mode uses a predetermined communication protocol (setup communication protocol) in communication with the information processing device 101 connected to the setup access point. Specifically, the setup communication protocol is, for example, SNMP (Simple Network Management Protocol).
[0036] After starting operation in the network setup mode, when a predetermined time has elapsed, the communication device 151 stops operation in the network setup mode and disables the setup access point. In addition, when connection information for connecting to the AP 131 and an instruction to change the wireless communication operation mode are received from the information processing device 101 during the network setup mode, the setup access point is also disabled. In addition, the setup access point is assumed to be an access point that does not require a password for connection. Note that the setup access point may be an access point that requires a password. In this case, the password used to connect to the setup access point is assumed to be a fixed password (that cannot be changed by the user) that is known in advance by the setting application.
[0037] A MAC address (Media Access Control address) is assigned to the communication unit 156. The MAC address is an identifier used to identify the communication unit, and is uniquely assigned to each communication unit in all devices including communication devices and information processing devices. Therefore, it is often used to identify an individual device. In this embodiment, an identifier used to identify a device is called device identification information. That is, a MAC address is an example of device identification information. In this embodiment, the device identification information is a MAC address, but is not limited to this. For example, it may be a manufacturing number (serial number) assigned to the communication device 151.
[0038] The short-range wireless communication unit 157 is a component for wirelessly connecting to a device such as the information processing device 101 at a short distance, and can be connected to, for example, the short-range wireless communication unit 111 in the information processing device 101. Examples of communication methods include NFC, Bluetooth Classic, BLE, and Wi-Fi Aware.
[0039] The RAM 153 is composed of an SRAM or the like that requires a backup power source. Since the RAM 153 holds data using a primary battery for data backup (not shown), it can store important data such as program control variables without volatilization. The RAM 153 also has a memory area for storing setting information for the communication device 151, management data for the communication device 151, and the like. The RAM 153 is also used as the main memory and work memory of the CPU 154, and as a receiving buffer, and temporarily stores print information received from the information processing device 101, etc., and stores various types of information.
[0040] The ROM 152 stores fixed data such as control programs, data tables, and OS programs executed by the CPU 154. In this embodiment, each control program stored in the ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 152. A serial number for identifying the communication device 151 is also stored in the ROM 152. The serial number is uniquely assigned by the manufacturer of the communication device 151 to identify the communication device 151. In this embodiment, the serial number can also be used as device identification information for identifying the communication device 151. If the communication device 151 is a printer, the usage status and remaining amount of ink are collected from the print engine 155 and stored in the ROM 152. The CPU 154 is a system control unit and controls the entire communication device 151.
[0041] The print engine 155 forms an image on a recording medium such as paper by applying a recording agent such as ink based on information stored in the RAM 153 and a print job received from the information processing device 101, etc., and outputs the print result. Generally, the amount of data of a print job transmitted from the information processing device 101, etc. is large, so that a communication method capable of high-speed communication is required for communication of the print job. Therefore, the communication device 151 receives the print job via a communication unit 156 capable of communication at a higher speed than the short-range wireless communication unit 157. The display unit 158 is, for example, a panel, and displays data and notifies the status of the communication device 151.
[0042] Note that a memory such as an external HDD or an SD card may be attached to the communication device 151 as an optional device, and the information stored in the communication device 151 may be stored in the memory.
[0043] Now, assume a configuration in which a user selects a specific communication device on a network from an information processing device and operates it. When communicating with a communication device, the information processing device stores network information such as the IP address and MAC address of the communication device. Then, when a user operates to connect to a specific communication device, the stored IP address is used for connection. However, if the IP address of the communication device has been changed by DHCP (Dynamic Host Configuration Protocol), the information processing device cannot find the IP address and cannot communicate with the communication device. In this case, the communication device is identified by acquiring the MAC address of the communication device through broadcast communication and comparing it with the MAC address stored in the information processing device.
[0044] On the other hand, due to security concerns that the MAC address of a communication device may be observed by a third party and the user may be identified, a technology for periodically changing the MAC address (hereinafter, MAC address randomization) has been introduced into devices such as smartphones. If the MAC address of a communication device is randomized, the communication device cannot be identified from an information processing device by the above-mentioned method.
[0045] Therefore, in this embodiment, the MAC addresses of communication devices present on the network are acquired by broadcast communication, and communication devices whose MAC addresses have been changed are extracted. The information processing device receives an identifier other than the MAC address from the extracted communication device, and identifies the communication device with which communication is desired by comparing the identifier with the identifier stored in the information processing device. In this way, even if the IP address or MAC address stored in the information processing device has been changed on the communication device side, it is possible to identify the communication device on the network.
[0046] In this embodiment, it is assumed that the communication device 151 includes devices that support the MAC address randomization function and devices that do not support the MAC address randomization function. The MAC address randomization function is a function set by the Institute of Electrical and Electronics Engineers (IEEE). It is a function that assigns a MAC address generated according to a rule set by the IEEE to a device. In the following, a MAC address generated as a random value by the MAC address randomization function is referred to as a random MAC address. A MAC address that is not randomly generated by the MAC address randomization function and has a fixed value that is not changed is referred to as a fixed MAC address. It is assumed that a device that supports the MAC address randomization function is a device of a newer model (model number), and a device that does not support the MAC address randomization function is a device of an older model.
[0047] Furthermore, a device that supports the MAC address randomization function can execute a setting as to whether or not to enable the MAC address randomization function. A communication device 151 that supports the MAC address randomization function and is set to enable the MAC address randomization function provides a random MAC address to an external device. That is, a random MAC address is used as a MAC address assigned to the communication unit 156 of the communication device 151. If the setting is set to enable the MAC address randomization function, the MAC address assigned to the communication unit 156 of the communication device 151 is periodically changed. The changed MAC address is also generated as a random value by the MAC address randomization function. A communication device 151 that supports the MAC address randomization function but is not set to enable the MAC address randomization function provides a fixed MAC address. A communication device 151 that does not support the MAC address randomization function also provides a fixed MAC address to an external device. That is, a fixed MAC address is used as a MAC address assigned to the communication unit 156 of the communication device 151.
[0048] The MAC address assigned to the communication unit 156 of the communication device 151 includes information indicating a random MAC address. The MAC address is expressed by alphanumeric characters representing 12 hexadecimal digits and a delimiter such as ":" (for example, 1A:2B:3C:4D:5E:6F). The two alphanumeric characters separated by a delimiter in the MAC address are called an octet. The IEEE defines a MAC address in which the second bit of the first octet (1A in the above example) is 1 when the value of the first octet is expressed in binary as a random MAC address. A MAC address in which the second bit of the first octet is 1 when the value of the first octet is expressed in binary as a MAC address in which the value of the first octet ends with any of the values 2, 6, A, and E, for example. Since the random MAC address is defined as above, the fixed MAC address is a MAC address in which the value of the first octet ends with a value other than 2, 6, A, and E.
[0049] First, a network setup process for the communication device 151 executed by the information processing device 101 will be described with reference to FIG.
[0050] 5 is realized by, for example, the CPU of each device reading out a program stored in the ROM or an external storage device of each device into the RAM of each device and executing the program. As described above, a setup communication protocol is used in communication via a Wi-Fi connection between the communication device 151 operating in the network setup mode and the information processing device 101.
[0051] In S500, the information processing device 101 requests a list of access points from the communication device 151 via a Wi-Fi connection between the information processing device 101 and the communication device 151 operating in a network setup mode using a setting application.
[0052] Next, in S501, the communication device 151 transmits a list of access points to the information processing device 101 via a Wi-Fi connection between the communication device 151 operating in a network setup mode and the information processing device 101. Note that the list transmitted here is a list indicating one or more access points to which the communication device 151 can connect, which have been discovered by the communication device 151 executing an AP search.
[0053] Next, in S502, the information processing device 101 transmits connection information of any of the access points included in the received list to the communication device 151 via a Wi-Fi connection between the communication device 151 operating in a network setup mode and the information processing device 101. Note that this process is realized by controlling the information processing device 101 so that the setting application transmits connection information of any of the access points included in the received list. Specifically, in this process, if the connected AP is included in the received list, the information processing device 101 transmits connection information of the connected AP. Also, if the connected AP is not included in the received list, the information processing device 101 displays the received list and accepts the selection of any of the access points from the list from the user. Then, the information processing device 101 transmits connection information of the selected access point. Note that before transmitting the connection information, the information processing device 101 accepts input of a password for connecting to the access point from the user on a screen displayed by the print application. Then, the information processing device 101 transmits the connection information by including the accepted password in the connection information.
[0054] In S503, the communication device 151 notifies the information processing device 101 that connection information has been received via the Wi-Fi connection between the communication device 151 operating in the network setup mode and the information processing device 101.
[0055] In S504, the communication device 151 ends the network setup mode and transitions to the infrastructure connection mode. Then, the communication device 151 attempts to connect to an access point corresponding to the connection information acquired in S502, using the connection information. If the connection is successful, the communication device 151 can thereafter perform communication via the network formed by the connected access point.
[0056] In S505, the information processing device 101 uses the connection information stored by the setting application to reconnect to the access point to which the information processing device 101 was connected when the setting operation was performed. Note that the present invention is not limited to this form. For example, if the information processing device 101 has transmitted to the communication device 151 connection information of an access point other than the access point to which the information processing device 101 was connected by Wi-Fi when the setting operation was performed, the information processing device 101 may connect to the other access point.
[0057] In S506, the information processing device 101 searches for the communication device 151 on the network to which the information processing device 101 belongs by the setting application. When the information processing device 101 finds the communication device 151, the information processing device 101 requests capability information from the communication device 151, and the communication device 151 transmits the capability information to the information processing device 101. As a result, information on the communication device 151 is registered on the setting application, and communication with the communication device 151 can be executed by the setting application or another application thereafter. Specifically, for example, a print job can be sent to the communication device 151 by a print application. The registered information includes, for example, an IP address, a MAC address, and a serial number. The MAC address at this time is a non-randomized MAC address. When the information processing device 101 belongs to a network formed by an access point to which the communication device 151 is connected by network setup, communication with the communication device 151 can be executed via the access point. The communication at that time is executed by using, for example, a communication protocol different from the setup communication protocol.
[0058] FIG. 2 is a diagram showing an example of a printer list screen 200 displayed by a setting application of the information processing device 101. The printer list screen 200 displays a list of communication devices 151 that have been connected in the past via the communication unit 110. That is, as described above, information on the communication devices 151 is registered in the setting application. The title 201 displays the title of the screen. The printer information display areas 202 and 203 display the names of the communication devices 151. The printer information display areas 202 and 203 can accept a selection operation by the user, and a check mark 204 is displayed in the area where the selection operation has been accepted. For example, FIG. 2 shows that the communication device 151 (printer A) displayed in the printer information display area 202 is currently selected.
[0059] When the communication button 205 is pressed, the information processing device 101 communicates with the communication device 151 corresponding to the selected printer information display area. At that time, the information processing device 101 establishes a connection to the stored IP address. If the communication is successful, the check mark is removed from the printer information display area 202, and a screen for executing a job, for example, is displayed. On the other hand, if the communication is unsuccessful, a printer connection error dialog 210 is displayed. The printer connection error dialog 210 displays a message 211 indicating that communication with the printer is not possible. When the error dialog confirmation button 212 is pressed, the display returns to the printer list screen 200. At that time, the printer information display area with which communication has failed may be displayed so that it cannot be selected.
[0060] An example of a case where communication with the selected communication device 151 fails is when the IP address of the communication device has been changed by DHCP. In that case, the information processing device 101 cannot find the IP address, and communication fails.
[0061] Hereinafter, with reference to FIG. 3, a process for identifying a communication device 151 selected by a user and with which communication is desired (a communication target) will be described.
[0062] Fig. 3 is a flowchart showing processing executed in the information processing device 101. The processing in Fig. 3 is realized, for example, by the CPU 103 of the information processing device 101 reading a program stored in the ROM 104 into the RAM 105 and executing it. The processing in Fig. 3 is started, for example, when the printer information display area 202 is selected on the printer list screen 200 in Fig. 2 and an instruction to start communication is received.
[0063] In S300, CPU 103 starts communication processing with communication device 151 using an IP address stored in information processing device 101. For example, communication processing with communication device 151 is started using an IP address registered in association with selected printer information display area 202. Hereinafter, communication device 151 corresponding to selected printer information display area 202 is referred to as printer A. Also, the IP address and MAC address registered in association are referred to as IP address A and MAC address A.
[0064] In S301, the CPU 103 determines whether communication with the printer A was successful. For example, if a connection to the printer A is established using the IP address A, it is determined that the communication was successful. If it is determined that the communication was successful, the process of FIG. 3 is terminated, and a screen for carrying out a process such as executing a job on the printer A is displayed. On the other hand, if it is determined that the communication was unsuccessful, the process proceeds to S302.
[0065] In S302, the CPU 103 acquires configuration information of the communication devices 151 present on the network. Here, the configuration information is information including a MAC address, a printer name, and an IP address. The CPU 103 also acquires the configuration information of each of the multiple communication devices 151 present on the network, for example, by broadcast communication via the communication unit 110. By the processing of S302, a list of the MAC addresses of the communication devices 151 present on the network is acquired.
[0066] In S303, CPU 103 compares the list of MAC addresses acquired in S302 with MAC address A of printer A. Then, in S304, CPU 103 determines whether or not there is a MAC address in the list of MAC addresses that matches MAC address A. If it is determined that there is a MAC address, the process proceeds to S305.
[0067] In S305, CPU 103 acquires an IP address corresponding to the MAC address that matches MAC address A. Here, this IP address is referred to as IP address A'. CPU 103 updates IP address A, which is stored in information processing device 101 and corresponds to MAC address A, to IP address A'. Then, in S306, CPU 103 starts communication processing with printer A using the updated IP address A'. After S306, the processing in FIG. 3 ends, and a screen for performing processing such as job execution for printer A is displayed.
[0068] In this way, even if the IP address of printer A is changed by DHCP, the changed IP address can be obtained and communication can be performed based on the MAC address stored in the information processing device 101 and the list of MAC addresses obtained from the network.
[0069] On the other hand, if it is determined that there is no MAC address in the list of MAC addresses that matches MAC address A, the process proceeds to S307.
[0070] In S307, CPU 103 extracts (filters) a random MAC address from the list of MAC addresses. For example, CPU 103 extracts a random MAC address based on the information indicating the random MAC address described above. Then, in S308, CPU 103 determines whether or not there is at least one random MAC address. If it is determined that there is no random MAC address in the list of MAC addresses, the process proceeds to S312.
[0071] The process proceeds to S312 when, for example, the power of the printer A with which communication is desired is not turned on. In S312, the CPU 103 displays the printer connection error dialog 211, and then ends the process of FIG.
[0072] If it is determined in S308 that at least one random MAC address exists, the process proceeds to S309. In S309, the CPU 103 acquires an identifier of the communication device 151, which is different from the MAC address, from the communication device 151 corresponding to each of the extracted random MAC addresses. The identifier acquired here is information capable of identifying the communication device 151, for example, the serial number of the communication device 151. Note that the serial number corresponding to the printer A registered in the setting application is stored in the ROM 104 of the information processing device 101. Here, the serial number is assumed to be the serial number A. In S309, the serial number of the communication device 151 is acquired by encrypted communication. The encrypted communication may be performed, for example, by SSL (TLS) communication, and a common key usable between the information processing device 101 and the communication device 151 is generated using a server certificate and a public key between the two devices, and the encrypted communication is realized by the common key. In addition, the common key used for the encrypted communication may be generated, for example, when the common key is registered in the setting application.
[0073] In S310, the CPU 103 decrypts the encrypted information acquired in S309 from the communication device 151 corresponding to each of the extracted random MAC addresses, and acquires the serial number of each communication device 151. Note that, although the serial number is acquired by encrypted communication in the present embodiment, it may be acquired without encryption. For example, it may be acquired as one of the configuration information in S302.
[0074] In S311, CPU 103 judges whether or not the serial number acquired in S310 includes a serial number that matches serial number A stored in information processing device 101. If it is judged that there is a serial number, in S313, CPU 103 acquires a random MAC address corresponding to the serial number that matches serial number A and an IP address corresponding to the random MAC address, based on the serial number that matches serial number A. Here, the acquired random MAC address and IP address are random MAC address A and IP address A'. Then, CPU 103 updates MAC address A stored in information processing device 101 to random MAC address A. After S313, in S305, CPU 103 updates IP address A stored in information processing device 101 and corresponding to random MAC address A to IP address A'. After that, the process of S306 is performed.
[0075] In this way, even if the IP address of printer A is changed by DHCP and the MAC address is randomized, the communication device 151 that desires to communicate can be identified on the network, and communication can be enabled.
[0076] If it is determined in S311 that the serial number A is not stored in the information processing device 101, the process proceeds to S312. The process proceeds to S312 when, for example, the power of the printer A with which communication is desired is not turned on. In S312, the CPU 103 displays the printer connection error dialog 211, and then ends the process of FIG.
[0077] As described above, according to this embodiment, even if the IP address is changed by DHCP and the MAC address is randomized, the communication device 151 that desires to communicate can be identified on the network and communication can be enabled.
[0078] In the present embodiment, the serial number is acquired by encrypted communication in S309. However, if the communication is intended to prevent the identification of an individual, a method other than encrypted communication may be used. For example, a hash value calculated based on the serial number in the communication device 151 corresponding to each of the extracted random MAC addresses may be acquired. Meanwhile, the CPU 103 calculates a hash value A based on the serial number A stored in the information processing device 101. Then, it is determined whether or not there is a hash value that matches the hash value A among the hash values acquired from the network. If it is determined that there is a matching hash value, the random MAC address and IP address corresponding to the hash value become the random MAC address and IP address of the printer A that is desired to communicate. Then, in S313, the CPU 103 updates the MAC address A stored in the information processing device 101 to the random MAC address A, and in S305, the CPU 103 updates the IP address A corresponding to the random MAC address A stored in the information processing device 101 to the IP address A'. On the other hand, if it is determined that there is no matching hash value, the CPU 103 displays the printer connection error dialog 210 in S312.
[0079] [Second embodiment] The second embodiment will be described below with respect to the differences from the first embodiment. In this embodiment, the method of identifying the communication device that desires communication is switched depending on the model of the communication device 151 that desires communication. In other words, when the model of the communication device 151 that desires communication is a model that does not have an identifier other than the MAC address, the MAC address before randomization by the randomization function is obtained from the communication device 151 that corresponds to the random MAC address. Hereinafter, the MAC address before randomization that is held inside the device when the MAC address is randomized by the randomization function is specifically referred to as the "original MAC address." In other words, the MAC address before randomization by the MAC address randomization function is a MAC address that has not been randomized by the MAC address randomization function.
[0080] Fig. 4 is a flowchart showing the processing executed in the information processing device 101. The processing in Fig. 4 is realized, for example, by the CPU 103 of the information processing device 101 reading a program stored in the ROM 104 into the RAM 105 and executing it. Also, the processing in Fig. 4 is started, for example, when the printer information display area 202 is selected on the printer list screen 200 in Fig. 2 and an instruction to start communication is received.
[0081] S400 to S413 are the same as S300 to S313 in Fig. 3, and therefore their description will be omitted. If it is determined in S408 that at least one random MAC address exists in the list of MAC addresses, the process proceeds to S414.
[0082] In S414, the CPU 103 judges whether the communication device 151 selected on the printer list screen 200 is a device having an identifier (hereinafter referred to as a second identifier) for uniquely identifying the communication device 151 other than a MAC address. In this embodiment, the second identifier is, for example, a serial number. For example, if the model information (such as a model name) registered in the setting application indicates an inkjet printer, the communication device 151 is judged to have the second identifier. For example, if the model information (such as a model name) indicates a laser beam printer, the communication device 151 is judged to not have the second identifier. If it is judged to be a device having the second identifier in S414, the processes of S409 to S411, S413, S405, and S406 are executed. That is, the communication device 151 that is desired to communicate is specified by the serial number.
[0083] On the other hand, if it is determined in S414 that the communication device 151 does not have the second identifier, in S415, the CPU 103 acquires the original MAC address from the communication device 151 extracted in S407. In this embodiment, an OID (Object Identifier) for storing the original MAC address is provided in an MIB (Management Information Base) in the communication device 151. The MIB configured here may be a standard MIB such as a printer MIB, or may be a private MIB uniquely defined by the vendor. In S415, the CPU 103, for example, uses a Get-Request, which is an MIB acquisition command, to specify the location where the original MAC address is stored and acquires the original MAC address. The process of S415 acquires a list of original MAC addresses of the communication devices 151 present on the network.
[0084] In S416, CPU 103 compares the list of original MAC addresses acquired in S415 with MAC address A of printer A. Then, CPU 103 determines whether or not there is a MAC address in the list of original MAC addresses that matches MAC address A stored in information processing device 101. If it is determined that there is a MAC address, the process proceeds to S413. On the other hand, if it is determined that there is no MAC address, the process proceeds to S412.
[0085] As described above, according to this embodiment, an original MAC address can be obtained from a communication device that does not have a second identifier other than a MAC address, and communication device 151 that desires to communicate can be identified on the network, enabling communication.
[0086] 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.
[0087] The disclosure of the present embodiment includes the following information processing device, method, and program. (Item 1) A storage means for storing information on a communication device to be communicated with; a first acquisition means for acquiring first identification information from the communication device; a second acquisition means for acquiring, when the first identification information acquired by the first acquisition means is randomized identification information, a second identification information of a type different from the first identification information from the communication device that acquired the randomized identification information; a specifying means for specifying a communication device to be a communication target among the communication devices that have acquired the randomized identification information, based on second identification information included in the information of the communication device stored in the storage means and the second identification information acquired by the second acquisition means; An information processing device comprising: (Item 2) a first determination means for determining whether the first identification information acquired by the first acquisition means is the randomized identification information, When the first determination means determines that the identification information is randomized, the second acquisition means acquires the second identification information from the communication device that acquired the randomized identification information. 2. The information processing device according to item 1, (Item 3) 3. The information processing device according to item 1 or 2, further comprising an update means for updating the first identification information included in the information of the communication device stored in the storage means with the randomized identification information acquired by the first acquisition means. (Item 4) 4. The information processing device according to any one of items 1 to 3, wherein the second identification information is acquired through encrypted communication. (Item 5) and a second determination means for determining whether or not to obtain the identification information before the randomization when the first identification information obtained by the first obtaining means is the randomized identification information, When the second determination means determines not to acquire the identification information before being randomized, the second acquisition means acquires the second identification information from the communication device that acquired the randomized identification information. 5. The information processing device according to any one of items 1 to 4. (Item 6) a third acquisition means for acquiring the identification information before the randomization from the communication device that acquired the randomized identification information when the second determination means determines that the identification information before the randomization is to be acquired, The second acquisition means does not acquire the second identification information. 6. The information processing device according to item 5, (Item 7) The information processing device described in item 6, characterized in that the identification means identifies a communication device to be the communication target among the communication devices that have obtained the randomized identification information, based on first identification information included in the information of the communication device stored in the storage means and the identification information before randomization obtained by the third acquisition means. (Item 8) The information processing device according to item 6 or 7, characterized in that the third acquisition means acquires the identification information before randomization by transmitting information specifying a location in the communication device where the identification information before randomization is stored. (Item 9) 9. The information processing device according to item 8, wherein the information specifying the stored location is an OID (Object Identifier) in a MIB (Management Information Base). (Item 10) 10. The information processing device according to any one of items 5 to 9, wherein the determination by the second determination means is based on model information included in the information of the communication device stored in the storage means. (Item 11) The information processing device described in item 10, characterized in that the second determination means determines to acquire the identification information before the randomization when the model information indicates first model information, and determines not to acquire the identification information before the randomization when the model information indicates second model information different from the first model information. (Item 12) 12. The information processing device according to item 11, wherein the first model information is a laser beam printer, and the second model information is an inkjet printer. (Item 13) 13. The information processing device according to any one of items 1 to 12, wherein the first identification information is a MAC (Media Access Control) address. (Item 14) Item 14. The information processing device according to item 13, further comprising a communication means for communicating with a communication device identified by the identification means using third identification information that is different from the randomized identification information and different from the second identification information. (Item 15) Item 15. The information processing device according to item 14, wherein the third identification information is an IP address. (Item 16) 16. The information processing device according to any one of items 1 to 15, wherein the second identification information is a serial number. (Item 17) 17. The information processing device according to any one of items 1 to 16, wherein the first acquisition means acquires first identification information from each of a plurality of communication devices. (Item 18) A method executed in an information processing device, comprising: a first acquisition step of acquiring first identification information from the communication device; a second acquisition step of acquiring, when the first identification information acquired in the first acquisition step is randomized identification information, a second identification information of a type different from the first identification information from the communication device that acquired the randomized identification information; a step of identifying a communication device to be a communication target among the communication devices from which the randomized identification information has been obtained, based on second identification information included in information on the communication device to be a communication target stored in a storage means and the second identification information obtained in the second obtaining step; The method according to claim 1, further comprising: (Item 19) 18. A program for causing a computer to function as each of the means of the information processing device according to any one of items 1 to 17.
[0088] 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]
[0089] 101 Information processing device: 103, 154 CPU: 104, 152 ROM: 105, 153 RAM: 151 Communication device
Claims
1. A storage means for storing information on a communication device to be communicated with; a first acquisition means for acquiring first identification information from the communication device; a second acquisition means for acquiring, when the first identification information acquired by the first acquisition means is randomized identification information, a second identification information of a type different from the first identification information from the communication device that acquired the randomized identification information; a specifying means for specifying a communication device to be a communication target among the communication devices from which the randomized identification information has been obtained, based on second identification information included in the information on the communication device stored in the storage means and the second identification information obtained by the second obtaining means; An information processing device comprising:
2. a first determination means for determining whether the first identification information acquired by the first acquisition means is the randomized identification information, When the first determination means determines that the identification information is randomized, the second acquisition means acquires the second identification information from the communication device that acquired the randomized identification information.
2. The information processing apparatus according to claim 1,
3. 2. The information processing device according to claim 1, further comprising an update means for updating the first identification information included in the information of the communication device stored in the storage means with the randomized identification information acquired by the first acquisition means.
4. The information processing apparatus according to claim 1 , wherein the second identification information is acquired through encrypted communication.
5. a second determination means for determining whether or not to obtain the identification information before the randomization when the first identification information obtained by the first obtaining means is the randomized identification information, When the second determination means determines not to acquire the identification information before being randomized, the second acquisition means acquires the second identification information from the communication device that acquired the randomized identification information.
2. The information processing apparatus according to claim 1,
6. a third acquisition means for acquiring the identification information before the randomization from the communication device that acquired the randomized identification information when the second determination means determines that the identification information before the randomization is to be acquired, The second acquisition means does not acquire the second identification information.
6. The information processing apparatus according to claim 5,
7. The information processing device according to claim 6, characterized in that the identification means identifies a communication device to be the communication target among the communication devices that have obtained the randomized identification information based on first identification information contained in the information of the communication device stored in the storage means and the identification information before randomization obtained by the third acquisition means.
8. The information processing device according to claim 6, characterized in that the third acquisition means acquires the identification information before randomization by transmitting information specifying a location within the communication device where the identification information before randomization is stored.
9. 9. The information processing apparatus according to claim 8, wherein the information specifying the stored location is an OID (Object Identifier) in a MIB (Management Information Base).
10. 6. The information processing apparatus according to claim 5, wherein the determination by said second determination means is based on model information included in the information on said communication device stored in said storage means.
11. The information processing device according to claim 10, characterized in that the second determination means determines to acquire the identification information before the randomization when the model information indicates first model information, and determines not to acquire the identification information before the randomization when the model information indicates second model information different from the first model information.
12. 12. The information processing apparatus according to claim 11, wherein the first model information is a laser beam printer, and the second model information is an inkjet printer.
13. 2. The information processing apparatus according to claim 1, wherein the first identification information is a MAC (Media Access Control) address.
14. 14. The information processing device according to claim 13, further comprising a communication means for communicating with the communication device identified by the identification means by using third identification information that is different from the randomized identification information and different from the second identification information.
15. 15. The information processing apparatus according to claim 14, wherein the third identification information is an IP address.
16. The information processing apparatus according to claim 1 , wherein the second identification information is a serial number.
17. The information processing apparatus according to claim 1 , wherein the first acquisition means acquires the first identification information from each of a plurality of communication devices.
18. A method executed in an information processing device, comprising: a first acquisition step of acquiring first identification information from the communication device; a second acquisition step of acquiring, when the first identification information acquired in the first acquisition step is randomized identification information, a second identification information of a type different from the first identification information from the communication device that acquired the randomized identification information; a step of identifying a communication device to be a communication target among the communication devices from which the randomized identification information has been obtained, based on second identification information included in information on the communication device to be a communication target stored in a storage means and the second identification information obtained in the second obtaining step; The method according to claim 1, further comprising:
19. 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 17.
Citation Information
Patent Citations
Method, apparatus and system for establishing connection by terminal
JP2017525287A
