From: Zac Nelson Date: Wed, 5 Oct 2016 17:25:09 +0000 (-0700) Subject: Reduce max response payload size. (#7) X-Git-Tag: 5.0.2~273^2~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=e506334e270d77b20c0bc259ac6c7d8c9b702b7a;p=apps%2Fagl-service-can-low-level.git Reduce max response payload size. (#7) * reduce max payload size. see OpenXC vi-firmware issue #375 https://github.com/openxc/vi-firmware/issues/375. * update isotp dependency with reduce isotp message size. --- diff --git a/deps/isotp-c b/deps/isotp-c index 4e737532..ee24440b 160000 --- a/deps/isotp-c +++ b/deps/isotp-c @@ -1 +1 @@ -Subproject commit 4e7375321a029a32989bc7546329c385e6edb80f +Subproject commit ee24440b7c123ab1b0317e57be33e837a1cb51f1 diff --git a/src/uds/uds_types.h b/src/uds/uds_types.h index 66bf7437..4ebc150c 100644 --- a/src/uds/uds_types.h +++ b/src/uds/uds_types.h @@ -11,7 +11,7 @@ extern "C" { // TODO This still doesn't have enough space for the largest possible // multiframe response. May need to dynamically allocate in the future. -#define MAX_UDS_RESPONSE_PAYLOAD_LENGTH 255 +#define MAX_UDS_RESPONSE_PAYLOAD_LENGTH 127 #define MAX_UDS_REQUEST_PAYLOAD_LENGTH 7 #define MAX_RESPONDING_ECU_COUNT 8 #define VIN_LENGTH 17