diff --git a/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp b/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp index b3aa0c9..9b3aac2 100644 --- a/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp +++ b/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp @@ -124,9 +124,11 @@ shared_ptr ZSCanProtocolCom::callcmd(int32_t to, int32_t cmdid, uint8_t } catch (const appexception &e) { if (e.ecode == kerr_overtime) { if (i != 0) { - logger->warn("tx [to:{}, cmd:{}, param:{}({}) ] overtime, try again %d", to, cmdid, StringUtils().bytesToString((uint8_t *)param, paramLen), paramLen, i); + logger->warn("tx [to:{}, cmd:{}, param:{}({}) ] overtime, try again {}", to, cmdid, StringUtils().bytesToString((uint8_t *)param, paramLen), paramLen, i); } + logger->warn("systemctl restart iflytoptdcan.service"); system("systemctl restart iflytoptdcan.service"); + usleep(300 * 1000); continue; } else if (e.ecode == kerr_subdevice_overtime) { if (i != 0) {