Hi, hoping someone here can help. I’m running three Arducam cameras on a Jetson Nano B01: the 2MP*2 Stereo, an IMX298 (B0323) and an 18MP AR1820HS (B2016).
Stereo setup: I followed the CamArray ArduCAM 2MP*2 Stereo camera MIPI guide. After modifying v4l2 so the module would actually import, I get to step 5 (“Display images in real time”) and the python script just hangs there. The other two examples in that same doc display fine, so I don’t think it’s the whole pipeline.
IMX298: it shows up great in MIPI_Camera’s arducam_displayer, but when I try to view the same feed in VLC I get nothing at all - no error, just a blank window. I can’t figure out why one works and the other doesn’t.
AR1820HS: I wired it up and it never shows up in the device list. I installed the driver following the general manual. Is this a kernel/driver problem, or something on my side?
Two smaller asks:
Is there a detailed manual for actually capturing photos / recording video? Which script or command grabs the frames, and how do you configure it? The camera demonstration page only seems to have installation steps, nothing about capture.
Could you share the 3D case file for the 2MP*2 Stereo camera?
Also, when I follow the driver installation manual, arducam_displayer.py throws a SyntaxError:
File "arducam_displayer.py", line 47
print("fps: {}".format(frame_count),end='\r')
^
SyntaxError: invalid syntax
For the v4l2 part I modified it to list(range(1, 9)) + [0x80] and list(range(0, 4)) + [2] to get the camera importable in the first place. I haven’t tried much troubleshooting beyond that - honestly I don’t want to start changing your code and break something. I’m not super familiar with these modules yet, so if there’s a way to walk through this together that’d help a lot. (I tried attaching screenshots but they won’t go through with the size limit here.)
Hey, no worries - let’s go through your questions one by one. We re-tested these cameras today so I can give you concrete answers.
Capturing photos / recording video: on Jetson Nano you use the mipi jetvariety library, not the libcamera app (that’s the Raspberry Pi side). Have a look at the camera demonstration page here: Redirecting... - it covers the capture/record commands with that library.
IMX298 in VLC: we actually hit this during our own testing too, so you’re not doing anything wrong. The 298 outputs RAW10. We are not sure VLC supports that format - it may simply not. Worth checking which video formats VLC supports on your build, because if RAW10 isn’t among them that fully explains the blank window.
AR1820HS not showing up: based on our test results, both cameras use the same driver. If you’ve connected them correctly and one camera is detected, that proves the driver itself is fine. So I’d focus on the wiring/connection of the camera that isn’t detected rather than the kernel.
The 2MP*2 Stereo 3D print file - I’ll get that over to you.
For the AR1820HS, please double-check the cabling on that one module. If it still doesn’t enumerate after re-checking, let us know and we’ll dig deeper.
Thanks, that clears a couple things up. I re-seated the ribbon and the connector on the AR1820HS and it still doesn’t appear in the device list, so I don’t think it’s just a loose cable on my end. Same deal before and after the re-seat - no new device node.
On the IMX298/VLC side, if RAW10 isn’t a format VLC can show, then that explains it and I’ll stop chasing it. The 298 itself is fine in arducam_displayer.
The Stereo 2MP*2 hang is the one that concerns me most, since the other two examples in the doc run fine. I still haven’t changed any of your code - I’d rather you point me at what to do than me edit it blind. Also still waiting on that stereo case 3D file when you get a chance.
Good, thanks for re-checking the AR1820HS. If it still doesn’t enumerate after re-seating, hold off on more hardware changes for now and we’ll look at it more closely.
On the remaining issues, honestly it might be fastest to just do a live session so we can look at your Jetson together instead of going back and forth. I’ve sent you the remote support details in a private message - check your messages and we can set it up from there. For that, we’d need you to install/register the remote tool mentioned in that message so we can access the device.
Sounds good, let’s do the live session. I’ve replied to your private message with the session details and a time slot that works for me - sending it privately rather than posting here.
Just so it’s all in one place for the session, the setup is still: Jetson Nano B01, IMX298 (B0323) + 2MP*2 Stereo + AR1820HS (B2016).
Open items to look at:
Stereo 2MP*2 - hangs at the real-time display step (step 5) after this v4l2 change: list(range(1, 9)) + [0x80] and list(range(0, 4)) + [2].
IMX298 - OK in arducam_displayer, blank in VLC (possibly the RAW10 format thing you mentioned).
AR1820HS - connected, re-seated, still not in the device list.
arducam_displayer.py SyntaxError, which is still reproducible:
File "arducam_displayer.py", line 47
print("fps: {}".format(frame_count),end='\r')
^
SyntaxError: invalid syntax
One thing I’ll repeat - I don’t want to change your code myself, so please drive that part during the session.
Got your private message with the session info - we’ll take it from there and I’ll confirm the appointment for the slot you gave.
Quick recap of where things stand so we’re aligned before we meet:
Capturing/recording: use the mipi jetvariety library on Jetson Nano per the camera demonstration page (not libcamera, which is the Pi path).
IMX298 + VLC: the 298 outputs RAW10, and we reproduced the blank display on our side too - so this is most likely a format-support limitation of VLC rather than a fault with the module. Check which formats your VLC build supports. Streaming works fine in arducam_displayer.
AR1820HS not detected: both modules share the same driver, and since one camera is detected that means the driver is loading correctly - this points at the connection of the undetected module. Since re-seating didn’t help, we’ll check it live.
Stereo 2MP*2 hang at step 5 after the v4l2 change (list(range(1, 9)) + [0x80] and list(range(0, 4)) + [2]) - still unresolved, this is the main thing to debug in the session.
arducam_displayer.py SyntaxError at line 47 - we’ll look at it together during the remote session; please don’t modify the code yourself.
3D case drawing link has been provided above.
We’ll continue in the live session for the stereo hang, the AR1820HS detection and the SyntaxError. Thanks for your patience.