| | |
| | | m_configuration.setFilepath((LPTSTR)(LPCTSTR)strIniFile); |
| | | m_configuration.getUnitId(strUnitId); |
| | | |
| | | // 机器型号和软件版本号应从配置中读取,当前先固定值 |
| | | CString strModeType = _T("Bond2860"); |
| | | CString strSoftRev = _T("1.0.2"); |
| | | |
| | | |
| | | |
| | | // Log |
| | | CString strLogDir; |
| | |
| | | }); |
| | | |
| | | |
| | | SECSListener listener; |
| | | listener.onEQConstantRequest = [&](void* pFrom, const std::vector<unsigned int>& ecids, |
| | | std::vector<unsigned int>& ecvs) -> void { |
| | | // 在此填充常量值,目前仅是加1后返回 |
| | | for (auto item : ecids) { |
| | | ecvs.push_back(item + 1); |
| | | } |
| | | }; |
| | | m_hsmsPassive.setListener(listener); |
| | | m_hsmsPassive.setEquipmentModelType((LPTSTR)(LPCTSTR)strModeType); |
| | | m_hsmsPassive.setSoftRev((LPTSTR)(LPCTSTR)strSoftRev); |
| | | m_hsmsPassive.init(this, "APP", 7000); |
| | | |
| | | |