runonphone - Implement CODA autodetection
authorShane Kearns <shane.kearns@accenture.com>
Thu, 22 Sep 2011 14:57:31 +0000 (15:57 +0100)
committerShane Kearns <shane.kearns@accenture.com>
Tue, 4 Oct 2011 12:11:44 +0000 (13:11 +0100)
commitc9ff25ec9ca7a9c00e4aea7b7ff23e34064a2a1f
treee122acc53204cf3a3e5fffa7d72a90bcbdd3cf7d
parentd22211b970dbab1382c97ef8259c91adc2b8a4de
runonphone - Implement CODA autodetection

If runonphone is executed without specifying the debug agent, then
it will attempt to autodetect it by sending a CODA ping to the USB
port.
If there is a reply within 1 second, then CODA mode is used.
If not, then TRK mode is used.

TRK drops unrecognised messages, so the CODA ping is ignored and
initialisation starts normally when the TRK ping is sent.

Autodetect can be skipped by using the --coda or --trk arguments on
the command line to force use of a specific debug agent.

Reviewed-By: mread
tools/runonphone/codasignalhandler.cpp
tools/runonphone/main.cpp
tools/runonphone/symbianutils/symbiandevicemanager.cpp