ASI Linux SDK beta version

any question related to our SDK and driver

Moderators: yang, Support@ZWO

User avatar
Sam
Posts: 2799
Joined: Thu Feb 21, 2013 2:51 am

ASI Linux SDK beta version

Post by Sam » Sun Jun 16, 2013 2:07 pm

it include 2 demos. one can run in console and the other one with GUI need openCV support.
this SDK is based on libusb. so you need to download and make install libusb1.0.9 at first.

here is the link to download and test:
http://www.zwoptical.com/software/linux%20sdk.zip

welcome test and feedback!
ZWO Founder
Location:lon=120.6 lat=31.3
SuZhou China

broekai
Posts: 3
Joined: Mon May 13, 2013 5:14 pm

Re: ASI Linux SDK beta version

Post by broekai » Tue Jun 18, 2013 7:59 pm

Hey,

I have just started playing around with the SDK.
Works well, so far:
I can read data from the camera under 64bit Linux.

I have not tried capture of 12bit, though.
Am I correct that the 12bit data are stored in the IMG_RAW16 data type?

All the best,
Kai.

User avatar
Sam
Posts: 2799
Joined: Thu Feb 21, 2013 2:51 am

Re: ASI Linux SDK beta version

Post by Sam » Sun Jun 23, 2013 6:09 am

yes, Kai
the linux api is completly compitable with the windows.
so it can do anything windows can do
ZWO Founder
Location:lon=120.6 lat=31.3
SuZhou China

minaya
Posts: 11
Joined: Wed May 15, 2013 9:04 pm

Re: ASI Linux SDK beta version

Post by minaya » Sun Jun 23, 2013 9:00 pm

I have tried the examples, but once the image format have been set (640 480, as the example states), no gui appears. I have an archlinux 64 bits system, with libusb and opencv installed.

I want to ask another question. Will the SDK work on ARM devices/architecture in the future?. I see in the zip that there are an asi lib for x86 and x64. It should be great if we manage to interface these little cameras with a raspberry pi or rikomagic device.

User avatar
Sam
Posts: 2799
Joined: Thu Feb 21, 2013 2:51 am

Re: ASI Linux SDK beta version

Post by Sam » Tue Jun 25, 2013 2:22 pm

libusb required too, do you run it as root?
we would like to make it run at some ARM devices.
maybe just recompile?
we would like to have a try when we got some chance of ARM platform
ZWO Founder
Location:lon=120.6 lat=31.3
SuZhou China

minaya
Posts: 11
Joined: Wed May 15, 2013 9:04 pm

Re: ASI Linux SDK beta version

Post by minaya » Tue Jun 25, 2013 4:12 pm

Sam wrote:libusb required too, do you run it as root?
Yes, I have libusb, in archlinux I have libusbx 1.0.15-1 installed. I run it as root as I said the program advised it.

I will try it on a Debian/Ubuntu machine though.
Sam wrote: we would like to make it run at some ARM devices.
maybe just recompile?
we would like to have a try when we got some chance of ARM platform
I haven't tried it yet, just asked because I saw that inside the lib directory there is only libASICamera.so and x64/libASICamera.so, so I though only x86 and x64 were supported. I will try to compile it on the Raspberry PI this weekend.

The idea behind this is to create an autonomous monitor with the ASI camera to study meteors and fireballs. Universidad Complutense de Madrid, were I collaborate, has an active group that studies these events: http://guaix.fis.ucm.es/fireball/ .

Lets make science with the ASIs!.

User avatar
Sam
Posts: 2799
Joined: Thu Feb 21, 2013 2:51 am

Re: ASI Linux SDK beta version

Post by Sam » Thu Jun 27, 2013 4:58 am

that's interesting!
I think I need to recompile the lib too.
where can I get Raspberry PI?
ZWO Founder
Location:lon=120.6 lat=31.3
SuZhou China

minaya
Posts: 11
Joined: Wed May 15, 2013 9:04 pm

Re: ASI Linux SDK beta version

Post by minaya » Thu Jun 27, 2013 1:19 pm

Sam wrote:that's interesting!
I think I need to recompile the lib too.
where can I get Raspberry PI?
The international dealers are, as far as I know, Farnell Element 14 and RS Components, but nowadays you will probably find it in local distributors too.

Another option is one of those Rikomagic MK arm devices, altough the linux installation on them is not as straightforward. There is a distribution, picuntu, that seems to work quite good. I will test it on my mk802 III next week.

Can you provide the source of the ASI lib too? Or it contain private data?. This would simplify the code port to such 'special' devices.

Another interesting project with one of these ARM devices is the PiAstroHub project. This one is intended to use an ARM device to autoguide a mount (originally with the old QHY5, but why not with the fantastic ASI cameras?) in an automatic way. It integrates also a Canon EOS capture software and the mount control, so everything an astrophotographer needs is controlled with this little beast.

minaya
Posts: 11
Joined: Wed May 15, 2013 9:04 pm

Re: ASI Linux SDK beta version

Post by minaya » Sun Jun 30, 2013 11:11 am

I forget to mention that another possible option might be a cross-compilation.

http://www.kitware.com/blog/home/post/426

You can even emulate the Rasberry PI with qemu:

http://xecdesign.com/qemu-emulating-ras ... -easy-way/

I think that the possibility to use the camera with small devices like the Raspberry PI would be an interesting feature for people who want to use it with the widefield lens or people who plan to use it as an electronic viewfinder for a robotic telescope.

PS. I managed to get the ASI120mc to work with my 64 bits Archlinux. It works perfectly, better even than in windows, with less flicker!.

User avatar
Sam
Posts: 2799
Joined: Thu Feb 21, 2013 2:51 am

Re: ASI Linux SDK beta version

Post by Sam » Mon Jul 01, 2013 1:57 am

thanks very much for the info.

we will try to port it to arm platform when we find time.
Also I find a PI distributor here :)

the code is not open source, but we can distribute it as lib in different platform
ZWO Founder
Location:lon=120.6 lat=31.3
SuZhou China

Post Reply