Automotive demo - IoT Device Simulator

Automotive demo

Routes

The solution includes an Amazon S3 bucket to store pre-defined routes for the automotive demo. The routes are used to define the path the vehicle takes, and some routes include random triggers that could arise throughout the route, such as high oil temperature. The route locations are defined in the stages. Each stage contains a start and end position. The automotive demo device moves along the stages based on various calculations, such as the speed of the device. The latitude and longitude of the device is reflective of which stage the device is currently navigating. The device location updates each time it moves between a stage. It might take multiple messages before a device moves from one stage to the next.

Running the automotive demo

The solution contains an automotive demo which simulates a connected vehicle. The automotive demo uses one of 18 defined routes that exist in an Amazon S3 bucket that is created when the solution is launched. It then uses various calculations in the simulator Lambda function to simulate data such as fuel consumption, vehicle speed, acceleration and more. With the automotive demo simulation, you can view a map with the location of the running devices.

To use the automotive demo, complete the following steps:

  1. Create an Automotive Demo device type.

    1. Navigate to the Device Types page.

    2. Choose Create Device Type.

    3. Choose Automotive Demo.

    4. The payload is auto populated. Enter the rest of the fields such as Name and Topic.

    5. Choose Save.

  2. Create a Simulation.

    1. Navigate to the Simulations page.

    2. Choose Create Simulation.

    3. Change the Simulation Type field to Automotive.

    4. In the dropdown field for devices, you can view your automotive demo device types.

    5. Enter the required fields.

    6. Choose Save.

  3. Run the simulation.

    1. Run the simulation from the Simulations page by checking the desired simulations then choose Start Simulations.

    2. Alternatively, choose View next to the simulation you want to run, then choose Start to run the simulation.

  4. View the simulation.

    1. Choose View next to the simulation you want to view.

    2. If the simulation is running, you can view a map with the locations of the devices, and up to 100 of the most recent messages sent to the IoT topic.