History log of /external/autotest/client/cros/cellular/wardmodem/state_machines/common.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
db2e125078222e46e26eb5180ca4fbcc5f09a66b 13-Sep-2013 Prathmesh Prabhu <pprabhu@chromium.org> wardmodem: Add request_response state machine.

This CL adds the first state machine to wardmodem
- ATTransceiver now takes a fallback machine, and forwards all requests for
there is no other wardmodem action registered to this machine.
- RequestResponse state machine is the fallback machine. This is really a
stateless machine, beyond an 'ENABLED' state. This CL introduces an AT
command to response map to base.conf. RequestResponse uses the incoming
command as the key in this map and responds with the given values(s).

RequestResponse is the simplest state machine possible. It can also be used as
the first step towards supporting some functionality in wardmodem. Start by
adding dumb saved replies from the RequestResponse state machine, and then if
needed write a state machine for more flexibility / transparency in what's
happening.

BUG=chromium:269677
TEST=Run unit-tests.

Change-Id: I735fafcfe7c20627ea29eca56865f143c51ea132
Reviewed-on: https://chromium-review.googlesource.com/64983
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/cros/cellular/wardmodem/state_machines/common.py