Hi, I’m trying to get two B0264 stereo camera modules running on a Jetson Nano B01 (Jetpack 4.6.1, OpenCV 4.1.1). Both units behave exactly the same way and throw the same errors after I follow the Arducam instructions.
Thanks for the detailed report. The Reading register 0x103 failed message usually points at a problem talking to the sensor, but since both units are identical, let’s check the basics first.
A few things to try:
Confirm the green LED behind the camera module blinks when the board is first powered up.
Run v4l2-ctl --list-formats-ext and share the output.
Test the sensor directly outside of Python: v4l2-ctl --set-fmt-video=width=3200,height=1300,pixelformat=GREY --stream-mmap --stream-count=-1 -d /dev/video0
You can also try pulling the stream with VLC to rule out the OpenCV layer.
How are you currently capturing frames? Running the sample displayer script?
Once it hangs I have to kill the terminal and fully reboot the Jetson before v4l2-ctl --list-formats-ext can access the device again. The process seems to hang inside the cv2.VideoCapture call and never even reaches the ArducamUtils(args.device) call.
v4l2-ctl --list-formats-ext does show the expected GREY, Y10 and Y16 options, but it reports the size as Discrete 3200x1300 instead of the 1600x1300 in the product description. Is that expected?
That size is actually correct — 3200x1300 is the combined resolution of the two cameras. Each sensor outputs 1600x1300 and the two are stitched into one 3200-wide frame on video0 (1600 x 2 = 3200, x 1300 height).
Since v4l2-ctl hangs as well, this isn’t an OpenCV problem. Let’s try a couple more things:
Try the GStreamer path instead of OpenCV.
Set OPENCV_VIDEOIO_PRIORITY_V4L2=99999 and see if that changes anything.
Also, just so you know, the B0264 does not have an auto-exposure function, so exposure is manual only. Can you confirm the green LED is blinking on power-up and when arducam_display.py runs? And is the lens set to infinity focus? It ships set to infinity at the factory.
It just sits at ‘pre-rolling’ and never gets going. I also tried OPENCV_VIDEOIO_PRIORITY_V4L2=99999 and it didn’t help.
The green LED behind the module does blink on power-up.
One thing I noticed while following the driver install docs — nothing mentions running sudo apt-get install v4l-utils. The install_full.sh script doesn’t install v4l-utils either, and v4l2-ctl doesn’t exist on the Nano until I install v4l-utils manually. That’s the only place I deviated from the instructions. For reference I’m following the driver installation page and the Camarray stereo camera guide. How should I check whether there’s actually any data coming out on the CSI channels? I was told to use an oscilloscope but I’m still waiting on the connector/mod to arrive.
Good catch on v4l-utils — you’re right, it isn’t installed by install_full.sh. That’s fine as long as v4l2-ctl runs.
This is pointing at a known issue. There was a recent firmware update for the B0264 that introduced this behavior, and a fix is in progress. We hadn’t reproduced it at first and initially assumed hardware, but your symptoms line up with the firmware regression.
A few notes:
I’ve sent you the firmware update tool via private message — please check your messages and try the update.
The dependency environment should be simple: a clean SD card image + the driver installed with the installation script. Nothing extra needed.
Use L4T 32.7.1 first, since L4T 32.7.2 hasn’t been fully tested (32.7.2 is essentially a security update on top of 32.7.1).
Reminder that the B0264 has no auto-exposure, so manual exposure control is expected.
Once your connector arrives, a scope reading on the CSI lanes would help confirm whether data is actually coming out. Note that the green LED blinking is used to diagnose problems, but here it’s normal.
Thanks. The thing is, both units are identical — they power up, show both red and green LEDs, and I can read/write register values fine via v4l2-ctl --all. Across two units that behave exactly the same, I really doubt swapping hardware would change anything.
For the outdoor saturation — is the same lens offered with an NIR blocking filter or an ND filter? I’m only building a couple of prototypes, so a custom design isn’t cost-effective right now.
Is the 2.8mm lens the same one that shipped with the B0264, or a different one? And is there any reason those three wouldn’t work with the B0264 lens mounts/sensor?
On the LED behavior — that’s normal here, and the absence of CSI data output shouldn’t cause the whole system to freeze, so the freeze is the real bug.
On the filters: we can offer the same lens with an NIR blocking filter or an ND filter, but both need customization, so there’s a minimum quantity. Please confirm what quantity you’d want if you go that route. Also, when you say ‘NIR blocking filter’, do you mean blocking wavelengths above 850nm?
On lens compatibility: those are M12 mount lenses, so they’re physically compatible with the B0264’s lens mounts and the OV2311 sensors. The 2.8mm is a similar focal length to what ships with the B0264, but it isn’t the identical part.
All modules are tested before leaving the factory, but we don’t have a serial number to look up for your units. Let’s get the new firmware on first and see if the hang clears.
I need clear documentation on how to implement exposure control for the B0264 module, and I’d rather not use subprocess calls in my code. I can’t find a complete list of register numbers to control the parameters I care about.
Setting exp_time=1 for register 0x3501 via rw_sensor does change pixel intensity values (gain? exposure?), but the result isn’t consistent with setting exposure=1 through the v4l2-ctl approach. And after changing exposure with rw_sensor, reading it back with v4l2-ctl -C exposure doesn’t update.
What I’m using:
v4l2-ctl -d 0 -c exposure={exp_time}
vd = open('/dev/video0', 'w') then rw_sensor.write_sensor(vd, 0x3501, exp_time) (rw_sensor.py from the Arducam examples)
Can you share:
The register numbers to adjust with rw_sensor.py for gain, exposure time, and frame rate,
The min/max allowed values for each?
It would really help if a register list was added to README.md, or at least a pointer to where to find it.
I’m still fighting the exposure settings. I keep seeing very different behavior in two programs I wrote, both using subprocess calls to v4l2-ctl -d 0 -c exposure={exp_time}. Under the exact same scene and lighting, one program saturates the image at an exposure value of 14, while the other saturates at an exposure value of around 65 — and both use the exact same camera read commands. I’m trying to strip the code down to a minimal sample that reproduces this.
To debug it I really need to read the relevant registers directly. So: which registers map to exposure, gain, and frame rate, and what are the allowed ranges?
Which firmware version are you on right now? The firmware currently on your modules may be an old version. We’ve updated it since then, and the new firmware supports reading and writing of parameters — the old build doesn’t handle parameter read/write reliably, which would explain both the inconsistent saturation between your two programs and v4l2-ctl -C exposure not updating after a rw_sensor write to 0x3501.
I’ve sent you the updated firmware package via private message — please install it and re-run both programs.
For the register map: I’ll follow up with the register numbers and min/max values for gain, exposure time, and frame rate. Your suggestion to add them to README.md is a good one — I’ll pass that along.
If you’d prefer, we can also flash the firmware for you if you send the camera in. For a live session, I’ve sent the remote support details privately.
Even with the new firmware I still need the register info — I need to know which registers to read/write for gain, exposure time, and frame rate in order to work with the module. Where can I find that, and can you share it?
For reference, the driver version I’m currently running is 4.9.253 (the firmware update I was sent on May 19). If there’s a newer build than that, please send it over so I can install it.
Understood — the register map is needed regardless of firmware version, and we still owe you that list with the min/max ranges. Please post exactly which package you currently have installed so we can confirm it matches what we expect.
The hang on /dev/video0 (in cv2.VideoCapture, and in both the v4l2-ctl --set-fmt-video=… --stream-mmap test and the GStreamer ‘pre-rolling’ test) comes from the B0264 firmware regression, not your hardware. Both of your units behaving identically, powering up, showing red+green LEDs, and reading register values over v4l2-ctl --all all support that. The fix to try first is the firmware update tool, which I’ve sent you via private message.
The inconsistent saturation between your two programs (saturating at exposure 14 vs ~65) and v4l2-ctl -C exposure not updating after an rw_sensor write to 0x3501 are both consistent with the old firmware not exposing parameters reliably. The newer firmware supports parameter read/write. You’re on 4.9.253 — if a newer build is available, I’ll send it over.
Use L4T 32.7.1 rather than 32.7.2 for now, since 32.7.2 hasn’t been fully tested.
We still owe you the register list (gain, exposure time, frame rate, with min/max allowed values), and we’ll add it to README.md or point you to where it’s documented.
3200x1300 is expected — it’s two 1600x1300 sensors combined on video0. Focus ships at infinity; adjust manually for closer distances.
For outdoor saturation, the NIR-blocking and ND lens options both require a custom order — let me know your quantity and confirm whether ‘NIR blocking’ for you means blocking above 850nm.
Next step: install the new firmware from the private message, re-run both programs, and post the results — plus the minimal repro if the exposure mismatch still happens. If you can also get a scope reading on the CSI lanes once your connector arrives, that’ll help confirm data output.