Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XCP CCP Custom Device Communication errors

Hi everyone.

I'm having troubles with the communication with the XCP and CCP Master Custom Device.

 

I was using a PXIe8821 Chassis and a NI PXI-8512 CAN HS/FD Card but I didn't succed.

Now I'm using a NI PXI-8231 Ethernet Card but I still don't succed. In the Veristand workspace the labels of the controls are red.

 

I did the example of the Slave Simulator with LabVIEW and that have apparently worked the XCP controls were blue and the pwm worked.

I will add all the screens that i get.

xcp1.PNGxcp2.PNGxcp4.PNGxcp5.PNG

 

 

When I Turn on my PXI Chassis I get this 'error' without even trying to download a file to the PXI

 

xcp6.PNG

 

Then I try to deploy the project and I get this windows with apparently no errors.

 

 

xcp7.png

But in the Console Window I get the error -301007

 


xcpkonsole.PNG

 

After maybe 2 minutes I get the following error

 

xcperror.PNG

 

This controls don't work.

 

xcpworkspace.PNG 

 

Am I doing something wrong? What can I try next?

 

Thank you.

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 1 of 23
(5,102 Views)

The error -301007 indicates that the A2L file in use is missing some information about the physical connection. Since we are using XCP on TCP in this case, the A2L is most likely missing the IP address of the ECU DUT. You can uncheck the "Use communications properties of database" option in the "Communications Properties" tab to override the A2L and enter the IP address of the DUT. Alternatively, you can add the IP address to the A2L with a text editor.

 

Verify that the correct IP address and port information are either in the A2L file or are properly overridden with the expected values.

Jeff L
National Instruments
Message 2 of 23
(5,072 Views)

Thanks for the answer. I wrote the IP adress of the Ethernet Card. 

 

new_arer.PNG

 

And I get the following Error.new_error.PNG

 

I don't know if its important but my conection is the next one:

 

IMG_20180416_170841145.jpg

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 3 of 23
(5,068 Views)

You probably need to also include a port number to use. I believe the default is 5555. If you try port zero the communications is likely being blocked or ignored.

Jeff L
National Instruments
Message 4 of 23
(5,052 Views)

I tried that, i changed the Byte Order from Intel to Motorola but nothing happens and I get the same error. The Veristand console says that everything is fine but the PXI console doesn't.

 

Is there any possibility that the A2L file is not compatible or something?

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 5 of 23
(5,042 Views)

Or am I missing the right drivers for the Ethernet Card?(PXI-8231)Unbenannt.PNG

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 6 of 23
(5,038 Views)

I checked the A2L file with the a2l viewer and there are errors and warnings. But I don't know what is the error actually and I can't find the error codes on internet.

 

I don't know if these errors are important or not.

a2l_errors.PNG

 

a2l_errorspt2.PNG

 

Is there anything wrong in this part of the A2L file?

 a2l_file_example.PNG

 

 

 

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 7 of 23
(5,018 Views)

From what I can tell you have the right drivers installed. I wouldn't focus on the A2L just yet. It may have some problems with it as well but since we have not made a connection to the ECU yet those errors haven't come into play. Problems with the A2L file will also generate specific errors and we haven't seen them yet.

 

The error -301053 indicates a simple "Connect" command was issued to the slave DUT and did not receive a response. Any number of things can cause this to happen with the most common being an incorrect IP address, invalid or blocked port number, or software firewalls etc blocking communications. 

 

Your earlier diagram did not include the slave ECU so I am not sure where that fits into the picture. When TCP/IP communication originates from the PXI-8821, It will decide which Ethernet port to use based on the sub net and the PXI-8231 will need to be on a different subnet to differentiate it from the 8821. If your goal is to have the slave ECU attached to the PXI-8231, it will need to be configured to have a different subnet than the one used by the PC to PXI-8821 connection.

Jeff L
National Instruments
Message 8 of 23
(5,009 Views)

Thanks for your answers.

 

Sorry I answered by mail instead of posting.

 

I connected the PXI-8231 back to the computer. with a Ethernet-USB adapter. Both Ethernet cables go back to the Computer.

IMG_20180418_100222572.jpg

 

Maybe that's the problem, isn't it? Because the Slave is in another place and I wanted to see if there was a problem with Veristand and the A2L file first because the Xcp controls were red.

 

I think the IP is correct, about the port I don't know how to verify it. Firewall is the same in all computers here, and it worked in another computer so im guessing that's not the problem but I don't know.

 

I have the same Subnet Mask, by understanding what you wrote, I need to change it.

Should I write 255.254.0.0 ?

koko.PNG

 

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 9 of 23
(5,003 Views)

 

This is what I get now, it's pretty much the same. I double-checked the IP adress and it's correct. I changed the port to 5555 and to 0 nothing changed. I changed the Subnet Mask  to 255.254.0.0 . The labels of the XCP controls in Veristand are still red.

xcp_error4.PNG

 

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 10 of 23
(4,998 Views)