servers: updated fw-sw api version check error message, m3 and g2: updated min fw version

This commit is contained in:
maliakal_d 2020-10-02 11:17:11 +02:00
parent 855ed36db2
commit 91efecd4ca
8 changed files with 29 additions and 29 deletions

View File

@ -164,10 +164,10 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > REQRD_FRMWR_VRSN) { if (sw_fw_apiversion > REQRD_FRMWR_VRSN) {
sprintf(initErrorMessage, sprintf(initErrorMessage,
"This detector software software version (0x%llx) is " "This firmware-software api version (0x%llx) is incompatible "
"incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. 0x%llx) to be " "(0x%llx).\nPlease update detector software to be compatible "
"compatible with this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)REQRD_FRMWR_VRSN); (long long int)REQRD_FRMWR_VRSN);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));

View File

@ -156,13 +156,13 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > REQUIRED_FIRMWARE_VERSION) { if (sw_fw_apiversion > REQUIRED_FIRMWARE_VERSION) {
sprintf( sprintf(initErrorMessage,
initErrorMessage, "This firmware-software api version (0x%llx) is incompatible "
"This detector software software version (%lld) is incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. %lld) to be compatible with " "(0x%llx).\nPlease update detector software to be compatible "
"this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)REQUIRED_FIRMWARE_VERSION); (long long int)REQUIRED_FIRMWARE_VERSION);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));
initError = FAIL; initError = FAIL;
return; return;

View File

@ -152,10 +152,10 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > requiredFirmwareVersion) { if (sw_fw_apiversion > requiredFirmwareVersion) {
sprintf(initErrorMessage, sprintf(initErrorMessage,
"This detector software software version (0x%llx) is " "This firmware-software api version (0x%llx) is incompatible "
"incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. 0x%llx) to be " "(0x%llx).\nPlease update detector software to be compatible "
"compatible with this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)requiredFirmwareVersion); (long long int)requiredFirmwareVersion);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "sls_detector_defs.h" #include "sls_detector_defs.h"
#define REQRD_FRMWRE_VRSN (0x200707) #define REQRD_FRMWRE_VRSN (0x200925)
#define KERNEL_DATE_VRSN "Wed May 20 13:58:38 CEST 2020" #define KERNEL_DATE_VRSN "Wed May 20 13:58:38 CEST 2020"
#define CTRL_SRVR_INIT_TIME_US (300 * 1000) #define CTRL_SRVR_INIT_TIME_US (300 * 1000)

View File

@ -138,10 +138,10 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > requiredFirmwareVersion) { if (sw_fw_apiversion > requiredFirmwareVersion) {
sprintf(initErrorMessage, sprintf(initErrorMessage,
"This detector software software version (0x%llx) is " "This firmware-software api version (0x%llx) is incompatible "
"incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. 0x%llx) to be " "(0x%llx).\nPlease update detector software to be compatible "
"compatible with this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)requiredFirmwareVersion); (long long int)requiredFirmwareVersion);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));

View File

@ -160,10 +160,10 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > REQRD_FRMWR_VRSN) { if (sw_fw_apiversion > REQRD_FRMWR_VRSN) {
sprintf(initErrorMessage, sprintf(initErrorMessage,
"This detector software software version (0x%llx) is " "This firmware-software api version (0x%llx) is incompatible "
"incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. 0x%llx) to be " "(0x%llx).\nPlease update detector software to be compatible "
"compatible with this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)REQRD_FRMWR_VRSN); (long long int)REQRD_FRMWR_VRSN);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));

View File

@ -136,10 +136,10 @@ void basictests() {
// check for API compatibility - old server // check for API compatibility - old server
if (sw_fw_apiversion > requiredFirmwareVersion) { if (sw_fw_apiversion > requiredFirmwareVersion) {
sprintf(initErrorMessage, sprintf(initErrorMessage,
"This detector software software version (0x%llx) is " "This firmware-software api version (0x%llx) is incompatible "
"incompatible.\n" "with the software's minimum required firmware version "
"Please update detector software (min. 0x%llx) to be " "(0x%llx).\nPlease update detector software to be compatible "
"compatible with this firmware.\n", "with this firmware.\n",
(long long int)sw_fw_apiversion, (long long int)sw_fw_apiversion,
(long long int)requiredFirmwareVersion); (long long int)requiredFirmwareVersion);
LOG(logERROR, (initErrorMessage)); LOG(logERROR, (initErrorMessage));

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "sls_detector_defs.h" #include "sls_detector_defs.h"
#define REQRD_FRMWRE_VRSN 0x190000 #define REQRD_FRMWRE_VRSN (0x200925)
#define KERNEL_DATE_VRSN "Wed May 20 13:58:38 CEST 2020" #define KERNEL_DATE_VRSN "Wed May 20 13:58:38 CEST 2020"
#define CTRL_SRVR_INIT_TIME_US (300 * 1000) #define CTRL_SRVR_INIT_TIME_US (300 * 1000)