Re: UDS Service TransferData with MAX_DATA (4093 bytes) length
Posted: Mon 15. Feb 2021, 10:10
Hello,
1) You can call UDS_RemoveMapping_2013 (or PUDS_PARAM_MAPPING_REMOVE with 1.x version), then configure a new mapping.
2) You need to change PUDS_PARAMETER_SERVER_ADDRESS (or PUDS_PARAM_SERVER_ADDRESS with 1.x version) so that it matches the source address in your message.
UDS channel will discard any Rx UDS messages whose target address does not match its server address or is not listed in the allowed filter address: see parameter PUDS_PARAMETER_ADD_LISTENED_ADDRESS (or PUDS_PARAM_SERVER_Filter with 1.x version).
3) Changing target address is common, it means that you want to send messages to different ECUs. Simply define as many mapping as required.
Changing the source address is more unsual, you should either:
- add multiple filter addresses (so that the API instance knows that it must handle multiples server addresses), then configure the required mappings.
- or remove any mappings and filtered addresses, redefine your server address, and add new mappings. If you're not expecting any message, uninitializing the channel and reconfiguring it is also a possibility: this is what I would recommend in automated testing for instance.
1) You can call UDS_RemoveMapping_2013 (or PUDS_PARAM_MAPPING_REMOVE with 1.x version), then configure a new mapping.
2) You need to change PUDS_PARAMETER_SERVER_ADDRESS (or PUDS_PARAM_SERVER_ADDRESS with 1.x version) so that it matches the source address in your message.
UDS channel will discard any Rx UDS messages whose target address does not match its server address or is not listed in the allowed filter address: see parameter PUDS_PARAMETER_ADD_LISTENED_ADDRESS (or PUDS_PARAM_SERVER_Filter with 1.x version).
3) Changing target address is common, it means that you want to send messages to different ECUs. Simply define as many mapping as required.
Changing the source address is more unsual, you should either:
- add multiple filter addresses (so that the API instance knows that it must handle multiples server addresses), then configure the required mappings.
- or remove any mappings and filtered addresses, redefine your server address, and add new mappings. If you're not expecting any message, uninitializing the channel and reconfiguring it is also a possibility: this is what I would recommend in automated testing for instance.