Photonicat TTL,Watchdog,Recovery说明: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→具体喂狗协议) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 23: | Line 23: | ||
* c文件在:https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master/src | * c文件在:https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master/src | ||
如果不运行openwrt,可以自行编译此软件: | 如果不运行openwrt,可以自行编译此软件: (管理喂狗、开关机) | ||
https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master | https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master | ||
Line 31: | Line 31: | ||
meson compile | meson compile | ||
wget -O /etc/pcat-manager.conf https://raw.githubusercontent.com/photonicat/rockchip_rk3568_openwrt/master/package/lean/pcat-manager/files/pcat-manager.conf | |||
</pre> | </pre> | ||
Line 45: | Line 46: | ||
===具体喂狗协议=== | ===具体喂狗协议=== | ||
[[MCU 控制协议]] | [[MCU 控制协议]] | ||
例如只是喂狗:可以在Linux发送 /dev/ttyS4: | |||
<pre> | |||
A5 01 81 00 00 00 03 00 01 01 0E D8 5A | |||
</pre> | |||
通过串口通讯,115200波特率,校验位无,数据位8位,停止位1位 | |||
==recovery button位置== | ==recovery button位置== | ||
USB烧录需要使用recovery button,位置如下:<br> | USB烧录需要使用recovery button,位置如下:<br> | ||
[[image:pcba_watchdog.png|800px]] | [[image:pcba_watchdog.png|800px]] |
Latest revision as of 12:23, 18 August 2023
ttl debug位置
为了方便调试,PCBA中预留了TTL的UART,console debug,速率: 1500000
此处为3个pin,需要自行焊接一个调试口,可以使用 picocom / PuTTY
链接,参数: 1500000bps, 8N1, No Flow Control.
mcu watchdog disable位置
默认有watchdog,在没有喂狗的情况下会重启。短路即可关闭狗。位置如下:
通过 软件 喂狗、或关闭喂狗
也可以通过软件来喂狗或关闭喂狗。
user level 关闭喂狗
参考 https://github.com/photonicat/rockchip_rk3568_openwrt/blob/master/package/lean/pcat-manager/Makefile
- conf文件在本仓库 https://github.com/photonicat/rockchip_rk3568_openwrt/blob/master/package/lean/pcat-manager/files/pcat-manager.conf
- c文件在:https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master/src
如果不运行openwrt,可以自行编译此软件: (管理喂狗、开关机) https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master
meson build cd build meson compile wget -O /etc/pcat-manager.conf https://raw.githubusercontent.com/photonicat/rockchip_rk3568_openwrt/master/package/lean/pcat-manager/files/pcat-manager.conf
然后运行
pcat-manager --distro -D
uboot 关闭喂狗
apply 这个patch,关闭watchdog 参考 https://github.com/photonicat/rockchip_rk3568_linux_mainline/blob/master/patches/u-boot/314-rockchip-rk3568-Add-support-for-photonicat.patch
具体喂狗协议
例如只是喂狗:可以在Linux发送 /dev/ttyS4:
A5 01 81 00 00 00 03 00 01 01 0E D8 5A
通过串口通讯,115200波特率,校验位无,数据位8位,停止位1位