| | |
| | | public Response updatePWRestartDevice(int devId) { |
| | | return updateOpCmd(devId,FBS9100_ComBase.CMD_ResetSystem); |
| | | } |
| | | |
| | | public Response searchLD6(int devId) { |
| | | int opCmd = FBS9100_ComBase.LD6_CMD_GETPARAM; |
| | | return searchParam(devId,opCmd); |
| | | } |
| | | |
| | | public Response updateLD6(Fbs9100Setparam param) { |
| | | Long devId = param.getDevId(); |
| | | UpdateWrapper<Fbs9100Setparam> update = Wrappers.update(); |
| | | update |
| | | .set("GroupVol_LOW",param.getGroupvolLow()) |
| | | .set("MonomerVol_LOW",param.getMonomervolLow()) |
| | | .set("MonomerLowCount",param.getMonomerLowCount()) |
| | | .set("MonomerTmp_High",param.getMonomertmpHigh()) |
| | | .set("DisTime",param.getDisTime()) |
| | | .set("DisCap",param.getDisCap()) |
| | | .set("AutoTestStartVol",param.getAutoTestStartVol()) |
| | | .set("ChargeCurrSet",param.getChargeCurrSet()) |
| | | .set("DisCurr",param.getDisCurr()) |
| | | .set("BattGroupNum",param.getBattGroupNum()) |
| | | .set("DCVolHighLimit",param.getDCVolHighLimit()) |
| | | .eq("dev_id",devId); |
| | | mapper.update(null,update); |
| | | |
| | | boolean res = sendCmdToDev(FBS9100_ComBase.CMD_SetDischargeParm, devId.intValue()); |
| | | return new Response().set(1, res, res ? "修改参数成功" : "设置参数失败,请检查网络"); |
| | | } |
| | | |
| | | public Response updateLD6StartTest(int devId) { |
| | | return updateOpCmd(devId,FBS9100_ComBase.LD6_CMD_STARTTEST); |
| | | } |
| | | |
| | | public Response updateLD6StopTest(int devId) { |
| | | return updateOpCmd(devId,FBS9100_ComBase.LD6_CMD_STOPTEST); |
| | | } |
| | | } |