User's Manual
DRAFT TrimTrac 1.5 Technical Manual v0.3ab 67
QUERY State
The QUERY State is where the Application waits for incoming messages from
the server. During this state the GPS hardware may be powered off but the GSM
radio is powered on.
1. Upon entering the QUERY state, the TrimTrac 1.5 starts QUERY
Timeout, T5 (LED Blink: Long ON, Short OFF).
2.
The application then waits until the QUERY Timeout, T5, expires or a
valid data message arrives, either via SMS or GPRS.
3. If a valid data message arrives it is processed and one or more messages
may be generated in response to the received query. If the QUERY
Timeout, T5, changes due to a received message the current QUERY state
is terminated.
4. For each of the responses the TrimTrac 1.5 waits for a confirmation from
the GSM protocol stack that it was sent.
5. If the QUERY Timeout, T5, expires while the application is sending
responses to the received query, then the TrimTrac 1.5 will continue to
send the responses and accept new queries. (Note: If a SET_ALERT
message clearing activated alerts to normal is receive, but the monitored
devices or conditions have not yet been return to their normal condition,
then new alert messages will be initiated and the TrimTrac will not
otherwise respond to the incoming SET_ALERT message)
6. When the QUERY Timeout, T5, has expired and there are no messages
waiting to be sent then the TrimTrac 1.5 transitions to the DELAY State if
the TriggerType was set “1=Motion Detected”. If the TriggerType was set
“0=IDLE Timeout, T1” then the TrimTrac 1.5 transitions to the IDLE
state.
7. If Query Hold Flag is set “1=Enabled”, the TrimTrac 1.5 will attempt to
re-establish any GSM network connection that may have been lost prior to
the expiration of QUERY Timeout, T5. It will continue attempting to re-
establish the lost GSM network connection until the QUERY Timeout, T5,
has expired.
8. If either the In-Motion Polling or Anytime Polling are set to
“2=OnDemand while in Motion” or “2=Anytime OnDemand”,
respectively, the QUERY Timeout, T5, is automatically set to 10 seconds..
Alert Processing in QUERY State
Whenever one or more Vehicle Adapter or Control Module alerts are in some
condition other than “0=Normal” or “3=Acknowledged”, and mode not set
“1=Disabled” or “3=Monitor-only”, alert processing during QUERY state shall be
in the following order: