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
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
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