×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

What drivers to use for a DIY mount

  • Posts: 12
  • Thank you received: 2
I'm very new to kstars and I'm starting to think I've bitten off more than I can chew.

I have a small SCT (A Celestron C5). Last year I built a poncet-style equatorial platform that I drove with a couple stepper motors and an Atmega168. It was much better than an unguided setup, but it got me thirsty for more control. I wanted autoguiding, autoalignment, autofocus, and I didn't want to spend a whole lot of money on it. So I started to put together hardware for it, with the goal of creating a "pull-to" mount (as opposed to go-to).

Here's what I ended up with:
* A Raspberry Pi 3 running Ubuntu Mate and kstars-bleeding
* The No-IR 8mp PiCamera module mated with a 50mm f/1.4 lens for the guider CCD
* Celestron C5 (bare telescope) paired with a Canon 70D. The Canon is recognized by gphoto2.
* I have a continuously-rotating servo attached to the Celestron's focus knob
* I added a second axis to my poncet platform (which only allows a couple degrees of declination axis freedom)
* I replaced the tripod that used to sit between the Celestron and the EQ platform with a truss support for a Dobsonian-style trunnion alt-az head.
* I'm making encoder wheels for the alt and az axis. These are IR sensors that are watched by another ATMega168 which will maintain the relative alt and az position counts.

Now I'm pawing through driver source code hoping to find existing drivers that I can make talk to all of this stuff. As a proof of concept, I was able to write some Python to create a PTY and have it accept commands as if an INDI driver were talking to a serial port, and I feel pretty comfortable doing that sort of thing for most of my frankenhardware - a lot more comfortable than trying to write custom drivers at this point. What I really need help with is identifying existing drivers that are a good match for my hardware's actual capabilities, so that I can write some python to impersonate the hardware the driver is used to talking to.

* Telescope: The dsc "Digital Setting Circles" driver seems ideal for my alt-az encoder sensors - but I want to be able to control both axes of my EQ platform as well. I can't implement go-to commands, but I want to be able to accept directional guiding pulses (like an ST4 would send). Is this doable?
* Focuser: I can make the Meade LX200 focusing protocol work, but I don't otherwise have an LX200-compatible mount. I don't see any other "simple"-type focusers in the INDI codebase except maybe the Arduino Focuser - but the INDI<->Arduino protocol is pretty opaque at first glance. What else is there?
* PiCamera CCD: INDI detects it using the V4L2 driver, and live video works if I set the capture type to Motion JPEG, but I can't capture still photos. Is this going to be a problem? The issue appears to be that the INDI driver complains that "Absolute exposure duration control is not possible on the device!" but the INDI control panel doesn't seem to have an "Auto" option for exposure time. The "raspistill" command line program will happily take pictures of specific exposure lengths, although there's a range that's accepted by the camera and going outside that range has unpredictable effects.
The following user(s) said Thank You: Jasem Mutlaq
6 years 8 months ago #18031

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

Hi and welcome to the INDI forums. I think photos for your "frandenhardware" would also be appreciated!

1. Yes, add INDI Guider Interface as another parent class and you should be good to go. Look how other drivers implemented guiding interface. GPUSB is one device that implements it directly, so it's good to look there. Basically you have to override a few function to do the actual guiding.
2. Start with a bare focuser driver. It seems your focuser is focus in + focus out, can you control speed? No need to complicate things to use LX200 protocol. How do you talk with the servo?
3. I thought this issue was fixed in this post here . I can ask Eric to take a look if he can. Logs are needed to diagnose the issue.
The following user(s) said Thank You: Robert Woodcock
6 years 8 months ago #18032

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

  • Posts: 12
  • Thank you received: 2
Thanks for the quick reply! I will post pictures, although not everything is done yet.

There's a lot for me to unpack with what you're saying about the guider interface. I'll reply later after it soaks in.

Focuser is focus in + focus out, and I can control speed (imprecisely) by specifying the servo pulse width, and I can turn servo power off and on too. Basically, 1000 is full inwards, 2000 is full outwards, (roughly) 1500 is no movement, and anything inbetween is a proportionally slower speed. The specifics of how I'm talking to the servo are that I send some bytes with that number via SPI to an Atmega168, which changes a PWM setting on it which changes the pulse width, and I also toggle a GPIO pin on the Raspberry Pi to (though a couple PNP transistors) enable power to the servo. That part isn't soldered up yet.

Oh, I also have an LMT01 temp sensor that I can get temperature readings from via the Atmega168 as well. That's less of a priority though.

Regarding PiCamera, I'm going to make sure I'm running a recent-enough version of code. I just upgraded from 1.4.1+r3215~201707191402~ubuntu16.04.1 (installed Thursday) to 1.4.1+r3219~201707211401~ubuntu16.04.1, but I don't know yet where to check for the PR #299 number that TallFurryMan referenced in his post.

INDI debug logs for it are as follows:

DEBUG 419.579845 sec : Driver bm2835 mmal (version 4.4.38)
DEBUG 419.580028 sec : card: mmal service 16.1
DEBUG 419.580069 sec : bus: platform:bcm2835-v4l2
DEBUG 419.580100 sec : Driver capabilities:
DEBUG 419.580130 sec : V4L2_CAP_VIDEO_CAPTURE
DEBUG 419.580159 sec : V4L2_CAP_VIDEO_OVERLAY
DEBUG 419.580190 sec : V4L2_CAP_READWRITE
DEBUG 419.580220 sec : V4L2_CAP_STREAMING
DEBUG 419.580259 sec : Enumerating available Inputs:
DEBUG 419.580297 sec : 0. Camera 0 (type Composite/S-Video) current
DEBUG 419.580347 sec : xioctl: ioctl 0xC02C563A/VIDIOC_CROPCAP received errno 25 (Inappropriate ioctl for device)
DEBUG 419.580412 sec : Enumerating available Capture Image formats:
DEBUG 419.580459 sec : 0. Format Planar YUV 4:2:0 (YU12) is supported
DEBUG 419.580494 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.580538 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.580576 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.580616 sec : Frame intervals:
DEBUG 419.580651 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.580691 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.580741 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.580792 sec : 1. Format YUYV 4:2:2 (YUYV) is supported
DEBUG 419.580825 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.580865 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.580904 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.580942 sec : Frame intervals:
DEBUG 419.581008 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.581050 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.581117 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.581172 sec : 2. Format 24-bit RGB 8-8-8 (RGB3) is supported
DEBUG 419.581208 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.581250 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.581288 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.581326 sec : Frame intervals:
DEBUG 419.581359 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.581399 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.581449 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.581499 sec : 3. Format JFIF JPEG (JPEG) is supported
DEBUG 419.581534 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.581573 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.581612 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.581652 sec : Frame intervals:
DEBUG 419.581685 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.581724 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.581772 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.581864 sec : 4. Format H.264 (H264) is UNSUPPORTED
DEBUG 419.581897 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.581937 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.581974 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.582010 sec : Frame intervals:
DEBUG 419.582042 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.582081 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.582128 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.582176 sec : 5. Format Motion-JPEG (MJPG) is supported
DEBUG 419.582211 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.582249 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.582286 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.582322 sec : Frame intervals:
DEBUG 419.582353 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.582394 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.582442 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.582491 sec : 6. Format YVYU 4:2:2 (YVYU) is supported
DEBUG 419.582526 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.582567 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.582604 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.582666 sec : Frame intervals:
DEBUG 419.582699 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.582740 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.582788 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.582837 sec : 7. Format VYUY 4:2:2 (VYUY) is supported
DEBUG 419.582868 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.582907 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.582944 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.582979 sec : Frame intervals:
DEBUG 419.583009 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.583047 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.583094 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.583140 sec : 8. Format UYVY 4:2:2 (UYVY) is supported
DEBUG 419.583172 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.583212 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.583249 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.583361 sec : Frame intervals:
DEBUG 419.583393 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.583431 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.583479 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.583525 sec : 9. Format Y/CbCr 4:2:0 (NV12) is supported
DEBUG 419.583556 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.583595 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.583631 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.583667 sec : Frame intervals:
DEBUG 419.583698 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.583735 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.583782 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.583828 sec : 10. Format 24-bit BGR 8-8-8 (BGR3) is UNSUPPORTED
DEBUG 419.583860 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.583927 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.583969 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.584005 sec : Frame intervals:
DEBUG 419.584035 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.584072 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.584118 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.584164 sec : 11. Format Planar YVU 4:2:0 (YV12) is supported
DEBUG 419.584196 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.584233 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.584271 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.584306 sec : Frame intervals:
DEBUG 419.584336 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.584373 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.584419 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.584465 sec : 12. Format Y/CrCb 4:2:0 (NV21) is supported
DEBUG 419.584496 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.584533 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.584574 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.584609 sec : Frame intervals:
DEBUG 419.584640 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.584677 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.584723 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.584769 sec : 13. Format 32-bit BGRA/X 8-8-8-8 (BGR4) is UNSUPPORTED
DEBUG 419.584802 sec : Enumerating available Frame sizes/rates for this format:
DEBUG 419.584839 sec : (Stepwise) min. width 32, max. width 3280 step width 2
DEBUG 419.584875 sec : (Stepwise) min. height 32, max. height 2464 step height 2
DEBUG 419.584910 sec : Frame intervals:
DEBUG 419.584941 sec : (Continuous) min. 1 / 90 s, max. 1 / 1 s
DEBUG 419.584978 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
DEBUG 419.585024 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.585076 sec : ioctl_set_format: current format 512x512 MJPG uncompressed (supported)
INFO 419.585146 sec : V4L2 CCD Device is online. Initializing properties.
DEBUG 419.585940 sec : Current video input is 0. Camera 0
DEBUG 419.586053 sec : Current capture format is 5. MJPG.
DEBUG 419.586099 sec : Current capture size is 512x512
DEBUG 419.586134 sec : xioctl: ioctl 0xC02C564A/VIDIOC_ENUM_FRAMESIZES received errno 22 (Invalid argument)
DEBUG 419.586196 sec : xioctl: ioctl 0xC034564B/VIDIOC_ENUM_FRAMEINTERVALS received errno 22 (Invalid argument)
INFO 419.586263 sec : Found intial Input "Camera 0", Format "Motion-JPEG", Size 512x512, Frame interval 1000/30000s
DEBUG 419.586327 sec : Enumerating V4L2 controls...
DEBUG 419.587004 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587106 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587153 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587769 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587816 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587862 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587906 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.587951 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588015 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588061 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588116 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588160 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588215 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588260 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.588331 sec : xioctl: ioctl 0xC0445624/VIDIOC_QUERYCTRL received errno 22 (Invalid argument)
DEBUG 419.588379 sec : Control Class User Controls
DEBUG 419.588420 sec : Adding Brightness -- min: 0 max: 100 step: 1 value: 1991321963
DEBUG 419.588472 sec : Adding Contrast -- min: -100 max: 100 step: 1 value: 1991321963
DEBUG 419.588521 sec : Adding Saturation -- min: -100 max: 100 step: 1 value: 1991321963
DEBUG 419.588567 sec : Adding Red Balance -- min: 1 max: 7999 step: 1 value: 1991321963
DEBUG 419.588615 sec : Adding Blue Balance -- min: 1 max: 7999 step: 1 value: 1991321963
DEBUG 419.588675 sec : Adding switch Horizontal Flip (Off)
DEBUG 419.588728 sec : Adding switch Vertical Flip (Off)
DEBUG 419.588776 sec : Adding menu item Disabled MENU002_OPT000 item 0 index 0
DEBUG 419.588822 sec : Adding menu item 50 Hz MENU002_OPT001 item 1 index 1
DEBUG 419.588866 sec : Adding menu item 60 Hz MENU002_OPT002 item 2 index 2
DEBUG 419.588910 sec : Adding menu item Auto MENU002_OPT003 item 3 index 3
DEBUG 419.588969 sec : Adding menu Power Line Frequency (item 1 set)
DEBUG 419.589011 sec : Adding Sharpness -- min: -100 max: 100 step: 1 value: 3
DEBUG 419.589064 sec : Adding menu item None MENU003_OPT000 item 0 index 0
DEBUG 419.589118 sec : Adding menu item Black & White MENU003_OPT001 item 1 index 1
DEBUG 419.589168 sec : Adding menu item Sepia MENU003_OPT002 item 2 index 2
DEBUG 419.589220 sec : Adding menu item Negative MENU003_OPT003 item 3 index 3
DEBUG 419.589267 sec : Adding menu item Emboss MENU003_OPT004 item 4 index 4
DEBUG 419.589311 sec : Adding menu item Sketch MENU003_OPT005 item 5 index 5
DEBUG 419.589355 sec : Adding menu item Sky Blue MENU003_OPT006 item 6 index 6
DEBUG 419.589401 sec : Adding menu item Grass Green MENU003_OPT007 item 7 index 7
DEBUG 419.589446 sec : Adding menu item Skin Whiten MENU003_OPT008 item 8 index 8
DEBUG 419.589492 sec : Adding menu item Vivid MENU003_OPT009 item 9 index 9
DEBUG 419.589535 sec : Adding menu item Aqua MENU003_OPT010 item 10 index 10
DEBUG 419.589584 sec : Adding menu item Art Freeze MENU003_OPT011 item 11 index 11
DEBUG 419.589631 sec : Adding menu item Silhouette MENU003_OPT012 item 12 index 12
DEBUG 419.589678 sec : Adding menu item Solarization MENU003_OPT013 item 13 index 13
DEBUG 419.589725 sec : Adding menu item Antique MENU003_OPT014 item 14 index 14
DEBUG 419.589769 sec : Adding menu item Set Cb/Cr MENU003_OPT015 item 15 index 15
DEBUG 419.589816 sec : Adding menu Color Effects (item 0 set)
DEBUG 419.589858 sec : Adding Rotate -- min: 0 max: 360 step: 90 value: 15
DEBUG 419.589906 sec : Adding Color Effects, CbCr -- min: 0 max: 65535 step: 1 value: 15
DEBUG 419.589947 sec : Control Class Codec Controls
DEBUG 419.589989 sec : Adding menu item Variable Bitrate MENU004_OPT000 item 0 index 0
DEBUG 419.590038 sec : Adding menu item Constant Bitrate MENU004_OPT001 item 1 index 1
DEBUG 419.590087 sec : Adding menu Video Bitrate Mode (item 0 set)
DEBUG 419.590139 sec : Adding Video Bitrate -- min: 25000 max: 25000000 step: 25000 value: 1
DEBUG 419.590202 sec : Adding switch Repeat Sequence Header (Off)
DEBUG 419.590246 sec : Adding H264 I-Frame Period -- min: 0 max: 2147483647 step: 1 value: 1
DEBUG 419.590295 sec : Adding menu item 1 MENU006_OPT000 item 0 index 0
DEBUG 419.590338 sec : Adding menu item 1b MENU006_OPT001 item 1 index 1
DEBUG 419.590381 sec : Adding menu item 1.1 MENU006_OPT002 item 2 index 2
DEBUG 419.590443 sec : Adding menu item 1.2 MENU006_OPT003 item 3 index 3
DEBUG 419.590488 sec : Adding menu item 1.3 MENU006_OPT004 item 4 index 4
DEBUG 419.590531 sec : Adding menu item 2 MENU006_OPT005 item 5 index 5
DEBUG 419.590572 sec : Adding menu item 2.1 MENU006_OPT006 item 6 index 6
DEBUG 419.590616 sec : Adding menu item 2.2 MENU006_OPT007 item 7 index 7
DEBUG 419.590658 sec : Adding menu item 3 MENU006_OPT008 item 8 index 8
DEBUG 419.590699 sec : Adding menu item 3.1 MENU006_OPT009 item 9 index 9
DEBUG 419.590743 sec : Adding menu item 3.2 MENU006_OPT010 item 10 index 10
DEBUG 419.590791 sec : Adding menu item 4 MENU006_OPT011 item 11 index 11
DEBUG 419.590835 sec : Adding menu H264 Level (item 11 set)
DEBUG 419.590879 sec : Adding menu item Baseline MENU007_OPT000 item 0 index 0
DEBUG 419.590925 sec : Adding menu item Constrained Baseline MENU007_OPT001 item 1 index 1
DEBUG 419.590985 sec : Adding menu item Main MENU007_OPT002 item 2 index 2
DEBUG 419.591029 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.591076 sec : Adding menu item High MENU007_OPT003 item 3 index 4
DEBUG 419.591120 sec : Adding menu H264 Profile (item 4 set)
DEBUG 419.591154 sec : Control Class Camera Controls
DEBUG 419.591201 sec : Adding menu item Auto Mode MENU008_OPT000 item 0 index 0
DEBUG 419.591256 sec : Adding menu item Manual Mode MENU008_OPT001 item 1 index 1
DEBUG 419.591302 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.591348 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.591394 sec : Adding menu Auto Exposure (item 0 set)
DEBUG 419.591441 sec : Adding Exposure Time, Absolute -- min: 1 max: 10000 step: 1 value: 1
DEBUG 419.591510 sec : Adding switch Exposure, Dynamic Framerate (Off)
DEBUG 419.591555 sec : Adding menu item 0xFFFFFFFFFFFFF060 MENU010_OPT000 item 0 index 0
DEBUG 419.591605 sec : Adding menu item 0xFFFFFFFFFFFFF1AD MENU010_OPT001 item 1 index 1
DEBUG 419.591653 sec : Adding menu item 0xFFFFFFFFFFFFF2FB MENU010_OPT002 item 2 index 2
DEBUG 419.591700 sec : Adding menu item 0xFFFFFFFFFFFFF448 MENU010_OPT003 item 3 index 3
DEBUG 419.591748 sec : Adding menu item 0xFFFFFFFFFFFFF595 MENU010_OPT004 item 4 index 4
DEBUG 419.591797 sec : Adding menu item 0xFFFFFFFFFFFFF6E3 MENU010_OPT005 item 5 index 5
DEBUG 419.591845 sec : Adding menu item 0xFFFFFFFFFFFFF830 MENU010_OPT006 item 6 index 6
DEBUG 419.591893 sec : Adding menu item 0xFFFFFFFFFFFFF97D MENU010_OPT007 item 7 index 7
DEBUG 419.591940 sec : Adding menu item 0xFFFFFFFFFFFFFACB MENU010_OPT008 item 8 index 8
DEBUG 419.591989 sec : Adding menu item 0xFFFFFFFFFFFFFC18 MENU010_OPT009 item 9 index 9
DEBUG 419.592037 sec : Adding menu item 0xFFFFFFFFFFFFFD65 MENU010_OPT010 item 10 index 10
DEBUG 419.592085 sec : Adding menu item 0xFFFFFFFFFFFFFEB3 MENU010_OPT011 item 11 index 11
DEBUG 419.592133 sec : Adding menu item 0x0000000000000000 MENU010_OPT012 item 12 index 12
DEBUG 419.592180 sec : Adding menu item 0x000000000000014D MENU010_OPT013 item 13 index 13
DEBUG 419.592227 sec : Adding menu item 0x000000000000029B MENU010_OPT014 item 14 index 14
DEBUG 419.592274 sec : Adding menu item 0x00000000000003E8 MENU010_OPT015 item 15 index 15
DEBUG 419.592321 sec : Adding menu item 0x0000000000000535 MENU010_OPT016 item 16 index 16
DEBUG 419.592368 sec : Adding menu item 0x0000000000000683 MENU010_OPT017 item 17 index 17
DEBUG 419.592415 sec : Adding menu item 0x00000000000007D0 MENU010_OPT018 item 18 index 18
DEBUG 419.592462 sec : Adding menu item 0x000000000000091D MENU010_OPT019 item 19 index 19
DEBUG 419.592513 sec : Adding menu item 0x0000000000000A6B MENU010_OPT020 item 20 index 20
DEBUG 419.592561 sec : Adding menu item 0x0000000000000BB8 MENU010_OPT021 item 21 index 21
DEBUG 419.592609 sec : Adding menu item 0x0000000000000D05 MENU010_OPT022 item 22 index 22
DEBUG 419.592656 sec : Adding menu item 0x0000000000000E53 MENU010_OPT023 item 23 index 23
DEBUG 419.592702 sec : Adding menu item 0x0000000000000FA0 MENU010_OPT024 item 24 index 24
DEBUG 419.592763 sec : Adding menu Auto Exposure, Bias (item 12 set)
DEBUG 419.592815 sec : Adding menu item Manual MENU011_OPT000 item 0 index 0
DEBUG 419.592863 sec : Adding menu item Auto MENU011_OPT001 item 1 index 1
DEBUG 419.592907 sec : Adding menu item Incandescent MENU011_OPT002 item 2 index 2
DEBUG 419.592953 sec : Adding menu item Fluorescent MENU011_OPT003 item 3 index 3
DEBUG 419.593000 sec : Adding menu item Fluorescent H MENU011_OPT004 item 4 index 4
DEBUG 419.593047 sec : Adding menu item Horizon MENU011_OPT005 item 5 index 5
DEBUG 419.593092 sec : Adding menu item Daylight MENU011_OPT006 item 6 index 6
DEBUG 419.593136 sec : Adding menu item Flash MENU011_OPT007 item 7 index 7
DEBUG 419.593180 sec : Adding menu item Cloudy MENU011_OPT008 item 8 index 8
DEBUG 419.593225 sec : Adding menu item Shade MENU011_OPT009 item 9 index 9
DEBUG 419.607851 sec : Adding menu White Balance, Auto & Preset (item 1 set)
DEBUG 419.608059 sec : Adding switch Image Stabilization (Off)
DEBUG 419.608122 sec : Adding menu item 0x0000000000000000 MENU013_OPT000 item 0 index 0
DEBUG 419.608175 sec : Adding menu item 0x00000000000186A0 MENU013_OPT001 item 1 index 1
DEBUG 419.608228 sec : Adding menu item 0x0000000000030D40 MENU013_OPT002 item 2 index 2
DEBUG 419.608277 sec : Adding menu item 0x0000000000061A80 MENU013_OPT003 item 3 index 3
DEBUG 419.608325 sec : Adding menu item 0x00000000000C3500 MENU013_OPT004 item 4 index 4
DEBUG 419.608377 sec : Adding menu ISO Sensitivity (item 0 set)
DEBUG 419.608441 sec : Adding menu item Manual MENU014_OPT000 item 0 index 0
DEBUG 419.608490 sec : Adding menu item Auto MENU014_OPT001 item 1 index 1
DEBUG 419.608540 sec : Adding menu ISO Sensitivity, Auto (item 1 set)
DEBUG 419.608599 sec : Adding menu item Average MENU015_OPT000 item 0 index 0
DEBUG 419.608646 sec : Adding menu item Center Weighted MENU015_OPT001 item 1 index 1
DEBUG 419.608698 sec : Adding menu item Spot MENU015_OPT002 item 2 index 2
DEBUG 419.608747 sec : Adding menu Exposure, Metering Mode (item 0 set)
DEBUG 419.608796 sec : Adding menu item None MENU016_OPT000 item 0 index 0
DEBUG 419.608853 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.608902 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.608948 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.608995 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609045 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609094 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609141 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609188 sec : Adding menu item Night MENU016_OPT001 item 1 index 8
DEBUG 419.609239 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609286 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609337 sec : Adding menu item Sports MENU016_OPT002 item 2 index 11
DEBUG 419.609382 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609429 sec : xioctl: ioctl 0xC02C5625/VIDIOC_QUERYMENU received errno 22 (Invalid argument)
DEBUG 419.609481 sec : Adding menu Scene Mode (item 0 set)
DEBUG 419.609527 sec : Control Class JPEG Compression Controls
DEBUG 419.609610 sec : Adding Compression Quality -- min: 1 max: 100 step: 1 value: 11
DEBUG 419.609659 sec : xioctl: ioctl 0xC0445624/VIDIOC_QUERYCTRL received errno 22 (Invalid argument)
DEBUG 419.609710 sec : Found 12 V4L2 adjustments
DEBUG 419.609950 sec : - Brightness
DEBUG 419.609987 sec : - Contrast
DEBUG 419.610020 sec : - Saturation
DEBUG 419.610049 sec : - Red Balance
DEBUG 419.610075 sec : - Blue Balance
DEBUG 419.610108 sec : - Sharpness
DEBUG 419.610134 sec : - Rotate
DEBUG 419.610159 sec : - Color Effects, CbCr
DEBUG 419.610188 sec : - Video Bitrate
DEBUG 419.610269 sec : - H264 I-Frame Period
DEBUG 419.610298 sec : - Exposure Time, Absolute
DEBUG 419.610330 sec : - Compression Quality
DEBUG 419.610360 sec : Found 17 V4L2 options
DEBUG 419.610430 sec : - Horizontal Flip
DEBUG 419.610486 sec : - Vertical Flip
DEBUG 419.610546 sec : - Power Line Frequency
DEBUG 419.610644 sec : - Color Effects
DEBUG 419.610702 sec : - Video Bitrate Mode
DEBUG 419.610759 sec : - Repeat Sequence Header
DEBUG 419.610842 sec : - H264 Level
DEBUG 419.610903 sec : - H264 Profile
DEBUG 419.610955 sec : - Auto Exposure (used for manual/auto exposure control)
DEBUG 419.611018 sec : - Exposure, Dynamic Framerate
DEBUG 419.611140 sec : - Auto Exposure, Bias
DEBUG 419.611223 sec : - White Balance, Auto &amp;amp; Preset
DEBUG 419.611285 sec : - Image Stabilization
DEBUG 419.611346 sec : - ISO Sensitivity
DEBUG 419.611401 sec : - ISO Sensitivity, Auto
DEBUG 419.611462 sec : - Exposure, Metering Mode
DEBUG 419.611522 sec : - Scene Mode
WARNING 419.611554 sec : Absolute exposure duration control is not possible on the device!
DEBUG 419.611748 sec : updateFrameSize: frame bytes 262144
ERROR 427.653384 sec : Failed exposing, the absolute exposure duration control is undefined
WARNING 427.653541 sec : Failed 1.000-second manual exposure, no adequate control is registered.
ERROR 427.680409 sec : Failed exposing, the absolute exposure duration control is undefined
WARNING 427.680539 sec : Failed 1.000-second manual exposure, no adequate control is registered.
ERROR 427.757141 sec : Failed exposing, the absolute exposure duration control is undefined
WARNING 427.757274 sec : Failed 1.000-second manual exposure, no adequate control is registered.
WARNING 427.783498 sec : No exposure or streaming in progress
6 years 8 months ago #18035

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

  • Posts: 12
  • Thank you received: 2

Scope and guide scope

Side view of the whole thing (minus the Pi and upper circuit board because I haven't finished those yet)

Focus servo. The two holes in the black piece above the knob are for an IR LED and phototransistor so I can later make the focus controller into a relative (rather than simple) type driver.
Last edit: 6 years 8 months ago by Robert Woodcock.
6 years 8 months ago #18037
Attachments:

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

  • Posts: 12
  • Thank you received: 2

First axis steppers

Second axis geartrain (this is basically like a barn door curved bolt mechanism)

Lower circuit board. This connects to the battery, has a PCA9635 (PWM controller IC) that the Pi sends I2C to, and has MOSFETs that drive the steppers.
It also connects power and I2C to the upper circuit board through a slip ring.

Front of EQ platform
Last edit: 6 years 8 months ago by Robert Woodcock.
6 years 8 months ago #18041
Attachments:

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

  • Posts: 12
  • Thank you received: 2
Found what you meant by PR299: github.com/indilib/indi/pull/299/files

I checked the code the Ubuntu packages were compiled from and they do *not* include this fix yet. So I get to rebuild them.
Last edit: 6 years 8 months ago by Robert Woodcock.
6 years 8 months ago #18043

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

  • Posts: 12
  • Thank you received: 2
Sorry - the Ubuntu packages I'm using *do* include the fix in PR299 (github.com/indilib/indi/pull/299/commits...eba3f1327d211f9ce3c8). So some additional fixes are apparently still needed. I can help test.
6 years 8 months ago #18044

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

I just pushed another fix which could help your issue. It was suggested by Eric to add another name for the absolute exposure control. Will reply to the rest later, leaving home now.
The following user(s) said Thank You: Robert Woodcock
6 years 8 months ago #18050

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

  • Posts: 1029
  • Thank you received: 301
... And your post is absolutely excellent :) nice setup!
For the focuser, on my side, I used a stepper motor instead of a servo to gain more flexibility on the rotation span. I then modified the moonlite driver and a github arduino firmware (discussed somewhere in this forum), in order to control temperature, humidity and dust cap features. Not shared yet, still under test ;)
-Eric
The following user(s) said Thank You: Robert Woodcock
6 years 8 months ago #18051

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

  • Posts: 12
  • Thank you received: 2
I can confirm that your commit fixes the autoexposure issue!

BTW, found a typo in an error message - here's a patch:
--- ./libindi/libs/webcam/v4l2_base.cpp.orig	2017-07-23 09:29:04.104651564 -0700
+++ ./libindi/libs/webcam/v4l2_base.cpp	2017-07-23 09:29:33.714520950 -0700
@@ -1739,7 +1739,7 @@
         if ((!cancrop) && (!softcrop))
         {
             cropset = false;
-            strncpy(errmsg, "No hardware and sofwtare cropping for this format", ERRMSGSIZ);
+            strncpy(errmsg, "No hardware or software cropping for this format", ERRMSGSIZ);
             return -1;
         }
     }
Last edit: 6 years 8 months ago by Robert Woodcock.
6 years 8 months ago #18065

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

  • Posts: 12
  • Thank you received: 2
Ok, so here's where I'm at - getting pretty psyched!

* I'll still need to pick a focuser driver to start from (by "bare" do you mean "start from scratch"?). Need something suitable for "simple' mode.
* Looking into the GPUSB driver led me to a modified version of it, the ArduST4 driver. I figured out that I need to edit the xml files in /usr/share/indi and /usr/share/kstars to make ArduST4 show up in the INDI control panel. I've written Python code to talk to ArduST4 via a PTY.
* I can apparently have Digital Setting Circles loaded as a Telescope and ArduST4 loaded as an Auxiliary device. I don't know if that does the right things or not yet.
* The No-IR PiCamera can capture video in Motion-JPEG format and stills in RGB 8-8-8 format.
* The Canon 70D works with the GPhoto CCD driver but not the Canon DSLR driver (which gives me I/O errors). FITS images take pretty long to download.
* I'm able to start a test guider calibration (it times out after a while because the mount isn't hooked up right now and it's taking pictures of the room wall)
6 years 8 months ago #18077

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

  • Posts: 12
  • Thank you received: 2
Ok, I think I have the focuser driver taken care of. I found a couple threads that were really helpful - particularly nMAC's reply here:

indilib.org/forum/focusers-filter-wheels...autofocus.html#17635

And this one that covers the Moonlite protocol:

indilib.org/forum/general/283-moonlite-focuser-protocol.html

Based on those I was able to make a Python shim that impersonates the Moonlite hardware, using the time the servo has been powered on to synthesize an amount of movement.

I can share all of this if anyone is interested, but you're best off waiting a couple weeks until I can fully test on my own hardware.
6 years 8 months ago #18151

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

Time to create page: 1.509 seconds