NOTE: These instructions are for partners who are integrating CoPilot with their applications.
After CoPilot is installed on the device, update the configuration settings in CoPilot to access the new configuration and vehicle routing profile settings created using Account Manager (formerly FleetPortal). This can be done in two ways:
Option 1: Use the integration APIs (Preferred)
Use the APIs below to set the following config settings.
CPIK | SDK | |
Set the Driver Id | ConfigurationSetting settingToSetDriver = ConfigurationSetting.Create(ConfigurationSetting.DRIVER_ID, "3269"); CopilotMgr.SetConfigurationSetting(settingToSetDriver); | Msg_ConfigSetStrVal("Fleet Portal", "DriverID", "3269"); |
Set the Device Id | ConfigurationSetting settingToSetDevice = ConfigurationSetting.Create(ConfigurationSetting.DEVICE_ID, "3269"); CopilotMgr.SetConfigurationSetting(settingToSetDevice); | Msg_ConfigSetStrVal(“Fleet Portal”, “DeviceID”, “3269”); |
Set the Partner Id (Provided by Trimble MAPS) | ConfigurationSetting settingToSetPartnerId = ConfigurationSetting.Create(ConfigurationSetting.PARTNER_ID, "ABC123"); CopilotMgr.SetConfigurationSetting(settingToSetPartnerId); | Msg_ConfigSetStrVal(“Fleet Portal”, “PartnerID”, “ABC123”); |
Turn on FleetPortal | ConfigurationSetting settingToSetPostToFP = ConfigurationSetting.Create(ConfigurationSetting.POST_TO_FLEET_PORTAL, ConfigurationSetting.POST_TO_FLEET_PORTAL_TRUE); CopilotMgr.SetConfigurationSetting(settingToSetPostToFP); | Msg_ConfigSetIntVal(“Fleet Portal”, “PostToFleetPortal”, 1); |
Turn on Compliance | ConfigurationSetting settingToEnableCompliance = ConfigurationSetting.Create(ConfigurationSetting.ALLOW_ ENABLE_COMPLIANCE, ConfigurationSetting.ENABLE_COMPLIANCE_TRUE); CopilotMgr. SetConfigurationSetting(settingToEnableCompliance); | Msg_ConfigSetIntVal(“User Settings”, “AllowEnableCompliance”, 1); |
Option 2: Modify the product.cfg
The product.cfg file can be found at : C:\ProgramData\ALK Technologies\CoPilot v9 Laptop
Open and add the following lines to the product.cfg file and restart CoPilot.
[Fleet Portal]
"Connected"=1
"PostToFleetPortal"=1
"PartnerID"="ABC123"
"DeviceID"="12345"
"DriverID"="98765"
[User Settings]
"AllowEnableCompliance"=1