Information processing device, method, and program
The information processing device identifies and connects with communication devices by using randomized MAC addresses and additional identification information like serial numbers, overcoming the challenges of IP address changes and MAC randomization, ensuring effective network communication.
Patent Information
- Application Number
- PCT/JP2024/016270
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-11
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-14
AI Technical Summary
Existing information processing devices struggle to identify and connect with specific communication devices on a network when their IP addresses are changed by DHCP, and when MAC addresses are randomized for security purposes, making it difficult to establish communication.
The information processing device acquires first identification information based on a randomized MAC address and second identification information, such as a serial number, from communication devices, allowing it to communicate with the desired device using the acquired second identification information.
Enables the identification and communication with specific communication devices even when their IP addresses are changed or MAC addresses are randomized, ensuring reliable network connectivity.
Smart Images

Figure JP2024016270_14112024_PF_FP_ABST
Abstract
Description
Information processing device, method, and program
[0001] The present invention relates to an information processing device, method, and program.
[0002] In recent years, technology has become widespread for using information processing devices such as smartphones and PCs to operate communication devices that can connect to the Internet, such as image forming devices and home appliances. To enable a user to select and operate a specific communication device from the information processing device, 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 user subsequently connects 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 using Dynamic Host Configuration Protocol (DHCP), 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 via 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 referred to as 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 using 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.
[0005] Special table 2017-525287 publication
[0006] Patent Literature 1 mentions 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 identification of a communication device that the user wants to communicate with from multiple communication devices present on a network.
[0007] The present invention provides 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.
[0008] The information processing device of the present invention is characterized in that it comprises a first acquisition means for acquiring first identification information which is a MAC address from a communication device, a second acquisition means for acquiring second identification information which is a predetermined type of identification information other than a MAC address from the communication device that sent the first identification information to the information processing device based on the fact that the acquired first identification information is a MAC address randomized in the communication device by a predetermined function that randomizes the MAC address of the communication device, and a first execution means for executing a process for communicating with the communication device that sent the first identification information to the information processing device using the acquired second identification information.
[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.
[0010] Other features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings, in which the same or similar elements are designated by the same reference numerals.
[0011] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments of the present invention, and together with the description are used to explain the principles of the present invention. Figure 1 is a diagram showing the configuration of a system including an information processing device and a communication device. Figure 2 is a diagram showing a user interface screen. Figure 3 is a flowchart showing processing executed in the information processing device. Figure 4 is a flowchart showing processing executed in the information processing device. Figure 5 is a flowchart showing processing executed in the information processing device. Figure 6 is a flowchart showing processing executed in the information processing device. Figure 7 is a sequence showing processing of network setup.
[0012] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the invention claimed. Although multiple features are described in the embodiments, not all of these multiple features are necessarily essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same reference numerals are used to designate the same or similar components, and redundant explanations will be omitted.
[0013] First Embodiment An information processing device 101 and a communication device 151 included in a communication system according to this embodiment will be described. In this embodiment, a smartphone is used as the information processing device 101, but the present invention is not limited thereto. For example, various devices, such as a mobile terminal, a personal computer (PC), a tablet terminal, a personal digital assistant (PDA), and a digital camera, can be used as the information processing device 101. Furthermore, a printer is used as the communication device 151, but the present invention is not limited thereto. Various devices capable of wireless communication with the information processing device 101 can be used. For example, inkjet printers, full-color laser beam printers, monochrome printers, and the like can be used as printers. In addition to printers, other devices, such as copiers, facsimile machines, mobile terminals, smartphones, laptop PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, and smart speakers, can also be used. Furthermore, multifunction peripherals having multiple functions, such as a copying function, a fax function, and a printing function, can also be used.
[0014] First, the configurations of the information processing device 101 of this embodiment and the communication device 151 capable of communicating with the information processing device 101 of this embodiment will be described with reference to the block diagram in Fig. 1. In addition, the following configuration will be described as an example in this embodiment, but is not limited to the functions shown in the figure. Devices applicable to the information processing device 101 and the communication device 151 may have appropriate configurations corresponding to the executable functions.
[0015] The information processing device 101 has 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, the ROM 104, the RAM 105, etc. form a computer of the information processing device 101 that executes a program.
[0016] 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. The operation unit may be a physical keyboard, physical buttons, etc., or 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.
[0017] The CPU 103 is a system control unit that controls the entire information processing device 101, including the execution of 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 controls software execution, such as scheduling, task switching, and interrupt processing, under the management of the embedded OS stored in the ROM 104.
[0018] The RAM 105 is configured with an SRAM (Static Random Access Memory) or the like that requires a backup power source. Note that the RAM 105 retains 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.
[0019] The external storage device 106 stores a service registration application, an application program for executing network setup of the communication device 151, a printer management application, a print information generation program for generating print information interpretable 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) via 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 user information acquired by the information processing device 101 to a service management server (not shown). The application program (setting application) for executing network setup of the communication device 151 is an application program for configuring 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, setting application, printer management application, and print information generation program (print application) may be configured as a single application.
[0020] 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), etc., 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.
[0021] 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) within the communication device 151. The communication unit 110 also has an access point within the information processing device 101 for connecting to devices such as the communication device 151. This access point is generally called tethering. The communication unit 156 of the communication device 151 can connect to this 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 connects to the access point within the communication unit 110, 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 connect 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.
[0022] The short-range wireless communication unit 111 is configured to perform data communication by wirelessly connecting to a device such as the communication device 151 at a short distance, and performs communication using a communication method different from that of the communication unit 110. The short-range wireless communication unit 111 can be connected to, for example, the short-range wireless communication unit 157 in the communication device 151. Examples of communication methods include Near Field Communication (NFC), Bluetooth (registered trademark) Classic, Bluetooth Low Energy (BLE), and Wi-Fi Aware.
[0023] 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, RAM 153, CPU 154, etc. form a computer of the communication device 151 that executes a program.
[0024] The communication unit 156 has an access point as an access point inside the communication device 151 for connecting to an external device such as the information processing device 101. The access point can be connected to the communication unit 110 of the information processing device 101. When the communication unit 156 activates the access point, the communication device 151 operates as an access point. The communication unit 156 may wirelessly connect to the information processing device 101 directly or may wirelessly connect to the information processing device 101 via the access point 131. The wireless communication method used by the communication unit 156 is, for example, a communication standard conforming to the IEEE 802.11 series. The communication unit 156 may be provided with hardware that functions as an access point, or may operate as an access point using software that causes the communication unit 156 to function as an access point.
[0025] Here, the modes and connection methods for performing wireless communication using the communication unit 156 will be described.
[0026] <Direct Connection Method> A direct connection refers to a wireless connection between devices directly (i.e., peer-to-peer) 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.
[0027] The mode in which a direct connection is established using WFD is called WFD mode. WFD is a standard established by the Wi-Fi Alliance and is included in the IEEE 802.11 series of communication standards. In WFD mode, after a device to communicate with is discovered using a device discovery command, the roles of P2P group owner (GO) and P2P client are determined, and the remaining wireless connection processing is then carried out. 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 WFD mode, before the role determination is made, the communication device 151 is neither a parent station nor a child station. Specifically, first, one device issues a device discovery command between itself and the other device to search for a device to connect to in WFD mode. When the other device to be the communication partner is discovered, the two devices confirm information about the services and functions that can be provided by each other. Note that this confirmation of device provisioning information is optional and not required. This device provisioning information confirmation phase corresponds to, for example, P2P Provision Discovery. Next, by mutually confirming this device provisioning information, it is determined which one will be the P2P client and which one will be the P2P group owner. Next, once the client and group owner have been determined, parameters for communication via WFD are exchanged between the two devices. Based on the exchanged parameters, the remaining wireless connection processing and IP connection processing are performed between the P2P client and group owner. Note that in WFD mode, the communication device 151 may always operate as GO without executing the above-mentioned GO Negotiation. In other words, the communication device 151 may operate in WFD mode, which is an autonomous GO mode. Furthermore, the state in which communication device 151 is operating in WFD mode means, for example, a state in which a WFD connection has not been established but communication device 151 is operating as GO, or a state in which a WFD connection has been established and communication device 151 is operating as GO.
[0028] In software AP mode (soft AP mode), between devices communicating (e.g., the information processing device 101 and the communication device 151), one device (e.g., the information processing device 101) acts as a client that requests various services. The other device then realizes the function of a Wi-Fi access point through software configuration. The software AP corresponds to a Wi-Fi master station, and the client corresponds to a Wi-Fi slave station. In software AP mode, the client searches for a device that will become the software AP using a device search command. Once the software AP is found, the remaining wireless connection processing (such as establishing a wireless connection) between the client and the software AP is performed, and then IP connection processing (such as assigning an IP address) is performed. Note that commands and parameters transmitted and received when establishing a wireless connection between the client and the software AP may be those specified in the Wi-Fi standard, and therefore will not be described here.
[0029] 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 builds a wireless network and provides parameters used for connecting to the wireless network to slave stations. The parameters used for connecting to the wireless network are, for example, parameters related to the channel used by the master station. By receiving the parameters, the slave stations connect to the wireless network built by the master station using the channel used by the master station. Because the communication device 151 operates as a master station in the direct connection mode, it is possible for the communication device 151 to determine which frequency band and which channel to use for communication in the direct connection mode. In this embodiment, it is assumed that the communication device 151 can 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 direct connection mode.
[0030] <About the Infrastructure Connection Method> The infrastructure connection is a connection mode in which devices that communicate (for example, the information processing device 101 and the communication device 151) are connected to an access point (for example, AP 131) 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.
[0031] In an infrastructure connection, each device searches for an access point using a device search command. Once an access point is found, the remaining wireless connection processing (such as establishing a wireless connection) is performed between the device and the access point, and then IP connection processing (such as assigning an IP address) is performed. Note that commands and parameters transmitted and received when establishing a wireless connection between a device and an access point may be those specified in the Wi-Fi standard, and therefore a description thereof will be omitted here.
[0032] In this embodiment, when the communication device 151 operates via an infrastructure connection, the AP 131 operates as a master station, and the communication device 151 operates as a slave station. That is, in this embodiment, the infrastructure connection refers to a connection between the communication device 151 operating as a slave station and a device operating as a master station. 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 is possible via the AP 131. The channel used for communication in the infrastructure connection is determined by the AP 131, so the communication device 151 performs communication in the infrastructure connection using the channel determined by the AP 131. In this embodiment, the communication device 151 is capable of using 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 can also use a channel corresponding to the DFS band in the 5 GHz frequency band for communication in the infrastructure connection. In order for the information processing device 101 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.
[0033] <About the Network Setup Mode> The communication device 151 can operate in the network setup mode. The 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 up (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 of the communication device 151.
[0034] When the communication device 151 starts operating in the network setup mode, it enables Wi-Fi communication. Specifically, as a process for enabling Wi-Fi communication, the communication device 151 enables an internal AP (connection setting AP) of the communication device 151 that is dedicated to the network setup mode. This puts the communication device 151 in a state where it can establish a direct connection via Wi-Fi with the information processing device 101. Connection information (such as an SSID (Service Set Identifier) and a password) for connecting to the connection setting AP is stored in advance in a setup application installed in the information processing device 101, and the information processing device 101 is assumed to recognize the connection information for connecting to the connection setting AP in advance. Therefore, unlike the connection information of the AP that is enabled in the direct connection mode, 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 via 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 via WFD communication. Also, in the network setup mode, the communication device 151 may connect to the information processing device 101 via Bluetooth. Here, Bluetooth includes Bluetooth Classic and Bluetooth Low Energy (BLE). That is, for example, the communication device 151 may operate as a BLE slave device in the network setup mode and receive a setting command from the information processing device 101 via BLE communication. In addition, in the network setup mode, the communication device 151 may be capable of performing both network setup using Wi-Fi and network setup using 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 the activation of the connection setting AP and the activation of the advertising state, which is a state in which advertising information is sent via BLE and a BLE connection is possible.
[0035] 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 is operating in the network setup mode. The setup access point is 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 app of the information processing device 101.
[0036] 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, the Simple Network Management Protocol (SNMP).
[0037] After starting operation in the network setup mode, the communication device 151 stops operation in the network setup mode and disables the setup access point after a predetermined time has elapsed. The setup access point is also disabled when the communication device 151 receives connection information for connecting to the AP 131 and an instruction to change the wireless communication operation mode from the information processing device 101 during the network setup mode. The setup access point is assumed to be an access point that does not require a password for connection. The setup access point may also require 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 app.
[0038] 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 individual devices. In this embodiment, the identifier used to identify a device is called device identification information. In other words, the 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, the device identification information may be a manufacturing number (serial number) assigned to the communication device 151.
[0039] The short-range wireless communication unit 157 is configured to establish a short-range wireless connection with a device such as the information processing device 101, 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.
[0040] 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 (not shown) for data backup, it can store important data such as program control variables without volatilizing them. 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, work memory, and receive buffer for the CPU 154, and temporarily stores print information received from the information processing device 101, etc., and stores various types of information.
[0041] 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, information such as ink usage status and remaining amount is 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.
[0042] The print engine 155 forms an image on a recording medium such as paper by applying a recording agent such as ink to the recording medium based on information stored in the RAM 153 and a print job received from the information processing device 101 or the like, and outputs the print result. Generally, the amount of data in a print job transmitted from the information processing device 101 or the like is large, so a communication method capable of high-speed communication is required for communicating the print job. Therefore, the communication device 151 receives the print job via the communication unit 156, which is 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.
[0043] Note that the communication device 151 may be equipped with an optional memory such as an external HDD or SD card, and the information stored in the communication device 151 may be stored in the memory.
[0044] Consider a configuration in which a user selects and operates a specific communication device on a network from an information processing device. When communicating with the 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 subsequently connects to the specific communication device through a user operation, the connection is established using the stored IP address. However, if the IP address of the communication device has been changed using 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.
[0045] 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 referred to as 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 using the above-mentioned method.
[0046] Therefore, in this embodiment, the MAC addresses of communication devices present on the network are acquired through broadcast communication, and communication devices whose MAC addresses have changed are extracted. The information processing device receives an identifier other than the MAC address from the extracted communication device, and compares it with the identifier stored in the information processing device to identify the communication device with which the information processing device wishes to communicate. 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, the communication device can be identified on the network.
[0047] 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 established by the Institute of Electrical and Electronics Engineers (IEEE). It is a function that assigns MAC addresses generated according to rules established by the IEEE to devices. Hereinafter, 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 does not change is referred to as a fixed MAC address. It is assumed that devices that support the MAC address randomization function are newer models (model numbers), and devices that do not support the MAC address randomization function are older models.
[0048] Furthermore, devices that support the MAC address randomization function can be configured to enable or disable the MAC address randomization function. A communication device 151 that supports the MAC address randomization function and is configured to enable the MAC address randomization function provides a random MAC address to external devices. That is, a random MAC address is used as the MAC address assigned to the communication unit 156 of the communication device 151. Note that if the MAC address randomization function is enabled, 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 configured 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 external devices. That is, a fixed MAC address is used as the MAC address assigned to the communication unit 156 of the communication device 151.
[0049] The MAC address assigned to the communication unit 156 of the communication device 151 includes information indicating a random MAC address. A MAC address is expressed using alphanumeric characters representing a 12-digit hexadecimal number and a delimiter such as ":" (for example, 1A:2B:3C:4D:5E:6F). The two alphanumeric characters separated by a delimiter in a MAC address are called octets. The IEEE defines a random MAC address as a MAC address in which the second bit of the first octet (1A in the above example) is 1 when expressed in binary. Specifically, a MAC address in which the second bit of the first octet is 1 when expressed in binary is, for example, a MAC address in which the value of the first octet ends with one of the following values: 2, 6, A, or E. Since a random MAC address is defined as described above, a fixed MAC address is a MAC address in which the value of the first octet ends with a value other than 2, 6, A, or E.
[0050] First, the network setup process for the communication device 151 executed by the information processing device 101 will be described with reference to FIG.
[0051] 5 is realized by, for example, the CPU of each device reading out a program stored in the ROM of each device, an external storage device, etc., 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.
[0052] In S500, the information processing apparatus 101 requests a list of access points from the communication apparatus 151 via a Wi-Fi connection between the information processing apparatus 101 and the communication apparatus 151 operating in a network setup mode using the setting application.
[0053] Next, in S501, the communication device 151 transmits a list of access points to the information processing device 101 via the Wi-Fi connection between the communication device 151 operating in 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 performing an AP search.
[0054] Next, in step S502, the information processing apparatus 101 transmits connection information for one of the access points included in the received list to the communication apparatus 151 via a Wi-Fi connection between the communication apparatus 151 operating in network setup mode and the information processing apparatus 101. This process is realized by the setting application controlling the information processing apparatus 101 to transmit connection information for one of the access points included in the received list. Specifically, in this process, if the received list includes a connected AP, the information processing apparatus 101 transmits the connection information for the connected AP. Furthermore, if the received list does not include a connected AP, the information processing apparatus 101 displays the received list and accepts selection of an access point from the user. The information processing apparatus 101 then transmits the connection information for the selected access point. Before transmitting the connection information, the information processing apparatus 101 accepts input of a password for connecting to the access point from the user on a screen displayed by the printing application. The information processing apparatus 101 then transmits the connection information together with the accepted password.
[0055] 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.
[0056] In S504, the communication device 151 ends the network setup mode and transitions to the infrastructure connection mode. Then, using the connection information acquired in S502, the communication device 151 attempts to connect to the access point corresponding to the connection information. If the connection is successful, the communication device 151 can then communicate via the network formed by the connected access point.
[0057] In S505, the information processing device 101 uses the connection information stored by the setting app to reconnect to the access point to which the information processing device 101 was connected when the setting operation was performed. Note that this is not limited to this. For example, if the information processing device 101 has transmitted to the communication device 151 connection information for an access point other than the access point to which the information processing device 101 was connected via Wi-Fi when the setting operation was performed, the information processing device 101 may connect to the other access point.
[0058] In S506, the information processing apparatus 101 searches for the communication device 151 on the network to which the information processing apparatus 101 belongs using the setting application. When the information processing apparatus 101 finds the communication device 151, it requests capability information from the communication device 151, and the communication device 151 transmits the capability information to the information processing apparatus 101. This registers information about the communication device 151 in the setting application, enabling communication with the communication device 151 to be performed using the setting application or another application thereafter. Specifically, for example, a print application can send a print job to the communication device 151. The registered information includes, for example, an IP address, a MAC address, and a serial number. The MAC address used here is a non-randomized MAC address. If the information processing apparatus 101 belongs to a network formed by an access point to which the communication device 151 is connected through network setup, communication with the communication device 151 can be performed via the access point. This communication is performed using, for example, a communication protocol different from the setup communication protocol.
[0059] FIG. 2 is a diagram showing an example of a printer list screen 200 displayed by the setting application of the information processing apparatus 101. The printer list screen 200 displays a list of communication devices 151 that have previously been connected via the communication unit 110. That is, as described above, information about 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 selection operations 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.
[0060] When the communication button 205 is pressed, the information processing apparatus 101 communicates with the communication device 151 corresponding to the selected printer information display area. At that time, the information processing apparatus 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 fails, 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 failed may be displayed so that it cannot be selected.
[0061] For example, communication with the selected communication device 151 may fail if the IP address of the communication device has been changed by DHCP. In this case, the information processing device 101 cannot find the IP address, and communication fails.
[0062] Hereinafter, with reference to FIGS. 3A and 3B, a process for identifying a communication device 151 selected by a user with which communication is desired (a communication target) will be described.
[0063] 3A and 3B are flowcharts showing processing executed in the information processing device 101. The processing in Figures 3A and 3B 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 Figures 3A and 3B is started, for example, when the printer information display area 202 is selected on the printer list screen 200 in Figure 2 and an instruction to start communication is received.
[0064] In S300, the CPU 103 starts communication processing with the communication device 151 using an IP address stored in the information processing device 101. For example, the communication processing with the communication device 151 is started using an IP address registered in association with the selected printer information display area 202. Hereinafter, the communication device 151 corresponding to the selected printer information display area 202 will be referred to as printer A. The IP address and MAC address registered in association with the printer will be referred to as IP address A and MAC address A.
[0065] In S301, the CPU 103 determines whether communication with Printer A was successful. For example, if a connection to Printer A was established using IP address A, it is determined that communication was successful. If it is determined that communication was successful, the processing of Figures 3A and 3B is terminated, and a screen for performing processing such as job execution for Printer A is displayed. On the other hand, if it is determined that communication was unsuccessful, the process proceeds to S302.
[0066] 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. The processing of S302 acquires a list of the MAC addresses of the communication devices 151 present on the network.
[0067] In S303, the CPU 103 compares the list of MAC addresses acquired in S302 with the MAC address A of printer A. Then, in S304, the 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.
[0068] In S305, the 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'. The CPU 103 updates the IP address A that corresponds to MAC address A stored in the information processing apparatus 101 to IP address A'. Then, in S306, the CPU 103 starts communication processing with printer A using the updated IP address A'. After S306, the processing in FIGS. 3A and 3B ends, and a screen for performing processing such as job execution for printer A is displayed.
[0069] 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.
[0070] 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.
[0071] In S307, the CPU 103 extracts a random MAC address from the list of MAC addresses (filtering). For example, the CPU 103 extracts a random MAC address based on the information indicating the random MAC address described above. Then, in S308, the 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.
[0072] 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 processing of FIGS. 3A and 3B.
[0073] If it is determined in S308 that at least one 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 acquired identifier is information capable of identifying the communication device 151, such as the serial number of the communication device 151. Note that the serial number corresponding to printer A registered in the setting app is stored in the ROM 104 of the information processing device 101. Here, this serial number is assumed to be serial number A. In S309, the serial number of the communication device 151 is acquired through encrypted communication. The encrypted communication may be performed, for example, by SSL (TLS) communication. 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, and the encrypted communication is realized using the common key. The common key used for the encrypted communication may also be generated, for example, when the information processing device 101 is registered in the setting app.
[0074] 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 through encrypted communication in this embodiment, it may be acquired without encryption. For example, it may be acquired as one piece of configuration information in S302.
[0075] In S311, the CPU 103 determines whether or not the serial numbers acquired in S310 match serial number A stored in the information processing device 101. If it is determined that there is a match, in S313, the CPU 103 acquires a random MAC address corresponding to the serial number that matches serial number A and an IP address corresponding to that random MAC address, based on the serial number that matches serial number A. Here, the acquired random MAC address and IP address are referred to as random MAC address A and IP address A'. The CPU 103 then updates the MAC address A stored in the information processing device 101 to random MAC address A. After S313, in S305, the CPU 103 updates the IP address A stored in the information processing device 101 and corresponding to random MAC address A to IP address A'. Thereafter, the processing of S306 is performed.
[0076] 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 communication can be identified on the network and communication can be enabled.
[0077] If it is determined in S311 that the serial number A is not stored in the information processing apparatus 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 box 211, and then ends the processing of FIGS. 3A and 3B.
[0078] 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 communication can be identified on the network and communication can be enabled.
[0079] In this embodiment, the serial number is acquired through encrypted communication in S309. However, methods other than encrypted communication may be used as long as the communication is intended to prevent personal identification. For example, a hash value calculated based on the serial number in the communication device 151 corresponding to each extracted random MAC address may be acquired. Meanwhile, the CPU 103 calculates hash value A based on the serial number A stored in the information processing device 101. Then, it determines whether or not a hash value matching hash value A exists among hash values acquired from the network. If a matching hash value is determined to exist, the random MAC address and IP address corresponding to that hash value become the random MAC address and IP address of printer A, which desires communication. Then, in S313, the CPU 103 updates the MAC address A stored in the information processing device 101 to random MAC address A, and in S305, the CPU 103 updates the IP address A corresponding to random MAC address A stored in the information processing device 101 to 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 box 210 in S312.
[0080] Second Embodiment The second embodiment will be described below, focusing on the differences from the first embodiment. In this embodiment, the method for identifying a communication device that desires communication is switched depending on the model of the communication device 151 that desires communication. In other words, if the model of the communication device 151 that desires communication does not have any identifiers other than the MAC address, the MAC address before being randomized by the randomization function is obtained from the communication device 151 that corresponds to the random MAC address. Hereinafter, the MAC address before being randomized, which is held inside the device when the MAC address is randomized by the randomization function, will be referred to as the "original MAC address." In other words, the MAC address before being randomized by the MAC address randomization function is a MAC address that has not been randomized by the MAC address randomization function.
[0081] 4A and 4B are flowcharts showing processing executed in the information processing device 101. The processing in Figures 4A and 4B 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 Figures 4A and 4B is started, for example, when the printer information display area 202 is selected on the printer list screen 200 in Figure 2 and an instruction to start communication is received.
[0082] 3A and 3B, the description of S400 to S413 is omitted. If it is determined in S408 that there is at least one random MAC address in the list of MAC addresses, the process proceeds to S414.
[0083] In S414, the CPU 103 determines whether the communication device 151 selected on the printer list screen 200 is a device that has 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 app indicates an inkjet printer, the communication device 151 is determined 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 determined to not have the second identifier. If it is determined in S414 that the communication device 151 is a device that has the second identifier, the processes of S409 to S411, S413, S405, and S406 are executed. In other words, the communication device 151 desired for communication is identified by its serial number.
[0084] 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) that stores the original MAC address is provided in the MIB (Management Information Base) within the communication device 151. The MIB configured here may be a standard MIB such as a printer MIB, or a private MIB uniquely defined by the vendor. In S415, the CPU 103, for example, uses a Get-Request command, which is an MIB acquisition command, to specify the location where the original MAC address is stored and acquire the original MAC address. The processing of S415 acquires a list of the original MAC addresses of the communication devices 151 present on the network.
[0085] In S416, the CPU 103 compares the list of original MAC addresses acquired in S415 with the MAC address A of printer A. Then, the CPU 103 determines whether or not there is a MAC address in the list of original MAC addresses that matches the MAC address A stored in the information processing apparatus 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.
[0086] 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 the communication device 151 that desires communication can be identified on the network, enabling communication.
[0087] The present invention can also be realized by supplying a program that realizes one or more of the functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program.The present invention can also be realized by a circuit (e.g., an ASIC) that realizes one or more of the functions.
[0088] The invention is not limited to the above-described embodiments, and various changes and modifications can be made 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.
[0089] This application claims priority based on Japanese Patent Application No. 2023-078695, filed on May 11, 2023, the entire contents of which are incorporated herein by reference.
[0090] 101 Information processing device: 103, 154 CPU: 104, 152 ROM: 105, 153 RAM: 151 Communication device
Claims
1. An information processing device comprising: a first acquisition means for acquiring first identification information which is a MAC address from a communication device; a second acquisition means for acquiring second identification information which is a predetermined type of identification information other than a MAC address from the communication device which transmitted the first identification information to the information processing device based on the fact that the acquired first identification information is a MAC address randomized in the communication device by a predetermined function of randomizing the MAC address of the communication device; and a first execution means for executing a process for communicating with the communication device which transmitted the first identification information to the information processing device using the acquired second identification information.
2. The information processing device according to claim 1, further comprising a first storage means for storing the MAC address acquired from the communication device within the information processing device, wherein the second identification information is acquired based on the fact that the MAC address stored within the information processing device does not match the acquired first identification information and the acquired first identification information is a MAC address randomized in the communication device by the specified function.
3. The information processing device according to claim 2, further comprising: a transmitting means for transmitting connection information to the communication device for connecting to an access point; a searching means for searching for the communication device on the network to which the information processing device belongs after the connection information is transmitted to the communication device; and an information acquiring means for acquiring identification information from the communication device discovered on the network to which the information processing device belongs, wherein a MAC address included in the identification information acquired from the communication device discovered on the network to which the information processing device belongs is stored in the information processing device.
4. The information processing device according to claim 2, characterized in that: MAC addresses are acquired from a plurality of communication devices on a network by broadcast communication; the first identification information is information contained in a plurality of MAC addresses acquired from the plurality of communication devices by the broadcast communication; and the second identification information is acquired based on the fact that a MAC address stored in the information processing device does not match any of the plurality of MAC addresses and the acquired first identification information is a MAC address randomized in the communication device by the specified function.
5. The information processing device according to claim 4, further comprising a notification means for executing an error notification if the MAC address randomized in the communication device by the specified function is not included among the multiple MAC addresses obtained from the multiple communication devices by the broadcast communication.
6. The information processing device according to claim 4, further comprising: a second storage means for storing within the information processing device a specific type of identification information acquired from the communication device, the specific type of identification information being different from a MAC address and different from the predetermined type; and an initiation means for initiating communication with the communication device using the specific type of identification information, wherein if communication with the communication device using the specific type of identification information fails, MAC addresses are acquired from the multiple communication devices by the broadcast communication.
7. The information processing device according to claim 6, wherein the specific type of identification information is an IP address.
8. An information processing device as described in claim 6, further comprising: a transmitting means for transmitting connection information to the communication device for connecting to an access point; a searching means for searching for the communication device on the network to which the information processing device belongs after the connection information is transmitted to the communication device; and an information acquiring means for acquiring identification information from the communication device discovered on the network to which the information processing device belongs, wherein the specific type of identification information included in the identification information acquired from the communication device discovered on the network to which the information processing device belongs is stored in the information processing device.
9. The information processing device according to claim 6, characterized in that the process for communicating with the communication device that transmitted the first identification information to the information processing device is a process for newly acquiring the specific type of identification information from the communication device that transmitted the first identification information to the information processing device, and the newly acquired specific type of identification information is used to perform communication with the communication device.
10. The information processing device according to claim 2, further comprising: a third acquisition means for acquiring third identification information, which is a MAC address that is not randomized in the communication device by the specified function, from the communication device that transmitted the first identification information to the information processing device, when the MAC address stored in the information processing device does not match the acquired first identification information and the communication device that transmitted the MAC address stored in the information processing device to the information processing device is a device that does not have the specified type of identification information; and a second execution means for executing a process for communicating with the communication device that transmitted the first identification information to the information processing device, using the acquired third identification information; wherein the information processing device according to claim 2, further comprising: a third acquisition means for acquiring third identification information, which is a MAC address that is not randomized in the communication device by the specified function, from the communication device that transmitted the first identification information to the information processing device, when the MAC address stored in the information processing device does not match the acquired first identification information and the communication device that transmitted the MAC address stored in the information processing device to the information processing device is a device that has the specified type of identification information.
11. The information processing device according to claim 10, characterized in that the communication device that transmitted the MAC address stored in the information processing device to the information processing device is a device that does not have the specified type of identification information when the information indicating the model of the device that transmitted the MAC address stored in the information processing device to the information processing device is information indicating a laser beam printer, and the communication device that transmitted the MAC address stored in the information processing device to the information processing device is a device that has the specified type of identification information when the information indicating the model of the device that transmitted the MAC address stored in the information processing device to the information processing device is information indicating an inkjet printer.
12. The information processing device according to claim 1, further comprising a third storage means for storing the specified type of identification information acquired from the communication device within the information processing device, wherein, based on the specified type of identification information stored within the information processing device matching the acquired second identification information, the acquired second identification information is used to execute a process for communicating with the communication device that transmitted the first identification information to the information processing device.
13. An information processing device as described in claim 12, further comprising: a transmitting means for transmitting connection information to the communication device for connecting to an access point; a searching means for searching for the communication device on the network to which the information processing device belongs after the connection information is transmitted to the communication device; and an information acquiring means for acquiring identification information from the communication device discovered on the network to which the information processing device belongs, wherein the predetermined type of identification information included in the identification information acquired from the communication device discovered on the network to which the information processing device belongs is stored in the information processing device.
14. The information processing device according to claim 1, wherein the second identification information is obtained from the communication device by encrypted communication.
15. An information processing device as described in claim 14, further comprising: a transmitting means for transmitting connection information to the communication device for connecting to an access point; a searching means for searching for the communication device on the network to which the information processing device belongs after the connection information is transmitted to the communication device; an information acquiring means for acquiring identification information from the communication device discovered on the network to which the information processing device belongs; and a registering means for registering the communication device in an application program of the information processing device based on the identification information acquired from the communication device discovered on the network to which the information processing device belongs; and wherein generation of a common key used in the encrypted communication is performed when the communication device is registered in the application program of the information processing device.
16. An information processing apparatus according to claim 1, further comprising a job sending means for sending a print job for executing printing to the communication device that sent the first identification information to the information processing apparatus.
17. The information processing device according to claim 1, wherein the second identification information is a serial number.
18. The information processing device according to claim 1, wherein the predetermined function is a function of assigning to the device a MAC address generated in accordance with rules set by the Institute of Electrical and Electronics Engineers (IEEE).
19. A control method for an information processing device, comprising: a first acquisition step of acquiring first identification information which is a MAC address from a communication device; a second acquisition step of acquiring second identification information which is a predetermined type of identification information other than a MAC address from the communication device which transmitted the first identification information to the information processing device, based on the fact that the acquired first identification information is a MAC address randomized in the communication device by a predetermined function of randomizing the MAC address of the communication device; and a first execution step of executing a process for communicating with the communication device which transmitted the first identification information to the information processing device, using the acquired second identification information.
20. A program that causes a computer of an information processing device to execute the following steps: a first acquisition step of acquiring first identification information which is a MAC address from a communication device; a second acquisition step of acquiring second identification information which is a predetermined type of identification information other than a MAC address from the communication device that transmitted the first identification information to the information processing device, based on the fact that the acquired first identification information is a MAC address randomized in the communication device by a predetermined function of randomizing the MAC address of the communication device; and a first execution step of executing a process for communicating with the communication device that transmitted the first identification information to the information processing device, using the acquired second identification information.
Citation Information
Patent Citations
Counteracting mac address randomization and spoofing attempts and identifying wi-fi devices based on user behavior
EP4178160A1
Information processing system, server device, and information processing method
JP2006350502A
Dynamic MAC Address Change Mechanism for Wireless Communications
JP2022531311A
Client device based solution for handling mac randomization
US20220052981A1
Methods and apparatuses for privacy enhancement through mac address masquerading
WO2022187636A1
