Add webplot module

This module uses cherrypy to provide web service, and uses web
sockets to handle messages between client browsers and the web
server. In most cases, the messages are the finger data which
the client browsers are to draw finger traces with. The server
could run on a host supports python, e.g., a unix host or a
chromebook machine.

A thread runs in parallel to get packets continuously from the
specified remote dut. The dut could be a chromebook machine or
an android device.

A connection state object is used to count how many clients have
connected. When a client leaves, it sends a quit message to the
server. If all clients have disconnected, the server would
terminate automatically. This saves the user from the trouble
of terminate the python web server.

BUG=chromium:443539
TEST=None. Will be tested with the related html and js later.

Change-Id: Id37f5642b989ca233c0adb07aa503d5a77b6309b
Reviewed-on: https://chromium-review.googlesource.com/237524
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Commit-Queue: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
1 file changed
tree: c363709766a1b839249858b66a6d2bd1ab7d6e30
  1. remote/
  2. webplot.py