Working Sample of J1939 & Multiple CAN Devices on the Host
Posted: Thu 18. Aug 2016, 14:51
Can you provide a working sample of sending and receiving J1939 messages? Preferably in C#? You must have this, if for no other reason to have tested out this API originally.
Also, I have looked through the API documentation and it isn't clear to me how to programmatically control two different CAN devices (on the same Host PC) from this API. When you connect to the CAN device (using ClientConnect()) there doesn't appear to be anyway to specify the device address. In my case I am using PCAN-USB devices which have two different hex addresses (ABh and FFh). How can I establish connection to each of these simultaneously (or even not simultaneously)?
Any help would be greatly appreciated.
Also, I have looked through the API documentation and it isn't clear to me how to programmatically control two different CAN devices (on the same Host PC) from this API. When you connect to the CAN device (using ClientConnect()) there doesn't appear to be anyway to specify the device address. In my case I am using PCAN-USB devices which have two different hex addresses (ABh and FFh). How can I establish connection to each of these simultaneously (or even not simultaneously)?
Any help would be greatly appreciated.