Ixxat USB-to-CAN V2 cannot find Device on Unity3D
CompletedHello! I'm new to using the Ixxat USB-to-CAN adapter with Unity3D. My goal is to receive messages via CAN from my device and utilize the received data to manipulate a Unity object.
Initially, I experimented with demo examples using Visual Studio Code, and everything functioned correctly. However, upon transitioning the code to Unity and attempting to display the data using Debug.Log, it appears that my device is not being recognized.
This is the error I get:
Error selecting device: Could not resolve type with token 01000019 from typeref (expected class 'System.Reflection.Assembly' in assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
UnityEngine.Debug:LogError (object)
MyUtilityNamespace.MyUtility:SelectDevice () (at Assets/Scripts/Utility.cs:52)
CANmanager:Start () (at Assets/Scripts/CANmanager.cs:23)
I also look at an old question about Unity where you provide an example but I don't understand how to use it and run it on Unity.
Hope you can help me.
Thank you,
Veronica
-
Official comment
Dear Veronica,
Unity3D is based on Mono and can not use the normal VCI.NET assemblies, because
Mono does not support the C++/CLI components.I can send to you a .NET programming example using a direct access to the vcinpl.dll instead of the VCI.NET class, that will work with the Unity3D engine environment.
Please register in our online support tool
https://support.hms-networks.com/hc/en-us
and create a support request there, because
unfortunately I can not upload this ZIP file here.
Best regards
Andreas -
Thank you so much Andreas. I've just create a support request there with the same title/question.
Best regards,Veronica
0
Please sign in to leave a comment.
Comments
2 comments