Welcome, Guest
Username: Password: Remember me
20 Aug 2017
INDI development team is happy to announce the release of INDI Library v1.5.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Raspberry Pi Camera Module - Indi

Raspberry Pi Camera Module - Indi 5 days 12 hours ago #20114

  • Xophe92
  • Xophe92's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

I am trying to use indi with my camera module v2 on a raspberry pi 3/ubuntu mate 16.04.
I did a lot of tries before asking and listed below what I did :
  • I made sure my raspberry pi camera module v2 was ok with the "raspistill".
  • I followed the install instructions presented here : www.indilib.org/support/tutorials/169-ek...-complete-guide.html
  • Indi seems totally ok and I launch my server with the indi_v4l2_ccd driver.
  • with phd2 I can connect to the server, it is able to retrieve resolution, pixel size, ... and I can connect to the camera (in the tray bay I can see camera connected").
  • My only problem is when I set a 0.2 sec exposure, it seems to start but never ends.


I would take any clue to progress on my investigations.

Thank you in advance for your help !

Please Log in or Create an account to join the conversation.

Re:Raspberry Pi Camera Module - Indi 5 days 1 hour ago #20127

Hello,
Which camera is it exactly?
Would you care to share a few commands you tried with their parameters and their result? Raspistill for instance?
Then if you open the INDI panel in Ekos, you can enable additional debug output, run an exposure from there, and show us the logs from the bottom text box. Try to keep the scenario (and describe it!) as simple as possible (connect, configure, expose).

-Eric
The following user(s) said Thank You: knro

Please Log in or Create an account to join the conversation.

Re:Raspberry Pi Camera Module - Indi 4 days 17 hours ago #20135

Or just enable CCD Debug from Ekos (see my signature for HOWTO)
The following user(s) said Thank You: Xophe92

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

Re:Raspberry Pi Camera Module - Indi 4 days 13 hours ago #20142

  • Xophe92
  • Xophe92's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0

File Attachment:

File Name: 2017-10-12_2017-10-13.zip
File Size: 13 KB


Hi all, hi Knro and Eric,

Please find enclosed my logs as proposed by knro.

I briefly looked into the log, it seems that the frames are actualy taken but dropped because not of the expected size : " V4L2 CCD : [DEBUG] read_frame: frame is 38544-byte long, expected 786432 - frame should be dropped "
This is a great news as it means that there is actually a frame ;)

Any help would be appreciated !


PS : the command that I did to test raspi still was : "raspistill -t 2000 -o image.jpg", my camera is the camera module v2 for raspberry pi (bought here )

Best regards,

Edit : The file is now really attached to the message !

Christophe
Attachments:

Please Log in or Create an account to join the conversation.

Last Edit: by Xophe92. Reason: The file is now really attached to the message !

Re:Raspberry Pi Camera Module - Indi 4 days 3 hours ago #20150

Ah, interesting. There is a safeguard in the V4L2 driver client (that is, the INDI driver) which drops frames that are not matching the expected size. In your use case, indi_v4l2_ccd expects the frame to be 1024x768 8bpp, but the kernel driver provides a much shorter data block. So the frame is there, yes, but either it is corrupted or the settings were not properly forwarded to the kernel.
I'm writing this from Tapatalk, which is buggier and buggier as updates come, and I can't check links nor logs right now. I'll return to this post shortly to have a look.

-Eric

Please Log in or Create an account to join the conversation.

Re:Raspberry Pi Camera Module - Indi 3 days 2 hours ago #20170

  • Xophe92
  • Xophe92's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
hi again,
you are right the desired size has not been sent correctly :

Driver indi_v4l2_ccd: VIDIOC_CROPCAP: Inappropriate ioctl for device

what should I do ?

regards

Christophe

Please Log in or Create an account to join the conversation.

Raspberry Pi Camera Module - Indi 1 day 22 hours ago #20216

Hello,

Sorry for the delay, there were two clear nights here in French Brittany, and I couldn't let that pass :)

So the log is showing:
V4L2 CCD : "[DEBUG] 0.200-second exposure translates to 2000 1/10,000th-second device ticks. "
V4L2 CCD : "[DEBUG] read_frame: using MMAP to recover frame buffer "
V4L2 CCD : "[DEBUG] read_frame: buffer #0 dequeued from fd:3 "
V4L2 CCD : "[DEBUG] is_compressed: format JPEG has compressed flag 0 "
V4L2 CCD : "[DEBUG] read_frame: frame is 38559-byte long, expected 786432 - frame should be dropped "
The problematic line is "JPEG has compressed flag 0". Kernel V4L2 driver reports the frame is JPEG, and is uncompressed, which is nonsense.
Thus the INDI driver client considers the frame should be raw byte data and obviously larger than this.
Let me have a look at why this is so. There is a function in the driver which checks the frame type to override the compression flag.
-Eric

Please Log in or Create an account to join the conversation.

Raspberry Pi Camera Module - Indi 1 day 17 hours ago #20230

Hello,

So I have no real clue about why the kernel would mark the JPEG format as uncompressed.

I don't have a V4L2 at hand unfortunately. Do you have another pixel format available in the INDI panel for this camera? Try to use GREY, it is on the advertised list in the logs.

If there is a need, I can add JPEG in the override list and force the INDI driver to consider it compressed, but that seems weird and I don't know if that will solve your issue: you will probably hit another problem later on.

-Eric

Please Log in or Create an account to join the conversation.

Raspberry Pi Camera Module - Indi 1 day 13 hours ago #20235

  • Xophe92
  • Xophe92's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

I have plenty of updates to give you !

Actually, It seems that my EKOS is not able to send the configuration of the image it wants from the cam when I click on the preview button: each time I get an "ioctl invalid" .

To avoid that, I tweaked the parameters from INDI configuration tap BEFORE coming into kstars/ekos :
*Capture Option / Capture Format : YUYV 4:2:2
*Capture Size : 1024x768
Then I went to Ekos and it worked ! :)

I had still had some things to improve:

* Indi tells me 1sec is the maximum I can do and I did not succeed photos with more than 1024x768 while "raspistill -w 2592 -h 1944 -ISO 800 -ss 6000000 -br 80 -co 100 -o out.jpeg" makes 6 sec hi-res photos...

* [solved, I do not know how ?] : INDI configuration window was not reachable from EKOS : each time I wanted to change or see something, I closed KStar, I "indiserver indi_V4l2_ccd" and I use PDH2 which has a button to reach Indi config. -> after hours tweaking, it appeared that the INDI parameter window is supposed to appear just after "start indi" ! It never did that to me until recently :woohoo: . It is now much easier to change settings and consult indi log

I therefore have now advanced in my journey with several questions :
  • Longer exposures, I think it is already posted here
  • Higher Resolution : I can live without it for now, let say it leads to binning and therefore better SNR... let's say...
  • Why the Indi configuration window did not show before ?
  • Why is there an invalid ioctl, I propose to keep only this question for this post

Many thanks for your help, I would be more than happy to provide additional logs or anything else to help.

PS : last thought, as "raspistill" is a command line tool would you think a indi driver feasible to wrap all its functionalities ?
Is it what is done here ?

Regards,

Christophe

Please Log in or Create an account to join the conversation.

Last Edit: by Xophe92.

Re:Raspberry Pi Camera Module - Indi 21 hours 14 minutes ago #20242

Hello,

I think raspistill is using another method than V4L2, but I'm not certain.

About ioctls, I'll check your log again, or you may want to provide a new one with your findings? In any case, errors 22 are often "end of enumeration" errors, and expected (although arguable as a method).

-Eric

-Eric

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.318 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica