IoT Device Simulator
IoT Device Simulator

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Appendix A: Automotive Module

The IoT Device Simulator includes a pre-built automotive module that you can use to simulate vehicle telemetry data using pre-defined device types. The automotive module uses a power train simulation model to generate simulated vehicle telemetry data.

Add Your Mapbox Token (Optional)

The module leverages the location features of Mapbox to provide a map for your simulated vehicles. To display the map in the automotive module, you must register for a free Mapbox developer account. After you register, add your Mapbox token to the IoT Device Simulator.

  1. On the IoT Device Simulator console page, in the navigation menu, select Settings.

  2. In the General tab, enter your Mapbox token.

  3. Select Save.

Note

The Mapbox Token setting is cached when you log in to the device simulator console. If you change to a new token, you must log out of the console and log back in for the change to take effect.

Launch Simulated Vehicles

Use the following procedure to launch virtual connected vehicles.

  1. On the IoT Device Simulator console page, in the navigation menu, select Automotive.

  2. Select + Add Vehicles.

  3. In the Create vehicles window, specify the number of vehicles you want to simulate. Enter a value between 1 and 100.

  4. Select Submit.


                IoT Device Simulator automotive dashboard

Figure 9: Sample automotive simulation dashboard

Manage Simulated Vehicles

To monitor a specific vehicle, on the My Automotive Fleet page, find the applicable vehicle and select View. This shows metadata about the vehicle, the route it is driving, and the telemetry messages being received by AWS IoT during the simulation.

To start a specific vehicle, find the applicable vehicle and select Start. This starts sending simulated data for that vehicle to the AWS IoT topic. To stop a specific vehicle, find the applicable vehicle and select Stop.

To start multiple vehicles, on the My Automotive Fleet page, select the checkbox next to each applicable vehicle. Then, select Start Vehicles. To start all vehicles on the page, select the checkbox in the table header. Then, select Start Vehicles. To stop multiple vehicles, select the checkbox next to each applicable vehicle. Then, select Stop Vehicles. To stop all vehicles on the page, select the checkbox in the table header. Then, select Stop Vehicles.

To remove a vehicle, on the My Automotive Fleet page, find the applicable vehicle and select Delete. In the popup window, select Yes, delete it! to delete the vehicle, or Cancel to abort the deletion.

While the simulated vehicles this solution creates are designed to be used out-of-the-box, you can configure how the automotive module sends data using the Configuration button at the top of the screen.