CAN bus based test automation on DEWESoftx (Sequencer, C++ script)

  • Software
  • CAN bus based test automation on DEWESoftx (Sequencer, C++ script)
Chinmay Admane

Posted on 24.06.2021 18:15

Hello,

I am trying to set up a automated test for a project using DEWESoftx and DEWE-43A hardware unit. The test I have to conduct are based of some transmit and receive CAN messages. It involves sending a couple of CAN messages and then checking if the correct/expected response is received in timey manner. My question is can I use DEWESoftx Sequencer for automating my tests?

I read up the DEWESoftx Sequencer manual on the website and saw the support videos in the Online PRO trainings and was not able to figure out how would I send out a CAN message and check for a received message. Is this some thing that I would be able to do if I go for C++ script license? Or I am looking at the wrong tool for my use case and should go for a different tool?


Thanks,

Chinmay.

Primoz Lapi
Customer Support Engineer
Posted on 11.07.2021 11:58

Hi,


from the description, it looks like this can be done with the sequencer.

For the sequencer to be able to send out the CAN messages first go to settings tab, devices and add CAN device with a + button.


When the device is added write the number of the port that will be used together with sequencer.


In the sequencer you can then use the Remote control block to send the message.


If you would like to check the message values you can then use the calculation block.

Would it be possible to get some more information of what are you looking in received messages?


Best regards,

Primož




Chinmay Admane

Posted on 13.07.2021 19:52

@Primoz Lapi

Hey Primoz,


Thanks for your response!


I am looking for specific values of signals that are coming in the CAN messages in timely manner. So for example if we have signal of one byte that is coming through a CAN message, then I would like to check the updated signal value when I send out a specific CAN message.


Thanks,

Chinmay.

Primoz Lapi
Customer Support Engineer
Posted on 06.08.2021 15:39

Hi,


I'm sorry for the late answer.

You can use IF blocks for checking the value of the CAN message.

Here is an example of how you can check 4 different values and then use a remote control block to output the corresponding response.


Chinmay Admane

Posted on 09.09.2021 23:00

@Primoz Lapi


Hey Primoz,

Couple of questions for you.


If I load a setup file in the sequencer, which has a lot of CAN messages setup to be sent and received periodically, will it start those CAN transmissions automatically?

Or I will have to take care of those CAN transmission and reception separately in Sequencer?

The setup file that I have has a lot of time based math formulas that are running in background and the CAN message signals are tied to those. I was looking for a way to have those formulas run in Sequencer and use that result as a CAN message signal.


Can I access individual CAN message signals that are defined in my setup file? With the Remote control block I could only see ID and Data field for CAN. Do I need to enter the entire CAN message data in Sequencer?


Thanks,

Chinmay


Login to reply to this topic. If you don't have account yet, you can signup for free account .