fpsensor: Add instructions for using screen instead of minicom
Also increase timeout to provide enough time to hit enter when download
prompt pops up.
BRANCH=none
TEST=fpcapture from fingerprint console
@@ -684,6 +684,23 @@ DECLARE_HOST_COMMAND(EC_CMD_FP_TEMPLATE, fp_command_template, EC_VER_MASK(0));
* TMPF=$(mktemp)
* ascii-xfr -rdv ${TMPF}
* display ${TMPF}
+ *
+ * Alternative (if you're using screen as your terminal):
+ *
+ * From *outside* the chroot:
+ *
+ * Install ascii-xfr: sudo apt-get install minicom
+ * Install imagemagick: sudo apt-get install imagemagick
+ *
+ * Add the following to your ${HOME}/.screenrc:
+ *
+ * zmodem catch
+ * zmodem recvcmd '!!! bash -c "ascii-xfr -rdv /tmp/finger.pgm && display /tmp/finger.pgm"'
+ *
+ * From *outside the chroot*, use screen to connect to UART console:
+ *
+ * sudo screen -c ${HOME}/.screenrc /dev/pts/NN 115200
+ *
*/
static void upload_pgm_image(uint8_t *frame)
{
@@ -692,7 +709,7 @@ static void upload_pgm_image(uint8_t *frame)
/* fake Z-modem ZRQINIT signature */
ccprintf("#IGNORE for ZModem\r**\030B00");
- msleep(100); /* let the download program start */
+ msleep(2000); /* let the download program start */
/* Print 8-bpp PGM ASCII header */
ccprintf("P2\n%d %d\n255\n", FP_SENSOR_RES_X, FP_SENSOR_RES_Y);
