COMMUNICATION SYSTEM, LIGHTING SYSTEM, AND COMMUNICATION METHOD

The communication system addresses the need for secure and adaptable connections by generating and exchanging key codes and security codes, enabling user-operation-free and standard-agnostic device communication.

JP7823214B2Active Publication Date: 2026-03-03JAPAN DISPLAY INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024551362
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-10-11
Filing Date
2023-09-22
Publication Date
2026-03-03
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

Existing lighting systems require specific user operations for device registration and do not adapt to communication standards other than Bluetooth, and security measures may not ensure exclusive communication.

Method used

A communication system with a slave device and a master device that generates and exchanges key codes and security codes based on random number data to establish secure connections without relying on user operations or communication platforms.

Benefits of technology

Enables secure communication connections without user intervention and adapts to various communication standards, ensuring exclusive communication between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007823214000001
    Figure 0007823214000001
  • Figure 0007823214000002
    Figure 0007823214000002
  • Figure 0007823214000003
    Figure 0007823214000003
Patent Text Reader

Abstract

Provided are a communication system, illumination system, and communication method allowing realization of a device connection environment ensuring security without relying on a communication platform or user operation. A slave device (illumination device) generates a security code (A) to which a plurality of random data corresponding to address data are allocated, and a key code (A). In a first process after a communication connection has been established between the slave device and a master device (control device), the slave device transmits the key code (A) and the security code (A) to the master device, and the master device retains the key code (A) as a key code (B) and the security code (A) as a security code (B). In a second process after the first process, the master device transmits to the slave device an address code generated on the basis of the security code (B) and an XOR code (B) generated on the basis of the address code and a second key code, and the slave device cancels the communication connection with the master device if an XOR code (A) generated on the basis of the address code, the key code (A), and the security code (A) does not match the XOR code (B) received from the master device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a communication system, a lighting system, and a communication method. [Background technology]

[0002] For example, a conventional lighting system has been disclosed in which a lighting device receives a predetermined key operation from a remote control device, transmits its own device's identification information to the remote control device, and when it receives control information including its own device's identification information from the remote control device, performs an operation (e.g., turns on) according to the control information (see, for example, Patent Document 1). Another wireless communication system has been disclosed in which a lighting device does not connect with a user device that has transmitted a pairing signal outside of a valid pairing period, thereby reducing the possibility of an unexpected user device connecting and achieving a secure connection (see, for example, Patent Document 2). Another wireless communication system has been disclosed in which, for example, in a configuration in which connection control is performed between a master device and a slave device via Bluetooth (registered trademark) communication, when the slave device receives an operation signal during pairing, the slave device transmits a security number to the master device and transmits and receives data indicating the security number and control content, thereby enabling easy pairing and achieving high security (see, for example, Patent Document 3). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 5119791 [Patent Document 2] Japanese Patent Application Laid-Open No. 2012-209758 [Patent Document 3] Japanese Patent Application Laid-Open No. 2015-211322 Summary of the Invention [Problem to be solved by the invention]

[0004] In Patent Document 1, when registering the identification information of a lighting device in a remote control device, the user must perform a specific key operation that is different from normal operations. In addition, Patent Document 2 is based on wireless communication using Bluetooth (registered trademark), and does not consider adapting it to other communication standards. In addition, in Patent Document 3, the security number (S / ID) of the slave device is transmitted to the master device that has executed pairing, so exclusive communication may not necessarily be achieved.

[0005] The present invention aims to provide a communication system, a lighting system, and a communication method that can realize a secure communication connection environment without relying on a communication platform or user operations. [Means for solving the problem]

[0006] A communication system according to one aspect of the present disclosure includes a slave device and a master device that controls the slave device, and transmits and receives control data between the master device and the slave device. The slave device generates a first key code and a first security code to which multiple pieces of random number data, each of which corresponds to address data, are assigned. In a first process after a communication connection between the slave device and the master device is established, the slave device transmits the first key code and the first security code to the master device. The master device stores the first key code as a second key code and the first security code as a second security code. In a second process after the first process, the master device transmits to the slave device an address code generated based on the second security code and a second code generated based on the address code and the second key code. The slave device terminates the communication connection with the master device if the first code generated based on the address code, the first key code, and the first security code does not match the second code received from the master device.

[0007] According to one aspect of the present disclosure, there is provided a lighting system comprising: a lighting device including a light source; an optical element disposed on an optical axis of the light source and capable of setting a light distribution state of light emitted from the light source; and a control device capable of changing the light distribution state, wherein the lighting device generates a first key code and a first security code to which multiple pieces of random number data, each of which corresponds to address data, are assigned; in a first process after a communication connection between the lighting device and the control device is established, the lighting device transmits the first key code and the first security code to the control device; the control device stores the first key code as a second key code and the first security code as a second security code; in a second process after the first process, the control device transmits to the lighting device an address code generated based on the second security code and a second code generated based on the address code and the second key code; and the lighting device terminates the communication connection with the control device if the first code generated based on the address code, the first key code, and the first security code does not match the second code received from the control device.

[0008] A communication method according to one embodiment of the present disclosure is a communication method for transmitting and receiving control data between a slave device and a master device that controls the slave device, the method including: a first step in which the slave device generates a first key code and a first security code to which multiple pieces of random number data, each of which corresponds to address data, are assigned; a second step in which the slave device transmits the first key code and the first security code to the master device after a communication connection between the slave device and the master device is established; a third step in which the master device retains the first key code as a second key code and the first security code as a second security code; a fourth step in which the master device transmits to the slave device an address code generated based on the second security code and a second code generated based on the address code and the second key code; and a fifth step in which the slave device terminates its communication connection with the master device if the first code generated based on the address code, the first key code, and the first security code does not match the second code received from the master device. [Brief explanation of the drawings]

[0009] [Figure 1A] FIG. 1A is a side view illustrating an example of a lighting device according to an embodiment. [Figure 1B] FIG. 1B is a perspective view illustrating an example of an optical element according to an embodiment. [Figure 2] FIG. 2 is a schematic plan view of the first substrate as viewed from the Dz direction. [Figure 3] FIG. 3 is a schematic plan view of the second substrate as viewed from the Dz direction. [Figure 4] FIG. 4 is a perspective view of a liquid crystal cell in which the first substrate and the second substrate are stacked in the Dz direction. [Figure 5] FIG. 5 is a cross-sectional view taken along line AA' shown in FIG. [Figure 6A] FIG. 6A is a diagram showing the alignment direction of the alignment film of the first substrate. [Figure 6B]FIG. 6B is a diagram showing the alignment direction of the alignment film of the second substrate. [Figure 7] FIG. 7 is a diagram showing the layer structure of the optical element according to the embodiment. [Figure 8A] FIG. 8A is a conceptual diagram for explaining the change in shape of light caused by the optical element according to the embodiment. [Figure 8B] FIG. 8B is a conceptual diagram for explaining the change in the shape of light caused by the optical element according to the embodiment. [Figure 8C] FIG. 8C is a conceptual diagram for explaining the change in the shape of light caused by the optical element according to the embodiment. [Figure 8D] FIG. 8D is a conceptual diagram for explaining the change in the shape of light caused by the optical element according to the embodiment. [Figure 9] FIG. 9 is a conceptual diagram for explaining the concept of controlling the degree of light diffusion by the lighting device according to the embodiment. [Figure 10] FIG. 10 is a schematic diagram illustrating an example of the configuration of a lighting system according to an embodiment. [Figure 11] FIG. 11 is an external view illustrating an example of a control device according to an embodiment. [Figure 12] FIG. 12 is a conceptual diagram showing an example of a touch detection area in a touch sensor. [Figure 13] FIG. 13 is a diagram illustrating an example of a display mode of a setting change screen of the control device according to the embodiment. [Figure 14] FIG. 14 is a diagram illustrating an example of a control block configuration of the control device according to the embodiment. [Figure 15] FIG. 15 is a diagram illustrating an example of a control block configuration of the lighting device according to the embodiment. [Figure 16] FIG. 16 is a diagram illustrating an example of a schematic configuration of a communication system according to the first embodiment. [Figure 17A] FIG. 17A is a first sequence diagram illustrating an example of a connection establishment process in the communication system according to the first embodiment. [Figure 17B] FIG. 17B is a second sequence diagram illustrating an example of the connection establishment process in the communication system according to the first embodiment. [Figure 17C] FIG. 17C is a third sequence diagram illustrating an example of a connection establishment process in the communication system according to the first embodiment. [Figure 17D] FIG. 17D is a fourth sequence diagram illustrating an example of a connection establishment process in the communication system according to the first embodiment. [Figure 18] FIG. 18 is a flowchart illustrating an example of a startup process of the slave device according to the first embodiment. [Figure 19] FIG. 19 is a flowchart illustrating an example of a first process of the master device according to the first embodiment. [Figure 20] FIG. 20 is a flowchart illustrating an example of a first process of the slave device according to the first embodiment. [Figure 21A] FIG. 21A is an image diagram of a connection code (A) stored in the first storage unit of the slave device. [Figure 21B] FIG. 21B is an image diagram of a key code (A) stored in the first storage unit of the slave device. [Figure 21C] FIG. 21C is a first conceptual diagram of a security code (A) stored in the first storage unit of the slave device. [Figure 21D] FIG. 21D is a second conceptual diagram of the security code (A) stored in the first storage unit of the slave device. [Figure 22A] FIG. 22A is an image diagram of a connection code (B) stored in the second storage unit of the master device. [Figure 22B] FIG. 22B is an image diagram of a key code (B) stored in the second storage unit of the master device. [Figure 22C] FIG. 22C is a first conceptual diagram of a security code (B) stored in the second storage unit of the master device. [Figure 22D] FIG. 22D is a second conceptual diagram of the security code (B) stored in the second storage unit of the master device. [Figure 23A] FIG. 23A is a first sequence diagram illustrating an example of a data transmission and reception process in the communication system according to the first embodiment. [Figure 23B]FIG. 23B is a second sequence diagram illustrating an example of the data transmission and reception process in the communication system according to the first embodiment. [Figure 24] FIG. 24 is a flowchart illustrating an example of the second process of the master device according to the first embodiment. [Figure 25] FIG. 25 is a flowchart illustrating an example of a second process of the slave device according to the first embodiment. [Figure 26A] FIG. 26A is an image diagram of the security code (B) stored in the second storage unit of the master device. [Figure 26B] FIG. 26B is an image diagram of an address code in which address data selected from security code (B) are arranged in the order of selection. [Figure 26C] FIG. 26C is an image diagram of a selected security code (B) in which random number data extracted from the security code (B) is arranged in the order of the selected address data. [Figure 26D] FIG. 26D is an image diagram showing an example of calculation of the XOR code (B). [Figure 26E] FIG. 26E is an image diagram of the security code (A) stored in the first storage unit of the slave device. [Figure 26F] FIG. 26F is an image diagram of a selected security code (A) in which random number data extracted from the security code (A) is arranged in the order of the received address data. [Figure 26G] FIG. 26G is an image diagram showing an example of calculation of the XOR code (A). [Figure 27A] FIG. 27A is a first sequence diagram illustrating an example of a connection establishment process in the communication system according to the second embodiment. [Figure 27B] FIG. 27B is a second sequence diagram illustrating an example of a connection establishment process in the communication system according to the second embodiment. [Figure 27C] FIG. 27C is a third sequence diagram illustrating an example of a connection establishment process in the communication system according to the second embodiment. [Figure 27D]FIG. 27D is a fourth sequence diagram illustrating an example of a connection establishment process in the communication system according to the second embodiment. [Figure 28] FIG. 28 is a flowchart illustrating an example of a first process of the master device according to the second embodiment. [Figure 29] FIG. 29 is a flowchart illustrating an example of a first process of the slave device according to the second embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0010] Modes for carrying out the invention (embodiments) will be described in detail with reference to the drawings. The present invention is not limited to the contents described in the following embodiments. Furthermore, the components described below include those that can be easily imagined by a person skilled in the art and those that are substantially identical. Furthermore, the components described below can be combined as appropriate. Note that the disclosure is merely an example, and any appropriate modifications that a person skilled in the art can easily conceive while maintaining the gist of the invention are naturally included within the scope of the present invention. Furthermore, for clarity of explanation, the drawings may show the width, thickness, shape, etc. of each part schematically compared to the actual embodiment. However, these are merely examples and are not intended to limit the interpretation of the present invention. Furthermore, in this specification and each figure, elements similar to those previously described with reference to the preceding figures are designated by the same reference numerals, and detailed descriptions may be omitted as appropriate.

[0011] FIG. 1A is a side view illustrating an example of an illumination device 1 according to an embodiment. FIG. 1B is a perspective view illustrating an example of an optical element 100 according to an embodiment. As shown in FIG. 1A, the illumination device 1 includes a light source 4, a reflector 4a, and an optical element 100. As shown in FIG. 1B, the optical element 100 includes a first liquid crystal cell 2_1, a second liquid crystal cell 2_2, a third liquid crystal cell 2_3, and a fourth liquid crystal cell 2_4. The light source 4 is formed of, for example, a light emitting diode (LED). The reflector 4a is a component that collects light from the light source 4 onto the optical element 100.

[0012] In FIG. 1B, the Dz direction indicates the emission direction of light from the light source 4 and the reflector 4a. The optical element 100 is configured by stacking a first liquid crystal cell 2_1, a second liquid crystal cell 2_2, a third liquid crystal cell 2_3, and a fourth liquid crystal cell 2_4 in the Dz direction. In the present disclosure, the optical element 100 is configured by stacking the first liquid crystal cell 2_1, the second liquid crystal cell 2_2, the third liquid crystal cell 2_3, and the fourth liquid crystal cell 2_4 in this order from the light source 4 side (the lower side of FIG. 1B). In FIG. 1B, one direction of a plane parallel to the stacking plane of the first liquid crystal cell 2_1, the second liquid crystal cell 2_2, the third liquid crystal cell 2_3, and the fourth liquid crystal cell 2_4, which is perpendicular to the Dz direction, is defined as the Dx direction (first direction), and a direction perpendicular to both the Dx direction and the Dz direction is defined as the Dy direction (second direction).

[0013] The first liquid crystal cell 2_1, the second liquid crystal cell 2_2, the third liquid crystal cell 2_3, and the fourth liquid crystal cell 2_4 each have the same configuration. In the present disclosure, the first liquid crystal cell 2_1 and the fourth liquid crystal cell 2_4 are liquid crystal cells for p-wave polarization. The second liquid crystal cell 2_2 and the third liquid crystal cell 2_3 are liquid crystal cells for s-wave polarization. Hereinafter, the first liquid crystal cell 2_1, the second liquid crystal cell 2_2, the third liquid crystal cell 2_3, and the fourth liquid crystal cell 2_4 will also be collectively referred to as "liquid crystal cells 2."

[0014] The liquid crystal cell 2 includes a first substrate 5 and a second substrate 6. FIG. 2 is a schematic plan view of the first substrate 5 as viewed from the Dz direction. FIG. 3 is a schematic plan view of the second substrate 6 as viewed from the Dz direction. In FIG. 3, the drive electrodes are visible through the substrates, but the drive electrodes and wiring are shown with solid lines for ease of understanding. FIG. 4 is a perspective view of a liquid crystal cell in which the first substrate 5 and the second substrate 6 are stacked in the Dz direction. In FIG. 4, the drive electrodes and wiring on the second substrate side are shown with solid lines, and the drive electrodes and wiring on the first substrate side are shown with dotted lines for ease of understanding. FIG. 5 is a cross-sectional view taken along line A-A' in FIG. 4. In addition, FIGS. 2, 3, 4, and 5 illustrate a third liquid crystal cell 2_3 and a fourth liquid crystal cell 2_4 in which the drive electrodes 10a and 10b of the first substrate 5 extend in the Dx direction and the drive electrodes 13a and 13b of the second substrate 6 extend in the Dy direction.

[0015] As shown in FIG. 5, the liquid crystal cell 2 includes a liquid crystal layer 8 between a first substrate 5 and a second substrate 6, the periphery of which is sealed with a sealing material .

[0016] The liquid crystal layer 8 modulates light passing through the liquid crystal layer 8 according to the state of the electric field. Positive nematic liquid crystal is used as the liquid crystal molecules, but other liquid crystals having a similar effect may also be used.

[0017] As shown in FIG. 2, the first substrate 5 includes, on its base material 9 facing the liquid crystal layer 8, a plurality of drive electrodes 10a and 10b, a plurality of metal wirings 11a and 11b that supply drive voltages to the drive electrodes 10a and 10b, and a plurality of metal wirings 11c and 11d that supply drive voltages to a plurality of drive electrodes 13a and 13b (see FIG. 3) provided on the second substrate 6 (described later). The metal wirings 11a, 11b, 11c, and 11d are provided in a wiring layer on the first substrate 5. The metal wirings 11a, 11b, 11c, and 11d are provided at intervals in the wiring layer on the first substrate 5. Hereinafter, the plurality of drive electrodes 10a and 10b may be simply referred to as "drive electrodes 10." The plurality of metal wirings 11a, 11b, 11c, and 11d may be referred to as "first metal wirings 11." 2 and 7, in the third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4, the drive electrodes 10 on the first substrate 5 extend in the Dx direction. Note that in the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2, the drive electrodes 10 on the first substrate 5 extend in the Dy direction.

[0018] As shown in FIG. 3, the base material 12 of the second substrate 6 shown in FIG. 5 includes, on the liquid crystal layer 8 side, a plurality of drive electrodes 13a and 13b and a plurality of metal wirings 14a and 14b that supply drive voltages to these drive electrodes 13. The metal wirings 14a and 14b are provided in the wiring layer of the second substrate 6. The metal wirings 14a and 14b are provided at intervals in the wiring layer on the second substrate 6. Hereinafter, the plurality of drive electrodes 13a and 13b may be simply referred to as "drive electrodes 13." The plurality of metal wirings 14a and 14b may be referred to as "second metal wirings 14." As shown in FIGS. 3 and 7, in the third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4, the drive electrodes 13 on the second substrate 6 extend in the Dy direction. In the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2, the drive electrodes 13 on the second substrate 6 extend in the Dx direction.

[0019] The driving electrodes 10 and 13 are translucent electrodes formed of a translucent conductive material (translucent conductive oxide) such as ITO (Indium Tin Oxide). The first substrate 5 and the second substrate 6 are translucent substrates such as glass or resin. The first metal wiring 11 and the second metal wiring 14 are formed of at least one metal material selected from aluminum (Al), copper (Cu), silver (Ag), molybdenum (Mo), and alloys thereof. The first metal wiring 11 and the second metal wiring 14 may also be formed as a laminated body in which a plurality of layers are stacked using one or more of these metal materials. At least one metal material selected from aluminum (Al), copper (Cu), silver (Ag), molybdenum (Mo), and alloys thereof has lower resistance than a translucent conductive oxide such as ITO.

[0020] Metal wiring 11c of first substrate 5 and metal wiring 14a of second substrate 6 are connected by conductive portion 15a made of, for example, conductive paste. Metal wiring 11d of first substrate 5 and metal wiring 14b of second substrate 6 are connected by conductive portion 15b made of, for example, conductive paste.

[0021] Furthermore, connection (Flex-on-Board) terminal portions 16a and 16b to be connected to a flexible printed circuit (FPC) (not shown) are provided in an area on the first substrate 5 that does not overlap with the second substrate 6 in the Dz direction. The connection terminal portions 16a and 16b each include four connection terminals corresponding to the metal wirings 11a, 11b, 11c, and 11d.

[0022] The connection terminals 16a and 16b are provided on the wiring layer of the first substrate 5. A drive voltage is supplied to the liquid crystal cell 2 from the FPC connected to the connection terminal 16a or the connection terminal 16b to be applied to the drive electrodes 10a and 10b on the first substrate 5 and the drive electrodes 13a and 13b on the second substrate 6. Hereinafter, the connection terminals 16a and 16b may be simply referred to as "connection terminals 16."

[0023] As shown in FIG. 4, the liquid crystal cell 2 has the first substrate 5 and the second substrate 6 overlapping in the Dz direction (light irradiation direction), and the plurality of drive electrodes 10 on the first substrate 5 and the plurality of drive electrodes 13 on the second substrate 6 intersect as viewed from the Dz direction. The liquid crystal cell 2 configured in this manner can control the alignment direction of the liquid crystal molecules 17 in the liquid crystal layer 8 by supplying drive voltages to the plurality of drive electrodes 10 on the first substrate 5 and the plurality of drive electrodes 13 on the second substrate 6, respectively. The region where the alignment direction of the liquid crystal molecules 17 in the liquid crystal layer 8 can be controlled is referred to as the "effective area AA." In the effective area AA, the refractive index distribution of the liquid crystal layer 8 changes, thereby enabling control of the degree of diffusion of light passing through the effective area AA of the liquid crystal cell 2. The region outside the effective area AA, where the liquid crystal layer 8 is sealed with the sealant 7, is referred to as the "peripheral area GA" (see FIG. 5).

[0024] 5, in the effective area AA of the first substrate 5, the drive electrode 10 (drive electrode 10a in FIG. 5) is covered with an alignment film 18. In addition, in the effective area AA of the second substrate 6, the drive electrode 13 (drive electrodes 13a and 13b in FIG. 5) is covered with an alignment film 19. The alignment directions of the liquid crystal molecules in the alignment film 18 and the alignment film 19 are different.

[0025] 6A is a diagram showing the alignment direction of the alignment film on the first substrate 5. FIG. 6B is a diagram showing the alignment direction of the alignment film on the second substrate 6.

[0026] 6A and 6B, the alignment direction of the alignment film 18 on the first substrate 5 and the alignment direction of the alignment film 19 on the second substrate 6 intersect with each other in a plan view. Specifically, as shown by the solid arrow in FIG. 6A, the alignment direction of the alignment film 18 on the first substrate 5 is perpendicular to the extension direction of the drive electrodes 10a and 10b, as shown by the dashed arrow in FIG. 6A. Furthermore, as shown by the solid arrow in FIG. 6B, the alignment direction of the alignment film 19 on the second substrate 6 is perpendicular to the extension direction of the drive electrodes 13a and 13b, as shown by the dashed arrow in FIG. 6B. In the following description, the extension direction of each of the drive electrodes 10 and 13 and the alignment direction of the alignment films 18 and 19 covering them are described as being perpendicular to each other, but they may intersect at an angle other than perpendicular, for example, an angle in the range of 85° to 90°. Furthermore, it is preferable that the drive electrodes 10 on the first substrate 5 side and the drive electrodes 13 on the second substrate 6 side are perpendicular to each other, but they may intersect at an angle ranging from 85° to 90°, for example. The alignment directions of the alignment films 18 and 19 are formed by a rubbing treatment or a photo-alignment treatment.

[0027] Here, we will explain how the shape of light is changed by each liquid crystal cell 2 (first liquid crystal cell 2_1, second liquid crystal cell 2_2, third liquid crystal cell 2_3, and fourth liquid crystal cell 2_4). Fig. 7 is a diagram showing the layered structure of the optical element 100 according to the embodiment. Figs. 8A, 8B, 8C, and 8D are conceptual diagrams for explaining the change in the shape of light by the optical element 100 according to the embodiment. Figs. 8A, 8B, 8C, and 8D show an example in which a potential difference is generated between each drive electrode of the shaded substrate of each liquid crystal cell 2.

[0028] 7, the optical element 100 is provided on the optical axis of the light source 4 indicated by the dashed line, and as described above, the first liquid crystal cell 2_1, the second liquid crystal cell 2_2, the third liquid crystal cell 2_3, and the fourth liquid crystal cell 2_4 are stacked in this order from the light source 4 side (the lower side in FIG. 7). The third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4 are stacked in a state rotated by 90° with respect to the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2.

[0029] 6A and 6B, in each liquid crystal cell 2, the alignment direction of the alignment film crosses between the first substrate 5 side and the second substrate 6 side. As a result, the orientation of the liquid crystal molecules in the liquid crystal layer 8 gradually changes from the Dx direction to the Dy direction (or from the Dy direction to the Dx direction) as it moves from the first substrate 5 side to the second substrate 6 side, and the polarization component of the transmitted light rotates along this change. That is, in the liquid crystal cell 2, the polarization component that was a p-polarized component on the first substrate 5 side changes to an s-polarized component as it moves toward the second substrate 6 side, and the polarization component that was an s-polarized component on the first substrate 5 side changes to a p-polarized component as it moves toward the second substrate 6 side. This rotation of the polarization component may be referred to as optical rotation.

[0030] 8A shows a state in which no potential is generated between adjacent electrodes of each liquid crystal cell 2. In this case, only optical rotation occurs in each liquid crystal cell 2, and none of the polarized light components are diffused.

[0031] 8B, for example, a transverse electric field is generated by generating a potential difference between the drive electrodes 10a and 10b on the first substrate 5 side of the first liquid crystal cell 2_1, and the liquid crystal molecules are aligned in an arc shape between the electrodes, thereby forming a refractive index distribution along the Dx direction in the liquid crystal layer 8. When light from the light source 4 passes through in this state, the refractive index distribution acts on the polarized light component parallel to the Dx direction (the p-polarized component in FIG. 8B), causing the p-polarized component to diffuse in the Dx direction.

[0032] Furthermore, when a potential difference is also generated between the drive electrodes 13a and 13b on the second substrate 6 side of the first liquid crystal cell 2_1, a refractive index distribution in the Dy direction is formed on the second substrate 6 side, which causes the s-polarized component to diffuse in the Dy direction on the second substrate 6 side. That is, the polarized component that changed from a p-polarized component to an s-polarized component while passing through the liquid crystal layer 8 of the first liquid crystal cell 2_1 is now diffused in the Dy direction as well. On the other hand, the s-polarized component when it is incident on the first liquid crystal cell 2_1 undergoes optical rotation while passing through the liquid crystal layer 8, but becomes a polarized component that intersects with both refractive index distributions, so it passes through the first liquid crystal cell 2_1 with only optical rotation without being diffused.

[0033] The s-polarized light component incident on the first liquid crystal cell 2_1 is changed to a p-polarized light component after passing through the first liquid crystal cell 2_1, and the second liquid crystal cell 2_2 acts on the p-polarized light component. That is, as shown in FIGS. 8A and 8B , of the light incident on the optical element 100, the first liquid crystal cell 2_1 acts on the p-polarized light component, and the second liquid crystal cell 2_2 acts on the s-polarized light component. The third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4 are rotated 90° relative to the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2, so that the polarization components they act on are also swapped by 90°. That is, the third liquid crystal cell 2_3 acts on the s-polarized light component incident on the optical element 100, and the fourth liquid crystal cell 2_4 acts on the p-polarized light component incident on the optical element 100.

[0034] 8C, in the optical element, by applying a potential difference between the drive electrodes extending in the Dy direction for each liquid crystal cell 2 (between the drive electrodes 10a and 10b on the first substrate 5 for the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2, and between the drive electrodes 13a and 13b on the second substrate 6 for the third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4), the p-polarized light component can be affected, and the shape of the light can be enlarged mainly in the Dx direction. This effect may be called lateral diffusion.

[0035] 8D, by applying a potential difference between the drive electrodes extending in the Dx direction for each liquid crystal cell 2 (between the drive electrodes 13a and 13b on the second substrate 6 in the first liquid crystal cell 2_1 and the second liquid crystal cell 2_2, and between the drive electrodes 10a and 10b on the first substrate 5 in the third liquid crystal cell 2_3 and the fourth liquid crystal cell 2_4), the s-polarized light component can be affected, and the shape of the light can be enlarged mainly in the Dy direction. This effect may be called vertical diffusion.

[0036] The degree of light diffusion in each direction depends on the potential difference between adjacent drive electrodes 10a and 10b (or between drive electrodes 13a and 13b). If the potential difference between drive electrodes 10a and 10b (or between drive electrodes 13a and 13b) is set to a predetermined maximum potential difference (e.g., 30 V), the light diffusion in that direction will be maximum (100%). If no potential difference is generated, no light diffusion will occur in that direction (0%). Alternatively, if the potential difference between drive electrodes 10a and 10b (or between drive electrodes 13a and 13b) is set to 50% of the maximum potential difference (e.g., 15 V), the light diffusion in that direction will be 50%. Note that if the relationship between the voltage difference and the light diffusion is not linear, a potential difference other than 15 V can be used.

[0037] The distance (also called the cell gap) between the substrates (between the first substrate 5 and the second substrate 6) of each liquid crystal cell 2 is wide, about 10 μm to 50 μm, and more preferably about 15 μm to 35 μm, thereby minimizing the influence of the electric field formed on one substrate on the other substrate. Also, the drive voltage that generates a potential difference between adjacent drive electrodes 10 a, 10 b (or drive electrodes 13 a, 13 b) is a so-called AC rectangular wave, which of course prevents burn-in of liquid crystal molecules.

[0038] In addition, the orientation direction of each orientation film, the extension direction of the drive electrodes of each substrate, and the angle between them can be changed as appropriate for the entire optical element 100 or for each liquid crystal cell 2 depending on the characteristics of the liquid crystal used and the optical properties desired to be achieved.

[0039] In this embodiment, the optical element 100 is described as having a configuration in which four liquid crystal cells, a first liquid crystal cell 2_1, a second liquid crystal cell 2_2, a third liquid crystal cell 2_3, and a fourth liquid crystal cell 2_4, are stacked together. However, this configuration is not limited to this, and it is also possible to use a configuration in which, for example, two or three liquid crystal cells 2 are stacked together, or a configuration in which five or more liquid crystal cells 2 are stacked together.

[0040] In the present disclosure, in the lighting device 1 configured as described above, the light incident on the optical element from the light source 4 is controlled in two directions, the Dx direction (horizontal diffusion direction) and the Dy direction (vertical diffusion direction), by controlling the drive voltage of each liquid crystal cell 2. The vertical and horizontal diffusions may be collectively referred to as light diffusion. This changes the shape of the light emitted from the optical element. The light shape refers to the shape of the light appearing on a plane parallel to the exit surface of the optical element, and may also be referred to as the light distribution shape. The control of the degree of light diffusion in the present disclosure will be described below with reference to FIG. 9.

[0041] 9 is a conceptual diagram for explaining the control of the degree of light diffusion by the lighting device 1 according to the embodiment. Fig. 9 shows the light illumination range on a virtual plane xy perpendicular to the Dz direction. Note that the outline of the actual illumination range may be slightly unclear due to factors such as the distance from the light source 4 and the light diffraction phenomenon.

[0042] As described above, the alignment direction of the liquid crystal molecules 17 in the liquid crystal layer 8 is controlled by supplying a drive voltage to each of the drive electrodes 10, 13 of each liquid crystal cell 2 of the optical element 100 provided on the optical axis of the light source 4. This controls the light distribution shape of the light emitted from the optical element 100.

[0043] Specifically, for example, as described above, the light distribution pattern in the Dx direction changes (horizontal diffusion) depending on the drive voltage applied to the drive electrodes 10 or 13 extending in the Dy direction in each liquid crystal cell 2. Also, the light distribution pattern in the Dy direction changes (vertical diffusion) depending on the drive voltage applied to the drive electrodes 10 or 13 extending in the Dx direction in the first to fourth liquid crystal cells.

[0044] In the present disclosure, the minimum diffusivity of the horizontal and vertical diffusion is 0% and the maximum diffusivity is 100%. More specifically, when the horizontal diffusivity is 0%, the drive electrodes (e.g., the drive electrodes 10 extending in the Dy direction on the first substrate 5 of the first liquid crystal cell 2_1) that function to widen the light distribution in the Dx direction do not affect the refractive index distribution of the liquid crystal layer 8. In this case, there is no potential difference between the adjacent drive electrodes 10a and 10b, or no potential is supplied to the electrodes. On the other hand, when the horizontal diffusivity is 100%, the drive electrodes (e.g., the drive electrodes 10 extending in the Dy direction on the first substrate 5 of the first liquid crystal cell 2_1) that function to widen the light distribution in the Dx direction have the maximum effect on the refractive index distribution of the liquid crystal layer 8. In this case, the potential difference between the adjacent drive electrodes 10a and 10b is set to the maximum potential difference (e.g., 30V) in the optical element 100. When the horizontal diffusion rate is greater than 0% and less than 100%, the potential difference between the adjacent drive electrodes 10a and 10b is adjusted to be greater than 0V and less than the maximum potential difference (e.g., 30V). The same applies to the vertical diffusion rate.

[0045] The outline a in Fig. 9 illustrates an illumination range when the horizontal diffusivity and vertical diffusivity are both 100%. The outline b in Fig. 9 illustrates an illumination range when the horizontal diffusivity is 100% and the vertical diffusivity is 0%. The outline c in Fig. 9 illustrates an illumination range when the horizontal diffusivity is 0% and the vertical diffusivity is 100%. The outline d in Fig. 9 illustrates an illumination range when the horizontal diffusivity and vertical diffusivity are both 0%. That is, the outline d shows the light distribution state when light from the light source 4 is emitted without being controlled by the optical element 100 (i.e., transmitted through the optical element 100 as is).

[0046] In this way, in the lighting device 1 configured as described above, the horizontal and vertical diffusivities of the light emitted from the optical element 100 can be controlled by controlling the drive voltage of each liquid crystal cell 2. This makes it possible to change the light distribution shape of the light emitted from the lighting device 1. Hereinafter, the control that changes the light distribution shape of the light emitted from the lighting device 1 will also be referred to as "light distribution control."

[0047] In the present disclosure, an illumination device 1 capable of controlling light distribution in two directions, the Dx direction and the Dy direction, is exemplified, but the controllable parameters of the illumination device 1 are not limited to light distribution (spread of light). For example, the illumination device 1 may be capable of dimming control. In this case, the controllable parameters of the illumination device 1 may include dimming (brightness). In the following description, the Dx direction will be referred to as the H direction (first direction), and the Dy direction will be referred to as the V direction (second direction).

[0048] 10 is a schematic diagram showing an example of the configuration of a lighting system according to an embodiment. The lighting system includes lighting devices 1 (1_1, 1_2, . . . , 1_N) and a control device 200. The control device 200 is exemplified by a portable communication terminal device such as a smartphone or a tablet. In the present disclosure, the lighting devices 1 (1_1, 1_2, . . . , 1_N) are registered in the control device 200 as control target devices whose light distribution can be controlled by the control device 200.

[0049] Data and various command signals are transmitted and received between the lighting devices 1 (1_1, 1_2, . . . , 1_N) and the control device 200 via a communication means 300. In the present disclosure, the communication means 300 is, for example, a wireless communication means such as Bluetooth (registered trademark) or WiFi (registered trademark). The lighting devices 1 (1_1, 1_2, . . . , 1_N) and the control device 200 may communicate wirelessly via a predetermined network such as a mobile communication network. Alternatively, the lighting devices 1 (1_1, 1_2, . . . , 1_N) and the control device 200 may be wiredly connected to each other and communicate via wire.

[0050] Note that, although FIG. 10 shows an example in which multiple lighting devices 1 (1_1, 1_2, ..., 1_N) are registered, in the present disclosure, it is sufficient that at least one lighting device 1 is registered as a control target device capable of light distribution control.

[0051] In the lighting system described above, the control device 200 is configured to be able to change the light distribution state in the H direction and the V direction of the lighting device 1. The control device 200 of the lighting system according to the embodiment will now be described.

[0052] 11 is an external view showing an example of a control device 200 according to an embodiment. The control device 200 is a display device (touch screen) with a touch detection function, in which a display panel 20 and a touch sensor 30 are integrated. The control device 200 is equipped with, as internal components, various ICs such as a detection IC and a display IC, a CPU (Central Processing Unit) of a smartphone, tablet, or the like that constitutes the control device 200, a RAM (Random Access Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a ROM (Read Only Memory), a GPU (Graphics Processing Unit), and the like.

[0053] The display panel 20 is a so-called in-cell type or hybrid type device in which the touch sensor 30 is built in and integrated. Building the touch sensor 30 in and integrating the display panel 20 includes, for example, using some of the components, such as the substrate and electrodes, used as the display panel 20 and some of the components, such as the substrate and electrodes, used as the touch sensor 30. Note that the display panel 20 may also be a so-called on-cell type device in which the touch sensor 30 is mounted on a display device.

[0054] The display panel 20 may be, for example, a liquid crystal display panel using a liquid crystal display element, but is not limited to this, and may be, for example, an organic EL display panel (OLED: Organic Light Emitting Diode) or an inorganic EL display panel (micro LED, mini LED).

[0055] The touch sensor 30 is, for example, a capacitance type touch sensor, but is not limited to this, and the touch sensor 30 may be, for example, a resistive film type touch sensor, an ultrasonic type touch sensor, or an optical type touch sensor.

[0056] 12 is a conceptual diagram showing an example of a touch detection area in a touch sensor. A plurality of detection elements 31 are provided in the detection area FA of the touch sensor 30. The plurality of detection elements 31 are arranged in a matrix in the X direction and the Y direction perpendicular to the X direction within the detection area FA of the touch sensor 30. In other words, the touch sensor 30 has a detection area FA that overlaps with the plurality of detection elements 31 arranged in the X direction and the Y direction.

[0057] Fig. 13 is a diagram illustrating an example of a display mode of a setting change screen of the control device 200 according to the embodiment. The display panel 20 is provided with a display area DA that overlaps with the detection area FA of the touch sensor 30 in a plan view, and the setting change screen shown in Fig. 13 is displayed in the display area DA. In addition, an HV plane is defined with a predetermined position on the setting change screen shown in Fig. 13 as the origin O(0,0).

[0058] In the example shown in FIG. 13, a light distribution shape object OBJ is displayed on the setting change screen with its center point at the origin O(0,0) of the HV plane, and a first slider S1 for changing the light distribution state of the lighting device 1 in the H direction and a second slider S2 for changing the light distribution state of the lighting device 1 in the V direction are arranged on the contour line of this light distribution shape object OBJ.

[0059] The light distribution shape object OBJ is an image corresponding to the light distribution state of the light emitted from the lighting device 1.

[0060] The first slider S1 and the second slider S2 are, for example, image displayed on the display area DA, and can be moved (drag operation) by the user's finger.

[0061] The shape of the light distribution shape object OBJ can be changed by moving the first slider S1 in the H direction. At the same time, the light distribution state of the lighting device 1 in the H direction (i.e., horizontal diffusion) is controlled. Furthermore, the shape of the light distribution shape object OBJ can be changed by moving the second slider S2 in the V direction. At the same time, the light distribution state of the lighting device 1 in the V direction (i.e., vertical diffusion) is controlled.

[0062] In the present disclosure, the shape of the light distribution shape object OBJ on the setting change screen is circular or elliptical depending on the light distribution value Sh in the H direction and the light distribution value Sv in the V direction. In other words, the shape of the light distribution shape object OBJ changes to a circle or an ellipse as the first slider S1 and the second slider S2 are moved.

[0063] The first slider S1 can be moved in the H direction between a position on the contour line of the light distribution shape object OBJ when the light distribution value Sh in the H direction is 0[%] and a position on the contour line of the light distribution shape object OBJ when the light distribution value Sh in the H direction is 100[%].

[0064] The second slider S2 can be moved in the V direction between a position on the contour line of the light distribution shape object OBJ when the light distribution value Sv in the V direction is 0[%] and a position on the contour line of the light distribution shape object OBJ when the light distribution value Sv in the V direction is 100[%].

[0065] On the setting change screen of the control device 200, the light distribution value Sh of the lighting device 1 in the H direction can be set by the amount of movement of the position h of the intersection between the H axis of the HV plane and the contour line of the light distribution shape object OBJ.

[0066] In the present disclosure, the position h of the intersection of the H axis and the outline of the light distribution shape object OBJ is set as the center point of the first slider S1. In other words, the position h0 of the first slider S1 on the display area DA overlaps with the position h of the intersection of the H axis and the outline of the light distribution shape object OBJ. This allows the light distribution value Sh of the lighting device 1 in the H direction to be changed by touching and moving the first slider S1 in the H direction. "Sh" in FIG. 13 indicates the light distribution value of the lighting device 1 in the H direction (for example, "50" [%]).

[0067] Furthermore, on the setting change screen of the control device 200, the light distribution value Sv of the lighting device 1 in the V direction can be set by the amount of movement of the position v of the intersection between the V axis of the HV plane and the contour line of the light distribution shape object OBJ.

[0068] In the present disclosure, the position v of the intersection between the V axis and the outline of the light distribution shape object OBJ is set as the center point of the second slider S2. In other words, the position v0 of the second slider S2 on the display area DA overlaps with the position v of the intersection between the V axis and the outline of the light distribution shape object OBJ. This allows the light distribution value Sv of the lighting device 1 in the V direction to be changed by touching and moving the second slider S2 in the V direction. "Sv" in FIG. 13 indicates the light distribution value of the lighting device 1 in the V direction (for example, "50" [%]).

[0069] Fig. 14 is a diagram showing an example of a control block configuration of the control device 200 according to the embodiment. Fig. 14 illustrates a control block configuration for changing the light distribution state of the lighting device 1 in the H direction and V direction.

[0070] As shown in FIG. 14 , the control device 200 includes a display panel 20, a touch sensor 30, a detection circuit 211, a processing circuit 212, a memory circuit 223, a transmission / reception circuit 225, and a display control circuit 231. The detection circuit 211 is configured, for example, by a detection IC. Alternatively, the detection circuit 211 and the display control circuit 231 may be mounted on the display panel 20 as a single display IC, or may be mounted on an FPC connected to the display panel 20. The processing circuit 212 and the memory circuit 223 are configured, for example, by a CPU, RAM, EEPROM, ROM, etc., of a smartphone, tablet, or the like that constitutes the control device 200. The display control circuit 231 may be a display IC mounted on the display panel 20 as described above, or may further include, for example, a GPU, etc., of a smartphone, tablet, or the like that constitutes the control device 200. The transmission / reception circuit 225 is configured, for example, by a wireless communication module of a smartphone, tablet, or the like that constitutes the control device 200.

[0071] The detection circuit 211 is a circuit that detects whether or not the touch sensor 30 is touched based on the detection signals output from the detection elements 31 of the touch sensor 30 .

[0072] The processing circuit 212 is a circuit that executes conversion processing between the touch detection position in the detection circuit 211 and various setting values ​​(light distribution value in the present disclosure) of the lighting device 1. In the present disclosure, the processing circuit 212 also has a function of executing conversion processing between the touch detection position in the detection circuit 211, and therefore the position of the touched object (image), and the operation state on various screens. The processing circuit 212 is a component realized by, for example, a CPU of a smartphone, tablet, or the like that constitutes the control device 200.

[0073] The memory circuit 223 is configured with, for example, RAM, EEPROM, ROM, etc. of a smartphone, tablet, or the like that constitutes the control device 200. In the present disclosure, the memory circuit 223 stores various setting values ​​of the lighting device 1 (in the present disclosure, light distribution values).

[0074] The transmission / reception circuit 225 transmits and receives various setting values ​​(light distribution values ​​in this disclosure) to and from the lighting device 1. Specifically, the transmission / reception circuit 225 transmits the light distribution value Sh in the H direction and the light distribution value Sv in the V direction set by the control device 200 to the lighting device 1 as light distribution setting values ​​S1h and S1v, respectively. The transmission / reception circuit 225 also receives light distribution setting values ​​S0h and S0v transmitted from the lighting device 1.

[0075] The display control circuit 231 executes a display control process for displaying the setting change screen described above on the display panel 20. The display control circuit 231 controls the display of the display panel 20 based on various setting values ​​(in the present disclosure, light distribution values) and position information of image data stored in the memory circuit 223.

[0076] The lighting device in the lighting system described above will be described below. Fig. 15 is a diagram showing an example of a control block configuration of the lighting device 1 according to the embodiment.

[0077] 15, the lighting device 1 according to the embodiment includes a transmission / reception circuit 111, an electrode driving circuit 112, a memory circuit 113, and a processing circuit 114 as control blocks for controlling the above-described optical element 100. The processing circuit 114 is configured with a microcomputer for executing light distribution control and dimming control of the lighting device 1.

[0078] The transmission / reception circuit 111 transmits and receives various setting values ​​(light distribution setting values ​​in this disclosure) to and from the control device 200. Specifically, the transmission / reception circuit 111 receives light distribution setting values ​​S1h and S1v transmitted from the control device 200. The transmission / reception circuit 111 also transmits light distribution setting values ​​S0h and S0v stored in a memory area of ​​the memory circuit 113 to the control device 200.

[0079] In the present disclosure, when lighting device 1 is started up, transmission / reception circuit 111 transmits light distribution setting values ​​S0h and S0v stored in the storage area of ​​storage circuit 113 to control device 200, and stores light distribution setting values ​​S1h and S1v transmitted from control device 200 in the storage area of ​​storage circuit 113 as new light distribution setting values ​​S0h and S0v. That is, when light distribution setting values ​​S1h and S1v are transmitted from control device 200 to lighting device 1, the light distribution setting values ​​S0h and S0v in the storage area of ​​storage circuit 113 are updated to these light distribution setting values ​​S1h and S1v. Note that initially, lighting device 1 does not store light distribution setting values ​​S0h and S0v (both light distribution setting values ​​S0h and S0v are 0[%]). In this case, when light distribution setting values ​​S1h and S1v are transmitted from control device 200, the light distribution setting values ​​S0h and S0v are stored in the storage area of ​​storage circuit 113. It should be noted that the present invention is not limited to the above, and a configuration may be adopted in which the initial light distribution setting values ​​S0h and S0v are stored as predetermined values, such as 50[%], in advance.

[0080] The electrode driving circuit 112 supplies a driving voltage to each of the driving electrodes 10 and 13 of each liquid crystal cell 2 of the optical element 100 based on the processing result in the processing circuit 114 .

[0081] The storage circuitry 113 includes, for example, an internal memory implemented in a microcomputer that constitutes the processing circuitry 114. In the present disclosure, a storage area of ​​the storage circuitry 113 stores a light distribution setting value S0h in the H direction and a light distribution setting value S0v in the V direction of the lighting device 1.

[0082] The light distribution setting value S0h in the H direction and the light distribution setting value S0v in the V direction stored in the memory area of ​​the memory circuit 113 may be, for example, setting values ​​stored in the memory area of ​​the memory circuit 113 the previous time the lighting device 1 was operated, or may be transmitted from the control device 200 and stored in the memory area of ​​the memory circuit 113.

[0083] Hereinafter, a communication system for realizing a secure communication connection environment between the control device 200 and the lighting device 1 in the lighting system having the above-described configuration, without relying on a communication platform or user operation, and a connection establishment method and data transmission / reception method in the communication system will be described.

[0084] (Embodiment 1) Fig. 16 is a diagram showing an example of a schematic configuration of a communication system according to the first embodiment. In the communication system 40 according to the first embodiment, communication is performed between a slave device 50, which is a device to be controlled, and a master device 60, which controls the slave device 50, via a communication means 70. In Fig. 16, the communication system 40 corresponds to the lighting system according to the embodiment. The slave device 50 corresponds to the lighting device 1 according to the embodiment. The master device 60 corresponds to the control device 200 according to the embodiment.

[0085] The processing in the slave device 50 is performed by, for example, a microcomputer constituting the lighting device 1 according to the embodiment. More specifically, the processing in the slave device 50 may be performed by a processing circuit 114 shown in Fig. 15. In this case, data may be transmitted and received between the slave device 50 and the master device 60 by a transmission / reception circuit 111 shown in Fig. 15.

[0086] The slave device 50 includes a first storage unit 51. The first storage unit 51 includes, for example, an internal memory implemented in a microcomputer. More specifically, the first storage unit 51 may be a component common to the storage circuit 113 shown in FIG. 15 .

[0087] The processing in the master device 60 is performed by, for example, a CPU of a smartphone, tablet, or the like that constitutes the control device 200 according to the embodiment. More specifically, the processing in the master device 60 may be performed by a processing circuit 212 shown in Fig. 14. In this case, data may be transmitted and received between the master device 60 and the slave device 50 by a transmission / reception circuit 225 shown in Fig. 14.

[0088] The master device 60 includes a second storage unit 61. The second storage unit 61 is configured, for example, with RAM, EEPROM, ROM, etc. of a smartphone, tablet, etc. More specifically, the second storage unit 61 may be a component common to the storage circuit 223 shown in FIG.

[0089] In this embodiment, the first storage unit 51 and the second storage unit 61 store a connection code, a key code, a security code, and the like that are generated in a connection establishment process that will be described later.

[0090] Furthermore, in this embodiment, Bluetooth is used as the communication means 70, but the communication means 70 may be other wireless communication means such as WiFi, UART (Universal Asynchronous Receiver / Transmitter), or IrDA (Infrared Data Association). Furthermore, the communication means 70 is not limited to wireless communication, and may be configured such that the slave device 50 and the master device 60 are connected by a wire and perform wired communication. Furthermore, this embodiment will be described with an example in which one slave device 50 and one master device 60 are connected by the communication means 70, as shown in FIG. 16, but the number of slave devices 50, which are devices to be controlled, may be multiple.

[0091] FIG. 17A is a first sequence diagram showing an example of a connection establishment process in the communication system according to the first embodiment. FIG. 17B is a second sequence diagram showing an example of a connection establishment process in the communication system according to the first embodiment. FIG. 17C is a third sequence diagram showing an example of a connection establishment process in the communication system according to the first embodiment. FIG. 17D is a fourth sequence diagram showing an example of a connection establishment process in the communication system according to the first embodiment. FIG. 18 is a flowchart showing an example of a startup process of the slave device 50 according to the first embodiment. FIG. 19 is a flowchart showing an example of a first process of the master device 60 according to the first embodiment. FIG. 20 is a flowchart showing an example of a first process of the slave device 50 according to the first embodiment.

[0092] 17A, 17B, 17C, and 17D begins with power-on of the slave device 50. When power is turned on to the slave device 50, a startup process of the slave device 50 is executed (step S100 in FIGS. 17A, 17B, 17C, and 17D).

[0093] 18, the slave device 50 determines whether a connection code (A) (first connection code) is stored in the first storage unit 51 (step S101a). If a connection code (A) is not stored in the first storage unit 51 (step S101a; No), the slave device 50 executes the initial startup process from step S102a onwards. In the initial startup process, the slave device 50 generates a random connection code (A) of multiple bytes using, for example, a random number table stored in a storage area of ​​the first storage unit 51 (step S102a), and stores the code in the first storage unit 51 (step S103a).

[0094] FIG. 21A is an image diagram of a connection code (A) stored in the first storage unit 51 of the slave device 50. The connection code (A) shown in FIG. 21A is a 6-byte code of "0x**, 0x**, 0x**, 0x**, 0x**, 0x**," but the data length of the connection code (A) is not limited to 6 bytes. The initial value of the connection code (A) stored in the first storage unit 51 of the slave device 50 is, for example, a "null value." The initial value of the connection code (A) stored in the first storage unit 51 of the slave device 50 is not limited to a "null value."

[0095] Next, the slave device 50 determines whether or not a key code (A) (first key code) is stored in the first storage unit 51 (step S101b). If the key code (A) is not stored in the first storage unit 51 (step S101b; No), the slave device 50 generates a random multi-byte key code (A) using, for example, a random number table stored in a storage area of ​​the first storage unit 51 (step S102b), and stores the generated key code in the first storage unit 51 (step S103b).

[0096] FIG. 21B is an image diagram of the key code (A) stored in the first storage unit 51 of the slave device 50. The key code (A) shown in FIG. 21B is a 4-byte code of "0x43, 0x69, 0xA1, 0x72," but the data length of the key code (A) is not limited to 4 bytes. The initial value of the key code (A) stored in the first storage unit 51 of the slave device 50 is, for example, a "null value." The initial value of the key code (A) stored in the first storage unit 51 of the slave device 50 is not limited to a "null value."

[0097] Next, the slave device 50 determines whether or not a security code (A) (first security code) is stored in the first storage unit 51 (step S101c). If the security code (A) is not stored in the first storage unit 51 (step S101c; No), the slave device 50 generates a random security code (A) to which multiple random number data, each of which corresponds to address data, are assigned, using, for example, a random number table stored in a storage area of ​​the first storage unit 51 (step S102c), and stores the code in the first storage unit 51 (step S103c).

[0098] FIG. 21C is a first conceptual diagram of the security code (A) stored in the first storage unit 51 of the slave device 50. As shown in FIG. 21C, the security code (A) is a two-dimensional array of multiple random number data defined by a row address α and a column address β. In the example shown in FIG. 21C, each random number data is a one-byte code, and each corresponds to the address data "0xαβ." Specifically, the random number data corresponding to the address data "0x17" is "0x12," the random number data corresponding to the address data "0x28" is "0xEF," the random number data corresponding to the address data "0x39" is "0x43," and the random number data corresponding to the address data "0x4A" is "0x68."

[0099] The security code (A) shown in FIG. 21C has 36 pieces (N 221D is a second conceptual diagram of the security code (A) stored in the first storage unit 51 of the slave device 50. The security code (A) shown in FIG. 21D is composed of 65,025 random number data (255 x 255). In this case, specifically, the random number data corresponding to the address data "0x001100" is "0x12," the random number data corresponding to the address data "0x002101" is "0xEF," the random number data corresponding to the address data "0x003102" is "0x43," and the random number data corresponding to the address data "0x004103" is "0x68." Note that the initial value of the random number data included in the security code (A) stored in the first storage unit 51 of the slave device 50 is, for example, a "null value." The initial value of the random number data included in the security code (A) stored in the first storage unit 51 of the slave device 50 is not limited to a "null value."

[0100] After storing the connection code (A) (first connection code), the key code (A) (first key code), and the security code (A) (first security code) in the first storage unit 51 (steps S103a, S103b, and S103c), the slave device 50 transitions to a pairing standby state (a) (step S104). At this time, the slave device 50 stores in the first storage unit 51 that it is in the pairing standby state (a), and ends the startup process.

[0101] When the slave device 50 is shipped from the factory, the connection code (A), key code (A), and security code (A) are not set in the first storage unit 51. More specifically, as described above, for example, the initial settings are set to "null values." The connection code (A), key code (A), and security code (A) are set to random values ​​using, for example, a random number table stored in a storage area of ​​the first storage unit 51 during the initial startup process of the slave device 50 after shipping from the factory. In other words, during the second or subsequent startup process of the slave device 50 after shipping from the factory, the connection code (A), key code (A), and security code (A) are set in the first storage unit 51 to values ​​different from the initial settings.

[0102] If the connection code (A), key code (A), and security code (A) are set to values ​​different from the initial setting values ​​(step S101b; Yes), the slave device 50 does not execute the initial startup process from step S102a onwards, and transitions to pairing standby state (b) (step S105). At this time, the slave device 50 stores in the first storage unit 51 that it is in pairing standby state (b), and ends the startup process.

[0103] The connection code (A), key code (A), and security code (A) stored in the first storage unit 51 can be erased by a predetermined initialization process. That is, when the slave device 50 transitions to the pairing standby state (a) during the startup process described above (step S104), the connection code (A), key code (A), and security code (A) are set to initial values ​​(e.g., "null values"), indicating that this is the first startup process after shipping from the factory or initialization. When the slave device 50 transitions to the pairing standby state (b) during the startup process described above (step S105), the connection code (A), key code (A), and security code (A) are set to random values ​​before the startup process, indicating that this is the second or subsequent startup process after shipping from the factory or initialization. The process after pairing between the slave device 50 and the master device 60 differs depending on whether this is the first startup process after shipping from the factory or initialization (pairing standby state (a)) or the second or subsequent startup process after shipping from the factory or initialization (pairing standby state (b)).

[0104] Pairing between the slave device 50 and the master device 60 is performed (step S200 in FIGS. 17A, 17B, 17C, and 17D), and after a communication connection between the slave device 50 and the master device 60 is established, a first process in the master device 60 shown in FIG. 19 and a first process in the slave device 50 shown in FIG. 20 are performed.

[0105] In the first process of the master device 60 shown in FIG. 19, the master device 60 starts a first timer t1 (t1=0, step S301) and transmits a connection code request to the slave device 50 to request transmission of a connection code (A) (step S302a).

[0106] 20, the slave device 50 starts a second timer t2 (t2=0, step S401) and determines whether the slave device 50 is in a pairing standby state (a) (step S402). Specifically, the slave device 50 determines whether the above-described startup process is the first startup process after the slave device 50 is shipped from the factory or initialized.

[0107] If the slave device 50 is in the pairing standby state (a) (step S402; Yes), that is, if the above-described startup process is the initial startup process after the slave device 50 is shipped from the factory or initialized, the slave device 50 determines whether or not it has received a connection code request transmitted from the master device 60 (step S403a). If it has received a connection code request (step S403a; Yes), the slave device 50 reads out a connection code (A) (first connection code) stored in the first storage unit 51 and transmits the connection code (A) to the master device 60 (step S404a).

[0108] The master device 60 determines whether or not it has received the connection code (A) transmitted from the slave device 50 (step S303a). When the master device 60 receives the connection code (A) from the slave device 50 (step S303a; Yes), it stores the received connection code (A) (first connection code) as a connection code (B) (second connection code) in the second storage unit 61 (step S304a). FIG. 22A is an image diagram of the connection code (B) stored in the second storage unit 61 of the master device 60. Note that the initial value of the connection code (B) stored in the second storage unit 61 of the master device 60 is, for example, a "null value." The initial value of the connection code (B) stored in the second storage unit 61 of the master device 60 is not limited to a "null value."

[0109] Next, the master device 60 transmits a key code request to the slave device 50 to request transmission of the key code (A) (step S302b).

[0110] The slave device 50 determines whether or not it has received a key code request transmitted from the master device 60 (step S403b). If it has received a key code request (step S403b; Yes), the slave device 50 reads out the key code (A) (first key code) stored in the first storage unit 51 and transmits the key code (A) to the master device 60 (step S404b).

[0111] The master device 60 determines whether or not it has received the key code (A) transmitted from the slave device 50 (step S303b). When it receives the key code (A) from the slave device 50 (step S303b; Yes), it stores the received key code (A) (first key code) as key code (B) (second key code) in the second storage unit 61 (step S304b). FIG. 22B is an image diagram of the key code (B) stored in the second storage unit 61 of the master device 60. Note that the initial value of the key code (B) stored in the second storage unit 61 of the master device 60 is, for example, a "null value." The initial value of the key code (B) stored in the second storage unit 61 of the master device 60 is not limited to a "null value."

[0112] Next, the master device 60 transmits a security code request to the slave device 50 to request transmission of a security code (A) (step S302c).

[0113] The slave device 50 determines whether or not it has received a security code request transmitted from the master device 60 (step S403c). If it has received a security code request from the master device 60 (step S403c; Yes), the slave device 50 reads out the security code (A) (first security code) stored in the first storage unit 51 and transmits the security code (A) to the master device 60 (step S404c).

[0114] The master device 60 determines whether it has received the security code (A) transmitted from the slave device 50 (step S303c). If the master device 60 receives the security code (A) from the slave device 50 (step S303c; Yes), it stores the received security code (A) (first security code) as a security code (B) (second security code) in the second storage unit 61 (step S304c). FIG. 22C is a first conceptual diagram of the security code (B) stored in the second storage unit 61 of the master device 60. That is, the security code (B) (FIG. 22C) and the security code (A) (FIG. 21C) have the same two-dimensional array. By receiving the security code from the slave device 50, the master device 60 does not possess the security code (B) that is the same as the security code (A) possessed by the slave device 50. FIG. 22D is a second conceptual diagram of the security code (B) stored in the second storage unit 61 of the master device 60. The initial value of the random number data included in the security code (B) stored in the second storage unit 61 of the master device 60 is, for example, a "null value." The initial value of the random number data included in the security code (B) stored in the second storage unit 61 of the master device 60 is not limited to a "null value." The master device 60 determines the matrix of the two-dimensional array based on the number of random number data in the security code (A) transmitted from the slave device 50. In this embodiment, the security code (A) is composed of 36 random number data. The master device 60 determines that the security code (A) constitutes a 6 × 6 two-dimensional array based on the number of the 36 random number data, and constructs the security code (B). The random number data of the security code (A) may be (n + 1) × n (e.g., 256 × 255). In this case, the master device 60 constructs a security code (B) with (n + 1) columns × n rows, prioritizing that the number of columns is greater than the number of rows.

[0115] Next, the master device 60 determines whether the first timer t1 is equal to or greater than the first timer threshold T1 (e.g., 10 seconds) (step S305). If the first timer t1 is less than the first timer threshold T1 (step S305; No), the master device 60 repeatedly executes the processes from step S302a onward. When the first timer t1 becomes equal to or greater than the first timer threshold T1, the master device 60 transmits a connection code (B) (second connection code) to the slave device 50 (step S306).

[0116] If the slave device 50 has not received the connection code request, key code request, or security code request transmitted from the master device 60 (step S403a; No, step S403b; No, step S403c; No), or has not received the connection code (B) from the master device 60 (step S405; No), the slave device 50 determines whether the second timer t2 is equal to or greater than the second timer threshold T2 (e.g., 10 [sec]) (step S408). If the second timer t2 is less than the second timer threshold T2 (step S408; No), the slave device 50 repeatedly executes the processes from step S403a onward.

[0117] The slave device 50 determines whether it has received the connection code (B) transmitted from the master device 60 (step S405). When the slave device 50 receives the connection code (B) from the master device 60 (step S405; Yes), it reads the connection code (A) (first connection code) stored in the first storage unit 51 and determines whether the connection code (A) (first connection code) matches the connection code (B) (second connection code) received from the master device 60 (connection code (A) = connection code (B), step S406).

[0118] If the connection code (A) (first connection code) and the connection code (B) (second connection code) match (step S406; Yes), the slave device 50 transitions to a standby state. Specifically, for example, if the slave device 50 is the lighting device 1 according to the embodiment, the slave device 50 transitions to a standby state for changing settings of the lighting device 1, such as various setting values ​​(in the present disclosure, light distribution value) (step S407), and the first process of the slave device 50 shown in FIG. 20 ends.

[0119] If the second timer t2 is equal to or greater than the second timer threshold T2 (step S408; Yes), or if the connection code (A) (first connection code) and the connection code (B) (second connection code) do not match (step S406; No), the slave device 50 sends a disconnect command to the master device 60 to disconnect the pairing between the slave device 50 and the master device 60 (step S409).

[0120] The master device 60 determines whether or not it has received a disconnection command transmitted from the slave device 50 (step S307). If it has not received a disconnection command from the slave device 50 (step S307; No), the master device 60 transitions to a standby state. Specifically, for example, if the master device 60 is the control device 200 that controls the lighting device 1 according to the embodiment, it transitions to a standby state for operation of various setting values ​​(in the present disclosure, light distribution value) of the lighting device 1 (step S308), and ends the first process of the master device 60 shown in FIG. 19 .

[0121] A disconnection command is sent from the slave device 50 (step S409), and when the master device 60 receives the disconnection command from the slave device 50 (step S307; Yes), the pairing between the slave device 50 and the master device 60 is released (steps S309, S410), and the first process of the master device 60 shown in FIG. 19 and the first process of the slave device 50 shown in FIG. 20 are terminated.

[0122] If the slave device 50 is in the pairing standby state (b) (step S402; No), that is, if the above-described startup process is the second or subsequent startup process since the slave device 50 was shipped from the factory or initialized, the slave device 50 proceeds to step S405 and determines whether or not it has received the connection code (B) transmitted from the master device 60. The subsequent processes are the same as those in the pairing standby state (a).

[0123] Here, the case where "the slave device 50 is in the pairing standby state (b) (step S402; No), i.e., the above-mentioned startup process is the second or subsequent startup process since the slave device 50 was shipped from the factory or initialized" is assumed to be the case where "the master device 60 executing the current connection establishment process is the same as the master device 60 that previously executed the connection establishment process including the initial startup process after the slave device 50 was shipped from the factory or initialized" and "the master device 60 executing the current connection establishment process is different from the master device 60 that previously executed the connection establishment process including the initial startup process after the slave device 50 was shipped from the factory or initialized".

[0124] If "the master device 60 executing the current connection establishment process is the same master device 60 that previously executed the connection establishment process, including the initial startup process after the slave device 50 was shipped from the factory or initialized," then, as shown in FIG. 17C, the connection code (A) (first connection code) stored in the first memory unit 51 of the slave device 50 matches the connection code (B) (second connection code) received by the slave device 50 in step S405 (step S406; Yes), and the slave device 50 and the master device 60 each normally transition to a standby state (steps S308 and S407).

[0125] On the other hand, if the master device 60 currently executing the connection establishment process is different from the master device 60 that previously executed the connection establishment process, including the initial startup process after the slave device 50 was shipped from the factory or initialized, then as shown in FIG. 17D , the connection code (A) (first connection code) stored in the first memory unit 51 of the slave device 50 will not match the connection code (B) (second connection code) received by the slave device 50 in step S405 (step S406; No), and the pairing between the slave device 50 and the master device 60 will be released (steps S309 and S410).

[0126] Note that even when "the master device 60 currently executing the connection establishment process is different from the master device 60 that previously executed the connection establishment process, including the initial startup process after the slave device 50 was shipped from the factory or initialized," there may be cases where, for example, a malicious user or software hacks the connection code (A) (first connection code) stored in the first storage unit 51 of the slave device 50, causing the slave device 50 and the master device 60 to each enter an inappropriate standby state (steps S308 and S407), resulting in an uncontrollable state.

[0127] Fig. 23A is a first sequence diagram showing an example of data transmission and reception processing in the communication system according to embodiment 1. Fig. 23B is a second sequence diagram showing an example of data transmission and reception processing in the communication system according to embodiment 1. Fig. 24 is a flowchart showing an example of second processing by the master device 60 according to embodiment 1. Fig. 25 is a flowchart showing an example of second processing by the slave device 50 according to embodiment 1.

[0128] The data transmission / reception processing shown in Figures 23A and 23B is executed after the connection establishment processing shown in Figure 17A or 17C described above. More specifically, the second processing of the master device 60 shown in Figure 24 is executed starting from the master device 60 performing an operation to change the settings of the slave device 50 (step S501) after the master device 60 has transitioned to an operation standby state in the first processing of the master device 60 shown in Figure 19 (step S308). Furthermore, the second processing of the slave device 50 shown in Figure 25 is executed starting from the master device 60 receiving control data transmitted from the master device 60 (step S601) after the slave device 50 has transitioned to a setting change standby state in the first processing of the slave device 50 shown in Figure 20 (step S407).

[0129] 24, when the master device 60 is the control device 200 that controls the lighting device 1 according to the embodiment, the master device 60 performs a determination process (step S501) to determine whether or not a setting change operation has been performed on the setting change screen shown in Fig. 13 to change various setting values ​​(light distribution value in the present disclosure) of the lighting device 1 corresponding to the slave device 50, and the like, and repeats this determination process until a setting change operation of the slave device 50 (lighting device 1) is performed (step S501; No). More specifically, the setting change operation of the lighting device 1 is assumed to be, for example, an operation in which the user touches the first slider S1 on the setting change screen shown in Fig. 13 and moves it in the H direction to change the light distribution value Sh of the lighting device 1 in the H direction.

[0130] When a setting change operation is performed on the slave device 50 (lighting device 1) (step S501; Yes), the master device 60 (control device 200) reads out the security code (B) (second security code) stored in the second memory unit 61 (step S502), randomly selects multiple address data from the security code (B) (step S503), and generates an address code by arranging these address data in the order of selection (step S504).

[0131] Then, the master device 60 extracts random number data corresponding to the multiple address data included in the generated address code from the security code (B) (step S505), arranges the extracted random number data in the order of the selected address data, and generates a selected security code (B) (second selected security code) (step S506).

[0132] FIG. 26A is an image diagram of a security code (B) stored in the second storage unit 61 of the master device 60. FIG. 26A illustrates an example of a security code (B) with α rows and β columns defined by a row address α and a column address β. FIG. 26B is an image diagram of an address code in which address data selected from the security code (B) are arranged in the order of selection. The address code shown in FIG. 26B illustrates an example in which address data corresponding to the shaded areas of the security code (B) shown in FIG. 26A are arranged in the order of selection. FIG. 26C is an image diagram of a selected security code (B) in which random number data extracted from the security code (B) are arranged in the order of selected address data. The security code (B) shown in FIG. 26C illustrates an example in which random number data corresponding to each address data of the address code shown in FIG. 26B are extracted from the security code (B) shown in FIG. 26A in the order of selection of each address data.

[0133] 26A, 26B, and 26C show an example in which the master device 60 (control device 200) randomly selects address data "0x17," address data "0x28," address data "0x39," and address data "0x4A" in this order from the security code (B) (FIG. 26A). The master device 60 then generates an address code "0x1728394A" (FIG. 26B) in which these address data are arranged in this order. The master device 60 then generates a selected security code (B) "0x12EF4368" (FIG. 26C) in which the random number data "0x12" corresponding to the address data "0x17," the random number data "0xEF" corresponding to the address data "0x28," the random number data "0x43" corresponding to the address data "0x39," and the random number data "0x68" corresponding to the address data "0x4A" are arranged in this order. As shown in FIG. 26B, the data length of the address code is a 4-byte code, the same as that of the key code (B) (second key code). Therefore, as shown in FIG. 26C, the data length of the selected security code (B) (second selected security code), which is an arrangement of random number data corresponding to each address data of the address code, is also a 4-byte code, the same as that of the key code (B). The key code (B), address code, and selected security code (B) are not limited to 4-byte codes; they may be codes of the same length as at least the key code (B) and the address code. Furthermore, they may all be codes of the same length. Here, if the security code is large (e.g., 256 × 255), the number of digits in the columns and rows of the randomly selected address data may not match. More specifically, if the security code is a two-dimensional array of 256 × 255, the second column, the 255th row may be used as a certain address data. In this case, the master device 60 inserts 0 before the address data with the smaller number of digits to align the digits with the larger number of digits. That is, although the address data is actually "0x2 (column) 1FE (row)", it is set to "0x002 (column) 1FE (row)" to align the number of digits in the vertical and horizontal address data.

[0134] Next, the master device 60 reads out the key code (B) (second key code) stored in the second storage unit 61 (step S507), and calculates an XOR code (B) (second code) by XORing the selected security code (B) (second selected security code) generated in step S506 with the key code (B) (second key code) read out in step S507 (step S508).

[0135] Fig. 26D is an image diagram showing an example of calculation of XOR code (B). Fig. 26D shows an example in which the selected security code (B) "0x12EF4368" generated in step S506 is XORed with the key code (B) "0x4369A172" stored in the second storage unit 61 to calculate XOR code (B) "0x5186E21A."

[0136] Then, the master device 60 generates control data by adding the address code generated in step S504 and the XOR code (B) (second code) calculated in step S508 to the setting value of the slave device 50 (e.g., lighting device 1) (step S509), and transmits the control data to the slave device 50 (step S510).

[0137] The slave device 50 (lighting device 1) performs a determination process (step S601) to determine whether or not it has received control data from the master device 60 (control device 200), and repeatedly executes this process until it receives the control data from the master device 60 (step S601; No).

[0138] When the slave device 50 receives control data from the master device 60 (step S601; Yes), it reads out the security code (A) (first security code) stored in the first memory unit 51 (step S602), extracts random number data corresponding to the address data from the read security code (A) in the order of the address data included in the address code added to the setting value included in the control data received from the master device 60 (step S603), and generates a first selected security code (A) (step S604).

[0139] Fig. 26E is an image diagram of the security code (A) stored in the first storage unit of the slave device. Fig. 26F is an image diagram of the selected security code (A) in which random number data extracted from the security code (A) is arranged in the order of the received address data.

[0140] 26E and 26F show an example in which selected security code (A) "0x12EF4368" (FIG. 26F) is generated from security code (A) (FIG. 26E) in which random number data "0x12" corresponding to address data "0x17," random number data "0xEF" corresponding to address data "0x28," random number data "0x43" corresponding to address data "0x39," and random number data "0x68" corresponding to address data "0x4A" are arranged in this order, based on the address data "0x17," address data "0x28," address data "0x39," and address data "0x4A" included in the address code received from master device 60. As shown in FIG. 26F, the data length of selected security code (A) (first selected security code) in which random number data corresponding to each address data of the address code is arranged is a 4-byte code, the same as that of key code (A). If the key code (A) and the address code are not 4-byte codes, the selection security code (A) may be a code of the same length as the key code (A) and the address code.

[0141] Next, the slave device 50 reads out the key code (A) (first key code) stored in the first storage unit 51 (step S605), and calculates an XOR code (A) (first code) by XORing the selected security code (A) (first selected security code) generated in step S604 with the key code (A) (first key code) read out in step S605 (step S606).

[0142] Fig. 26G is an image diagram showing an example of calculation of XOR code (A). Fig. 26G shows an example in which the selected security code (A) "0x12EF4368" generated in step S604 is XORed with the key code (A) "0x4369A172" stored in the first storage unit 51 to calculate XOR code (A) "0x5186E21A".

[0143] Then, the slave device 50 determines whether the XOR code (A) (first code) calculated in step S606 matches the XOR code (B) (second code) added to the setting value included in the control data received from the master device 60 (XOR code (A) = XOR code (B), step S607).

[0144] If the XOR code (A) (first code) and the XOR code (B) (second code) match (step S607; Yes), the slave device 50 changes its own settings based on the setting values ​​included in the control data received from the master device 60 (step S608) and transitions to a standby state. Specifically, for example, if the slave device 50 is the lighting device 1 according to the embodiment, it changes the settings of the lighting device 1, such as various setting values ​​(in the present disclosure, light distribution value) (step S608), and then transitions to a setting change standby state (step S609), and the second process of the slave device 50 shown in FIG. 25 ends.

[0145] If the XOR code (A) (first code) and the XOR code (B) (second code) do not match (step S607; No), the slave device 50 sends a disconnect command to the master device 60 to release the pairing between the slave device 50 and the master device 60 (step S610).

[0146] The master device 60 determines whether or not it has received a disconnection command transmitted from the slave device 50 (step S511). If it has not received a disconnection command from the slave device 50 (step S511; No), the master device 60 transitions to a standby state. Specifically, for example, if the master device 60 is the control device 200 that controls the lighting device 1 according to the embodiment, it transitions to a standby state for operation of various setting values ​​(in the present disclosure, light distribution value) of the lighting device 1 (step S512), and ends the second process of the master device 60 shown in FIG. 24 .

[0147] A disconnection command is sent from the slave device 50 (step S610), and when the master device 60 receives the disconnection command from the slave device 50 (step S511; Yes), the pairing between the slave device 50 and the master device 60 is released (steps S513, S611), and the second process of the master device 60 shown in FIG. 24 and the second process of the slave device 50 shown in FIG. 25 are terminated.

[0148] In this embodiment, in addition to the connection establishment process described above, in a data transmission / reception process when transmitting and receiving control data such as various setting values, a selected security code (B) (second selected security code) generated based on an address code generated by the master device 60 and a security code (B) (second security code) held by the master device 60 is XORed with the key code (B) held by the master device 60 to calculate an XOR code (B) (second code), which is added to the setting value together with the address code and transmitted to the slave device 50. A selected security code (A) (first selected security code) generated based on the address code received from the master device 60 and a security code (A) (first security code) held by the slave device 50 is XORed with the key code (A) held by the slave device 50 to calculate an XOR code (A) (first code), which is then compared with the XOR code (B) (second code) received from the master device 60 to determine whether they match. If they do not match, the communication connection between the slave device 50 and the master device 60 is terminated.

[0149] As a result, even if, during the connection establishment process, for example, a malicious user or software hacks the connection code (A) (first connection code) stored in the first memory unit 51 of the slave device 50 and an unauthorized communication connection is made from outside to the network between the slave device 50 and the master device 60, further encryption is performed in the data transmission and reception process for transmitting and receiving control data such as various setting values, thereby realizing a more secure communication connection environment.

[0150] In the present embodiment, a configuration in which a connection code is exchanged between the slave device 50 and the master device 60 in the connection establishment process has been described, but the present invention is not limited to this. That is, a configuration in which a connection code is not exchanged between the slave device 50 and the master device 60 in the connection establishment process may also be used. Even in this case, a secure communication connection environment can be realized in the data transmission and reception process when transmitting and receiving control data such as the various setting values ​​described above.

[0151] (Embodiment 2) FIG. 27A is a first sequence diagram showing an example of a connection establishment process in the communication system according to the second embodiment. FIG. 27B is a second sequence diagram showing an example of a connection establishment process in the communication system according to the second embodiment. FIG. 27C is a third sequence diagram showing an example of a connection establishment process in the communication system according to the second embodiment. FIG. 27D is a fourth sequence diagram showing an example of a connection establishment process in the communication system according to the second embodiment. FIG. 28 is a flowchart showing an example of a first process of the master device 60 according to the second embodiment. FIG. 29 is a flowchart showing an example of a first process of the slave device 50 according to the second embodiment.

[0152] The connection establishment process shown in Figures 27A, 27B, 27C, and 27D begins when the slave device 50 is powered on, as in the first embodiment. When the slave device 50 is powered on, the slave device 50 executes a startup process (step S100 in Figures 27A, 27B, 27C, and 27D). Note that the startup process of the slave device 50 is the same as in the first embodiment, and therefore a description thereof will be omitted here. Also, the data transmission / reception process, the second process in the master device 60, and the second process in the slave device 50 are the same as in the first embodiment, and therefore a description thereof will be omitted here.

[0153] Pairing between the slave device 50 and the master device 60 is performed (step S200 in FIGS. 27A, 27B, 27C, and 27D), and after a communication connection between the slave device 50 and the master device 60 is established, a first process in the master device 60 shown in FIG. 28 and a first process in the slave device 50 shown in FIG. 29 are performed.

[0154] In the first process of the master device 60 shown in FIG. 28, the master device 60 starts a first timer t1 (t1=0, step S301) and transmits a connection code request to the slave device 50 to request transmission of a connection code (A) (step S302a).

[0155] 20, the slave device 50 starts a second timer t2 (t2=0, step S401) and determines whether the slave device 50 is in a pairing standby state (a) (step S402). Specifically, the slave device 50 determines whether the above-described startup process is the first startup process after the slave device 50 is shipped from the factory or initialized.

[0156] If the slave device 50 is in the pairing standby state (a) (step S402; Yes), that is, if the above-described startup process is the initial startup process after the slave device 50 is shipped from the factory or initialized, the slave device 50 determines whether or not it has received a connection code request transmitted from the master device 60 (step S403a). If it has received a connection code request (step S403a; Yes), the slave device 50 reads out a connection code (A) (first connection code) stored in the first storage unit 51 and transmits the connection code (A) to the master device 60 (step S404a).

[0157] The master device 60 determines whether or not it has received the connection code (A) transmitted from the slave device 50 (step S303a). If it has received the connection code (A) from the slave device 50 (step S303a; Yes), it stores the received connection code (A) (first connection code) as a connection code (B) (second connection code) in the second storage unit 61 (step S304a).

[0158] Next, the master device 60 determines whether the first timer t1 is equal to or greater than the first timer threshold T1 (e.g., 10 seconds) (step S305). If the first timer t1 is less than the first timer threshold T1 (step S305; No), the master device 60 repeatedly executes the processes from step S302a onward. When the first timer t1 becomes equal to or greater than the first timer threshold T1, the master device 60 transmits a connection code (B) (second connection code) to the slave device 50 (step S306).

[0159] If the slave device 50 has not received a connection code request transmitted from the master device 60 (step S403a; No), or if the slave device 50 has not received a connection code (B) from the master device 60 (step S405; No), the slave device 50 determines whether the second timer t2 is equal to or greater than the second timer threshold T2 (e.g., 10 seconds) (step S408). If the second timer t2 is less than the second timer threshold T2 (step S408; No), the slave device 50 repeatedly executes the processes from step S403a onward.

[0160] The slave device 50 determines whether it has received the connection code (B) transmitted from the master device 60 (step S405). When the slave device 50 receives the connection code (B) from the master device 60 (step S405; Yes), it reads the connection code (A) (first connection code) stored in the first storage unit 51 and determines whether the connection code (A) (first connection code) matches the connection code (B) (second connection code) received from the master device 60 (connection code (A) = connection code (B), step S406).

[0161] If the connection code (A) (first connection code) and the connection code (B) (second connection code) match (step S406; Yes), the slave device 50 proceeds to step S403b.

[0162] If the second timer t2 is equal to or greater than the second timer threshold T2 (step S408; Yes), or if the connection code (A) (first connection code) and the connection code (B) (second connection code) do not match (step S406; No), the slave device 50 sends a disconnect command to the master device 60 to disconnect the pairing between the slave device 50 and the master device 60 (step S409).

[0163] The master device 60 determines whether or not a disconnection command transmitted from the slave device 50 has been received (step S307).

[0164] A disconnection command is sent from the slave device 50 (step S409), and when the master device 60 receives the disconnection command from the slave device 50 (step S307; Yes), the pairing between the slave device 50 and the master device 60 is released (steps S309, S410), and the first process of the master device 60 shown in FIG. 19 and the first process of the slave device 50 shown in FIG. 20 are terminated.

[0165] If the master device 60 has not received a disconnection command from the slave device 50 (step S307; No), the master device 60 then transmits a key code request to the slave device 50 to request transmission of a key code (A) (step S302b).

[0166] When the slave device 50 receives the key code request (step S403b; Yes), it reads out the key code (A) (first key code) stored in the first storage unit 51 and transmits the key code (A) to the master device 60 (step S404b).

[0167] The master device 60 determines whether or not it has received the key code (A) transmitted from the slave device 50 (step S303b). If it has received the key code (A) from the slave device 50 (step S303b; Yes), it stores the received key code (A) (first key code) as a key code (B) (second key code) in the second storage unit 61 (step S304b).

[0168] Next, the master device 60 transmits a security code request to the slave device 50 to request transmission of a security code (A) (step S302c).

[0169] The slave device 50 determines whether or not it has received a security code request transmitted from the master device 60 (step S403c). If it has received a security code request from the master device 60 (step S403c; Yes), the slave device 50 reads out the security code (A) (first security code) stored in the first storage unit 51, transmits the security code (A) to the master device 60 (step S404c), and transitions to a standby state. Specifically, for example, if the slave device 50 is the lighting device 1 according to the embodiment, it transitions to a standby state for changing settings such as various setting values ​​(in the present disclosure, light distribution value) of the lighting device 1 (step S407), and ends the first process of the slave device 50 shown in FIG. 29.

[0170] The master device 60 determines whether it has received the security code (A) transmitted from the slave device 50 (step S303c). If the master device 60 receives the security code (A) from the slave device 50 (step S303c; Yes), it stores the received security code (A) (first security code) as a security code (B) (second security code) in the second storage unit 61 (step S304c) and enters a standby state. Specifically, for example, if the master device 60 is the control device 200 that controls the lighting device 1 according to the embodiment, it enters a standby state for operation of various setting values ​​(in the present disclosure, light distribution value) of the lighting device 1 (step S308), and ends the first processing of the master device 60 shown in FIG. 28.

[0171] If the slave device 50 is in the pairing standby state (b) (step S402; No), that is, if the above-described startup process is the second or subsequent startup process since the slave device 50 was shipped from the factory or initialized, the slave device 50 proceeds to step S405 and determines whether or not it has received the connection code (B) transmitted from the master device 60. The subsequent processes are the same as those in the pairing standby state (a).

[0172] In the connection establishment process of the second embodiment, a match between the connection code (A) (first connection code) held in the slave device 50 and the connection code (B) (second connection code) received from the master device 60 is determined, and if they match, the key code and security code are exchanged. In other words, if the connection code (A) (first connection code) held in the slave device 50 does not match the connection code (B) (second connection code) received from the master device 60, the communication connection between the slave device 50 and the master device 60 is disconnected without exchanging the key code and security code.

[0173] As a result, in the connection establishment process, if the master device 60 currently executing the connection establishment process is different from the master device 60 that previously executed the connection establishment process, including the initial startup process after the slave device 50 was shipped from the factory or was initialized, and the connection code (A) (first connection code) stored in the slave device 50 does not match the connection code (B) (second connection code) received from the master device 60, the amount of communication between the slave device 50 and the master device 60 until the communication connection is disconnected can be reduced.

[0174] Although preferred embodiments of the present disclosure have been described above, the present disclosure is not limited to such embodiments. The contents disclosed in the embodiments are merely examples, and various modifications are possible within the scope of the present disclosure. Appropriate modifications made within the scope of the present disclosure also naturally fall within the technical scope of the present disclosure. [Explanation of symbols]

[0175] 1. Lighting equipment 2 Liquid crystal cells 2_1 First liquid crystal cell 2_2 Second liquid crystal cell 2_3 Third liquid crystal cell 2_4 4th liquid crystal cell 4 light source 5 First board 6 Second board 7. Encapsulating material 8 Liquid Crystal Layer 9 Base material 10, 10a, 10b drive electrodes 11 1st metal wiring 11a,11b,11c,11d Metal wiring 12 Base material 13, 13a, 13b drive electrodes 14 2nd metal wiring 14a, 14b Metal wiring 15a,15b Continuity part 16a, 16b Connection terminal section 17 Liquid crystal molecules 18 Alignment film 19 Alignment film 20 Display panel 30 Touch Sensor 31 Detector element 40 Communication Systems 50 Slave Device 51 1st memory section 60 Master Device 61 2nd memory section 70 Means of communication 100 Optical Elements 111 Transmitting and receiving circuit 112 Electrode drive circuit 113 Memory circuit 200 control device 211 Detection circuit 212 Processing Circuit 223 Memory circuit 225 Transmitting and receiving circuit 231 Display control circuit 300 Means of communication AA effective area DA display area FA detection area GA peripheral area OBJ Light distribution shape object S1 First slider S2 Second slider

Claims

1. A communication system including a slave device and a master device that controls the slave device, wherein control data is transmitted and received between the master device and the slave device, the slave device generates a first key code and a first security code to which a plurality of random number data items corresponding to address data items are assigned; In a first process after a communication connection between the slave device and the master device is established, the slave device transmits the first key code and the first security code to the master device; the master device holds the first key code as a second key code and the first security code as a second security code; In a second process after the first process, the master device transmits to the slave device an address code generated based on the second security code and a second code generated based on the address code and the second key code; the slave device disconnects the communication connection with the master device when a first code generated based on the address code, the first key code, and the first security code does not match the second code received from the master device; Communication system.

2. In the second process, the master device selects a plurality of address data from the second security code to generate the address code, extracts random number data from the second security code corresponding to the plurality of address data included in the address code, generates a second selection security code by arranging the extracted random number data in the selection order of the address data, and calculates the second code by performing an XOR operation on the second selection security code with the second key code; the slave device extracts random number data corresponding to the plurality of address data from the first security code in the order of arrangement of the plurality of address data included in the address code received from the master device to generate a first selection security code, and calculates the first code by performing an XOR operation on the first selection security code with the first key code; The communication system of claim 1 .

3. the first security code and the second security code are a plurality of random number data defined by row addresses and column addresses, which are two-dimensionally arranged; each of the plurality of address data included in the address code is data combining the row-direction address and the column-direction address; The communication system according to claim 2 .

4. the random number data constituting the first security code and the second security code is a one-byte code; The communication system according to claim 3 .

5. the first key code and the first selected security code are codes of the same length, the second key code and the second selected security code are codes of the same length; The communication system according to claim 4.

6. the first key code and the first selected security code are 4-byte codes; the second key code and the second selected security code are 4-byte codes; The communication system according to claim 5 .

7. The slave device further generates a first connection code; In the first process, the slave device transmits the first connection code to the master device; the master device stores the first connection code received from the slave device as a second connection code; the master device transmits the second connection code to the slave device; the slave device disconnects the communication connection with the master device when the first connection code and the second connection code received from the master device do not match; A communication system according to any one of claims 1 to 6.

8. the slave device generates the first connection code, the first key code, and the first security code during initial startup processing; The communication system according to claim 7.

9. the slave device has a first storage unit that stores the first connection code, the first key code, and the first security code generated in the initial startup process; the master device has a second storage unit that stores the second connection code, the second key code, and the second security code; 9. The communication system of claim 8.

10. In the first process, the slave device transmits the first connection code, the first key code, and the first security code read from the first storage unit to the master device; the master device stores the first connection code received from the slave device as the second connection code in the second storage unit, stores the first key code received from the slave device as the second key code in the second storage unit, and stores the first security code received from the slave device as the second security code in the second storage unit; 10. The communication system of claim 9.

11. In the first process, the master device reads out the second connection code stored in the second storage unit and transmits it to the slave device; the slave device reads out the first connection code stored in the first storage unit, and if the first connection code does not match the second connection code received from the master device, terminates the communication connection with the master device. The communication system of claim 10.

12. the slave device transmits the first key code and the first security code to the master device when the first connection code and the second connection code match; 12. The communication system of claim 11.

13. 1. A lighting system comprising: a lighting device including a light source; an optical element provided on an optical axis of the light source and capable of setting a light distribution state of light emitted from the light source; and a control device capable of changing the light distribution state, the lighting device generates a first key code and a first security code to which a plurality of random number data items corresponding to address data items are assigned; In a first process after a communication connection between the lighting device and the control device is established, the lighting device transmits the first key code and the first security code to the control device; the control device stores the first key code as a second key code and the first security code as a second security code; In a second process after the first process, the control device transmits to the lighting device an address code generated based on the second security code and a second code generated based on the address code and the second key code; the lighting device disconnects communication with the control device when a first code generated based on the address code, the first key code, and the first security code does not match the second code received from the control device; Lighting system.

14. In the second process, the control device selects a plurality of address data from the second security code to generate the address code, extracts random number data from the second security code corresponding to the plurality of address data included in the address code, generates a second selection security code by arranging the extracted random number data in the selection order of the address data, and calculates the second code by performing an XOR operation on the second selection security code with the second key code; the lighting device extracts random number data corresponding to the plurality of address data from the first security code in the order of arrangement of the plurality of address data included in the address code received from the control device to generate a first selection security code, and calculates the first code by performing an XOR operation on the first selection security code with the first key code; 14. The lighting system of claim 13.

15. the first security code and the second security code are a plurality of random number data defined by row addresses and column addresses, which are two-dimensionally arranged; each of the plurality of address data included in the address code is data combining the row-direction address and the column-direction address; 15. The lighting system of claim 14.

16. the random number data constituting the first security code and the second security code is a one-byte code; 16. The lighting system of claim 15.

17. the first key code and the first selected security code are codes of the same length, the second key code and the second selected security code are codes of the same length; 17. The lighting system of claim 16.

18. the first key code and the first selected security code are 4-byte codes; the second key code and the second selected security code are 4-byte codes; 18. The lighting system of claim 17.

19. The lighting device further generates a first connection cord; In the first process, the lighting device transmits the first connection code to the control device; the control device stores the first connection code received from the lighting device as a second connection code; the control device transmits the second connection code to the lighting device; the lighting device disconnects communication with the control device when the first connection code and the second connection code received from the control device do not match; 19. A lighting system according to any one of claims 13 to 18.

20. the lighting device generates the first connection code, the first key code, and the first security code during an initial startup process; 20. The lighting system of claim 19.

21. the lighting device has a first storage unit that stores the first connection code, the first key code, and the first security code generated in the initial startup process, the control device has a second storage unit that stores the second connection code, the second key code, and the second security code; 21. The lighting system of claim 20.

22. In the first process, the lighting device transmits the first connection code, the first key code, and the first security code read from the first storage unit to the control device; the control device stores the first connection code received from the lighting device in the second storage unit as the second connection code, stores the first key code received from the lighting device in the second storage unit as the second key code, and stores the first security code in the second storage unit as the second security code; 22. The lighting system of claim 21.

23. In the first process, the control device reads out the second connection code stored in the second storage unit and transmits the second connection code to the lighting device; the lighting device reads out the first connection code stored in the first storage unit, and if the first connection code does not match the second connection code received from the control device, disconnects the communication connection with the control device; 23. The lighting system of claim 22.

24. the lighting device transmits the first key code and the first security code to the control device when the first connection code and the second connection code match; 24. The lighting system of claim 23.

25. A communication method for transmitting and receiving control data between a slave device and a master device that controls the slave device, comprising: a first step in which the slave device generates a first key code and a first security code to which a plurality of random number data items corresponding to address data items are assigned; After the communication connection between the slave device and the master device is established, a second step in which the slave device transmits the first key code and the first security code to the master device; a third step in which the master device stores the first key code as a second key code and the first security code as a second security code; a fourth step in which the master device transmits to the slave device an address code generated based on the second security code and a second code generated based on the address code and the second key code; a fifth step of disconnecting the communication connection with the master device when a first code generated by the slave device based on the address code, the first key code, and the first security code does not match the second code received from the master device; having Communication method.

26. The fourth step is selecting a plurality of address data from the second security code to generate the address code; extracting random number data corresponding to a plurality of address data included in the address code from the second security code; generating a second selection security code by arranging the extracted random number data in the selection order of the address data; XORing the second selected security code with the second key code to calculate the second code; Including, The fifth step is generating a first selection security code by extracting random number data corresponding to the plurality of address data from the first security code in the order of arrangement of the plurality of address data included in the address code received from the master device; XORing the first selected security code with the first key code to calculate the first code; Including, 26. The communication method of claim 25.

Citation Information

Patent Citations

  • 77 chikanasetoamido 33 chikanchiomechiru 33 sefuemu 44 karubonsanruio seizosuruhoho

    JP1976019791A

  • Communication device and communication method

    JP2009212732A

  • Authentication system, authentication method, authentication program, authentication apparatus, and request device

    JP2010108054A

  • Wireless communication method, wireless communication system, wireless communication apparatus and wireless communication program

    JP2012209758A

  • Radio communication device, and radio communication channel registration method

    JP2013207729A