×

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

Bi-monthly release with minor bug fixes and improvements

Ekos and custom focuser name

  • Posts: 86
  • Thank you received: 5
I'm writing myself a focuser driver which I've named "Rob Focuser". I can successfully connect to this from KStars/Ekos. I have given Ekos the name "Rob Focuser" to connect to in the Ekos Remote Device names dialogue box, however, back in the "Ekos-KStars" dialogue box, under "Select Devices" Ekos insists on selecting "Focuser Simulator" instead and doesn't offer my custom driver as a possibility. Is there another XML file somewhere that I need to add my driver to so that it gets offered to KStars/Ekos?

My getDefaultName():

const char * FocuserRob::getDefaultName()
{
    return "Rob Focuser";
}

My indi_focuser_rob.xml file:

<devGroup group="Focusers">
    <device label="Rob Focuser">
    <driver name="Rob Focuser">indi_rob_focuser</driver>
    <version>0.1</version>
    </device>
</devGroup>

Rob
7 years 11 months ago #7555

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

No this is correct... did you run 'sudo make install' and was indi_focuser_rob.xml installed to /usr/share/indi ?
7 years 11 months ago #7556

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

  • Posts: 86
  • Thank you received: 5
Yes, indi_focuser_rob.xml is in there (see listing below). I notice that it is not listed in drivers.xml though; do I need to add it there manually? I did make my own CMakeLists.txt, so it there's meant to be something in there that adds my driver automagically to drivers.xml it's possible I've left it out.

$ ls /usr/share/indi
drivers.xml        indi_eqmod.xml                  indi_eqmod_sk.xml
indi_align_sk.xml  indi_eqmod_scope_limits_sk.xml  indi_focuser_rob.xml
indi_asiccd.xml    indi_eqmod_simulator_sk.xml     indi_tcfs_sk.xml

CMakeLists.txt:

PROJECT (indi-rob-focuser C CXX)
cmake_minimum_required (VERSION 2.4.7)
 
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
set (BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
 
find_package (INDI REQUIRED)
 
set (ROB_FOCUSER_VERSION_MAJOR 0)
set (ROB_FOCUSER_VERSION_MINOR 1)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
set (INDI_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/indi")
 
include_directories (${CMAKE_CURRENT_BINARY_DIR})
include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories (${INDI_INCLUDE_DIR})
 
########### Focuser Rob ###############
set (rob_focuser_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/focuser_rob.cpp)
add_executable (indi_rob_focuser ${rob_focuser_SRCS})
target_link_libraries (indi_rob_focuser libwiringX.so ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES})
 
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm*")
target_link_libraries (indi_rob_focuser rt)
endif (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm*")
 
install (TARGETS indi_rob_focuser RUNTIME DESTINATION bin )
install (FILES indi_focuser_rob.xml DESTINATION ${INDI_DATA_DIR})
7 years 11 months ago #7557

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

  • Posts: 86
  • Thank you received: 5
Or the complete thing is here:

github.com/RobMeades/IndiStuff

It has a dependency on wiringX and needs to be run as root to get GPIO access.

Rob
Last edit: 7 years 11 months ago by Rob Meades. Reason: Add note about wiringX.
7 years 11 months ago #7558

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

Oh I think I know why. Because on the client PC, the indi_focuser_rob.xml is not in /usr/share/indi. You can go to Ekos options, and under Remote Device Names, set the focuser to "Rob Focuser". Alternatively, you may just copy the .xml file to /usr/share/indi on the client machine.
7 years 11 months ago #7561

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

  • Posts: 86
  • Thank you received: 5
I did the Remote Device Names bit but it didn't seem to help. I'll try copying the file to the client side instead.

Rob
7 years 11 months ago #7562

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

  • Posts: 86
  • Thank you received: 5
OK, so if I copy indi_focuser_rob.xml to the client machine I do get the option of choosing it in the Ekos - KStars dialogue, which certainly helps, but there's still something odd going on as, if I press Apply or OK with "Rob Focuser" entered as the Focuser in the Remote Device Names portion of the Configure - KStars dialogue, the Ekos - Kstars dialogue switches back to "Focuser Simulator" from "Rob Focuser". Very strange.

Rob
7 years 11 months ago #7565

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

It should be available in the dropdown list nonetheless.
7 years 11 months ago #7568

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

  • Posts: 86
  • Thank you received: 5
Yes, now that it's in the menu Ekos no longer complains about not being able to start the Focus Simulator device, so that's fine.
7 years 11 months ago #7572

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

  • Posts: 86
  • Thank you received: 5
FYI, I've just switched client machines, setting up KStars/Ekos/Indi from scratch on Xubuntu 15.04 and this problem has gone away: no need to copy the focuser XML file and Ekos [bleeding] selects the right focuser each time.

Rob
7 years 11 months ago #7665

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

Time to create page: 0.336 seconds