01-16-2019 10:06 AM
I am working on using the XCP master custom device to read channels under the 'Characteristics' section from the ECU. These are scalar constant values from the ECU (mostly boolean). I am having issues reconnecting to the ECU during a ECU power cycle test:
I tried two different methods, using the read periodic and read using trigger settings :
Two questions:
Solved! Go to Solution.
01-17-2019 01:48 AM
I've just tested that this works like expected with the demo ECU. A CONNECT command is always sent after a power off to establish a new connection. This is by purpose and will not confuse the master.
1. The trigger channel is automatically reset to 0 just after the characteristic is read, so setting the trigger one time will read the characteristic one time. The reading is executed in a separate thread, so it will not affect the main VeriStand loop.
2. There were changes since 2013 but the ECU power off behavior should work the same way. Which version are you using now? Maybe you could record an XCP logfile (option in miscellaneous tab) which would give more information?
01-24-2019 07:55 AM - edited 01-24-2019 07:57 AM
Thank you for that explanation. I went back to the VS 2013 and it looks like there was a mistake on my part. The XCP Characteristic Read setting was set to 'Read Once'. As a result of that when I powered off the ECU, I did not see a new CONNECT command sent. When I changed the setting to read periodic, I was able to replicate the same issue on VS 2013.
I see that the read char is set up for a polling type of communication with the ECU. I have reconfigured the model to use the 'Read using Trigger' setting to stop sending a CONNECT command when the ECU is powered off.
Also, I am using VeriStand 2017 with ECUMC 18.0