PHD2 on the Raspberry Pi2

969 views
Skip to first unread message

Patrick Chevalley

unread,
Jun 21, 2015, 5:59:38 AM6/21/15
to open-phd...@googlegroups.com
Hi,

PHD2 is working well on the Raspberry Pi2 running Linux, so I add the ARMHF build to the Launchpad ppa.
It is very easy to install, see  https://launchpad.net/~pch/+archive/ubuntu/phd2

Also the ARM ZWO driver is now available and I add it to PHD2 yesterday. This make the ARM Linux version functionally equivalent to the x64 version but this is untested for now as I not own a ZWO camera. I am interested if someone can test this configuration.

I make a few test with my Pi2 running Ubuntu Mate 15.04, INDI drivers and remote VNC display.
The program run fine and is very reactive. All my potential guide camera (Meade DSI, DMK-21, Atik 314) worked without problem.

Patrick

Andy Galasso

unread,
Jun 21, 2015, 12:54:53 PM6/21/15
to Patrick Chevalley, OpenPHD Guiding
Thanks Patrick, great stuff!
Andy

Sampson qk

unread,
Jun 23, 2015, 7:05:47 AM6/23/15
to open-phd...@googlegroups.com
Hi Patrick,
Thank you very much !

Patrick Chevalley於 2015年6月21日星期日 UTC+8下午5時59分38秒寫道:

Sampson qk

unread,
Jun 23, 2015, 9:27:07 PM6/23/15
to open-phd...@googlegroups.com
Hi Patrick,
You make the life much easier. I have installed the phd2 but there is no driver for my QHY5L II. How can I install the driver for it?
Again, Thank you for your effort!

Sampson

Andy Galasso

unread,
Jun 23, 2015, 10:07:38 PM6/23/15
to Sampson qk, OpenPHD Guiding
Sampson, I am currently working with the developer at QHY to update our drivers in PHD2.  I will see if they can provide an ARM version of their SDK for us.  It may take some time though since things are moving very slowly.
Andy

Patrick Chevalley

unread,
Jun 24, 2015, 10:39:37 AM6/24/15
to open-phd...@googlegroups.com
Sampson,
for now you can use the INDI driver for the QHY, it is available for ARM.
- add the following ppa: https://launchpad.net/~mutlaqja/+archive/ubuntu/ppa
- install (apt-get) indi-bin and indi-qhy
- start the indiserver in command line: indiserver indi_qhy_ccd
- look at the INDI forum if you have difficulties to run the indiserver: http://www.indilib.org/forum.html
- in PHD2 select "INDI Camera" then click the "Camera setup" button to select the QHY.

Patrick

max chen

unread,
Jun 25, 2015, 4:29:31 AM6/25/15
to open-phd...@googlegroups.com
Hi,
I have done some initial work on adding qhy support to Linux version. You can find the code here
https://github.com/trlsmax/Open-PHD2

And you can find qhy SDK here
https://github.com/qhyccd-lzr/QHYCCD_Linux

But I have not test it yet,it may not work correctly.

Regards
Max

Andy Galasso

unread,
Jun 25, 2015, 12:05:04 PM6/25/15
to OpenPHD Guiding
Hi Max,

Why not contribute directly to the official project? We don't bite.  :)

We just moved from google code to github.


I have been working with lzr to get his most recent SDK integrated into PHD2--Windows, OSX, and Linux.  Our work probably overlaps, so it would be nice to consolidate!

Andy

max chen

unread,
Jun 25, 2015, 12:24:57 PM6/25/15
to open-phd...@googlegroups.com
Hi Andy,

The reason I didn't do that because I'd talk with lzr and he said there will be official support by QHY
and I'd better not commit my code directly to the project.

But I'd wait months and for now PHD has migrate to github, so, I'm not sure if I should make a pull request.
As you said, maybe there will be overlaps or conflict with our code.

Should I wait for your code or just make a pull request ?

Max

在 2015年6月26日星期五 UTC+8上午12:05:04,Andy Galasso写道:

Andy Galasso

unread,
Jun 25, 2015, 2:11:57 PM6/25/15
to OpenPHD Guiding
Thanks, Max.  Let's try to consolidate our work.  I made a fork https://github.com/agalasso/phd2_qhy with the qhy SDK changes (maybe a branch would have been better?).  I've been testing on windows, but it should be very close to working on OSX and Linux (probably just some cmake changes required).

I'll try to take a look at what you have done in your repo.  It may be a little tricky because I will not have any baseline to compare to.

Andy

Thomas Landmann

unread,
Jun 25, 2015, 4:35:06 PM6/25/15
to open-phd...@googlegroups.com
Very nice... I just fired this up on my Pi2 and I'll test it out as soon as the weather cooperates!

max chen

unread,
Jun 25, 2015, 10:12:14 PM6/25/15
to open-phd...@googlegroups.com
Hi Andy,

I just check your qhy fork and it's way better and cleaner than mine.
I will test it on Linux.

Max

在 2015年6月26日星期五 UTC+8上午2:11:57,Andy Galasso写道:

Andy Galasso

unread,
Jun 25, 2015, 10:30:29 PM6/25/15
to max chen, OpenPHD Guiding
Max, thanks for looking at it. I think it still needs some cmake changes to link with the qhy library on Linux and OSX.
Andy

max chen

unread,
Jun 26, 2015, 5:32:13 AM6/26/15
to open-phd...@googlegroups.com, trl...@gmail.com
Hi Andy,

I modify some code to make phd2 compiled and link on linux. Code is here in branch qhy_linux
http://github.com/trlsmax/phd2_qhy

But qhylibs in directory cameras/qhyccdlibs is old and the latest version is here without static libs
https://github.com/qhyccd-lzr/QHYCCD_Linux

For now, it need to install those libs first to make phd2 compile and link , maybe I should contact lzr
to ask for a static version of libs

I will make a pull request when the code is ready.

Regards
Max


在 2015年6月26日星期五 UTC+8上午10:30:29,Andy Galasso写道:

Andy Galasso

unread,
Jun 26, 2015, 11:48:29 AM6/26/15
to OpenPHD Guiding
Thanks Max.  I'm not sure how we can figure out what the latest version of the qhy libs is. I got the SDK including the static libs directly from lzr on 6/24. It sure would be nice if we had a single source for the latest libs.
Andy


--
You received this message because you are subscribed to the Google Groups "Open PHD Guiding" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-phd-guidi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sampson qk

unread,
Jun 26, 2015, 11:49:59 AM6/26/15
to open-phd...@googlegroups.com
Hi Max,
Thank you so much for your effort. I could compile the phd2 with the qhy5l II M INDI driver. I will test it if the weather was fine. 

Sampson

max chen於 2015年6月26日星期五 UTC+8下午5時32分13秒寫道:

Sampson qk

unread,
Jun 26, 2015, 11:59:23 AM6/26/15
to open-phd...@googlegroups.com
Hi Patrick,
I have tried to install them but there was error. It reported that something wrong with my qhy ccd driver for Lin guider and could not overwrite the ccd driver. I have to remove package of qhy ccd driver for Lin guider before installing indi-bin and indi-qhy. Finally, I compiled the phd2 and the qhy driver given by Max Chen.

Regards,
Sampson

BTW, you are sure to make the life much easier for installing the phd2. 

Patrick Chevalley於 2015年6月24日星期三 UTC+8下午10時39分37秒寫道:

Cyril Richard

unread,
Apr 14, 2016, 9:07:11 AM4/14/16
to Open PHD Guiding
Hello. 
First I would like to thank you for your huge work with OpenPHD.
Then now the time has passed since your last messages and I would like to know if we can easily use the QHY5L-IIc camera with phd2 on linux ? Indeed, I have some trouble by using indi so I would be interested if the drivers was included in phd like Andi Galsso did suggested in his post.
 
Thanks again.
 
Best regards. 

max chen

unread,
Apr 14, 2016, 10:13:24 PM4/14/16
to Open PHD Guiding
Hello,
On linux, PHD2 and INDI use the same libqhy. So, if your camera can't be recognised by INDI, I don't think it will work with PHD2.
And QHY haven't update the sdk for a long time, even people asking on their forums got no responses.
I suggest use lin-guider instead , or someone port drivers from lin-guider to PHD2.

Regards
Max

在 2016年4月14日星期四 UTC+8下午9:07:11,Cyril Richard写道:

Cyril Richard

unread,
Apr 15, 2016, 11:00:26 AM4/15/16
to max chen, Open PHD Guiding
Ok, thanks. But that is strange because it seems that some people are using these cameras on indi.
For now I use lin_guider but PHD2 seems to be better. Then lin_guider code comes from libqhy too :

"Device access code is based on original QHY code from https://github.com/qhyccd-lzr"

Moreover, I tried to compile PHD2 and I have an error: 

CMakeFiles/phd2.dir/indi_gui.cpp.o: In function `IndiGui::newMessage(INDI::BaseDevice*, int)':
indi_gui.cpp:(.text+0xaf0): undefined reference to `INDI::BaseDevice::messageQueue[abi:cxx11](int)'
collect2: error: ld returned 1 exit status
CMakeFiles/phd2.dir/build.make:3013: recipe for target 'phd2' failed
make[2]: *** [phd2] Error 1
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/phd2.dir/all' failed
make[1]: *** [CMakeFiles/phd2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2


Thanks for your help.
Regards,

Cyril

--
You received this message because you are subscribed to a topic in the Google Groups "Open PHD Guiding" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/open-phd-guiding/Diqgu5iDQmY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to open-phd-guidi...@googlegroups.com.

Hans

unread,
Apr 15, 2016, 12:39:26 PM4/15/16
to Open PHD Guiding, trl...@gmail.com
Hmm, that's a linker error. What INDI library version do you have there ?

Cyril Richard

unread,
Apr 16, 2016, 3:53:07 AM4/16/16
to Hans, Open PHD Guiding, max chen
I have the version available in debian testing repositories :

INDI Library: 1.0.0
Code $Revision: 726523 $. Protocol 1.7.


2016-04-15 18:39 GMT+02:00 Hans <ha...@dse.nl>:
Hmm, that's a linker error. What INDI library version do you have there ?

--

Hans

unread,
Apr 16, 2016, 5:49:53 AM4/16/16
to Open PHD Guiding, ha...@dse.nl, trl...@gmail.com
On Saturday, April 16, 2016 at 9:53:07 AM UTC+2, Cyril Richard wrote:
I have the version available in debian testing repositories :

INDI Library: 1.0.0

Cyril Richard

unread,
Apr 16, 2016, 10:43:42 AM4/16/16
to Hans, Open PHD Guiding, max chen

Ok. I'll let you know.

Cyril Richard

unread,
Apr 16, 2016, 5:08:01 PM4/16/16
to Hans, Open PHD Guiding, max chen
OH, I am sorry but I should have said that I'm not on Rasberry.
But I will test the 1.2.0 version of INDI.

Andrea Boriani

unread,
May 10, 2016, 12:10:52 PM5/10/16
to Open PHD Guiding
I'm trying to build php2 on RPi3 but have the following error


[ 66%] Building CXX object CMakeFiles/phd2.dir/backlash_comp.cpp.o
/home/pi/phd/backlash_comp.cpp: In member function ‘void BacklashComp::_TrackBLCResults(double, double, double)’:
/home/pi/phd/backlash_comp.cpp:139: error: call of overloaded ‘abs(double&)’ is ambiguous
/usr/include/stdlib.h:775: note: candidates are: int abs(int)
/usr/include/c++/4.4/cstdlib:170: note:                 long long int __gnu_cxx::abs(long long int)
/usr/include/c++/4.4/cstdlib:139: note:                 long int std::abs(long int)
CMakeFiles/phd2.dir/build.make:1204: recipe for target 'CMakeFiles/phd2.dir/backlash_comp.cpp.o' failed
make[2]: *** [CMakeFiles/phd2.dir/backlash_comp.cpp.o] Error 1
CMakeFiles/Makefile2:126: recipe for target 'CMakeFiles/phd2.dir/all' failed

make[1]: *** [CMakeFiles/phd2.dir/all] Error 2
Makefile:147: recipe for target 'all' failed

make: *** [all] Error 2


Any help?
Thanks

Andrea

Patrick Chevalley

unread,
May 10, 2016, 1:20:45 PM5/10/16
to Open PHD Guiding
You can try the following:
edit phd.h
on line 67, replace
#include <math.h>
by
#include <cmath>

Patrick
Reply all
Reply to author
Forward
0 new messages