CN104053248A - Electronic Apparatus - Google Patents

Electronic Apparatus Download PDF

Info

Publication number
CN104053248A
CN104053248A CN201310409981.0A CN201310409981A CN104053248A CN 104053248 A CN104053248 A CN 104053248A CN 201310409981 A CN201310409981 A CN 201310409981A CN 104053248 A CN104053248 A CN 104053248A
Authority
CN
China
Prior art keywords
pattern
communication
control unit
electronic device
lighting device
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201310409981.0A
Other languages
Chinese (zh)
Inventor
笹井敏彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Lighting and Technology Corp
Original Assignee
Toshiba Lighting and Technology Corp
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
Application filed by Toshiba Lighting and Technology Corp filed Critical Toshiba Lighting and Technology Corp
Publication of CN104053248A publication Critical patent/CN104053248A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本发明提供一种电子设备,可容易地设定网络参数,该电子设备包括作为电子装置的照明装置、及作为第一通信装置的通信适配器(120)。照明装置包括检测部(116)及通信设备控制部(117)。检测部(116)从表示作为规定设备的开关的操作状态的码型中,检测规定码型,所述开关用于对照明装置进行控制。当利用检测部(116)检测到规定码型时,通信设备控制部(117)以设定网络参数的方式控制通信适配器(120)。通信适配器(120)包括作为第一通信部的无线通信电路。无线通信电路根据所设定的网络参数而与作为其他通信装置的其他通信适配器进行通信。

The present invention provides an electronic device that can easily set network parameters, and the electronic device includes a lighting device as an electronic device and a communication adapter (120) as a first communication device. The lighting device includes a detection unit (116) and a communication device control unit (117). A detection unit (116) detects a predetermined code pattern from a pattern indicating an operation state of a switch, which is a predetermined device, and the switch is used to control the lighting device. When a predetermined code pattern is detected by the detection unit (116), the communication device control unit (117) controls the communication adapter (120) so as to set network parameters. A communication adapter (120) includes a wireless communication circuit as a first communication unit. The wireless communication circuit communicates with other communication adapters as other communication devices according to the set network parameters.

Description

电子设备Electronic equipment

技术领域technical field

本发明的实施方式涉及一种电子设备。Embodiments of the present invention relate to an electronic device.

背景技术Background technique

近年来,已知有可以实现对设置在住宅内的电器(electrical appliances)等电子设备进行远程操作的家庭网络系统(home network system)。在这种家庭网络系统中,可以经由网络监视电子设备的动作状态及耗电等,且可以通过经由网络对电子设备发送控制信号而控制电子设备的动作状态。因此,对应于家庭网络系统的电子设备具有经由网络进行通信的通信功能。例如,在电子设备中设置用来与设置在住宅内的接入点(access point)进行通信的通信适配器(adapter)。通信适配器与接入点是利用例如蓝牙(Bluetooth)(注册商标)等近距离无线通信标准来进行通信。In recent years, a home network system (home network system) capable of remotely operating electronic devices such as electrical appliances installed in a house has been known. In such a home network system, the operating state and power consumption of the electronic device can be monitored via the network, and the operating state of the electronic device can be controlled by sending a control signal to the electronic device via the network. Therefore, electronic devices corresponding to the home network system have a communication function to communicate via the network. For example, an electronic device is provided with a communication adapter (adapter) for communicating with an access point (access point) installed in a house. The communication adapter and the access point communicate using a short-range wireless communication standard such as Bluetooth (registered trademark).

这里,当进行所述通信适配器与接入点的通信时,进行如下所述的操作。即,进行如下操作:例如由用户(user)按下设置在通信适配器上的配对模式(pairing mode)用按钮(button)等,使通信适配器转变为配对模式,从而使通信适配器与接入点进行配对。然而,在设置着通信适配器的电子设备是例如设置在天花板上的照明装置等的情况下,通信适配器也设置在天花板上,对用户而言,通信适配器不在容易触及的范围内。因此,难以进行按下通信适配器的按钮的操作。如此一来,在以往的电子设备中,有难以设定网络参数(network parameter)的情况。Here, when performing communication between the communication adapter and the access point, operations as described below are performed. That is, an operation is performed in which, for example, a user (user) presses a pairing mode (pairing mode) button (button) provided on the communication adapter to switch the communication adapter to the pairing mode, thereby making the communication adapter and the access point communicate with each other. pair. However, when the electronic device in which the communication adapter is installed is, for example, a lighting device installed on the ceiling, the communication adapter is also installed on the ceiling, and the communication adapter is not within easy reach of the user. Therefore, it is difficult to perform the operation of pressing the button of the communication adapter. As a result, it is sometimes difficult to set network parameters in conventional electronic devices.

而且,当电子设备与其他电子设备进行通信时,有如下情况:在电子设备上连接终端,由用户操作终端,而对各电子设备设定多个电子设备各自的临时地址(address)。然而,在如上所述那样电子设备是设置在天花板上的照明装置等的情况下,对用户而言,难以进行在容易触及的范围外的电子设备上连接终端的操作。如此一来,当对各电子设备设定临时地址时,对于以往的电子设备也有难以设定网络参数的情况。Furthermore, when an electronic device communicates with another electronic device, a terminal is connected to the electronic device, and a user operates the terminal to set a plurality of temporary addresses for each electronic device. However, when the electronic device is a lighting device or the like installed on the ceiling as described above, it is difficult for the user to connect the terminal to the electronic device out of easy reach. In this way, when setting temporary addresses for each electronic device, it may be difficult to set network parameters for conventional electronic devices.

[背景技术文献][Background Art Document]

[专利文献][Patent Document]

[专利文献1]日本专利特开2012-175148号公报[Patent Document 1] Japanese Patent Laid-Open No. 2012-175148

发明内容Contents of the invention

[发明要解决的课题][Problem to be solved by the invention]

本发明要解决的课题在于提供一种可以容易地设定网络参数的电子设备。The problem to be solved by the present invention is to provide an electronic device that can easily set network parameters.

[解决课题的手段][means to solve the problem]

实施方式的电子设备包括电子装置及通信装置。电子装置包括检测部及控制部。检测部从表示用于对电子装置进行控制的规定设备的操作状态的码型(pattern)中,检测规定码型。当利用检测部检测到规定码型时,控制部以设定网络参数的方式控制通信装置。通信装置包括第一通信部。第一通信部根据所设定的网络参数而与其他通信装置进行通信。An electronic device according to an embodiment includes an electronic device and a communication device. The electronic device includes a detection unit and a control unit. The detection unit detects a predetermined pattern from patterns indicating an operation state of a predetermined device for controlling the electronic device. When a predetermined code pattern is detected by the detection unit, the control unit controls the communication device so as to set network parameters. The communication device includes a first communication unit. The first communication unit communicates with other communication devices according to the set network parameters.

附图说明Description of drawings

图1是表示第一实施方式的家电设备控制系统的构成例的图。FIG. 1 is a diagram showing a configuration example of a home appliance control system according to a first embodiment.

图2是示意性地表示第一实施方式的电子设备的构成例的图。FIG. 2 is a diagram schematically showing a configuration example of an electronic device according to the first embodiment.

图3是表示规定码型的一例的图。Fig. 3 is a diagram showing an example of a predetermined code pattern.

图4是表示第一实施方式的照明装置所包括的控制部的功能构成的一例的图。4 is a diagram showing an example of a functional configuration of a control unit included in the lighting device according to the first embodiment.

图5是表示第一实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。5 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the first embodiment.

图6是表示第二实施方式的家电设备控制系统1的构成例的图。FIG. 6 is a diagram showing a configuration example of a home appliance control system 1 according to the second embodiment.

图7是表示第二实施方式的遥控器的一例的图。FIG. 7 is a diagram showing an example of a remote controller according to a second embodiment.

图8是表示规定码型的一例的图。Fig. 8 is a diagram showing an example of a predetermined code pattern.

图9是示意性地表示第二实施方式的电子设备的构成例的图。FIG. 9 is a diagram schematically showing a configuration example of an electronic device according to a second embodiment.

图10是表示第二实施方式的照明装置所包括的控制部的功能构成的一例的图。10 is a diagram illustrating an example of a functional configuration of a control unit included in the lighting device according to the second embodiment.

图11是表示第二实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。11 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the second embodiment.

图12是表示第三实施方式的家电设备控制系统的构成例的图。Fig. 12 is a diagram showing a configuration example of a home appliance control system according to a third embodiment.

图13是示意性地表示第二实施方式的电子设备的构成例的图。FIG. 13 is a diagram schematically showing a configuration example of an electronic device according to a second embodiment.

图14是表示第三实施方式的照明装置所包括的控制部的功能构成的一例的图。14 is a diagram showing an example of a functional configuration of a control unit included in the lighting device according to the third embodiment.

图15是表示地址表的数据结构的一例的图。FIG. 15 is a diagram showing an example of a data structure of an address table.

图16是表示第三实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。16 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the third embodiment.

符号的说明:Explanation of symbols:

1:家电设备控制系统1: Home appliance equipment control system

2、50、60:家庭网络系统2, 50, 60: home network system

3、20:用户终端3. 20: User terminal

4:管理服务器4: Management server

5:网络5: Network

10:网关装置10: Gateway device

30:接入点30: access point

40、43:规定码型40, 43: Specified code pattern

41:商用电源41: Commercial power supply

42:开关42: switch

100、1001~1003、200、2001~2003、300、3001~3003:电子设备100, 100 1 to 100 3 , 200, 200 1 to 200 3 , 300, 300 1 to 300 3 : Electronic equipment

110、1101~1103、210、2101~2103、310、3101~3103:照明装置110, 110 1 to 110 3 , 210, 210 1 to 210 3 , 310, 310 1 to 310 3 : Lighting device

111:电源电路111: Power circuit

112:照明部112: Department of Lighting

113、123:通信电路113, 123: communication circuit

114:电源监视电路114: Power monitoring circuit

115:控制部115: Control Department

116:检测部116: Detection Department

117:通信设备控制部117: Communication Equipment Control Department

120、1201~1203:通信适配器120, 120 1 to 120 3 : Communication adapter

122:无线通信电路122: Wireless communication circuit

124、212、312:控制部124, 212, 312: Control Department

211:接收机211: Receiver

213、313:检测部213, 313: Detection Department

214、314:通信设备控制部214, 314: Communication Equipment Control Department

500:遥控器500: remote control

501:全光按钮501: Full Light Button

502:熄灯按钮502: Lights off button

503、504:亮度调整按钮503, 504: Brightness adjustment buttons

505、506:光色调整按钮505, 506: light color adjustment buttons

S101~S102、S201~S202、S301~S308:步骤S101~S102, S201~S202, S301~S308: steps

T1、T2、T3、T4:时间T1, T2, T3, T4: time

具体实施方式Detailed ways

以下所说明的实施方式的电子设备100包括作为电子装置的照明装置110、及作为第一通信装置的通信适配器120。照明装置110包括检测部116及通信设备控制部117。检测部116从表示作为规定设备的开关(switch)42或遥控器(remote controller)500的操作状态的码型中,检测规定码型,所述规定设备用于对照明装置110进行控制。当利用检测部116检测到规定码型时,通信设备控制部117以设定网络参数的方式控制通信适配器120。通信适配器120包括作为第一通信部的无线通信电路122。无线通信电路122根据所设定的网络参数而与作为其他通信装置的其他通信适配器进行通信。The electronic device 100 of the embodiment described below includes a lighting device 110 as an electronic device, and a communication adapter 120 as a first communication device. The lighting device 110 includes a detection unit 116 and a communication device control unit 117 . The detection unit 116 detects a predetermined pattern from a pattern indicating an operation state of a switch 42 or a remote controller 500 as a predetermined device for controlling the lighting device 110 . When a predetermined code pattern is detected by the detection unit 116, the communication device control unit 117 controls the communication adapter 120 so as to set network parameters. The communication adapter 120 includes a wireless communication circuit 122 as a first communication section. The wireless communication circuit 122 communicates with other communication adapters as other communication devices according to the set network parameters.

而且,以下所说明的实施方式的检测部116、313从表示开关42的操作状态的码型中,检测如与表示开关42的通常操作时的操作状态的码型不同的规定码型,所述开关42用于控制从商用电源41向电子设备100供给电力且设置在墙壁上。Furthermore, the detecting units 116 and 313 of the embodiment described below detect a predetermined pattern different from the pattern representing the operating state of the switch 42 during normal operation from among the pattern representing the operating state of the switch 42. The switch 42 is used to control power supply from the commercial power supply 41 to the electronic device 100 and is installed on the wall.

而且,以下所说明的实施方式的检测部213、313从表示全光按钮501的操作状态的码型中,检测如与表示全光按钮501的通常操作时的操作状态的码型不同的规定码型,所述全光按钮501设置在向电子装置210、310发送指示的遥控器500上。Furthermore, the detection units 213 and 313 of the embodiment described below detect a predetermined code different from the code pattern indicating the operation state of the all light button 501 during normal operation from the code patterns representing the operation state of the all light button 501. type, the full light button 501 is set on the remote controller 500 that sends instructions to the electronic devices 210 and 310 .

而且,以下所说明的实施方式的通信设备控制部117、214是在利用检测部116、213检测到规定码型的情况下,将进行配对的指示发送至作为通信装置的通信适配器120。然后,无线通信电路122根据配对的结果而与其他通信适配器进行通信。Furthermore, the communication device control units 117 and 214 of the embodiments described below transmit an instruction to perform pairing to the communication adapter 120 as a communication device when a predetermined pattern is detected by the detection units 116 and 213 . Then, the wireless communication circuit 122 communicates with other communication adapters according to the pairing result.

此外,以下所说明的实施方式的作为电子装置的照明装置310还包括与其他电子设备进行通信的作为第二通信部的通信电路113。而且,当利用检测部313检测到规定码型时,通信设备控制部314针对电子设备310及其他电子设备的各电子设备产生随机数,将所产生的随机数设定为临时地址,且将所设定的临时地址发送至通信电路113。通信电路113根据从通信设备控制部314发送来的临时地址而与其他电子设备进行通信。In addition, the lighting device 310 as an electronic device according to the embodiment described below further includes a communication circuit 113 as a second communication unit that communicates with other electronic devices. Moreover, when a predetermined code pattern is detected by the detection unit 313, the communication device control unit 314 generates a random number for each electronic device of the electronic device 310 and other electronic devices, sets the generated random number as a temporary address, and sets the The set temporary address is sent to the communication circuit 113 . The communication circuit 113 communicates with other electronic devices based on the temporary address sent from the communication device control unit 314 .

而且,以下所说明的实施方式的规定码型是如最后成为接通(ON)的码型。Furthermore, the predetermined pattern in the embodiment described below is a pattern that turns ON (ON) last.

以下,参照附图对各实施方式的电子设备进行说明。在各实施方式中对相同的部位附上相同的符号,并省略重复的说明。此外,以下的实施方式中所说明的电子设备只不过表示一例。例如,在以下的实施方式中,设电子设备为照明器具而进行说明,但并不限定于此,电子设备也可以是空调装置、洗衣机、热水器、电锁、内部对讲机(interphone)(门内外通话器(door phone))等生活家电;电视机(television set)、及电视录像机等音频(audio)·视频(visual)设备等。此外,电子设备也可以是游戏机(gamemachine)等娱乐(amusement)家电、个人计算机(personal computer)等信息家电、及与太阳能发电有关的设备等。也就是说,电子设备也可以是广大所有的家庭电器。Hereinafter, electronic devices according to the respective embodiments will be described with reference to the drawings. In each embodiment, the same reference numerals are given to the same parts, and overlapping descriptions will be omitted. In addition, the electronic devices described in the following embodiments are merely examples. For example, in the following embodiments, the electronic equipment is described as a lighting fixture, but it is not limited to this, and the electronic equipment may also be an air conditioner, a washing machine, a water heater, an electric lock, an interphone (interphone) (door and outdoor communication) Household appliances such as door phones; audio and visual equipment such as television sets and video recorders. In addition, the electronic device may be an entertainment (amusement) home appliance such as a game machine (game machine), an information appliance such as a personal computer (personal computer), or a device related to solar power generation. That is to say, the electronic device may also be all household electrical appliances.

[第一实施方式][first embodiment]

图1是表示第一实施方式的家电设备控制系统1的构成例的图。图1所示的家电设备控制系统1是例如实现对设置在住宅内的家电等进行控制或监视的系统,称为住宅能源管理系统(Home Energy Management System,HEMS)等。该家电设备控制系统1适用例如HEMS标准协议(protocol)的“能源节约与家庭照护网络(Energy Conservation and Homecare Network,ECHONET)”或“ECHONET精简版(ECHONET Lite)”。FIG. 1 is a diagram showing a configuration example of a home appliance control system 1 according to the first embodiment. The home appliance control system 1 shown in FIG. 1 is, for example, a system that realizes control or monitoring of home appliances installed in a house, and is called a Home Energy Management System (HEMS) or the like. The home appliance control system 1 is applicable to, for example, the "Energy Conservation and Homecare Network (ECHONET)" or "ECHONET Lite" of the HEMS standard protocol.

如图1所示,在家电设备控制系统1中包括家庭网络系统2、用户终端3及管理服务器(server)4。家庭网络系统2、用户终端3及管理服务器4经由网络5以可通过有线或无线进行通信的方式连接。该网络5相当于例如因特网(internet)或企业内部网(intranet)。此外,图1所示的家庭网络系统2、用户终端3、管理服务器4的数量只不过为一例,可以根据家电设备控制系统1的构成进行适当变更。As shown in FIG. 1 , a home appliance control system 1 includes a home network system 2 , user terminals 3 and a management server (server) 4 . The home network system 2 , user terminal 3 , and management server 4 are connected via a network 5 in a wired or wireless manner. This network 5 corresponds to, for example, the Internet (internet) or an intranet (intranet). In addition, the number of the home network system 2, the user terminal 3, and the management server 4 shown in FIG.

家庭网络系统2组建在例如用户住宅内或店铺内等,包括网关(gateway)装置10、用户终端20、接入点30、及电子设备1001~1003等。此外,图1所示的电子设备1001~1003的数量只不过为一例,可以根据家庭网络系统2的构成进行适当变更。The home network system 2 is built, for example, in a user's house or shop, and includes a gateway device 10, a user terminal 20, an access point 30, and electronic devices 100 1 to 100 3 . In addition, the number of electronic devices 100 1 to 100 3 shown in FIG. 1 is merely an example, and can be appropriately changed according to the configuration of the home network system 2 .

网关装置10是与接入点30连接且将家庭网络系统2连接于外部的网络5的通信设备。在图1的示例中,网关装置10将家庭网络系统2内的接入点30、与家庭网络系统2外的用户终端3及管理服务器4经由网络5而连接。The gateway device 10 is a communication device that is connected to the access point 30 and connects the home network system 2 to the external network 5 . In the example of FIG. 1 , the gateway device 10 connects the access point 30 inside the home network system 2 , and the user terminal 3 and the management server 4 outside the home network system 2 via the network 5 .

用户终端20是例如平板(tablet)终端、个人计算机(Personal Computer,PC)、手机、个人数字助(Personal Data Assistance,PDA)等,且经由无线局域网(Local Area Network,LAN)或有线LAN等而连接于接入点30。该用户终端20根据用户操作而将对电子设备1001~1003的控制命令发送至接入点30,或显示从接入点30接收到的与电子设备1001~1003有关的各种信息。The user terminal 20 is, for example, a tablet terminal, a personal computer (Personal Computer, PC), a mobile phone, a personal digital assistant (Personal Data Assistance, PDA), etc., and is connected via a wireless local area network (Local Area Network, LAN) or a wired LAN. Connect to access point 30. The user terminal 20 sends control commands to the electronic devices 100 1 to 100 3 to the access point 30 according to user operations, or displays various information related to the electronic devices 100 1 to 100 3 received from the access point 30 .

接入点30利用蓝牙等近距离无线标准或住宅内LAN,而与网关装置10、用户终端20及电子设备1001~1003进行通信。该接入点30将从用户终端20输入的各种控制命令发送至电子设备1001~1003,或将从电子设备1001~1003接收到的各种信息发送至用户终端20。此外,接入点30也可以与网关装置10成为一体地形成。The access point 30 communicates with the gateway device 10 , the user terminal 20 , and the electronic devices 100 1 to 100 3 using a short-range wireless standard such as Bluetooth or an in-home LAN. The access point 30 transmits various control commands input from the user terminal 20 to the electronic devices 100 1 to 100 3 , or transmits various information received from the electronic devices 100 1 to 100 3 to the user terminal 20 . In addition, the access point 30 may be integrally formed with the gateway device 10 .

电子设备1001~1003是例如设置在用户住宅内的天花板等的照明器具。电子设备1001包括作为电子装置的照明装置1101、及作为通信装置的通信适配器1201。该电子设备1001是通过在照明装置1101上安装通信适配器1201而形成。同样地,电子设备1002是在照明装置1102上安装着通信适配器1202,电子设备1003是在照明装置1103上安装着通信适配器1203The electronic devices 100 1 to 100 3 are, for example, lighting fixtures installed on a ceiling or the like in a user's house. The electronic device 100 1 includes a lighting device 110 1 as an electronic device, and a communication adapter 120 1 as a communication device. This electronic device 100 1 is formed by attaching a communication adapter 120 1 to a lighting device 110 1 . Similarly, in the electronic device 100 2 , the communication adapter 120 2 is installed on the lighting device 110 2 , and in the electronic device 100 3 , the communication adapter 120 3 is installed on the lighting device 110 3 .

此外,以下,在无需区分电子设备1001~1003的情况下,有时仅记为“电子设备100”。而且,在无需区分照明装置1101~1103的情况下,有时仅记为“照明装置110”。此外,在无需区分通信适配器1201~1203的情况下,有时仅记为“通信适配器120”。In addition, in the following, when it is not necessary to distinguish the electronic devices 100 1 to 100 3 , they may be simply described as "electronic device 100". In addition, when it is not necessary to distinguish the lighting devices 110 1 to 110 3 , they may be simply described as "the lighting device 110". In addition, when it is not necessary to distinguish the communication adapters 120 1 to 120 3 , they may be simply described as "communication adapter 120".

照明装置110具有可以根据用户操作而调整照明光的照度或颜色的功能。而且,照明装置110在经由通信适配器120接收到控制命令时,根据控制命令而执行规定处理。例如,在控制命令为“接通照明装置”的情况下,照明装置110将本装置即照明装置110的电源接通。此外,在控制命令为“将照明装置的照度设定为80%”的情况下,照明装置110将本装置的光源所发出的光的照度设定为80%。而且,照明装置110将各种处理的执行结果作为应答,经由通信适配器120而发送至接入点30。此外,在由用户操作照明装置110的开关,而使表示开关的操作状态的码型为后述的规定码型的情况下,照明装置110将进行配对的指示发送至通信适配器120。The lighting device 110 has a function of adjusting the illuminance or color of lighting light according to user operations. Furthermore, when the lighting device 110 receives a control command via the communication adapter 120, it executes predetermined processing according to the control command. For example, when the control command is "turn on the lighting device", the lighting device 110 turns on the power supply of the lighting device 110 which is its own device. In addition, when the control command is "set the illuminance of the lighting device to 80%", the lighting device 110 sets the illuminance of the light emitted by the light source of the device to 80%. And the lighting device 110 transmits the execution result of various processes as a response to the access point 30 via the communication adapter 120 . Also, when the user operates the switch of lighting device 110 so that the pattern indicating the operation state of the switch is a predetermined pattern described later, lighting device 110 transmits an instruction to perform pairing to communication adapter 120 .

通信适配器120转送在照明装置110与接入点30之间进行收发的控制命令或应答。该通信适配器120是由家庭网络系统2的施工人员或用户安装在照明装置110上的。The communication adapter 120 transfers control commands or responses transmitted and received between the lighting device 110 and the access point 30 . The communication adapter 120 is installed on the lighting device 110 by the builder or the user of the home network system 2 .

如此一来,利用家庭网络系统2的用户可以通过操作用户终端20而经由接入点30控制电子设备100。例如,在用户终端20为手机的情况下,用户仅通过在住宅内操作手机便可以控制电子设备100的动作或监视电子设备100的动作状况。此外,用户可以通过以使表示开关的操作状态的码型成为后述的规定码型的方式操作照明装置110的开关,而使通信适配器120与接入点30进行配对。In this way, the user using the home network system 2 can control the electronic device 100 via the access point 30 by operating the user terminal 20 . For example, when the user terminal 20 is a mobile phone, the user can control the operation of the electronic device 100 or monitor the operation status of the electronic device 100 only by operating the mobile phone at home. Also, the user can pair the communication adapter 120 with the access point 30 by operating the switch of the lighting device 110 so that the pattern indicating the operation state of the switch becomes a predetermined pattern described later.

而且,在图1中,在家庭网络系统2的外部表示出的用户终端3是例如手机、PDA、平板终端、及PC等,且经由无线LAN或有线LAN等而连接于网络5。该用户终端3与用户终端20同样地,根据用户操作而将对电子设备100的控制命令发送至管理服务器4,或显示从管理服务器4接收到的与电子设备100有关的各种信息。In addition, in FIG. 1 , user terminals 3 shown outside the home network system 2 are, for example, mobile phones, PDAs, tablet terminals, and PCs, and are connected to the network 5 via wireless LAN or wired LAN. Similar to the user terminal 20 , the user terminal 3 transmits a control command for the electronic device 100 to the management server 4 or displays various information related to the electronic device 100 received from the management server 4 according to user operations.

管理服务器4经由网络5而将从用户终端3接收到的各种控制命令发送至接入点30。由此,接入点30将从位于家庭网络系统2的外部的用户终端3发送来的控制命令发送至电子设备100。而且,管理服务器4经由网络5而将从接入点30接收到的与电子设备100有关的各种信息发送至用户终端3。由此,用户终端3显示与设置在家庭网络系统2内的电子设备100有关的各种信息。如此一来,用户终端3的用户即便当不在家庭网络系统2内时,也可以控制电子设备100或监视电子设备100的动作状况。The management server 4 transmits various control commands received from the user terminal 3 to the access point 30 via the network 5 . Thus, the access point 30 transmits the control command transmitted from the user terminal 3 located outside the home network system 2 to the electronic device 100 . Furthermore, the management server 4 transmits various information related to the electronic device 100 received from the access point 30 to the user terminal 3 via the network 5 . Thus, the user terminal 3 displays various information related to the electronic device 100 installed in the home network system 2 . In this way, the user of the user terminal 3 can control the electronic device 100 or monitor the operation status of the electronic device 100 even when he is not in the home network system 2 .

以下,对第一实施方式的电子设备100进行详细说明。Hereinafter, the electronic device 100 of the first embodiment will be described in detail.

[电子设备的构成][Structure of electronic equipment]

图2是示意性地表示第一实施方式的电子设备100的构成例的图。如图2所示,电子设备100与商用电源41连接。而且,在电子设备100与商用电源41之间设置着开关42。商用电源41是由例如电力公司等管理,且对一般家庭供给电力。开关42设置在住宅内的墙壁等,且在将来自商用电源41的电力供给至电子设备100与不供给至电子设备100之间进行切换。FIG. 2 is a diagram schematically showing a configuration example of the electronic device 100 according to the first embodiment. As shown in FIG. 2 , the electronic device 100 is connected to a commercial power supply 41 . Furthermore, a switch 42 is provided between the electronic device 100 and the commercial power supply 41 . The commercial power supply 41 is managed by, for example, an electric power company, and supplies electric power to general households. The switch 42 is installed on a wall or the like in a house, and switches between supplying electric power from the commercial power supply 41 to the electronic device 100 and not supplying the electric power to the electronic device 100 .

例如,在由用户进行了使开关42接通的操作的情况下,电力从商用电源41被供给至电子设备100。由此,电子设备100内的照明装置110点亮。另一方面,在由用户进行了使开关42断开(off)的操作的情况下,停止从商用电源41向电子设备100供给电力。由此,电子设备100内的照明装置110熄灭。For example, when the user performs an operation to turn on the switch 42 , electric power is supplied from the commercial power supply 41 to the electronic device 100 . As a result, the lighting device 110 in the electronic device 100 is turned on. On the other hand, when the user operates to turn off the switch 42 , the electric power supply from the commercial power supply 41 to the electronic device 100 is stopped. As a result, the lighting device 110 in the electronic device 100 is turned off.

这里,在使通信适配器120与接入点30进行配对的情况下,用户以使开关42的操作状态成为规定码型的方式进行将开关42接通的操作及将开关42断开的操作。这里,参照图3对规定码型的一例进行说明。图3是表示规定码型的一例的图。如图3的示例所示,规定码型40是指如下的码型:开关42接通(ON)后至下一次接通为止的时间T1秒为规定时间α秒内,且开关42接通1次后至接通规定次数β(例如20次)为止的时间T2秒为规定时间γ秒以内。这里,作为规定时间α秒的一例,可列举1秒。而且,作为规定时间γ秒的一例,可列举20秒。这种规定码型是与表示开关42的通常操作时的操作状态的码型不同的特别的码型。Here, when communication adapter 120 is paired with access point 30 , the user performs an operation of turning on switch 42 and an operation of turning off switch 42 so that the operation state of switch 42 becomes a predetermined pattern. Here, an example of a predetermined code pattern will be described with reference to FIG. 3 . Fig. 3 is a diagram showing an example of a predetermined code pattern. As shown in the example of FIG. 3 , the prescribed code pattern 40 refers to the following code pattern: the time T1 second from the switch 42 turned on (ON) to the next turn-on is within the prescribed time α seconds, and the switch 42 is turned on for 1 second. The time T2 seconds until the predetermined number of times β (for example, 20 times) is turned on after the first time is within the predetermined time γ seconds. Here, one second is mentioned as an example of the predetermined time α second. Furthermore, 20 seconds can be mentioned as an example of the predetermined time γ seconds. This predetermined code pattern is a special code pattern different from the code pattern indicating the operating state of the switch 42 during normal operation.

而且,如图3的示例所示,规定码型40是如最后成为接通(ON)的码型。这是因为如果规定码型40的最后成为断开(OFF),那么开关42为断开,因此不对通信适配器120供给电力,而通信适配器120不运作,从而无法使通信适配器120进行配对。因此,在本实施方式中,为了使通信适配器120切实地进行配对,采用如最后成为接通的码型作为规定码型40。And, as shown in the example of FIG. 3 , the predetermined pattern 40 is a pattern that turns on (ON) last. This is because if the end of the predetermined code pattern 40 is OFF, the switch 42 is OFF, and therefore no power is supplied to the communication adapter 120, the communication adapter 120 does not operate, and the communication adapter 120 cannot be paired. Therefore, in this embodiment, in order to make the communication adapter 120 perform pairing reliably, the pattern which turns ON last is used as the predetermined pattern 40.

返回至图2的说明,电子设备100的照明装置110包括电源电路111、照明部112、通信电路113、电源监视电路114、及控制部115。Returning to the description of FIG. 2 , the lighting device 110 of the electronic device 100 includes a power supply circuit 111 , a lighting unit 112 , a communication circuit 113 , a power monitoring circuit 114 , and a control unit 115 .

电源电路111是如下的电力供给部:由从商用电源41供给的电力生成照明装置110的动作所需的电力,并将所生成的电力供给至照明装置110内的各部分(照明部112、通信电路113、电源监视电路114及控制部115)。照明部112是发光二极管(Light Emitting Diode,LED)或灯泡等,对室内等进行照明。通信电路113与通信适配器120(更详细而言为后述的通信电路123)连接,在与通信适配器120之间进行通信。The power supply circuit 111 is a power supply unit that generates power required for the operation of the lighting device 110 from the power supplied from the commercial power supply 41 and supplies the generated power to each part in the lighting device 110 (the lighting unit 112 , communication circuit 113, power monitoring circuit 114 and control unit 115). The lighting unit 112 is a light emitting diode (Light Emitting Diode, LED) or a light bulb, and illuminates a room or the like. The communication circuit 113 is connected to a communication adapter 120 (more specifically, a communication circuit 123 described later), and communicates with the communication adapter 120 .

电源监视电路114监视开关42为接通还是断开。换言之,电源监视电路114监视是否从商用电源41向照明装置110供给了电力。而且,电源监视电路114在检测到开关42从接通变成断开的情况下、或在检测到开关42从断开变成接通的情况下,将检测结果通知给控制部115。The power monitoring circuit 114 monitors whether the switch 42 is on or off. In other words, the power supply monitoring circuit 114 monitors whether or not electric power is supplied from the commercial power supply 41 to the lighting device 110 . Further, when detecting that the switch 42 is turned from on to off, or when detecting that the switch 42 is from off to on, the power monitoring circuit 114 notifies the control unit 115 of the detection result.

控制部115控制照明装置110整体。例如,控制部115是由中央处理器(Central Processing Unit,CPU)实现的。而且,控制部115通过执行存储在照明装置110内部的未图示的存储装置(例如为只读存储器(ReadOnly Memory,ROM))中的程序(program),而控制照明装置110整体。此外,在图2中,表示了由CPU实现控制部115的示例,但控制部115也可以由例如微处理器(Micro Processing Unit,MPU)等实现,或者也可以由专用集成电路(Application Specific Integrated Circuit,ASIC)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等集成电路实现。The control unit 115 controls the lighting device 110 as a whole. For example, the control unit 115 is realized by a central processing unit (Central Processing Unit, CPU). Furthermore, the control unit 115 controls the lighting device 110 as a whole by executing a program (program) stored in an unshown storage device (for example, a read only memory (ROM)) inside the lighting device 110 . In addition, in FIG. 2 , an example in which the control unit 115 is realized by a CPU is shown, but the control unit 115 can also be realized by, for example, a microprocessor (Micro Processing Unit, MPU), or can also be realized by an application specific integrated circuit (Application Specific Integrated Circuit). Circuit, ASIC) or Field Programmable Gate Array (Field Programmable Gate Array, FPGA) and other integrated circuits.

这里,第一实施方式的控制部115是以如下方式进行控制:在检测到表示开关42的操作状态的码型为所述规定码型的情况下,使通信适配器120与接入点30进行配对。Here, the control unit 115 of the first embodiment performs control such that the communication adapter 120 is paired with the access point 30 when the pattern indicating the operation state of the switch 42 is detected to be the predetermined pattern. .

参照图4对该方面进行说明。图4是表示第一实施方式的照明装置110所包括的控制部115的功能构成的一例的图。如图4所示,控制部115包括检测部116及通信设备控制部117。This aspect will be described with reference to FIG. 4 . FIG. 4 is a diagram illustrating an example of a functional configuration of a control unit 115 included in the lighting device 110 according to the first embodiment. As shown in FIG. 4 , the control unit 115 includes a detection unit 116 and a communication device control unit 117 .

检测部116依次接收从电源监视电路114发送来的检测结果。然后,检测部116根据依次接收到的检测结果,以规定时间间隔生成表示从过去开始经过所述规定时间γ秒而到达当前时间点为止的开关42的操作状态的码型。接着,每当生成码型时,检测部116便判定所生成的码型是否为所述规定码型。然后,当判定所生成的码型为所述规定码型时,检测部116从所生成的码型中检测到所述规定码型,并通知通信设备控制部117已检测到规定码型。此外,检测部116也可以判定依次接收到的检测结果中相互的接通断开期间的时间为规定时间内的检测结果是否连续地达到规定次数,当判定为相互的接通断开期间的时间为规定时间内的检测结果连续地达到规定次数时,检测到所述规定码型,并通知通信设备控制部117已检测到规定码型。The detection unit 116 sequentially receives detection results transmitted from the power supply monitoring circuit 114 . Then, the detection unit 116 generates a pattern representing the operation state of the switch 42 at predetermined time intervals from the past to the current time point after the predetermined time γ seconds have elapsed based on the detection results sequentially received. Next, whenever a code pattern is generated, the detection unit 116 judges whether or not the generated code pattern is the predetermined code pattern. Then, when it is judged that the generated code pattern is the predetermined code pattern, the detection unit 116 detects the predetermined code pattern from the generated code patterns, and notifies the communication device control unit 117 that the predetermined code pattern has been detected. In addition, the detection unit 116 may also determine whether the detection results successively received by the detection results whose mutual on-off period time is within a predetermined time have reached a predetermined number of consecutive times, when it is determined that the mutual on-off period time When the detection results within the predetermined time continuously reach the predetermined number of times, the predetermined pattern is detected, and the communication device control unit 117 is notified that the predetermined pattern has been detected.

通信设备控制部117当从检测部116收到已检测到规定码型的通知时,对通信适配器120发送使状态转变为进行配对的模式(配对模式)的指示。由此,在接入点30中状态也转变为配对模式的情况下,通信适配器120与接入点30进行配对。由此,通信适配器120可以与接入点30进行通信。通信设备控制部117以所述方式设定网络参数。When the communication device control unit 117 receives a notification from the detection unit 116 that a predetermined pattern has been detected, it transmits an instruction to change the state to a mode for performing pairing (pairing mode) to the communication adapter 120 . Accordingly, when the state of the access point 30 also changes to the pairing mode, the communication adapter 120 and the access point 30 are paired. Thus, the communication adapter 120 can communicate with the access point 30 . The communication device control unit 117 sets network parameters in the above-described manner.

返回至图2的说明,电子设备100的通信适配器120是如上所述那样转送在照明装置110与接入点30之间进行收发的控制命令或应答。如图2所示,该通信适配器120包括无线通信电路122、通信电路123及控制部124。Returning to the description of FIG. 2 , the communication adapter 120 of the electronic device 100 transfers a control command or a response transmitted and received between the lighting device 110 and the access point 30 as described above. As shown in FIG. 2 , the communication adapter 120 includes a wireless communication circuit 122 , a communication circuit 123 and a control unit 124 .

无线通信电路122利用蓝牙等近距离无线标准而在与接入点30之间进行近距离无线通信。通信电路123是与照明装置110的通信电路113连接,在与照明装置110之间进行通信。这种无线通信电路122及通信电路123作为转送在包含接入点30等的网络与照明装置110之间进行收发的数据(data)的通信部而发挥功能。The wireless communication circuit 122 performs short-range wireless communication with the access point 30 using short-range wireless standards such as Bluetooth. The communication circuit 123 is connected to the communication circuit 113 of the lighting device 110 and communicates with the lighting device 110 . The wireless communication circuit 122 and the communication circuit 123 function as a communication unit that transfers data (data) transmitted and received between the network including the access point 30 and the like and the lighting device 110 .

控制部124控制通信适配器120整体。具体而言,控制部124进行控制命令或应答的转送处理等。该控制部124是由例如CPU实现的。而且,控制部124是通过执行存储在通信适配器120内部的ROM等中的程序,而控制通信适配器120整体。此外,在图2中表示了由CPU实现控制部124的示例,但控制部124也可以由例如MPU等实现,或者也可以由ASIC或FPGA等集成电路实现。The control unit 124 controls the communication adapter 120 as a whole. Specifically, the control unit 124 performs transfer processing of control commands and responses, and the like. The control unit 124 is realized by, for example, a CPU. Furthermore, the control unit 124 controls the communication adapter 120 as a whole by executing a program stored in a ROM or the like inside the communication adapter 120 . In addition, although the example which realized the control part 124 by CPU was shown in FIG. 2, the control part 124 may also be realized by MPU etc., or may realize it by integrated circuits, such as ASIC and FPGA.

[控制部的处理顺序][Processing procedure of the control unit]

其次,使用图5对照明装置110的控制部115的处理顺序进行说明。图5是表示第一实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。网络参数设定处理例如每当由检测部116生成表示开关42的操作状态的码型时执行。Next, the processing procedure of the control unit 115 of the lighting device 110 will be described using FIG. 5 . 5 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the first embodiment. The network parameter setting process is executed, for example, every time the detection unit 116 generates a pattern indicating the operation state of the switch 42 .

如图5所示,控制部115的检测部116判定表示开关42的操作状态的码型是否为所述规定码型(步骤S101)。然后,当判定为表示开关42的操作状态的码型并非所述规定码型时(步骤S101:否),检测部116再次进行步骤S101的判定处理。另一方面,当判定表示开关42的操作状态的码型为所述规定码型时(步骤S101:是),通信设备控制部117对通信适配器120发送使状态转变为进行配对的模式(配对模式)的指示(步骤S102),从而结束处理。As shown in FIG. 5, the detection part 116 of the control part 115 judges whether the pattern which shows the operation state of the switch 42 is the said predetermined pattern (step S101). Then, when it is determined that the pattern indicating the operation state of the switch 42 is not the predetermined pattern (step S101: No), the detection unit 116 performs the determination process of step S101 again. On the other hand, when it is determined that the code pattern representing the operation state of the switch 42 is the predetermined code pattern (step S101: Yes), the communication device control unit 117 transmits to the communication adapter 120 a mode for changing the state to pairing (pairing mode). ) (step S102), and the process ends.

如以上所作的说明那样,第一实施方式的电子设备100包括照明装置110及通信适配器120。照明装置110包括检测部116及通信设备控制部117。检测部116从表示用于对照明装置110进行控制的开关42的操作状态的码型中,检测规定码型。当利用检测部116检测到规定码型时,通信设备控制部117以设定网络参数的方式控制通信适配器120。通信适配器120包括无线通信电路122。无线通信电路122根据所设定的网络参数而与其他通信适配器进行通信。因此,根据电子设备100,用户无需直接操作照明装置110,而仅通过操作如处在用户的手能触及的范围内的开关42便可设定网络参数。因此,根据电子设备100,可容易地设定网络参数。As described above, the electronic device 100 of the first embodiment includes the lighting device 110 and the communication adapter 120 . The lighting device 110 includes a detection unit 116 and a communication device control unit 117 . The detection unit 116 detects a predetermined pattern from patterns indicating the operating state of the switch 42 for controlling the lighting device 110 . When a predetermined code pattern is detected by the detection unit 116, the communication device control unit 117 controls the communication adapter 120 so as to set network parameters. Communications adapter 120 includes wireless communications circuitry 122 . The wireless communication circuit 122 communicates with other communication adapters according to the set network parameters. Therefore, according to the electronic device 100 , the user does not need to directly operate the lighting device 110 , but only operates the switch 42 within the reach of the user's hand to set the network parameters. Therefore, according to the electronic device 100, network parameters can be easily set.

而且,第一实施方式的检测部116从表示开关42的操作状态的码型中,检测与表示开关42的通常操作时的操作状态的码型不同的规定码型,所述开关42用于控制从商用电源41向电子设备100供给电力且设置在墙壁上。因此,在由用户对开关42进行通常操作的情况下,检测部116不检测规定码型。因此,根据检测部116,可以抑制如在进行通常操作的情况下检测规定码型那样的规定码型的误检测。Furthermore, the detecting unit 116 of the first embodiment detects a predetermined pattern different from the pattern representing the operating state of the switch 42 during normal operation from the pattern representing the operating state of the switch 42 used to control The electronic device 100 is supplied with electric power from a commercial power supply 41 and installed on a wall. Therefore, when the switch 42 is normally operated by the user, the detection unit 116 does not detect the predetermined pattern. Therefore, according to the detection unit 116, false detection of a predetermined pattern such as detection of a predetermined pattern during normal operation can be suppressed.

而且,第一实施方式的通信设备控制部117是在利用检测部116检测到规定码型的情况下,将进行配对的指示发送至作为通信装置的通信适配器120。然后,无线通信电路122根据配对的结果而与其他通信适配器进行通信。Furthermore, the communication device control unit 117 of the first embodiment transmits an instruction to perform pairing to the communication adapter 120 as a communication device when a predetermined pattern is detected by the detection unit 116 . Then, the wireless communication circuit 122 communicates with other communication adapters according to the pairing result.

而且,第一实施方式的规定码型是如最后成为接通的码型。由此,在第一实施方式中,在检测到规定码型的情况下,会对通信适配器120供给电力。因此,根据第一实施方式,可使通信适配器120切实地进行配对。Furthermore, the predetermined pattern of the first embodiment is a pattern that turns ON as the last. Thus, in the first embodiment, power is supplied to communication adapter 120 when a predetermined pattern is detected. Therefore, according to the first embodiment, communication adapter 120 can be reliably paired.

此外,对如下情况进行了说明:在使通信适配器120与接入点30进行配对的情况下,用户以使开关42的操作状态成为规定码型的方式进行将开关42接通的操作及将开关42断开的操作。然而,在使通信适配器120与接入点30进行配对的情况下,用户也能够以使开关42的操作状态成为第一码型、且使相位控制调光开关(未图示)的操作状态成为第二码型的方式进行将开关42及相位控制调光开关接通的操作、及将开关42及相位控制调光开关断开的操作。这里,相位控制调光开关与开关42同样地设置在墙壁上。而且,相位控制调光开关是用来控制流入至照明部112的电流的导通相位角以使流入至照明部112的电流发生变化的开关。也就是说,相位控制调光开关是用来控制照明部112的调光率的开关。相位控制调光开关连接于控制部115,且将相位控制调光开关的操作状态(接通及断开)输出至控制部115。此外,控制部115根据相位控制调光开关的操作状态,以规定时间间隔生成表示相位控制调光开关的操作状态的码型。这里,第一码型是所述规定码型,第二码型是表示调光率连续为0的状态的码型。在该情况下,检测部116每当生成表示开关42的操作状态的码型及表示相位控制调光开关的操作状态的码型时,进行接下来的处理。即,检测部116判定所生成的表示开关42的操作状态的码型是否为所述第一码型、且表示相位控制调光开关的操作状态的码型是否为所述第二码型。然后,当判定所生成的表示开关42的操作状态的码型为所述第一码型、且表示相位控制调光开关的操作状态的码型为所述第二码型时,检测部116从所生成的两种码型中检测到所述第一码型及第二码型,并通知通信设备控制部117已检测到第一码型及第二码型。接着,通信设备控制部117当从检测部116收到已检测到第一码型及第二码型的通知时,对通信适配器120发送使状态转变为进行配对的模式(配对模式)的指示。In addition, a case has been described in which, when pairing the communication adapter 120 with the access point 30, the user performs the operation of turning on the switch 42 and turning the switch 42 on so that the operation state of the switch 42 becomes a predetermined code pattern. 42 disconnected operations. However, when pairing the communication adapter 120 with the access point 30, the user can also set the operation state of the switch 42 to the first pattern and the operation state of the phase control dimmer switch (not shown) to be In the second code pattern, the operation of turning on the switch 42 and the phase control dimmer switch and the operation of turning off the switch 42 and the phase control dimmer switch are performed. Here, the phase control dimmer switch is installed on the wall similarly to the switch 42 . Furthermore, the phase control dimmer switch is a switch for controlling the conduction phase angle of the current flowing into the lighting unit 112 so as to change the current flowing into the lighting unit 112 . That is, the phase control dimmer switch is a switch for controlling the dimming rate of the lighting unit 112 . The phase control dimmer switch is connected to the control unit 115 , and outputs the operation state (on and off) of the phase control dimmer switch to the control unit 115 . In addition, the control unit 115 generates a pattern indicating the operating state of the phase control dimmer switch at predetermined time intervals based on the operating state of the phase control dimmer switch. Here, the first pattern is the predetermined pattern, and the second pattern is a pattern indicating a state in which the dimming rate is continuously zero. In this case, the detection unit 116 performs the next process every time a pattern indicating the operating state of the switch 42 and a pattern indicating the operating state of the phase control dimmer switch are generated. That is, the detection unit 116 determines whether the generated pattern indicating the operating state of the switch 42 is the first pattern and whether the generated pattern indicating the operating state of the phase control dimmer switch is the second pattern. Then, when it is judged that the generated code pattern representing the operation state of the switch 42 is the first code pattern and the code pattern representing the operation state of the phase control dimmer switch is the second code pattern, the detection unit 116 starts from The first pattern and the second pattern are detected in the generated two patterns, and the communication device control unit 117 is notified that the first pattern and the second pattern have been detected. Next, when receiving notification from the detection unit 116 that the first pattern and the second pattern have been detected, the communication device control unit 117 transmits an instruction to change the state to a mode for pairing (pairing mode) to the communication adapter 120 .

[第二实施方式1[Second Embodiment 1

其次,对第二实施方式进行说明。第二实施方式的电子设备是在检测到表示遥控器的操作状态的码型为后述的规定码型的情况下,以使通信适配器120与接入点30进行配对的方式进行控制。此外,在第二实施方式中,对与第一实施方式相同的设备或装置等附上相同的符号,并省略重复的说明。Next, a second embodiment will be described. The electronic device according to the second embodiment controls the communication adapter 120 to pair with the access point 30 when it detects that the pattern indicating the operation state of the remote controller is a predetermined pattern described later. In addition, in 2nd Embodiment, the same code|symbol is attached|subjected to the same equipment, apparatus, etc. as 1st Embodiment, and duplicative description is abbreviate|omitted.

图6是表示第二实施方式的家电设备控制系统1的构成例的图。在第二实施方式的家电设备控制系统1中包括家庭网络系统50、用户终端3及管理服务器4。FIG. 6 is a diagram showing a configuration example of a home appliance control system 1 according to the second embodiment. The home appliance control system 1 of the second embodiment includes a home network system 50 , user terminals 3 and a management server 4 .

家庭网络系统50包括电子设备2001~2003、网关装置10、用户终端20及接入点30。此外,图6所示的电子设备2001~2003的数量只不过为一例,可根据家庭网络系统50的构成进行适当变更。The home network system 50 includes electronic devices 200 1 to 200 3 , a gateway device 10 , a user terminal 20 and an access point 30 . In addition, the number of electronic devices 200 1 to 200 3 shown in FIG. 6 is merely an example, and can be appropriately changed according to the configuration of the home network system 50 .

电子设备2001~2003是例如设置在用户住宅内的天花板等的照明器具。电子设备2001包括作为电子装置的照明装置2101及通信适配器1201。该电子设备2001是通过在照明装置2101上安装通信适配器1201而形成。同样地,电子设备2002是在照明装置2102上安装着通信适配器1202,电子设备2003是在照明装置2103上安装着通信适配器1203The electronic devices 200 1 to 200 3 are, for example, lighting fixtures installed on a ceiling or the like in a user's house. The electronic device 200 1 includes a lighting device 210 1 and a communication adapter 120 1 as electronic devices. This electronic device 200 1 is formed by attaching a communication adapter 120 1 to a lighting device 210 1 . Similarly, in the electronic device 200 2 , the communication adapter 120 2 is installed on the lighting device 210 2 , and in the electronic device 200 3 , the communication adapter 120 3 is installed on the lighting device 210 3 .

此外,以下,在无需区分电子设备2001~2003的情况下,有时仅记为“电子设备200”。而且,在无需区分照明装置2101~2103的情况下,有时仅记为“照明装置210”。In addition, in the following, when there is no need to distinguish the electronic devices 200 1 to 200 3 , they may be simply described as "electronic device 200". In addition, when it is not necessary to distinguish the lighting devices 210 1 to 210 3 , they may be simply described as "the lighting device 210".

照明装置210具有可根据用户操作而调整照明光的照度或颜色的功能。而且,照明装置210当经由通信适配器120接收到控制命令时,根据控制命令而执行规定处理。例如,在控制命令为“接通照明装置”的情况下,照明装置210使本装置即照明装置210的电源接通。此外,在控制命令为“将照明装置的照度设定为80%”的情况下,照明装置210将本装置的光源所发出的光的照度设定为80%。而且,照明装置210将各种处理的执行结果作为应答,经由通信适配器120而发送至接入点30。此外,在由用户操作照明装置210的后述的遥控器,而使表示遥控器的操作状态的码型为后述的规定码型的情况下,照明装置210将进行配对的指示发送至通信适配器120。因此,用户通过以使表示遥控器的操作状态的码型成为后述的规定码型的方式操作照明装置210的遥控器,而可以使通信适配器120与接入点30进行配对。The lighting device 210 has a function of adjusting the illuminance or color of the lighting light according to a user's operation. Furthermore, when the lighting device 210 receives a control command via the communication adapter 120, it executes predetermined processing according to the control command. For example, when the control command is "turn on the lighting device", the lighting device 210 turns on the power of the lighting device 210 which is its own device. In addition, when the control command is "set the illuminance of the lighting device to 80%", the lighting device 210 sets the illuminance of the light emitted by the light source of the device to 80%. And the lighting device 210 transmits the execution result of various processes as a response to the access point 30 via the communication adapter 120 . In addition, when the user operates the remote control of the lighting device 210 described later and the code pattern indicating the operating state of the remote control is a predetermined code pattern described later, the lighting device 210 transmits an instruction to perform pairing to the communication adapter. 120. Therefore, the user can pair the communication adapter 120 with the access point 30 by operating the remote control of the lighting device 210 so that the pattern indicating the operating state of the remote control becomes a predetermined pattern described later.

这里,对第二实施方式的遥控器进行说明。图7是表示第二实施方式的遥控器的一例的图。如图7的示例所示,遥控器500包括用来以最大限度的亮度使照明装置210点亮的全光按钮501、及用来使照明装置210熄灭的熄灯按钮502。而且,遥控器500包括用来提高照明装置210的亮度的亮度调整按钮503、及用来降低照明装置210的亮度的亮度调整按钮504。此外,遥控器500包括用来使照明装置210所发出的光中包含的各色的光中的蓝色的光增多的光色调整按钮505、及用来使黄色的光增多的光色调整按钮506。Here, the remote controller of the second embodiment will be described. FIG. 7 is a diagram showing an example of a remote controller according to a second embodiment. As shown in the example of FIG. 7 , the remote controller 500 includes a full light button 501 for turning on the lighting device 210 at maximum brightness, and a light-off button 502 for turning off the lighting device 210 . Furthermore, the remote controller 500 includes a brightness adjustment button 503 for increasing the brightness of the lighting device 210 and a brightness adjustment button 504 for reducing the brightness of the lighting device 210 . In addition, the remote control 500 includes a light color adjustment button 505 for increasing blue light among the light of various colors contained in the light emitted by the lighting device 210, and a light color adjustment button 506 for increasing yellow light. .

当由用户按下全光按钮501时,遥控器500输出表示全光按钮501已被按下的信号。同样地,关于其他按钮,也是当由用户按下时,遥控器500输出表示按钮已被按下的信号。When the full light button 501 is pressed by the user, the remote controller 500 outputs a signal indicating that the full light button 501 has been pressed. Likewise, regarding other buttons, also when pressed by the user, the remote controller 500 outputs a signal indicating that the button has been pressed.

这里,在使通信适配器120与接入点30进行配对的情况下,用户以使遥控器500的按钮、例如全光按钮501的操作状态成为规定码型的方式进行将全光按钮501接通的操作(按下全光按钮501的操作)。这里,参照图8对规定码型的一例进行说明。图8是表示规定码型的一例的图。如图8的示例所示,规定码型43是指如下的码型:全光按钮501接通(ON)后至下一次接通为止的时间T3秒为规定时间ε秒内,且全光按钮501接通1次后至接通规定次数ζ(例如20次)为止的时间T4秒为规定时间η秒以内。这里,作为规定时间ε秒的一例,可列举1秒。此外,作为规定时间η秒的一例,可列举20秒。这种规定码型是与表示全光按钮501的通常操作时的操作状态的码型不同的特别的码型。Here, when pairing the communication adapter 120 with the access point 30, the user turns on the full light button 501 so that the operation state of the buttons of the remote controller 500, for example, the full light button 501 becomes a predetermined pattern. Operation (operation of pressing the full light button 501). Here, an example of a predetermined code pattern will be described with reference to FIG. 8 . Fig. 8 is a diagram showing an example of a predetermined code pattern. As shown in the example of FIG. 8 , the prescribed code pattern 43 refers to the following code pattern: the time T3 seconds from when the all-light button 501 is turned on (ON) to the next turn-on is within the specified time ε seconds, and the all-light button The time T4 seconds from when the 501 is turned on once to the predetermined number of times ζ (for example, 20 times) is within the predetermined time n seconds. Here, one second is mentioned as an example of the predetermined time ε second. In addition, 20 seconds can be mentioned as an example of the predetermined time n seconds. This predetermined code pattern is a special code pattern different from the code pattern indicating the operation state of the all-optical button 501 during normal operation.

而且,如图8的示例所示,规定码型43是如最后成为接通(ON)的码型。这是因为如果规定码型43的最后成为断开(OFF),那么开关42为断开,因此不对通信适配器120供给电力,而通信适配器120不运作,从而无法使通信适配器120进行配对。因此,在本实施方式中,也与第一实施方式同样地,为了使通信适配器120切实地进行配对,采用如最后成为接通的码型作为规定码型43。Furthermore, as shown in the example of FIG. 8 , the predetermined pattern 43 is a pattern that turns ON (ON) last. This is because if the end of the predetermined code pattern 43 is OFF, the switch 42 is OFF, and therefore no power is supplied to the communication adapter 120, and the communication adapter 120 does not operate, so that the communication adapter 120 cannot be paired. Therefore, also in this embodiment, similarly to the first embodiment, in order to reliably perform pairing of the communication adapter 120 , the pattern that is finally turned on is adopted as the predetermined pattern 43 .

其次,对第二实施方式的电子设备200进行详细说明。Next, the electronic device 200 of the second embodiment will be described in detail.

[电子设备的构成][Structure of electronic equipment]

图9是示意性地表示第二实施方式的电子设备200的构成例的图。如图9所示,电子设备200包括照明装置210及通信适配器120。照明装置210包括电源电路111、照明部112、通信电路113、电源监视电路114、接收机211及控制部212。FIG. 9 is a diagram schematically showing a configuration example of an electronic device 200 according to the second embodiment. As shown in FIG. 9 , the electronic device 200 includes a lighting device 210 and a communication adapter 120 . The lighting device 210 includes a power supply circuit 111 , a lighting unit 112 , a communication circuit 113 , a power monitoring circuit 114 , a receiver 211 , and a control unit 212 .

接收机211是利用从电源电路111供给的电力而运作,且接收从遥控器500发送来的信号。接收机211接收例如表示将照明装置110中的照明光的亮度设定为最大限度的亮度的信号、或者表示变更照明光的照度或颜色的信号等各种信号。而且,接收机211每当接收到信号时,便将接收到的信号发送至控制部212。The receiver 211 operates with the power supplied from the power supply circuit 111 and receives a signal transmitted from the remote controller 500 . The receiver 211 receives various signals such as a signal indicating that the luminance of the illumination light in the illumination device 110 is set to the maximum luminance, or a signal indicating that the illuminance or color of the illumination light is changed. Furthermore, each time the receiver 211 receives a signal, it transmits the received signal to the control unit 212 .

控制部212控制照明装置210整体。例如,控制部212是通过CPU而实现。而且,控制部212通过执行存储在照明装置210内部的未图示的存储装置中的程序,而控制照明装置210整体。此外,在图9中表示了由CPU实现控制部212的示例,但控制部212也可以由例如MPU等实现,或者也可以由ASIC或FPGA等集成电路实现。The control unit 212 controls the lighting device 210 as a whole. For example, the control unit 212 is realized by a CPU. Furthermore, the control unit 212 controls the entire lighting device 210 by executing a program stored in a storage device (not shown) inside the lighting device 210 . In addition, although the example which realized the control part 212 by CPU was shown in FIG. 9, the control part 212 may also be realized by MPU etc., or may realize it by integrated circuits, such as ASIC and FPGA.

这里,第二实施方式的控制部212是以如下方式进行控制:在检测到表示全光按钮501的操作状态的码型为所述规定码型的情况下,使通信适配器120与接入点30进行配对。Here, the control unit 212 of the second embodiment performs control in such a manner that when it is detected that the code pattern indicating the operation state of the full light button 501 is the predetermined code pattern, the communication adapter 120 and the access point 30 are connected to each other. Make a pair.

参照图10对该方面进行说明。图10是表示第二实施方式的照明装置210所包括的控制部212的功能构成的一例的图。如图10所示,控制部212包括检测部213、及通信设备控制部214。This aspect will be described with reference to FIG. 10 . FIG. 10 is a diagram illustrating an example of a functional configuration of a control unit 212 included in a lighting device 210 according to the second embodiment. As shown in FIG. 10 , the control unit 212 includes a detection unit 213 and a communication device control unit 214 .

检测部213依次接收从接收机211发送来的表示全光按钮501已被按下的信号。然后,检测部213根据依次接收到的表示全光按钮501已被按下的信号,以规定时间间隔生成表示从过去开始经过所述规定时间η秒而到达当前时间点为止的全光按钮501的操作状态的码型。接着,每当生成码型时,检测部213便判定所生成的码型是否为所述规定码型。然后,当判定所生成的码型为所述规定码型时,检测部213从所生成的码型中检测到所述规定码型,并通知通信设备控制部214已检测到规定码型。The detection unit 213 sequentially receives a signal from the receiver 211 indicating that the full light button 501 has been pressed. Then, the detection unit 213 generates, at predetermined time intervals, a signal indicating that the full light button 501 has passed the predetermined time n seconds from the past and reached the current time point based on the successively received signals indicating that the full light button 501 has been pressed. The pattern of the operational state. Next, whenever a code pattern is generated, the detection unit 213 judges whether or not the generated code pattern is the predetermined code pattern. Then, when it is determined that the generated code pattern is the predetermined code pattern, the detection unit 213 detects the predetermined code pattern from the generated code patterns, and notifies the communication device control unit 214 that the predetermined code pattern has been detected.

通信设备控制部214当从检测部213收到已检测到规定码型的通知时,对通信适配器120发送使状态转变为进行配对的模式(配对模式)的指示。由此,在接入点30中状态也转变为配对模式的情况下,通信适配器120与接入点30进行配对。由此,通信适配器120可以与接入点30进行通信。通信设备控制部214以所述方式设定网络参数。When receiving notification from the detection unit 213 that a predetermined pattern has been detected, the communication device control unit 214 transmits an instruction to change the state to a mode for performing pairing (pairing mode) to the communication adapter 120 . Accordingly, when the state of the access point 30 also changes to the pairing mode, the communication adapter 120 and the access point 30 are paired. Thus, the communication adapter 120 can communicate with the access point 30 . The communication device control unit 214 sets network parameters in the above-described manner.

[控制部的处理顺序][Processing procedure of the control unit]

其次,使用图11对照明装置210的控制部212的处理顺序进行说明。图11是表示第二实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。网络参数设定处理例如每当由检测部213生成表示全光按钮501的操作状态的码型时执行。Next, the processing procedure of the control unit 212 of the lighting device 210 will be described using FIG. 11 . 11 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the second embodiment. The network parameter setting process is executed, for example, every time the detection unit 213 generates a pattern indicating the operation state of the full light button 501 .

如图11所示,控制部212的检测部213判定表示全光按钮501的操作状态的码型是否为所述规定码型(步骤S201)。然后,当判定为表示全光按钮501的操作状态的码型并非所述规定码型时(步骤S201:否),检测部213再次进行步骤S201的判定处理。另一方面,当判定表示全光按钮501的操作状态的码型为所述规定码型时(步骤S201:是),通信设备控制部214对通信适配器120发送使状态转变为进行配对的模式(配对模式)的指示(步骤S202),从而结束处理。As shown in FIG. 11 , the detection unit 213 of the control unit 212 judges whether or not the pattern indicating the operation state of the full light button 501 is the predetermined pattern (step S201 ). Then, when it is determined that the pattern indicating the operation state of the full light button 501 is not the predetermined pattern (step S201: No), the detection unit 213 performs the determination process of step S201 again. On the other hand, when it is determined that the code pattern indicating the operation state of the all-light button 501 is the predetermined code pattern (step S201: Yes), the communication device control unit 214 transmits to the communication adapter 120 a mode to change the state to pairing ( pairing mode) (step S202), and the process ends.

如以上所作的说明那样,第二实施方式的电子设备200包括照明装置210及通信适配器120。照明装置210包括检测部213及通信设备控制部214。检测部213从表示用于对照明装置210进行控制的全光按钮501的操作状态的码型中,检测规定码型。当利用检测部213检测到规定码型时,通信设备控制部214以设定网络参数的方式控制通信适配器120。通信适配器120包括无线通信电路122。无线通信电路122根据所设定的网络参数而与其他通信适配器进行通信。因此,根据电子设备200,用户无需直接操作照明装置210,而仅通过操作如处在用户的手能触及的范围内的遥控器500的全光按钮501便可设定网络参数。因此,根据电子设备200,可容易地设定网络参数。As described above, the electronic device 200 of the second embodiment includes the lighting device 210 and the communication adapter 120 . The lighting device 210 includes a detection unit 213 and a communication device control unit 214 . The detection unit 213 detects a predetermined pattern from patterns indicating the operating state of the full light button 501 for controlling the lighting device 210 . When a predetermined code pattern is detected by the detection unit 213, the communication device control unit 214 controls the communication adapter 120 so as to set network parameters. Communications adapter 120 includes wireless communications circuitry 122 . The wireless communication circuit 122 communicates with other communication adapters according to the set network parameters. Therefore, according to the electronic device 200, the user does not need to directly operate the lighting device 210, but can set network parameters only by operating the full light button 501 of the remote controller 500 within the reach of the user's hand. Therefore, according to the electronic device 200, network parameters can be easily set.

而且,第二实施方式的检测部213从表示全光按钮501的操作状态的码型中,检测如与表示全光按钮501的通常操作时的操作状态的码型不同的规定码型,所述全光按钮501设置在向电子装置210发送指示的遥控器500上。因此,在由用户对全光按钮501进行通常操作的情况下,检测部213不检测规定码型。因此,根据检测部213,可抑制如在进行通常操作的情况下检测规定码型那样的规定码型的误检测。Furthermore, the detecting unit 213 of the second embodiment detects a predetermined pattern different from the pattern representing the operation state of the all-beam button 501 during normal operation from among the patterns representing the operation state of the all-beam button 501. The full light button 501 is provided on the remote controller 500 for sending instructions to the electronic device 210 . Therefore, when the user normally operates the full light button 501 , the detection unit 213 does not detect the predetermined pattern. Therefore, according to the detection unit 213, false detection of a predetermined pattern such as detection of a predetermined pattern during normal operation can be suppressed.

而且,第二实施方式的通信设备控制部214是在利用检测部213检测到规定码型的情况下,将进行配对的指示发送至作为通信装置的通信适配器120。然后,无线通信电路122根据配对的结果而与其他通信适配器进行通信。Furthermore, the communication device control unit 214 of the second embodiment transmits an instruction to perform pairing to the communication adapter 120 as a communication device when a predetermined pattern is detected by the detection unit 213 . Then, the wireless communication circuit 122 communicates with other communication adapters according to the pairing result.

而且,第二实施方式的规定码型是如最后成为接通的码型。由此,在第二实施方式中,在检测到规定码型的情况下,会对通信适配器120供给电力。因此,根据第二实施方式,可使通信适配器120切实地进行配对。Furthermore, the predetermined pattern of the second embodiment is a pattern that turns ON as the last. Thus, in the second embodiment, power is supplied to communication adapter 120 when a predetermined pattern is detected. Therefore, according to the second embodiment, communication adapter 120 can be reliably paired.

[第三实施方式][Third Embodiment]

其次,对第三实施方式进行说明。第三实施方式的电子设备是在以与第一实施方式及第二实施方式相同的方法,检测到表示开关42或全光按钮501的操作状态的码型为所述各种规定码型的情况下,设定家庭网络系统内的所有电子设备的临时地址。此外,在第三实施方式中,对与第一实施方式及第二实施方式相同的设备或装置等附上相同的符号,且省略重复的说明。Next, a third embodiment will be described. The electronic device of the third embodiment detects that the code pattern indicating the operation state of the switch 42 or the all-light button 501 is the various predetermined code patterns described above in the same way as the first embodiment and the second embodiment. Next, set the temporary addresses of all electronic devices in the home network system. In addition, in 3rd Embodiment, the same code|symbol is attached|subjected to the same equipment, apparatus, etc. as 1st Embodiment and 2nd Embodiment, and redundant description is abbreviate|omitted.

图12是表示第三实施方式的家电设备控制系统1的构成例的图。在第三实施方式的家电设备控制系统1中包括家庭网络系统60、用户终端3及管理服务器4。FIG. 12 is a diagram showing a configuration example of the home appliance control system 1 according to the third embodiment. The home appliance control system 1 of the third embodiment includes a home network system 60 , user terminals 3 and a management server 4 .

家庭网络系统60包括电子设备3001~3003、网关装置10、用户终端20及接入点30。此外,图12所示的电子设备3001~3003的台数为3台,但这只不过为一例,可根据家庭网络系统60的构成进行适当变更。The home network system 60 includes electronic devices 300 1 to 300 3 , a gateway device 10 , a user terminal 20 and an access point 30 . In addition, the number of electronic devices 300 1 to 300 3 shown in FIG. 12 is three, but this is merely an example, and can be appropriately changed according to the configuration of the home network system 60 .

电子设备3001~3003是例如设置在用户住宅内的天花板等的照明器具。电子设备3001包括作为电子装置的照明装置3101。同样地,电子设备3003包括作为电子装置的照明装置3103。而且,电子设备3002包括作为电子装置的照明装置3102、及通信适配器120。该电子设备3002是通过在照明装置3102上安装通信适配器120而形成。The electronic devices 300 1 to 300 3 are, for example, lighting fixtures installed on a ceiling or the like in a user's house. The electronic device 300 1 includes a lighting device 310 1 as an electronic device. Likewise, the electronic device 300 3 includes a lighting device 310 3 as an electronic device. Furthermore, the electronic device 300 2 includes a lighting device 310 2 as an electronic device, and a communication adapter 120 . This electronic device 300 2 is formed by attaching the communication adapter 120 to the lighting device 310 2 .

此外,以下,在无需区分电子设备3001~3003的情况下,有时仅记为“电子设备300”。而且,在无需区分照明装置3101~3103的情况下,有时仅记为“照明装置310”。In addition, in the following, when there is no need to distinguish the electronic devices 300 1 to 300 3 , they may be simply described as "electronic device 300". In addition, when it is not necessary to distinguish the lighting devices 310 1 to 310 3 , they may be simply described as "the lighting device 310".

在第三实施方式中,各电子设备300的各照明装置310可相互进行通信,且可经由通信适配器120而使各照明装置310与接入点30进行通信。In the third embodiment, the lighting devices 310 of the electronic devices 300 can communicate with each other, and the lighting devices 310 can communicate with the access point 30 through the communication adapter 120 .

照明装置310具有第一实施方式的照明装置110所具有的功能、及第二实施方式的照明装置210所具有的功能这两种功能。除此以外,照明装置300在以与第一实施方式及第二实施方式相同的方法,检测到表示开关42或全光按钮501的操作状态的码型为所述各种规定码型的情况下,设定家庭网络系统60内的所有电子设备300的临时地址。The lighting device 310 has both functions of the lighting device 110 of the first embodiment and the functions of the lighting device 210 of the second embodiment. In addition, when the lighting device 300 detects that the code pattern indicating the operation state of the switch 42 or the all-light button 501 is the above-mentioned various predetermined code patterns by the same method as the first embodiment and the second embodiment, , to set the temporary addresses of all the electronic devices 300 in the home network system 60 .

其次,对第三实施方式的电子设备300进行详细说明。Next, the electronic device 300 of the third embodiment will be described in detail.

[电子设备的构成][Structure of electronic equipment]

图13是示意性地表示第二实施方式的电子设备300的构成例的图。如图13所示,电子设备300包括照明装置310及通信适配器120。照明装置310包括电源电路111、照明部112、通信电路113、电源监视电路114、接收机211及控制部312。FIG. 13 is a diagram schematically showing a configuration example of an electronic device 300 according to the second embodiment. As shown in FIG. 13 , the electronic device 300 includes a lighting device 310 and a communication adapter 120 . The lighting device 310 includes a power supply circuit 111 , a lighting unit 112 , a communication circuit 113 , a power monitoring circuit 114 , a receiver 211 , and a control unit 312 .

控制部312控制照明装置310整体。例如,控制部312是通过CPU而实现。而且,控制部312通过执行存储在照明装置310内部的未图示的存储装置中的程序,而控制照明装置310整体。此外,在图13中,表示了由CPU实现控制部312的示例,但控制部312也可以由例如MPU等实现,或者也可以由ASIC或FPGA等集成电路实现。The control unit 312 controls the lighting device 310 as a whole. For example, the control unit 312 is realized by a CPU. Furthermore, the control unit 312 controls the entire lighting device 310 by executing a program stored in a storage device (not shown) inside the lighting device 310 . In addition, in FIG. 13 , an example in which the control unit 312 is realized by a CPU is shown, but the control unit 312 may be realized by, for example, an MPU or the like, or may be realized by an integrated circuit such as an ASIC or FPGA.

这里,第三实施方式的控制部312在以与第一实施方式及第二实施方式相同的方法,检测到表示开关42或全光按钮501的操作状态的码型为所述各种规定码型的情况下,设定家庭网络系统60内的所有电子设备300的临时地址。Here, the control unit 312 of the third embodiment detects that the code pattern indicating the operation state of the switch 42 or the full light button 501 is the various predetermined code patterns in the same way as the first embodiment and the second embodiment. In the case of , the temporary addresses of all the electronic devices 300 in the home network system 60 are set.

参照图14对该方面进行说明。图14是表示第三实施方式的照明装置310所包括的控制部312的功能构成的一例的图。如图14所示,控制部312包括检测部313、及通信设备控制部314。This aspect will be described with reference to FIG. 14 . FIG. 14 is a diagram illustrating an example of a functional configuration of a control unit 312 included in a lighting device 310 according to the third embodiment. As shown in FIG. 14 , the control unit 312 includes a detection unit 313 and a communication device control unit 314 .

检测部313具有第一实施方式的检测部116所具有的功能、及第二实施方式的检测部213所具有的功能这两种功能。也就是说,检测部313是在以与第一实施方式及第二实施方式相同的方法判定所生成的码型为所述各种规定码型的情况下,从所生成的码型中检测到所述规定码型,并通知通信设备控制部314已检测到规定码型。The detection unit 313 has two functions, the function of the detection unit 116 of the first embodiment and the function of the detection unit 213 of the second embodiment. That is to say, the detection unit 313 detects from the generated code patterns when it is judged that the generated code patterns are the various predetermined code patterns by the same method as the first embodiment and the second embodiment. The predetermined pattern, and notify the communication device control unit 314 that the predetermined pattern has been detected.

通信设备控制部314当从检测部313收到已检测到规定码型的通知时,设定家庭网络系统60内的所有电子设备300的临时地址。具体而言,通信设备控制部314首先针对每一个电子设备300,产生“0”至“255”的随机数k。然后,通信设备控制部314将所产生的随机数设为临时地址,并与用于识别电子设备300的识别码(Identification,ID)建立对应地登录在地址表(address table)中。The communication device control unit 314 sets the temporary addresses of all the electronic devices 300 in the home network system 60 when receiving the notification from the detection unit 313 that the predetermined pattern has been detected. Specifically, the communication device control unit 314 first generates a random number k from “0” to “255” for each electronic device 300 . Then, the communication device control unit 314 sets the generated random number as a temporary address, and registers it in an address table (address table) in correspondence with an identification code (Identification, ID) for identifying the electronic device 300 .

对该地址表进行说明。图15是表示地址表的数据结构的一例的图。图15的示例表示如下情况:由通信设备控制部314将临时地址“251”与通过ID“3001”进行识别的电子设备3001建立对应地登录在地址表中。而且,图15的示例表示如下情况:由通信设备控制部314将临时地址“7”与通过ID“3002”进行识别的电子设备3002建立对应地登录在地址表中。此外,图15的示例表示如下情况由通信设备控制部314将临时地址“183”与通过ID“3003”进行识别的电子设备3003建立对应地登录在地址表中。This address table will be described. FIG. 15 is a diagram showing an example of a data structure of an address table. The example in FIG. 15 shows a case where the communication device control unit 314 registers the temporary address "251" in the address table in association with the electronic device 300 1 identified by the ID "300 1 ". Furthermore, the example in FIG. 15 shows a case where the communication device control unit 314 registers the temporary address "7" in the address table in association with the electronic device 300 2 identified by the ID "300 2 ". In addition, the example of FIG. 15 shows the case where the communication device control unit 314 registers the temporary address "183" in the address table in association with the electronic device 300 3 identified by the ID "300 3 ".

[控制部的处理顺序][Processing procedure of the control unit]

其次,使用图16对照明装置310的控制部312的处理顺序进行说明。图16是表示第三实施方式的照明装置的控制部所执行的网络参数设定处理的流程的流程图。网络参数设定处理例如每当由检测部313生成码型时执行。Next, the processing procedure of the control unit 312 of the lighting device 310 will be described using FIG. 16 . 16 is a flowchart showing the flow of network parameter setting processing executed by the control unit of the lighting device according to the third embodiment. The network parameter setting process is executed, for example, every time a pattern is generated by the detection unit 313 .

如图16所示,控制部312的检测部313判定表示开关42的操作状态的码型是否为规定码型(步骤S301)。然后,当判定为表示开关42的操作状态的码型并非规定码型时(步骤S301:否),检测部312判定表示全光按钮501的操作状态的码型是否为规定码型(步骤S302)。接着,当判定为表示全光按钮501的操作状态的码型并非规定码型时(步骤S302:否),返回至步骤S301,检测部313进行S301的判定处理。As shown in FIG. 16 , the detection unit 313 of the control unit 312 determines whether or not the pattern indicating the operation state of the switch 42 is a predetermined pattern (step S301 ). Then, when it is determined that the pattern representing the operation state of the switch 42 is not a predetermined pattern (step S301: No), the detection unit 312 determines whether the pattern representing the operation state of the all-light button 501 is a predetermined pattern (step S302) . Next, when it is determined that the pattern indicating the operation state of the full light button 501 is not a predetermined pattern (step S302: No), the process returns to step S301, and the detection unit 313 performs the determination process of S301.

另一方面,当判定表示全光按钮501的操作状态的码型为规定码型时(步骤S302:是)或当判定表示开关42的操作状态的码型为规定码型时(步骤S301:是),通信设备控制部314进行接下来的处理。即,通信设备控制部314设定“0”为变数i的值,而使变数i的值初始化(步骤S303)。On the other hand, when it is determined that the code pattern representing the operating state of the all-light button 501 is a prescribed pattern (step S302: Yes) or when it is determined that the code pattern representing the operating state of the switch 42 is a prescribed pattern (step S301: Yes ), the communication device control unit 314 performs the next processing. That is, the communication device control unit 314 sets "0" as the value of the variable i, and initializes the value of the variable i (step S303).

然后,通信设备控制部314判定变数i的值是否小于家庭网络系统60内的电子设备300的台数N(步骤S304)。当判定为小于时(步骤S304:是),通信设备控制部314使变数i的值递增(increment)1(步骤S305)。接着,通信设备控制部314产生“0”至“255”的随机数k(步骤S306)。Then, the communication device control unit 314 determines whether or not the value of the variable i is smaller than the number N of electronic devices 300 in the home network system 60 (step S304 ). When it is determined that it is smaller (step S304: Yes), the communication device control unit 314 increments (increments) the value of the variable i by 1 (step S305). Next, the communication device control unit 314 generates a random number k from "0" to "255" (step S306).

然后,通信设备控制部314将所产生的随机数k设为临时地址,并与用于识别电子设备300的ID(Identification)建立对应地登录在地址表中。具体而言,在地址表中,预先登录有N台电子设备300各自的ID,通信设备控制部314以对应于地址表的第i个电子设备的ID的方式登录随机数k(步骤S307)。接着,返回至S304,通信设备控制部314再次执行S304的处理。Then, the communication device control unit 314 sets the generated random number k as a temporary address, and associates it with an ID (Identification) for identifying the electronic device 300 and registers it in the address table. Specifically, IDs of N electronic devices 300 are registered in advance in the address table, and communication device control unit 314 registers a random number k corresponding to the ID of the i-th electronic device in the address table (step S307). Next, returning to S304, the communication device control unit 314 executes the process of S304 again.

另一方面,当判定为变数i的值大于等于家庭网络系统60内的电子设备300的台数N时(步骤S304:否),通信设备控制部314将登录有N台电子设备各自的临时地址的地址表发送至家庭网络系统60内的所有照明装置310(步骤S308)。由此,所有照明装置310的通信电路113的每一个均可使用登录在地址表中的临时地址,而与其他照明装置310的通信电路113进行通信。On the other hand, when it is determined that the value of the variable i is greater than or equal to the number N of electronic devices 300 in the home network system 60 (step S304: No), the communication device control unit 314 registers the temporary addresses of each of the N electronic devices. The address list is sent to all lighting devices 310 in the home network system 60 (step S308). Accordingly, each of the communication circuits 113 of all lighting devices 310 can communicate with the communication circuits 113 of other lighting devices 310 using the temporary address registered in the address table.

如以上所作的说明那样,第三实施方式的电子设备300包括照明装置310及通信适配器120。照明装置310包括检测部313及通信设备控制部314。检测部313从表示用于对照明装置310进行控制的开关42及全光按钮501的操作状态的码型中,检测规定码型。当利用检测部313检测到规定码型时,通信设备控制部314以设定网络参数的方式控制通信适配器120。通信适配器120包括无线通信电路122。无线通信电路122根据所设定的网络参数而与其他通信适配器进行通信。因此,根据电子设备300,用户无需直接操作照明装置310,而仅通过操作如处在用户的手能触及的范围内的开关42或遥控器500的全光按钮501便可设定网络参数。因此,根据电子设备300,可容易地设定网络参数。As described above, the electronic device 300 of the third embodiment includes the lighting device 310 and the communication adapter 120 . The lighting device 310 includes a detection unit 313 and a communication device control unit 314 . The detection unit 313 detects a predetermined pattern from patterns indicating the operating states of the switch 42 and the full light button 501 for controlling the lighting device 310 . When a predetermined code pattern is detected by the detection unit 313, the communication device control unit 314 controls the communication adapter 120 so as to set network parameters. Communications adapter 120 includes wireless communications circuitry 122 . The wireless communication circuit 122 communicates with other communication adapters according to the set network parameters. Therefore, according to the electronic device 300, the user does not need to directly operate the lighting device 310, but only by operating the switch 42 within the reach of the user's hand or the full light button 501 of the remote controller 500 to set the network parameters. Therefore, according to the electronic device 300, network parameters can be easily set.

而且,第三实施方式的检测部313从表示开关42的操作状态的码型中,检测如与表示开关42的通常操作时的操作状态的码型不同的规定码型,所述开关42用于控制从商用电源41向电子设备300供给电力且设置在墙壁上。因此,在由用户对开关42进行通常操作的情况下,检测部313不检测规定码型。因此,根据检测部313,可抑制如在进行通常操作的情况下检测规定码型那样的规定码型的误检测。Furthermore, the detecting unit 313 of the third embodiment detects a predetermined pattern different from the pattern representing the operating state of the switch 42 during normal operation from the pattern representing the operating state of the switch 42 for The electric device 300 is controlled to be supplied with electric power from the commercial power supply 41 and installed on the wall. Therefore, when the switch 42 is normally operated by the user, the detection unit 313 does not detect the predetermined pattern. Therefore, according to the detection unit 313, false detection of a predetermined pattern such as detection of a predetermined pattern during normal operation can be suppressed.

而且,第三实施方式的检测部313从表示全光按钮501的操作状态的码型中,检测如与表示全光按钮501的通常操作时的操作状态的码型不同的规定码型,所述全光按钮501设置在向电子装置310发送指示的遥控器500上。因此,在由用户对全光按钮501进行通常操作的情况下,检测部313不检测规定码型。因此,根据检测部313,可抑制如在进行通常操作的情况下检测规定码型那样的规定码型的误检测。Furthermore, the detecting unit 313 of the third embodiment detects a predetermined pattern different from the pattern representing the operation state of the all-beam button 501 during normal operation from among the patterns representing the operation state of the all-beam button 501. The full light button 501 is provided on the remote controller 500 for sending instructions to the electronic device 310 . Therefore, when the user normally operates the full light button 501 , the detection unit 313 does not detect the predetermined pattern. Therefore, according to the detection unit 313, false detection of a predetermined pattern such as detection of a predetermined pattern during normal operation can be suppressed.

而且,第三实施方式的通信设备控制部314是在利用检测部313检测到规定码型的情况下,将进行配对的指示发送至作为通信装置的通信适配器120。然后,无线通信电路122根据配对的结果而与其他通信适配器进行通信。Furthermore, the communication device control unit 314 of the third embodiment transmits an instruction to perform pairing to the communication adapter 120 as a communication device when a predetermined pattern is detected by the detection unit 313 . Then, the wireless communication circuit 122 communicates with other communication adapters according to the pairing result.

而且,第三实施方式的照明装置310包括与其他电子设备进行通信的第二通信部即通信电路113。而且,当利用检测部313检测到规定码型时,通信设备控制部314针对电子设备310及其他电子设备的各电子设备产生随机数,将所产生的随机数设定为临时地址,并将所设定的临时地址发送至通信电路113。通信电路113根据从通信设备控制部314发送来的临时地址而与其他电子设备进行通信。因此,根据电子设备300,用户无需直接操作照明装置310,而仅通过操作如处在用户的手能触及的范围内的开关42或遥控器500的全光按钮501,便可设定临时地址这一网络参数。因此,根据电子设备300,可容易地设定网络参数。Furthermore, the lighting device 310 of the third embodiment includes the communication circuit 113 which is a second communication unit for communicating with other electronic devices. Moreover, when a predetermined code pattern is detected by the detection unit 313, the communication device control unit 314 generates a random number for each electronic device of the electronic device 310 and other electronic devices, sets the generated random number as a temporary address, and sets the generated random number as a temporary address. The set temporary address is sent to the communication circuit 113 . The communication circuit 113 communicates with other electronic devices based on the temporary address sent from the communication device control unit 314 . Therefore, according to the electronic device 300, the user does not need to directly operate the lighting device 310, but only by operating the switch 42 or the full light button 501 of the remote controller 500 within the reach of the user's hand, the temporary address can be set. a network parameter. Therefore, according to the electronic device 300, network parameters can be easily set.

而且,第三实施方式的规定码型是如最后成为接通的码型。由此,在第三实施方式中,在检测到规定码型的情况下,会对通信适配器120供给电力。因此,根据第三实施方式,可使通信适配器120切实地进行配对。Furthermore, the predetermined pattern of the third embodiment is a pattern that turns ON as the last. Thus, in the third embodiment, power is supplied to communication adapter 120 when a predetermined pattern is detected. Therefore, according to the third embodiment, communication adapter 120 can be reliably paired.

如以上所作的说明那样,根据所述各实施方式,可容易地设定网络参数。As described above, according to the above-described embodiments, network parameters can be easily set.

已对本发明的若干实施方式进行了说明,但这些实施方式是作为示例而提出的,并不意图限定发明的范围。这些实施方式能够以其他各种方式实施,且可在不脱离发明的主旨的范围内进行各种省略、替换、变更。这些实施方式及其变形包含在发明的范围及主旨中,同样地包含在权利要求的范围中所记载的发明及其均等的范围内。Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in other various forms, and various omissions, substitutions, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and spirit of the invention, and are also included in the invention described in the scope of claims and their equivalents.

Claims (5)

1. an electronic equipment, comprises electronic installation and communicator, it is characterized in that, described electronic installation comprises:
Test section, from representing the pattern of the mode of operation of the specified devices for described electronic installation is controlled, detects regulation pattern; And
Control part, in the situation that described regulation pattern being detected by described test section, controls described communicator in the mode of setting network parameter;
Described communicator comprises: the first Department of Communication Force, communicates with other communicators according to the network parameter setting.
2. electronic equipment according to claim 1, it is characterized in that: described test section is from the pattern of the mode of operation of expression switch, the pattern of the mode of operation of detection during as common operation from representing described switch different as described in regulation pattern, described switch is for controlling from source power supply to described electronic equipment supply electric power and being arranged on wall.
3. electronic equipment according to claim 1, it is characterized in that: described test section is from the pattern of the mode of operation of expression button, the pattern of the mode of operation of detection during as common operation from representing described button different as described in regulation pattern, described button is arranged on to described electronic installation and sends on the remote controller of indicating.
4. according to the electronic equipment described in any one in claims 1 to 3, it is characterized in that: in the situation that described regulation pattern being detected by described test section, described control part sends the indication of matching to described communicator, described the first Department of Communication Force communicates with described other communicators according to the result of pairing.
5. electronic equipment according to claim 1, is characterized in that:
Described electronic installation also comprises the second communication portion communicating with other electronic equipments,
In the situation that described regulation pattern being detected by described test section, the communicator control part of described control part produces random number for each electronic equipment of described electronic equipment and described other electronic equipments, produced random number is set as to temporary address, and the temporary address setting is sent to described second communication portion
Described second communication portion communicates with described other electronic equipments according to the described temporary address of sending from described communicator control part.
CN201310409981.0A 2013-03-14 2013-09-10 Electronic Apparatus Pending CN104053248A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013052454A JP2014179801A (en) 2013-03-14 2013-03-14 Electronic apparatus
JP2013-052454 2013-03-14

Publications (1)

Publication Number Publication Date
CN104053248A true CN104053248A (en) 2014-09-17

Family

ID=51505505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310409981.0A Pending CN104053248A (en) 2013-03-14 2013-09-10 Electronic Apparatus

Country Status (2)

Country Link
JP (1) JP2014179801A (en)
CN (1) CN104053248A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6830207B2 (en) * 2017-04-28 2021-02-17 パナソニックIpマネジメント株式会社 Lighting system pairing method and lighting controller

Also Published As

Publication number Publication date
JP2014179801A (en) 2014-09-25

Similar Documents

Publication Publication Date Title
CN105593959B (en) Easy-to-install home automation light switch
US8826046B2 (en) Light fixture monitoring-controlling system and method for controlling light intensity based on a light fixture adapter program loaded from a web-server
JP5739002B2 (en) Communication device and communication system
WO2011145381A1 (en) Controller, method of controlling illumination, and network system
US9706626B2 (en) Intui-network
KR20110129906A (en) Lighting control network
US20170329294A1 (en) Methods for controlling appliances using scripted switches and buttons
CN106155009A (en) Intelligent home control device and method
WO2015155991A1 (en) Device cooperation control system, device control apparatus, device, method for controlling devices of device cooperation control system, and program thereof
CN107798837A (en) Switch device with auxiliary power unit and wireless receiving function and lamp system thereof
KR101738784B1 (en) Intelligent integrated switch coupled wireless network function for constructing IoT environment and control method using the same
TW201803316A (en) Control device, and control method
JP3161726U (en) Power distribution system
US20140277591A1 (en) Electrical Equipment and Communication Apparatus
KR20170062424A (en) Intelligent integrated switch coupled wireless network function for constructing IoT environment and control method using the same
KR101377065B1 (en) Home-automation system using mobile device
TWI715029B (en) Communication device and communication system for lighting control
CN104053248A (en) Electronic Apparatus
KR101677131B1 (en) Lighting control system using Bluetooth
JP2014217232A (en) Control system
CN206118147U (en) Intelligence switch device and intelligent control equipment
CN212544110U (en) Composite lamp
TWI447546B (en) Multi-protocol power switch control network
JP7709188B2 (en) Method for setting wireless communication system, wireless communication system, and program
CN114157527A (en) Expansion module for network structure function expansion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140917