-
Todd Broch authored
The usbkm232 is an RS232 (uart) to USB keyboard emulator. See http://www.hagstromelectronics.com/products/usbkm232.html for device details. Following CL contains a python class to interact with the device as well as some convenience scripts to be used when calling FAFT related autotests via the 'ctrl_d_cmd|enter_cmd' hooks. For example, run_remote_tests.sh --remote=$REMOTE_IP -a "\ ctrl_d_cmd=/usr/bin/usbkm232-ctrld \ enter_cmd=/usr/bin/usbkm232-enter" DevMode BUG=chrome-os-partner:7227 TEST=manual, 1. connect RS232 side of usbkm232 device to host w/ chroot 2. connect USB side of usbkm232 device to DUT that needs keyboard emulation. 3. chroot> sudo emerge hdctools 4. chroot> export USBKM232_UART_DEVICE=<device> 5. chroot> usbkm232-(ctrld|ctrlu|space|enter|test) Change-Id: I2609f74323fe7c8799ad5cbd1834dd396e1e4f66 Reviewed-on: https://gerrit.chromium.org/gerrit/13553 Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org> Commit-Ready: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
be409376