After CoPilot is installed on the device, update the configuration settings in CoPilot to access our web tools. This can be done in two ways:


Option 1: Use the integration APIs (Preferred)

 

Use the APIs below to set the following config settings. Restart CoPilot to ensure that the new settings take effect.

 

 

CPIK

SDK

Set the Driver Id

ConfigurationSetting settingToSetDriver = ConfigurationSetting.Create(ConfigurationSetting.DRIVER_ID, "3269");

CopilotMgr.SetConfigurationSetting(settingToSetDriver);

Msg_ConfigSetStrVal("Fleet Portal", "DriverID", "98765");

Set the Device Id

ConfigurationSetting settingToSetDevice = ConfigurationSetting.Create(ConfigurationSetting.DEVICE_ID, "3269");

CopilotMgr.SetConfigurationSetting(settingToSetDevice);

Msg_ConfigSetStrVal("Fleet Portal", "DeviceID", "12345");

Set the Partner Id

(Provided by ALK)

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: Create and/or Modify the product.cfg

 

The product.cfg file can be found in the following locations:

PLATFORM
COPILOT CONTENT FOLDER NAME
Windows Mobile
\Program Files\CoPilot
Windows Laptop
C:\ProgramData\ALK Technologies\CoPilot Laptop
Android
\storage\com.alk.copilot
WinCE
\storage\CoPilot



[Fleet Portal]

"Connected"=1        

"PostToFleetPortal"=1

"PartnerID"="ABC123"

"DeviceID"="12345"

"DriverID"="98765"


[User Settings]

"AllowEnableCompliance"=1