# Restarting and opening the camera does not work properly

**URL:** <https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649>\
**Category:** Jetson AGX Orin\
**Tags:** camera\
**Created:** [March 28, 2025, 1:28pm UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649 "2025-03-28T13:28:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [March 28, 2025, 1:28pm UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/1 "2025-03-28T13:28:22Z")

</div>

Hi，nvidia colleges：  
We have some problems with the camera. The specific operations are as follows.  
Interface:8m(yuv)camera → cphy-\>orin. we have connected 8 cameras of the same type.  
A set of 4trio C-phy connected to two cameras

```auto
Power up, wait kernel up
Step1：Execute in sequence
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video0
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video1
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video2
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video4
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video5
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video6
Working fine

```

```auto
step2: 
close all v4l2-ctl

```

```auto
step3:
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video0
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video1
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video2
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video4
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video5
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video6

```

I found that video6 could not be opened. The specific phenomenon is as follows.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/d/5/6/d56337781dd927fead7580fd0ce73a7dd6ee62ab.jpeg)

Rec log is：

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/5/f/3/5f329977000ee13279229234443d4a564f9d8823.jpeg)

This problem can be reproduced every time you repeat this operation

Why does this problem occur? I look forward to your reply.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [March 31, 2025, 7:55am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/3 "2025-03-31T07:55:13Z")

</div>

How about below single camera?

```auto
Step1：Execute in sequence

v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video6

step2: 
close v4l2-ctl

step3:
v4l2-ctl --set-fmt-video=width=3840,height=2162,pixelformat=YUYV --set-ctrl bypass_mode=0 --stream-mmap -d /dev/video6

```

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [March 31, 2025, 8:08am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/4 "2025-03-31T08:08:58Z")

</div>

Hi,shaneCCC:  
single camera is ok.

my camera Architecture is:

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/b/e/a/bea0522ab32737e32a7a366cb50b2023312b95b5.jpeg)

We want to know why reopening camera doesn’t work

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [March 31, 2025, 8:13am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/5 "2025-03-31T08:13:57Z")

</div>

How about run 0-2 only? If working well check 0&1 then 1&2

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [March 31, 2025, 8:16am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/6 "2025-03-31T08:16:20Z")

</div>

it’s okay.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [March 31, 2025, 9:00am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/7 "2025-03-31T09:00:12Z")

</div>

Well, then could you confirm 4-6

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [March 31, 2025, 10:43am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/9 "2025-03-31T10:43:23Z")

</div>

if start 4-\>5-\>6, close, 4-\>5-\>6 is okay.  
if start 0-\>1-\>2-\>4-\>5-\>6,close,4-\>5-\>6. video is not work.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [April 1, 2025, 4:13am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/10 "2025-04-01T04:13:24Z")

</div>

That’s interesting.  
How about

start 0-\>1-\>2-\>4-\>5-\>6,close,0-\>1-\>2.

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 1, 2025, 6:07am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/11 "2025-04-01T06:07:12Z")

</div>

start 0-\>1-\>2-\>4-\>5-\>6.  
After close0-\>1-\>2, need I reserve 4.5.6 ？

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [April 1, 2025, 7:10am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/12 "2025-04-01T07:10:24Z")

</div>

What do you mean not working here?  
camera 0/1/2 stop working after closed 4/5/6?

> [@MushroomHunter](#):
>
> if start 4-\>5-\>6, close, 4-\>5-\>6 is okay.  
> if start 0-\>1-\>2-\>4-\>5-\>6,close,4-\>5-\>6. video is not work.

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 1, 2025, 12:43pm UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/13 "2025-04-01T12:43:49Z")

</div>

> [@ShaneCCC](#):
>
> top working after

not the means.  
step 1  
start 0-\>1-\>2-\>4-\>5-\>6,  
step 2  
close all camera  
setp3  
4-\>5-\>6.  
the video6 is not work

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 1, 2025, 1:08pm UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/14 "2025-04-01T13:08:53Z")

</div>

camera 4,5,6 is okay, after close camera 012.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [April 2, 2025, 2:48am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/15 "2025-04-02T02:48:21Z")

</div>

If always failed for this case?

> [@MushroomHunter](#):
>
> not the means.  
> step 1  
> start 0-\>1-\>2-\>4-\>5-\>6,  
> step 2  
> close all camera  
> setp3  
> 4-\>5-\>6.  
> the video6 is not work

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 2, 2025, 7:04am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/16 "2025-04-02T07:04:21Z")

</div>

Yes it is. Could you provide more information about it?

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 3, 2025, 8:34am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/17 "2025-04-03T08:34:04Z")

</div>

Do you have a way to reset the CSI controller?

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [April 5, 2025, 8:35am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/18 "2025-04-05T08:35:01Z")

</div>

I don’t think it could be caused by NVCSI/VI. NVCSI/VI will power on/off for each open/close cycle.  
Maybe check if able to power off the 96712 the reopen to try.

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 7, 2025, 2:21am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/19 "2025-04-07T02:21:59Z")

</div>

> [@ShaneCCC](#):
>
> er off the 96712 the reopen to try.

At present, I have checked the cause of max96712. The specific method is as follows:

1. Open all cameras in order (0-\>7). All cameras work normally.
2. Through the i2c command, close the max96712-gmsl channel. All cameras report a 2500ms timeout log.
3. Through the i2c command, open the (0-\>7) max96712-gmsl channel in sequence. It is found that the camera works normally.  
In summary, it should not be a problem with max96712.

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 7, 2025, 6:50am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/20 "2025-04-07T06:50:45Z")

</div>

Is there any way to reset rtcpu?

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [April 7, 2025, 7:21am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/21 "2025-04-07T07:21:27Z")

</div>

No, there’s no way to reset the RTCPU.  
Is it possible have max96712 output test pattern to verify?

---

<div class="post-metadata">

**Author:** ![MushroomHunter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mushroomhunter/32/330425_2.png) [@MushroomHunter](https://forums.developer.nvidia.com/u/MushroomHunter)\
**Post date:** [April 7, 2025, 9:15am UTC](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649/23 "2025-04-07T09:15:11Z")

</div>

What should I test about mipi？  
Currently, I can’t avoid this problem by modifying the mipi rate. At the same time, we also checked the eye diagram with a high-speed oscilloscope, and the quality of the eye diagram was very good.

If there is no way to reset the rtcpu, then if there is an abnormality in the rtcpu, then can we only reset the entire jetson orin module?

What I am more confused about now is why there is a problem with opening in order. If I change the order of opening, there is no such problem.

[Next page](https://forums.developer.nvidia.com/t/restarting-and-opening-the-camera-does-not-work-properly/328649.md?page=2)
