vault backup: 2022-09-21 11:03:00

Affected files:
.obsidian/workspace
01. 個人/00. Daily/2021/02/2021-02-22(Mon).md
01. 個人/00. Daily/2021/05/2021-05-24(週一).md
01. 個人/00. Daily/2021/05/2021-05-25(週二).md
01. 個人/00. Daily/2021/05/2021-05-26(週三).md
01. 個人/00. Daily/2021/05/2021-05-28(週五).md
01. 個人/00. Daily/2021/05/2021-05-29(週六).md
01. 個人/00. Daily/2021/06/2021-06-02(週三).md
01. 個人/00. Daily/2021/06/2021-06-03(週四).md
01. 個人/00. Daily/2021/06/2021-06-04(週五).md
01. 個人/00. Daily/2021/06/2021-06-05(週六).md
01. 個人/00. Daily/2021/06/2021-06-06(週日).md
01. 個人/00. Daily/2021/06/2021-06-07(週一).md
01. 個人/00. Daily/2021/06/2021-06-08(週二).md
01. 個人/00. Daily/2021/06/2021-06-09(週三).md
01. 個人/00. Daily/2021/06/2021-06-10(週四).md
01. 個人/00. Daily/2021/06/2021-06-11(週五).md
01. 個人/00. Daily/2021/06/2021-06-12(週六).md
01. 個人/00. Daily/2021/06/2021-06-15(週二).md
02. 工作/01. Logitech/20210412 - TestCam.md
02. 工作/01. Logitech/20210428 - Sega.md
02. 工作/01. Logitech/20210512 - Kong.md
02. 工作/01. Logitech/20210716 - AutoStation.md
02. 工作/01. Logitech/20220601 - Sentinel.md
This commit is contained in:
2022-09-21 11:03:00 +08:00
parent abe6fb73bc
commit bacdf747b3
24 changed files with 37 additions and 37 deletions

View File

@@ -1,182 +0,0 @@
### Build
- [Kong Build Instructions (CI Team)](https://spaces.logitech.com/pages/viewpage.action?pageId=69534226)
### Setup
#### Quickly setup
```bash
adb root ;\
adb shell setenforce 0 ;\
adb shell "setprop persist.logi.lss.no-start-at-boot false" ;\
adb shell "setprop persist.logi.aicv.disable-engine true" ;\
adb reboot
```
After reboot...
```bash
adb root ;\
adb shell setenforce 0 ;\
adb shell setprop persist.logitech.platform.security.app_whitelist_enable false ;\
adb shell settings put global frogger-dev:developer_mode 1 ;\
adb shell settings put global frogger-dev:frogger-nav:show-other 1 ;\
adb shell settings put system screen_off_timeout 0 ;\
adb shell svc power stayon true ;\
adb shell dumpsys battery set ac 1
```
#### Disable whitelist
```bash
adb root ;\
adb shell setenforce 0 ;\
adb shell setprop persist.logitech.platform.security.app_whitelist_enable false
```
#### Keep screen on
```bash
adb shell settings put system screen_off_timeout 0 ;\
adb shell svc power stayon true ;\
adb shell dumpsys battery set ac 1
```
#### AICV
##### Disable
```bash
adb root ;\
adb shell setenforce 0 ;\
adb shell "setprop persist.logi.lss.no-start-at-boot false" ;\
adb shell "setprop persist.logi.aicv.disable-engine true" ;\
adb reboot
```
##### Enable
```bash
adb shell setprop persist.logi.lss.no-start-at-boot false
```
#### Disable SELinux
```bash
adb root ; adb shell "setenforce 0"
```
#### Show frogbar
```bash
adb shell settings put global frogger-dev:frogger-nav:show-other 1
```
#### Developer mode
- Turn on
```bash
adb shell settings put global frogger-dev:developer_mode 1
```
- Turn off
```bash
adb shell settings put global frogger-dev:developer_mode 0
```
#### Update firmware
```bash
adb reboot-bootloader ; fastboot wait-device ; fastboot devices ;\
./fastboot_script.sh
```
參考:[[Device Firmware Update](https://spaces.logitech.com/display/VCE/Device+Firmware+Update)
#### BER Recording
Version: 1.231(`G:\\My Drive\\Cowork\\Juiwen Hsu\\Cowork(Awin)\\Kong-FIH\\TMP_KAD_Share\\Daily_Build\\V1.231\\KAD-V1.231-0UWW\\0UWW`)
##### Turn On RAW data record
```bash
adb shell "setprop persist.vendor.camera.autoImageDump TRUE" ;\
adb shell "setprop persist.vendor.camera.autoImageDumpMask 0x1" ;\
adb shell "setprop persist.vendor.camera.autoImageDumpIFEoutputPortMask 0xF00" ;\
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2 \"\t\" \$9}}'" ;\
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2}}' | xargs kill" ;\
sleep 2 ;\
adb shell "ls -l /data/vendor/camera"
```
##### Turn Off RAW data record
```bash
adb shell "setprop persist.vendor.camera.autoImageDump FALSE" ;\
adb shell "setprop persist.vendor.camera.autoImageDumpMask 0x0" ;\
adb shell "setprop persist.vendor.camera.autoImageDumpIFEoutputPortMask 0x0" ;\
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2 \"\t\" \$9}}'" ;\
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2}}' | xargs kill" ;\
sleep 2 ;\
adb shell "ls -l /data/vendor/camera"
```
##### Record screen
```bash
adb shell "screenrecord /sdcard/screen_recod.mp4" ;\
adb pull /sdcard/screen_recod.mp4 C:\RobotRun\Output\
```
#### Fixed UVC pattern
- bash
```bash
adb root ;\
adb disable-verity ;\
adb reboot ;\
adb wait-for-device ;\
sleeep 15 ;\
adb root ;\
adb remount ;\
adb push vendor.fih.hardware.logi_uvc@1.0-service //vendor/bin/hw ;\
adb shell mkdir //data/uvc ;\
adb push 2160p.jpg //data/uvc ;\
adb push 1440p.jpg //data/uvc ;\
adb push 1080p.jpg //data/uvc ;\
adb shell "chmod 777 /vendor/bin/hw/vendor.fih.hardware.logi_uvc@1.0-service"
```
- Windows cmd
```
adb root
adb disable-verity
adb reboot
## Wait device reboot finish
adb root
adb remount
adb push vendor.fih.hardware.logi_uvc@1.0-service /vendor/bin/hw
adb shell mkdir /data/uvc
adb push 2160p.jpg /data/uvc
adb push 1440p.jpg /data/uvc
adb push 1080p.jpg /data/uvc
adb shell "chmod 777 /vendor/bin/hw/vendor.fih.hardware.logi_uvc@1.0-service"
adb reboot
```
### Data
- https://sites.google.com/a/logitech.com/lfb_fw/project/product/kong-fogger/kong_pantilt_fw
### KongQA TODO
- [ ] Add version informations on main screen (2021/01/06-)
- [x] Rename to "VCDroidTester" (2021/01/30-) ^561a6a
- [x] 把VCDroidTest加到RobotRunSite裡面 (2021/02/22-) ^cc0bf4
- [x] 更新disable whitelist的command (2021/02/22-) ^0754e4
- [x] 給Corleone可以直接叫起VCDroidTest的command (2021/02/22-) ^698615
- `adb shell am start -n com.logitech.kongqa/.MainActivity`
- [x] 請Juiwen把refresh device的時間變成一個config option (2021/02/22-2021/02/26) ^4a5512
- [ ] 研究APK如何display外接camera (2021/02/22-) ^b6e6c8
- [ ] 研究APK如何播放audio到外接USB speaker (2021/02/22-) ^a83b91
- [ ] 研究APK如何用外接USB microphone收音 (2021/02/22-) ^b85fbe
- [x] 做VCDroidTester的簡報 (2021/02/22-2021/03/02)
- [x] Purpose
- [x] funtions
- [x] Where to download
- [ ] 建立一個可以由ADB控制的service (2021/03/16-) ^cd73f7
- [ ] 經由service開啟指定的camera preview (2021/03/16-)
- [ ] 經由service拍照 (2021/03/16-)
- [ ] 經由service控制PTZ (2021/03/16-)
### MISC
- [x] UVC class讀取pan/tilt的方法 (2021/02/23-2021/02/24)
#### Archives
- [x] Fix WIFI name & ETH status ^9a787b
- [x] Add PTZ control in full screen activity ^d9bdf7
- [x] Microphone & speaker 加上label
- [x] Present KongQA code to Juiwen(2021/01/07-2021/01/08)

View File

@@ -1,12 +0,0 @@
# Build
1. `Mic\stdafx.h``Micdll\StdAfx.h`版本改為0x0600
![[Pasted image 20210412164733.png]]
1. `\mic\wavedev.cpp`修正line182與line489的i變數問題。
![[Pasted image 20210412165017.png]]
1. Project `micdll``MTF``TSTFRAME`Configuration Properties -> General -> Platform Toolset要改成`Visual Studio 2010 (v100)`
![[Pasted image 20210412170608.png]]
1. Project `micdll``TSTFRAME`
1. Configuration Properties -> C/C++ -> General -> Additonal Include Directories要加入`..\MeasurementStudioVS2010\VCNET\Include`
![[Pasted image 20210412170837.png]]
1. Configuration Properties -> Linker -> General -> Additonal Library Directories要加入`..\MeasurementStudioVS2010\VCNET\Lib`
![[Pasted image 20210412170844.png]]

View File

@@ -1,18 +0,0 @@
### Setup
#### Add camera to whitelist
Syntax:
```
adb shell setprop persist.vendor.logitech.ext.cam.allowedlist <VID>:<PID>
```
Example, Add c930e:
```
adb root ;\
adb shell setprop persist.vendor.logitech.ext.cam.allowedlist 046D:0843
```
For c910
```
adb root ;\
adb shell setprop persist.vendor.logitech.ext.cam.allowedlist 046D:0821
```

View File

@@ -1,68 +0,0 @@
# Flask
## Install packages
```
pip install Flask-Bootstrap flask-bs4 Flask-Login Flask-Mail Flask-Migrate Flask-Moment Flask-SQLAlchemy Flask-WTF WTForms mysql-connector-python email_validator
```
## 環境變數
- DB_URI
- DB_NAME
- DB_USER
- DB_PASSWORD
- FLASK_CONFIG = prodution
# MySQL
## Initial
1. Create `autostation` schema.
2. Create `station_state` table.
```sql
use autostation;
CREATE TABLE station_state(
id CHAR(255) NOT NULL,
ip CHAR(255) NOT NULL,
dhcp_ip CHAR(255) NOT NULL,
name CHAR(255) NOT NULL,
setupfilemd5 CHAR(255) NOT NULL,
setupfileversion CHAR(255) NOT NULL,
status CHAR(255) NOT NULL,
update_time DATETIME NOT NULL,
PRIMARY KEY ( id )
);
```
3. Create `station_report` table.
```
CREATE TABLE `autostation`.`station_report` (
`id` INT NOT NULL AUTO_INCREMENT,
`AutoStationName` VARCHAR(255) NOT NULL,
`DeviceName` VARCHAR(255) NOT NULL,
`Vid` INT NOT NULL,
`Pid` INT NOT NULL,
`FirmwareVersion` VARCHAR(255) NOT NULL,
`TestCategory` VARCHAR(255) NOT NULL,
`VerificationMode` VARCHAR(255) NOT NULL,
`TestID` VARCHAR(255) NOT NULL,
`TestResult` VARCHAR(255) NOT NULL,
`reportjson` LONGTEXT NULL,
`reporttxt` LONGTEXT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC));
```
# TrayIcon
- Configuration file: `C:\EasyAVEngine\RobotRunAutoStation\ServerList.json`
## Notify server
### LogPushDone
![[LogPushDone_server.png]]
![[LogPushDone_client01.png]]
![[LogPushDone_client02.png]]
```python
cc = CAutoStationService() # status="Running"
cc.LogPush() # push log to server, it runs in another process.
## or CAutostationService解構也會自己呼叫一次cc.LogPush()
```
## APIs
- Trigger a parser for test result folder
- ![[trigger a parser for test result folder.png]]

View File

@@ -1,116 +0,0 @@
# Setup enviroment
- Setup Gerrit first: [HA (Highly Available) Production Gerrit Infrastructure](https://spaces.logitech.com/display/VCE/HA+%28Highly+Available%29+Production+Gerrit+Infrastructure)
- [Kong Build Instructions (CI Team)](https://spaces.logitech.com/pages/viewpage.action?pageId=69534226)
# Build Code
## Fetch code
### From vc.gerrit.logitech.com
- `repo init -u ssh://ahuang11@vc.gerrit.logitech.com:29418/manifest -b pacman`
- Gerrit HTTP password: IMlLvOUW5NCZcvwq84YrdRs6eL89Dy3AOGokmPOREw
### From Lesley's server
- IP: 172.23.163.201 Port: 22
- username/passwd: lhsieh1/lhsieh1
- Path
- **/homeMTK/awin/mt-8195**: 更新 MTK code 到這版:`pacman-t-alps-release-r0.mp6.tc41sp-V1.19.1.xml`
- **/homeMTK/awin/mt-8195_sentinel-dev**: 更新 FIH code 到這版:`sentinel-dev_manifest-0.000.16.xml`
- 要抓 MTK apk Sample code 建議從 `/homeMTK/awin/mt-8195` 來抓,因為不確定 FIH 現在的 code 是對照到 MTK 哪個版本
- mt-8195: Pacman branch
- mt-8195_sentinel-dev: sentinel-dev branch
- mt-8195_sentinel-logi: sentinel-logi branch
## Sync Code
Sync code commands:
1. Sync the manifests
```
repo init -u https://sg1-mirror.gerrit.logitech.com/manifest.git -b pacman
```
`sg1-mirror.gerrit.logitech.com` can be changed to the following servers:
* us1-mirror.gerrit.logitech.com (US West)
* eu1-mirror.gerrit.logitech.com (EU East)
* sg1-mirror.gerrit.logitech.com (Singapore)
* in1-mirror.gerrit.logitech.com (India)
2. Sync the code with the specific version
1. Set the manifest by the repo init, for example:
```
repo init -m pacman-t-alps-release-r0.mp6.tc41sp-V1.19.1.xml
```
`pacman-t-alps-release-r0.mp6.tc41sp-V1.19.1.xml` can be replaced by the other .xml in `.repo/manifests`.
2. Sync up the codes
```
time repo sync -j16 -c --no-tags
```
Note: `-j16` is used for 8 cores
## Reference:
1. https://spaces.logitech.com/display/VCE/HA+%28Highly+Available%29+Production+Gerrit+Infrastructure
2. https://spaces.logitech.com/pages/viewpage.action?pageId=69534226
# ADB command
## Get version
```
adb shell getprop ro.build.fingerprint
or
adb shell getprop ro.vendor.mediatek.version.release
```
## Enable the UVC mode
```
adb root ;\
adb shell setprop vendor.debug.camera.custzone.lt 1 ;\
adb shell setprop vendor.debug.camera.lt.fence.enable 1 ;\
adb shell setprop vendor.debug.camera.lt.inline.wpe 1 ;\
adb shell setenforce 0 ;\
adb shell setprop sys.usb.config uvc
```
## Switch camera ID
```
adb shell setprop debug.webcam.cam.id 1
```
## Disable/Enable Sleep mode
- Prevent to sleep: `adb shell "echo test > /sys/power/wake_lock"`
- Allow to sleep: `adb shell "echo test > /sys/power/wake_unlock"`
# MTK demo code
- `vendor/mediatek/proprietary/packages/apps/DPTZDemo`
# Firmware
- [PACMAN Firmware build](https://drive.google.com/drive/folders/1wycKlDQv-CHEd_5BZFLwn9ibhTTphOAN)
- [FIH Firmware build](https://drive.google.com/drive/u/0/folders/1-Pgfttm-tFUdMetCK2WHZH4cXrryydz9)
- [sentinel-dev](https://logi-analytics.vc.logitech.com/s3?path=vc-sw-release%2FSentinel%2FSystemImage%2Fsentinel-dev%2F)
- Download `sentinel-test-keys/sentinel_userdebug_test-keys.7z`
- ![[Pasted image 20220812093244.png|400]]
## Update firmware
1. 要先備份calibration data請看 [backup calibration](https://logitech.slack.com/archives/C0230SKKFF1/p1656475361667309)
2. 用 `fastboot.bat` 來更新,請看 [**Flash using Fastboot**](https://docs.google.com/document/d/1XlJKXFqrPunre96C4sBUiWHmr5D0ogYje33_zfwJDCE/edit#heading=h.tdmkzb7xd29g)
3. 如果第2步不成功的話改用 [MTK flash tool 更新](https://docs.google.com/document/d/1XlJKXFqrPunre96C4sBUiWHmr5D0ogYje33_zfwJDCE/edit#heading=h.ovv79dcxs10b)
4. 斷電重開機
5. 恢復calibration data
# Docs
- [MTK參考文件](https://docs.google.com/document/d/12TbyjaSt2emCZu9NvD4cptN4pc0fkVxj1H3wOoN7X0U/edit#heading=h.gl7sjp6n8i2o)
- [Branch意義解釋文件](https://docs.google.com/presentation/d/1iHnoIcCqpXh2v7qpmepuUxciawdDsbhJN5H6zYYEMpg/edit#slide=id.g109895f3f92_0_224)
- [Sentinel EVT/DVT Sample Requirements](https://docs.google.com/spreadsheets/d/1uOLk1UU7T-ay-1TZfN1CLIhYqdwqbgGGZwfjRmMMcj0/edit#gid=0)
- [Firmware comparison](https://spaces.logitech.com/pages/viewpage.action?pageId=135939412)
- [[Sentinel] IQ control requirement](https://docs.google.com/spreadsheets/d/1vZhbGrb-Ei4kv3oXB983bNTgHInmg4tiQ8pHFhLrPPc/edit#gid=0)
- [Dev Guide Sentinel PB1](https://docs.google.com/document/d/1XlJKXFqrPunre96C4sBUiWHmr5D0ogYje33_zfwJDCE/edit#heading=h.wtpjcs5n651h)
- [Use DebugLoggerUI of MTK to collect logs](https://docs.google.com/presentation/d/19_h3Dsaeaw5NuRAkA1gX-ncybRATR7jTrVHmurl0HZ8/edit#slide=id.g126899c29e4_0_39)
- ADB command to pull logs: `adb pull /data/debuglogger/mobilelog`
- [LogiVideoFW/Webcam_MTK](https://github.com/LogiVideoFW/Webcam_MTK/tree/dev-roi-pan-controll)
- [XU Command Requirements](https://docs.google.com/spreadsheets/d/1d7T2txDXagfgM87PryrJqRMSTM6_yIn3k4o8uqwxtGA/edit#gid=0)
# Jira
- [[Sentinel][Tiny] HDR Requirements and System Design](https://jira.logitech.com/browse/VC-67445)
- [[Sentinel] APP for testing the image quality](https://jira.logitech.com/browse/VC-63616)
- [MTK ISP Pipeline: Data path implementation with single camera](https://jira.logitech.com/browse/VC-67422)
- [MTK ISP Pipeline: Data path implementation with dual camera](https://jira.logitech.com/browse/VC-67420)
- [[Sentinel][FIH] adb port connection hang](https://jira.logitech.com/browse/VC-64910)
- 解決device會hang的問題
- [[Sentinel] Change the Camera Sensor Orientation to 0](https://jira.logitech.com/browse/VC-77929)