HiTI's engineer:
at present, we want to use the function of updating dcc bin file of app _ single _ cam _ main.c. If we input' u', we will execute the function of appDccUpdatefromFS, print the log discovery, and we will execute this function, but the effect will not change according to the update of bin file. Excuse me, what is the problem?
static vx_status app_run_graph_interactive(AppObj *obj)
{
vx_status status;
uint32_t done = 0;
char ch;
FILE *fp;
app_perf_point_t *perf_arr[1];
uint8_t channel_mask = (1 << obj->selectedCam);
status = app_run_task_create(obj);
if (status != 0)
{
printf("ERROR: Unable to create task\n");
}
else
{
appPerfStatsResetAll();
while (!done && (status == VX_SUCCESS))
{
printf(menu);
ch = getchar();
printf("\n");
switch (ch)
{
case 'p':
appPerfStatsPrintAll();
status = tivx_utils_graph_perf_print(obj->graph);
appPerfPointPrint(&obj->total_perf);
printf("\n");
appPerfPointPrintFPS(&obj->total_perf);
appPerfPointReset(&obj->total_perf);
printf("\n");
break;
#ifdef _APP_DEBUG_
case 's':
save_debug_images(obj);
break;
#endif
case 'e':
perf_arr[0] = &obj->total_perf;
fp = appPerfStatsExportOpenFile(".", "basic_demos_app_single_cam");
if (NULL != fp)
{
appPerfStatsExportAll(fp, perf_arr, 1);
status = tivx_utils_graph_perf_export(fp, obj->graph);
appPerfStatsExportCloseFile(fp);
appPerfStatsResetAll();
}
else
{
printf("fp is null\n");
}
break;
#ifdef A72
#if defined(LINUX)
case 'u':
appDccUpdatefromFS(obj->sensor_name, obj->sensor_wdr_mode,
obj->node_aewb, 0,
obj->node_viss, 0,
obj->node_ldc, 0,
obj->context);
break;
#endif
#endif
case 'x':
obj->stop_task = 1;
done = 1;
break;
default:
printf("Unsupported command %c\n", ch);
break;
}
}
app_run_task_delete(obj);
}
if (status == VX_SUCCESS)
{
status = appStopImageSensor(obj->sensor_name, channel_mask);
}
return status;
}