A container for locally determining a container state using a state
device. The state device detects unexpected events by comparing expected
event information with actual event information related to a container
condition. The container condition includes, for example, environmental
conditions, logistical or location conditions, and physical or security
conditions. Thus, the container is able to intelligently monitor its
state and raise an alert without intervention from a central system. The
container can also be programmed and reprogrammed with updated logic,
states, and/or expected event information. A sensor in the state device
gathers input information for comparison to expected event information. A
communication port in the state device receives event information. For
example, a GPS (Global Positioning System) receiver can determine a
current location for comparison to an expected location at the current
time. In another example, an RFID (Radio Frequency Identification)
receiver and transmitter automatically uploads state information to a
central system.