sync exports, display device screen
parent
3208f8dbfc
commit
e529f69029
|
@ -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
|
||||
|
|
|
@ -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/ "./"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Connect & run scrcpy
|
||||
|
||||
echo "Be the root"
|
||||
adb root
|
||||
|
||||
echo "run scrcpy"
|
||||
scrcpy
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue