×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI Driver for SVBONY cameras

  • Posts: 48
  • Thank you received: 0
without knowing which version of indi-sv305 is installed in your system, it will not be easy to say. What we can do is do a reinstall of sv305 and take it from there.

can you check what you see when you run this command

ls /usr/include/libindi/*

also do this:

cd <>/indi-sv305/build/
rm * -f
cmake ../ -DINDI_INCLUDE_DIR=/usr/include/libindi -DCMAKE_INSTALL_PREFIX=/usr
Last edit: 3 years 8 months ago by Rashed.
3 years 8 months ago #58534
The topic has been locked.
  • Posts: 67
  • Thank you received: 0
I have whatever version is on GitHub right now.

stellarmate@stellarmate:/usr/include $ ls /usr/include/libindi/*
ls: cannot access '/usr/include/libindi/*': No such file or directory

stellarmate@stellarmate:/usr/include $ cd <>/indi-sv305/build/
bash: /indi-sv305/build/: No such file or directory

I have a build folder in /home/stellarmate/thx8411_sv305/indi-sv305

It contains a CMakeFiles folder and a CMakeCache.txt file both created this morning.

Are these the items you want me to delete?
3 years 8 months ago #58536
The topic has been locked.
The driver has been accepted to INDI 3rd party repository and the primary Ubuntu PPA + StellarMate are now updated and contain the driver. No need to compile directly unless you really need to.
3 years 8 months ago #58541
The topic has been locked.
  • Posts: 67
  • Thank you received: 0
Just got back from a conference.
Should I keep trying to build a driver or can I download the finished one from somewhere.
Thanks.
3 years 8 months ago #58858
The topic has been locked.
I found an issue just now in the PPA build, so it should be available in the PPA in the next couple of hours hopefully.
3 years 8 months ago #58861
The topic has been locked.
  • Posts: 10
  • Thank you received: 0
Was the issue fixed? For those of us who'd built the driver locally, can we now use the 3rd party driver repository? And is that update via regular sudo apt update? (sorry, I've been finishing school and am now back ready to get the SV305 ready as a guider)
Thanks
3 years 7 months ago #59345
The topic has been locked.
  • Posts: 67
  • Thank you received: 0
I am assuming it was, because AstroDMX was just relased for the RPi and it works perfectly with my SV305. I downloaded and installed the 32-bit Debian Installer.
I am still waiting on news for KStars.
Last edit: 3 years 7 months ago by Doug MacGregor.
3 years 7 months ago #59347
The topic has been locked.
It's in the official repos:
sudo apt-get -y install indi-sv305
3 years 7 months ago #59349
The topic has been locked.
  • Posts: 10
  • Thank you received: 0
I've update everything, still cannot connect. I see three svbony options now available to indi profile:

SV305 CCD
SVBONY
SVBONY SV305

All fail, two - "..ccd" and "..sv305" fail with: "indy driver crashed" and log shows: "Unable to establish: + SVBONY SV305 Please ensure the device is connected and powered on." and the other can't be found.
Any ideas? At this point I'm considering starting over, as the driver is now avail. If i were to go that route, how would I remove all of the existing SV305-related build files/folders/remnants? Any considerations to be aware of re: removing those files (file/folder paths, anything like that in Linux?). Thanks
3 years 7 months ago #59355
The topic has been locked.
  • Posts: 67
  • Thank you received: 0
IT WORKS!!!!!!!!

First I renamed all 3 of the indi_sv305_ccd files I had placed in /usr/bin, /usr/local/bin and /usr/lib, that i had copied to try to get it to work, to indi_sv305_ccd.old.

Next I renamed indi_sv305_ccd.xml in /usr/share/indi to indi_sv305_ccd.xml.old.

Then I ran the "sudo apt-get -y install indi-sv305" as suggested by knro.

Then I reselected the "SVBONY SV305" driver in Web Manager and Started it.

Then I reselected that same driver in my Profile, saved it, and pressed "Start Ekos"

And Voila! (see attachment)

The only error is a "set gain" error but I'm sure that will be fixed.

Thank you knro and all who helped in this endeavour.

INDI Rocks.
Last edit: 3 years 7 months ago by Doug MacGregor.
3 years 7 months ago #59359
Attachments:
The topic has been locked.
  • Posts: 67
  • Thank you received: 0

Hello. I have been using your driver that was released yesterday by Administrator knro.
I works perfectly except for sett the Gain.
Nice work.

I do not know how to write drivers but I noticed something on GitHub in the sthx8411_v305_2 branch.


There is a difference on the line that sets the Gain. A difference from the other settings...

case SVB_GAIN :
// Gain
IUFillNumber(&ControlsN[CCD_GAIN_N], "GAIN", "Gain", "%.f", caps.MinValue, caps.MaxValue, 10, caps.DefaultValue);
IUFillNumberVector(&ControlsNP[CCD_GAIN_N], &ControlsN[CCD_GAIN_N], 1, getDeviceName(), "CCD_GAIN", "Gain", MAIN_CONTROL_TAB, IP_RW, 60, IPS_IDLE);
status = SVBSetControlValue(cameraID, SVB_GAIN , caps.DefaultValue, SVB_FALSE);
if(status != SVB_SUCCESS)
{
LOG_ERROR("Error, camera set gain failed\n");
}
break;

case SVB_CONTRAST :
// Contrast
IUFillNumber(&ControlsN[CCD_CONTRAST_N], "CONTRAST", "Contrast", "%.f", caps.MinValue, caps.MaxValue, caps.MaxValue/10, caps.DefaultValue);
IUFillNumberVector(&ControlsNP[CCD_CONTRAST_N], &ControlsN[CCD_CONTRAST_N], 1, getDeviceName(), "CCD_CONTRAST", "Contrast", MAIN_CONTROL_TAB, IP_RW, 60, IPS_IDLE);
status = SVBSetControlValue(cameraID, SVB_CONTRAST , caps.DefaultValue, SVB_FALSE);
if(status != SVB_SUCCESS)
{
LOG_ERROR("Error, camera set contrast failed\n");
}
break;

For every setting other than Gain, the setting is MaxValue/10

For Gain it reads MaxValue, 10


Is that a problem?
3 years 7 months ago #59375
The topic has been locked.
  • Posts: 149
  • Thank you received: 31
Hello dlwmacgregor,

Thanks for your review.

10 and MaxValue/10 represent the stepping value in the UI.

This "gain" error appears randomly. I call the SDK API the same way for all the camera controls.
Sometime it works, sometime it doesn't.
I think it's an SDK issue. I reported it to SVBony.

The Gain control is the first control listed by the camera, so, the first called.
I didn't try yet to switch the call order. I could be a timing issue.
We perhaps have to wait a bit after the "OpenCamera" call.

Do you have the same issue with AstroDmx ?
I didn't try the last version.
I would like to know how AstroDmx does the trick.
Sadly, it's not open source ;-)


Glade to know the driver is working for you.


Best regards,

Blaise
3 years 7 months ago #59426
The topic has been locked.
Time to create page: 0.777 seconds