Telematics SDK - User Guide
v1.63.7
|
This section has details about the simulation for APIs under the telux::loc namespace.
The location simulation framework provides the ability to record location data from an actual Telematics device. Applications using ILocationManager APIs will get reports from this recorded data.
The framework allows responses to each API to be configured via a JSON file.
Each location manager has its own JSON configuration file. Clients can configure these files for:
Location Manager: configured via simulation/json/api/loc/ILocationManager.json
Example:
"startBasicReports": { "callbackDelay": 400, "error": "SUCCESS", "status": "SUCCESS" },
Location Configurator: configured via simulation/json/api/loc/ILocationConfigurator.json
Example:
"configureRobustLocation": { "callbackDelay": 400, "error": "SUCCESS", "status": "SUCCESS" },
Dgnss Manager: configured via simulation/json/api/loc/IDgnssManager.json
Example:
"createSource": { "callbackDelay": 400, "status": "SUCCESS" },
Currently, only the following APIs can be invoked using data from the prerecorded files:
The remaining APIs only provide canned data in their invocation. Future releases will add support for providing data from the prerecorded file for the following APIs-
Location SystemInfo Reports – Canned response generated from within the LocationManagerStub whenever the client registers for the event for the first time.
Future releases will support periodic triggers dynamically.
Xtra Updates – Canned response generated from within the LocationConfiguratorStub whenever the Xtra feature is enabled or disabled. Future releases will support periodic triggers dynamically.
The location simulation has the ability to provide PVT data to clients that is prerecorded/captured from the target device in the form of a CSV.
Reports captured via CSV currently:
Basic location and Detailed PVT Location report. Other reports such as NMEA, SV, Measurements, and Jammer provide canned responses.
Data representation:
Data reporting:
Client usage:
The goal of the recording utility is to capture the location reports running on the target device so that the collected data can be used for the off-target SDK simulation.
Reports supported by the recording utility currently:
Basic location and Detailed PVT Location report.
Data representation:
The tool to capture data is provided under:
simulation/recording_simulation.sh
simulation/recording_simulation.bat
Client usage: