You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派2B使用PiCamera模块报错未收到传感器数据问题求助

问题背景

先后测试两款摄像头均无法正常工作,当前使用旧版Raspbian(内核版本5.4.72)搭建Adeept RaspClaws机器人,首次发帖且英文水平有限,如有表述偏差敬请谅解。

运行环境
  • 硬件:树莓派2B、非原装PiCamera摄像头、机器人套件模块(初步排除该模块故障可能)
  • 系统:Raspbian 5.4.72
  • Python版本:2.7.16
摄像头故障排查现状
  1. 摄像头工作指示灯可正常点亮
  2. 系统Legacy camera(传统摄像头接口)选项已启用
  3. 执行vcgencmd get_camera命令返回结果为 supported=1 detected=1,系统可正常识别摄像头
  4. 执行raspistill -o test.jpg命令尝试拍照时返回报错:Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board.;已排查所有排线连接(包含摄像头板载Sunny接口)仍未解决问题,更换其他摄像头测试仍出现相同报错
  5. 已尝试执行sudo bash -c "echo core_freq=250" /boot/config.txt命令锁定核心频率提升树莓派运行稳定性,该操作未生效。
最终目标与关联报错

最终目标为成功运行该机器人项目的webServer.py程序,项目代码仓库:Adeept_RaspClaws
执行sudo python3 webServer.py命令时程序返回如下报错:

File "/home/pi/adeept_raspclaws/server/camera_opencv.py", line 421, in frames if img.all == None: AttributeError: 'NoneType' object has no attribute 'all'
查看源码确认该行代码负责读取摄像头实时画面,因此判断该程序报错由摄像头无法正常采集数据导致。

内容的提问来源于stack exchange,提问作者ReBot

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.29 22:39:26