WO2017126311A1 - Communication device, communication method and program - Google Patents

Communication device, communication method and program Download PDF

Info

Publication number
WO2017126311A1
WO2017126311A1 PCT/JP2016/089089 JP2016089089W WO2017126311A1 WO 2017126311 A1 WO2017126311 A1 WO 2017126311A1 JP 2016089089 W JP2016089089 W JP 2016089089W WO 2017126311 A1 WO2017126311 A1 WO 2017126311A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
sharing
direct
wireless connection
communication parameter
Prior art date
Application number
PCT/JP2016/089089
Other languages
French (fr)
Japanese (ja)
Inventor
俊文 濱地
Original Assignee
キヤノン株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2016216633A external-priority patent/JP6827773B2/en
Application filed by キヤノン株式会社 filed Critical キヤノン株式会社
Priority to CN201680079178.7A priority Critical patent/CN108476542B/en
Publication of WO2017126311A1 publication Critical patent/WO2017126311A1/en
Priority to US16/036,515 priority patent/US10966261B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/16Interfaces between hierarchically similar devices
    • H04W92/18Interfaces between hierarchically similar devices between terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/77Graphical identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present invention relates to communication technology.
  • Patent Document 1 In order to connect an electronic device to a wireless network, it is necessary to set various communication parameters such as encryption method, encryption key, authentication method, and authentication key. As a technique for facilitating the setting of these communication parameters, there is Patent Document 1.
  • an electronic device displays a QR code (registered trademark, hereinafter omitted) indicating communication parameters. Then, the mobile terminal reads this QR code by photographing, and sets the read communication parameter in the access point.
  • QR code registered trademark, hereinafter omitted
  • Wi-Fi Direct registered trademark, hereinafter abbreviated
  • Wi-Fi Direct there are two roles: a group owner that operates as a base station and a client that operates as a slave station, and each electronic device determines a role used for communication.
  • Wi-Fi Direct it is stipulated that communication parameters are shared between devices using WPS (Wi-Fi Protected Setup).
  • the communication device In the communication parameter sharing process executed based on information acquired from a captured image, which is predetermined information received from a communication partner device to establish a wireless connection by Wi-Fi Direct, the communication partner device Determining means for determining whether or not the communication device operates as a role of capturing the image, based on the predetermined information indicating whether or not the communication device is operable as a role of capturing the image; A first sharing means for executing the communication parameter sharing process with the communication partner device in a role according to the determination by the determination means, and sharing a communication parameter for establishing a wireless connection; Have The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
  • the communication apparatus of another aspect is A first sharing means for sharing a communication parameter for establishing a wireless connection with a communication partner device by a communication parameter sharing process executed based on information acquired from a captured image; A second sharing means for executing communication according to a protocol defined by WPS (Wi-Fi Protected Setup) and sharing a communication parameter for establishing a wireless connection with a communication partner device; Determining means for determining whether to share communication parameters by the first sharing means or to share communication parameters by the second sharing means based on information communicated to establish a wireless connection by Wi-Fi Direct; Have The communication apparatus establishes a wireless connection by Wi-Fi Direct with a communication partner apparatus based on the communication parameter shared by the first sharing means or the second sharing means determined by the determination means. And
  • the communication apparatus of another aspect is Whether or not the communication partner apparatus can execute the communication parameter sharing process executed based on the photographed image based on information received from the communication partner apparatus in order to establish a wireless connection by Wi-Fi Direct.
  • First sharing means to The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
  • a method using information acquired from an image when sharing communication parameters is applied in Wi-Fi Direct.
  • FIG. 3 shows the communication system of this embodiment.
  • the communication system shown in FIG. 3 includes a camera 32 and a smartphone 33.
  • the wireless network 31 is a wireless LAN network formed by the camera 32 or the smartphone 33 based on Wi-Fi Direct.
  • the apparatus in the communication system according to the present embodiment is described as a camera and a smartphone, other apparatuses such as a printer, a mobile phone, a PC, a video camera, a smart watch, and a PDA may be used.
  • Wi-Fi Direct is a communication standard defined by Wi-Fi Alliance.
  • Wi-Fi Direct a process for searching for a communication partner, a method for determining mutual roles with the communication partner, and the like are defined, and a connection sequence for wireless LAN communication is defined.
  • Wi-Fi Direct a communication device that operates as a wireless LAN access point is referred to as a P2P group owner (hereinafter referred to as GO), and a communication device that operates as a wireless LAN station is referred to as a P2P client (hereinafter referred to as CL). That is, in Wi-Fi Direct, GO operates as a base station and CL operates as a slave station. These roles are determined by the GO Negotiation protocol. The GO Negotiation protocol is specified in Wi-Fi Direct. In Wi-Fi Direct, multiple roles are defined in this way. Wi-Fi Direct is a connection process for establishing a wireless connection including a process of determining a role in communication among devices among them.
  • a network formed by GO is referred to as a P2P group.
  • the network may be described as a P2P group. Both are described with the same meaning.
  • GO, CL, and a group of communication devices whose roles have not been determined are collectively referred to as P2P devices.
  • the communication device whose role has not been determined can become a CL and participate in the wireless network, or can become a GO and build a wireless network.
  • the communication parameters include various wireless communication parameters for performing wireless communication in accordance with the IEEE 802.11 standard. That is, the communication parameters include wireless communication parameters necessary for performing wireless LAN communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, a network key, and an authentication key. Further, a MAC address, an IP address for performing communication in the IP layer, and the like may be included.
  • reference numeral 101 denotes the entire apparatus.
  • a control unit 102 controls the entire apparatus by executing a control program stored in the storage unit 103.
  • the control unit 102 is configured by, for example, a CPU (Central Processing Unit).
  • a storage unit 103 stores various information such as a control program executed by the control unit 102, image data, and communication parameters. Various operations described later are performed by the control unit 102 executing a control program stored in the storage unit 103.
  • the storage unit 103 is configured by a storage medium such as an HDD, a flash memory, a ROM, a RAM, or a removable SD card.
  • the wireless unit 104 is a wireless unit for performing wireless LAN communication conforming to the IEEE802.11 series.
  • the wireless unit 104 is configured by a chip that performs wireless communication.
  • Reference numeral 105 denotes a display unit that performs various displays, and has a function capable of outputting visually recognizable information such as an LCD or LED, or outputting sound such as a speaker.
  • the display unit 105 has a function of outputting at least one of visual information and sound information.
  • the display unit 105 includes a VRAM (Video RAM) that holds image data corresponding to the visual information to be displayed.
  • the display unit 105 performs display control for continuously displaying the image data stored in the VRAM.
  • Reference numeral 106 denotes an image capturing unit that includes an image sensor, a lens, and the like, and captures photographs and videos.
  • the imaging unit 106 performs reading of code information such as a one-dimensional code such as a barcode and a two-dimensional code such as a CP code and a QR code.
  • Reference numeral 109 denotes an input unit for the user to perform various inputs and operate the communication apparatus 101.
  • the input unit 109 stores a flag corresponding to the input in a memory such as the storage unit 103.
  • FIG. 2 is a block diagram showing an example of the configuration of a software function block that executes a communication control function described later.
  • the functional blocks of each device are stored as programs in the storage unit 103, and the functions are implemented by the control unit 102 executing the programs.
  • the control unit 102 implements each function by performing control of each hardware and calculation and processing of information according to a control program.
  • a part or all of the functional blocks may be implemented as hardware.
  • a part or all of each functional block is configured by, for example, ASIC (Application Specific Integrated Circuit).
  • the communication parameter control unit 202 executes communication parameter sharing processing for sharing communication parameters between devices.
  • the providing device provides communication parameters for wireless communication with the receiving device.
  • the communication parameters include wireless communication parameters necessary for performing wireless LAN communication such as SSID (Service Set Identifier) as a network identifier, an encryption method, an encryption key, a network key, an authentication method, and an authentication key. . Further, it may include a MAC address, a passphrase, an IP address for performing communication at the IP layer, information necessary for a higher level service, and the like.
  • the communication parameter sharing process executed by the communication parameter control unit 202 uses WPS (Wi-Fi Protected Setup) defined by Wi-Fi Alliance.
  • WPS a protocol for exchanging communication parameters called a registration protocol
  • the communication parameter control unit 202 executes communication parameter sharing processing using the registration protocol.
  • the communication parameter sharing process executed by the registration protocol defined by WPS may be simply referred to as WPS.
  • the communication parameter sharing process executed by the communication parameter control unit 202 is a code information method performed using information acquired from an image obtained by photographing code information.
  • the communication parameter control unit 202 executes communication parameter sharing processing in connection processing in Wi-Fi Direct by selecting either WPS or code information method.
  • the communication parameter sharing process executed by the communication parameter control unit 202 may be a method in which communication parameters are securely transferred using a public key encryption method.
  • the communication parameter control unit 202 performs communication parameter setting according to a communication parameter setting application for setting communication parameters stored in the storage unit 103.
  • the code information reading control unit 203 analyzes the image photographed by the photographing unit 106 and acquires encoded information.
  • the code information reading control unit 203 performs analysis processing of code information such as a one-dimensional code such as a bar code and a two-dimensional code such as a CP code and a QR code.
  • the code information generation control unit 204 generates code information such as a one-dimensional code such as a bar code, and a two-dimensional code such as a CP code and a QR code, and displays the generated code information on the display unit 105. To implement.
  • the code information generation control unit 204 displays code information such as a QR code obtained by encoding information necessary for communication parameter setting in accordance with a communication parameter setting application for setting communication parameters stored in the storage unit 103.
  • the application layer here refers to a service providing layer in an upper layer higher than the fifth layer in the OSI reference model. That is, the service control unit 205 executes print processing, image streaming processing, file transfer processing, and the like using wireless communication by the wireless unit 104.
  • 206 is a packet receiving unit
  • 207 is a packet transmitting unit, which controls transmission / reception of all packets including upper layer communication protocols.
  • the packet receiving unit 206 and the packet transmitting unit 207 control the wireless unit 104 in order to transmit and receive packets conforming to the IEEE 802.11 standard with the opposite device.
  • Reference numeral 208 is a station function control unit that provides a STA function that operates as a station (STA) in the infrastructure mode defined in the IEEE 802.11 standard.
  • the STA function control unit 208 performs authentication / encryption processing and the like when operating as an STA.
  • Reference numeral 209 denotes an AP function control unit that provides an AP function that operates as an access point (AP) in an infrastructure mode defined in the IEEE 802.11 standard.
  • the AP function control unit 209 forms a wireless network, and performs authentication / encryption processing for the STA, management of the STA, and the like.
  • Reference numeral 210 denotes a data storage unit that controls writing and reading of software itself, communication parameters, and barcode information to the storage unit 103.
  • the Wi-Fi Direct control unit 211 is a Wi-Fi Direct control unit, which performs various processes based on the Wi-Fi Direct described above.
  • the Wi-Fi Direct control unit 211 functions as an AP by the AP function control unit 209 when operating as a GO, and functions as an STA by the STA function control unit 208 when operating as a CL.
  • the flowchart shown in FIG. 4 shows the flow of processing performed when the control unit 102 reads out and executes a computer program stored in the storage unit 103. Note that part or all of the steps shown in the flowchart shown in FIG. 4 may be realized by hardware such as an ASIC.
  • the smart phone 33 although demonstrated as a process of the camera 32, the smart phone 33 shall also be able to perform the same process.
  • the camera 32 is set to the communication parameter setting mode by a user operation on the input unit 109 and performs device search processing (P2P Discovery) defined by Wi-Fi Direct (S401).
  • P2P Discovery device search processing
  • Wi-Fi Direct Wi-Fi Direct
  • S401 device search processing
  • a partner device smarttphone 33 in this embodiment
  • a role determination process defined by the partner device and Wi-Fi Direct is performed (S402).
  • negotiation with the counterpart device is performed to determine whether to operate as GO or CL.
  • a GO Negotiation Request frame, a GO Negotiation Response frame, and a GO Negotiation Configuration frame are exchanged between devices.
  • the P2P IE that is an Information Element (IE) indicating Wi-Fi Direct and the WSC IE that is an IE indicating WPS are assigned to these frames.
  • IE Information Element
  • WSC IE that is an IE indicating WPS
  • the camera 32 is compatible with the communication parameter sharing process of the code information method according to the presence or absence of the IE indicating that it is compatible with the code information method in the information received from the partner device in Wi-Fi Direct. It is determined whether or not (S403).
  • the IE is given a value indicating the presence or absence of a shooting function.
  • the camera 32 determines whether or not the partner device can play a role of photographing code information (referred to as a management device) based on information indicating the presence or absence of a predetermined IE photographing function included in the information received from the partner device. Is possible.
  • the IE indicating that the code information system is supported may be assigned to other frames as well as frames exchanged in the role determination process.
  • the IE indicating that the code information system is supported may be added to, for example, a Probe Request / Response frame and a Provision Discovery Request / Response frame. Further, for example, an IE indicating that the code information system is supported may be added to a Service Discovery Query / Response frame, a P2P invitation Request / Response frame, or the like.
  • an IE indicating that the frame corresponds to the code information method may be added to a frame exchanged in the device search process. Further, information indicating that the P2P IE is compatible with the code information system and information indicating whether or not the management apparatus can be operated may be provided.
  • the camera 32 may allow the user to select whether or not to execute code information type communication parameter sharing processing. If the camera 32 is instructed to execute the communication parameter sharing process of the code information method via the input in the input unit 109, the process may proceed to S404. In addition, when the camera 32 is instructed to execute the communication parameter sharing process using WPS via the input in the input unit 109, the process may proceed to S411.
  • the camera 32 determines whether or not to operate as a management apparatus. As a determination method, as shown in the table of FIG. For example, when the camera 32 corresponds to the shooting function and the counterpart device does not support the shooting function, the camera 32 determines to operate as a management device. Further, for example, when the camera 32 does not support the shooting function and the counterpart device supports the shooting function, the camera 32 does not operate as a management device and serves as a device (referred to as a display device) that displays code information. Decide to work.
  • the camera 32 does not support the shooting function and the counterpart device does not support the shooting function, it is assumed that both devices are devices that only support the display device, and the communication parameter of the code information method is used. It is determined that the WPS is executed without executing the sharing method.
  • the camera 32 determines whether or not to operate as a management device by negotiation with the counterpart device.
  • the negotiation with the partner device may be performed based on, for example, an Intent value used in the role determination process. For example, a device having a large Intent value may be determined to operate as a management device.
  • the camera 32 may determine to operate as GO regardless of the magnitude of the Intent value. Further, when it is determined that the camera 32 operates as a management device based on information communicated in the device search process, the camera 32 may negotiate with the Intent value set to the maximum value so as to operate as a GO in the role determination process. . In addition, when it is determined to operate as a display device based on information communicated in the device search process, the negotiation may be performed with the Intent value set to the minimum value so that it operates as a CL in the role determination process. In addition, when the camera 32 determines to execute the code information method and operate as a management device based on information communicated in the device search process, the camera 32 determines to operate as GO by omitting the role determination process. May be.
  • the camera 32 activates the photographing unit 106 (S405).
  • the camera 32 may perform display on the display unit 105 that prompts the user to photograph code information of the partner apparatus. Further, the camera 32 starts the operation as GO.
  • the camera 32 executes a communication parameter sharing process based on information acquired from the code information image obtained by capturing and provides the communication parameter to the partner apparatus.
  • the camera 32 may transmit information indicating that the code information has been captured to the device indicated by the identifier included in the code information by unicast. Further, the information indicating that the code information has been photographed may be information included in the photographed code information. Further, the information indicating that the code information has been photographed may be a hash value of information included in the photographed code information.
  • communication parameters encrypted based on information included in the code information may be communicated. When the communication parameter sharing processing is completed, connection processing with the counterpart device is performed (S407).
  • the display unit 105 displays code information in which information necessary for setting communication parameters is embedded (S408).
  • the information necessary for setting the communication parameters is, for example, encrypted information for encrypting the communication parameters, a device identifier such as a MAC address or UUID.
  • the camera 32 executes a communication parameter sharing process and receives the communication parameter from the partner apparatus (S409).
  • the information indicating that the displayed code information is photographed may be information included in the displayed code information.
  • the information indicating that the displayed code information has been photographed may be a hash value of information included in the displayed code information.
  • the received communication parameter may be encrypted based on information included in the code information displayed by the camera 32.
  • the display unit 105 displays a screen for the user to approve the connection with the counterpart device using Wi-Fi Direct (S411). Waiting for the user to approve (S413), and if it is determined that the user has approved, the communication parameter sharing process is performed by communication according to the registration protocol defined in WPS (S413). When the parameter sharing process is completed, the connection process with the partner apparatus is executed (S414).
  • FIG. 5 shows a connection sequence by Wi-Fi Direct using code information between each communication device with the camera 32 and the smartphone 33.
  • both the camera 32 and the smartphone 33 correspond to the communication parameter sharing process of the code information method, and have both the photographing functions.
  • the smart phone has a larger Intent value used for the role determination process.
  • the camera 32 and the smartphone 33 perform device search processing (P2P Discovery) defined by Wi-Fi Direct (F501).
  • P2P Discovery device search processing
  • Wi-Fi Direct Wi-Fi Direct
  • F502 a role determination process defined by Wi-Fi Direct
  • the camera 32 and the smartphone 33 determine that both correspond to code parameter communication parameter sharing.
  • both the camera 32 and the smartphone 33 also have a shooting function, it is determined that communication parameter sharing using code information can be performed.
  • the camera 32 determines that the smartphone 33 becomes a management device based on the Intent value used in the role determination process, and displays code information (F503).
  • the smartphone 33 determines that it becomes a management device based on the Intent value, and activates the photographing unit to prompt the user to photograph the code information displayed by the camera 32 (F504).
  • the smartphone 33 captures the code information (F505), a communication parameter setting request including information indicating that the code information is captured is transmitted to the camera 32 identified by the identification information included in the captured code information (F506). ).
  • the camera 32 executes code information communication parameter sharing processing with the smartphone 33 ( F507).
  • code information communication parameter sharing processing communication parameters encrypted based on the information included in the displayed code information may be communicated.
  • the smartphone 33 operates as GO, and the camera 32 operates as CL.
  • the camera 32 connects to the smartphone 33 based on the communication parameter acquired by the communication parameter sharing process (F508).
  • FIG. 6 shows a connection sequence by Wi-Fi Direct using WPS between the communication devices with the camera 32 and the smartphone 33.
  • the smartphone 33 supports code information type communication parameter sharing processing, and the camera 32 does not support it.
  • the smart phone has a larger Intent value used for the role determination process.
  • F601 and F602 are the same as F501 and F502 and will not be described.
  • the camera 32 and the smartphone 33 determine that the camera 32 does not support code parameter communication parameter sharing and determine to execute WPS. Further, the camera 32 and the smartphone 33 determine the role of GO or CL based on the Intent value.
  • the camera 32 and the smartphone 33 display a screen for permitting or approving connection by Wi-Fi Direct (F603, F604).
  • the camera 32 and the smartphone 33 detect that the user has been approved by pressing a button or the like, the camera 32 and the smartphone 33 perform communication parameter sharing processing by communication according to a registration protocol defined in WPS (F605). Since F606 is the same as F506, description thereof is omitted.
  • Wi-Fi Direct it is possible to apply a method that uses information acquired from an image when sharing communication parameters in Wi-Fi Direct.
  • Wi-Fi Direct the communication parameter sharing process supported by the partner apparatus can be confirmed, and the communication parameter sharing process to be executed can be selected from among a plurality of methods.
  • the device when performing communication parameter sharing processing using code information shooting, the device operates as a management device for shooting or as a display device for displaying an image by negotiation between devices. Can be appropriately determined without duplication between apparatuses.
  • Wi-Fi Direct when communication parameter sharing processing using code information shooting is applied in Wi-Fi Direct, a device that can only execute conventional WPS can be connected by Wi-Fi Direct. it can. Therefore, even in an environment where a device that can execute communication parameter sharing processing using code information shooting and a device that can execute only conventional WPS are mixed, wireless connection between devices can be established by Wi-Fi Direct. User convenience is improved.
  • the flowchart shown in FIG. 8 shows the flow of processing performed when the control unit 102 reads and executes a computer program stored in the storage unit 103. Note that part or all of the steps shown in the flowchart shown in FIG. 8 may be realized by hardware such as ASIC.
  • the smart phone 33 shall also be able to perform the same process.
  • the camera 32 is set to the communication parameter setting mode by a user operation on the input unit 109 and performs device search processing (P2P Discovery) defined by Wi-Fi Direct (S801).
  • P2P Discovery device search processing defined by Wi-Fi Direct
  • FIG. 10 is a diagram illustrating values of DeviceCapability Bitmap of P2P Capability Attribute according to the present embodiment. If the value of bit 6 of DeviceCapability Bitmap is 1, it indicates that the code information system is supported. If the value of bit 6 is 0, it indicates that the device does not support the code information system.
  • FIG. 11 is a diagram illustrating an example of Configuration Methods values according to this embodiment. When the value of Configuration Methods Attribute is 0x1000, it indicates that it has a function of photographing code information.
  • Configuration Methods Attribute when the value of Configuration Methods Attribute is 0x8000, this indicates that it has a function of displaying code information.
  • the value of Configuration Methods Attribute can indicate that a value indicating each function is ORed to have a plurality of functions.
  • the camera 32 determines whether or not the code information method can be implemented with the partner device discovered by the device search process (S802). The determination as to whether or not it is feasible is made according to whether or not the own device and the partner device are compatible with the code information system and the presence or absence of a photographing function as shown in the table of FIG.
  • the camera 32 does not support the shooting function and the counterpart device does not support the shooting function, it is determined that the code information method is not possible, assuming that both devices are compatible only with the display device. .
  • the camera 32 displays an error screen (S811) and ends the process. Further, the camera 32 can display an error when only one partner device is found, and can continue processing with a partner device that can be performed when a plurality of partner devices are found.
  • the camera 32 performs a role determination process with the counterpart device (S803).
  • a role determination process Group Owner Negotiation
  • Wi-Fi Direct it is assumed that a role determination process (Group Owner Negotiation) defined by Wi-Fi Direct is performed.
  • the camera 32 performs the same processes as in S404 to S410 (S804 to S810).
  • FIG. 9 shows a connection sequence by Wi-Fi Direct using code information between each communication device with the camera 32 and the smartphone 33.
  • both the camera 32 and the smartphone 33 correspond to the communication parameter sharing process of the code information method, and have both the photographing functions.
  • the smart phone has a larger Intent value used for the role determination process.
  • the camera 32 and the smartphone 33 perform device search processing (P2P Discovery) defined by Wi-Fi Direct (F901). Through the device search process, the camera 32 and the smartphone 33 are in a state in which the code information method support and the presence / absence of the photographing function are mutually identified.
  • P2P Discovery device search processing
  • Wi-Fi Direct Wi-Fi Direct
  • the camera 32 and the smartphone 33 determine whether the code information method can be implemented, and perform error determination (F902, F903).
  • F902, F903 both are compatible with the code information system and have both photographing functions, so the processing is continued.
  • the camera 32 and the smartphone 33 perform the same processing as F503 to F509 (F904 to F910).
  • Persistent Group which is a mode in which communication parameters defined by Wi-Fi Direct can be reused, may be used.
  • a device operating as a GO may perform connection processing for forming a Persistent Group using invitation defined by Wi-Fi Direct.
  • wireless communication such as NFC or Bluetooth (registered trademark) may be used instead of photographing code information.
  • wireless communication such as IEEE802.11ad or TransferJet (registered trademark) may be used.
  • the code information is not limited to the code information displayed on the display unit, but may be code information pasted in the form of a seal or the like on the housing of the communication device. Further, the code information to be read may be affixed to a packaging such as an instruction manual or cardboard at the time of sales of the communication device.
  • the code information may be a one-dimensional code such as a barcode or another two-dimensional code.
  • the code information may be information in a format that can be read by the user, instead of information that can be read by a machine such as a QR code.
  • wireless communication media such as wireless USB, MBOA, Bluetooth (trademark), UWB, ZigBee, and NFC.
  • MBOA is an abbreviation for Multi Band OFDM Alliance.
  • UWB includes wireless USB, wireless 1394, WINET, and the like.
  • the present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program
  • This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

Abstract

In the present invention: a determination is made as to whether a communication device can operate in an image-capturing role on the basis of prescribed information that is received in order to establish a wireless connection by Wi-Fi Direct and indicates whether a communication partner device can operate in an image-capturing role in a sharing process to be executed on the basis of information acquired from the captured image; and a wireless connection is established by Wi-Fi Direct between the communication device and the communication partner device on the basis of communication parameters shared by the sharing process with the communication partner device in accordance with the determination.

Description

通信装置、通信方法及びプログラムCOMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
 本発明は、通信技術に関する。 The present invention relates to communication technology.
 近年、デジタルカメラ、プリンタ、携帯電話・スマートフォンなどの電子機器に無線通信機能を搭載し、これらの機器を無線ネットワークに接続して使用するケースが増えている。 In recent years, there are increasing cases in which electronic devices such as digital cameras, printers, mobile phones and smartphones are equipped with a wireless communication function, and these devices are connected to a wireless network.
 電子機器を無線ネットワークに接続するには、暗号方式、暗号鍵、認証方式、認証鍵等のさまざまな通信パラメータを設定する必要がある。これらの通信パラメータの設定を容易にする技術として、特許文献1がある。特許文献1では、電子機器が、通信パラメータを示すQRコード(登録商標、以下省略)を表示させる。そして、携帯端末が、このQRコードを撮影により読み取り、読み取った通信パラメータをアクセスポイントに設定させる。 In order to connect an electronic device to a wireless network, it is necessary to set various communication parameters such as encryption method, encryption key, authentication method, and authentication key. As a technique for facilitating the setting of these communication parameters, there is Patent Document 1. In Patent Document 1, an electronic device displays a QR code (registered trademark, hereinafter omitted) indicating communication parameters. Then, the mobile terminal reads this QR code by photographing, and sets the read communication parameter in the access point.
 また、電子機器同士を互いに直接接続するためにWi-Fi Allianceにて制定されたWi-Fi Direct(登録商標、以下省略)という接続処理が標準規格として規定されている。Wi-Fi Directでは、基地局として動作するグループオーナーと子局として動作するクライアントとの二つの役割があり、各電子機器が通信の際に用いる役割を決定する。また、Wi-Fi Directでは、WPS(Wi-Fi Protected Setup)を用いて装置間で通信パラメータを共有することが定められている。 In addition, a connection process called Wi-Fi Direct (registered trademark, hereinafter abbreviated) established by Wi-Fi Alliance for directly connecting electronic devices to each other is defined as a standard. In Wi-Fi Direct, there are two roles: a group owner that operates as a base station and a client that operates as a slave station, and each electronic device determines a role used for communication. In Wi-Fi Direct, it is stipulated that communication parameters are shared between devices using WPS (Wi-Fi Protected Setup).
特開2014-60623号公報JP 2014-60623 A
 上述の特許文献1のように、2次元コードのように多くの情報を符号化できるコード情報の撮影を用いて通信パラメータの設定をすることにより、ユーザによる煩雑な入力を低減できる。 As described in Patent Document 1 described above, by setting communication parameters by using code information that can encode a large amount of information such as a two-dimensional code, complicated input by the user can be reduced.
 しかしながら、Wi-Fi Directなどの装置間の接続技術において、特許文献1のように画像の撮影を用いて通信パラメータの共有を行う方式を適用することは考慮されていなかった。 However, in connection technology between devices such as Wi-Fi Direct, it has not been considered to apply a method of sharing communication parameters using image capturing as in Patent Document 1.
 通信装置は、
 Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される所定の情報であって、撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理において前記通信相手装置が前記画像を撮影する役割として動作可能か否かを示す前記所定の情報に基づいて、前記通信装置が前記画像を撮影する役割として動作するか否かを決定する決定手段と、
 前記決定手段による決定に従った役割で前記通信相手装置と前記通信パラメータ共有処理を実行し、無線接続を確立するための通信パラメータを共有する第1共有手段と、
を有し、
 前記通信装置は、前記第1共有手段により共有された通信パラメータに基づいて、前記通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする。
The communication device
In the communication parameter sharing process executed based on information acquired from a captured image, which is predetermined information received from a communication partner device to establish a wireless connection by Wi-Fi Direct, the communication partner device Determining means for determining whether or not the communication device operates as a role of capturing the image, based on the predetermined information indicating whether or not the communication device is operable as a role of capturing the image;
A first sharing means for executing the communication parameter sharing process with the communication partner device in a role according to the determination by the determination means, and sharing a communication parameter for establishing a wireless connection;
Have
The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
 また、他の態様の通信装置は、
 撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理により、無線接続を確立するための通信パラメータを通信相手装置と共有する第1共有手段と、
 WPS(Wi-Fi Protected Setup)で規定されたプロトコルに従った通信を実行し、無線接続を確立するための通信パラメータを通信相手装置と共有する第2共有手段と、
 Wi-Fi Directによって無線接続を確立するために通信される情報に基づいて、前記第1共有手段によって通信パラメータを共有するか前記第2共有手段によって通信パラメータを共有するかを判定する判定手段と、を有し、
 前記通信装置は、前記判定手段による判定された前記第1共有手段または前記第2共有手段によって共有された通信パラメータに基づいて、通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする。
Moreover, the communication apparatus of another aspect is
A first sharing means for sharing a communication parameter for establishing a wireless connection with a communication partner device by a communication parameter sharing process executed based on information acquired from a captured image;
A second sharing means for executing communication according to a protocol defined by WPS (Wi-Fi Protected Setup) and sharing a communication parameter for establishing a wireless connection with a communication partner device;
Determining means for determining whether to share communication parameters by the first sharing means or to share communication parameters by the second sharing means based on information communicated to establish a wireless connection by Wi-Fi Direct; Have
The communication apparatus establishes a wireless connection by Wi-Fi Direct with a communication partner apparatus based on the communication parameter shared by the first sharing means or the second sharing means determined by the determination means. And
 また、他の態様の通信装置は、
 撮影された画像に基づいて実行される通信パラメータ共有処理を、Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される情報に基づいて前記通信相手装置が実行可能か否かを判定する判定手段と、
 前記通信パラメータ共有処理を前記通信相手装置が実行可能であると前記判定手段により判定された場合、前記通信相手装置と前記通信パラメータ共有処理を実行し、無線接続を確立するための通信パラメータを共有する第1共有手段と、
 前記通信装置は、前記第1共有手段により共有された通信パラメータに基づいて、前記通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする。
Moreover, the communication apparatus of another aspect is
Whether or not the communication partner apparatus can execute the communication parameter sharing process executed based on the photographed image based on information received from the communication partner apparatus in order to establish a wireless connection by Wi-Fi Direct. Determination means for determining;
When the determination means determines that the communication partner device can execute the communication parameter sharing process, the communication parameter sharing process is executed with the communication partner device to share a communication parameter for establishing a wireless connection. First sharing means to
The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
通信装置の構成を示す図である。It is a figure which shows the structure of a communication apparatus. 通信装置のソフトウェア機能構成を示す図である。It is a figure which shows the software function structure of a communication apparatus. 通信システムの構成の一例を示す図である。It is a figure which shows an example of a structure of a communication system. カメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a camera. 通信装置間のシーケンスを示す図である。It is a figure which shows the sequence between communication apparatuses. 通信装置間のシーケンスを示す図である。It is a figure which shows the sequence between communication apparatuses. コード情報方式を用いるか否か及び管理装置になるか否かの判断基準を示す図である。It is a figure which shows the judgment criteria of whether to use a code information system, and whether to become a management apparatus. カメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a camera. 通信装置間のシーケンスを示す図である。It is a figure which shows the sequence between communication apparatuses. コード情報方式の能力を持つか否かを示すフィールドの構成を示す図である。It is a figure which shows the structure of the field which shows whether it has the capability of a code | cord | chord information system. コード情報方式の撮影機能及び表示機能を持つか否かを示すフィールドの構成を示す図である。It is a figure which shows the structure of the field which shows whether it has the imaging | photography function and display function of a code information system. コード情報方式を用いるか否か及び管理装置になるか否かの判断基準を示す図である。It is a figure which shows the judgment criteria of whether to use a code information system, and whether to become a management apparatus.
 以下の実施形態では、Wi-Fi Directにおいて、通信パラメータの共有を行う際に画像から取得した情報を用いる方式を適用する。 In the following embodiment, a method using information acquired from an image when sharing communication parameters is applied in Wi-Fi Direct.
 以下、本実施形態に係る通信装置について、図面を参照しながら詳細に説明する。以下では、IEEE(The Institute of Electrical and Electronics Engineers,Inc.)802.11シリーズに準拠した無線LANシステムを用いた例について説明する。しかしながら、通信形態は必ずしもIEEE802.11準拠の無線LANには限らない。 Hereinafter, the communication apparatus according to the present embodiment will be described in detail with reference to the drawings. Hereinafter, an example using a wireless LAN system compliant with the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 series will be described. However, the communication mode is not necessarily limited to a wireless LAN compliant with IEEE 802.11.
 図3に本実施形態の通信システムについて示す。図3に示す通信システムには、カメラ32及びスマートフォン33が含まれる。なお、無線ネットワーク31は、Wi-Fi Directに基づいて、カメラ32あるいはスマートフォン33が形成する無線LANネットワークである。本実施形態における通信システムにおける装置をカメラ、スマートフォンとして説明を行うが、例えばプリンタ、携帯電話、PC、ビデオカメラ、スマートウォッチ、PDAなどの他の装置であってもよい。 FIG. 3 shows the communication system of this embodiment. The communication system shown in FIG. 3 includes a camera 32 and a smartphone 33. The wireless network 31 is a wireless LAN network formed by the camera 32 or the smartphone 33 based on Wi-Fi Direct. Although the apparatus in the communication system according to the present embodiment is described as a camera and a smartphone, other apparatuses such as a printer, a mobile phone, a PC, a video camera, a smart watch, and a PDA may be used.
 ここで、Wi-Fi Directについて説明する。Wi-Fi Directとは、Wi-Fi Allianceによって規定された通信規格である。Wi-Fi Directでは、通信相手を検索するための処理や通信相手との間で互いの役割を決定する方法等が定められ、無線LAN通信のための接続シーケンスについて規定されている。 Here, Wi-Fi Direct will be described. Wi-Fi Direct is a communication standard defined by Wi-Fi Alliance. In Wi-Fi Direct, a process for searching for a communication partner, a method for determining mutual roles with the communication partner, and the like are defined, and a connection sequence for wireless LAN communication is defined.
 Wi-Fi Directにおいては、無線LANアクセスポイントとして動作する通信装置をP2Pグループオーナー(以下、GO)、無線LANステーションとして動作する通信装置をP2Pクライアント(以下、CL)と称する。即ち、Wi-Fi Directにおいて、GOが基地局として動作し、CLが子局として動作する。これらの役割はGO Negotiationプロトコルで決定される。GO NegotiationプロトコルはWi-Fi Directで規定されている。Wi-Fi Directでは、このように複数の役割が規定される。Wi-Fi Directは、装置間でそれらのうち通信する際の役割を決定する過程を含む無線接続を確立するための接続処理である。 In Wi-Fi Direct, a communication device that operates as a wireless LAN access point is referred to as a P2P group owner (hereinafter referred to as GO), and a communication device that operates as a wireless LAN station is referred to as a P2P client (hereinafter referred to as CL). That is, in Wi-Fi Direct, GO operates as a base station and CL operates as a slave station. These roles are determined by the GO Negotiation protocol. The GO Negotiation protocol is specified in Wi-Fi Direct. In Wi-Fi Direct, multiple roles are defined in this way. Wi-Fi Direct is a connection process for establishing a wireless connection including a process of determining a role in communication among devices among them.
 なお、Wi-Fi DirectではGOが形成したネットワークをP2Pグループと称する。本実施形態でもネットワークのことをP2Pグループと記載する場合もある。どちらも同様の意味で記載されている。 In Wi-Fi Direct, a network formed by GO is referred to as a P2P group. In this embodiment, the network may be described as a P2P group. Both are described with the same meaning.
 なお、本実施形態では、GO、CLおよび役割が未決定の通信装置群をまとめて、P2Pデバイスと称す。役割が未決定の通信装置は、その後の役割決定処理の結果に応じて、CLになって無線ネットワークに参加することも、GOになって無線ネットワークを構築することもできる。 In the present embodiment, GO, CL, and a group of communication devices whose roles have not been determined are collectively referred to as P2P devices. Depending on the result of the subsequent role determination process, the communication device whose role has not been determined can become a CL and participate in the wireless network, or can become a GO and build a wireless network.
 また、Wi-Fi Directを用いて装置間で接続する場合、GOからCLに通信パラメータを提供し、該通信パラメータを用いて接続する。通信パラメータは、IEEE802.11規格に準拠して無線通信するための各種無線通信パラメータが含まれる。つまり、通信パラメータは、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、ネットワークキー、認証鍵等の無線LAN通信を行うために必要な無線通信パラメータが含まれる。また、MACアドレスやIP層での通信を行うためのIPアドレス等も含めてもよい。 Also, when connecting between devices using Wi-Fi Direct, a communication parameter is provided from GO to CL, and the connection is made using the communication parameter. The communication parameters include various wireless communication parameters for performing wireless communication in accordance with the IEEE 802.11 standard. That is, the communication parameters include wireless communication parameters necessary for performing wireless LAN communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, a network key, and an authentication key. Further, a MAC address, an IP address for performing communication in the IP layer, and the like may be included.
 続いて、図3に示す通信システムの各装置(カメラ32、スマートフォン33)の本実施形態におけるハードウェア構成について図1を用いて説明する。図1において、101は装置全体を示す。102は、記憶部103に記憶される制御プログラムを実行することにより装置全体を制御する制御部である。制御部102は例えばCPU(CentralProcessing Unit)により構成される。103は制御部102が実行する制御プログラム、画像データ、通信パラメータ等の各種情報を記憶する記憶部である。後述する各種動作は、記憶部103に記憶された制御プログラムを制御部102が実行することにより行われる。記憶部103は、例えば、HDD、フラッシュメモリ、ROM、RAMまたは着脱可能なSDカードなどの記憶媒体により構成される。 Subsequently, a hardware configuration in the present embodiment of each device (camera 32 and smartphone 33) of the communication system shown in FIG. 3 will be described with reference to FIG. In FIG. 1, reference numeral 101 denotes the entire apparatus. A control unit 102 controls the entire apparatus by executing a control program stored in the storage unit 103. The control unit 102 is configured by, for example, a CPU (Central Processing Unit). A storage unit 103 stores various information such as a control program executed by the control unit 102, image data, and communication parameters. Various operations described later are performed by the control unit 102 executing a control program stored in the storage unit 103. The storage unit 103 is configured by a storage medium such as an HDD, a flash memory, a ROM, a RAM, or a removable SD card.
 104はIEEE802.11シリーズに準拠した無線LAN通信を行うための無線部である。無線部104は、無線通信を行うチップにより構成される。105は各種表示を行う表示部でありLCDやLEDのように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。表示部105は視覚情報および音情報の少なくともどちらか一方を出力する機能を備えるものである。表示部105は視覚情報を表示する場合、表示する視覚情報に対応する画像データを保持するVRAM(Video RAM)を有する。表示部105は、VRAMに格納した画像データを表示させ続ける表示制御を行う。 104 is a wireless unit for performing wireless LAN communication conforming to the IEEE802.11 series. The wireless unit 104 is configured by a chip that performs wireless communication. Reference numeral 105 denotes a display unit that performs various displays, and has a function capable of outputting visually recognizable information such as an LCD or LED, or outputting sound such as a speaker. The display unit 105 has a function of outputting at least one of visual information and sound information. When displaying visual information, the display unit 105 includes a VRAM (Video RAM) that holds image data corresponding to the visual information to be displayed. The display unit 105 performs display control for continuously displaying the image data stored in the VRAM.
 106は、撮像素子、レンズ等により構成され、写真や動画の撮影を行う撮影部である。本実施形態において撮影部106は、バーコード等の一次元コード、CPコード及びQRコード等の二次元コード等のコード情報の読み取りなどを実施する。 Reference numeral 106 denotes an image capturing unit that includes an image sensor, a lens, and the like, and captures photographs and videos. In the present embodiment, the imaging unit 106 performs reading of code information such as a one-dimensional code such as a barcode and a two-dimensional code such as a CP code and a QR code.
 107はアンテナ108の出力制御を行うアンテナ制御部であり、108は無線LANで通信するための2.4GHz帯および/または5GHz帯で通信可能なアンテナである。109は、ユーザが各種入力等を行い、通信装置101を操作するための入力部である。入力部109は、入力に対応するフラグを記憶部103等のメモリに記憶する。 107 is an antenna control unit for controlling the output of the antenna 108, and 108 is an antenna capable of communication in the 2.4 GHz band and / or the 5 GHz band for communication via a wireless LAN. Reference numeral 109 denotes an input unit for the user to perform various inputs and operate the communication apparatus 101. The input unit 109 stores a flag corresponding to the input in a memory such as the storage unit 103.
 図2は、後述の通信制御機能を実行するソフトウェア機能ブロックの構成の一例を表すブロック図である。本実施形態において、各装置の機能ブロックは、それぞれ記憶部103にプログラムとして記憶され、制御部102によって当該プログラムが実行されることによりその機能が実施される。制御部102は、制御プログラムにしたがって、各ハードウェアの制御、および、情報の演算や加工を行うことで各機能を実現する。なお、本機能ブロックに含まれる一部または全部がハードウェア化されていてもよい。この場合、各機能ブロックに含まれる一部または全部は、例えばASIC(Application Specific Integrated Circuit)により構成される。 FIG. 2 is a block diagram showing an example of the configuration of a software function block that executes a communication control function described later. In the present embodiment, the functional blocks of each device are stored as programs in the storage unit 103, and the functions are implemented by the control unit 102 executing the programs. The control unit 102 implements each function by performing control of each hardware and calculation and processing of information according to a control program. A part or all of the functional blocks may be implemented as hardware. In this case, a part or all of each functional block is configured by, for example, ASIC (Application Specific Integrated Circuit).
 図2において、201はソフトウェア機能ブロック全体を示す。通信パラメータ制御部202は、装置間で通信パラメータを共有するための通信パラメータ共有処理を実行する。通信パラメータ共有処理においては、提供装置が受信装置に無線通信するための通信パラメータを提供する。ここで、通信パラメータには、ネットワーク識別子としてのSSID(Service Set Identifier)、暗号方式、暗号鍵、ネットワークキー、認証方式、認証鍵等の無線LAN通信を行うために必要な無線通信パラメータが含まれる。また、MACアドレス、パスフレーズ、IP層での通信を行うためのIPアドレス、上位サービスに必要な情報等も含めてもよい。通信パラメータ制御部202が実行する通信パラメータ共有処理は、Wi-Fi Allianceで規定されているWPS(Wi-Fi Protected Setup)が用いられる。WPSでは、レジストレーションプロトコルという通信パラメータをやり取りするためのプロトコルが規定されており、通信パラメータ制御部202は、レジストレーションプロトコルにより通信パラメータ共有処理を実行する。なお、以降の説明において、WPSで規定されるレジストレーションプロトコルにより実行される通信パラメータ共有処理を単にWPSと称する場合もある。 In FIG. 2, 201 indicates the entire software function block. The communication parameter control unit 202 executes communication parameter sharing processing for sharing communication parameters between devices. In the communication parameter sharing process, the providing device provides communication parameters for wireless communication with the receiving device. Here, the communication parameters include wireless communication parameters necessary for performing wireless LAN communication such as SSID (Service Set Identifier) as a network identifier, an encryption method, an encryption key, a network key, an authentication method, and an authentication key. . Further, it may include a MAC address, a passphrase, an IP address for performing communication at the IP layer, information necessary for a higher level service, and the like. The communication parameter sharing process executed by the communication parameter control unit 202 uses WPS (Wi-Fi Protected Setup) defined by Wi-Fi Alliance. In WPS, a protocol for exchanging communication parameters called a registration protocol is defined, and the communication parameter control unit 202 executes communication parameter sharing processing using the registration protocol. In the following description, the communication parameter sharing process executed by the registration protocol defined by WPS may be simply referred to as WPS.
 また、通信パラメータ制御部202が実行する通信パラメータ共有処理は、コード情報を撮影して得た画像から取得した情報を用いて行われるコード情報方式である。通信パラメータ制御部202は、Wi-Fi Directにおける接続処理における通信パラメータ共有処理を、WPS及びコード情報方式のうちから何れかを選択して実行する。 Further, the communication parameter sharing process executed by the communication parameter control unit 202 is a code information method performed using information acquired from an image obtained by photographing code information. The communication parameter control unit 202 executes communication parameter sharing processing in connection processing in Wi-Fi Direct by selecting either WPS or code information method.
 また、通信パラメータ制御部202が実行する通信パラメータ共有処理は、公開鍵暗号方式を用いて通信パラメータを安全に転送するような方式でも良い。通信パラメータ制御部202は、記憶部に103に記憶される通信パラメータを設定されるための通信パラメータ設定アプリケーションに従って通信パラメータ設定を行う。 Further, the communication parameter sharing process executed by the communication parameter control unit 202 may be a method in which communication parameters are securely transferred using a public key encryption method. The communication parameter control unit 202 performs communication parameter setting according to a communication parameter setting application for setting communication parameters stored in the storage unit 103.
 コード情報読み取り制御部203は、撮影部106により撮影された画像を解析し、符号化された情報を取得する。コード情報読み取り制御部203は、バーコード等の一次元コード、CPコード及びQRコードなどの二次元コード等のコード情報の解析処理を実施する。 The code information reading control unit 203 analyzes the image photographed by the photographing unit 106 and acquires encoded information. The code information reading control unit 203 performs analysis processing of code information such as a one-dimensional code such as a bar code and a two-dimensional code such as a CP code and a QR code.
 コード情報生成制御部204は、バーコード等の一次元コード、CPコード及びQRコードなどの二次元コード等のコード情報の生成を実施し、表示部105へ生成したコード情報を表示するための制御を実施する。コード情報生成制御部204は、記憶部に103に記憶される通信パラメータを設定されるための通信パラメータ設定アプリケーションに従って通信パラメータ設定に必要な情報を符号化したQRコード等のコード情報を表示させる。 The code information generation control unit 204 generates code information such as a one-dimensional code such as a bar code, and a two-dimensional code such as a CP code and a QR code, and displays the generated code information on the display unit 105. To implement. The code information generation control unit 204 displays code information such as a QR code obtained by encoding information necessary for communication parameter setting in accordance with a communication parameter setting application for setting communication parameters stored in the storage unit 103.
 205はアプリケーションレイヤにおけるサービス制御部である。ここでのアプリケーションレイヤとはOSI参照モデルにおける第5層以上の上位レイヤにおけるサービス提供層のことをさす。すなわちサービス制御部205は、無線部104による無線通信を用いて印刷処理や画像ストリーミング処理や、ファイル転送処理などを実行する。 205 is a service control unit in the application layer. The application layer here refers to a service providing layer in an upper layer higher than the fifth layer in the OSI reference model. That is, the service control unit 205 executes print processing, image streaming processing, file transfer processing, and the like using wireless communication by the wireless unit 104.
 206はパケット受信部、207はパケット送信部であり、上位レイヤの通信プロトコルを含むあらゆるパケットの送受信を制御する。また、パケット受信部206及びパケット送信部207は、対向装置との間でIEEE802.11規格に準拠したパケットの送信及び受信を行うため無線部104を制御する。 206 is a packet receiving unit, and 207 is a packet transmitting unit, which controls transmission / reception of all packets including upper layer communication protocols. In addition, the packet receiving unit 206 and the packet transmitting unit 207 control the wireless unit 104 in order to transmit and receive packets conforming to the IEEE 802.11 standard with the opposite device.
 208はステーション機能制御部であり、IEEE802.11規格に定められたインフラストラクチャモードにおけるステーション(STA)として動作するSTA機能を提供する。STA機能制御部208は、STAとして動作する際に、認証・暗号処理等を実施する。また、209はAP機能制御部であり、IEEE802.11規格に定められたインフラストラクチャモードにおけるアクセスポイント(AP)として動作するAP機能を提供する。AP機能制御部209は、無線ネットワークを形成し、STAに対する認証・暗号処理およびSTAの管理等を実施する。210はデータ記憶部であり、ソフトウェアそのものおよび、通信パラメータや、バーコード類の情報の記憶部103への書き込み及び読み出しの制御を行う。 208 is a station function control unit that provides a STA function that operates as a station (STA) in the infrastructure mode defined in the IEEE 802.11 standard. The STA function control unit 208 performs authentication / encryption processing and the like when operating as an STA. Reference numeral 209 denotes an AP function control unit that provides an AP function that operates as an access point (AP) in an infrastructure mode defined in the IEEE 802.11 standard. The AP function control unit 209 forms a wireless network, and performs authentication / encryption processing for the STA, management of the STA, and the like. Reference numeral 210 denotes a data storage unit that controls writing and reading of software itself, communication parameters, and barcode information to the storage unit 103.
 211はWi-Fi Direct制御部であり、前述のWi-Fi Directに基づいた各種処理を実施する。Wi-Fi Direct制御部211は、GOとして動作する場合は、AP機能制御部209によりAPとして機能し、CLとして動作する場合は、STA機能制御部208によりSTAとして機能する。 211 is a Wi-Fi Direct control unit, which performs various processes based on the Wi-Fi Direct described above. The Wi-Fi Direct control unit 211 functions as an AP by the AP function control unit 209 when operating as a GO, and functions as an STA by the STA function control unit 208 when operating as a CL.
 以上の構成を有する通信システムの動作について説明を行う。図4に示すフローチャートは、制御部102が記憶部103に記憶されたコンピュータプログラムを読み出して実行することにより行われる処理の流れを示す。なお、図4に示すフローチャートに示すステップの一部または全部を例えばASIC等のハードウェアで実現する構成としても良い。なお、以下の説明において、カメラ32の処理として説明を行うが、スマートフォン33も同様の処理を実行することができるものとする。 The operation of the communication system having the above configuration will be described. The flowchart shown in FIG. 4 shows the flow of processing performed when the control unit 102 reads out and executes a computer program stored in the storage unit 103. Note that part or all of the steps shown in the flowchart shown in FIG. 4 may be realized by hardware such as an ASIC. In addition, in the following description, although demonstrated as a process of the camera 32, the smart phone 33 shall also be able to perform the same process.
 カメラ32は、入力部109に対するユーザからの操作により、通信パラメータ設定モードに設定されると共にWi-Fi Directにより規定された機器検索処理(P2P Discovery)を実施する(S401)。機器検索処理により相手装置(本実施形態においてはスマートフォン33)を発見すると相手装置とWi-Fi Directにより規定された役割決定処理を実施する(S402)。役割決定処理では、相手装置との間でネゴシエーションを実施し、GOとして動作するか、CLとして動作するかを決定する。役割決定処理では、GO Negotiation Requestフレーム、GO Negotiation Responseフレーム、GO Negotiation Confirmationフレームが装置間でやり取りされる。これらのフレームにはWi-Fi Directを示すInformation Element(IE)であるP2P IE、WPSを示すIEであるWSC IEが付与されている。その他に、コード情報を用いた通信パラメータ共有処理であるコード情報方式に対応している場合、コード情報方式の通信パラメータ共有処理に対応していることを示すIEがこれらのフレームに付与される。なお、本実施形態では、コード情報を撮影する役割となった装置がGOとして動作するものとする。 The camera 32 is set to the communication parameter setting mode by a user operation on the input unit 109 and performs device search processing (P2P Discovery) defined by Wi-Fi Direct (S401). When a partner device (smartphone 33 in this embodiment) is found by the device search process, a role determination process defined by the partner device and Wi-Fi Direct is performed (S402). In the role determination process, negotiation with the counterpart device is performed to determine whether to operate as GO or CL. In the role determination process, a GO Negotiation Request frame, a GO Negotiation Response frame, and a GO Negotiation Configuration frame are exchanged between devices. The P2P IE that is an Information Element (IE) indicating Wi-Fi Direct and the WSC IE that is an IE indicating WPS are assigned to these frames. In addition, when the code information method corresponding to the communication parameter sharing process using the code information is supported, IE indicating that the communication parameter sharing process of the code information method is supported is given to these frames. In the present embodiment, it is assumed that the device that is responsible for photographing the code information operates as GO.
 カメラ32は、Wi-Fi Directにおいて相手装置から受信する情報におけるコード情報方式に対応していることを示すIEの有無に応じて、相手装置がコード情報方式の通信パラメータ共有処理に対応しているか否かを判定する(S403)。また、同IEには、撮影機能の有無を示す値を付与される。カメラ32は、相手装置から受信する情報に含まれる所定のIEの撮影機能の有無を示す情報に基づいて、相手装置がコード情報を撮影する役割(管理装置と称する)になれるか否かの判定が可能となる。 Whether the camera 32 is compatible with the communication parameter sharing process of the code information method according to the presence or absence of the IE indicating that it is compatible with the code information method in the information received from the partner device in Wi-Fi Direct. It is determined whether or not (S403). The IE is given a value indicating the presence or absence of a shooting function. The camera 32 determines whether or not the partner device can play a role of photographing code information (referred to as a management device) based on information indicating the presence or absence of a predetermined IE photographing function included in the information received from the partner device. Is possible.
 なお、コード情報方式に対応していることを示すIEは、役割決定処理においてやり取りされるフレームだけでなく、その他のフレームに付与されてもよい。コード情報方式に対応していることを示すIEは、例えば、Probe Request/Responseフレーム、Provision Discovery Request/Responseフレームに付与されてもよい。また、例えば、コード情報方式に対応していることを示すIEは、Service Discovery Query/Responseフレーム、P2P Invitation Request/Responseフレームなどに付与されてもよい。また、例えば、機器検索処理においてやり取りされるフレームにコード情報方式に対応していることを示すIEが付与されてもよい。また、P2P IEにコード情報方式に対応していることを示す情報及び管理装置として動作可能か否かを示す情報が付与されてもよい。 Note that the IE indicating that the code information system is supported may be assigned to other frames as well as frames exchanged in the role determination process. The IE indicating that the code information system is supported may be added to, for example, a Probe Request / Response frame and a Provision Discovery Request / Response frame. Further, for example, an IE indicating that the code information system is supported may be added to a Service Discovery Query / Response frame, a P2P Invitation Request / Response frame, or the like. In addition, for example, an IE indicating that the frame corresponds to the code information method may be added to a frame exchanged in the device search process. Further, information indicating that the P2P IE is compatible with the code information system and information indicating whether or not the management apparatus can be operated may be provided.
 なお、装置間双方でコード情報方式の通信パラメータ共有処理に対応している場合、カメラ32は、コード情報方式の通信パラメータ共有処理を実行するか否かをユーザにより選択させるようにしてもよい。カメラ32は、コード情報方式の通信パラメータ共有処理を実行することを入力部109における入力を介して指示された場合、S404に処理を進めてもよい。また、カメラ32は、WPSを用いた通信パラメータ共有処理を実行することを入力部109における入力を介して指示された場合、S411に処理を進めてもよい。 Note that, when both devices support code information type communication parameter sharing processing, the camera 32 may allow the user to select whether or not to execute code information type communication parameter sharing processing. If the camera 32 is instructed to execute the communication parameter sharing process of the code information method via the input in the input unit 109, the process may proceed to S404. In addition, when the camera 32 is instructed to execute the communication parameter sharing process using WPS via the input in the input unit 109, the process may proceed to S411.
 S403でコード情報方式が実施可能と判断した場合、カメラ32は、管理装置として動作するか否かを判断する。判断方法としては図7に示した表のように自装置と相手装置の撮影機能の有無によって判断する。例えば、カメラ32が撮影機能に対応し、相手装置が撮影機能に対応していない場合、カメラ32は、管理装置として動作することを決定する。また、例えば、カメラ32が撮影機能に対応せず、相手装置が撮影機能に対応している場合、カメラ32は、管理装置として動作せず、コード情報を表示する装置(表示装置と称する)として動作することを決定する。また、例えば、カメラ32が撮影機能に対応せず、相手装置も撮影機能に対応していない場合、双方の装置が表示装置にのみ対応している装置であったとして、コード情報方式の通信パラメータ共有方式を実行せず、WPSを実行すると決定する。 When it is determined in S403 that the code information method can be implemented, the camera 32 determines whether or not to operate as a management apparatus. As a determination method, as shown in the table of FIG. For example, when the camera 32 corresponds to the shooting function and the counterpart device does not support the shooting function, the camera 32 determines to operate as a management device. Further, for example, when the camera 32 does not support the shooting function and the counterpart device supports the shooting function, the camera 32 does not operate as a management device and serves as a device (referred to as a display device) that displays code information. Decide to work. Further, for example, when the camera 32 does not support the shooting function and the counterpart device does not support the shooting function, it is assumed that both devices are devices that only support the display device, and the communication parameter of the code information method is used. It is determined that the WPS is executed without executing the sharing method.
 また、例えば、カメラ32が撮影機能に対応し、相手装置も撮影機能に対応している場合、カメラ32は、相手装置とのネゴシエーションにより管理装置として動作するか否かを決定する。相手装置とのネゴシエーションは、例えば、役割決定処理で用いるIntent値に基づいて行われてもよい。例えば、Intent値が大きい装置が管理装置として動作すると決定してもよい。 Also, for example, when the camera 32 supports the shooting function and the counterpart device also supports the shooting function, the camera 32 determines whether or not to operate as a management device by negotiation with the counterpart device. The negotiation with the partner device may be performed based on, for example, an Intent value used in the role determination process. For example, a device having a large Intent value may be determined to operate as a management device.
 なお、カメラ32は、相手装置が撮影機能を有さないことを理由に管理装置として動作すると決定した場合、Intent値の大小に関わらずGOとして動作することを決定してもよい。また、カメラ32は、機器探索処理において通信される情報により、管理装置として動作することを決定した場合、役割決定処理においてGOとして動作するようにIntent値を最大値にしてネゴシエーションを行ってもよい。また、機器探索処理において通信される情報により、表示装置として動作することを決定した場合、役割決定処理においてCLとして動作するようにIntent値を最小値にしてネゴシエーションを行ってもよい。また、カメラ32は、機器探索処理において通信される情報により、コード情報方式を実行すること及び管理装置として動作することを決定した場合、役割決定処理を省略して、GOとして動作することを決定してもよい。 If the camera 32 is determined to operate as a management device because the counterpart device does not have a shooting function, the camera 32 may determine to operate as GO regardless of the magnitude of the Intent value. Further, when it is determined that the camera 32 operates as a management device based on information communicated in the device search process, the camera 32 may negotiate with the Intent value set to the maximum value so as to operate as a GO in the role determination process. . In addition, when it is determined to operate as a display device based on information communicated in the device search process, the negotiation may be performed with the Intent value set to the minimum value so that it operates as a CL in the role determination process. In addition, when the camera 32 determines to execute the code information method and operate as a management device based on information communicated in the device search process, the camera 32 determines to operate as GO by omitting the role determination process. May be.
 S404でカメラ32が管理装置となると判断した場合は、カメラ32は、撮影部106を起動する(S405)。また、カメラ32は、ユーザに相手装置のコード情報を撮影するように促す表示を表示部105により行ってもよい。また、カメラ32はGOとしての動作を開始する。 If it is determined in S404 that the camera 32 is a management device, the camera 32 activates the photographing unit 106 (S405). In addition, the camera 32 may perform display on the display unit 105 that prompts the user to photograph code information of the partner apparatus. Further, the camera 32 starts the operation as GO.
 カメラ32は、相手装置のコード情報をユーザ操作に応じて撮影すると、撮影して得たコード情報の画像から取得した情報を元に通信パラメータ共有処理を実行し、相手装置に通信パラメータを提供する(S406)。なお、カメラ32は、コード情報の撮影を行ったことを示す情報をコード情報に含まれる識別子が示す装置にユニキャストで送信してもよい。また、コード情報の撮影を行ったことを示す情報は、撮影したコード情報に含まれる情報であってもよい。また、コード情報の撮影を行ったことを示す情報は、撮影されたコード情報に含まれる情報のハッシュ値であってもよい。また、コード情報方式の通信パラメータ共有処理において、コード情報に含まれる情報に基づいて暗号化された通信パラメータを通信するようにしてもよい。通信パラメータの共有処理が完了すると相手装置との接続処理を実施する(S407)。 When the camera 32 captures the code information of the partner apparatus in response to a user operation, the camera 32 executes a communication parameter sharing process based on information acquired from the code information image obtained by capturing and provides the communication parameter to the partner apparatus. (S406). The camera 32 may transmit information indicating that the code information has been captured to the device indicated by the identifier included in the code information by unicast. Further, the information indicating that the code information has been photographed may be information included in the photographed code information. Further, the information indicating that the code information has been photographed may be a hash value of information included in the photographed code information. In the communication parameter sharing process of the code information method, communication parameters encrypted based on information included in the code information may be communicated. When the communication parameter sharing processing is completed, connection processing with the counterpart device is performed (S407).
 S404で相手装置が管理装置になると判断した場合は、表示部105に通信パラメータの設定を行うために必要な情報を埋め込んだコード情報を表示させる(S408)。通信パラメータの設定を行うために必要な情報は、例えば、通信パラメータを暗号化するため暗号化情報やMACアドレスまたはUUID等の装置の識別子である。 When it is determined in S404 that the partner device is a management device, the display unit 105 displays code information in which information necessary for setting communication parameters is embedded (S408). The information necessary for setting the communication parameters is, for example, encrypted information for encrypting the communication parameters, a device identifier such as a MAC address or UUID.
 カメラ32は、表示させたコード情報の撮影を行ったことを示す情報を相手装置から受信すると通信パラメータ共有処理を実行し、相手装置から通信パラメータを受け取る(S409)。なお、表示させたコード情報の撮影を行ったことを示す情報は、表示させたコード情報に含まれる情報であってもよい。また、表示させたコード情報の撮影を行ったことを示す情報は、表示させたコード情報に含まれる情報のハッシュ値であってもよい。また、受信される通信パラメータは、カメラ32が表示させたコード情報に含まれる情報に基づいて暗号化されていてもよい。カメラ32は通信パラメータの共有処理が完了すると、受信した通信パラメータに基づいてCLとして相手装置との接続処理を実施する(S410)。 When the camera 32 receives information indicating that the displayed code information has been captured from the partner apparatus, the camera 32 executes a communication parameter sharing process and receives the communication parameter from the partner apparatus (S409). Note that the information indicating that the displayed code information is photographed may be information included in the displayed code information. Further, the information indicating that the displayed code information has been photographed may be a hash value of information included in the displayed code information. Further, the received communication parameter may be encrypted based on information included in the code information displayed by the camera 32. When the communication parameter sharing process is completed, the camera 32 performs a connection process with the partner apparatus as CL based on the received communication parameter (S410).
 S403でコード情報方式が実施できないと判断した場合、表示部105に相手装置とWi-Fi Directによる接続を実施してよいかをユーザが承認するための画面を表示させる(S411)。ユーザが承認するのを待ち(S413)、承認されたと判断するとWPSに規定されるレジストレーションプロトコルに従った通信によって通信パラメータ共有処理を実施する(S413)。パラメータ共有処理が完了すると相手装置と接続処理を実行する(S414)。 If it is determined in S403 that the code information method cannot be implemented, the display unit 105 displays a screen for the user to approve the connection with the counterpart device using Wi-Fi Direct (S411). Waiting for the user to approve (S413), and if it is determined that the user has approved, the communication parameter sharing process is performed by communication according to the registration protocol defined in WPS (S413). When the parameter sharing process is completed, the connection process with the partner apparatus is executed (S414).
 カメラ32およびスマートフォン33との各通信装置間におけるコード情報を利用したWi-Fi Directによる接続シーケンスを図5に示す。図5では、カメラ32及びスマートフォン33ともにコード情報方式の通信パラメータ共有処理に対応しており、撮影機能も共に有している。また、役割決定処理に用いるIntent値はスマートフォンの方が大きい値を有しているものとする。 FIG. 5 shows a connection sequence by Wi-Fi Direct using code information between each communication device with the camera 32 and the smartphone 33. In FIG. 5, both the camera 32 and the smartphone 33 correspond to the communication parameter sharing process of the code information method, and have both the photographing functions. In addition, it is assumed that the smart phone has a larger Intent value used for the role determination process.
 カメラ32及びスマートフォン33は、通信パラメータ設定モードをユーザにより指示された場合、Wi-Fi Directにより規定された機器検索処理(P2P Discovery)を実施する(F501)。次にWi-Fi Directにより規定された役割決定処理を実施する(F502)。役割決定処理において、カメラ32及びスマートフォン33は、コード情報方式の通信パラメータ共有に双方が対応していると判断する。また、カメラ32及びスマートフォン33は、撮影機能も双方が有しているため、コード情報を用いた通信パラメータ共有が実行可能と判断する。カメラ32は、役割決定処理で用いるIntent値によってスマートフォン33が管理装置になると判断し、コード情報を表示する(F503)。スマートフォン33は、Intent値によって管理装置になると判断し、撮影部を起動しユーザにカメラ32が表示しているコード情報を撮影するように促す(F504)。スマートフォン33がコード情報を撮影する(F505)と撮影したコード情報に含まれる識別情報により識別されるカメラ32へ、コード情報を撮影したことを示す情報を含めて通信パラメータ設定要求を送信する(F506)。 When the communication parameter setting mode is instructed by the user, the camera 32 and the smartphone 33 perform device search processing (P2P Discovery) defined by Wi-Fi Direct (F501). Next, a role determination process defined by Wi-Fi Direct is performed (F502). In the role determination process, the camera 32 and the smartphone 33 determine that both correspond to code parameter communication parameter sharing. In addition, since both the camera 32 and the smartphone 33 also have a shooting function, it is determined that communication parameter sharing using code information can be performed. The camera 32 determines that the smartphone 33 becomes a management device based on the Intent value used in the role determination process, and displays code information (F503). The smartphone 33 determines that it becomes a management device based on the Intent value, and activates the photographing unit to prompt the user to photograph the code information displayed by the camera 32 (F504). When the smartphone 33 captures the code information (F505), a communication parameter setting request including information indicating that the code information is captured is transmitted to the camera 32 identified by the identification information included in the captured code information (F506). ).
 カメラ32は、受信した通信パラメータ設定要求に含まれる情報により、スマートフォン33が表示させたコード情報を撮影した装置だと証明された場合、スマートフォン33とコード情報方式の通信パラメータ共有処理を実行する(F507)。なお、通信パラメータ共有処理において、表示させたコード情報に含まれる情報に基づいて暗号化された通信パラメータを通信するようにしてもよい。スマートフォン33はGOとして動作し、カメラ32はCLとして動作する。カメラ32は、通信パラメータ共有処理により取得した通信パラメータに基づいてスマートフォン33に接続する(F508)。 When it is proved by the information included in the received communication parameter setting request that the camera 32 is an apparatus that has photographed the code information displayed by the smartphone 33, the camera 32 executes code information communication parameter sharing processing with the smartphone 33 ( F507). In the communication parameter sharing process, communication parameters encrypted based on the information included in the displayed code information may be communicated. The smartphone 33 operates as GO, and the camera 32 operates as CL. The camera 32 connects to the smartphone 33 based on the communication parameter acquired by the communication parameter sharing process (F508).
 カメラ32およびスマートフォン33との各通信装置間におけるWPSを利用したWi-Fi Directによる接続シーケンスを図6に示す。図6では、スマートフォン33はコード情報方式の通信パラメータ共有処理に対応しており、カメラ32は対応していないとする。また、役割決定処理に用いるIntent値はスマートフォンの方が大きい値を有しているものとする。 FIG. 6 shows a connection sequence by Wi-Fi Direct using WPS between the communication devices with the camera 32 and the smartphone 33. In FIG. 6, it is assumed that the smartphone 33 supports code information type communication parameter sharing processing, and the camera 32 does not support it. In addition, it is assumed that the smart phone has a larger Intent value used for the role determination process.
 F601、F602はF501、F502と同等のため説明を省略する。役割決定処理において、カメラ32及びスマートフォン33は、カメラ32がコード情報方式の通信パラメータ共有に対応していないと判断し、WPSを実行することを決定する。また、カメラ32及びスマートフォン33は、Intent値に基づいてGOかCLかの役割を決定する。カメラ32及びスマートフォン33は、Wi-Fi Directによる接続を許可するか承認する画面を表示する(F603、F604)。カメラ32及びスマートフォン33は、ユーザによるボタン押下などにより承認されたことを検出するとWPSに規定されるレジストレーションプロトコルに従った通信による通信パラメータ共有処理を実施する(F605)。F606はF506と同様であるため説明を省略する。 F601 and F602 are the same as F501 and F502 and will not be described. In the role determination process, the camera 32 and the smartphone 33 determine that the camera 32 does not support code parameter communication parameter sharing and determine to execute WPS. Further, the camera 32 and the smartphone 33 determine the role of GO or CL based on the Intent value. The camera 32 and the smartphone 33 display a screen for permitting or approving connection by Wi-Fi Direct (F603, F604). When the camera 32 and the smartphone 33 detect that the user has been approved by pressing a button or the like, the camera 32 and the smartphone 33 perform communication parameter sharing processing by communication according to a registration protocol defined in WPS (F605). Since F606 is the same as F506, description thereof is omitted.
 本実施形態によれば、Wi-Fi Directにおいて、通信パラメータの共有を行う際に画像から取得した情報を用いる方式を適用することが可能となる。また、Wi-Fi Directにおいて、相手装置の対応している通信パラメータ共有処理を確認して、複数の方式のうち実行する通信パラメータ共有処理を選択することができる。また、撮影機能の有無を確認して、コード情報を利用した通信パラメータ共有において管理装置となる装置を決定することが可能となり、セキュリティの向上とともに利便性を向上させることができる。 According to the present embodiment, it is possible to apply a method that uses information acquired from an image when sharing communication parameters in Wi-Fi Direct. In Wi-Fi Direct, the communication parameter sharing process supported by the partner apparatus can be confirmed, and the communication parameter sharing process to be executed can be selected from among a plurality of methods. In addition, it is possible to confirm the presence or absence of a photographing function and determine a device that becomes a management device in communication parameter sharing using code information, thereby improving security and convenience.
 また、本実施形態によれば、撮影機能を有するか否かを示す情報を装置間でやり取りする。したがって、双方の装置が撮影機能を有さないのに、コード情報の撮影を利用する通信パラメータ共有処理を実行し続けてしまい、接続ができなかったり、無駄な処理が生じたりしてしまうことが防止される。また、本実施形態によれば、コード情報の撮影を利用する通信パラメータ共有処理を実行する際に、装置間のネゴシエーションにより、撮影を行う管理装置とし動作するか画像を表示する表示装置として動作するかを、装置間で重複なく適切に定めることができる。 Further, according to the present embodiment, information indicating whether or not it has a photographing function is exchanged between apparatuses. Therefore, even though both apparatuses do not have a shooting function, communication parameter sharing processing using code information shooting may continue to be executed, and connection may not be possible or useless processing may occur. Is prevented. Further, according to the present embodiment, when performing communication parameter sharing processing using code information shooting, the device operates as a management device for shooting or as a display device for displaying an image by negotiation between devices. Can be appropriately determined without duplication between apparatuses.
 また、本実施形態によれば、Wi-Fi Directにおいて、コード情報の撮影を利用する通信パラメータ共有処理を適用する場合、従来のWPSしか実行できない装置とも、Wi-Fi Directによる接続を行うことができる。したがって、コード情報の撮影を利用する通信パラメータ共有処理を実行可能な装置と従来のWPSしか実行できない装置とが混在する環境でも、Wi-Fi Directによって装置間の無線接続を確立することができ、ユーザの利便性が向上する。 In addition, according to the present embodiment, when communication parameter sharing processing using code information shooting is applied in Wi-Fi Direct, a device that can only execute conventional WPS can be connected by Wi-Fi Direct. it can. Therefore, even in an environment where a device that can execute communication parameter sharing processing using code information shooting and a device that can execute only conventional WPS are mixed, wireless connection between devices can be established by Wi-Fi Direct. User convenience is improved.
 続いて、カメラ32の動作の変形例について、図8に示すフローチャートを用いて説明する。図8に示すフローチャートは、制御部102が記憶部103に記憶されたコンピュータプログラムを読み出して実行することにより行われる処理の流れを示す。なお、図8に示すフローチャートに示すステップの一部または全部を例えばASIC等のハードウェアで実現する構成としても良い。なお、以下の説明において、カメラ32の処理として説明を行うが、スマートフォン33も同様の処理を実行することができるものとする。 Subsequently, a modified example of the operation of the camera 32 will be described using the flowchart shown in FIG. The flowchart shown in FIG. 8 shows the flow of processing performed when the control unit 102 reads and executes a computer program stored in the storage unit 103. Note that part or all of the steps shown in the flowchart shown in FIG. 8 may be realized by hardware such as ASIC. In addition, in the following description, although demonstrated as a process of the camera 32, the smart phone 33 shall also be able to perform the same process.
 カメラ32は、入力部109に対するユーザからの操作により、通信パラメータ設定モードに設定されると共にWi-Fi Directにより規定された機器検索処理(P2P Discovery)を実施する(S801)。 The camera 32 is set to the communication parameter setting mode by a user operation on the input unit 109 and performs device search processing (P2P Discovery) defined by Wi-Fi Direct (S801).
 機器検索処理では、Probe Request/Responseフレームを用いて相手装置を発見するための処理を実施する。S802の機器検索処理でやり取りされるProbe Request/Responseフレームに付与され得るP2P IEのP2P Capability Attributeの値は、コード情報方式に対応しているか否かを示すことができる。カメラ32は、P2P Capability Attributeの値を用いて。機器検索処理によって検出された相手装置がコード情報方式に対応しているか否かを識別することができる。図10は、本実施形態のP2P Capability AttributeのDeviceCapability Bitmapの値を例示した図である。DeviceCapability Bitmapのbit6の値が1だった場合、コード情報方式に対応していることを示す。bit6の値が0だった場合、その装置はコード情報方式に対応していないことを表す。 In the device search process, a process for discovering a partner device is performed using a Probe Request / Response frame. The value of the P2P capability attribute of the P2P IE that can be assigned to the Probe Request / Response frame exchanged in the device search process of S802 can indicate whether or not the code information method is supported. The camera 32 uses the value of P2P Capability Attribute. It is possible to identify whether the counterpart device detected by the device search process is compatible with the code information method. FIG. 10 is a diagram illustrating values of DeviceCapability Bitmap of P2P Capability Attribute according to the present embodiment. If the value of bit 6 of DeviceCapability Bitmap is 1, it indicates that the code information system is supported. If the value of bit 6 is 0, it indicates that the device does not support the code information system.
 また、S802の機器検索処理でやり取りされるProbe Request/Responseフレームに付与され得るWSC IEを含み得る。このWSC IEのConfiguration Methods Attributeの値は、撮影機能及び表示機能の有無を示すことができる。カメラ32は、WSC IEのConfiguration Methods Attributeの値を用いて、機器検索処理によって検出された相手装置の撮影機能及び表示機能の有無を識別することができる。図11は本実施形態のConfiguration Methodsの値を例示した図である。Configuration Methods Attributeの値が0x1000である場合、コード情報を撮影する機能を有することを示す。また、Configuration Methods Attributeの値が0x8000である場合、コード情報を表示する機能を有することを示す。Configuration Methods Attributeの値は、各機能を示すValueをOR演算することで複数の機能を有することを示すことが可能である。 Also, it may include a WSC IE that can be added to the Probe Request / Response frame exchanged in the device search process of S802. The value of Configuration Methods Attribute of this WSC IE can indicate the presence or absence of a shooting function and a display function. The camera 32 can identify the presence / absence of the photographing function and display function of the counterpart device detected by the device search process using the value of Configuration Methods Attribute of WSC IE. FIG. 11 is a diagram illustrating an example of Configuration Methods values according to this embodiment. When the value of Configuration Methods Attribute is 0x1000, it indicates that it has a function of photographing code information. In addition, when the value of Configuration Methods Attribute is 0x8000, this indicates that it has a function of displaying code information. The value of Configuration Methods Attribute can indicate that a value indicating each function is ORed to have a plurality of functions.
 カメラ32は、機器検索処理により発見した相手装置とコード情報方式が実施可能か判断する(S802)。実施可能かの判断は図12に示した表のように自装置と相手装置のコード情報方式の対応可否と撮影機能の有無によって判断する。 The camera 32 determines whether or not the code information method can be implemented with the partner device discovered by the device search process (S802). The determination as to whether or not it is feasible is made according to whether or not the own device and the partner device are compatible with the code information system and the presence or absence of a photographing function as shown in the table of FIG.
 例えば、カメラ32が撮影機能に対応せず、相手装置も撮影機能に対応していない場合、双方の装置が表示装置にのみ対応している装置であったとして、コード情報方式は不可と判断する。 For example, if the camera 32 does not support the shooting function and the counterpart device does not support the shooting function, it is determined that the code information method is not possible, assuming that both devices are compatible only with the display device. .
 コード情報方式が不可と判断した場合(S802のNo)、カメラ32は、エラー画面を表示し(S811)、処理を終了する。また、カメラ32は、相手装置が1台のみ発見された場合は、エラーを表示し、相手装置が複数台発見された場合は実施可能な相手装置と処理を継続することも可能である。 If it is determined that the code information method is not possible (No in S802), the camera 32 displays an error screen (S811) and ends the process. Further, the camera 32 can display an error when only one partner device is found, and can continue processing with a partner device that can be performed when a plurality of partner devices are found.
 コード情報方式が可能と判断した場合(S802のYes)、カメラ32は、相手装置と役割決定処理を実施する(S803)。本実施形態では、Wi-Fi Directにより規定された役割決定処理(Group Owner Negotiation)を実施するものとする。カメラ32は、S803において役割決定処を行うと、S404~S410と同様の処理を行う(S804~S810)。 If it is determined that the code information method is possible (Yes in S802), the camera 32 performs a role determination process with the counterpart device (S803). In the present embodiment, it is assumed that a role determination process (Group Owner Negotiation) defined by Wi-Fi Direct is performed. When performing the role determination process in S803, the camera 32 performs the same processes as in S404 to S410 (S804 to S810).
 カメラ32およびスマートフォン33との各通信装置間におけるコード情報を利用したWi-Fi Directによる接続シーケンスを図9に示す。図9では、カメラ32及びスマートフォン33ともにコード情報方式の通信パラメータ共有処理に対応しており、撮影機能も共に有している。また、役割決定処理に用いるIntent値はスマートフォンの方が大きい値を有しているものとする。 FIG. 9 shows a connection sequence by Wi-Fi Direct using code information between each communication device with the camera 32 and the smartphone 33. In FIG. 9, both the camera 32 and the smartphone 33 correspond to the communication parameter sharing process of the code information method, and have both the photographing functions. In addition, it is assumed that the smart phone has a larger Intent value used for the role determination process.
 カメラ32及びスマートフォン33は、通信パラメータ設定モードをユーザにより指示された場合、Wi-Fi Directにより規定された機器検索処理(P2P Discovery)を実施する(F901)。機器検索処理によりカメラ32及びスマートフォン33は相互にコード情報方式の対応可否と撮影機能の有無を識別した状態となっている。 When the communication parameter setting mode is instructed by the user, the camera 32 and the smartphone 33 perform device search processing (P2P Discovery) defined by Wi-Fi Direct (F901). Through the device search process, the camera 32 and the smartphone 33 are in a state in which the code information method support and the presence / absence of the photographing function are mutually identified.
 次にはカメラ32とスマートフォン33は、コード情報方式が実施可能かを判断し、エラー判定を実施する(F902、F903)。この例では、双方がコード情報方式に対応しており、撮影機能も共に有しているため処理を継続する。カメラ32とスマートフォン33は、F503~F509と同様の処理を実施する(F904~F910)。 Next, the camera 32 and the smartphone 33 determine whether the code information method can be implemented, and perform error determination (F902, F903). In this example, both are compatible with the code information system and have both photographing functions, so the processing is continued. The camera 32 and the smartphone 33 perform the same processing as F503 to F509 (F904 to F910).
 図8及び図9に説明した処理によれば、コード共有方式が実施できない機器との処理を行わないためセキュリティを向上することが可能となる。また、機器検索処理においてコード共有処理の実施可否を判断するため、コード共有方式の能力を有した機器のみと接続したい場合のリトライ処理が容易となる。 According to the processing described in FIG. 8 and FIG. 9, it is possible to improve security because processing with a device that cannot implement the code sharing method is not performed. In addition, since it is determined whether or not the code sharing process can be performed in the device search process, it is easy to perform a retry process when it is desired to connect only to a device having the ability of the code sharing method.
 (その他の実施形態)
 上述の実施形態において、Wi-Fi Directにより規定される通信パラメータを再利用可能なモードであるPersistent Groupを利用してもよい。また、この場合、GOとして動作する装置が、Wi-Fi Directにより規定されたInvitationを利用してPersistent Groupを形成するための接続処理を行ってもよい。
(Other embodiments)
In the above-described embodiment, Persistent Group, which is a mode in which communication parameters defined by Wi-Fi Direct can be reused, may be used. In this case, a device operating as a GO may perform connection processing for forming a Persistent Group using Invitation defined by Wi-Fi Direct.
 また、上述の実施形態においては、コード情報の画像撮影を利用して、通信パラメータの設定を行うための情報を装置間でやり取りする構成について説明した。しかし、コード情報の撮影に代えて、NFCやBluetooth(登録商標)などの無線通信を用いてもよい。また、IEEE802.11adもしくはトランスファージェット(TransferJet)(登録商標)等の無線通信を用いてもよい。 In the above-described embodiment, the configuration in which information for setting communication parameters is exchanged between apparatuses using image capturing of code information has been described. However, wireless communication such as NFC or Bluetooth (registered trademark) may be used instead of photographing code information. Alternatively, wireless communication such as IEEE802.11ad or TransferJet (registered trademark) may be used.
 なお、コード情報は表示部に表示されているコード情報だけではなく、通信機器の筺体にシールなどの形態で貼り付けられているコード情報であってよい。また、読みとるコード情報は取り扱い説明書や通信機器の販売時の段ボールなどの包装に貼り付けられているものであってもよい。また、コード情報は、バーコード等の一次元コードや他の二次元コードであっても良い。また、コード情報は、QRコードなどの機械が読み取り可能な情報に代えて、ユーザが読みとれる形式の情報であっても良い。 The code information is not limited to the code information displayed on the display unit, but may be code information pasted in the form of a seal or the like on the housing of the communication device. Further, the code information to be read may be affixed to a packaging such as an instruction manual or cardboard at the time of sales of the communication device. The code information may be a one-dimensional code such as a barcode or another two-dimensional code. The code information may be information in a format that can be read by the user, instead of information that can be read by a machine such as a QR code.
 また、各実施形態において、装置間の通信をIEEE802.11準拠の無線LAN通信により行う場合について説明したが、これに限る物ではない。例えば、ワイヤレスUSB、MBOA、Bluetooth(登録商標)、UWB、ZigBee、NFC等の無線通信媒体を用いて実施してもよい。ここで、MBOAは、Multi Band OFDM Allianceの略である。また、UWBは、ワイヤレスUSB、ワイヤレス1394、WINETなどが含まれる。 In each embodiment, the case where communication between apparatuses is performed by wireless LAN communication conforming to IEEE 802.11 has been described. However, the present invention is not limited to this. For example, you may implement using wireless communication media, such as wireless USB, MBOA, Bluetooth (trademark), UWB, ZigBee, and NFC. Here, MBOA is an abbreviation for Multi Band OFDM Alliance. UWB includes wireless USB, wireless 1394, WINET, and the like.
 以上の説明によれば、Wi-Fi Directにおいて、通信パラメータの共有を行う際に画像から取得した情報を用いる方式を適用することが可能となる。 According to the above description, it is possible to apply a method using information acquired from an image when sharing communication parameters in Wi-Fi Direct.
 本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
 本発明は上記実施の形態に制限されるものではなく、本発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、本発明の範囲を公にするために以下の請求項を添付する。 The present invention is not limited to the above embodiment, and various changes and modifications can be made without departing from the spirit and scope of the present invention. Therefore, in order to make the scope of the present invention public, the following claims are attached.
 本願は、2016年01月18日提出の日本国特許出願特願2016-007427及び2016年11月04日提出の日本国特許出願特願2016-216633を基礎として優先権を主張するものであり、その記載内容の全てをここに援用する。 This application claims priority on the basis of Japanese Patent Application No. 2016-007427 filed on January 18, 2016 and Japanese Patent Application No. 2016-216633 filed on November 04, 2016, All the descriptions are incorporated herein.

Claims (19)

  1.  通信装置であって、
     Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される所定の情報であって、撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理において前記通信相手装置が前記画像を撮影する役割として動作可能か否かを示す前記所定の情報に基づいて、前記通信装置が前記画像を撮影する役割として動作するか否かを決定する決定手段と、
     前記決定手段による決定に従った役割で前記通信相手装置と前記通信パラメータ共有処理を実行し、無線接続を確立するための通信パラメータを共有する第1共有手段と、
    を有し、
     前記通信装置は、前記第1共有手段により共有された通信パラメータに基づいて、前記通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする通信装置。
    A communication device,
    In the communication parameter sharing process executed based on information acquired from a captured image, which is predetermined information received from a communication partner device to establish a wireless connection by Wi-Fi Direct, the communication partner device Determining means for determining whether or not the communication device operates as a role of capturing the image, based on the predetermined information indicating whether or not the communication device is operable as a role of capturing the image;
    A first sharing means for executing the communication parameter sharing process with the communication partner device in a role according to the determination by the determination means, and sharing a communication parameter for establishing a wireless connection;
    Have
    The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
  2.  前記決定手段は、前記通信相手装置が前記画像を撮影する役割として動作可能であることを前記所定の情報が示す場合、Wi-Fi Directにおいて役割を決定するための情報であるIntent値に基づいて、前記通信装置が前記画像を撮影する役割として動作するか否かを決定することを特徴とする請求項1に記載の通信装置。 When the predetermined information indicates that the communication partner device is operable as a role to capture the image, the determination means is based on an Intent value that is information for determining a role in Wi-Fi Direct. The communication apparatus according to claim 1, wherein the communication apparatus determines whether or not the communication apparatus operates as a role of capturing the image.
  3. 前記決定手段は、前記通信相手装置が前記画像を撮影する役割として動作可能であることを前記所定の情報が示し、前記通信装置が前記画像を撮影する役割として動作可能ではない場合、前記通信装置が前記画像を撮影する役割として動作せず、前記画像を表示する役割として動作することを決定することを特徴とする請求項1または2に記載の通信装置。 When the predetermined information indicates that the communication counterpart device is operable as a role of taking the image, and the communication device is not operable as a role of taking the image, The communication apparatus according to claim 1, wherein the communication apparatus determines not to operate as a role of capturing the image but to operate as a role of displaying the image.
  4.  前記通信装置が前記画像を撮影する役割として動作すると前記決定手段により決定された場合、前記通信装置は、グループオーナーとして動作することを決定することを特徴とする請求項1乃至3のいずれか1項に記載の通信装置。 4. The communication apparatus according to claim 1, wherein the communication apparatus determines to operate as a group owner when the determination unit determines that the communication apparatus operates as a role of capturing the image. 5. The communication device according to item.
  5.  前記通信装置が前記画像を撮影する役割として動作しないと前記決定手段により決定された場合、前記通信装置は、クライアントとして動作することを決定することを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。 5. The communication device according to claim 1, wherein the communication device determines to operate as a client when the determination unit determines that the communication device does not operate as a role of capturing the image. The communication device according to item.
  6.  WPS(Wi-Fi Protected Setup)で規定されたプロトコルに従った通信を実行し、無線接続を確立するための通信パラメータを前記通信相手装置と共有する第2共有手段と、
     Wi-Fi Directによって無線接続を確立する際に、前記第1共有手段によって通信パラメータを共有するか前記第2共有手段によって通信パラメータを共有するかを前記通信相手装置とのネゴシエーションに基づいて判定する判定手段と、を更に有することを特徴とする請求項1乃至5のいずれか1項に記載の通信装置。
    A second sharing means for executing communication according to a protocol defined by WPS (Wi-Fi Protected Setup) and sharing a communication parameter for establishing a wireless connection with the communication partner device;
    When establishing a wireless connection by Wi-Fi Direct, whether to share communication parameters by the first sharing unit or to share communication parameters by the second sharing unit is determined based on negotiation with the communication partner device The communication apparatus according to claim 1, further comprising a determination unit.
  7.  通信装置であって、
     撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理により、無線接続を確立するための通信パラメータを通信相手装置と共有する第1共有手段と、
     WPS(Wi-Fi Protected Setup)で規定されたプロトコルに従った通信を実行し、無線接続を確立するための通信パラメータを通信相手装置と共有する第2共有手段と、
     Wi-Fi Directによって無線接続を確立するために通信される情報に基づいて、前記第1共有手段によって通信パラメータを共有するか前記第2共有手段によって通信パラメータを共有するかを判定する判定手段と、を有し、
     前記通信装置は、前記判定手段による判定された前記第1共有手段または前記第2共有手段によって共有された通信パラメータに基づいて、通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする通信装置。
    A communication device,
    A first sharing means for sharing a communication parameter for establishing a wireless connection with a communication partner device by a communication parameter sharing process executed based on information acquired from a captured image;
    A second sharing means for executing communication according to a protocol defined by WPS (Wi-Fi Protected Setup) and sharing a communication parameter for establishing a wireless connection with a communication partner device;
    Determining means for determining whether to share communication parameters by the first sharing means or to share communication parameters by the second sharing means based on information communicated to establish a wireless connection by Wi-Fi Direct; Have
    The communication apparatus establishes a wireless connection by Wi-Fi Direct with a communication partner apparatus based on the communication parameter shared by the first sharing means or the second sharing means determined by the determination means. A communication device.
  8.  前記判定手段は、前記通信相手装置から受信される情報に前記通信パラメータ共有処理が実行可能であることを示す情報が含まれている場合、前記第1共有手段によって通信パラメータを共有すると判定することを特徴とする請求項6または7に記載の通信装置。 The determination means determines that the communication parameter is shared by the first sharing means when the information received from the communication partner apparatus includes information indicating that the communication parameter sharing processing can be executed. The communication device according to claim 6 or 7, characterized by the above.
  9.  前記判定手段は、前記通信相手装置から受信される情報に前記通信パラメータ共有処理が実行可能であることを示す情報が含まれていない場合、前記第2共有手段によって通信パラメータを共有すると判定することを特徴とする請求項6乃至8のいずれか1項に記載の通信装置。 The determination unit determines that the communication parameter is shared by the second sharing unit when the information received from the communication partner device does not include information indicating that the communication parameter sharing process is executable. The communication apparatus according to claim 6, wherein:
  10.  前記判定手段は、前記通信相手装置から受信される情報に前記通信パラメータ共有処理が実行可能であることを示す情報が含まれている場合、ユーザ操作に基づいて、前記第1共有手段によって通信パラメータを共有するか前記第2共有手段によって通信パラメータを共有するかを判定することを特徴とする請求項6乃至9のいずれか1項に記載の通信装置。 When the information received from the communication partner device includes information indicating that the communication parameter sharing process can be executed, the determination unit performs communication parameters using the first sharing unit based on a user operation. 10. The communication apparatus according to claim 6, wherein it is determined whether to share a communication parameter by the second sharing unit. 10.
  11.  通信装置であって、
     撮影された画像に基づいて実行される通信パラメータ共有処理を、Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される情報に基づいて前記通信相手装置が実行可能か否かを判定する判定手段と、
     前記通信パラメータ共有処理を前記通信相手装置が実行可能であると前記判定手段により判定された場合、前記通信相手装置と前記通信パラメータ共有処理を実行し、無線接続を確立するための通信パラメータを共有する第1共有手段と、
     前記通信装置は、前記第1共有手段により共有された通信パラメータに基づいて、前記通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする通信装置。
    A communication device,
    Whether or not the communication partner apparatus can execute the communication parameter sharing process executed based on the photographed image based on information received from the communication partner apparatus in order to establish a wireless connection by Wi-Fi Direct. Determination means for determining;
    When the determination means determines that the communication partner device can execute the communication parameter sharing process, the communication parameter sharing process is executed with the communication partner device to share a communication parameter for establishing a wireless connection. First sharing means to
    The communication device establishes a wireless connection by Wi-Fi Direct with the communication partner device based on a communication parameter shared by the first sharing means.
  12.  前記通信パラメータ共有処理を前記通信相手装置が実行可能ではないと前記判定手段により判定された場合、エラーを表示する表示手段を更に有することを特徴とする請求項11に記載の通信装置。 12. The communication apparatus according to claim 11, further comprising a display unit that displays an error when the determination unit determines that the communication partner device is not capable of executing the communication parameter sharing process.
  13.  前記画像は、バーコード、QRコードまたはCPコードを撮影して得た画像であることを特徴とする請求項1乃至12のいずれか1項に記載の通信装置。 The communication apparatus according to any one of claims 1 to 12, wherein the image is an image obtained by photographing a bar code, a QR code, or a CP code.
  14.  前記通信パラメータは、SSID、暗号鍵、暗号方式、ネットワークキー、認証鍵、認証方式のうち少なくともいずれか一つを含むことを特徴とする請求項1乃至13のいずれか1項に記載の通信装置。 The communication apparatus according to claim 1, wherein the communication parameter includes at least one of an SSID, an encryption key, an encryption method, a network key, an authentication key, and an authentication method. .
  15.  前記通信パラメータは、IEEE802.11規格に準拠した通信を行うための情報であることを特徴とする請求項1乃至14のいずれか1項に記載の通信装置。 The communication apparatus according to any one of claims 1 to 14, wherein the communication parameter is information for performing communication conforming to the IEEE 802.11 standard.
  16.  通信方法であって、
     Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される所定の情報であって、撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理において前記通信相手装置が前記画像を撮影する役割として動作可能か否かを示す前記所定の情報に基づいて、通信装置が前記画像を撮影する役割として動作するか否かを決定し、
     当該決定に従った役割で前記通信相手装置と前記通信パラメータ共有処理により共有された通信パラメータに基づいて、前記通信装置と前記通信相手装置とがWi-Fi Directによって無線接続を確立することを特徴とする通信方法。
    A communication method,
    In the communication parameter sharing process executed based on information acquired from a captured image, which is predetermined information received from a communication partner device to establish a wireless connection by Wi-Fi Direct, the communication partner device Determining whether or not the communication device operates as a role of capturing the image based on the predetermined information indicating whether or not the device can operate as a role of capturing the image;
    The communication device and the communication partner device establish a wireless connection by Wi-Fi Direct based on the communication parameter shared by the communication parameter sharing process with the communication partner device in a role according to the determination. Communication method.
  17.  通信方法であって、
     Wi-Fi Directによって無線接続を確立するために通信される情報に基づいて、撮影された画像から取得された情報に基づいて実行される通信パラメータ共有処理による通信パラメータの共有を行うかWPS(Wi-Fi Protected Setup)で規定されたプロトコルに従った通信を実行し、通信パラメータの共有を行うかを判定し、
     判定された前記通信パラメータ共有処理またはWPSで規定されたプロトコルに従った通信により共有された通信パラメータに基づいて、Wi-Fi Directによって無線接続を確立することを特徴とする通信方法。
    A communication method,
    Based on information communicated to establish a wireless connection by Wi-Fi Direct, communication parameters are shared by communication parameter sharing processing executed based on information acquired from the captured image, or WPS (Wi -Perform communication according to the protocol specified in Fi Protected Setup), determine whether to share communication parameters,
    A communication method comprising establishing a wireless connection by Wi-Fi Direct based on the determined communication parameter sharing process or a communication parameter shared by communication according to a protocol defined by WPS.
  18.  通信方法であって、
     撮影された画像に基づいて実行される通信パラメータ共有処理を、Wi-Fi Directによって無線接続を確立するために通信相手装置から受信される情報に基づいて、前記通信相手装置が実行可能か否かを判定し、
     前記通信パラメータ共有処理を前記通信相手装置が実行可能であると前記判定手段により判定された場合、前記通信相手装置と前記通信パラメータ共有処理を実行し、無線接続を確立するための通信パラメータを共有し、
     共有された通信パラメータに基づいて、前記通信相手装置とWi-Fi Directによって無線接続を確立することを特徴とする通信方法。
    A communication method,
    Whether or not the communication partner apparatus can execute communication parameter sharing processing executed based on the captured image based on information received from the communication partner apparatus to establish a wireless connection by Wi-Fi Direct. Determine
    When the determination means determines that the communication partner device can execute the communication parameter sharing process, the communication parameter sharing process is executed with the communication partner device to share a communication parameter for establishing a wireless connection. And
    A communication method comprising establishing a wireless connection by Wi-Fi Direct with the communication partner device based on a shared communication parameter.
  19.  請求項1乃至15のいずれか1項に記載の通信装置としてコンピュータを動作させるためのプログラム。 A program for operating a computer as the communication device according to any one of claims 1 to 15.
PCT/JP2016/089089 2016-01-18 2016-12-28 Communication device, communication method and program WO2017126311A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680079178.7A CN108476542B (en) 2016-01-18 2016-12-28 Communication device, communication method, and program
US16/036,515 US10966261B2 (en) 2016-01-18 2018-07-16 Communication apparatus, communication method, and program

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2016-007427 2016-01-18
JP2016007427 2016-01-18
JP2016-216633 2016-11-04
JP2016216633A JP6827773B2 (en) 2016-01-18 2016-11-04 Communication equipment, communication methods and programs

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/036,515 Continuation US10966261B2 (en) 2016-01-18 2018-07-16 Communication apparatus, communication method, and program

Publications (1)

Publication Number Publication Date
WO2017126311A1 true WO2017126311A1 (en) 2017-07-27

Family

ID=59361635

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/089089 WO2017126311A1 (en) 2016-01-18 2016-12-28 Communication device, communication method and program

Country Status (2)

Country Link
CN (1) CN108476542B (en)
WO (1) WO2017126311A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10976971B2 (en) 2018-09-28 2021-04-13 Brother Kogyo Kabushiki Kaisha Establishing wireless connection, by using terminal device, after determining which of external device or terminal device that communication device is to establish connection

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7262950B2 (en) * 2018-09-11 2023-04-24 キヤノン株式会社 Communication device, communication method and program
JP7388884B2 (en) * 2019-11-11 2023-11-29 アズビル株式会社 Communication device, communication control system, and communication control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140269646A1 (en) * 2013-03-14 2014-09-18 Qualcomm Incorporated WiFi Direct Connection Using Machine-Readable Labels
JP2015525550A (en) * 2013-06-28 2015-09-03 華為技術有限公司Huawei Technologies Co.,Ltd. Method, apparatus and system for establishing a data connection

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101814810B1 (en) * 2011-08-08 2018-01-04 삼성전자주식회사 Method and apparatus for wi-fi p2p group formation using wi-fi direct
CN104823517B (en) * 2012-11-29 2019-04-23 Lg电子株式会社 Method and device for the communication being arranged in the direct-connected service system of WI-FI
CN103916978B (en) * 2013-01-08 2019-04-26 联想(北京)有限公司 It is a kind of to establish the method being wirelessly connected and electronic equipment
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140269646A1 (en) * 2013-03-14 2014-09-18 Qualcomm Incorporated WiFi Direct Connection Using Machine-Readable Labels
JP2015525550A (en) * 2013-06-28 2015-09-03 華為技術有限公司Huawei Technologies Co.,Ltd. Method, apparatus and system for establishing a data connection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10976971B2 (en) 2018-09-28 2021-04-13 Brother Kogyo Kabushiki Kaisha Establishing wireless connection, by using terminal device, after determining which of external device or terminal device that communication device is to establish connection
US11531505B2 (en) 2018-09-28 2022-12-20 Brother Kogyo Kabushiki Kaisha Non-transitory computer-readable medium storing computer-readable instructions for terminal device and terminal device
US11709639B2 (en) 2018-09-28 2023-07-25 Brother Kogyo Kabushiki Kaisha Non-transitory computer-readable medium storing computer-readable instructions for terminal device and terminal device

Also Published As

Publication number Publication date
CN108476542B (en) 2022-01-11
CN108476542A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
JP6702833B2 (en) Communication device, control of communication device and program
JP6545026B2 (en) Communication device, communication method and program
JP6614983B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
JP6827773B2 (en) Communication equipment, communication methods and programs
JP6465723B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6525714B2 (en) Communication device, control method of communication device, and program
JP6482299B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6444200B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6704738B2 (en) Communication device, communication method, and program
JP2017028460A (en) Communication device, communication method and program
JP2017028454A (en) Communication apparatus, sharing method, and program
US10575171B2 (en) Communication apparatus, communication method, and storage medium
CN112655272B (en) Communication device, communication method, and non-transitory computer-readable storage medium
JP6570356B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2017126311A1 (en) Communication device, communication method and program
JP6472259B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2018042057A (en) Communication apparatus, control method for communication apparatus, and program
JP6525623B2 (en) Communication device, control method of communication device, and program
CN112655275B (en) Communication apparatus, communication method, and computer-readable storage medium
JP2019195207A (en) Communication apparatus, sharing method, and program
JP2016187135A (en) Communication apparatus, communication method and program
JP6525783B2 (en) Communication device, providing method, and program
JP6308719B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886549

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886549

Country of ref document: EP

Kind code of ref document: A1