Start a http server with thread in the dut power, this server can pass the dut power's measurement data to the UI

One issue:
1. Need to press crtl-c to stop the http server and release the port after we finish to run the function, if we do not press crtl-c, current using port will be congestion

BUG=b:203692086
sudo servod in chroot, and open another chroot
TEST=dut-power -t 10
TEST=dut-power -t 10 --visualization
TEST=dut-power -t 10 --visualization --visualization-port 9997
TEST=dut-power -t 10 --visualization --visualization-port 0

Change-Id: I66cae8714c3bbd514750510cf5d8f86684da7c4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hdctools/+/3712133
Commit-Queue: Ziting Shen <zitingshen@google.com>
Reviewed-by: Kuan-Lin Lee <kuanlinlee@google.com>
Reviewed-by: Ziting Shen <zitingshen@google.com>
Tested-by: 488603086791@cloudbuild.gserviceaccount.com <488603086791@cloudbuild.gserviceaccount.com>
2 files changed
tree: 4c2a1a4443f56e3fdc5a7942aeeb6092e1c9cd73
  1. beaglebone/
  2. chromeos/
  3. defs/
  4. development_environment/
  5. docs/
  6. include/
  7. lib/
  8. polld/
  9. serial_server/
  10. servo/
  11. src/
  12. test/
  13. usbkm232/
  14. .gitignore
  15. DIR_METADATA
  16. getversion.sh
  17. LICENSE
  18. Makefile
  19. navbar.md
  20. OWNERS
  21. PRESUBMIT.cfg
  22. pylintrc
  23. README.md
  24. setup.py
  25. unblocked_terms.txt
README.md

hdctools: Chrome OS Hardware Debug & Control Tools

This repository contains source code and documentation for the Servo debug boards. The tools in this repository require the full CrOS chroot, while the Standalone hdctools can be used without the chroot.

Servo

servod

Closed Case Debugging (CCD)

Power Measurement

Resources