Wheel connection problem

Discussion in 'General' started by Yoddha, Dec 18, 2014.

  1. Yoddha

    Yoddha Standard User

    Joined:
    Dec 18, 2014
    Messages:
    9
    Location:
    Bulgaria
    Hello,

    I'm the developer of APT (www.astroplace.net) and am trying to resolve a problem that is reported by and SBIG camera owner.

    The case is with SBIG ST8E camera + CFW-8A connected to the LPT1. The connection to camera is not a problem, the user can use all the features except to connect to the wheel. After several rounds of test versions narrowed the problem to this method:

    Code:
    PAR_ERROR CSBIGCam::SetCFWModel(CFW_MODEL_SELECT cfwModel, CFW_COM_PORT comPort /*= CFWPORT_COM1*/)
    {
        PAR_ERROR res = CE_NO_ERROR;
        CFWParams cfwp;
        CFWResults cfwr;
       
        // close existing port
        m_eCFWError = CFWE_NONE;
        if ( m_eCFWModel != CFWSEL_UNKNOWN )
        {
            cfwp.cfwModel = m_eCFWModel;
            cfwp.cfwCommand = CFWC_CLOSE_DEVICE;
            if ( (res = CFWCommand(cfwp, cfwr)) != CE_NO_ERROR )
            {
                m_eCFWError = (CFW_ERROR)cfwr.cfwError;
                return m_eLastError = res;
            }
        }
    
        // take on this model
        m_eCFWModel = cfwModel;
       
        if ( m_eCFWModel != CFWSEL_UNKNOWN )
        {
            // open new port
            cfwp.cfwModel = m_eCFWModel;
            cfwp.cfwCommand = CFWC_OPEN_DEVICE;
            cfwp.cfwParam1 = comPort;
            if ( (res = CFWCommand(cfwp, cfwr)) != CE_NO_ERROR )
            {
                m_eCFWError = (CFW_ERROR)cfwr.cfwError;
                return m_eLastError = res;
            }
               
            // query it to make sure it's there
            cfwp.cfwCommand = CFWC_QUERY;
            res = CFWCommand(cfwp, cfwr);
            m_eCFWError = (CFW_ERROR)cfwr.cfwError;
        }
       
        return m_eLastError = res;
    }
    which is called with on wheel connection :

    res = m_pSBIGCam->SetCFWModel( CFW_MODEL_SELECT(theApp.m_iSBigWheel),CFWPORT_COM1);

    The theApp.m_iSBigWheel is manually selected on camera connection.

    The returned error code is 4

    Can you help me to resolve the problem?

    Thank you in advance!
    Ivo
     
  2. Yoddha

    Yoddha Standard User

    Joined:
    Dec 18, 2014
    Messages:
    9
    Location:
    Bulgaria
    Here is the information from the driver checker:

    SBG DRIVE CHECKER.png
     
  3. Jan Soldan

    Jan Soldan Cyanogen Customer

    Joined:
    Oct 11, 2014
    Messages:
    239
    Location:
    Czech Republic
    Hi Ivo,

    first of all, this is the SBIG LPT driver, hope, your user uses the last available one from: http://www.sbig.com/support/software-archive/
    The err. code 4 means CE_UNKNOWN_COMMAND, which looks strange. Also, do you use one of the following values in your CFW's enumeration ?
    It should be set to 3 in your case.

    typedef enum
    {
    CFWSEL_UNKNOWN,
    CFWSEL_CFW2,
    CFWSEL_CFW5,
    CFWSEL_CFW8,
    CFWSEL_CFWL,
    CFWSEL_CFW402,
    CFWSEL_AUTO,
    CFWSEL_CFW6A,
    CFWSEL_CFW10,
    CFWSEL_CFW10_SERIAL,
    CFWSEL_CFW9,
    CFWSEL_CFWL8,
    CFWSEL_CFWL8G,
    CFWSEL_CFW1603,
    CFWSEL_FW5_STX,
    CFWSEL_FW5_8300,
    CFWSEL_FW8_8300,
    CFWSEL_FW7_STX,
    CFWSEL_FW8_STT,
    CFWSEL_FW5_STF_DETENT
    }
    CFW_MODEL_SELECT;

    Regards,
    Jan
     
  4. Yoddha

    Yoddha Standard User

    Joined:
    Dec 18, 2014
    Messages:
    9
    Location:
    Bulgaria
    Hi Jan,

    I'll ask Joe to join the conversation here :)

    As for the APT's connection dialog requires the wheel to be selected manually and the values are mapped to enumeration you gave. He said that have tried with both CFW8 and CFW6A
     
  5. Yoddha

    Yoddha Standard User

    Joined:
    Dec 18, 2014
    Messages:
    9
    Location:
    Bulgaria
    Is it correct that the driver that has to be used is Ver 3.11B4?
     
  6. Jan Soldan

    Jan Soldan Cyanogen Customer

    Joined:
    Oct 11, 2014
    Messages:
    239
    Location:
    Czech Republic
    Yes, this it the last one.
    jan
     
  7. Yoddha

    Yoddha Standard User

    Joined:
    Dec 18, 2014
    Messages:
    9
    Location:
    Bulgaria
    Hi Jan,

    Good news :) The driver resolved to issue!

    Many thanks for your help! Happy holidays!
     
  8. Jan Soldan

    Jan Soldan Cyanogen Customer

    Joined:
    Oct 11, 2014
    Messages:
    239
    Location:
    Czech Republic
    Ivo,
    You are welcome. I am glad it works.
    Jan
     

Share This Page