Skip to content

Commit

Permalink
samsung watch4 with samsung pay, sony wf-1000xm3
Browse files Browse the repository at this point in the history
  • Loading branch information
huataihuang committed Nov 24, 2023
1 parent c90620e commit 7d5edd6
Show file tree
Hide file tree
Showing 28 changed files with 346 additions and 7 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/devops/git/git_ignorecase.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 82 additions & 1 deletion source/android/device/sony_wf-1000xm3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,87 @@ SONY WF-1000XM3

我囊中羞涩,考虑在三,还是决定购买二手的入耳蓝牙降噪耳机,根据价格承受能力,选择了 ``SONY WF-1000XM3`` 。这款2019年的产品中规中矩,降噪和音色都相对均衡。(被吐糟的是外观和佩戴性)淘宝二手9新,大约300出头一点,如果要配套的耳塞,国产耳塞只需要10元,所以我就没有购买95新(包括外包装和全套耳塞)。

待续...到手后评测
WF-1000XM系列
===============

索尼TWS真无线蓝牙系列
------------------------

- 2017年,SONY索尼发布了旗下首款TWS真无线蓝牙耳机WF-1000X,索粉亲切的称之为“降噪豆”
- 2019年,索尼发布WF-1000XM3

WF-1000XM3外观
==================

- 整体

.. figure:: ../../_static/android/device/sony_wf-1000xm3_1.jpg

- 耳机单体重量为8.5克一只,采用高摩擦力橡胶表面的三点支撑人体工学设计来分布佩戴压力

.. figure:: ../../_static/android/device/sony_wf-1000xm3_2.jpg

.. figure:: ../../_static/android/device/sony_wf-1000xm3_3.jpg

WF-1000XM3技术规格
=====================

- QN1E的HD高清降噪芯片:

- 集成了数字降噪、24bit声音信号处理器、数字模拟转换器和放大器
- 内置的芯片主控支持智能化的场景自动检测降噪

.. note::

降噪耳机的降噪数据由Bass(低频)、Mid(中频)及Treble(高频)3部分组成 - 主要关注的是overall attenuation(综合降噪水平)也就是高、中、低三个数据的平均值:

- **低频降噪** :可以消除:公交车、飞机、高铁等等的引擎声音
- **中频降噪** :可以消除:人们说话的交谈声
- **高频降噪** :可以消除:高铁与轨道摩擦的刺耳声、大人和小孩的尖叫声等

- 在Headphones APP上可根据不同大小的环境噪声选择多达20种降噪方案,开启“自适应声音控制”功能后,耳机将自动检测使用者的活动状态,并切换至预设的环境声和降噪方案,实现智能降噪
- 音质:

- 采用6mm驱动单元,在消除噪音的同时可以获得较好的音质表现
- 支持SBC和AAC两种编解码器,DSEE HX数字声音增强引擎+6mm驱动单元 可以获得较好的音质(但不支持Hi-Res高解析音频)

- NFC: 支持近场通信(快速配对)
- USB Type-C充电
- 耳塞(我购买二手没有,淘宝有第三方很便宜): 2个材质和不同大小组合,加长型混合硅胶耳塞 (SS, S, M, L x 2),三重舒适耳塞 (S, M, Lx 2)

内部电池(拆机解析):

- 耳机充电盒14500锂电池(惠州市豪鹏科技有限公司,电芯喷码编号为C54837305571)
- 耳机采用的是VARTA瓦尔塔CP1254锂电池,3.7V 0.2Wh,产地德国

音频特性:

- DSEE HX: SONY数字声音增强引擎,可补偿高频信号和数字音频压缩丢失的尾音,带来接近Hi-Res的高品质音效

续航特性:

- 充电约10分钟可播放90分钟
- 耳机开启降噪功能可使用6小时,搭配充电盒可使用24小时
- 关闭降噪功能,电池续航达到8小时,加上充电盒的电量补充,续航则高达32小时。

优缺点(整理汇总)
===================

- 优点:

- 音质表现出色,能够很好的处理高中低三频
- 索尼开发的HD降噪处理器QN1e,降噪效果表现优异
- 智能降噪功能: 提供不同场景降噪模式

- 音乐模式(高铁,飞机): 屏蔽背景噪声聆听音乐
- 音乐+环境声模式(通勤路上): 享受音乐的同时,保留周围的环境声,出行更安全
- 音乐+人声模式(其他): 屏蔽背景噪音的同时,保留重要语音提醒,不错过重要信息

- 缺点:

- 耳外体积略大
- 不防水防汗(非运动型的旗舰音乐耳机)
- 不能通过耳机控制音量

参考
======
Expand All @@ -19,3 +99,4 @@ SONY WF-1000XM3
- `索尼WF1000XM3真无线耳机测评 <https://www.zhihu.com/tardis/zm/art/84589422?source_id=1003>`_
- `千元级降噪,续航音质更平衡索尼wf1000xm3评测 <https://zhongce.sina.com.cn/article/view/92289/>`_
- `索尼wf-1000xm3评测、音质水平、价格、购买建议 <https://www.zhihu.com/tardis/zm/art/258619910?source_id=1003>`_
- `全网首拆:SONY索尼WF-1000XM3真无线降噪耳机 <https://www.52audio.com/archives/24818.html>`_ 这篇文章非常详尽,提供了细节图片(包括拆解,可以了解内部电池)
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@

- 总之,非常折腾,需要耐性反复尝试。因为国情特殊导致一系列技术消耗,浪费了很多人的时间和精力,也损害了三星的产品声誉。

.. note::

`三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_ 这位 "孟夏十二" 网友提供了全套


其他方案
=============

Expand Down Expand Up @@ -93,3 +98,4 @@ Watch刷国际版本
- `给国行 Galaxy Watch 4 应用生态加了一片瓦(YaoYao 跳绳) <https://v2ex.com/t/821295>`_
- `抢先 Pixel Watch,三星 Galaxy Watch 4 手表获得基于 Wear OS 4 的 One UI 5 Watch 更新 <https://www.ithome.com/0/717/060.htm>`_ 新闻而已,不过可以知道Galaxy Watch 4会得到更新
- `Galaxy Watch4:难道只是星粉的自我狂欢? <https://sspai.com/post/70741>`_ 这篇评测可以了解Galaxy Watch 4的优缺点
- `三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_
1 change: 1 addition & 0 deletions source/android/hack/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Android Hack
pixel_4_volte.rst
cn_samsung_galaxy_watch_4_wich_android.rst
samsung_health_monitor.rst
samsung_pay_card.rst
pixel_6_volte.rst
change_build_prop.rst
android_busybox.rst
Expand Down
9 changes: 9 additions & 0 deletions source/android/hack/samsung_health_monitor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@

- 下载 `XDA论坛提供的SMH工具 <https://xdaforums.com/t/restrictions-removed-samsung-health-monitor-wearos-1-1-1-171-root-age-country-device-restriction-removed-22nd-november-2021.4322527/>`_ : 很不幸,这个页面在墙内无法打开,翻墙梯子被网站拒绝,所以我实际上采用了 `破解三星Galaxy Watch 4 ECG和血压监测限制并移除部分系统应用 <https://blog.irain.in/archives/Samsung-Galaxy-Watch-4-ECG-BP-restrictions-removed-and-optimization.html>`_ `共享在 Google Drive 的SHM工具包 <https://drive.google.com/drive/folders/138thPYPMbZIp2Us0Unx_h-SqJQEDxZ-0>`_

.. note::

`三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_ 这位 "孟夏十二" 网友提供了全套三星破解软件,非常赞。我因为已经搞完SHM,所以没有再验证,但看起来他提供的方法和软件是可行的。

.. note::

在Reddit上可以找到最新发布的 SHM MOD(也就是本文所说的SHM Moditified,破解版SHM),例如最新版本 `SHM MOD 1.2.1.009 - Released - 9th August 2023 <https://www.reddit.com/r/GalaxyWatch/comments/15mansg/shm_mod_121009_released_9th_august_2023/>`_ (我实践安装的 1.2.2.005 似乎版本更新?)

允许血压数据同步
-----------------

Expand Down Expand Up @@ -150,3 +158,4 @@
- `三星 Galaxy Watch 4/5 国行版手表现已支持 ECG 心电图、血压监测等功能 <https://www.ithome.com/0/711/308.htm>`_
- `三星官网: 三星健康监测器 <https://www.samsung.com.cn/apps/samsung-health-monitor/>`_
- `破解三星Galaxy Watch 4 ECG和血压监测限制并移除部分系统应用 <https://blog.irain.in/archives/Samsung-Galaxy-Watch-4-ECG-BP-restrictions-removed-and-optimization.html>`_
- `三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_
39 changes: 39 additions & 0 deletions source/android/hack/samsung_pay_card.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.. _samsung_pay_card:

=========================
三星智能卡
=========================

虽然Samsung Pay没有进入中国,但是三星已经开放了手表NFC功能(看来是2022年10月),通过 "三星智能卡" 能够:

- 支持 "京津冀互联互通卡、上海公共交通卡、岭南通" 三种交通联合卡
- 可以复制门禁卡

绑定一张交通卡和一张门禁卡,开启自动选卡功能后,手机直接靠近闸机,就能自动识别并切换到所刷卡片,无需手动选卡,非常方便

问题
=======

:ref:`samsung_health_monitor` ,在国内限制了只能使用国行三星手机配国行三星Watch,所以默认在 :ref:`pixel_4` 上使用 Google Play 找不到对应的 ``Samsung Wallet(Samsung Pay)`` 。

解决方法
===========

`三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_ 的 "孟夏十二" 网友汇总和提供了全套破解Watch软件,我使用其中的 **旧版** ``三星智能卡_5.0.18.20006.apk`` 成功完成:

- 原先手表端Wear OS升级自带了一个 "三星智能卡" 程序无法使用(应该是最新版本,强制匹配国行三星手机)
- 使用 **旧版** ``三星智能卡_5.0.18.20006.apk`` 在 :ref:`pixel_4` 的Android 13上安装后,启动会提示更新手表端 ``三星智能卡`` ,请按照提示让它更新
- 更新完成后再次打开手机端 ``三星智能卡`` 程序,就能够添加交通卡,并且能够使用支付宝充值(太方便了)
- 手表端只要设置 ``三星智能卡`` 作为NFC默认支付就可以了,这样在地铁和公交闸机刷三星Watch就可以畅通无阻

.. note::

``三星智能卡`` 还支持UID门禁卡复制,不过必须是不加密的门禁卡。我没有试验环境,放弃...

就等 :ref:`samsung_galaxy_watch_4_classic_lte` 可以使用 eSim 之后(目前国内移动运营商都暂停了Android手机eSim业务,允悲...),几乎可以抛弃手机,单凭手表走上海了...

参考
=====

- `三星终于开放手表的NFC功能了 <https://post.smzdm.com/p/a5ooznq3/>`_
- `三星watch6 flyme(非三星安卓)系统折腾记 <https://www.aprdec.top/index.php/archives/200>`_
1 change: 1 addition & 0 deletions source/apple/one/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Apple One 使用经验汇总
applecare.rst
apple_news_in_cn.rst
transfer_icloud_photos.rst
us_apple_id_paypal.rst

.. only:: subproject and html

Expand Down
12 changes: 12 additions & 0 deletions source/apple/one/us_apple_id_paypal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _us_apple_id_paypal:

=========================
美区Apple ID绑定Paypal
=========================

虽然我采用美亚Amazon购买礼品卡方式给自己的美区Apple ID充值,这样可以继续使用美区iCloud服务,实现家人共享。但是,美区的软件、音乐等服务是必须使用持续支付方式,也就是信用卡或者Paypal来完成支付的。这给我带来很大的困扰,如果不解决则无法实现家人共享已经购买的软件(特别是一些收费软件用美刀计算非常昂贵)

参考
======

- `教程:美区 Apple ID 绑定 Paypal,无需美国信用卡也能买买买 <https://blog.shuziyimin.org/171>`_ "数字移民"博客的文章,介绍如何在苹果美区购买,我准备结合 `如何拥有一个可长期在国内使用的国外手机号码 <https://razeen.me/posts/how-to-obtain-and-charge-giffgaff/>`_ 来实现
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '0.1'
release = '0.7'


# -- General configuration ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions source/devops/docs/sphinx_doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Sphinx文档
sphinx_footer.rst
sphinx_comments.rst
sphinx_disqus.rst
readthedocs_slow_builds.rst

.. only:: subproject and html

Expand Down
35 changes: 35 additions & 0 deletions source/devops/docs/sphinx_doc/readthedocs_slow_builds.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. _readthedocs_slow_builds:

===============================
Read the Docs编译缓慢的解决建议
===============================

``Build exited due to time out``
==================================

最近发现,在 Read the Docs 上build我的 Cloud Atlas总是失败:

.. literalinclude:: readthedocs_slow_builds/build_failed_time_out
:caption: Read the Docs 上build failed,Error是超时
:emphasize-lines: 17,18

可以看到失败退出的错误返回码 ``137`` ,也就是类似 :ref:`k8s_exit_code_137` ,表明运行程序 ``OOM`` 了

解决建议
===========

官方指南 `Read the Docs: How-to guides >> troubleshooting problems / Troubleshooting slow builds <https://docs.readthedocs.io/en/stable/guides/build-using-too-many-resources.html>`_ 有以下改善建议:

- 减少文档构建的格式: 特别是 ``htmlzip`` 会消耗大量的内存和时间
- 减少文档build的依赖: 可以创建一个仅用于文档的自定义需求文件,也就是 ``requirements.txt``
- 使用 ``mamba`` 代替 ``conda`` : 如果需要 ``conda`` 包来构建文档,则建议使用 ``mamba`` 作为 ``conda`` 的替代品,可以节约内存并且运行更快
- 静态记录 Python 模块 API:

安装大量 Python 依赖项只是为了使用 ``sphinx.ext.autodoc`` 记录 Python 模块 API,则可以尝试 ``sphinx-autoapi`` Sphinx 的扩展,它应该产生完全相同的输出,但静态运行。 这可以大大减少构建文档所需的内存和带宽。

- 请求更多资源: 如果还是遇到问题,则发送电子邮件给 ``support@readthedocs.org`` ,提供构建文档所需更多资源的充分理由 (类似 `Command killed due to excessive memory consumption #6627 <https://github.com/readthedocs/readthedocs.org/issues/6627>`_ 在 `GitHub: readthedocs / readthedocs.org <https://github.com/readthedocs/readthedocs.org>`_ 提交issue也能获得管理员帮助提高一定的资源限制)

参考
=====

- `Read the Docs: How-to guides >> troubleshooting problems / Troubleshooting slow builds <https://docs.readthedocs.io/en/stable/guides/build-using-too-many-resources.html>`_
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Error
Build exited due to time out
...
python -m pip install --exists-action=w --no-cache-dir -r source/requirements.txt
cat source/conf.py
python -m sphinx -T -E -b html -d _build/doctrees -D language=zh_CN . $READTHEDOCS_OUTPUT/html
Running Sphinx v7.2.6
...
writing output...
building [html]: targets for 2973 source files that are out of date
updating environment: [new config] 2973 added, 0 changed, 0 removed
[2Kreading sources... [ 0%] aboutme
[2Kreading sources... [ 0%] android/apps/android_12_background_limit_termux
...
[2Kwriting output... [ 63%] linux/alpine_linux/alpine_wireless_broadcom

Command killed due to timeout or excessive memory consumption
Command time: 1858s Return: 137
7 changes: 4 additions & 3 deletions source/devops/docs/sphinx_doc/sphinx_footer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Sphinx文档自定义页脚

.. literalinclude:: ../../../_templates/footer.html
:language: html
:emphasize-lines: 1,3,4,13
:emphasize-lines: 1,3,4,12

然后就可以在上述 ``footer.html`` 内容部分填写自己希望在每个页面展示的内容,内容会显示在页脚上
然后就可以在上述 ``footer.html`` 内容部分填写自己希望在每个页面展示的内容,内容会显示在页脚上

上文 ``footer.html`` 部分内容是 :ref:`sphinx_comments` ,用于我的网站和网友交流评论
- 注意:参考 `How can I add a custom footer to Sphinx documentation? <https://stackoverflow.com/questions/5585250/how-can-i-add-a-custom-footer-to-sphinx-documentation>`_ 提到的采用 ``RTD theme`` : ``{% extends '!footer.html' %} {% block extrafooter %} <!-- your html code here --> {% endblock %}``
- 上文 ``footer.html`` 部分内容是 :ref:`sphinx_comments` ,用于我的网站和网友交流评论

参考
=====
Expand Down
28 changes: 28 additions & 0 deletions source/devops/git/git_ignorecase.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@
git默认不区分文件名大小写
============================

我在排查 :ref:`readthedocs_slow_builds` 时,意外发现RTD编译的时候,提示了一个文件不存在的错误::

... WARNING: Include file '... mysql/installation/install_mariadb/yum_install_MariaDB' not found or reading it failed

但是我在自己的本地电脑上 ``make html`` 没有报错,并且我检查了该 ``install_mariadb/`` 目录:

.. literalinclude:: git_ignorecase/ls_output
:caption: 检查 ``install_mariadb/`` 目录下文件
:emphasize-lines: 9,10

可以看到一个微妙的差别,有两个类似文件名,区别仅是字母大小写区别

检查GitHub仓库,果然发现这两个同名但字母大小写差异的文件,只上传成功了一个:

.. figure:: ../../_static/devops/git/git_ignorecase.png

对于仅有大小写区别的同名文件,git只会上传一个

解决方法
==========

如果确实想要通过文件名大小写来区别文件,并且让 ``git`` 能够识别,则需要修订 ``git`` 配置,设置对文件名大小写敏感:

.. literalinclude:: git_ignorecase/git_ignorecase_false_config
:caption: 配置git能够区分文件名大小写

另一种方法就是严格规范文件名命名,禁止只有大小写区别的同名文件

参考
======

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git config core.ignorecase false
11 changes: 11 additions & 0 deletions source/devops/git/git_ignorecase/ls_output
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
total 40K
-rw-r--r-- 1 huatai dialout 179 Aug 7 00:18 create_db_user
-rw-r--r-- 1 huatai dialout 564 Sep 20 23:21 MariaDB_10.11.repo
-rw-r--r-- 1 huatai dialout 579 Sep 20 16:33 MariaDB.repo
-rw-r--r-- 1 huatai dialout 110 Aug 6 22:50 mariadb_startup
-rw-r--r-- 1 huatai dialout 35 Aug 6 22:45 mysql_secure_installation
-rw-r--r-- 1 huatai dialout 91 Sep 20 16:55 rpm_install_pcre2
-rw-r--r-- 1 huatai dialout 35 Aug 6 22:39 start_mariadb
-rw-r--r-- 1 huatai dialout 35 Aug 6 22:37 yum_install_mariadb
-rw-r--r-- 1 huatai dialout 61 Sep 20 16:37 yum_install_MariaDB
-rw-r--r-- 1 huatai dialout 319 Sep 20 16:37 yum_install_MariaDB_error

0 comments on commit 7d5edd6

Please sign in to comment.