On 9/22/21 4:41 PM, camp . wrote:
> I'm having trouble with PiCam v2. You may recall this is the same
> PiCam I went around the horn on prior to changing fps from 30 to 5. I've
> moved the two Pi's (one for the base, the other for the camera) from one
> robot to another. Suddenly nothing worked. Long story short the IP
> addresses changed (DHCP). The two Pi's switched addresses and a third
> unknown IoT device (presumably) took an address to which one of the Pi's
> had been prior. Regardless, long story short I've got the IP and
> hostname situation straightened out but there is a problem with the
> camera that is software related.
Why oh why do people not DHCP-reserve specific IPs for the nodes which
are expected to act a servers?! Either that or take the time to
configure zeroconf/avahi and use the hostnames.
> Specifically when I try and load the
> driver I get:
>
> [INFO] [1632345874.890685590] [v4l2_camera]: Requesting format: 0x0
> [ERROR] [1632345874.890832348] [v4l2_camera]: Failed requesting pixel
> format: Device or resource busy (16)
> [INFO] [1632345874.891418270] [v4l2_camera]: Requesting format: 640x480
> [ERROR] [1632345874.891503047] [v4l2_camera]: Failed requesting pixel
> format: Device or resource busy (16)
> [INFO] [1632345874.898178596] [v4l2_camera]: Starting camera
> [ERROR] [1632345874.898343131] [v4l2_camera]: Failed mapping device memory
are there more lines in dmesg related to the camera? Those don't look
like the first messages:-(
Can you include the complete output of the dmesg command?
>
> ubuntu@smartyhead:~$ v4l2-ctl -d /dev/video0 -p 5
> Cannot open device /dev/video0, exiting.
>
> I run below and able to set fps.
>
> ubuntu@smartyhead:~$ sudo modprobe v4l2loopback
What are you expecting to do with the v4l2loopback? This will create a
[virtual] camera?! I use that in two ways, to loop an Android/wifi
camera into the system and to loop the output of OBS as input into Zoom
and friends. Not sure, what you're trying to do.
> ubuntu@smartyhead:~$ v4l2-ctl -d /dev/video0 -p 5
> Frame rate set to 5.000 fps
But that looks like there is no other camera found, That's why the
loopback will claim the video0. So, something is wrong with your camera?!
Did you move/loose the cable or something?!
>
> Note: this actually creates the "video0" volume.
It's *not* a volume. It's a device.
>
> I then run "ros2 run v4l2_camera v4l2_camera_node" I get the above
> error: "Device or resource busy" or "Failed mapping device memory."
>
> On another note when I try and mount /dev/video0 it says, "mount: /boot:
> /dev/video0 is not a block device."
As expected. Why would you want to mount a video device?
-- Marco
>
> Suggestions?
>
> Thanks,
> Camp
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hbrobotics+...@googlegroups.com
> <mailto:
hbrobotics+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/hbrobotics/2088409116.864844.1632354060721%40mail.yahoo.com
> <
https://groups.google.com/d/msgid/hbrobotics/2088409116.864844.1632354060721%40mail.yahoo.com?utm_medium=email&utm_source=footer>.