Pi 相机:mmal:No 从传感器接收到的数据

Pi camera: mmal:No data received from sensor

这个问题之前有人问过,但是解决方案没有解决我的问题。

当我将我的 Pi 相机连接到我的 Raspberry Pi 并使用命令时:raspistill -o image.jpg.

这给出了一个错误:

mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board.

所有连接都很好。我尝试在两个不同的 Raspberry Pi 上使用两个 Pi 相机,但它仍然给出相同的错误。当我使用 raspistill 命令时,相机的红灯会亮起,我还通过 sudo raspi-config.

在 Pi 上启用了相机

请帮忙

我也遇到过这个问题。我不知道静电是否会伤害设备,或者它是否发生在运输过程中。我已经看到我购买的 5MP 版本的几种行为。 首先是把它放在错误的端口。根据您的型号,您可能只是把它放在了错误的端口。有些人声称放入另一个端口可能会烧毁相机。我无法确认或否认会发生这种情况。

我同样会 运行 这个命令并得到如下消息: mmal: mmal_vc_component_enable: failed to enable component: ENOSPC mmal: camera component couldn't be enabled mmal: main: Failed to create camera component mmal: Failed to run camera app. Please check for firmware updates 或者您收到的消息。

我试图 运行:

  1. apt-get update && sudo apt-get dost-upgrade
  2. sudo rpi-update

我什至调整了模块和黑名单以查看发生了什么。

pi@raspberrypi:~ $ raspistill -v -o image.jpg
raspistill Camera App v1.3.8

Width 2592, Height 1944, quality 85, filename image.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to video render.
Connecting camera stills port to encoder input port
Opening output file image.jpg
Enabling encoder output port
Starting capture 0
mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board

sudo raspi-config 将让您确保已启用相机,或使用菜单、首选项查看其是否已启用。除此之外,红灯似乎没有任何意义,可能需要更换。 我刚订购了一个 8MP 的,看看它是否有效。

我也检查了这个命令:

pi@raspberrypi:~ $ vcgencmd get_camera
supported=1 detected=1

更新

我安装了 8MP 摄像头,它工作正常。我开始认为我的 5MP 相机出了点问题。 关于我陷入的行为的注释很少。 - 如果你做 sudo mod probe bcm2835-v412 它似乎将相机安装到 /dev/video0。此时你不能再使用 raspistill/vid 而不得到我得到的 ENOSPC 错误。 我已经添加了它来处理动作,所以我可以从网络流式传输。

我现在已经在几个项目中跳来跳去,并没有在实施中找到太多乐趣,但至少 raspistill 命令起作用了,我确实得到了运动,但是我不想要 mjpeg 并且仍然需要确定 h264 是否是一个选项。