<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/831" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2020-11-27T19:55:52+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/831</id>

		<entry>
		<author><name><![CDATA[kjjohnsen]]></name></author>
		<updated>2020-11-27T19:55:52+00:00</updated>

		<published>2020-11-27T19:55:52+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2372#p2372</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2372#p2372"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2372#p2372"><![CDATA[
See: <a href="https://forum.stereopi.com/viewtopic.php?f=6&amp;t=1051&amp;p=2371#p2371" class="postlink">https://forum.stereopi.com/viewtopic.ph ... 2371#p2371</a>  I figured out a solution that worked for similar cameras.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=648">kjjohnsen</a> — Fri Nov 27, 2020 7:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-07-11T01:26:56+00:00</updated>

		<published>2020-07-11T01:26:56+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2161#p2161</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2161#p2161"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2161#p2161"><![CDATA[
I unfortunately never found a solution to controlling my two arducam cameras because of the i2c issue, however, I think my issue was product specific because if it wasn't it would defeat the purpose of i2c (being able to control multiple devices through the use of addresses). I ended up purchasing the arducam dual camera board which is a setback because I cannot position the cameras farther apart (to get a more accurate distance measurment), but I don't have to deal with the headache of syncing frames!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Sat Jul 11, 2020 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mohand]]></name></author>
		<updated>2020-07-02T05:51:58+00:00</updated>

		<published>2020-07-02T05:51:58+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2122#p2122</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2122#p2122"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2122#p2122"><![CDATA[
I have similar problem but I am using the v1 pi camera (ov5647). i am trying to send i2c command to enable frex mode. when i try that , i can control only a single sensor. So i was wondering if there is a solution for that sensor. Another question, if they are  sharing the same i2c bus, then how can the GPU connect to both of them without conflicts (Can you please refer to any PI document in this regard).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=490">mohand</a> — Thu Jul 02, 2020 5:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-13T07:59:57+00:00</updated>

		<published>2020-01-13T07:59:57+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1563#p1563</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1563#p1563"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1563#p1563"><![CDATA[
Hmmm, I was unable to find sources of libarducam_mipicamera.so I just found a notice <a href="https://github.com/ArduCAM/MIPI_Camera/blob/master/RPI/lib/LICENCE" class="postlink">here</a>, that they are based on <a href="https://github.com/6by9/raspiraw/" class="postlink">https://github.com/6by9/raspiraw/</a> (native RPi camera application). But I don't think it is a good idea for you to write your own driver from scratch.<br><br>According to mentioned comment in <a href="https://github.com/ArduCAM/MIPI_Camera/blob/fda2d22b61a13ff4679e9cf058f0024554f71f03/RPI/preview-dualcam.c" class="postlink">preview_dualcam.c</a>, you're unable to access first camera's I2C <em class="text-italics">after</em> initializing another <em class="text-italics">camera_instance</em>. <br>I did not received any answer yet on <a href="https://www.arducam.com/forums/topic/is-it-possible-to-change-default-i2c-address-for-the-ov9281/" class="postlink">Arducam forum</a>, so I think we need to find a solution by our own.<br><br>How do you think, if this approach can work for you?<br>- initialize first instance of camera_instance<br>- write all settings you need by I2C<br>- initialize another instance<br>- write another settings for the second camera<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Jan 13, 2020 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-12T05:02:17+00:00</updated>

		<published>2020-01-12T05:02:17+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1559#p1559</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1559#p1559"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1559#p1559"><![CDATA[
I’m not exactly sure where the current drivers are but I must have them in my folder to get any camera to work at all right? If so, I think the driver code is inside<a href="https://github.com/ArduCAM/MIPI_Camera/blob/master/RPI/lib/libarducam_mipicamera.so" class="postlink">https://github.com/ArduCAM/MIPI_Camera/ ... icamera.so</a> which is a binary compiled c code file. I can’t look into this file to see changes so I don’t know how I could modify it. I might be unclear as to what a driver is? I assume it is a bunch of i2c writing to get the camera set up and capture from it?<br> As for option 2, I tried modifying it by initializing the both cameras with arducam‘s camera struct where I set one camera to i2c bus 0 and the respective pins and the other to i2c bus 1. The results were that I could still get two images but couldn’t read or write from whichever instance I initialized first. AKA, initializing the second camera “re-wrote” the first initialization.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Sun Jan 12, 2020 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-10T10:59:12+00:00</updated>

		<published>2020-01-10T10:59:12+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1553#p1553</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1553#p1553"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1553#p1553"><![CDATA[
Delgoodie, I think you're one step away from the result. You need to look inside Arducam driver.<br>I have no your Arducam cameras, so can not make this part by myself. But I can suggest, that there are two ways:<br>1. Modify Arducam driver and functions to work with the second camera, and use it together with unmodified driver for the first camera. You need to check, that both drivers are not in conflict. This is similar to running two raspivid instances for original Pi cams, like this:<div class="codebox"><p>Code: </p><pre><code>raspivid -cs 0 -w 1280 -h 720 -o 1.h264 &amp;raspivid -cs 1 -w 1280 -h 720 -o 2.h264</code></pre></div> <br>where each of them works with it's own camera.<br><br>2. Modify "preview_dualcam" code for work with the two cameras, but also with the two I2Cs. This approach is similar to using one raspivid function with '-3d' option, when one binary works with the 2 cams at once.<br><br>I don't know which way is more easy. As for me, I'd try 1st approach, as it looks like a bit easy. But, IMHO, with the 2nd approach you will have a better frames sync (if you didn't soldered both cameras oscillators for syncing).<br><br>In any way, it is better to download all sources of Arducam drivers, compile them from scratch, and check if it works (to use it as a reference). And after that try to modify them according to your needs.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Fri Jan 10, 2020 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-09T23:51:04+00:00</updated>

		<published>2020-01-09T23:51:04+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1549#p1549</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1549#p1549"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1549#p1549"><![CDATA[
Wow I can’t believe I’ve never seen that, I basically used the arducam function and re wrote the capture2opencv cpp to initiate two cameras with a camera structure containing the valid StereoPi pins(but for i2c I did bus 1 and chose the gpio pins for sda and scl) then I used the arducam capture function to store raw jpg images in a buffer, and accessed the images from the buffer.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Thu Jan 09, 2020 11:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-09T08:28:33+00:00</updated>

		<published>2020-01-09T08:28:33+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1538#p1538</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1538#p1538"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1538#p1538"><![CDATA[
Delgoodie, so you can get camera working on the 1st CSI and I2C0 and second CSI with the I2C1. It's great, and it meant all your hardware (including I2C1 soldering) is Ok.<br>Now let's dig into software part.<br>Could you please tell me, how you're capturing images from each camera separately, and from both cameras together? I mean software you are using.<br><br>As for capturing images from 2 cams - are you using <a href="https://github.com/ArduCAM/MIPI_Camera/blob/fda2d22b61a13ff4679e9cf058f0024554f71f03/RPI/preview-dualcam.c" class="postlink">preview_dualcam.c</a> from Arducam Github repo, or another way? <br><br>By the way, I've found this comment in this code:<br>    // Important: Using init_camera will invalidate the read/write I2C of another camera_instance, <br>    // ie the control command is invalid and the resolution cannot be switched(autoexposure is also unusable).<br>    // This problem will be fixed in the future.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Jan 09, 2020 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-08T20:33:48+00:00</updated>

		<published>2020-01-08T20:33:48+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1532#p1532</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1532#p1532"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1532#p1532"><![CDATA[
Yes, when I remove the camera in the default csi port and only use the camera connected to i2c bus 1 through gpio wires, everything works perfectly, I get images and can write &amp; registers.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Wed Jan 08, 2020 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-08T14:44:04+00:00</updated>

		<published>2020-01-08T14:44:04+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1528#p1528</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1528#p1528"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1528#p1528"><![CDATA[
Delgoodie, could you please test the second camera only with the second I2C you get from GPIO?<br>Ideally, it is better to check if the second I2S works itself, without your Arducam camera.<br><br>Only after that tests add a second camera.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Jan 08, 2020 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-05T15:46:06+00:00</updated>

		<published>2020-01-05T15:46:06+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1524#p1524</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1524#p1524"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1524#p1524"><![CDATA[
I have dt_param=i2c_arm=on and dt_param=i2c_vc=on in my config which means both busses are enabled. In my /boot folder I have all the default dtb files that came with raspbian and in my overlays I don’t see a StereoPi dtbo. I never downloaded a stereopi os, just regular raspbian. When I run with one camera everything works, when I run with two, i get an image from each camera but I can only write i2c commands to one and only one is shown on the i2c bus.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Sun Jan 05, 2020 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-05T12:06:05+00:00</updated>

		<published>2020-01-05T12:06:05+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1521#p1521</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1521#p1521"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1521#p1521"><![CDATA[
Delgoodie, you're trying to work with the two cameras, not supported by kernel drivers. It means you need to load your drivers to enable them both (and you're in the process now). So you don't need any settings, related to original kernel cameras support. For example, our "dt-blob.bin" is not needed here, so rename or remove it. After that you'll have a default RPi settings, and Arducam drivers can do their job easier. <br>Next step is to enable both I2C via config.txt Have you enabled second I2C? You can look at similar discussion <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=118167" class="postlink">here on RPi forum</a>.<br>After enabling second I2C try to test it with the single camera. And after success try to run two cams at a time.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Sun Jan 05, 2020 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-04T20:57:33+00:00</updated>

		<published>2020-01-04T20:57:33+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1519#p1519</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1519#p1519"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1519#p1519"><![CDATA[
Update:<br>I have soldered new i2c lines to one of the cameras and kept all the other pins untouched. Now, when I enable the cameras using the arducam function I still can't write to the registers of the cameras and when I use i2cdetect 0 and i2cdetect 1 it only shows the addresses on bus 1, even though the csi port of the camera is on bus 0. Furthermore, when I remove the soldered-in camera and just use the csi port and one camera, i2cdetect gives me all the addresses on bus 0. It seems that when I enable the first camera I have access to it on the bus but as soon as I enable a second camera the prior bus goes blank? I am not sure where the problem is? They are on separate busses<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Sat Jan 04, 2020 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delgoodie]]></name></author>
		<updated>2020-01-02T20:16:13+00:00</updated>

		<published>2020-01-02T20:16:13+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1517#p1517</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1517#p1517"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1517#p1517"><![CDATA[
Yes, I understand that the pi is a hobbyist tool and not too much more. I think the breakout boards might be popular considering that most people who use the StereoPi will be using the same camera and odds are it is a rather inexpensive camera with no way to change the i2c address. On the flip side, I am not sure how many people even venture away from the standard pi cam v2 that comes with stereoPi  because of all the code and hardware needed to get cameras like the arducam working with stereoPi. Also, like you said, hobbyist usually don't need much more than an 8MP rolling shutter camera for simple opencv coding and disparity maps.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=318">delgoodie</a> — Thu Jan 02, 2020 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-01-02T16:03:07+00:00</updated>

		<published>2020-01-02T16:03:07+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=1516#p1516</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=1516#p1516"/>
		<title type="html"><![CDATA[Re: CSI interface and i2c bus]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=1516#p1516"><![CDATA[
Delgoodie, I also noticed that CSI breakout boards are rare. Looks like that they are not so popular, as most or RPi users are not engineers. But if they are engineers, they can do this breakout PCB by themselves. We even has an idea to release our own breakout boards set, but I'm not sure it will be popular.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Jan 02, 2020 4:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
