Communication device, control method and computer readable storage medium
By controlling error handling of parallel communications in communication equipment, errors are prevented from affecting other communication modes, ensuring communication stability and solving the problem of error propagation in parallel communications.
Patent Information
- Application Number
- CN202210729998.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2016-05-23
- Filing Date
- 2017-05-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2037-05-23
AI Technical Summary
When conducting parallel wireless communications, communication equipment is prone to errors due to multi-mode sharing of a single wireless IC chip, affecting normal communication, and automatic retry may cause packet loss or delay.
In the communication device, the control unit manages the first communication and the second communication in parallel. If an error related to the first communication occurs, the second communication is stopped without automatically restarting to avoid error propagation.
Effectively prevent errors from affecting other communication modes, ensure communication stability, and avoid packet loss or delay problems caused by automatic retry.
Smart Images

Figure CN115134940B_ABST
Abstract
Description
[0001] (This application is a divisional application of an application filed on May 23, 2017, with application number 2017103722200 and invention name “Communication device, control method and computer-readable storage medium”.) Technical Field
[0002] The present invention generally relates to a communication device, a control method and a computer-readable storage medium, and in particular to an error control technology in communication. Background Art
[0003] As a wireless connection mode used in the case where the communication device is to be connected to the counterpart device, any one of an infrastructure mode of wirelessly connecting to the counterpart device via another device such as an access point (AP) or a peer-to-peer (P2P) mode of directly wirelessly connecting to the counterpart device can be used. Note that the P2P mode includes a mode in which the communication device or the counterpart device operates as a base station such as an AP, and wireless connection is performed by processing the other device as a terminal accommodated by the base station.
[0004] Wi-Fi It is one of the specifications developed for P2P mode communication. In Wi-Fi Direct, two or more wireless LAN terminals used for communication in P2P mode each play a role called a group owner (GO) or a role called a client (CL). Note that the GO works like an AP, and the CL works like a station (STA) connected to the AP. Note that whether the communication device or the other device works as a GO is determined by a sequence called Group Owner Negotiation. This eliminates the need for a traditional dedicated device as an access point, and direct communication between the communication device and the other device is possible. In general, in the case where the communication device is to work as a STA or CL, the determination of the channel to be used is dominated by the AP that sends a search response command in response to a search request command from the communication device. In addition, in the case where the communication device is to work as a GO, the communication device determines the channel to be used by comparing the channel information of the CL acquired by the group owner negotiation and the channel that the communication device can use.
[0005] The above-mentioned wireless communications of the infrastructure mode and the P2P mode can be performed simultaneously (in parallel) in a single device. For example, a communication device can be used as a STA and make a wireless connection with an AP on the one hand, but can also be used as a GO in the P2P mode to make a wireless connection with a counterpart device used as a CL. In this case, the communication device can make a wireless connection via two different wireless channels used as wireless interfaces by using a parallel wireless interface. However, in the case of communicating by allocating multiple channels at the same time using a single wireless IC chip, the device configuration and processing become complicated. Therefore, in fact, when performing parallel communication, a common channel can be used for the above-mentioned two modes.
[0006] In some cases, an error may occur when the communication device is setting up a connection for communication or is communicating. For example, the following errors may occur: an error related to information that has been exchanged between the communication device and the counterpart device; or an error caused by the continuation of a predetermined period of time during which the communication device cannot receive a beacon due to a crowded communication environment in which many devices are using wireless resources. Moreover, in the case where a temporary lack of memory occurs in the communication device and causes a period of time during which communication cannot be performed normally, a difference occurs between the communication state recognized by the counterpart device and the communication state of the communication device, and an error may occur.
[0007] In Japanese Patent Laid-Open No. 2012-129898, an invention is disclosed in which, in the case where information exchange at the time of group owner negotiation fails, settings are automatically changed and group owner negotiation is retried. However, if a communication device that realizes communication in multiple modes by a single wireless IC chip attempts a retry as disclosed in Japanese Patent Laid-Open No. 2012-129898 in one of the modes, the communication device may have an influence on normal communication in other modes. As a result, even in communication in a mode that has been operating normally, a problem of packet loss or delay may occur. Summary of the invention
[0008] According to the present invention, in a communication device that can perform a plurality of communications simultaneously, if an error occurs in connection with one of the communications, the error can be prevented from affecting the other communications.
[0009] According to one aspect of the present invention, there is provided a communication device, comprising: a communication unit for performing first communication with a counterpart device via another device and second communication with a counterpart device not via another device in parallel; and a control unit for controlling the first communication and the second communication of the communication unit, wherein, in a state where the first communication and the second communication are performed in parallel and an error related to the second communication occurs during a period when an error related to the first communication does not occur, the control unit controls the communication unit to stop the second communication without automatically restarting. .
[0010] According to another aspect of the present invention, a control method for a communication device is provided, the communication device including a communication unit for performing in parallel a first communication with a counterpart device via another device and a second communication with the counterpart device not via another device, the control method comprising: in a state where the first communication and the second communication are performed in parallel and an error related to the second communication occurs during a period when no error related to the first communication occurs, controlling the communication unit to stop the second communication without automatically restarting it.
[0011] According to another aspect of the present invention, a computer-readable storage medium is provided for storing a computer program, wherein the computer program is used to cause a computer included in a communication device including a communication unit for performing in parallel a first communication with a counterpart device via another device and a second communication with the counterpart device not via another device to perform the following operation: in a state where the first communication and the second communication are performed in parallel and an error related to the second communication occurs during a period when no error related to the first communication occurs, the communication unit is controlled to stop the second communication without automatically restarting it.
[0012] According to another aspect of the present invention, a communication device is provided, comprising: a communication unit for performing a first communication with an access point and a second communication compliant with Wi-Fi Direct; and a control unit for performing the following operations: when an error related to the second communication occurs during a period when no error related to the first communication occurs while the first communication and the second communication are performed in parallel, stopping the second communication without automatically restarting it; and when an error related to the second communication occurs while the communication unit is performing the second communication without performing the first communication, automatically restarting the second communication.
[0013] Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings). BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0015] Figure 1 is a diagram showing an example of a configuration of a wireless communication system;
[0016] Figure 2 is a view showing an example of the appearance of a mobile communication device;
[0017] Figure 3 is a view showing an example of the appearance of the MFP;
[0018] Figures 4A to 4C are views each showing an example of an operation display unit of the MFP;
[0019] Figure 5 is a block diagram showing a configuration of a mobile communication device;
[0020] Figure 6 is a block diagram showing the configuration of the MFP;
[0021] Figure 7 is a sequence diagram showing an example of a procedure of a wireless connection process in a software AP mode;
[0022] Figure 8 is a sequence diagram showing an example of a procedure of a wireless connection process in the WFD mode;
[0023] Fig. 9 is a sequence diagram showing an example of a procedure of a wireless connection process of an infrastructure mode;
[0024] Fig.10 is a flowchart showing a first example of a procedure for error control processing; and
[0025] Fig.11 is a flowchart showing a second example of the procedure of the error control process. DETAILED DESCRIPTION
[0026] Exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless expressly specified otherwise.
[0027] (System Structure)
[0028] Figure 1 An example of the configuration of the wireless communication system according to this embodiment is shown. The wireless communication system includes, for example, a mobile communication device, a printing device (MFP: Multi-Function Peripheral), and an access point (AP). These devices are all communication devices that have communication functions respectively. However, the present invention is not limited to this. In addition Figure 1 In addition to or instead of the corresponding devices shown, devices other than these devices may also be included.
[0029] The mobile communication device 200 is, for example, a portable communication device having a wireless LAN (WLAN) communication function. Here, it is assumed that data (packet) communication in a wireless LAN system conforming to, for example, the IEEE 802.11 standard series will be performed by the wireless LAN communication function. The mobile communication device 200 can use the wireless LAN communication function to perform communication based on Wi-Fi Direct (WFD), communication in a software access point mode, or communication in an infrastructure mode. Note that the software access point mode is also referred to as a software AP mode, and the infrastructure mode is also referred to as an "infra" mode.
[0030] Note that the mobile communication device 200 may have a wireless communication function other than a wireless LAN that complies with the IEEE 802.11 standard series. For example, the mobile communication device 200 may have a wireless LAN function that complies with a standard other than the IEEE 802.11 standard series, or may have a communication function other than a wireless LAN. However, it is assumed that the mobile communication device 200 can operate in one of a first mode of wireless communication with a counterpart device via another device and a second mode of wireless communication with a counterpart device without wireless communication via another device. It is also assumed that the mobile communication device 200 can simultaneously (in parallel) perform wireless communication in the first mode and the second mode. The mobile communication device 200 may be, for example, a personal information terminal such as a PDA (personal digital assistant), a mobile phone, or a digital camera.
[0031] The printing device (MFP 300) may have a communication function for performing wireless communication with the mobile communication device 200. The printing device may also have other functions such as a scanning function (scanner), a fax (FAX) function, and a telephone function. Here, the wireless communication function is a function corresponding to the communication function of the above-mentioned mobile communication device 200. That is, it is assumed that, for example, in the case where the mobile communication device 200 has a wireless LAN communication function, the MFP 300 has a wireless LAN communication function that complies with the same standard. In this embodiment, the MFP 300 has a scanning function in addition to the printing function, but the present invention is not limited thereto. The MFP 300 may have only a printing function or a function that is not related to image processing such as printing.
[0032] Note that the MFP 300 can also operate in one of a first mode for wirelessly communicating with a counterpart device via another device and a second mode for wirelessly communicating with a counterpart device not via another device in the same manner as the mobile communication device 200. It is also assumed that the MFP 300 can simultaneously perform wireless communications in the first mode and the second mode.
[0033] The access point 400 has a wireless LAN communication function, and relays communication between communication devices that serve as wireless LAN stations (hereinafter also referred to as clients) that have been allowed to connect to the access point itself through the access point. In addition, the access point 400 can also relay communication between the above-mentioned communication devices and devices that can be connected via the network to which the access point 400 is connected (for example, devices that are directly connected to the network through a LAN cable or the like). Communication devices (stations) that exist around the access point 400 can perform infrastructure mode communication via the access point 400. Note that if the mobile communication device 200 is to communicate with a counterpart device via another device using a communication function other than a wireless LAN, the access point 400 can be replaced with another device.
[0034] The mobile communication device 200 and the MFP 300 can use their respective wireless LAN communication functions to perform wireless communication in infrastructure mode via the access point 400. The mobile communication device 200 and the MFP 300 can also perform wireless communication in peer-to-peer mode (P2P mode) according to Wi-Fi Direct, etc. Note that, as will be described later, the mobile communication device 200 and the MFP 300 can perform processing corresponding to a plurality of print services via a wireless LAN.
[0035] (Device Configuration)
[0036] Figure 2 An example of the appearance of the mobile communication device 200 is shown. This embodiment will describe the case where the mobile communication device 200 is a smart phone. A smart phone is a multifunctional mobile phone that includes multiple functions such as a camera, a web browser, and an email function. However, the mobile communication device 200 does not necessarily have to be a smart phone. That is, the mobile communication device 200 according to the present embodiment can be replaced by any communication device that includes at least some of the functions to be described below.
[0037] The mobile communication device 200 includes, for example, a touch panel in which a display unit 202 and an operation unit 203 are integrated, and may include a frame 201 portion that fixes or protects the touch panel. Note that an antenna for performing communication using a wireless LAN may be provided on the back of the frame 201, and the mobile communication device 200 may perform communication using the antenna and a wireless communication circuit. The display unit 202 and the operation unit 203 may be, for example, a touch panel display having an LCD display mechanism. For example, the display unit 202 displays button icons and a software keyboard, and the operation unit 203 may detect an operation event when a user touches the icons and the keyboard. The power key 204 is a hard key for accepting an operation to turn the power on / off.
[0038] Figure 3 An example of the appearance of the MFP 300 is shown. Figure 3 In the MFP 300, the document table 301 is a glass-like transparent table on which the document to be scanned by the scanner (scanning unit) is placed. The document cover 302 is a cover for pressing the document when the scanner scans the document and preventing the light from the light source irradiating the document during scanning from leaking outward. The printing paper insertion port 303 is an insertion port for supplying various sizes of paper used for printing to the MFP 300. The paper set on the printing paper insertion port 303 is conveyed to the printing unit one by one, and is discharged from the printing paper discharge port 304 after the printing unit prints. The operation display unit 305 is formed by including keys such as character input keys, cursor keys, confirmation keys and cancel keys, LEDs (light emitting diodes) and LCDs (liquid crystal displays). The user can make various settings and start various functions of the MFP via the operation display unit 305. The operation display unit 305 can be formed by a touch panel. The housing 306 accommodates the circuits, printing mechanisms, etc. that form the MFP 300. The antenna and wireless communication circuit for communicating via a wireless LAN are also accommodated in the housing.
[0039] Figures 4A to 4C Each schematically shows an example of a screen displayed on the operation display unit 305 of the MFP. Figure 4A The main screen shows a state (idle state) in which the power of the MFP is turned on but no operation such as printing or scanning is performed. By accepting key operations or touch panel operations performed by the user in this state, the MFP can shift to executing processing related to displaying menus, various settings, or functions for copying, scanning, or cloud functions using Internet communication. The operation display unit 305 can be changed from Figure 4A The main screen displays seamlessly with Figure 4A Different functions. Figure 4B is such an example, and shows an example of a screen in which a print or photo function can be executed or LAN settings can be changed. Figure 4C The operation display unit 305 receives Figure 4B An example of a screen displayed when LAN settings are selected in the screen of . Changes to various LAN settings such as settings to enable / disable infrastructure mode (wireless LAN) or settings to enable / disable WFD mode (Wireless Direct) can be performed from this screen.
[0040] Figure 5 An example of the configuration of the mobile communication device 200 is shown. In one example, the mobile communication device 200 includes a main board 501 for performing main control of the device itself and a WLAN unit 517 for performing communication using a wireless LAN.
[0041] In the main board 501, a CPU (Central Processing Unit) 502 is a system control unit, and controls the overall operation of the mobile communication device 200. The following processing of the mobile communication device 200 is performed under the control of, for example, the CPU 502. Note that the mobile communication device 200 may implement at least some functions using an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like.
[0042] ROM 503 stores control programs to be executed by CPU 502, embedded operating system (OS) programs, etc. In this embodiment, each control program stored in ROM 503 performs software control such as scheduling and task switching under the management of embedded OS stored in ROM 503. RAM 504 is implemented by SRAM (static RAM) or the like, stores data such as program control variables, and stores data such as setting values registered by the user and management data of mobile communication device 200. RAM 504 is provided with various work buffers. Image memory 505 is implemented by a memory such as DRAM (dynamic RAM) or the like, and temporarily stores image data received via WLAN unit 517 and image data to be processed by CPU 502 read from data storage unit 513. Non-volatile memory 512 is formed by a memory such as flash memory, and continues to store data even when the power of mobile communication device 200 is turned off. Note that such a memory structure is not limited to the above structure. For example, image memory 505 and RAM 504 may have a shared memory structure, or data may be backed up in data storage unit 513. Although the image memory 505 has been described as being implemented by DRAM, it may be implemented by other storage media such as a hard disk or a nonvolatile memory.
[0043] The data conversion unit 506 performs analysis of data in various formats and data conversion such as color conversion and image conversion. The telephone unit 507 processes voice data input / output via the speaker unit 514 to generate and send a voice communication signal to the communication circuit or reconstruct voice data from a signal received from the communication circuit. The operation unit 508 generates and outputs a signal indicating that the voice communication signal has been received by the communication circuit. Figure 2 The GPS (Global Positioning System) 509 acquires the position information of the mobile communication device 200, such as the current latitude and longitude. The display unit 510 electronically controls Figure 2 The display content of the display unit 202 in the display unit 202 is displayed, a screen for various input operations is displayed, and an operation state, a status state, etc. of the MFP 300 are displayed.
[0044] The camera unit 511 has a function of electronically recording and encoding an image input via a lens. Image data related to the image captured by the camera unit 511 is stored in the data storage unit 513. The data storage unit 513 may be a storage device for storing various data as described above. The speaker unit 514 implements a function for inputting or outputting a voice of a telephone function and other functions such as a warning notification. The power supply unit 515 is a battery of a size that can be stored in the mobile communication device 200 and performs power supply control on the device. The mobile communication device 200 may be in one of the power supply states including the following states: a battery exhaustion state in which the battery has no remaining amount, a power-off state in which the power key 204 is not pressed, a startup state in which the device is normally started, and a power saving state in which the device is started but set in a power saving mode.
[0045] The WLAN unit 517 is formed by including an antenna and a communication circuit (e.g., a circuit having a baseband processing function and an RF processing function) for wireless communication conforming to the wireless LAN standard. The mobile communication device 200 performs data communication using a wireless LAN with another device such as an MFP used as a counterpart device via the WLAN unit 517. The WLAN unit 517 can convert data into packets and perform wireless packet transmission to another device. The WLAN unit can also receive packets wirelessly transmitted from other external devices, reconstruct original data, and transmit the reconstructed data to the CPU 502.
[0046] The components of the main board 501 are connected to each other via a system bus 518 managed by the CPU 502. The WLAN unit 517 is connected to the system bus 518 of the main board 501 via a bus cable 516. Therefore, under the control of the CPU 502, data generated or stored by the components of the main board 501 is transmitted via the WLAN unit 517, and data received by the WLAN unit 517 is transmitted to the components of the main board 501.
[0047] Note that the mobile communication device 200 may have the functions of a general smartphone such as a communication function for cellular communication.
[0048] Figure 6 An example of the configuration of the MFP 300 is shown. In one example, the MFP 300 includes a main board 601 for main control of the device itself, a WLAN unit 616 for communication using a wireless LAN, and a modem 619 for wired communication. Note that the MFP 300 may have a USB (Universal Serial Bus) interface, and may be formed to be connectable to an external device such as a PC via the USB interface.
[0049] In the main board 601, a CPU (Central Processing Unit) 602 is a system control unit, and controls the overall operation of the MFP 300. For example, the following processing of the MFP 300 is performed under the control of the CPU 602. Note that the MFP 300 can implement at least some functions using an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like.
[0050] The ROM 603 stores a control program to be executed by the CPU 602, an embedded operating system (OS) program, and the like. In this embodiment, each control program stored in the ROM 603 performs software control such as scheduling and task switching under the management of the embedded OS stored in the ROM 603. The RAM 604 is implemented by an SRAM (static RAM) or the like, stores data such as program control variables, and stores data such as setting values registered by a user and management data of the MFP 300. The RAM 604 is provided with various work buffers. The nonvolatile memory 605 is formed by 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 implemented by a DRAM (dynamic RAM) or the like, and stores image data received via the WLAN unit 616 and image data processed by the encoding / decoding processing unit 611. In addition, similar to the memory structure of the mobile communication device 200, the memory structure of the MFP 300 is not limited to the above structure.
[0051] The scanning control unit 607 controls the scanning unit 609 (for example, CIS (Contact Image Sensor)) to optically scan the Figure 3 The scanning control unit 607 scans the document on the document table 301 and outputs an image signal generated by converting the scanned document into electronic image data. At this time, the scanning control unit 607 can perform various image processing such as binarization processing and halftone processing on the image data, and output the obtained image data. The data conversion unit 608 performs analysis of data in various formats, conversion from image data to print data, etc. The fax control unit 617, for example, sends the image data scanned by the scanning unit 609, receives fax data received from an external device, and controls to reconstruct an image based on the received data. The fax control unit 617 can, for example, send / receive fax data to / from an external device via a modem 619.
[0052] The operation display unit 610 generates a display indicating the Figure 3 The operation display unit 610 receives a signal of a user operation and controls the information to be displayed on the operation display unit 305. The operation display unit 610 displays, for example, Figure 4A In response to receiving the user's predetermined processing, the following screen is displayed: Figure 4BThe encoding / decoding processing unit 611 performs encoding and decoding processing and enlargement / reduction processing on image data (JPEG, PNG, etc.) to which the MFP 300 corresponds.
[0053] The paper feeding unit 613 stores paper and provides paper for printing under the control of the print control unit 614. As the paper feeding unit 613, a plurality of paper feeding units may be prepared so that a plurality of types of paper can be stored in one device. In this case, the print control unit 614 may control to select the paper feeding unit to be used for providing paper. The print control unit 614 performs various image processing such as smoothing processing, print density correction processing, and color correction on the print object image data, and outputs the processed image data to the print unit 612. The print unit 612 may be a circuit and mechanism used as an inkjet printer, wherein the inkjet printer prints an image by discharging ink supplied by an ink tank from a print head. The print control unit 614 may also periodically read out information of the print unit 612, and control to update information stored in the RAM 604. For example, the print control unit 614 may update status information stored in the RAM 604, such as the remaining amount in the ink tank and the status of the print head.
[0054] The NW (network) subsystem 620 is a subsystem responsible for controlling the input / output related to network communication in order to reduce the control load of the CPU (central processing unit) 602. The control code to be executed by the NW sub-CPU 621 is stored in a part of the RAM 604, and in the boot sequence of the CPU 602, this control code is transferred from the RAM 604 to the RAM 622 in the subsystem 620 by DMA. After the NW sub-CPU 621 is reset, the control code is executed by the NW sub-CPU 621. Therefore, the input / output control related to network communication is performed. The modules in the NW subsystem (NW sub-CPU 621, RAM 622 and UHOST module 623) are connected to each other via a local bus 624 separated from the system bus 625 of the main board 601. The NW subsystem 620 can perform network control with minimal impact on other modules in the main board 601 by particularly taking the function of the layer close to the hardware layer among the functions related to network communication.
[0055] The WLAN unit 616 is the same as the WLAN unit 517 of the mobile communication device 200. Therefore, a detailed description will be omitted. Note that the WLAN unit 616 can be formed by a single wireless IC chip. Even in the case where the WLAN unit 616 is formed by a single wireless IC chip, the WLAN unit can simultaneously (in parallel) perform communications in infrastructure mode and P2P mode. In this case, the MFP 300 can perform communications in infrastructure mode and P2P mode on the same channel, and can switch between communications in infrastructure mode and communications in P2P mode in a time-division manner. The WLAN unit 616 is connected to the NW subsystem 620, for example, via a UHOST module 623 and a bus cable 615. The modem 619 is, for example, a functional unit for performing wired communication, and is formed by including circuits and mechanisms for performing data (packet) communications that conform to, for example, the IEEE802.3 standard series. The modem 619 includes, for example, an Ethernet The motherboard 601 has an interface and is connected to a LAN via a cable connected to the interface. This allows communication with external devices such as a PC similarly connected to the LAN. In addition, the modem 619 can communicate with a communication device via a wired LAN, wherein the communication device is connected to an access point connected to the wired LAN. The modem 619 can be connected to the system bus 625 of the motherboard 601 via a bus cable 618, but can also be connected to the local bus 624 of the NW subsystem 620, for example. Note that the components of the motherboard 601 are connected to each other via the system bus 625 managed by the CPU 602.
[0056] (Wireless connection method)
[0057] In this embodiment, as a connection method of a wireless LAN, a P2P mode in which a communication device directly communicates with a counterpart device not via another device (external AP) and an infrastructure mode in which a communication device indirectly communicates with a counterpart device via another device such as an AP can be used.
[0058] The P2P mode can have multiple modes. In these modes, for example, the communication device uses a search request command (e.g., a probe request frame) that is common between modes to search and discover the communication partner device. A search request command with various attribute information added can be sent. Generally, if the attribute is specified in the search request command, the following recommendation is made: the device receiving the search request command sends a response related to the attribute that is interpreted as widely as possible within the scope defined by the specification of the mode and the specification on which the definition mode is based (Wi-Fi for WFD). In addition, in the case where the information added to the search request command (including the above-mentioned attributes) includes uninterpretable information, the device receiving the search request command can respond only based on the information that can be interpreted.
[0059] The various modes included in the above-mentioned P2P mode may include other modes called mode A (software AP mode) and mode B (Wi-Fi Direct mode). For each mode, compatible devices may be different, and available applications may also be different.
[0060] Figure 7 An example of the procedure of wireless connection processing of mode A (software AP mode) is shown. In the software AP mode, one of the communication device and the counterpart device functions as a software AP by implementing an access point function using software, and the other device operates as a client connected to the software AP. Assumption: the mobile communication device 200 functions as a client having a role of requesting various services, and the MFP 300 will function as a software AP below.
[0061] In the software AP mode, the client searches for a device to be used as a software AP by using a search request command 701, and the software AP responds by sending a search response 702 to the search request command 701. When the client finds the software AP, the remaining wireless connection processing (establishment of a wireless connection, etc.) is performed between the client and the software AP, and then the IP connection processing (allocation of an IP address, etc.) is performed. Note that as commands and parameters that are sent / received to establish a wireless connection between the client and the software AP, commands and parameters defined by, for example, the Wi-Fi standard or the IEEE 802.11 standard are used, and a description thereof will be omitted.
[0062] Figure 8 An example of the process of wireless connection processing of mode B (Wi-Fi Direct (WFD) mode) is shown. Note that a device that can communicate via the WFD mode will call a dedicated application in response to accepting a user operation, for example, via an operating unit of the device to implement the communication function. Subsequently, negotiations for WFD communication can be performed based on user operations of an operating screen serving as a UI (user interface) provided by the application. In the WFD mode, after the communication device searches for a counterpart device through a search request command, the roles of the P2P group owner (GO) and the P2P client (CL) are determined between the communication device and the counterpart device, and the remaining connection processing is performed. This role determination can be performed, for example, through a GO negotiation of the WFD standard.
[0063] For example, the communication device sends a search request command 801 and searches for a counterpart device connected via the WFD mode. The counterpart device responds by sending a search response 802 for the received search request command 801. When the communication device finds the counterpart device, the communication device and the counterpart device confirm information related to services and functions that can be provided to each other (device information confirmation). Services and functions are, for example, printing services, image display services, file sending services, video streaming services, video display services, etc. Note that device information confirmation is not necessary, but optional. The device information confirmation phase is performed, for example, by service discovery of the WFD standard. By confirming each other's device information, the communication device and the counterpart device can know what kind of service can be provided by another device connected via the WFD mode before making a WFD connection. When the communication device finds the counterpart device, it determines the device to work as a P2P group owner (GO) and the device to work as a P2P client (CL). This role determination can be performed, for example, by GO negotiation in the WFD standard. In the GO negotiation, the communication device and the counterpart device send each other's intent (Intent) value as a value set in each device to compare the size of the intent value. Then, as a result of the comparison, the communication device and the other device determine that the device with a larger value will work as a GO, and the device with a smaller value will work as a CL. If the respective intention values have the same value, the communication device and the other device will compare the random values (0 or 1) generated after the initial comparison and determine the roles of GO and CL. After determining the roles of GO and CL, the communication device and the other device transfer to the parameter exchange phase and exchange parameters for WFD communication. Subsequently, the communication device and the other device perform the remaining wireless connection processing and IP connection processing based on the exchanged parameters. Note that in the parameter exchange phase, parameters related to the security of the wireless LAN (for example, information for encrypted communication) are automatically exchanged by using, for example, Wi-Fi Protected Setup. As parameters, for example, SSID, encryption key, encryption scheme, authentication key, authentication scheme, etc., which are identification information of the wireless network, are included.
[0064] Next, the infrastructure mode will be described. Fig. 9 1 is a sequence diagram showing an example of a process of wireless connection processing in infrastructure mode. In infrastructure mode, a communication device creates a network, connects to an access point (AP) for controlling the network, and communicates with a counterpart device via the AP. For example, the mobile communication device 200 and the MFP 300 are connected to the access point 400 and communicate with each other via the access point 400.
[0065] In the infrastructure mode, each communication device searches for an AP by a search request command 901 (search request command 903). The AP responds by sending a search response 902 (search response 904) to the received search request command. Next, when the communication device finds the AP, the remaining wireless connection processing (establishment of a wireless connection, etc.) and IP connection processing (allocation of an IP address, etc.) are performed between the communication device and the AP. Note that since it is sufficient to use commands and parameters defined by the Wi-Fi standard or the IEEE 802.11 standard as the commands and parameters that are sent / received to establish a wireless connection between the communication device and the AP, their description will be omitted.
[0066] (Channel determination process for infrastructure mode and P2P mode)
[0067] In the case of wireless communication by performing infrastructure mode and P2P mode in parallel, the communication device uses the channel provided by the AP in the infrastructure mode as a common channel for the two modes. Therefore, wireless communication using these two modes can be stably maintained in the communication device. A mode that can execute multiple communication modes in parallel (simultaneously) in this way is called a simultaneous operation mode. A specific frequency band (wireless channel) is used for wireless connection in infrastructure mode.
[0068] In infrastructure mode, a station (STA) confirms whether it can wirelessly connect to an AP in a channel that the station can use. Then, the STA specifies a channel to receive a response from the AP and determines to use the channel as a subsequent use channel. That is, the AP sends a response command to the STA only when the request command from the STA reaches a channel that the AP can use.
[0069] In a wireless communication system formed by an AP and a STA, a device operating as an AP sends a beacon signal, and a device operating as a STA sends a search request command to the AP upon receiving the beacon signal. The search request command is, for example, a probe request frame. The AP will not send a response command for a search request command sent on a channel other than a channel that the AP itself can use. Here, the response command is, for example, a probe response frame.
[0070] For example, if the channel that the access point 400 can use is the nth channel, the access point 400 does not send a search response command for the search request command sent using the first channel. If the MFP 300 determines that no response is received from the access point 400 due to a timeout or the like after sending the search request command using the first channel, the MFP 300 then sends a search request command using the second channel. The MFP 300 repeats the above test by increasing the channel number. In the case where the MFP 300 sends the search request command using the nth channel, if the channel is in an unused state, the access point 400 sends a search response command.
[0071] In the infrastructure mode, the nth channel on which the search response command is returned from the access point in the above-described manner is used in subsequent wireless communication operations.
[0072] A specific frequency band (wireless channel) is used for wireless connection in P2P mode. At this time, in order to stably maintain wireless communication through infrastructure mode and P2P mode, the channel receiving a response from the AP in infrastructure mode is obtained and set as a common channel for the GO in P2P mode.
[0073] In the infrastructure mode and the P2P mode, channels defined by the Wi-Fi standard are used respectively. In the Wi-Fi standard, 1 to 13 channels can be used as channels of the 2.4 GHz band, depending on the country or region. In this embodiment, a description is given assuming that the range of available channels is 1 to 13 channels. However, the present invention is not limited to this. That is, although the number of channels may increase in different frequency bands, or the channels may be limited to 1 to 11 channels even in the same frequency band according to the frequency band regulations of each country or region, the method according to this embodiment can be used in the actual available channel range. For example, in the IEEE 802.11a wireless LAN standard, a frequency band of 5 GHz is used. Therefore, it is well known that a range of about 36 to 140 channels can be used. Note that for communication devices using two frequency bands 2.4 GHz (1 to 13) and 5 GHz (36 to 140), this means that the number of channels used to send search request commands to the AP will increase.
[0074] The MFP 300 can perform communication via the access point 400 by enabling communication in the infrastructure mode in response to a user operation accepted via the operation display unit 305. The MFP 300 changes to a state in which cloud communication can be performed with a counterpart device such as a desired content server on the Internet by performing communication in the infrastructure mode (e.g., via the access point). That is, although the MFP 300 can communicate with the mobile communication device 200 via the access point by communication in the infrastructure mode, the MFP also changes to a state in which communication can be performed with a device other than the mobile communication device 200.
[0075] In addition, by enabling the communication of the WFD mode in response to the user operation accepted via the operation display unit 305, the MFP 300 can perform the communication of the WFD with the counterpart device such as the mobile communication device 200. Here, the counterpart device in the infrastructure mode and the counterpart device in the WFD mode can be the same device or can be different devices. Note that in a state where the communication of the infrastructure mode and the WFD mode have been enabled together, the MFP 300 can perform the communication of these two modes in parallel (simultaneously). It is also noted that the MFP 300 can set the communication of the infrastructure mode or the communication of the WFD mode to be disabled in response to the user operation accepted via the operation display unit 305.
[0076] As described above, the MFP 300 can make settings to enable / disable communication, thereby realizing operations of the above-described “infrastructure mode”, “WFD mode”, and “simultaneous operation mode” that allows communication by performing both modes in parallel.
[0077] Note that these operations of the MFP 300 can be performed by the mobile communication device 200. That is, the mobile communication device 200 can operate in one of the infrastructure mode, the WFD mode, and the simultaneous operation mode. Therefore, the mobile communication device 200 can, for example, browse web pages via the Internet in the infrastructure mode while communicating with the MFP 300 in the WFD mode. In addition, in some cases, the mobile communication device 200 can communicate with the MFP 300 by using both the WFD mode and the infrastructure mode.
[0078] (Processing process)
[0079] The following will describe the process of error control processing in a communication device that can perform multiple modes of communication (such as communication in infrastructure mode and communication in WFD mode, etc.) in parallel. Note that the following will describe a situation where a WPS (Wi-Fi Protected Setup) error occurs in MFP 300 due to receiving a non-standard packet from a counterpart device when a WFD connection is set. However, the error is not limited to this. For example, the same processing can be performed for errors related to other information exchanged between the communication device and the counterpart device, or for errors caused by the continuation of a predetermined time period during which the communication device cannot receive a beacon due to a crowded communication environment. In addition, the same processing can be performed in the case where an error occurs due to a difference between the communication state recognized by the counterpart device and the communication state of the communication device, wherein the difference is caused by a time period during which normal communication cannot be performed due to a temporary lack of memory in the communication device.
[0080] Fig.10 The process of error control processing performed by MFP 300 is shown. In the case where an error related to communication in a given mode is detected, MFP 300 determines whether the current operation mode is a simultaneous communication mode (step S1001). The simultaneous communication mode is a mode that allows communication in infrastructure mode and communication in WFD mode to be performed simultaneously (in parallel). If it is determined that the current operation mode is "simultaneous communication mode", MFP 300 only stops the communication of WFD (step S1002), displays the occurrence of the error via the operation display unit 305, and notifies the user of the error (step S1003). Here, for example, a notification message such as "Since an error occurred in the communication of WFD, the communication of WFD has been stopped" can be displayed. At this time, since the communication in the infrastructure mode is maintained, the user can cause MFP 300 to perform printing or scanning, for example, through cloud communication or via an access point and instructions from a terminal device such as a PC.
[0081] In response to accepting a user operation to restart the communication of WFD on the operation display unit 305, the MFP 300 can restart the communication of the stopped WFD. Here, the MFP 300 can be set so that the communication of the WFD will not be automatically restarted. Therefore, the MFP 300 can, for example, prevent the following state: during printing via the communication of the infrastructure mode, the printing is canceled due to the packet loss caused by the restart. If the ROM or RAM is limited, the MFP 300 can have a configuration that uses a common socket for the communication of the infrastructure mode and the communication of the WFD so as to realize the "simultaneous operation mode" with sufficiently few resources. In this case, if the MFP 300 restarts the communication of the WFD, it will not only affect the communication of the WFD, but also the communication of the infrastructure mode, and may fall into a state where the socket communication cannot be performed temporarily. As a result, the packet that the MFP 300 should have received during this period is lost, and problems such as the printing being canceled or the device newly connected to the LAN not detecting the MFP 300 may occur. Therefore, instead of automatically restarting the communication of the WFD, the MFD 300 may restart the communication of the WFD after notifying the user that the communication of the WFD has stopped and recognizing the user's determination by operating the display unit 305 .
[0082] On the other hand, if it is determined in step S1001 that the current operation mode is the WFD mode, the MFP 300 restarts the communication of the WFD (step S1004). That is, if the MFP 300 is currently performing only the communication of the WFD, it is obvious that the communication of other communication modes (such as the infrastructure mode) will not be affected, and thus the communication of the WFD can be automatically restarted. Note that in this restart, the execution according to Figure 8 Subsequently, IP connection, protocol communication (eg, HTTP communication), etc. are performed. In this case, user convenience can be improved by setting the MFP 300 to perform control for returning to a state where automatic communication is possible after an error occurs.
[0083] In the above example, the occurrence of errors related to the communication of WFD has been illustrated. However, it is also possible to consider a case where both the communication of the infrastructure mode and the WFD mode cannot be in the "simultaneous operation mode" together. Fig.11 To describe the process when this situation is assumed.
[0084] First, upon detecting that an error related to communication has occurred, the MFP 300 determines the current operation mode (step S1101). If the operation mode is the "simultaneous operation mode", the MFP then determines the type of error (step S1102). Here, if an error related to communication only with the WFD is determined, the MFP 300 stops the communication with the WFD (step S1103) and continues with communication with the WFD. Fig.10 In the same manner as in steps S1002 and S1003, the MFP 300 displays on the operation display unit 305 that an error has occurred (step S1104). On the other hand, in step S1102, if it is determined that an error is related to both the communication in the infrastructure mode and the communication in the WFD, the MFP 300 restarts the communication in the infrastructure mode and the communication in the WFD (step S1105). That is, the MFP 300 returns to these communications by restarting. Note that in this restart, the execution Figure 8 and 9 Subsequently, IP connection, protocol communication (eg, HTTP communication), etc. are performed. Note that if it is determined in step S1101 that the current operation mode is the WFD mode, the MFP 300 connects to the WFD mode. Fig.10 The WFD communication is restarted in the same manner as step S1005 (step S1106).
[0085] Note that “an error related to both the communication in the infrastructure mode and the communication in the WFD” may be, for example, an internal error caused by temporary insufficient memory of the WLAN unit 616. Temporary insufficient memory may be caused when communication with an unexpectedly high load continues to occur or when a low-speed clock is supplied to the CPU 602.
[0086] In addition, "errors related to both communication in infrastructure mode and communication in WFD" are not necessarily errors that occur at the same time. That is, errors related to communication in infrastructure mode and errors related to communication in WFD may occur at separate timings. For example, assume the following situation: communication in WFD stops in the above manner due to an error related to communication in WFD (step S1103), and then an error related to communication in infrastructure mode occurs. In this case, communication in infrastructure mode and communication in WFD may be restarted (step S1105).
[0087] The present invention is not limited to the above-described embodiments. For example, if an error has occurred that is related to communication in infrastructure mode, only communication in infrastructure mode may be stopped. In this case, there is no need to display an error. If an error related to communication in infrastructure mode has occurred, MFP 300 may restart communication in infrastructure mode. In addition, the P2P communication mode is not necessarily a WFD mode but may be a software AP mode. In addition, the settings for enabling / disabling each communication mode are not limited to operations from the operation display unit 305. For example, through communication via a USB connection, a terminal such as a PC may use an application to perform the setting.
[0088] Note that, as described above, the processing described in this embodiment can be performed by the mobile communication device 200. That is, if it is a communication device that can perform communication in the infrastructure mode and the P2P mode, the above processing can be performed. In addition, although the infrastructure mode and the P2P mode have been described as examples in the above embodiments, the present invention is not limited to these examples. That is, the above processing can be applied to a communication device that can communicate simultaneously in multiple communication modes.
[0089] According to the present invention, in a communication device that can perform a plurality of communications simultaneously, if an error associated with one communication occurs, the error can be prevented from affecting other communications.
[0090] Other embodiments
[0091] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0092] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. A communication device, comprising: a communication unit for concurrently performing infrastructure communication for communicating with a counterpart device via an external access point and peer-to-peer communication for communicating with a counterpart device without any external access point; as well as a control unit, configured to control the infrastructure communication and the peer communication of the communication unit, wherein, in a state where the infrastructure communication and the peer communication are performed in parallel, when an error related to the peer communication occurs during a period when an error related to the infrastructure communication does not occur, the control unit controls the communication unit to stop the peer communication without automatically restarting it, and When an error related to the infrastructure communication occurs while the infrastructure communication and the peer communication are being performed in parallel, the control unit controls the communication unit to automatically restart the infrastructure communication.
2. The communication device according to claim 1, wherein: When an error related to the peer-to-peer communication occurs in a state where the infrastructure communication is not being performed but the peer-to-peer communication is being performed, the control unit controls the communication unit to automatically restart the peer-to-peer communication.
3. The communication device according to claim 1, wherein: When an error related to the infrastructure communication and the peer communication occurs while the infrastructure communication and the peer communication are being performed in parallel, the control unit controls the communication unit to automatically restart the infrastructure communication and the peer communication.
4. The communication device according to claim 1, wherein: In a state where the infrastructure communication and the peer communication are performed in parallel, when an error related to the peer communication and an error related to the infrastructure communication occur together, the control unit controls the communication unit to automatically restart the infrastructure communication and the peer communication.
5. The communication device according to claim 1, wherein: In a state where the infrastructure communication and the peer communication are performed in parallel, if an error related to the infrastructure communication occurs while the peer communication is stopped, the control unit controls the communication unit to automatically restart the infrastructure communication and the peer communication.
6. The communication device according to claim 1, wherein: Also included is a display unit for displaying that an error has occurred without automatically restarting the peer communication.
7. The communication device according to claim 1, wherein: The method further includes: an accepting unit configured to accept an operation of restarting the peer communication from a user when the peer communication is not automatically restarted.
8. The communication device according to claim 1, wherein: The infrastructure communication and the peer communication are wireless communications, and the infrastructure communication is performed via a wireless LAN conforming to the IEEE 802.11 family of standards.
9. The communication device according to claim 8, wherein: A channel to be used for the peer-to-peer communication is determined based on a channel used for the infrastructure communication.
10. The communication device according to claim 9, wherein: The peer-to-peer communication includes at least one of a Wi-Fi direct mode and a software access point mode.
11. The communication device according to any one of claims 1 to 10, wherein: The device further includes at least one of the following units: a printing unit capable of printing; a scanning unit capable of scanning a document; a fax unit capable of sending data by fax; and a telephone unit capable of being used for voice communication.
12. The communication device according to any one of claims 1 to 10, wherein: The communication device is a mobile communication device.
13. A control method for a communication device, the communication device comprising a communication unit for concurrently performing infrastructure communication for communicating with a counterpart device via an external access point and peer communication for communicating with the counterpart device without communicating with any external access point, the control method comprising: When an error related to the peer communication occurs while the infrastructure communication and the peer communication are being performed in parallel, controlling the communication unit to stop the peer communication without automatically restarting it; as well as When an error related to the infrastructure communication occurs during a period in which an error related to the peer communication does not occur while the infrastructure communication and the peer communication are being performed in parallel, the communication unit is controlled to automatically restart the infrastructure communication.
14. A computer-readable storage medium for storing a computer program for causing a computer included in a communication device including a communication unit for concurrently performing infrastructure communication for communicating with a counterpart device via an external access point and peer communication for communicating with a counterpart device without communicating with any external access point to perform the following operations: When an error related to the peer communication occurs while the infrastructure communication and the peer communication are being performed in parallel, controlling the communication unit to stop the peer communication without automatically restarting it; and When an error related to the infrastructure communication occurs during a period in which an error related to the peer communication does not occur while the infrastructure communication and the peer communication are being performed in parallel, the communication unit is controlled to automatically restart the infrastructure communication.
15. A communication device, comprising: a communication unit for performing infrastructure communications with an access point and peer-to-peer communications compliant with Wi-Fi Direct; as well as Control unit for the following operations: In a state where the infrastructure communication and the peer communication are performed in parallel, if an error related to the peer communication occurs during a period when no error related to the infrastructure communication occurs, stopping the peer communication without automatically restarting; as well as When an error related to the infrastructure communication occurs while the communication unit is performing the infrastructure communication and the peer communication in parallel, the infrastructure communication is automatically restarted.
Citation Information
Patent Citations
Communication device and communication method
JP2012129898A
Terminal Apparatus and Function Executing Apparatus
US20140240774A1
Communication method and device
US20140342670A1
Radio link failure handling for dual connectivity
US20150117183A1
Apparatus, system and method of peer to peer communication
US20160128113A1
