COMMUNICATION DEVICE, CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

The communication device improves convenience and stability by enabling time-sharing control in multiple modes, ensuring efficient data transfer in wireless infrastructure and peer-to-peer connections.

JP7562311B2Active Publication Date: 2024-10-07CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

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

Smart Images

  • Figure 0007562311000001
    Figure 0007562311000001
  • Figure 0007562311000002
    Figure 0007562311000002
  • Figure 0007562311000003
    Figure 0007562311000003
Patent Text Reader

Abstract

To solve a problem in which, in recent years, the number of cases in which wireless communication is used has increased, and improvement in convenience in wireless communication has been required.SOLUTION: When both first and second communication modes are enabled and a communication partner device of the first communication mode is determined, but a communication partner device of the second communication mode is not determined, a communication device executes communication processing of the first and second communication modes such that the communication period of the first communication mode in a unit time is longer than the communication period of the second communication mode.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication device and a control method. , P Program and storage media Regarding. [Background technology]

[0002] There are communication devices that can operate in multiple communication modes, such as performing wireless communication in both infrastructure mode and direct mode in parallel (see Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2014-216956 A Summary of the Invention [Problem to be solved by the invention]

[0004] In recent years, the use of wireless communication has been on the rise, and there has been a demand for improved convenience in wireless communication.

[0005] In view of the above problems, an object of the present invention is to improve the convenience of wireless communication. [Means for solving the problem]

[0006] According to one aspect of the present invention, a communication device includes: A communication device including a communication means capable of executing a first communication mode in which communication is performed with a terminal device via wireless communication with an external wireless base station, and a second communication mode in which wireless communication is performed directly with the terminal device without going through the external wireless base station, a setting means for enabling at least one of the first and second communication modes; Both the first and second communication modes are enabled, and the first communication mode Wireless connection to external base stations for However, the communication partner device in the second communication mode and wireless connection If not, the first communication mode in the unit time Time used for is the second communication mode Time used for the first and second communication modes being longer than Where Putting the theory into practice R Control Means and, The present invention is characterized by comprising: Effect of the Invention

[0007] According to the present invention, it is possible to improve the convenience of wireless communication. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 illustrates an example of a system configuration. [Diagram 2] 1 is a diagram showing an example of the external configuration of a portable communication terminal device; [Diagram 3] FIG. 2 is a diagram illustrating an example of the external configuration of an MFP. [Figure 4] FIG. 2 illustrates an example of an operation display unit of an MFP. [Diagram 5] 1 is a block diagram showing an example of the configuration of a portable communication terminal device; [Figure 6] FIG. 2 is a block diagram showing an example of the configuration of an MFP. [Figure 7] 13 is an example of a device search sequence in mode A (soft AP mode). [Figure 8] 13 is an example of a device discovery sequence in mode B (WFD mode). [Figure 9] 13 is an example of a device discovery sequence in Mode C (wireless infrastructure mode). [Figure 10] 1 is an example of a device discovery sequence in mode D (BLE mode). [Figure 11] 13 is an example of a device search sequence in mode E (BT mode). [Figure 12] FIG. 13 is a diagram showing an example of an interface selection screen at the time of initial startup. [Figure 13]FIG. 11 is a diagram illustrating an example of the flow of interface processing at the time of initial startup. [Figure 14] FIG. 11 is a diagram illustrating an example of the flow of interface processing by LAN setting. [Figure 15] 13 is an example of a wireless infrastructure mode disabling process sequence. [Figure 16] 13 is an example of a wireless infrastructure mode disabling process sequence. [Figure 17] 13 is an example of a P2P mode activation process sequence. [Figure 18] 13 is an example of a P2P mode disabling process sequence. [Figure 19] 11 is a diagram showing an example of a flow of selection and setting processing of a wireless control setting table. FIG. [Figure 20] FIG. 11 is a diagram illustrating an example of a wireless control setting table. [Figure 21] 13 is a diagram showing an example of a communication period set in the wireless control setting table. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the embodiment is merely an example, and specific examples of components, processing steps, display screens, etc. are not intended to limit the scope of the present invention unless otherwise specified.

[0010] (System Configuration) Fig. 1 shows an example of the configuration of a system according to this embodiment. In one example, this system is a wireless communication system in which a plurality of communication devices can wirelessly communicate with each other. In the example of Fig. 1, the communication devices include a portable communication terminal device 200, an MFP 300, and an access point 400. Note that the portable communication terminal device 200 may also be simply referred to as a terminal device 200.

[0011] The terminal device 200 is a terminal device (information processing device) having a wireless communication function using wireless LAN, Bluetooth (registered trademark), or the like. In the following, wireless LAN may be referred to as WLAN, and Bluetooth (registered trademark) may be referred to as BT. The terminal device 200 may be a personal information terminal such as a PDA (Personal Digital Assistant), a mobile phone, a digital camera, or the like. The MFP300 is a printing device having a printing function, and may further have a reading function (scanner), a FAX function, and a telephone function. The MFP300 of the present embodiment has a communication function capable of wirelessly communicating with the terminal device 200. In the present embodiment, the case where the MFP300 is used will be described as an example, but is not limited to this. For example, a facsimile device, a scanner device, a projector, a mobile terminal, a smartphone, a notebook PC, a tablet terminal, a PDA, a digital camera, a music playback device, a television, or the like each having a communication function may be used instead of the MFP300. The MFP is an acronym for Multi Function Peripheral. The access point 400 is provided separately (externally) from the terminal device 200 and the MFP 300, and operates as a base station device of the WLAN. The access point 400 may also be described as an external access point 400 or an external wireless base station (or an external parent station). A communication device having a communication function of the WLAN can communicate in infrastructure mode of the WLAN via the access point 400. In the following, the access point may be referred to as an "AP." Also, the infrastructure mode may be referred to as a "wireless infrastructure mode." The access point 400 performs wireless communication with a communication device that has been permitted to connect to the access point 400 (has been authenticated), and relays wireless communication between the communication device and other communication devices. Also, the access point 400 may be connected to a wired communication network, for example, and relay communication between a communication device connected to the wired communication network and another communication device wirelessly connected to the access point 400.

[0012] The terminal device 200 and the MFP 300 may perform wireless communication in a wireless infrastructure mode via an external access point 400 or in a peer-to-peer mode not via an external access point 400, using the WLAN communication function of each device. In the following, peer-to-peer is referred to as "P2P". The P2P mode includes Wi-Fi Direct (registered trademark) and soft AP mode. In the following, Wi-Fi Direct (registered trademark) may be referred to as WFD. The terminal device 200 and the MFP 300 may perform P2P communication using a BT communication function. In order to distinguish between P2P of the WLAN communication function and P2P of the BT communication function, the terms P2P (WLAN) and P2P (BT) may be used. In other words, P2P (WLAN) can be said to be communication conforming to the IEEE802.11 series. In the present embodiment, the terminal device 200 and the MFP 300 are assumed to be capable of performing processes corresponding to a plurality of print services using WLAN communication, as described later.

[0013] (External configuration of terminal device) FIG. 2 is a diagram showing an example of the external configuration of the terminal device 200. In this embodiment, as an example, the terminal device 200 is a smartphone of a general type. The terminal device 200 includes, for example, a display unit 202, an operation unit 203, and a power key 204. The display unit 202 is, for example, a display including a display mechanism of an LCD (Liquid Crystal Display) type. The display unit 202 may display information using, for example, an LED (Light Emitting Diode) or the like. The terminal device 200 may have a function of outputting information by voice in addition to or instead of the display unit 202. The operation unit 203 includes hard keys such as keys and buttons, a touch panel, and the like for detecting user operations. In this example, the display unit 202 displays information and the operation unit 203 accepts user operations using a common touch panel display, so that the display unit 202 and the operation unit 203 are realized by one device. In this case, for example, button icons and a software keyboard are displayed using a display function of the display unit 202, and the touch of the user on those points is detected by an operation reception function of the operation unit 203. The display unit 202 and the operation unit 203 may be separated, and hardware for display and hardware for operation reception may be provided separately. The power key 204 is a hardware key for receiving a user operation for turning on or off the power of the terminal device 200.

[0014] The terminal device 200 includes a WLAN unit 201 that provides a communication function of a WLAN, although it is not necessarily visible from the outside. The WLAN unit 201 is configured to be able to execute data (packet) communication in a WLAN system that complies with, for example, the IEEE802.11 standard series (IEEE802.11a / b / g / n / ac / ax, etc.). However, the present invention is not limited to this, and the WLAN unit 201 may be able to execute communication in a WLAN system that complies with other standards. In this example, the WLAN unit 201 is assumed to be able to communicate in both the 2.4 GHz and 5 GHz frequency bands. The WLAN unit 201 is assumed to be able to execute communication based on a WFD, communication in a soft AP mode, communication in a wireless infrastructure mode, etc. Operations in these modes will be described later. The terminal device 200 further includes a BT unit (not shown) that is not visible from the outside. The BT unit complies with the IEEE802.15.1 standard and provides communication functions in the 2.4GHz band used in BT1.1 to 5.0, such as Bluetooth BR / EDR, Bluetooth+HS, and Bluetooth Low Energy. The operation of the BT will be described later.

[0015] (External configuration of MFP) 3 shows an example of the external configuration of MFP300. MFP300 has, for example, a document table 301, a document cover 302, a print paper insertion port 303, a print paper discharge port 304, and an operation display unit 305. Document table 301 is a table on which a document to be read is placed. Document cover 302 is a cover for holding a document placed on document table 301 and for preventing light from a light source that irradiates the document during reading from leaking to the outside. Print paper insertion port 303 is an insertion port that allows various sizes of paper to be set. Print paper discharge port 304 is a discharge port that discharges paper after printing is completed. Paper set in print paper insertion port 303 is transported one sheet at a time to a printing unit, and after printing is performed in the printing unit, it is discharged from print paper discharge port 304. The operation display unit 305 includes keys such as character input keys, cursor keys, a decision key, and a cancel key, as well as an LED and an LCD, and is configured to be able to accept operations by the user to activate various functions as the MFP and to perform various settings. The operation display unit 305 may also include a touch panel display. The MFP 300 has a wireless communication function using WLAN or BT, and includes a wireless communication antenna 306 for the wireless communication, although it does not necessarily need to be visible from the outside. Like the terminal device 200, the MFP 300 can also perform wireless communication in the 2.4 GHz or 5 GHz frequency band using WLAN or BT.

[0016] FIG. 4 is a schematic diagram showing an example of a screen display of the operation display unit 305 of the MFP 300. FIG. 4(a) is an example of a home screen displayed when the MFP 300 is turned on and no operation such as printing or scanning is being performed (idle state, standby state). When a menu display of a copy, scan, or cloud function using Internet communication is selected by key operation or touch panel operation, the MFP 300 can start executing the corresponding setting or function. The MFP 300 can seamlessly display a screen different from FIG. 4(a) by accepting key operation or touch panel operation on the home screen of FIG. 4(a). FIG. 4(b) is an example of such a screen, and shows an example in which a menu for executing a print or photo function, changing communication settings, etc. is displayed. Based on a user selection on this screen, a print or photo function or communication settings can be executed. FIG. 4(c) is an example of an IF selection screen displayed when communication settings are selected on the screen of FIG. 4(b). On this screen, various LAN setting menus ("Wired LAN", "Wireless LAN", "Wireless Direct") such as wired connection setting, wireless infrastructure mode enable / disable setting, and P2P mode enable / disable setting such as WFD and soft AP mode are displayed in a selectable manner. In FIG. 4(c), when wireless LAN is enabled by a user operation, wireless infrastructure mode is enabled, and when wireless direct is enabled by a user operation, P2P (WLAN) mode is enabled. In addition, on this screen, a BT setting setting menu ("Bluetooth") such as BT enable / disable setting is displayed in a selectable manner. In addition, on this screen, a common setting menu for each connection form is also displayed. Furthermore, from this screen, the user can set the frequency band and frequency channel of wireless LAN, and the code for BT pairing.

[0017] (Terminal Device Configuration) 5 shows an example of the configuration of the terminal device 200. In one example, the terminal device 200 has a main board 501 that performs main control of the device itself, a WLAN unit 201 that performs WLAN communication, and a BT unit 205 that performs BT communication. The main board 501 includes, for example, a CPU 502, a ROM 503, a RAM 504, an image memory 505, a data conversion unit 506, a telephone unit 507, a GPS 509, a camera unit 511, a non-volatile memory 512, a data storage unit 513, a speaker unit 514, and a power supply unit 515. Here, CPU is an acronym for Central Processing Unit, ROM is an acronym for Read Only Memory, RAM is an acronym for Random Access Memory, and GPS is an acronym for Global Positioning System. The terminal device 200 also includes a display unit 202 and an operation unit 203. These functional units in the main board 501 are connected to each other via a system bus 518 managed by the CPU 502. Furthermore, the main board 501 is connected to the WLAN unit 201 and the BT unit 205 via, for example, a dedicated bus 516 .

[0018] The CPU 502 is a system control unit and controls the entire terminal device 200. In one example, the processing of the terminal device 200 described below is realized by the CPU 502 executing a program stored in the ROM 503. Dedicated hardware for each process may be prepared. The ROM 503 stores a control program executed by the CPU 502, an embedded operating system (OS) program, and the like. In this embodiment, the CPU 502 executes each control program stored in the ROM 503 under the management of the embedded OS also stored in the ROM 503, thereby performing software control such as scheduling and task switching. The RAM 504 is composed of an SRAM (Static RAM) or the like. The RAM 504 stores data such as program control variables, setting values ​​registered by the user, and management data of the terminal device 200. The RAM 504 can also be used as a buffer for various works. The image memory 505 is composed of a memory such as a DRAM (Dynamic RAM). The image memory 505 temporarily stores image data received via the WLAN unit 201 or the BT unit 205, or image data read from the data storage unit 513, for processing by the CPU 502. The non-volatile memory 512 is configured by a memory such as a flash memory, and continues to store data even when the power supply of the terminal device 200 is turned off. The memory configuration of the terminal device 200 is not limited to the above configuration. For example, the image memory 505 and the RAM 504 may be shared, or data may be backed up using the data storage unit 513. In the present embodiment, a DRAM is given as an example of the image memory 505, but other storage media such as a hard disk or a non-volatile memory may be used.

[0019] The data conversion unit 506 performs data conversion such as analysis of data in various formats, color conversion, and image conversion. The telephone unit 507 controls the telephone line and processes voice data input and output via the speaker unit 514 to realize telephone communication. The GPS 509 receives radio waves transmitted from a satellite and acquires position information such as the current latitude and longitude of the terminal device 200. The camera unit 511 has a function of electronically recording and encoding an image input through a lens. Image data obtained by imaging using the camera unit 511 is stored in the data storage unit 513. The speaker unit 514 performs control to realize a function of inputting or outputting voice for a telephone function and other functions such as alarm notification. The power supply unit 515 is, for example, a portable battery, and controls the power supply to the device. The power supply state includes, for example, a dead battery state in which the battery has no remaining power, a power-off state in which the power key 204 is not pressed, a normal startup state, and a power-saving state in which the device is started but is powered on. 2, and executes control for electronically controlling the display contents and displaying various input operations, the operating conditions and status conditions of MFP 300 (e.g., remaining ink amount, remaining paper amount, etc.). Operation unit 203 is operation unit 203 described with reference to Fig. 2, and executes control for receiving a user operation, generating an electrical signal corresponding to the operation, and outputting the electrical signal to CPU 502, etc.

[0020] The terminal device 200 performs wireless communication using the WLAN unit 201 and the BT unit 205, and performs data communication with other devices such as the MFP 300. The WLAN unit 201 and the BT unit 205 convert data into packets and transmit the packets to other devices. The WLAN unit 201 and the BT unit 205 also restore packets from other external devices to the original data and output the data to the CPU 502. The WLAN unit 201 and the BT unit 205 are units for realizing communication conforming to the WLAN and BT standards, respectively. The WLAN unit 201 can operate in parallel in at least two communication modes including a wireless infrastructure mode and a P2P (WLAN) mode. The BT unit 205 can operate in a communication mode conforming to, for example, BT1.1 to BT5.0. The frequency bands used in these communication modes may be limited by the function and performance of the hardware.

[0021] (MFP configuration) 6 shows an example of the configuration of the MFP 300. The MFP 300 includes a main board 601 that performs main control of the device itself, and a wireless combo unit 616 that is a communication module that performs WLAN communication and BT communication using at least one common antenna. The MFP 300 also includes, for example, a modem 619 for performing wired communication. The main board 601 includes, for example, a CPU 602, a ROM 603, a RAM 604, a non-volatile memory 605, an image memory 606, a reading control unit 607, a data conversion unit 608, a reading unit 609, and an encoding / decoding processing unit 611. The main board 601 also includes, for example, a printing unit 612, a paper feed unit 613, a printing control unit 614, and an operation display unit 305. These functional units in the main board 601 are connected to each other via a system bus 620 managed by the CPU 602. Furthermore, the main board 601 and the wireless combo unit 616 are connected via, for example, a dedicated bus 615 , and the main board 601 and the modem 619 are connected via, for example, a bus 618 .

[0022] The CPU 602 is a system control unit and controls the entire MFP 300. In one example, the processing of the MFP 300 described below is realized by the CPU 602 executing a program stored in the ROM 603. Dedicated hardware for each processing may be prepared. The ROM 603 stores a control program executed by the CPU 602, an embedded OS program, and the like. In this embodiment, the CPU 602 executes each control program stored in the ROM 603 under the management of the embedded OS also stored in the ROM 603, thereby performing software control such as scheduling and task switching. The RAM 604 is composed of an SRAM or the like. The RAM 604 stores data such as program control variables, setting values ​​registered by the user, management data of the MFP 300, and the like. The RAM 604 can also be used as a buffer for various types of work. The non-volatile memory 605 is composed of a memory such as a flash memory, and continues to store data even when the power of the MFP 300 is turned off. The image memory 606 is composed of a memory such as a DRAM. An image memory 606 accumulates image data received via a wireless combo unit 616, image data processed by an encoding / decoding processing unit 611, and the like. Note that the memory configuration of the MFP 300 is not limited to the above configuration, as in the case of the terminal device 200. A data conversion unit 608 analyzes data of various formats, converts image data into print data, and the like.

[0023] The reading control unit 607 controls the reading unit 609 (for example, a CIS (contact image sensor)) to optically read the original placed on the platen 301. The reading control unit 607 converts the image obtained by optically reading the original into electrical image data (image signals) and outputs it. At this time, the reading control unit 607 may output the image data after performing various image processes such as binarization and halftoning. The operation display unit 305 is the operation display unit 305 described with reference to FIG. 4, and executes display control, control of generation of electrical signals corresponding to user operations, and the like.

[0024] The encoding / decoding processing unit 611 performs encoding and decoding processes and enlargement / reduction processes on image data (JPEG, PNG, etc.) handled by the MFP 300. The paper feed unit 613 holds paper for printing. The paper feed unit 613 can supply set paper under the control of the print control unit 614. The paper feed unit 613 may include multiple paper feed units in order to hold multiple types of paper in one device, and can control which paper feed unit to feed from under the control of the print control unit 614. The print control unit 614 performs various image processes such as smoothing, print density correction, and color correction on the image data to be printed, and outputs the processed image data to the print unit 612. The print unit 612 is configured to be able to perform printing processes of an inkjet system, for example, and ejects ink supplied from an ink tank from a print head to record an image on a recording medium such as paper. The print unit 612 may be configured to be able to perform other printing processes such as electrophotography. Furthermore, the print control unit 614 can periodically read information from the print unit 612 and update status information stored in the RAM 604, including the remaining amount of ink in the ink tanks and the state of the print head.

[0025] The wireless combo unit 616 is a unit capable of providing communication functions of WLAN and BT, and can provide functions similar to those of a combination of the WLAN unit 201 and the BT unit of the terminal device 200. That is, the wireless combo unit 616 converts data into packets and transmits the packets to other devices according to the WLAN or BT standard, and also restores packets from other external devices to their original data and outputs them to the CPU 602. Note that the terminal device 200 and the MFP 300 are capable of P2P (WLAN) communication based on the WFD, and the wireless combo unit 616 has a software access point (soft AP) function or a group owner function. That is, the wireless combo unit 616 can build a network for P2P communication and determine a channel to be used for P2P communication.

[0026] (P2P communication method) Next, we will outline a P2P (WLAN) communication method in which devices communicate directly with each other wirelessly without going through an external access point in WLAN communication. P2P (WLAN) communication can be realized using a number of methods, and for example, a communication device can support a number of modes for P2P (WLAN) communication and selectively use one of the multiple modes to execute P2P communication (WLAN).

[0027] In each mode, a searching communication device searches for and finds a searched communication device (partner device) by using a search signal (for example, a Probe Request frame or a Beacon) for searching for a searched communication device. In this search for a partner device, the frequency band and communication method used must match between the searching side and the searched side. For example, a communication device is capable of performing communication in (1) P2P (WLAN) mode in a 2.4 GHz frequency band, (2) P2P (BT) mode in a 2.4 GHz frequency band, and (3) P2P (WLAN) mode in a 5 GHz frequency band. Here, a user can set the MFP300 to operate in a desired P2P mode from these modes. For example, a user sets the MFP300 to operate in P2P (WLAN) mode in a 2.4 GHz frequency band. In this case, even if a searching communication device such as the terminal device 200 transmits a search signal in the 5 GHz band, the MFP300 is not in a state in which it can receive the search signal in the 5 GHz band, and therefore does not transmit a response signal to the search signal. Also, assume that the user sets the MFP300 to operate in the P2P (BT) mode in the 2.4 GHz band, and disables the P2P (WLAN) mode in the 2.4 GHz band. In this case, even if a searching communication device such as the terminal device 200 transmits a search signal in the same 2.4 GHz band, if the search signal is a WLAN search signal, the MFP300 does not recognize the search signal and therefore does not transmit a response signal. In this way, the searching communication device can find a searched-side counterpart device having the same frequency band and communication method.

[0028] The following four P2P modes are envisioned: Mode A (Soft AP mode) Mode B (Wi-Fi Direct (WFD) mode) Mode D (Bluetooth Low Energy (BLE) mode) Mode E (Bluetooth Classic (BT) mode) A communication device capable of P2P communication can be configured to support at least one of these modes. In this embodiment, Mode A and Mode B may be collectively referred to as P2P (WLAN), and Mode D and Mode E may be collectively referred to as P2P (BT). On the other hand, even a communication device capable of P2P communication does not have to support all of these modes, and may be configured to support only some of them. In addition to the P2P mode, the communication device may also support a wireless infrastructure mode (mode C).

[0029] A communication device (for example, the terminal device 200) having a communication function based on WFD or BT calls an application (in some cases a dedicated application) for implementing the communication function by accepting a user operation via the operation unit. The communication device then displays a screen provided by the application to prompt the user to operate, and can execute WFD communication or BT communication based on the accepted user operation in response. Note that BT communication here refers to communication of BT1.1 to BT5.0, such as Bluetooth Classic and Bluetooth Low Energy.

[0030] Next, a search sequence for a partner device (device search sequence) in the above-mentioned four P2P modes will be described.

[0031] ● Device search sequence in Mode A (Soft AP mode) FIG. 7 shows a device search sequence in mode A (soft AP mode). In the soft AP mode, a communication device (for example, the terminal device 200) operates as a client that requests various services. The other communication device (for example, the MFP 300) operates as a soft AP that can execute the function of an AP of a WLAN by software setting. In the soft AP mode, a communication device operating as a client transmits a device search request 701 to search for a communication device operating as a soft AP. When the soft AP receives the device search request 701, it transmits a device search response 702 as a response. By transmitting and receiving such a device search request and device search response, a communication device operating as a client (for example, the terminal device 200) finds a partner device operating as a soft AP (for example, the MFP 300). Note that commands and parameters transmitted and received when establishing a wireless connection between a client and a soft AP are sufficient if they are specified in the Wi-Fi (registered trademark) standard, and therefore will not be described here. Furthermore, the MFP 300 operating in the soft AP mode determines the frequency band and frequency channel as a master station, and can select which frequency band to use from 5 GHz and 2.4 GHz, and which frequency channel to use within that frequency band.

[0032] ● Device search sequence in Mode B (WFD mode) FIG. 8 shows a device discovery sequence in mode B (WFD mode). In the WFD mode, a searching communication device searches for a partner device on the searched side by transmitting a device discovery request 801. Here, it is assumed that the searching communication device is the terminal device 200, and the partner device on the searched side is the MFP 300. The device discovery request 801 has a WFD attribute, which specifies that the target of the search is a communication device in WFD mode. When the MFP 300 is operating in the WFD mode and receives the device discovery request 801, it transmits a device discovery response 802 to the terminal device 200 as a response thereto. By receiving the device discovery response 802, the terminal device 200 detects the MFP 300, which is a P2P communication partner. After completing this device discovery, these communication devices determine the roles of P2P group owner (GO) and P2P client, and perform the remaining wireless connection processing. This role determination corresponds to, for example, GO Negotiation in WFD. Also, the MFP300 may be configured to be fixedly activated as a master station in the WFD mode (Autonomous Group Owner). In this case, GO Negotiation processing for determining the role is not required. In this case, the MFP300 determines the frequency band and frequency channel as the master station. Therefore, the MFP300 can select which frequency band to use from 5 GHz and 2.4 GHz, and which frequency channel to use within that frequency band.

[0033] ●Device search sequence in Mode D (BLE mode) FIG. 10 shows a device search sequence in mode D (BLE mode). In the BLE mode, a communication device transmits (broadcasts) a beacon 1001 (Advertising data (e.g., Advertising PDU)). Other communication devices can recognize the presence of the communication device by receiving the beacon 1001. For example, when the MFP 300 transmits the beacon 1001, the terminal device 200 can recognize the presence of the MFP 300 by receiving the beacon 1001. In this case, when the terminal device 200 acquires additional information after receiving the beacon 1001, the terminal device 200 transmits a scan request to the MFP 300. The MFP 300 can transmit a scan response to the scan request. Note that the MFP 300 and the terminal device 200 can communicate in P2P (BT) mode in BLE by using GATT (Generic Attribute Profile). It is sufficient to use commands and parameters for connection that are specified in a standard such as BT4.1, and therefore a description thereof will be omitted here. In FIG. 10, the MFP 300 operates as a slave, and the terminal device 200 operates as a master.

[0034] ● Device search sequence in Mode E (BT mode) 11 shows a device discovery sequence in mode E (BT mode). In BT mode, one communication device operates as a master that searches for BT devices, and the other communication device operates as a slave. Here, as an example, it is assumed that the terminal device 200 operates as the master and the MFP 300 operates as the slave. The terminal device 200 (master) searches for a partner device by transmitting a device discovery request 1101. When the MFP 300 (slave) receives this device discovery request 1101, it transmits a device discovery response 1102 as a response signal. Procedures such as connection, transmission and reception using commands and parameters including the device discovery request 1101 and the device discovery response 1102 are specified in the standards of BT1.1 and its variations, so a description thereof will be omitted here.

[0035] (Wireless infrastructure mode) FIG. 9 is a diagram showing a device search sequence in mode C (wireless infrastructure mode). In the wireless infrastructure mode, communication devices (e.g., the terminal device 200 and the MFP 300) that communicate with each other are connected to an external AP (e.g., the access point 400) that manages the network, and communication between the communication devices is performed via the AP. In other words, communication between the communication devices is performed via a network constructed by the external AP. In the wireless infrastructure mode, for example, the terminal device 200 searches for the access point 400 by transmitting a device search request (ProbeRequest) 901. In response to the device search request 901, the access point 400 transmits a device search response (ProbeResponse) 902. By receiving the device search response 902, the terminal device 200 discovers the access point 400 and displays the SSID included in the ProbeResponse. Similarly, the MFP 300 also discovers the access point 400 by transmitting a device search request 903 and receiving a device search response 904, and displays the SSID included in the ProbeResponse. The terminal device 200 and the MFP 300 each discover the access point 400, transmit a connection request to the access point 400, and connect to the access point 400, thereby enabling communication in wireless infrastructure mode between these communication devices via the access point 400. Note that multiple communication devices may be connected to separate APs. In this case, data transfer between the APs enables communication between the communication devices. As it is sufficient to use commands and parameters specified by the Wi-Fi standard when communicating between the communication devices via the access point, explanations thereof will be omitted here. In this case, the access point 400 determines the frequency band and the frequency channel. Therefore, the access point 400 can select which frequency band to use from 5 GHz and 2.4 GHz, and which frequency channel to use within that frequency band.

[0036] (Processing Overview) When one communication device operates multiple wireless communication modes in parallel, there are cases where the convenience is reduced. For example, when multiple wireless communication modes can be connected in parallel with one CPU and one set of antennas, the communication time of the wireless communication mode used for data communication cannot be sufficiently secured, and the convenience may be reduced. Note that one set of antennas is, for example, one antenna or one set of array antennas. For this reason, in the MFP300 having the wireless combo unit 616 as described above, when multiple communication modes such as the wireless infrastructure mode and the P2P (WLAN) mode are operated in parallel, the communication interval and communication speed may become unstable depending on the operating state. Note that in this embodiment, a case will be described in which the wireless combo unit 616 of the MFP300 has one antenna. Then, using this one antenna, communication in the wireless infrastructure mode, communication in the P2P (WLAN) mode, and communication in the P2P (BT) mode are executed. Note that the form in which communication in these communication modes is executed using one antenna is one example, and multiple antennas may be used, and a communication mode different from the above-mentioned communication modes may be executed. Moreover, it is not necessary for all three of the above modes to be executed.

[0037] In this embodiment, a process is executed to increase the stability of communication when a setting is made to use multiple wireless communication modes in parallel in a communication device. Specifically, the MFP300 according to this embodiment controls the operation to be performed in a time-division manner when multiple wireless communication modes are enabled. Then, the MFP300 executes control to change the ratio of the time length per unit time when communicating using each wireless communication mode according to the connection state of the enabled multiple wireless communication modes. The time-division control based on the connection state will be described below. Note that, for example, a user can use the screen of FIG. 4(c) to individually enable the wireless infrastructure mode, P2P (WLAN) mode, and BLE mode of WLAN. By this operation, the MFP300 can maintain a wireless connection in the wireless infrastructure mode for enabling wireless communication with a communication partner device via an external access point 400, and the P2P (WLAN) mode without an external access point in parallel. Note that, in the communication in the P2P (WLAN) mode in this embodiment, the MFP300 itself functions as a parent station.

[0038] (Time sharing control based on connection status) The wireless combo unit 616 of the MFP 300 is capable of WLAN communication conforming to the IEEE 802.11 standard series in the 2.4 GHz and 5 GHz bands, for example, and is also capable of communication conforming to the BLE standard of BT4.1 or later. The WLAN connection states of the MFP 300 using the wireless combo unit 616 include, for example, a "Standby state," a "wireless infrastructure connection state," a "P2P connection state," and a "wireless infrastructure connection state and P2P connection state."

[0039] In the "Standby state", the power of the MFP 300 is ON, the wireless infrastructure mode and the P2P mode are enabled, and a connection request can be accepted. However, the MFP 300 is not actually performing connection processing with an external AP (e.g., the access point 400) or an external device (e.g., the terminal device 200). In other words, multiple communication modes are enabled, but a communication partner device for each communication mode has not been determined.

[0040] The "wireless infrastructure connection state" is a state in which the power of MFP300 is ON, the wireless infrastructure mode and P2P mode are enabled, and an external access point 400 is set as a connection partner. Note that a communication partner device for P2P mode has not been determined. The "P2P connection state" is a state in which the power of MFP300 is ON, the wireless infrastructure mode and P2P (WLAN) mode are enabled, and connection processing with terminal device 200, which is a connection partner for P2P (WLAN) mode, has been completed. Note that a communication partner device for wireless infrastructure mode has not been determined. The "wireless infrastructure connection state and P2P connection state" is a state in which the wireless communication modes of both are enabled, and the communication partner devices for both are determined.

[0041] The MFP300 uses the wireless combo unit 616 to perform data communication by wireless communication in the WLAN wireless infrastructure mode or wireless communication in the P2P (WLAN) mode. The MFP300 can also enable the WLAN wireless infrastructure mode and the P2P (WLAN) mode in parallel. The CPU602 determines, based on the connection state (e.g., the presence or absence of a communication partner device), which of the two modes, the wireless infrastructure mode or the P2P (WLAN) mode, requires more wireless resources for data communication. The CPU602 then determines the length of time per unit time to be assigned to each mode based on the determination result.

[0042] <Startup settings> When a user who has purchased the main body turns on the power for the first time, the MFP300 is configured to start a process sequence (initial setup) dedicated to initial startup that is different from normal, in order to perform initial settings from the factory shipping state (shipping state). For example, the MFP300 is shipped from the factory with no ink tanks, print head, etc. attached to the printing unit 612. For this reason, it is necessary to prepare the MFP300 so that it can be used, such as by prompting the user to perform a process to attach the included ink tanks, print head, etc., immediately after the user operates the initial startup for the first time. Whether the MFP300 is in the initial startup state as shipped from the factory is determined using a flag (initial startup flag) stored in the non-volatile memory 605. The state of this initial startup flag changes depending on the completion of preparation, and the MFP300 is controlled not to start the process sequence dedicated to initial startup after the completion of the preparation.

[0043] In this embodiment, focusing on the fact that a unique process is performed at the time of initial startup in the MFP 300, the communication mode is set in the process at the initial startup. The process of setting the communication mode at the initial startup of the MFP 300 will be described with reference to Figs. 12 and 13. Note that at the time of initial startup, an initial setup sequence other than the setting of the communication mode is also executed, but the description of the sequence that is not directly related to this embodiment will be omitted here. Fig. 13 illustrates the flow of the process executed by the MFP 300 using a flowchart. Note that the process of each step of the flowchart in this embodiment is realized, for example, by the CPU 602 reading and executing a program stored in the ROM 603.

[0044] When the power is turned on, the MFP300 refers to an initial startup flag stored in the non-volatile memory 605 and determines whether or not the MFP300 itself is in an initial startup state (S1301). The initial startup flag is set to a specific value indicating that the MFP300 is in an initial startup state when shipped from the factory. If the MFP300 determines that the MFP300 itself is not in an initial startup state (NO in S1301), the MFP300 activates an interface (also called a communication mode) that is set to be enabled according to the settings stored in the non-volatile memory 605 (S1313). After that, the MFP300 displays a normal startup standby screen as shown in FIG. 4(a) (S1314), enters a state of waiting for a user operation, and ends the process. The processes of S1313 and S1314 correspond to startup processes during normal use of the MFP300. Note that normal use corresponds to use after the initial setup is completed. On the other hand, when the MFP300 determines that the MFP300 itself is in an initial startup state (YES in S1301), it executes a processing sequence as shown in S1302 to S1315 when the user starts up the MFP300 for the first time. In this processing sequence, the MFP300 first displays on the operation display unit 305 a screen as shown in FIG. 12 for prompting the user to select an interface to be used in the MFP300 (S1302). The user selects the interface to be used in the MFP300 from among the items displayed on the screen. The MFP300 determines whether or not "wireless LAN" has been selected by the user's operation (S1303), and if it determines that wireless LAN has not been selected (NO in S1303), it advances the processing to S1311. If the MFP300 determines that wired LAN has been selected (YES in S1311), it performs processing to enable the wired LAN (S1312), and advances the processing to S1315. Furthermore, MFP300 saves setting information indicating that the wired LAN has been enabled in non-volatile memory 605. This allows MFP300 to refer to this setting information during normal startup (NO in S1301) and enable the wired LAN interface (S1313). If MFP300 determines that the wired LAN has not been selected either (NO in S1311), it advances the process to S1315.A case where the process proceeds from S1311 without performing the process of S1312 is a case where neither wireless LAN nor wired LAN is selected, and "USB" is selected. In this case, MFP300 enables USB (S1315) and ends the interface setting process at the time of initial startup. Although not shown here, when MFP300 completes all the arrival process sequences including the interface selection, it changes the value of the initial startup flag stored in non-volatile memory 605 from a value indicating the initial startup state to a value indicating a non-initial startup state. The non-initial startup state corresponds to the above-mentioned normal use state. This prevents the initial startup process sequence from being started the next time the power of MFP300 is turned on.

[0045] Returning to S1303, if the MFP300 determines that "wireless LAN" has been selected by the user operation (YES in S1303), the MFP300 advances the process to S1304. In S1304, the MFP300 activates the cableless setup mode. The cableless setup mode is a mode dedicated to wireless settings. In the cableless setup mode, the MFP300 activates the wireless combo unit 616 in soft AP mode to operate as a parent station. Note that the soft AP activated at this timing is a parent station for the cableless setup mode. This allows an external communication device such as a personal computer, smartphone, or tablet to connect to the MFP300 as a client (child device) and communicate with it. In this cableless setup, a frequency band of 2.4 GHz or 5 GHz is used. Note that, for example, the MFP300 may determine which frequency band to use based on the surrounding wireless communication conditions. For example, when the MFP300 determines that wireless communication using the 2.4 GHz band is more congested than wireless communication using the 5 GHz band, the wireless combo unit may operate as a software AP that performs communication using the 5 GHz band. In the cableless setup mode, the soft AP mode is not necessarily used, and the WFD mode is used instead of the soft AP mode. However, when the WFD is used, it is necessary to include a randomly generated character string in the SSID, which is a network identifier, and since there is no such restriction in the soft AP, it is assumed here that the soft AP mode is used. In this embodiment, the terminal device 200 establishes a wireless connection in P2P (WLAN) conforming to the IEEE802.11 series with the wireless combo unit 616 of the MFP300 operating as a software AP in S1304.

[0046] In the cableless setup mode, the MFP300 mainly accepts input of setting information necessary for connection in the wireless infrastructure mode (S1305). After establishing a wireless connection in P2P (WLAN) with the wireless combo unit 616 of the MFP300, an external communication device such as a personal computer, smartphone, or tablet transmits setting information for the wireless infrastructure mode. For example, the MFP300 identifies an SSID to which it can connect, creates an SSID list, and transmits the list to the external communication device via P2P (WLAN). The external communication device then displays the SSID list using a dedicated LAN setting application, and transmits setting information to the MFP300 via P2P (WLAN), including an SSID selected by the user and a password used to connect to the SSID. The dedicated LAN setting application that runs on the external communication device such as a personal computer, smartphone, or tablet is configured to connect the MFP300 to an external AP to which the external communication device was connected. It may also be executed in a manner other than that specified by the user. For example, the application running on the terminal device 200 judges whether or not the wireless setting information on the external AP to which the terminal device 200 was connected is included in the received SSID list. If it is judged that the wireless setting information on the external AP to which the terminal device 200 was connected is included, the wireless setting information on the external AP to which the terminal device 200 was connected may be automatically transmitted via P2P (WLAN) to the wireless combo unit 616 of the MFP300 operating as a soft AP. The LAN setting dedicated application may be started by an external communication device executing a program stored in a storage medium or the like included with the product of the MFP300 or distributed in a network downloadable format. In this embodiment, an example is described in which setting information for the wireless infrastructure mode is received in S1305, but an instruction to operate in the P2P (WLAN) mode may also be given in S1305. When this instruction is received, the MFP300 ends the cableless setup mode in the same manner as in S1306 described later, stops the soft AP mode for the cableless setup mode, and starts the soft AP to be a new parent station. The soft AP started here is the same as the soft AP in S1309.Therefore, if the soft AP is started at this point, the process of S1309 may be omitted.

[0047] The setting information that the MFP300 receives from the external communication device in S1305 includes the SSID of the external AP that is constructing the network to be joined, the frequency band, encryption method, authentication method, and the like used by the external AP. The frequency band information may be information specifying the 5 GHz band or the 2.4 GHz band, or a value indicating a wireless channel related to the frequency band. When the MFP300 receives the setting information, the MFP300 ends the cableless setup mode (S1306), stops the soft AP mode, and executes a process of enabling the wireless infrastructure mode (S1307). After that, in S1308, the MFP300 starts communication in the wireless infrastructure mode according to the setting value based on the setting information received in S1305, and performs a process of connecting to the external access point 400. Then, the MFP300 saves the setting information in the non-volatile memory 605 in response to the wireless infrastructure mode being set to be enabled. Specifically, information that the wireless infrastructure mode is enabled, the SSID of the external AP used in the wireless infrastructure mode, and the like are saved. Furthermore, the MFP300 enables the setting of the P2P (WLAN) mode (S1309). In S1309, the MFP300 activates the wireless combo unit 616 in the soft AP mode to operate as a parent station. The activated soft AP uses an SSID different from that of the soft AP in the cableless setup mode described above. Note that the SSID is not limited to the soft AP, and the wireless combo unit 616 may be activated as a group owner of WiFi Direct. Then, the MFP300 saves the setting in the non-volatile memory 605 in response to the P2P (WLAN) mode being set to be enabled. Specifically, the information that the P2P (WLAN) mode is enabled and the frequency band and CH information used in the P2P (WLAN) mode are saved. Note that, when the wireless infrastructure mode and the P2P (WLAN) mode can operate in parallel, the MFP300 may also enable the P2P (WLAN) mode even if the user selects only the wireless infrastructure mode in the setup flow at the time of initial startup. Then, the MFP 300 can execute a setup so as to automatically operate in parallel in the wireless infrastructure mode and the P2P (WLAN) mode.That is, the process of enabling the P2P (WLAN) mode and saving the settings may be performed regardless of whether or not an instruction to enable the P2P (WLAN) mode has been received in S1305. In this case, a frequency band and a CH suitable for an area where the wireless LAN is used may be held in advance as initial values ​​in the MFP 300.

[0048] As described above, the wireless combo unit 616 performs communication in a plurality of communication modes using a common antenna. In order to perform stable communication in a plurality of communication modes using a common antenna, the MFP 300 sets the priority of each communication mode and sets the period length allocated by time division control based on the priority. To set this time length, the MFP 300 sets a wireless control table (S1310). Details of the wireless control table setting process performed in S1310 will be described with reference to FIG. 19. In S1310, the MFP 300 performs a process of selecting a table to be used from the tables shown in FIGS. 20(a), (b), (c), and (d) stored in advance in the non-volatile memory 605.

[0049] The MFP 300 determines whether or not both the wireless infrastructure mode and the P2P (WLAN) mode are enabled (S1901).

[0050] If it is determined that both the wireless infrastructure mode and the P2P (WLAN) mode are not valid (NO in S1901), the process proceeds to S1910. In S1910, the wireless control table setting stored in the non-volatile memory 605 is cleared, and the process ends. In the first embodiment, if it is determined that S1303 is Yes, both the wireless infrastructure mode and the P2P (WLAN) mode are enabled by S1307 and S1309. On the other hand, if it is determined that S1303 is No, both the wireless infrastructure mode and the P2P (WLAN) mode are disabled. Therefore, in the first embodiment, the state of the MFP 300 at the time of the determination in S1901 is basically either that both the wireless infrastructure mode and the P2P (WLAN) mode are valid, or that both are disabled. In that case, there is no problem with the clear process as in S1910. However, if either the wireless infrastructure mode or the P2P (WLAN) mode is enabled, the MFP 300 may set the occupancy rate of the enabled mode in S1910 to 100%.

[0051] On the other hand, when it is determined that both the wireless infrastructure mode and the P2P mode are valid (YES in S1901), the MFP 300 determines whether or not a connection has been established with any of the external access points (S1902). The MFP 300 performs a connection process with the external access point using, for example, the SSID for the wireless infrastructure mode received by the process in the cableless setup mode described above. When the connection process is completed here, information indicating that the connection has been completed is stored in the non-volatile memory 605. In S1902, it is determined whether or not a connection has been established by referring to this information. As another method, for example, the MFP 300 may perform the determination in S1902 depending on whether or not an SSID for the wireless infrastructure mode is set. Also, the MFP 300 may perform the determination in S1902 depending on whether or not an IP address for the MFP 300 has been assigned by an external access point that is a parent station in the wireless infrastructure mode. In other words, the determination in S1902 may be performed depending on whether or not an external access point that is a communication partner device has been determined. The SSID used in the wireless infrastructure mode may be set by a method other than that of the cableless setup mode. If it is determined that the external access point has not been connected (NO in S1902), the wireless infrastructure mode priority flag is set to invalid, and this is saved in the non-volatile memory 605 (S1908).

[0052] On the other hand, if MFP 300 determines that it is already connected to any external access point (YES in S1902), it sets the wireless infrastructure mode priority flag to valid and stores this in non-volatile memory 605 (S1903).

[0053] In S1904, the MFP 300 determines whether or not the MFP 300 has already connected to an external communication device via P2P (WLAN) (S1904). When the MFP 300 receives a P2P (WLAN) connection request, it performs a connection process, and when the connection process is completed, it increments the number of connected devices by one. If the number of connected devices is one or more, the MFP 300 determines in S1904 that the MFP 300 has already connected. As another method, for example, the MFP 300 may perform the determination in S1904 based on whether or not it holds identification information (e.g., IP address, device name) of a communication partner device (e.g., terminal device 200) that will be the communication partner of the P2P (WLAN) connection. In other words, the determination in S1904 may be performed based on whether or not the communication partner device of the P2P (WLAN) connection has been determined. If it is determined that a P2P connection has not been established with the external communication device (NO in S1904), the P2P mode priority flag is set to invalid, and this is saved in the non-volatile memory 605 (S1909).

[0054] On the other hand, if MFP 300 determines that MFP 300 has already established a P2P connection with an external communications device (YES in S1904), MFP 300 sets the P2P mode priority flag to valid and stores this in non-volatile memory 605 (S1905).

[0055] The MFP300 refers to the wireless infrastructure mode priority flag and the P2P mode priority flag and determines which of the wireless control setting tables of FIG. 20(a), (b), (c), or (d) to use (S1906). That is, when the wireless infrastructure mode priority flag is invalid and the P2P mode priority flag is invalid, the MFP300 determines to use FIG. 20(a). When the wireless infrastructure mode priority flag is valid and the P2P mode priority flag is invalid, the MFP300 determines to use FIG. 20(b). When the wireless infrastructure mode priority flag is invalid and the P2P mode priority flag is valid, the MFP300 determines to use FIG. 20(c). When the wireless infrastructure mode priority flag is valid and the P2P mode priority flag is valid, the MFP300 determines to use FIG. 20(d). It should be noted that the numerical values ​​in FIGS. 20(a), (b), (c), and (d) are merely examples, and other values ​​may be set.

[0056] Then, the MFP300 sets the wireless control setting table determined in S1906 in the wireless chip driver (S1907). An overview of communication executed by the MFP300 when the wireless control setting tables in Figs. 20(a), (b), (c), and (d) are set in the wireless chip driver will be described with reference to Figs. 21(a), (b), (c), and (d). The wireless chip driver is a module for controlling the wireless combo unit 616.

[0057] 21(a), (b), (c), and (d) show an overview of communication when the CPU 602 sets any one of FIG. 20(a), (b), (c), and (d) as the wireless control setting table in the wireless chip driver.

[0058] In Fig. 21, packets shown in open rectangles indicate packets transmitted by MFP 300, and packets shown in shaded rectangles indicate packets received by MFP 300. The horizontal axis indicates the passage of time. Note that T in Fig. 21(a) to (d) indicates unit time, and the length of unit time T is the same in Fig. 21(a) to (d).

[0059] FIG. 21(a) shows an example of the operation when the Standby table in FIG. 20(a) is set in the wireless chip driver. That is, the operation is shown when the MFP300 is not connected to the external access point 400 and is not connected to an external communication device by P2P. As is clear from FIG. 21(a), communication is performed such that the time-division occupancy period of the wireless infrastructure connection is approximately equal to the time-division occupancy period of the P2P connection. In FIG. 21(a), a packet 2101 received by the MFP300 is a beacon output by the external access point. Note that this beacon includes an SSID corresponding to the external access point. The MFP300 that has received this beacon transmits a connection request packet 2102 in response to a user operation on the MFP300. For example, for an SSID in the 5 GHz DFS band, the MFP300 receives a beacon (packet 2101) output by the external access point and displays the SSID included in this beacon (packet 2101). When the user selects an SSID in the 5 GHz DFS band and accepts a connection instruction, a connection request packet 2102 is transmitted. A packet 2103 received by the MFP 300 is a packet for P2P connection, such as a Probe Request. If the packet 2103 is a Probe Request, a packet 2104 is a Probe Response.

[0060] FIG. 21(b) shows an example of the operation when the wireless infrastructure connection priority table of FIG. 20(b) is set in the wireless chip driver. That is, the operation is shown when the MFP300 is already connected to the external access point 400 and is not connected to the external communication device via P2P (WLAN). As is clear from FIG. 21(b), communication is performed such that the time-division occupancy period of the wireless infrastructure connection is longer than the time-division occupancy period of the P2P (WLAN) connection. The ratio corresponds to the value of FIG. 20(b). This allows the MFP300 to ensure a sufficient communication speed in communication with the access point 400 in the wireless infrastructure mode. In FIG. 21(b), a packet 2101 received by the MFP300 is, for example, print data received via an external access point. When the MFP300 determines that this data packet is a normal packet, it transmits an ACK packet (packet 2102).

[0061] Furthermore, a packet 2103 received by the MFP 300 is a packet for P2P connection, for example, a Probe Request. When the packet 2103 is a Probe Request, a packet 2104 becomes a Probe Response.

[0062] Fig. 21(c) shows an example of the operation when the P2P connection priority table in Fig. 20(c) is set in the wireless chip driver. That is, it shows the operation when the MFP 300 is not connected to the external access point 400 and is connected to an external communication device via P2P (WLAN). As is clear from FIG. 21(c), communication is performed such that the time-division occupancy period of the P2P(WLAN connection is longer than the time-division occupancy period of the wireless infrastructure connection. Furthermore, this ratio corresponds to the value in FIG. 20(c). This allows the MFP300 to ensure a sufficient communication speed in communication with an external communication device in P2P(WLAN) mode. In FIG. 21(c), a packet 2101 received by the MFP300 is, for example, a beacon output by an external access point, and a packet 2102 is a connection request packet transmitted by a user operation on the MFP300. Note that a detailed explanation is given in FIG. 21(a), so a detailed explanation is omitted here. Furthermore, a packet 2103 received by the MFP300 is print data received via the P2P connection. If the MFP300 determines that this data packet is a normal packet, it transmits an ACK packet (packet 2104).

[0063] FIG. 21(d) shows an example of the operation when the Full Active table in FIG. 20(d) is set in the wireless chip driver. That is, the operation is shown when the MFP300 is already connected to the external access point 400 and already connected to the external communication device by P2P (WLAN). As is clear from FIG. 21(d), communication is performed such that the time-division occupancy period of the wireless infrastructure connection is approximately equal to the time-division occupancy period of the P2P (WLAN) connection. In FIG. 21(d), a packet 2101 received by the MFP300 is, for example, print data received via an external access point. If the MFP300 determines that this data packet is a normal packet, it transmits an ACK packet (packet 2102). Also, a packet 2103 received by the MFP300 is print data received via the P2P connection (WLAN). If the MFP300 determines that this data packet is a normal packet, it transmits an ACK packet (packet 2104). The explanation will be returned to FIG. 13. The MFP300 enables the USB (S1315) and ends the initial startup setting process. That is, the USB interface is enabled in both cases where a wired LAN or a wireless LAN is selected. Note that the MFP300 does not need to enable the USB interface, for example, by a setting based on a user operation.

[0064] The CPU 602 of the MFP 300 can cause the wireless combo unit 616 to execute communication processing based on the selected table, and it becomes possible to reduce the decrease in communication throughput by the above-described processing at the time of initial startup. For example, even if the channel used in the wireless infrastructure mode and the channel used in the P2P (WLAN) mode are different channels when using the wireless combo unit 616, it becomes possible to reduce the decrease in communication throughput. Even if the channel used in the wireless infrastructure mode and the channel used in the P2P (WLAN) mode are the same, it becomes possible to reduce the decrease in communication throughput by the above-described processing. Therefore, the MFP 300 can improve the convenience when operating the P2P mode and the wireless infrastructure mode in parallel by using common hardware resources. When the BLE mode is enabled, the time-division occupancy is determined in consideration of the connection status of the BLE mode. For example, when the BLE mode is enabled in the MFP 300, the MFP 300 first executes the output of Advertising data as communication in the BLE mode. In this case, the time-division occupancy is determined so that beacons (Advertising data) can be transmitted every 100 msec. And the remaining time may be determined according to the content of the table in FIG. 20.

[0065] <Enable / Disable Switching Setting of Communication Mode by LAN Setting> Next, a method of setting the wireless infrastructure mode and the P2P mode when switching between the enable / disable of the communication mode will be described. The MFP300 is configured to be able to set the enable / disable of the communication mode to be used via the main body operation screen as shown in FIG. 4(c) or the cableless setup. The MFP300 can start the cableless setup mode by the user operating the operation screen of the MFP300. That is, when the user instructs to perform the cableless setup using the operation screen of the MFP300, the MFP300 starts the soft AP mode as in S1304 and operates as an AP. In this embodiment, only one of the wired LAN and the wireless LAN is used, and the MFP300 cannot enable the wireless LAN while the wired LAN is enabled. Similarly, the MFP300 cannot enable the wired LAN while the wireless LAN is enabled. It is possible to disable the wired LAN and the wireless LAN in parallel. In this embodiment, the communication function of Bluetooth is also realized by the wireless combo unit 616 together with the wireless LAN, so that Bluetooth is not enabled when the wired LAN is enabled. The USB interface cannot be disabled by a user setting, and is always enabled when the MFP300 is started, and is configured to be usable in parallel with the wired LAN, wireless LAN, or BLE. The MFP300 is also configured to be able to execute settings for enabling / disabling the wireless infrastructure mode and the P2P (WLAN) mode separately and independently. For example, the user instructs the activation of wireless direct (i.e., P2P (WLAN) mode) using the operation screen, and then instructs the activation of the wireless infrastructure mode. These instructions enable the MFP300 to enable the P2P (WLAN) mode and the wireless infrastructure mode in parallel. That is, the MFP300 can maintain a wireless connection in the P2P (WLAN) mode and a wireless connection in the wireless infrastructure mode in parallel. Note that although the connections can be maintained in parallel, data communication is not performed in parallel but is performed sequentially.For example, when a wireless connection in P2P (WLAN) mode and a wireless connection in wireless infrastructure mode are maintained in parallel, data communication in wireless infrastructure mode is performed for a predetermined period of time, and then data communication in P2P (WLAN) mode is performed. Furthermore, the MFP300 is configured to be able to set the BLE mode to be enabled / disabled independently of the P2P (WLAN) mode and the wireless infrastructure mode. At this time, the BLE mode can also be enabled in parallel with the P2P (WLAN) mode and / or the wireless infrastructure mode. That is, the MFP300 can maintain wireless connections in each of the P2P (WLAN) mode and the wireless infrastructure mode, and the BLE mode in parallel. Therefore, the MFP300 can maintain wireless connections in the P2P (WLAN) mode, wireless connections in the wireless infrastructure mode, and wireless connections in the BLE mode in parallel. The set enabled / disabled state is stored in the non-volatile memory 605, and the MFP300 refers to the information at the next startup after the power is turned off, and enables each communication mode based on the stored information. When the LAN setting items are initialized, the MFP300 disables each communication mode. In this case, the MFP300 also disables the wired LAN, and is in a state in which it does not perform LAN communication, either wired or wireless. When the LAN setting is initialized, the user must individually change the setting to enable the desired communication mode before using the MFP300.

[0066] The process performed when the wireless infrastructure mode and the P2P mode are independently enabled / disabled by the user operating the operation screen of the MFP 300 will be described with reference to FIG.

[0067] When the above-mentioned initial startup process (S1301 to S1315) is completed, the MFP 300 displays the normal standby screen (FIG. 4(a)) (S1401).

[0068] In response to a user's operation on the operation screen, the MFP 300 displays the IF selection screen (FIG. 4(c)) from the normal standby screen (S1402), and determines whether or not either Wireless LAN or Wireless Direct has been selected (S1403).

[0069] If the MFP 300 determines that the wireless LAN and wireless direct are not selected (NO in S1403), it enables the selected interface (S1404) and ends the process. For example, if the wired LAN is selected in FIG. 4C, the result in S1403 is NO.

[0070] On the other hand, if the MFP 300 determines that either wireless LAN or wireless direct has been selected on the IF selection screen of FIG. 4(c) (YES in S1403), the process proceeds to S1405. In S1405, the MFP 300 determines whether or not the wireless infrastructure mode has been selected. If the MFP 300 determines that the wireless infrastructure mode has been selected (YES in S1405), the MFP 300 determines whether or not the wireless infrastructure mode has been enabled by a user operation. If the MFP 300 determines that the wireless infrastructure mode has been enabled (YES in S1406), the MFP 300 performs wireless infrastructure mode enablement processing (S1407). The wireless infrastructure mode enablement processing will be described with reference to FIG. 15.

[0071] The MFP300 enables the wireless infrastructure mode based on a user operation on the operation screen (S1501), searches for surrounding access points, and displays a list of SSIDs (Service Set Identifiers) (S1502).Then, the MFP300 determines the access point to be connected to based on the user operation (S1503), and performs connection processing with the selected access point (S1504).

[0072] Then, the MFP 300 determines whether or not the connection with the access point has been completed (S1505). If the MFP 300 determines that the connection with the access point has not been completed (NO in S1505), the MFP 300 advances the process to S1504 again.

[0073] On the other hand, when the MFP 300 determines that the connection with the access point is completed (YES in S1505), the MFP 300 performs a wireless control table setting process (S1506). The wireless control table setting process is the same as the processes in S1901 to S1910 described above, so a detailed description will be omitted, but a simple example will be described. For example, if the MFP 300 is operating in a state in which only the wireless infrastructure mode is enabled by operating the IF selection screen displayed in S1402, the result is determined as No in S1901 and the occupancy rate of the wireless infrastructure mode is set to 100%. On the other hand, if the MFP 300 is operating in a state in which both the wireless infrastructure mode and the P2P (WLAN) mode are enabled by operating the IF selection screen displayed in S1402, the result is determined as Yes in S1901 and S1902 to S1907 are executed. Returning to FIG. 14, the wireless infrastructure mode enabling process is completed. 15, a process flow in which the process of S1506 is not performed until S1505 is determined to be Yes has been described, but another process flow may be executed. That is, if S1505 is determined to be No, MFP300 retries the process of S1504. Then, when the number of retries of S1504 reaches a predetermined number, MFP300 may execute S1506 even if the connection process with the access point is not completed.

[0074] On the other hand, if the MFP 300 determines that the wireless infrastructure mode is not enabled (NO in S1406), it determines whether the wireless infrastructure mode is disabled (S1408). If the MFP 300 determines that the wireless infrastructure mode is not disabled (NO in S1408), it ends the process.

[0075] On the other hand, when it is determined that the wireless infrastructure mode has been disabled (YES in S1408), the MFP 300 performs a process of disabling the wireless infrastructure mode (S1409). The process of disabling the wireless infrastructure mode will be described with reference to FIG.

[0076] When the user operates the operation screen to disable the wireless infrastructure mode, the MFP300 determines whether or not it is already connected to an external access point (S1601). If the MFP300 determines that it is not already connected to an external access point, the process proceeds to S1603. On the other hand, if the MFP300 determines that it is already connected to an external access point (YES in S1406), the MFP300 performs a process of disconnecting from the external access point (S1602) and proceeds to S1603.

[0077] In S1603, the wireless infrastructure mode is disabled, and the wireless control table is set (S1604). The wireless control table setting process is the same as the above-mentioned S1901 to S1910, and therefore a detailed description thereof will be omitted. Returning to FIG. 14, the wireless infrastructure mode is disabled in S1409, and then the process ends.

[0078] Furthermore, if the MFP300 determines that the wireless infrastructure mode has not been selected (NO in S1405), the process proceeds to S1410. The MFP300 determines whether or not the wireless direct (i.e., P2P (WLAN) mode) has been selected in FIG. 4C (S1411). If the MFP300 determines that the P2P (WLAN) mode has not been selected (NO in S1410), the process ends. On the other hand, if the MFP300 determines that the P2P (WLAN) mode has been selected (YES in S1410), the MFP300 determines whether or not the P2P (WLAN) mode has been enabled (S1411). If the MFP300 determines that the P2P (WLAN) mode has been enabled (YES in S1411), the MFP300 performs a P2P (WLAN) mode enable process (S1412). The P2P (WLAN) mode enable process will be described with reference to FIG. 17.

[0079] When the user operates the operation screen, the P2P (WLAN) mode is enabled, and the MFP300 starts the parent station in the P2P mode and enters a state of waiting for a P2P connection request (S1701). The parent station started in S1701 may be a soft AP or a group owner of WiFi Direct. The MFP300 determines whether or not a connection request in the P2P (WLAN) mode has been made (S1702). If it is determined that there is no connection request in the P2P (WLAN) mode (NO in S1702), the MFP300 again enters a state of waiting for a P2P (WLAN) connection request. On the other hand, if the MFP300 determines that there is a connection request in the P2P (WLAN) mode (YES in S1702), it performs a P2P (WLAN) connection process (S1703).

[0080] Next, the MFP300 determines whether the P2P (WLAN) connection is complete (S1704). When it is determined that the P2P (WLAN) connection is not complete (NO in S1704), the MFP300 waits for a P2P (WLAN) connection request again. On the other hand, when it is determined that the P2P (WLAN) connection is complete (YES in S1704), the MFP300 performs a wireless control table setting process (S1705). The wireless control table setting process in S1705 is similar to the above-mentioned S1901 to S1910, and therefore a detailed description is omitted. Returning to FIG. 14, the P2P (WLAN) mode activation process in S1412 is completed. Note that, in the process of FIG. 17, the process flow in which the process in S1705 is not performed until it is determined that Yes in S1704 has been performed has been described, but another process flow may be executed. That is, if the MFP300 does not receive a P2P (WLAN) mode connection request even after waiting for a predetermined time, the MFP300 may execute S1705. Alternatively, if the determination in S1704 is No, the MFP300 retries the processes of S1702-S1703. Then, when the number of retries in S1703 reaches a predetermined number, the MFP300 may execute S1705 even if the P2P (WLAN) mode connection process is not completed.

[0081] On the other hand, if the MFP 300 determines that the P2P (WLAN) mode is not enabled (NO in S1411), it determines whether the P2P (WLAN) mode is disabled (S1413). If the MFP 300 determines that the P2P (WLAN) mode is not disabled (NO in S1413), it ends the process.

[0082] When it is determined that the P2P (WLAN) mode has been disabled (YES in S1413), the MFP 300 performs a P2P (WLAN) mode disabling process (S1414). The P2P (WLAN) mode disabling process will be described with reference to FIG.

[0083] When a user inputs an instruction to disable Wireless Direct (P2P (WLAN) mode) by operating the operation screen, the MFP 300 determines whether or not a P2P (WLAN) connection has been established with an external communication apparatus (S1801).

[0084] If the MFP 300 determines that it is not connected to an external communication device, the process proceeds to S1803. On the other hand, if the MFP 300 determines that it is already connected to an external communication device (YES in S1801), the MFP 300 performs a process to disconnect from the external communication device (S1802), and the process proceeds to S1803.

[0085] The MFP300 stops the master station in P2P (WLAN) mode as a P2P (WLAN) mode disable process (S1803), and performs wireless control table setting process (S1804). The wireless control table setting process is the same as the above-mentioned processes of S1901 to S1910, so a detailed description will be omitted. Returning to FIG. 14, the P2P (WLAN) mode disable process ends.

[0086] The MFP300 can cause the wireless combo unit 616 to execute communication processing based on the selected table, and can reduce a decrease in communication throughput when switching between enabled and disabled communication modes. For example, the wireless combo unit 616 can be used to reduce a decrease in communication throughput even if the channel used in the wireless infrastructure mode and the channel used in the P2P (WLAN) mode are different channels. Note that even if the channel used in the wireless infrastructure mode and the channel used in the P2P (WLAN) mode are the same, the above-mentioned processing can reduce a decrease in communication throughput. Therefore, the MFP300 can improve the convenience of operating the P2P (WLAN) mode and the wireless infrastructure mode in parallel by using common hardware resources. Note that when the BLE mode is enabled, the time-sharing occupancy is determined taking into consideration the connection status of the BLE mode. For example, when the BLE mode is enabled in the MFP300, the MFP300 first executes output of Advertising data as communication in the BLE mode. In this case, the time-sharing occupancy is determined so that a beacon (Advertising data) can be sent every 100 msec. The remaining time may then be determined according to the contents of the table in FIG.

[0087] As described above, the MFP300 according to the present embodiment can set communication periods of appropriate lengths in unit time for each of the wireless infrastructure mode and the P2P (WLAN) mode based on the connection state. Then, the MFP300 sets communication periods for each of the multiple communication modes based on the identified priority and time-sharing occupancy. This makes it possible to allocate communication periods with appropriate allocation to communication modes that require throughput.

[0088] (Other embodiments) In the above-described embodiments, a mode in which communication is performed according to the wireless LAN standard has been described as an example of a communication mode to be used. However, each communication device may be configured so that a communication mode according to another wireless communication standard can be used. For example, when a wireless LAN standard is added or changed, or a new wireless communication standard becomes available, the above discussion can be applied using the added or changed standard or the new wireless communication standard. For example, the above discussion can also be applied when a new connection form becomes available due to the addition or change of a wireless communication standard.

[0089] In the above example, in the wireless infrastructure mode or P2P (WLAN) mode, whether to use the Standby table, the wireless infrastructure connection priority table, or the P2P connection priority table is determined depending on whether the device is connected to an external device or not. However, this is not limited to the above, and the user may specify which table in Fig. 20 to use. In other words, even if the device is already connected to an access point and is connected to an external device via P2P, the wireless infrastructure connection priority table may be used according to the user's specification if the user wants to prioritize the wireless infrastructure connection.

[0090] Furthermore, in the above embodiment, the processing has been described as being executed in the MFP 300, but it may be executed in a device other than the MFP (for example, a digital camera, a smartphone, etc.).

[0091] In order to increase throughput, the MFP300 may perform communication in a 40 MHz frequency bandwidth using multiple channels depending on the situation. For example, when the P2P (WLAN) mode is disabled and the wireless infrastructure mode is enabled, the MFP300 waits in a state in which it can operate in either the 20 MHz mode or the 40 MHz mode. When the MFP300 receives information indicating that an external access point allows communication in 40 MHz, the MFP300 may decide to operate in the 40 MHz mode. The 40 MHz mode is supported by IEEE802.11n. When the MFP300 joins a 2.4 GHz wireless network established by an external access point in the 40 MHz mode, the MFP300 periodically performs an OBSS (Overlapping Basic Service Set) Scan in accordance with the IEEE802.11n standard. By performing an OBSS Scan, wireless networks that are not compatible with the IEEE802.11n standard and wireless networks that do not allow communication in the 40 MHz mode are discovered. When the MFP300 detects such a wireless network, it sends a report to the external access point. The external access point that receives the report switches from a wireless network that supports 40 MHz to a wireless network that supports only 20 MHZ as necessary. Note that communication may be performed at a different frequency bandwidth.

[0092] In the above embodiment, the frequencies used are 2.4 GHz and 5 GHz, but other frequencies may be used, for example, 6 GHz.

[0093] 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. [Explanation of symbols]

[0094] 200 Portable communication terminal device 300 MFP

Claims

1. A communication device including a communication means capable of executing a first communication mode in which the communication device communicates with a terminal device via wireless communication with an external wireless base station, and a second communication mode in which the communication device directly communicates with the terminal device via wireless communication without via the external wireless base station, a setting means for enabling at least one of the first and second communication modes; a control means for executing processing of the first and second communication modes such that a time used for the first communication mode in a unit time is longer than a time used for the second communication mode when both the first and second communication modes are enabled and the device is wirelessly connected to an external base station for the first communication mode but is not wirelessly connected to a communication partner device for the second communication mode; A communication device comprising:

2. The control means further comprises: The communication device according to claim 1, characterized in that, when both the first and second communication modes are enabled and the device is wirelessly connected to a communication partner device for the second communication mode but is not wirelessly connected to an external base station for the first communication mode, the device executes processing of the first and second communication modes so that the time used for the second communication mode in the unit time is longer than the time used for the first communication mode.

3. A communication device including a communication means capable of executing a first communication mode in which the communication device communicates with a terminal device via wireless communication with an external wireless base station, and a second communication mode in which the communication device directly communicates with the terminal device via wireless communication without via the external wireless base station, a setting means for enabling at least one of the first and second communication modes; a control means for executing processing of the first and second communication modes such that a time used for the second communication mode in a unit time is longer than a time used for the first communication mode, when both the first and second communication modes are enabled and the communication device is wirelessly connected to a communication partner device of the second communication mode but is not wirelessly connected to an external base station for the first communication mode; A communication device comprising:

4. The communication device according to any one of claims 1 to 3, characterized in that, when both the first and second communication modes are enabled and the device is wirelessly connected to an external base station for the first communication mode and a communication partner device for the second communication mode, the control means executes processing of the first and second communication modes so that the time used for the first and second communication modes in the unit time is approximately the same.

5. The communication device according to any one of claims 1 to 4, characterized in that, when both the first and second communication modes are enabled and the device is not connected to an external base station for the first communication mode and a communication partner device for the second communication mode, the control means executes communication processing for the first and second communication modes so that the time used for the first and second communication modes in the unit time is approximately the same.

6. 6. The communication device according to claim 1, further comprising a single antenna corresponding to wireless communication in the first communication mode and the second communication mode, and wherein when the first and second communication modes are enabled, communication in the first communication mode and communication in the second communication mode are switched sequentially.

7. 7. The communication device according to claim 1, wherein the first communication mode and the second communication mode are communications according to the IEEE 802.11 standard.

8. 8. The communication device according to claim 1, wherein the first communication mode and the second communication mode use different frequencies.

9. 9. The communication device according to claim 1, wherein the communication means operates as a master station of a wireless network in the second communication mode.

10. 10. The communication device according to claim 1, further comprising a print control unit that executes a print process based on print data received in communication in at least one of the first and second communication modes.

11. A communication device as described in any one of claims 1 to 10, characterized in that when both the first and second communication modes are enabled and the device is wirelessly connected to an external base station for the first communication mode but is not wirelessly connected to a communication partner device for the second communication mode, the communication device receives a probe request at a time used for the second communication mode in a unit time.

12. A communication device as described in any one of claims 1 to 11, characterized in that when both the first and second communication modes are enabled and the device is wirelessly connected to a communication partner device of the second communication mode but is not wirelessly connected to an external base station for the first communication mode, the communication device receives a beacon transmitted from an external base station at the time used for the first communication mode in the unit time.

13. A control method executed in a communication device having a communication means capable of executing a first communication mode in which communication is performed with a terminal device via wireless communication with an external wireless base station, and a second communication mode in which wireless communication is performed directly with the terminal device without going through the external wireless base station, comprising: a setting step of enabling at least one of the first and second communication modes; a control step of executing processes of the first and second communication modes such that a time used for the first communication mode in a unit time is longer than a time used for the second communication mode when both the first and second communication modes are enabled and the device is wirelessly connected to an external base station for the first communication mode but is not wirelessly connected to a communication partner device for the second communication mode; A control method comprising:

14. A control method executed in a communication device having a communication means capable of executing a first communication mode in which communication is performed with a terminal device via wireless communication with an external wireless base station, and a second communication mode in which wireless communication is performed directly with the terminal device without going through the external wireless base station, comprising: a setting step of enabling at least one of the first and second communication modes; a control step of executing processes of the first and second communication modes so that a time used for the second communication mode in a unit time is longer than a time used for the first communication mode, when both the first and second communication modes are enabled and the communication device is wirelessly connected to a communication partner device of the second communication mode but is not wirelessly connected to an external base station for the first communication mode; A control method comprising:

15. A program for causing a computer to function as each of the means of the communication device according to any one of claims 1 to 12.

16. A computer-readable storage medium storing a program for causing a computer to function as each of the means of a communication device described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Radio communication apparatus

    JP2009021886A

  • Communication apparatus, communication method, and program

    JP2014216956A

  • Apparatus and method for a bandwidth-efficient scheduler

    JP2015518676A

  • Communication device, control method, and program

    JP2017212501A

  • Communication device and communication method

    JP2019016888A