While build ECSP based on TCNOpen, the built-in redundant content filter of PD will cause issue on some edge cases, including:
So we like to add a build flag to indicate if user need to be informed on every received PD packet, i.e., disable the redundant content filtering.
Attachment is the proposed patch.
Actually this could also be useful for other situations (SDT?).
I would rather prefer a configuration-time flag than a compiler flag to be able to handle both cases in the same implementation (TRDP_FLAGS_T). This could relieve the application if there are higher cycled packets around.
XML definition needs to be updated
XML/XSD: The callback-tag can now be 'on', 'off' & 'always'. The latter will enable callbacks on reception of a PD, regardless if content changed or not.
Additional packet flag 0x10 (TRDP_FLAGS_FORCE_CB).
Setting of a callback function pointer is mandatory, of course.