Compare commits

...

8 Commits
0.2 ... main

Author SHA1 Message Date
Jeff Moe 8f6cfbb34e rename log tailler 2022-05-27 22:00:18 -06:00
Jeff Moe 68638e72f9 Update X-555 log path 2022-05-27 21:58:51 -06:00
Jeff Moe 35874fe826 Add sample export from Olympus Vanta XRF 2022-05-27 12:37:36 -06:00
Jeff Moe 94384782f8 port forward API 2022-05-25 20:59:46 -06:00
Jeff Moe e529f69029 sync exports, display device screen 2022-05-25 20:47:49 -06:00
Jeff Moe 3208f8dbfc Set timezone example 2022-05-25 13:41:11 -06:00
Jeff Moe 18b21135b7 write time to hardware clock 2022-05-25 13:28:58 -06:00
Jeff Moe 9db5612534 scrcpy screencap 2022-05-25 13:18:42 -06:00
8 changed files with 2142 additions and 6 deletions

View File

@ -39,7 +39,9 @@ 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-tail-log` --- View the analyzer logfile in semi-real-time.
* `pysalx-record` --- Display device screen. XXX TODO
* `pysalx-screen` --- Display device screen on workstation.
* `pysalx-log` --- View the analyzer logfile in semi-real-time.
## Usage
@ -75,6 +77,16 @@ debian@workstation:~$ adb shell tail -f /storage/sdcard0/ngl.log
See more notes in the `doc/` directory.
# Other Useful Apps
To view the screen of the device remotely via USB, install
`scrcpy`.
```
sudo apt update
sudo apt install scrcpy
./scripts/
```
# SciAps Analyzers
In sum, they are Android-derived 64-bit ARM systems.
So they interact with standard free software Android

2089
doc/olympus-vanta.csv 100644

File diff suppressed because it is too large Load Diff

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

@ -15,4 +15,12 @@ adb shell busybox date -s \"$NOW\"
echo
echo "Current time on analyzer"
adb shell busybox date
echo
echo "Write time to hardware clock"
adb shell hwclock -w -u
echo "Current hardware clock time"
adb shell hwclock -u
# Set the timezone, ala:
#setprop persist.sys.timezone "America/Denver"

View File

@ -5,5 +5,5 @@
set -x
adb root
adb shell tail -f /storage/sdcard0/ngl.log
adb shell tail -f /sdcard/sciaps/xrf.log

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