CAN Data Retrieval
Describes how CAN data travels through the firmware to an app and provides downloads to assist you in retrieving CAN or proxy (vehicle configuration) data.
The proxy data retrieval has been separated from the normal CAN data retrieval as the retrieved values can differ based on vehicle. In the proxy data retrieval section you will find downloads to assist in retrieving these values.
Downloads that are available on this page are indicated by the
symbol.
Sections:
To get CAN data from an application running on the R1 Android platform:
For example code showing how to retrieve CAN data see the Loader page.
LID to Signal Mappings are used to find the Logical Identifiers for the CAN signals.
Transfer Functions are used to map the different CAN architectures to a single base CAN architecture. An example would be a CUSW or Atlantis CAN architecture signal being mapped to a base PowerNet signal.
Proxy data contains vehicle configuration data such as transmisison type. As the proxy data can vary from vehicle to vehicle a special proxy data access package has been created. The instructions and example below enable an application running on the R1 Android platform to get proxy data.
VehLine_Proxy vehLine_Proxy = new VehLine_Proxy();
String vehLine = vehLine_Proxy.getVC_VEH_LINE(IVehicleConfigManager.getVC_VEH_LINE(), IVariantInfo.getCANArchitectureType());
int transType = IVehicleConfigManager.getVC_TransType();
String stringTransType = null;
if (vehLine.equalsIgnoreCase("VEH_DT"))
{
DT_Proxy dt_Proxy = new DT_Proxy();
stringTransType = dt_Proxy.getVC_TransType(transType);
}
else if (vehLine.equalsIgnoreCase("VEH_WL"))
{
WL_Proxy wl_Proxy = new WL_Proxy();
stringTransType = wl_Proxy.getVC_TransType(transType);
}
The Proxy classes can be downloaded and included in your app. The Proxy Test classes provide an example of a mocked implementation.
Updated: 09/16/2020, Androidâ„¢ is a trademark of Google LLC