70 case eoerror_value_CFG_candiscovery_started:
73 eObrd_type_t brdnum =
static_cast<eObrd_type_t
>((
m_dnginfo.
param64 & 0x0000ff0000000000) >> 40);
74 const char *canboardname = eoboards_type2string(brdnum);
76 eObrd_protocolversion_t prot = {0};
77 eObrd_firmwareversion_t appl = {0};
81 prot.major = reqpr >> 8;
82 prot.minor = reqpr & 0xff;
83 appl.major = (reqfw >> 16) & 0xff;
84 appl.minor = (reqfw >> 8) & 0xff;
85 appl.build = reqfw & 0xff;
86 num = eo_common_hlfword_bitsetcount(maskcan1)+eo_common_hlfword_bitsetcount(maskcan2);
88 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.",
92 prot.major, prot.minor,
93 appl.major, appl.minor, appl.build
98 case eoerror_value_CFG_candiscovery_ok:
101 eObool_t fakesearch = (0x0000 == (
m_dnginfo.
param16 & 0xf000)) ? (eobool_false) : (eobool_true);
103 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(brdnum));
105 eObrd_protocolversion_t prot = {0};
106 eObrd_firmwareversion_t appl = {0};
109 char strOK[80] =
"OK";
111 prot.major = reqpr >> 8;
112 prot.minor = reqpr & 0xff;
113 appl.major = (reqfw >> 16) & 0xff;
114 appl.minor = (reqfw >> 8) & 0xff;
115 appl.build = reqfw & 0xff;
118 if(eobool_true == fakesearch)
120 snprintf(strOK,
sizeof(strOK),
"OK but FAKE (without any control on CAN w/ get-fw-version<> message)");
123 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",
127 prot.major, prot.minor,
128 appl.major, appl.minor, appl.build,
134 case eoerror_value_CFG_candiscovery_detectedboard:
137 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(brdnum));
139 eObrd_protocolversion_t prot = {0};
140 eObrd_firmwareversion_t appl = {0};
144 prot.major = reqpr >> 8;
145 prot.minor = reqpr & 0xff;
146 appl.major = (reqfw >> 16) & 0xff;
147 appl.minor = (reqfw >> 8) & 0xff;
148 appl.build = reqfw & 0xff;
152 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",
156 prot.major, prot.minor,
157 appl.major, appl.minor, appl.build,
163 case eoerror_value_CFG_candiscovery_boardsmissing:
166 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>((
m_dnginfo.
param16 >> 8)));
173 snprintf(str,
sizeof(str),
"%s %d missing %s boards for %d ms in %s:",
183 if(eobool_true == eo_common_hlfword_bitcheck(maskofmissing, i))
185 snprintf(str,
sizeof(str),
"%d of %d: missing %s BOARD %s:%s:%d",
186 n, numofmissing, canboardname,
197 case eoerror_value_CFG_candiscovery_boardsinvalid:
200 const char *canboardname = eoboards_type2string(
static_cast<eObrd_type_t
>(
m_dnginfo.
param16 >> 8));
204 const char *empty =
"";
205 const char *wrongtype =
"WRONG BOARD TYPE";
206 const char *wrongprot =
"WRONG PROTOCOL VERSION";
207 const char *wrongappl =
"WRONG APPLICATION VERSION";
209 snprintf(str,
sizeof(str),
"%s %d invalid %s boards in %s:\n",
217 for(
int i=1; i<15; i++)
219 uint64_t val = (invalidmask >> (4*i)) & 0x0f;
222 snprintf(str,
sizeof(str),
"\t %d of %d: wrong %s because it has: %s%s%s \n",
223 n, numofinvalid, canboardname,
224 ((val & 0x1) == 0x1) ? (wrongtype) : (empty),
225 ((val & 0x2) == 0x2) ? (wrongappl) : (empty),
226 ((val & 0x4) == 0x4) ? (wrongprot) : (empty)
237 case eoerror_value_CFG_skin_ok:
241 eObrd_protocolversion_t prot = {0};
242 eObrd_firmwareversion_t appl = {0};
245 prot.major = reqpr >> 8;
246 prot.minor = reqpr & 0xff;
247 appl.major = (reqfw >> 8) & 0xff;
248 appl.minor = reqfw & 0xff;
251 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",
255 prot.major, prot.minor,
256 appl.major, appl.minor
261 case eoerror_value_CFG_skin_failed_toomanyboards:
262 case eoerror_value_CFG_inertials3_failed_toomanyboards:
263 case eoerror_value_CFG_temperatures_failed_toomanyboards:
271 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)",
273 numOfReqBoards, numOfMaxBoards,
279 case eoerror_value_CFG_skin_failed_candiscovery:
280 case eoerror_value_CFG_inertials3_failed_candiscovery:
281 case eoerror_value_CFG_temperatures_failed_candiscovery:
289 if (eoerror_value_CFG_skin_failed_candiscovery == value)
291 snprintf(str,
sizeof(str),
"%s for %d skin patches. ",
m_dnginfo.
baseMessage.c_str(), numOfPatches);
300 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)",
301 missMaskcan1, missMaskcan2,
302 incompMaskcan1, incompMaskcan2
308 case eoerror_value_CFG_strain_ok:
309 case eoerror_value_CFG_strain_failed_candiscovery:
311 eObrd_protocolversion_t prot = {0};
312 eObrd_firmwareversion_t appl = {0};
315 prot.major = reqpr >> 8;
316 prot.minor = reqpr & 0xff;
317 appl.major = (reqfw >> 8) & 0xff;
318 appl.minor = reqfw & 0xff;
323 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",
326 prot.major, prot.minor,
327 appl.major, appl.minor,
333 case eoerror_value_CFG_mais_ok:
334 case eoerror_value_CFG_mais_failed_candiscovery:
335 case eoerror_value_CFG_psc_ok:
336 case eoerror_value_CFG_psc_failed_candiscovery:
337 case eoerror_value_CFG_pos_ok:
338 case eoerror_value_CFG_pos_failed_candiscovery:
340 eObrd_protocolversion_t prot = {0};
341 eObrd_firmwareversion_t appl = {0};
344 prot.major = reqpr >> 8;
345 prot.minor = reqpr & 0xff;
346 appl.major = (reqfw >> 8) & 0xff;
347 appl.minor = reqfw & 0xff;
351 snprintf(str,
sizeof(str),
"%s on board at addr: %d and port:%d with can protocol ver %d.%d and application ver %d.%d.",
355 prot.major, prot.minor,
356 appl.major, appl.minor
361 case eoerror_value_CFG_mais_failed_verify_because_active:
362 case eoerror_value_CFG_mc_foc_ok:
363 case eoerror_value_CFG_mc_foc_failed_candiscovery_of_foc:
364 case eoerror_value_CFG_mc_foc_failed_encoders_verify:
365 case eoerror_value_CFG_mc_mc4_ok:
366 case eoerror_value_CFG_mc_mc4_failed_candiscovery_of_mc4:
367 case eoerror_value_CFG_mc_mc4_failed_mais_verify:
368 case eoerror_value_CFG_mc_mc4plus_ok:
369 case eoerror_value_CFG_mc_mc4plus_failed_encoders_verify:
370 case eoerror_value_CFG_comm_cannotloadaregularrop:
371 case eoerror_value_CFG_mc_mc4plusmais_ok:
372 case eoerror_value_CFG_mc_mc4plusmais_failed_encoders_verify:
373 case eoerror_value_CFG_mc_mc4plusmais_failed_candiscovery_of_mais:
374 case eoerror_value_CFG_services_not_verified_yet:
375 case eoerror_value_CFG_mc_not_verified_yet:
376 case eoerror_value_CFG_strain_not_verified_yet:
377 case eoerror_value_CFG_mais_not_verified_yet:
378 case eoerror_value_CFG_skin_not_verified_yet:
379 case eoerror_value_CFG_inertials3_not_verified_yet:
380 case eoerror_value_CFG_encoders_not_verified_yet:
381 case eoerror_value_CFG_mc_using_onboard_config:
382 case eoerror_value_CFG_strain_using_onboard_config:
383 case eoerror_value_CFG_mais_using_onboard_config:
384 case eoerror_value_CFG_inertials3_using_onboard_config:
385 case eoerror_value_CFG_skin_using_onboard_config:
386 case eoerror_value_CFG_inertials3_ok:
387 case eoerror_value_CFG_temperatures_not_verified_yet:
388 case eoerror_value_CFG_temperatures_ok:
389 case eoerror_value_CFG_temperatures_using_onboard_config:
390 case eoerror_value_CFG_psc_failed_verify_because_active:
391 case eoerror_value_CFG_psc_not_verified_yet:
392 case eoerror_value_CFG_psc_using_onboard_config:
393 case eoerror_value_CFG_mc_mc2pluspsc_ok:
394 case eoerror_value_CFG_mc_mc2pluspsc_failed_encoders_verify:
395 case eoerror_value_CFG_mc_mc2pluspsc_failed_candiscovery_of_pscs:
396 case eoerror_value_CFG_inertials3_failed_notsupported:
397 case eoerror_value_CFG_temperatures_failed_notsupported:
398 case eoerror_value_CFG_mais_failed_notsupported:
399 case eoerror_value_CFG_strain_failed_notsupported:
400 case eoerror_value_CFG_skin_failed_notsupported:
401 case eoerror_value_CFG_psc_failed_notsupported:
402 case eoerror_value_CFG_mc_failed_notsupported:
403 case eoerror_value_CFG_encoders_failed_notsupported:
404 case eoerror_value_CFG_pos_not_verified_yet:
405 case eoerror_value_CFG_pos_using_onboard_config:
406 case eoerror_value_CFG_pos_failed_notsupported:
407 case eoerror_value_CFG_mc_mc4plusfaps_ok:
408 case eoerror_value_CFG_mc_mc4plusfaps_failed_encoders_verify:
409 case eoerror_value_CFG_mc_mc4plusfaps_failed_candiscovery:
410 case eoerror_value_CFG_mc_mc4pluspmc_ok:
411 case eoerror_value_CFG_mc_mc4pluspmc_failed_encoders_verify:
412 case eoerror_value_CFG_mc_mc4pluspmc_failed_candiscovery_of_pmc:
413 case eoerror_value_CFG_ft_ok:
414 case eoerror_value_CFG_ft_failed_candiscovery:
415 case eoerror_value_CFG_ft_not_verified_yet:
416 case eoerror_value_CFG_ft_using_onboard_config:
417 case eoerror_value_CFG_ft_failed_notsupported:
418 case eoerror_value_CFG_ft_failed_fullscales:
419 case eoerror_value_CFG_bat_ok:
420 case eoerror_value_CFG_bat_failed_candiscovery:
421 case eoerror_value_CFG_bat_not_verified_yet:
422 case eoerror_value_CFG_bat_using_onboard_config:
423 case eoerror_value_CFG_bat_failed_notsupported:
424 case eoerror_value_CFG_mc_advfoc_ok:
425 case eoerror_value_CFG_mc_advfoc_failed_candiscovery:
426 case eoerror_value_CFG_mc_advfoc_failed_encoders_verify:
427 case eoerror_value_CFG_mc_advfoc_failed_ICCdiscovery:
433 case eoerror_value_CFG_encoders_ok:
434 case eoerror_value_CFG_encoders_failed_verify:
442 int16_t rawerror1 = errorenc1 & failmaskenc1;
443 int16_t rawerror2 = errorenc2 & failmaskenc2;
447 for(
auto i=0; i < numOfJoints; i++)
450 auto primary_enc_with_error = (failmaskenc1 & (1<<i));
451 auto secondary_enc_with_error = (failmaskenc2 & (1<<i));
452 auto primary_error_code = 0;
453 auto secondary_error_code = 0;
454 if(primary_enc_with_error)
456 primary_error_code = ( (errorenc1 & (0xf <<i)) >> 4*i);
458 snprintf(str,
sizeof(str),
" joint %d (%s) has error on primary encoder (code=%d). ",
463 if(secondary_enc_with_error)
465 secondary_error_code = ( (errorenc2 & (0xf <<i)) >> 4*i);
467 snprintf(str,
sizeof(str),
" joint %d (%s) has error on secodary encoder (code=%d)",
477 case eoerror_value_CFG_inertials3_failed_unsupportedsensor:
481 snprintf(str,
sizeof(str),
"%s. Number of unsupported sens is %d",
488 case eoerror_value_CFG_inertials3_changed_requestedrate:
489 case eoerror_value_CFG_temperatures_changed_requestedrate:
490 case eoerror_value_CFG_psc_changed_requestedrate:
491 case eoerror_value_CFG_pos_changed_requestedrate:
496 snprintf(str,
sizeof(str),
"%s. Requested rate %u and Assigned rate %u",
504 case eoerror_value_CFG_inertials3_failed_generic:
505 case eoerror_value_CFG_temperatures_failed_generic:
509 snprintf(str,
sizeof(str),
"%s for %d sensors",
516 case eoerror_value_CFG_mc_advfoc_ICCdiscovery_result:
518 const char *wrongtype =
" WRONG ONBOARD BOARD TYPE";
519 const char *wrongappl =
" WRONG APPLICATION VERSION";
520 const char *wrongprot =
" WRONG PROTOCOL VERSION";
521 const char *empty =
"";
523 uint8_t NoResponse = 0x10;
524 uint8_t WrongType = 0x01;
525 uint8_t WrongApp = 0x02;
526 uint8_t WrongProtocol = 0x04;
527 uint8_t WrongChannel = 0x08;
530 constexpr uint64_t MASK_FW_BUILD = 0x00000000000000FF;
531 constexpr uint64_t MASK_FW_MINOR = 0x000000000000FF00;
532 constexpr uint64_t MASK_FW_MAJOR = 0x0000000000FF0000;
533 constexpr uint64_t MASK_PROTO_MINOR = 0x00000000FF000000;
534 constexpr uint64_t MASK_PROTO_MAJOR = 0x000000FF00000000;
535 constexpr uint64_t MASK_BOARD_TYPE = 0x0000FF0000000000;
536 constexpr uint64_t MASK_ADDRESS = 0x00FF000000000000;
537 constexpr uint64_t MASK_BUS = 0xFF00000000000000;
539 constexpr uint8_t SHIFT_FW_BUILD = 0;
540 constexpr uint8_t SHIFT_FW_MINOR = 8;
541 constexpr uint8_t SHIFT_FW_MAJOR = 16;
542 constexpr uint8_t SHIFT_PROTO_MINOR = 24;
543 constexpr uint8_t SHIFT_PROTO_MAJOR = 32;
544 constexpr uint8_t SHIFT_BOARD_TYPE = 40;
545 constexpr uint8_t SHIFT_ADDRESS = 48;
546 constexpr uint8_t SHIFT_BUS = 56;
552 uint8_t proto_minor = (
m_dnginfo.
param64 & MASK_PROTO_MINOR) >> SHIFT_PROTO_MINOR;
553 uint8_t proto_major = (
m_dnginfo.
param64 & MASK_PROTO_MAJOR) >> SHIFT_PROTO_MAJOR;
554 uint8_t board_type = (
m_dnginfo.
param64 & MASK_BOARD_TYPE) >> SHIFT_BOARD_TYPE;
559 eOlocation_t location = { bus, 0, address};
560 char location_str[64];
562 parser.
convert(location, &location_str[0],
sizeof(location_str));
563 eObrd_type_t general_brd_type = eoboards_cantype2type(
static_cast<eObrd_cantype_t
>(board_type));
564 std::string board_type_str = eoboards_type2string(general_brd_type);
565 uint16_t val = invalidmask & 0x0ff;
568 if((val & NoResponse) == NoResponse)
570 snprintf(str,
sizeof(str),
"%serror, the application on the other core does not respond.",
575 else if((val & WrongChannel) == WrongChannel)
577 snprintf(str,
sizeof(str),
"%serror, wrong port selected.",
584 snprintf(str,
sizeof(str),
"error on ICCdiscovery because it has:%s%s%s. ",
585 ((val & WrongType) == WrongType) ? (wrongtype) : (empty),
586 ((val & WrongApp) == WrongApp) ? (wrongappl) : (empty),
587 ((val & WrongProtocol) == WrongProtocol) ? (wrongprot) : (empty)
591 snprintf(str,
sizeof(str),
"Found on other core: %s FW ver is %d.%d.%d. Protocol ver is %d.%d Port: %s. \n",
592 board_type_str.c_str(),
593 fw_major, fw_minor, fw_build, proto_major, proto_minor, location_str
600 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",
602 fw_major, fw_minor, fw_build, proto_major, proto_minor, location_str
610 case EOERROR_VALUE_DUMMY:
1063 char str[512] = {0};
1070 case eoerror_value_SYS_runninghappily:
1072 std::string appstate =
"unknown";
1075 case 0: appstate=
"just restarted";
break;
1076 case 1: appstate=
"idle";
break;
1077 case 2: appstate=
"running";
break;
1079 snprintf(str,
sizeof(str),
" %s Application state is %s.",
m_dnginfo.
baseMessage.c_str(), appstate.c_str());
1083 case eoerror_value_SYS_ctrloop_execoverflowRX:
1093 snprintf(str,
sizeof(str),
" %s RX execution time %d[usec]. Latest previous execution times[usec] (..., Tx=%d);(RX=%d, DO=%d, TX=%d);",
1098 case eoerror_value_SYS_ctrloop_execoverflowDO:
1107 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, ...);",
1112 case eoerror_value_SYS_ctrloop_execoverflowTX:
1122 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]",
1127 case eoerror_value_SYS_ropparsingerror:
1133 case eoerror_value_SYS_halerror:
1139 case eoerror_value_SYS_osalerror:
1145 case eoerror_value_SYS_ipalerror:
1151 case eoerror_value_SYS_dispatcherfifooverflow:
1157 case eoerror_value_SYS_canservices_txfifooverflow:
1159 snprintf(str,
sizeof(str),
" %s CanPort=%s Frame.ID=%d, Frame.Size=%d Frame.Data=0x%lx",
1164 case eoerror_value_SYS_canservices_txbusfailure:
1170 case eoerror_value_SYS_canservices_formingfailure:
1176 case eoerror_value_SYS_canservices_parsingfailure:
1182 case eoerror_value_SYS_canservices_genericerror:
1189 case eoerror_value_SYS_ctrloop_rxphasemin:
1190 case eoerror_value_SYS_ctrloop_dophasemin:
1191 case eoerror_value_SYS_ctrloop_txphasemin:
1192 case eoerror_value_SYS_ctrloop_rxphaseaverage:
1193 case eoerror_value_SYS_ctrloop_dophaseaverage:
1194 case eoerror_value_SYS_ctrloop_txphaseaverage:
1195 case eoerror_value_SYS_ctrloop_rxphasemax:
1196 case eoerror_value_SYS_ctrloop_dophasemax:
1197 case eoerror_value_SYS_ctrloop_txphasemax:
1199 snprintf(str,
sizeof(str),
" %s, monitored over %f sec is %d microsec",
m_dnginfo.
baseMessage.c_str(),
1206 case eoerror_value_SYS_exec_time_stats:
1208 static constexpr const char *
const names[5] = {
"runner.RX()",
"runner.DO()",
"runner.TX()",
"runner.RXDOTX()",
"other.ID = " };
1209 std::string actor = {};
1219 snprintf(str,
sizeof(str),
" %s: %s -> (%d, %d, %d) us over %f sec",
1230 case eoerror_value_SYS_ctrloop_execoverflowPERIOD:
1233 uint16_t current =
static_cast<uint16_t
>((
m_dnginfo.
param64 >> 48) & 0xffff);
1238 snprintf(str,
sizeof(str),
" %s: RXDOTX cycle budget = %d us, RXDOTX exec time = %d us, (rx, do, tx) = (%d, %d, %d) us",
1247 case eoerror_value_SYS_ctrloop_histogramPERIOD:
1251 for(uint8_t i=0; i<8; i++)
1254 v[i] =
static_cast<float>(
x)/255.0;
1257 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",
1260 v[0], v[1], v[2], v[3], v[4], v[5], v[6],
1266 case eoerror_value_SYS_proxy_forward_fails:
1268 snprintf(str,
sizeof(str),
" %s. ROP.sign=%d, ROP.id=%d. Proxy list capacity is %d, size is %d ",
1277 case eoerror_value_SYS_proxy_ropdes_notfound:
1284 case eoerror_value_SYS_canservices_canprint:
1290 case eoerror_value_SYS_canservices_rxmaisbug:
1296 case eoerror_value_SYS_canservices_rxfromwrongboard:
1302 case eoerror_value_SYS_transceiver_rxseqnumber_error:
1309 case eoerror_value_SYS_transceiver_rxseqnumber_restarted:
1315 case eoerror_value_SYS_canservices_board_detected:
1356 snprintf(str,
sizeof(str),
" %s on CAN port=%s with address %d. Fw ver is %d.%d.%d. Proto ver is %d.%d",
1358 fw_build, fw_major, fw_minor, proto_major, proto_minor );
1362 case eoerror_value_SYS_canservices_board_wrongprotversion:
1391 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",
1393 fw_build, fw_major, fw_minor, proto_major, proto_minor, req_proto_major, req_proto_minor );
1397 case eoerror_value_SYS_canservices_board_notfound:
1399 eObrd_type_t general_brd_type = eoboards_cantype2type((eObrd_cantype_t)
m_dnginfo.
param16);
1400 snprintf(str,
sizeof(str),
" %s The board is on CAN port=%s with address %d. Board type is %s.",
1407 case eoerror_value_SYS_canservices_boards_lostcontact:
1409 eOmn_serv_category_t serv_category;
1412 getCanMonitorInfo(serv_category, lostCanBoards1, lostCanBoards2);
1414 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Lost can boards on (can1map, can2map) = ([ %s ], [ %s ] ).",
1416 eomn_servicecategory2string(serv_category),
1417 lostCanBoards1, lostCanBoards2
1424 case eoerror_value_SYS_canservices_boards_retrievedcontact:
1426 eOmn_serv_category_t serv_category;
1427 diagstr retrievedCanBoards1 = {0};
1428 diagstr retrievedCanBoards2 = {0};
1429 getCanMonitorInfo(serv_category, retrievedCanBoards1, retrievedCanBoards2);
1431 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Retrieved can boards on (can1map, can2map) = ([ %s ], [ %s ] ).",
1433 eomn_servicecategory2string(serv_category),
1434 retrievedCanBoards1, retrievedCanBoards2
1441 case eoerror_value_SYS_canservices_monitor_regularcontact:
1443 eOmn_serv_category_t serv_category;
1444 diagstr foundCanBoards1 = {0};
1445 diagstr foundCanBoards2 = {0};
1446 getCanMonitorInfo(serv_category, foundCanBoards1, foundCanBoards2);
1448 snprintf(str,
sizeof(str),
"%s Type of service category is %s. CAN boards are on (can1map, can2map) = ([ %s ], [ %s ])",
1450 eomn_servicecategory2string(serv_category),
1457 case eoerror_value_SYS_canservices_monitor_lostcontact:
1459 eOmn_serv_category_t serv_category;
1462 getCanMonitorInfo(serv_category, lostCanBoards1, lostCanBoards2);
1464 snprintf(str,
sizeof(str),
"%s Type of service category is %s. Lost CAN boards are on (can1map, can2map) = ([ %s ], [ %s ]).",
1466 eomn_servicecategory2string(serv_category),
1473 case eoerror_value_SYS_canservices_monitor_retrievedcontact:
1475 eOmn_serv_category_t serv_category;
1476 uint32_t totRetrvTime;
1477 diagstr retrievedCanBoards1 = {0};
1478 diagstr retrievedCanBoards2 = {0};
1479 getCanMonitorInfoWithTime(serv_category, retrievedCanBoards1, retrievedCanBoards2, totRetrvTime);
1482 snprintf(str,
sizeof(str),
"%s Type of service category is %s. CAN boards are on (can1map, can2map) = ([ %s ], [ %s ]). Total retrieving time: %d [ms]",
1484 eomn_servicecategory2string(serv_category),
1485 retrievedCanBoards1,
1486 retrievedCanBoards2,
1493 case eoerror_value_SYS_canservices_monitor_stillnocontact:
1495 eOmn_serv_category_t serv_category;
1496 uint32_t totDisappTime;
1499 getCanMonitorInfoWithTime(serv_category, lostCanBoards1, lostCanBoards2, totDisappTime);
1501 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]",
1503 eomn_servicecategory2string(serv_category),
1512 case eoerror_value_SYS_unspecified:
1513 case eoerror_value_SYS_tobedecided:
1514 case eoerror_value_SYS_memory_zerorequested:
1515 case eoerror_value_SYS_memory_notinitialised:
1516 case eoerror_value_SYS_memory_missing:
1517 case eoerror_value_SYS_mutex_timeout:
1518 case eoerror_value_SYS_wrongparam:
1519 case eoerror_value_SYS_wrongusage:
1520 case eoerror_value_SYS_runtimeerror:
1521 case eoerror_value_SYS_runninginfatalerrorstate:
1522 case eoerror_value_SYS_udptxfailure:
1523 case eoerror_value_SYS_configurator_udptxfailure:
1524 case eoerror_value_SYS_runner_udptxfailure:
1525 case eoerror_value_SYS_runner_transceivererror:
1526 case eoerror_value_SYS_canservices_rxfifooverflow:
1527 case eoerror_value_SYS_proxy_forward_ok:
1528 case eoerror_value_SYS_proxy_forward_callback_fails:
1529 case eoerror_value_SYS_proxy_reply_ok:
1530 case eoerror_value_SYS_proxy_reply_fails:
1531 case eoerror_value_SYS_canservices_boards_missing:
1532 case eoerror_value_SYS_canservices_boards_searched:
1533 case eoerror_value_SYS_canservices_boards_found:
1534 case eoerror_value_SYS_transceiver_rxinvalidframe_error:
1540 case EOERROR_VALUE_DUMMY: