Nasal cannula devices for insertion in a sleep apnea patient’s nasal passages, the device is formed with through air-flow passages and having circular membranes operative upon inhaling by the patient to open for free flow of air into the nasal passages and, further, operative upon exhalation by the patient to block expiration by the patient. This conversion is accomplished without the presence of a river or stream. The release time is determined by a sensor model algorithm based on a model of the acceleration sensor from at least one variable characterizing the running dynamics. The scroll housing includes an air inlet for drawing air into the air filtration system and helmet, and at least one air outlet to distribute air flow to the air flow channel. The condition of the connection between the IPs and the silicon wiring substrate is determined based on the fact that a forward current flows through a protection diode when a voltage of the opposite polarity is applied to the power supply line or the ground line.