Discover the new mydSPACE services: License Management, the new dSPACE Help, and dSPACE Chatbot for User Documentation. Find more information and support on our dedicated support page. Learn more & get support

FAQ 247: Bypassing - Service Command Failed

Question

I get messages like

dsbypass_service_t: Service command failed

OR

dsbypass_service_t: Service parameter illegal

in a Bypassing Scenario, either with the ECU Interface Manager or with RTI Bypass Blockset. I would like to know which Service Command has failed or which Service parameter is illegal. Can I extend the messages from the real-time hardware to gain further information?

Solution

The following method describes a set of debug macros which can be activated to create additional information regarding the communication between the ECU and the real-time hardware.

Please activate the following debug macros

DSBYPASS_DEBUG_ON,
DSBYPASS_DEBUG_FILE_AND_LINE_ON and
DSBYPASS_DEBUG_RUNTIME_ON

to get additional run-time information about the communication.

Bypass scenario created with RTI Bypass Blockset

Type the following set of compiler options

-DDSBYPASS_DEBUG_ON -DDSBYPASS_DEBUG_FILE_AND_LINE_ON
-DDSBYPASS_DEBUG_RUNTIME_ON

at “Compiler Options” on the model’s Configuration Parameters’ page “Code Generation > RTI general build option"

Afterwards delete the Build-Directory (<modelname>_rti1xxx) and start the build process again.

You may use the optional RTI M command rti_build(bdroot, ‘Command’, ‘CleanUpAll’) for deleting the build directory. Further information will be posted at the dSPACE LOG-File and the ControlDesk LOG-Viewer.

Bypass scenario created with ECU Interface Manager

Type the following set of debug macros

DSBYPASS_DEBUG_ON=1 DSBYPASS_DEBUG_FILE_AND_LINE_ON=1

DSBYPASS_DEBUG_RUNTIME_ON=1


(without “-D”, but assignment with 1) at “Macros to be defined” on the ConfigurationDesk’s Build Configuration View, subset “Default Build Configuration Set”.

The described debug macros add more information about the failing service commands or service parameters. The mentioned debug macros help to draw helpful conclusions from the Bypass communication. 

Do not forget to remove the debug macros after solving the issue.

Tags

Date 2024-01-18
Information Type Frequently Asked Questions

Stay up-to-date with our dSPACE direct newsletter service.

With our dSPACE newsletter service, we will keep you informed about current use cases and new solutions and products, as well as trainings and events. Sign up here for a free subscription.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.