Patent ID: 7826695

Claim:
An optical transmitting and receiving device comprising: a main unit, in turn comprising: a light emitting element, for emitting light toward a front; a light receiving element, for receiving light illuminated from the front; a base, having a first recess, in which the light emitting element is positioned, and a second recess, in which the light receiving element is positioned, formed on a front surface; a light blocking member, disposed on the front surface side of the base and having formed therein a first light passage hole, through which the light emitted from the light emitting element passes, and a second light passage hole, through which the light to be received by the light receiving element passes; and a light transmitting member, disposed on a front surface side of the light blocking member and through which is transmitted the light emitted from the light emitting element and the light to be received by the light receiving element; an enclosure, formed so as to open toward the front and with which the main unit is positioned at an inner side thereof; and a light blocking resin portion, filling a region surrounding the main unit inside the enclosure; wherein a groove, passing between the first light passage hole and the second light passage hole as viewed from the front and having at least one end opened to a side surface of the light transmitting member, is formed in a front surface of the light transmitting member, and the light blocking resin portion reaches an interior of the groove.