Warning device and method for indicating that a part of the body is sticking out of a window of a vehicle

A warning device includes a sensing unit, a comparing unit, a controlling unit and a warning unit. The sensing unit sense whether a part of the body of a person is sticking out of the window and generates a sensing signal. The comparing unit detects if the sensing signal is at least a predetermined value. If it is determined that the sensing signal is at least the predetermined value, a part of the body of the person is sticking out of the window and the comparing unit generates a warning signal. The warning unit is used for generating the alarm, and is capable of alternating between an alarm state and standby state. The controlling unit responds to the warning signal to detect whether the warning unit is in the alarm state, and disables the warning unit to start generating the alarm when the warning unit is in the standby state.

BACKGROUND

1. Technical Field

The present disclosure relates to electronic devices; and particularly to a warning device and a warning method used by the warning device.

2. Description of Related Art

A vehicle, such as a car or a bus, is widely used. When a car or a bus is being driven, a person may carelessly stick some parts of the body, such as arms, out of a window of the vehicle, thus increasing the likelihood of injury.

Therefore, there is room for improvement in the art.

DETAILED DESCRIPTION

Referring toFIG. 1, a warning device100includes a sensing unit110, a comparing unit120, a controlling unit130, and a warning unit140. The warning device100is disposed on a vehicle such as a car or a bus for warning the operator of potential injury.

The sensing unit110is used for sensing whether a part of the body of a person in the vehicle is sticking out of a window of the vehicle, and if a part of the body is sticking out of the window generating a sensing signal. The sensing unit110may be an infrared sensor that senses infrared light radiated by the person within a sensing area and transforms the infrared light into the sensing signal. The sensing unit110may include at least one infrared sensor disposed on the window of the vehicle. The sensing signal is enhanced when a part of the body of the person is sticking out of the window. In other embodiments, the sensing unit110may be arranged around the window and/or doors.

The comparing unit120is used for determining whether the sensing signal is at least a predetermined value, if the sensing signal is at least a predetermined value, it determined that a part of the body of the person is sticking out of the window, and the comparing unit120generates a warning signal. If the sensing signal is less than the predetermined value, it is determined that no part of body of the person is sticking out of the window, and the comparing unit120generates a stopping signal.

The warning unit140is used for generating an alarm. The warning unit140is capable of alternating between an alarm state and a standby state.

The controlling unit130is used for responding to the warning signal to detect whether the warning unit140is in the standby state, and controlling the warning unit140to start generating the alarm when the warning unit140is in the standby state.

The controlling unit130is further used for responding to the stopping signal to detect whether the warning unit140is in the alarm state, and disable the warning unit140so that the warning unit140stops generating the alarm when the warning unit140is in the alarm state. As such, the warning unit140plays the alarm for warning the person to retract the part of his body sticking out of the window of the vehicle, thus injury to the person, caused by passing objects, outside of the vehicle may be decreased.

The sensing unit110and the other parts of the warning device100can be separately disposed on the different position of the vehicle, such as the sensing unit110disposed on the side of the window, the other parts of the warning device100are used as a whole disposed on the position different from the sensing unit110of the vehicle. The sensing unit110sends the sensing signal to the comparing unit120wirelessly. In the other embodiment, the sensing unit110, the comparing unit120and the controlling unit130are used as a whole disposed on the window and/or window frame.

A warning method is used to control the warning device to generate an alarm. The warning device may be set on the vehicle, such as a car or a bus. The warning method includes the following steps.

In step S201, generating a sensing signal for determining whether a part of the body of the person is sticking out of the window. In the embodiment, whether a part of the body of a person is sticking out of the window by detecting heat generated within a sensing area via an infrared sensor.

In step S202, determining whether the sensing signal is at least a predetermined value. If the sensing signal is at least a predetermined value, it is determined that a part of the body of the person is sticking out of the window, and step S203is implemented. If the sensing signal is less than the predetermined value, it is determined that no part of body of the person is sticking out of the window, step S205is implemented.

In step S203, detecting whether the warning device generates the alarm. If it is determined that the warning device doesn't generate the alarm, step S204is implemented. If it is determined that the warning device generates the alarm, the process ends.

In step S204, controlling the warning device to start generating the alarm, and the process ends.

In step S205, determining whether the warning device is generating the alarm. If it is determined that the warning device generates the alarm, step S206is implemented. If it is determined that the warning device is not generating the alarm, the process ends.

In step S206, controlling the warning device to stop generating the alarm, and the process ends.

Using the above warning method, the warning device generates the alarm when a part of the body of the person is sticking out of the window, thus injuries to the person caused by objects sticking outside of the vehicle can be decreased.

It is to be understood, even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.