![]() A working example of this parameter would be "Ana:1:137.138.37.224". The third field is the IP address of the Anagate device. For my tests I have been using an AnaGate CAN Duo device, and in this case the can line can be 0 or 1. The first field is simply "Ana", to identify this as an Anagate CAN bus. There is 3 different things into this string, separated by the symbol ':'. param name: In this parameter information is provided to find the Anagate device and connect to it.bool AnaCanScan::createBUS(const char *name,const char *parameters) This is the interface provided from the Common Can Component that will perform the connection with the Anagate device and it's configuration.More detail about this 3 calls is provided below: This two calls need to be mapped into the default interface of the Common CAN Component, being this the call createBUS. In order to connect with the Anagate device we need to use the API call CANOpenDevice, and in order to configure the device we need to use the call CANSetGlobals. ![]() ![]() The Anagate native API is available on their webpage, and there are versions available for Windows and Linux. In order to get more detail, please, refer to the Common CAN Component code directly, available in svn and github. In this page I will give an overview of the API calls that we are going to use from the Anagate native API, in order to provide an implementation for the Common CAN Component using this API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |