sync exports, display device screen

main
Jeff Moe 2022-05-25 20:47:49 -06:00
parent 3208f8dbfc
commit e529f69029
5 changed files with 34 additions and 13 deletions

View File

@ -39,6 +39,8 @@ Current scripts:
* `pysalx-backup-sd` --- Backup the SD card.
* `pysalx-date-set` --- Set time/date on analyzer using workstation's time.
* `pysalx-install-deps` --- Install script dependencies (initial setup).
* `pysalx-record` --- Display device screen. XXX TODO
* `pysalx-screen` --- Display device screen on workstation.
* `pysalx-tail-log` --- View the analyzer logfile in semi-real-time.
@ -82,6 +84,7 @@ To view the screen of the device remotely via USB, install
```
sudo apt update
sudo apt install scrcpy
./scripts/
```
# SciAps Analyzers

View File

@ -4,9 +4,7 @@
set -x
NOW=`date +%Y%m%d%H%M%S`
mkdir -p "./export"
mkdir -p "./$NOW"
adb pull -a /storage/sdcard0/export/ "./$NOW"
adb pull -a /storage/sdcard0/export/ "./"

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Script to backup the extsdcard on the analyzer.
# It will create a timestamped directory.
set -x
NOW=`date +%Y%m%d%H%M%S`
mkdir -p "./$NOW"
adb pull -a /storage/sdcard0/export/ "./$NOW"

View File

@ -1,9 +0,0 @@
#!/bin/bash
# Connect & run scrcpy
echo "Be the root"
adb root
echo "run scrcpy"
scrcpy

View File

@ -0,0 +1,17 @@
#!/bin/bash
# Connect & run scrcpy
adb root
scrcpy \
--window-x=240 \
--window-y=320 \
--window-width=480 \
--window-height=640 \
--window-title="SciAps XRF X555" \
--lock-video-orientation=0 \
--hid-keyboard \
--disable-screensaver \
--stay-awake \
--always-on-top