75 case eoerror_value_CFG_candiscovery_started:
78 eObrd_type_t brdnum =
static_cast<eObrd_type_t
>((
m_dnginfo.
param64 & 0x0000ff0000000000) >> 40);
79 const char *canboardname = eoboards_type2string(brdnum);
81 eObrd_protocolversion_t prot = {0};
82 eObrd_firmwareversion_t appl = {0};
86 prot.major = reqpr >> 8;
87 prot.minor = reqpr & 0xff;
88 appl.major = (reqfw >> 16) & 0xff;
89 appl.minor = (reqfw >> 8) & 0xff;
90 appl.build = reqfw & 0xff;
91 num = eo_common_hlfword_bitsetcount(maskcan1)+eo_common_hlfword_bitsetcount(maskcan2);
93 snprintf(str,
sizeof(str),
" %s %d %s boards on (can1map, can2map) = (0x%.4x, 0x%.4x) with target can protocol ver %d.%d and application ver %d.%d.%d.",
97 prot.major, prot.minor,
98 appl.major, appl.minor, appl.build
103 case eoerror_value_CFG_candiscovery_ok:
106 eObool_t fakesearch = (0x0000 == (
m_dnginfo.
param16 & 0xf000)) ? (eobool_false) : (eobool_true);
108 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(brdnum));
110 eObrd_protocolversion_t prot = {0};
111 eObrd_firmwareversion_t appl = {0};
114 char strOK[80] =
"OK";
116 prot.major = reqpr >> 8;
117 prot.minor = reqpr & 0xff;
118 appl.major = (reqfw >> 16) & 0xff;
119 appl.minor = (reqfw >> 8) & 0xff;
120 appl.build = reqfw & 0xff;
123 if(eobool_true == fakesearch)
125 snprintf(strOK,
sizeof(strOK),
"OK but FAKE (without any control on CAN w/ get-fw-version<> message)");
128 snprintf(str,
sizeof(str),
"%s is %s for %d %s boards with target can protocol ver %d.%d and application ver %d.%d.%d. Search time was %d ms",
132 prot.major, prot.minor,
133 appl.major, appl.minor, appl.build,
139 case eoerror_value_CFG_candiscovery_detectedboard:
142 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(brdnum));
144 eObrd_protocolversion_t prot = {0};
145 eObrd_firmwareversion_t appl = {0};
149 prot.major = reqpr >> 8;
150 prot.minor = reqpr & 0xff;
151 appl.major = (reqfw >> 16) & 0xff;
152 appl.minor = (reqfw >> 8) & 0xff;
153 appl.build = reqfw & 0xff;
157 snprintf(str,
sizeof(str),
"%s %s board in %s addr %d with can protocol ver %d.%d and application ver %d.%d.%d Search time was %d ms",
161 prot.major, prot.minor,
162 appl.major, appl.minor, appl.build,
168 case eoerror_value_CFG_candiscovery_boardsmissing:
171 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>((
m_dnginfo.
param16 >> 8)));
178 snprintf(str,
sizeof(str),
"%s %d missing %s boards for %d ms in %s:",
188 if(eobool_true == eo_common_hlfword_bitcheck(maskofmissing, i))
190 snprintf(str,
sizeof(str),
"%d of %d: missing %s BOARD %s:%s:%d",
191 n, numofmissing, canboardname,
202 case eoerror_value_CFG_candiscovery_boardsinvalid:
205 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(
m_dnginfo.
param16 >> 8));
209 const char *empty =
"";
210 const char *wrongtype =
"WRONG BOARD TYPE";
211 const char *wrongprot =
"WRONG PROTOCOL VERSION";
212 const char *wrongappl =
"WRONG APPLICATION VERSION";
214 snprintf(str,
sizeof(str),
"%s %d invalid %s boards in %s:\n",
222 for(
int i=1; i<15; i++)
224 uint64_t val = (invalidmask >> (4*i)) & 0x0f;
227 snprintf(str,
sizeof(str),
"\t %d of %d: wrong %s because it has: %s%s%s \n",
228 n, numofinvalid, canboardname,
229 ((val & 0x1) == 0x1) ? (wrongtype) : (empty),
230 ((val & 0x2) == 0x2) ? (wrongappl) : (empty),
231 ((val & 0x4) == 0x4) ? (wrongprot) : (empty)
242 case eoerror_value_CFG_skin_ok:
246 eObrd_protocolversion_t prot = {0};
247 eObrd_firmwareversion_t appl = {0};
250 prot.major = reqpr >> 8;
251 prot.minor = reqpr & 0xff;
252 appl.major = (reqfw >> 8) & 0xff;
253 appl.minor = reqfw & 0xff;
256 snprintf(str,
sizeof(str),
"%s on %d skin patches for boards on (can1map, can2map) = (0x%.4x, 0x%.4x) with target can protocol ver %d.%d and application ver %d.%d",
260 prot.major, prot.minor,
261 appl.major, appl.minor
266 case eoerror_value_CFG_skin_failed_toomanyboards:
267 case eoerror_value_CFG_inertials3_failed_toomanyboards:
268 case eoerror_value_CFG_temperatures_failed_toomanyboards:
276 snprintf(str,
sizeof(str),
" %s for %d boards. Limit of max number of boards is %d. Boards are on (can1map, can2map) = (0x%.4x, 0x%.4x)",
278 numOfReqBoards, numOfMaxBoards,
284 case eoerror_value_CFG_skin_failed_candiscovery:
285 case eoerror_value_CFG_inertials3_failed_candiscovery:
286 case eoerror_value_CFG_temperatures_failed_candiscovery:
294 if (eoerror_value_CFG_skin_failed_candiscovery == value)
296 snprintf(str,
sizeof(str),
"%s for %d skin patches. ",
m_dnginfo.
baseMessage.c_str(), numOfPatches);
305 snprintf(str,
sizeof(str),
"Missing can boards on (can1map, can2map) = (0x%.4x, 0x%.4x) and found but incompatible can boards on (can1map, can2map) = (0x%.4x, 0x%.4x)",
306 missMaskcan1, missMaskcan2,
307 incompMaskcan1, incompMaskcan2
313 case eoerror_value_CFG_strain_ok:
314 case eoerror_value_CFG_strain_failed_candiscovery:
316 eObrd_protocolversion_t prot = {0};
317 eObrd_firmwareversion_t appl = {0};
320 prot.major = reqpr >> 8;
321 prot.minor = reqpr & 0xff;
322 appl.major = (reqfw >> 8) & 0xff;
323 appl.minor = reqfw & 0xff;
328 snprintf(str,
sizeof(str),
"%s for board at addr:%d and port:%d with can protocol ver %d.%d and application ver %d.%d. Strain number is:%d",
331 prot.major, prot.minor,
332 appl.major, appl.minor,
338 case eoerror_value_CFG_mais_ok:
339 case eoerror_value_CFG_mais_failed_candiscovery:
340 case eoerror_value_CFG_psc_ok:
341 case eoerror_value_CFG_psc_failed_candiscovery:
342 case eoerror_value_CFG_pos_ok:
343 case eoerror_value_CFG_pos_failed_candiscovery:
345 eObrd_protocolversion_t prot = {0};
346 eObrd_firmwareversion_t appl = {0};
349 prot.major = reqpr >> 8;
350 prot.minor = reqpr & 0xff;
351 appl.major = (reqfw >> 8) & 0xff;
352 appl.minor = reqfw & 0xff;
356 snprintf(str,
sizeof(str),
"%s on board at addr: %d and port:%d with can protocol ver %d.%d and application ver %d.%d.",
360 prot.major, prot.minor,
361 appl.major, appl.minor
366 case eoerror_value_CFG_mais_failed_verify_because_active:
367 case eoerror_value_CFG_mc_foc_ok:
368 case eoerror_value_CFG_mc_foc_failed_candiscovery_of_foc:
369 case eoerror_value_CFG_mc_foc_failed_encoders_verify:
370 case eoerror_value_CFG_mc_mc4_ok:
371 case eoerror_value_CFG_mc_mc4_failed_candiscovery_of_mc4:
372 case eoerror_value_CFG_mc_mc4_failed_mais_verify:
373 case eoerror_value_CFG_mc_mc4plus_ok:
374 case eoerror_value_CFG_mc_mc4plus_failed_encoders_verify:
375 case eoerror_value_CFG_comm_cannotloadaregularrop:
376 case eoerror_value_CFG_mc_mc4plusmais_ok:
377 case eoerror_value_CFG_mc_mc4plusmais_failed_encoders_verify:
378 case eoerror_value_CFG_mc_mc4plusmais_failed_candiscovery_of_mais:
379 case eoerror_value_CFG_services_not_verified_yet:
380 case eoerror_value_CFG_mc_not_verified_yet:
381 case eoerror_value_CFG_strain_not_verified_yet:
382 case eoerror_value_CFG_mais_not_verified_yet:
383 case eoerror_value_CFG_skin_not_verified_yet:
384 case eoerror_value_CFG_inertials3_not_verified_yet:
385 case eoerror_value_CFG_encoders_not_verified_yet:
386 case eoerror_value_CFG_mc_using_onboard_config:
387 case eoerror_value_CFG_strain_using_onboard_config:
388 case eoerror_value_CFG_mais_using_onboard_config:
389 case eoerror_value_CFG_inertials3_using_onboard_config:
390 case eoerror_value_CFG_skin_using_onboard_config:
391 case eoerror_value_CFG_inertials3_ok:
392 case eoerror_value_CFG_temperatures_not_verified_yet:
393 case eoerror_value_CFG_temperatures_ok:
394 case eoerror_value_CFG_temperatures_using_onboard_config:
395 case eoerror_value_CFG_psc_failed_verify_because_active:
396 case eoerror_value_CFG_psc_not_verified_yet:
397 case eoerror_value_CFG_psc_using_onboard_config:
398 case eoerror_value_CFG_mc_mc2pluspsc_ok:
399 case eoerror_value_CFG_mc_mc2pluspsc_failed_encoders_verify:
400 case eoerror_value_CFG_mc_mc2pluspsc_failed_candiscovery_of_pscs:
401 case eoerror_value_CFG_inertials3_failed_notsupported:
402 case eoerror_value_CFG_temperatures_failed_notsupported:
403 case eoerror_value_CFG_mais_failed_notsupported:
404 case eoerror_value_CFG_strain_failed_notsupported:
405 case eoerror_value_CFG_skin_failed_notsupported:
406 case eoerror_value_CFG_psc_failed_notsupported:
407 case eoerror_value_CFG_mc_failed_notsupported:
408 case eoerror_value_CFG_encoders_failed_notsupported:
409 case eoerror_value_CFG_pos_not_verified_yet:
410 case eoerror_value_CFG_pos_using_onboard_config:
411 case eoerror_value_CFG_pos_failed_notsupported:
412 case eoerror_value_CFG_mc_mc4plusfaps_ok:
413 case eoerror_value_CFG_mc_mc4plusfaps_failed_encoders_verify:
414 case eoerror_value_CFG_mc_mc4plusfaps_failed_candiscovery:
415 case eoerror_value_CFG_mc_mc4pluspmc_ok:
416 case eoerror_value_CFG_mc_mc4pluspmc_failed_encoders_verify:
417 case eoerror_value_CFG_mc_mc4pluspmc_failed_candiscovery_of_pmc:
418 case eoerror_value_CFG_ft_ok:
419 case eoerror_value_CFG_ft_failed_candiscovery:
420 case eoerror_value_CFG_ft_not_verified_yet:
421 case eoerror_value_CFG_ft_using_onboard_config:
422 case eoerror_value_CFG_ft_failed_notsupported:
423 case eoerror_value_CFG_ft_failed_fullscales:
424 case eoerror_value_CFG_bat_ok:
425 case eoerror_value_CFG_bat_failed_candiscovery:
426 case eoerror_value_CFG_bat_not_verified_yet:
427 case eoerror_value_CFG_bat_using_onboard_config:
428 case eoerror_value_CFG_bat_failed_notsupported:
429 case eoerror_value_CFG_mc_advfoc_ok:
430 case eoerror_value_CFG_mc_advfoc_failed_candiscovery:
431 case eoerror_value_CFG_mc_advfoc_failed_encoders_verify:
432 case eoerror_value_CFG_mc_advfoc_failed_ICCdiscovery:
438 case eoerror_value_CFG_encoders_ok:
439 case eoerror_value_CFG_encoders_failed_verify:
447 int16_t rawerror1 = errorenc1 & failmaskenc1;
448 int16_t rawerror2 = errorenc2 & failmaskenc2;
452 for(
auto i=0; i < numOfJoints; i++)
455 auto primary_enc_with_error = (failmaskenc1 & (1<<i));
456 auto secondary_enc_with_error = (failmaskenc2 & (1<<i));
457 auto primary_error_code = 0;
458 auto secondary_error_code = 0;
459 if(primary_enc_with_error)
461 primary_error_code = ( (errorenc1 & (0xf <<i)) >> 4*i);
463 snprintf(str,
sizeof(str),
" joint %d (%s) has error on primary encoder (code=%d). ",
468 if(secondary_enc_with_error)
470 secondary_error_code = ( (errorenc2 & (0xf <<i)) >> 4*i);
472 snprintf(str,
sizeof(str),
" joint %d (%s) has error on secodary encoder (code=%d)",
482 case eoerror_value_CFG_inertials3_failed_unsupportedsensor:
486 snprintf(str,
sizeof(str),
"%s. Number of unsupported sens is %d",
493 case eoerror_value_CFG_inertials3_changed_requestedrate:
494 case eoerror_value_CFG_temperatures_changed_requestedrate:
495 case eoerror_value_CFG_psc_changed_requestedrate:
496 case eoerror_value_CFG_pos_changed_requestedrate:
501 snprintf(str,
sizeof(str),
"%s. Requested rate %u and Assigned rate %u",
509 case eoerror_value_CFG_inertials3_failed_generic:
510 case eoerror_value_CFG_temperatures_failed_generic:
514 snprintf(str,
sizeof(str),
"%s for %d sensors",
521 case eoerror_value_CFG_mc_advfoc_ICCdiscovery_result:
523 const char *wrongtype =
" WRONG ONBOARD BOARD TYPE";
524 const char *wrongappl =
" WRONG APPLICATION VERSION";
525 const char *wrongprot =
" WRONG PROTOCOL VERSION";
526 const char *empty =
"";
528 uint8_t NoResponse = 0x10;
529 uint8_t WrongType = 0x01;
530 uint8_t WrongApp = 0x02;
531 uint8_t WrongProtocol = 0x04;
532 uint8_t WrongChannel = 0x08;
535 constexpr uint64_t MASK_FW_BUILD = 0x00000000000000FF;
536 constexpr uint64_t MASK_FW_MINOR = 0x000000000000FF00;
537 constexpr uint64_t MASK_FW_MAJOR = 0x0000000000FF0000;
538 constexpr uint64_t MASK_PROTO_MINOR = 0x00000000FF000000;
539 constexpr uint64_t MASK_PROTO_MAJOR = 0x000000FF00000000;
540 constexpr uint64_t MASK_BOARD_TYPE = 0x0000FF0000000000;
541 constexpr uint64_t MASK_ADDRESS = 0x00FF000000000000;
542 constexpr uint64_t MASK_BUS = 0xFF00000000000000;
544 constexpr uint8_t SHIFT_FW_BUILD = 0;
545 constexpr uint8_t SHIFT_FW_MINOR = 8;
546 constexpr uint8_t SHIFT_FW_MAJOR = 16;
547 constexpr uint8_t SHIFT_PROTO_MINOR = 24;
548 constexpr uint8_t SHIFT_PROTO_MAJOR = 32;
549 constexpr uint8_t SHIFT_BOARD_TYPE = 40;
550 constexpr uint8_t SHIFT_ADDRESS = 48;
551 constexpr uint8_t SHIFT_BUS = 56;
557 uint8_t proto_minor = (
m_dnginfo.
param64 & MASK_PROTO_MINOR) >> SHIFT_PROTO_MINOR;
558 uint8_t proto_major = (
m_dnginfo.
param64 & MASK_PROTO_MAJOR) >> SHIFT_PROTO_MAJOR;
559 uint8_t board_type = (
m_dnginfo.
param64 & MASK_BOARD_TYPE) >> SHIFT_BOARD_TYPE;
564 eOlocation_t location = { bus, 0, address};
565 char location_str[64];
567 parser.
convert(location, &location_str[0],
sizeof(location_str));
568 eObrd_type_t general_brd_type = eoboards_cantype2type(
static_cast<eObrd_cantype_t
>(board_type));
569 std::string board_type_str = eoboards_type2string(general_brd_type);
570 uint16_t val = invalidmask & 0x0ff;
573 if((val & NoResponse) == NoResponse)
575 snprintf(str,
sizeof(str),
"%serror, the application on the other core does not respond.",
580 else if((val & WrongChannel) == WrongChannel)
582 snprintf(str,
sizeof(str),
"%serror, wrong port selected.",
589 snprintf(str,
sizeof(str),
"error on ICCdiscovery because it has:%s%s%s. ",
590 ((val & WrongType) == WrongType) ? (wrongtype) : (empty),
591 ((val & WrongApp) == WrongApp) ? (wrongappl) : (empty),
592 ((val & WrongProtocol) == WrongProtocol) ? (wrongprot) : (empty)
596 snprintf(str,
sizeof(str),
"Found on other core: %s FW ver is %d.%d.%d. Protocol ver is %d.%d Port: %s. \n",
597 board_type_str.c_str(),
598 fw_major, fw_minor, fw_build, proto_major, proto_minor, location_str
605 snprintf(str,
sizeof(str),
"%s ICCdiscovery successful. Found on other core: %s FW ver is %d.%d.%d. Protocol ver is %d.%d Port: %s. \n",
607 fw_major, fw_minor, fw_build, proto_major, proto_minor, location_str
615 case EOERROR_VALUE_DUMMY:
1110 char str[512] = {0};
1117 case eoerror_value_SYS_runninghappily:
1119 std::string appstate =
"unknown";
1122 case 0: appstate=
"just restarted";
break;
1123 case 1: appstate=
"idle";
break;
1124 case 2: appstate=
"running";
break;
1126 snprintf(str,
sizeof(str),
" %s Application state is %s.",
m_dnginfo.
baseMessage.c_str(), appstate.c_str());
1130 case eoerror_value_SYS_ctrloop_execoverflowRX:
1140 snprintf(str,
sizeof(str),
" %s RX execution time %d[usec]. Latest previous execution times[usec] (..., Tx=%d);(RX=%d, DO=%d, TX=%d);",
1145 case eoerror_value_SYS_ctrloop_execoverflowDO:
1154 snprintf(str,
sizeof(str),
" %s DO execution time %d[usec]. Latest previous execution times[usec] (..., Tx=%s);(RX=%d, DO=%d, TX=%d); (Rx=%d, ...);",
1159 case eoerror_value_SYS_ctrloop_execoverflowTX:
1169 snprintf(str,
sizeof(str),
" %s TX execution time %d[usec]. Latest previous execution times[usec] (RX=%s, DO=%s, TX=%d); (Rx=%d, DO=%d, ...). Num of CAN frames[CAN1,CAN2]=[%u %u]",
1174 case eoerror_value_SYS_ropparsingerror:
1180 case eoerror_value_SYS_halerror:
1186 case eoerror_value_SYS_osalerror:
1192 case eoerror_value_SYS_ipalerror:
1198 case eoerror_value_SYS_dispatcherfifooverflow:
1204 case eoerror_value_SYS_canservices_txfifooverflow:
1206 snprintf(str,
sizeof(str),
" %s CanPort=%s Frame.ID=%d, Frame.Size=%d Frame.Data=0x%lx",
1211 case eoerror_value_SYS_canservices_txbusfailure:
1217 case eoerror_value_SYS_canservices_formingfailure:
1223 case eoerror_value_SYS_canservices_parsingfailure:
1229 case eoerror_value_SYS_canservices_genericerror:
1236 case eoerror_value_SYS_ctrloop_rxphasemin:
1237 case eoerror_value_SYS_ctrloop_dophasemin:
1238 case eoerror_value_SYS_ctrloop_txphasemin:
1239 case eoerror_value_SYS_ctrloop_rxphaseaverage:
1240 case eoerror_value_SYS_ctrloop_dophaseaverage:
1241 case eoerror_value_SYS_ctrloop_txphaseaverage:
1242 case eoerror_value_SYS_ctrloop_rxphasemax:
1243 case eoerror_value_SYS_ctrloop_dophasemax:
1244 case eoerror_value_SYS_ctrloop_txphasemax:
1246 snprintf(str,
sizeof(str),
" %s, monitored over %f sec is %d microsec",
m_dnginfo.
baseMessage.c_str(),
1253 case eoerror_value_SYS_exec_time_stats:
1255 static constexpr const char *
const names[5] = {
"runner.RX()",
"runner.DO()",
"runner.TX()",
"runner.RXDOTX()",
"other.ID = " };
1256 std::string actor = {};
1266 snprintf(str,
sizeof(str),
" %s: %s -> (%d, %d, %d) us over %f sec",
1277 case eoerror_value_SYS_ctrloop_execoverflowPERIOD:
1280 uint16_t current =
static_cast<uint16_t
>((
m_dnginfo.
param64 >> 48) & 0xffff);
1285 snprintf(str,
sizeof(str),
" %s: RXDOTX cycle budget = %d us, RXDOTX exec time = %d us, (rx, do, tx) = (%d, %d, %d) us",
1294 case eoerror_value_SYS_ctrloop_histogramPERIOD:
1298 for(uint8_t i=0; i<8; i++)
1301 v[i] =
static_cast<float>(
x)/255.0;
1304 snprintf(str,
sizeof(str),
" %s: RXDOTX execution histogram w/ bins = %d us wide in [0, %f) + beyond -> [%f, %f, %f, %f, %f, %f, %f) + %f",
1307 v[0], v[1], v[2], v[3], v[4], v[5], v[6],
1313 case eoerror_value_SYS_proxy_forward_fails:
1315 snprintf(str,
sizeof(str),
" %s. ROP.sign=%d, ROP.id=%d. Proxy list capacity is %d, size is %d ",
1324 case eoerror_value_SYS_proxy_ropdes_notfound:
1331 case eoerror_value_SYS_canservices_canprint:
1337 case eoerror_value_SYS_canservices_rxmaisbug:
1343 case eoerror_value_SYS_canservices_rxfromwrongboard:
1349 case eoerror_value_SYS_transceiver_rxseqnumber_error:
1356 case eoerror_value_SYS_transceiver_rxseqnumber_restarted:
1362 case eoerror_value_SYS_canservices_board_detected:
1403 snprintf(str,
sizeof(str),
" %s on CAN port=%s with address %d. Fw ver is %d.%d.%d. Proto ver is %d.%d",
1405 fw_build, fw_major, fw_minor, proto_major, proto_minor );
1409 case eoerror_value_SYS_canservices_board_wrongprotversion:
1438 snprintf(str,
sizeof(str),
" %s on CAN port=%s with address %d. Fw ver is %d.%d.%d. Proto ver is %d.%d. Required Version is %d.%d",
1440 fw_build, fw_major, fw_minor, proto_major, proto_minor, req_proto_major, req_proto_minor );
1444 case eoerror_value_SYS_canservices_board_notfound:
1446 eObrd_type_t general_brd_type = eoboards_cantype2type((eObrd_cantype_t)
m_dnginfo.
param16);
1447 snprintf(str,
sizeof(str),
" %s The board is on CAN port=%s with address %d. Board type is %s.",
1454 case eoerror_value_SYS_canservices_boards_lostcontact:
1456 eOmn_serv_category_t serv_category;
1459 getCanMonitorInfo(serv_category, lostCanBoards1, lostCanBoards2);
1461 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Lost can boards on (can1map, can2map) = ([ %s ], [ %s ] ).",
1463 eomn_servicecategory2string(serv_category),
1464 lostCanBoards1, lostCanBoards2
1471 case eoerror_value_SYS_canservices_boards_retrievedcontact:
1473 eOmn_serv_category_t serv_category;
1474 diagstr retrievedCanBoards1 = {0};
1475 diagstr retrievedCanBoards2 = {0};
1476 getCanMonitorInfo(serv_category, retrievedCanBoards1, retrievedCanBoards2);
1478 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Retrieved can boards on (can1map, can2map) = ([ %s ], [ %s ] ).",
1480 eomn_servicecategory2string(serv_category),
1481 retrievedCanBoards1, retrievedCanBoards2
1488 case eoerror_value_SYS_canservices_monitor_regularcontact:
1490 eOmn_serv_category_t serv_category;
1491 diagstr foundCanBoards1 = {0};
1492 diagstr foundCanBoards2 = {0};
1493 getCanMonitorInfo(serv_category, foundCanBoards1, foundCanBoards2);
1495 snprintf(str,
sizeof(str),
"%s Type of service category is %s. CAN boards are on (can1map, can2map) = ([ %s ], [ %s ])",
1497 eomn_servicecategory2string(serv_category),
1504 case eoerror_value_SYS_canservices_monitor_lostcontact:
1506 eOmn_serv_category_t serv_category;
1509 getCanMonitorInfo(serv_category, lostCanBoards1, lostCanBoards2);
1511 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Lost CAN boards are on (can1map, can2map) = ([ %s ], [ %s ]).",
1513 eomn_servicecategory2string(serv_category),
1520 case eoerror_value_SYS_canservices_monitor_retrievedcontact:
1522 eOmn_serv_category_t serv_category;
1523 uint32_t totRetrvTime;
1524 diagstr retrievedCanBoards1 = {0};
1525 diagstr retrievedCanBoards2 = {0};
1526 getCanMonitorInfoWithTime(serv_category, retrievedCanBoards1, retrievedCanBoards2, totRetrvTime);
1529 snprintf(str,
sizeof(str),
"%s Type of service category is %s. CAN boards are on (can1map, can2map) = ([ %s ], [ %s ]). Total retrieving time: %d [ms]",
1531 eomn_servicecategory2string(serv_category),
1532 retrievedCanBoards1,
1533 retrievedCanBoards2,
1540 case eoerror_value_SYS_canservices_monitor_stillnocontact:
1542 eOmn_serv_category_t serv_category;
1543 uint32_t totDisappTime;
1546 getCanMonitorInfoWithTime(serv_category, lostCanBoards1, lostCanBoards2, totDisappTime);
1548 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Lost CAN boards are on (can1map, can2map) = ([ %s ] , [ %s ]). Total disappearance time: %d [ms]",
1550 eomn_servicecategory2string(serv_category),
1559 case eoerror_value_SYS_unspecified:
1560 case eoerror_value_SYS_tobedecided:
1561 case eoerror_value_SYS_memory_zerorequested:
1562 case eoerror_value_SYS_memory_notinitialised:
1563 case eoerror_value_SYS_memory_missing:
1564 case eoerror_value_SYS_mutex_timeout:
1565 case eoerror_value_SYS_wrongparam:
1566 case eoerror_value_SYS_wrongusage:
1567 case eoerror_value_SYS_runtimeerror:
1568 case eoerror_value_SYS_runninginfatalerrorstate:
1569 case eoerror_value_SYS_udptxfailure:
1570 case eoerror_value_SYS_configurator_udptxfailure:
1571 case eoerror_value_SYS_runner_udptxfailure:
1572 case eoerror_value_SYS_runner_transceivererror:
1573 case eoerror_value_SYS_canservices_rxfifooverflow:
1574 case eoerror_value_SYS_proxy_forward_ok:
1575 case eoerror_value_SYS_proxy_forward_callback_fails:
1576 case eoerror_value_SYS_proxy_reply_ok:
1577 case eoerror_value_SYS_proxy_reply_fails:
1578 case eoerror_value_SYS_canservices_boards_missing:
1579 case eoerror_value_SYS_canservices_boards_searched:
1580 case eoerror_value_SYS_canservices_boards_found:
1581 case eoerror_value_SYS_transceiver_rxinvalidframe_error:
1587 case EOERROR_VALUE_DUMMY: