Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
Jeff Moe | 8f6cfbb34e | |
Jeff Moe | 68638e72f9 | |
Jeff Moe | 35874fe826 | |
Jeff Moe | 94384782f8 | |
Jeff Moe | e529f69029 | |
Jeff Moe | 3208f8dbfc | |
Jeff Moe | 18b21135b7 | |
Jeff Moe | 9db5612534 |
14
README.md
14
README.md
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
set -x
|
||||
|
||||
adb root
|
||||
adb shell tail -f /storage/sdcard0/ngl.log
|
||||
adb shell tail -f /sdcard/sciaps/xrf.log
|
||||
|
|
@ -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