Use these instructions to create a demo program that issues some simple MOST commands and will familiarize you with setting up the Transform and messages. This project demonstrates Transmit and Receive Driver testing with the system connected to the bench. Procedure In MxVDev:1.Open MxVDev and create a new project. a.Locate the project in a new folder or an existing folder. b.For SUT Type, select Custom. c.Select the RTClock. d.Click Finish. 2.To make the project portable, copy the MOST FBlock DLL file (GIS361Function.dll), and MOST XML catalog (GIS361Function.xml) into the new project’s folder (the same place that the MxV.mxp file is located). In MxTransIt:1.Use the Toolbox to create the MOST Transmit Driver Transform. 2.Click on the MOST Transform to select it. 3.In the Transform's Properties box, under MOST Configuration, click Add the MOST XML catalog (GIS361Function.xml) and K2L MAG generated DLL (GIS361Function.dll), and click Load. Select Amplifier from the FBlock list, specify the DestinationId as 0x170, specify the InstanceId as present in the bench (here in bench InstanceId is 1), and click OK. 4.Select the MOST Transmit Driver transform block and Export the following ports: •Tx_Amplifier_SurroundLevel_Get •Tx_Amplifier_SurroundLevel_Set_SurroundLevel •Tx_Amplifier_SinkALC_StartResultAck_LoudnessOnOff 5.Now add the MOST Receive Driver Transform block from the Toolbox. 6.Click on the MOST Transform to select it. 7.In the Transform's Properties box, under MOST Configuration, click 8.Add the MOST XML catalog (GIS361Function.xml) and K2L MAG generated dll (GIS361Function.dll), and click Load. 9.Select Amplifier from the FBlock list, specify the DestinationId as 0x100, the SrcId as 0x170, and specify the InstanceId as present in the bench (here in bench the InstanceId is 1). 10.Click OK. 11.Select the MOST Transmit Driver transform block and Export the following ports: •Rx_Amplifier_SurroundLevel_Status_ SurroundLevel •Rx_Amplifier_SinkALC_ResultAck_LoudnessOnOff 12.Click Save ( In MxVDev:1.Create a new Scenario. 2.Create a new TestCase, with time duration of 7800 ms as below. 3.Add the five exported signals to the TestCase. 4.Add the TestCase to the Scenario. It should look like this: 5.Create transitions on the Tx_Amplifier_SurroundLevel_Get Signal from 0.2s to 0.3s and 3s to 8s. It should look like this: 6.Similarly draw transitions for all other Signals as follows: •For Tx_Amplifier_SCVBassBoost_Set_SurroundLevel, 2s to 8s with value 12. •For Tx_Amplifier_SinkALC_StartResultAck_LoudnessOnOff, 4s to 6s with value 1 (On). •For Rx_Amplifier_SCVBassBoost_Status_SurroundLevel, 3s to 8s with value 12. •For Rx_Amplifier_SinkALC_ResultAck_LoudnessOnOff, 4s to 6s with value 1 (On). The TestCase should look like the following: 7.Click Save All ( Note: The bench should be connected to the system with K2L ATS service running. The TestCase sends an Amplifier command to get the present SurroundLevel. Then it sets the SurroundLevel to 12, and verifies that the bench responds by sending a ResultAck with the updated value. Again it sends a get Signal to check whether the value is updated or not. It turns On the LoundnessOnOff for SinkALC, and checks for the response from the ECU with an updated value. After completing the execution, the TestCase should look something like this: The violet dots in the plot area indicate the actual response transitions from the MOST bus. They may not occur at exactly same time as specified by the expected pattern. The latency of received signal may be due to many factors, and never a big issue as per as the payload is same. User can set small time tolerance (±50ms) to make the result accepted as per the requirements. Following are the received signals from the K2L viewer:
|
This demonstration project tests the Transmit and Receive Drivers as well as the VNode Transform (not connected to a bench), by simulating Fblocks and updating responses manually. Procedure In MxVDev:1.Open MxVDev and create a new project: a.Locate the project in a new folder or an existing folder. b.For SUT Type, select Custom. c.Select the RTClock. d.Click Finish. 2.To make the project portable, copy the MOST FBlock dll file (GIS361Function.dll), and MOST XML catalog (GIS361Function.xml) into the new project’s folder (the same place that the MxV.mxp file is located). In MxTransIt:1.Add the MOST Transmit Driver Transform from the Toolbox. 2.Click on the MOST Transmit Driver Transform to select it. 3.Add the MOST XML catalog and K2L MAG generated DLL, as in Project 1, and click the Load button. 4.From the FBlock list, select the AudioDiskPlayer. Don’t specify any DestinationId. Specify the InstanceId (here the InstanceId is 1). 5.Select the MOST Transmit Driver transform and export the following port: •Tx_AudioDiskPlayer_NowPlaying_Get 6.Add the MOST VNode Transform from the Toolbox. 7.Click on the MOST VNode Transform to select it. 8.In the Transform's Properties box, under MOST Configuration, click 9.In the dialog box, for AudioDiskPlayer check the Simulate and Transmit for option. Click OK. 10.Select the MOST VNode transform and export the following ports: •Fb_AudioDiskPlayer_NowPlaying_Status_PlaybackState •Fb_AudioDiskPlayer_NowPlaying_Status_NowPlaying 11.Add the MOST Receive Driver Transform from the Toolbox. 12.Click on the MOST Receive Driver Transform to select it. 13.In the Transform's Properties box, under MOST Configuration, click 14.In the dialog box, for AudioDiskPlayer check Receive for. Don’t specify any DestinationId or SrcId. Click OK. 15.Select the MOST Receive Driver Transform and export the following ports: •Rx_AudioDiskPlayer_NowPlaying_Status_PlaybackState •Rx_AudioDiskPlayer_NowPlaying_Status_NowPlaying 16.Click Save ( In MxVDev:1.Create a new Scenario. 2.Create a new TestCase, with time duration as 7800 ms as below.
3.Add the five exported signals to the TestCase. Add the TestCase to the Scenario. It should look like this:
4.Double click on the Tx_AudioDiskPlayer_NowPlaying_Get Signal and create a transition from 5s to 8s. 5.Create transitions for all other Signals as follows: For Fb_AudioDiskPlayer_NowPlaying_Status_PlaybackState, 2s to 8s, with value PS_PLAYING(2). For Fb_AudioDiskPlayer_NowPlaying_Status_NowPlaying, create transition at 2s. Use following values for the message parameters:
For Rx_AudioDiskPlayer_NowPlaying_Status_PlaybackState, 2s to 8s, with value PS_PLAYING(2). For Rx_AudioDiskPlayer_NowPlaying_Status_NowPlaying, create a transition at 2s. Use the same parameters as used for Fb_AudioDiskPlayer_NowPlaying_Status_NowPlaying. The TestCase should look like the following:
6.Click Save All ( The TestCase sends an AudioDiskPlayer command to Get the NowPlaying Status. Then it updates the parameters of the Status of NowPlaying, and verifies that the bench responds or not with a Status with the updated value. Again it sends a Get signal to check for the response from the ECU and to check whether the value is updated or not. Set time tolerances before running the test to eliminate test failure due to time latency. After completing the execution of the TestCase, it should look something like this:
The following are the Signals received in the K2L viewer:
|