树莓派搭建一个网关就可以实现以上功能。
网页通信使用 http 协议
还可以使用这类工具控制树莓派:
https://shumeipai.nxez.com/2024/11/12/introduction-of-the-raspberry-pi-server.html
不如用 docker 稳
@OGoose 远程桌面不显示可能和 X11 或 wayland 有关,要自己查一下
@OGoose 使用终端中的 Ctrl+C 停止。
如果只是拍照,可以运行 libcamera-jpeg --output test.jpg
用这个方法进入命令行界面
https://shumeipai.nxez.com/2017/02/17/how-to-reset-a-forgotten-raspberry-pi-password.html
然后根据 systemctl 里面的错误信息排查问题
你是 SSH 登录终端运行的吧
如果是,可以使用这个命令:
libcamera-hello --qt-preview
试试这个,Docker 也算虚拟环境
https://shumeipai.nxez.com/2024/11/12/introduction-of-the-raspberry-pi-server.html
配置 rc.local 就可以
https://shumeipai.nxez.com/2023/05/13/run-a-program-on-your-raspberry-pi-at-startup.html
@Tony 微信推出了 Linux 版本,但是测试启动不成功。你有没有试过。
根据经验,通常情况下会报依赖关系的错误,我们可以使用以下的命令修复安装。
sudo apt-get install -f
看起来没有烧掉,接显示器看看
这是系统底层的一个功能。如果都无法登录进去,可以试试以下方法登录,然后进去排查这个问题。
https://shumeipai.nxez.com/2017/02/17/how-to-reset-a-forgotten-raspberry-pi-password.html
在这里:
https://github.com/raspberrypi/linux/blob/6137fb168c08bd8c41c8421bf26f09ed29479f08/arch/arm/boot/dts/bcm2712-rpi-5-b.dts#L447
pwr_button {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pwr_button_pins>;
status = "okay";
pwr_key: pwr {
label = "pwr_button";
// linux,code = <205>; // KEY_SUSPEND
linux,code = <116>; // KEY_POWER
gpios = <&gio 20 GPIO_ACTIVE_LOW>;
debounce-interval = <50>; // ms
};
};
Raspberry Pi 5 Video Capture: Camera Module V3 Video Stream Latencies. Comparing UDP, TCP, RTSP, and WebRTC
https://www.instructables.com/Comparing-Raspberry-Pi-5-Camera-Module-V3-Video-St/
这个错误信息通常是系统中的Mesa库版本不兼容或缺失,可以使用包管理器检查和安装最新版本。
sudo apt-get update
sudo apt-get install mesa-utils
IDE 2.0 有遇到过同样的问题。可能是驱动原因。
查了一下很多都是让退回到旧版本来使用的。
线程要先开启,而后再操作,估计是按键信号槽和线程在系统内部竞争了,导致线程无效。
https://whycan.com/p_34166.html
RealVNC 官网下载最新版本安装包安装