Typical Workflow to Monitor a Simulated Vehicle

Create a Truck simulation model using the IoT Digital Twin Simulator application and then use the Truck simulation model to create simulated device instances. Start the simulator and monitor the simulated vehicles and devices on Oracle IoT Fleet Monitoring Cloud Service.

Simulated devices behave like real devices. You can control and monitor the devices in real time, turn them off and on, and configure the devices to generate alerts and events.

The simulated devices are linked, tracked, and monitored in Oracle IoT Fleet Monitoring Cloud Service, which allow you to test the application's capabilities and features.

You can customize the device attributes, alerts, and actions in your simulation models, which can replicate your real sensor devices. You can also add events, images, and data sources for your simulation models.

Task Descrition More Information

Access the IoT Digital Twin Simulator Dashboard

The IoT Digital Twin Simulator Dashboard provides a set of existing simulation models, and the statuses of the simulated devices associated with these models. Use the dashboard to create a Truck simulator model.

Access the IoT Digital Twin Simulator Dashboard

Create the Truck Simulator Model

On the Oracle IoT Digital Twin Simulator application, you add a predefined Truck simulator model.

Add a Predefined Simulation Model in Oracle IoT Digital Twin Simulator

(Optional) Modify Stop Addresses

If you need to add new stop addresses, then edit the Truck simulator model and modify the yiLocations function.

Modify Stop Addresses

Add a Device to the Truck Simulator Model

In the Truck simulator model, you add a simulated device. It has attributes, functions, alerts, and events, which you can customize.

Create a Simulated Device in IoT Device Simulator

Add the Required Device Model to Oracle IoT Fleet Monitoring Application

After creating the Truck simulator model, ora_obd2_device_model gets added to the IoT platform. From the Oracle IoT Platform UI, select Oracle IoT Fleet Monitoring Cloud Service and add that device model to the application.

Assign a Device Model

Create the Required Vehicle Type to Oracle IoT Fleet Monitoring Cloud Service

Add a vehicle type using ora_obd2_device_model in Oracle IoT Fleet Monitoring Cloud Service.

Create a Vehicle Type

Create a Vehicle to Oracle IoT Fleet Monitoring Cloud Service

Add a vehicle using the vehicle type in Oracle IoT Fleet Monitoring Cloud Service.

Create a Vehicle

Link the Vehicle's Sensor Attributes to the Simulated Device

Link the vehicle's sensor attributes in Oracle IoT Fleet Monitoring Cloud Service with the attributes of the simulated device of the Truck simulator.

Edit Vehicle Details and Device Sensor Attributes

Start the Simulated Vehicle

Enable the simulated device of the Truck simulator, assign stop addresses, and start it.

Start a Simulated Vehicle

Monitor the Vehicle on the Map View

Monitor the vehicle whose sensors are connected to the simulated device, on the map view of Oracle IoT Fleet Monitoring Cloud Service.

Locate Your Vehicles in the Fleet Map

(Optional) Create and Start a Trip

Create a trip where you associate the vehicle to it and then start the trip.

Create a Trip Without Using a Trip Template

Start a Trip

(Optional) Modify Speed of the Simulated Device

Modify the speed of the simulated device that reflects on the vehicle's speed in Oracle IoT Fleet Monitoring Cloud Service.

Modify the Speed of a Simulated Vehicle

View Vehicle Information and its Operational Status

(Optional) Monitor the Trip on the Map View

Monitor the trip by viewing its vehicle on the Map view of Oracle IoT Fleet Monitoring Cloud Service

View Trips Summary

Modify Stop Addresses of a Truck Simulator

The Truck simulator can be customized by modifying its attributes, images, events, and functions. The stop addresses represent the start, stop, and destination locations of a vehicle, which you can modify to meet your test criteria for monitoring the vehicle on the map view of Oracle IoT Fleet Monitoring Cloud Service.

You should have created a Truck simulator using the Oracle IoT Digital Twin Simulator application. See Task 2 in Typical Workflow to Monitor a Simulated Vehicle
  1. Access the Oracle IoT Digital Twin Simulator application by navigating to the URL: https://myiotcs.mydomain.oraclecloud.com/ds. Replace myiotcs with your IoT instance name and mydomain.oraclecloud.com by the domain name of your instance.
  2. Enter your Oracle Identity Cloud Service credentials and click Sign In.

    The Simulations dashboard of the Oracle IoT Digital Twin Simulator application appears.

  3. On the Simulations dashboard, click Edit Edit icon on the Truck simulator model.

    The resulting page displays the attributes, device models, events, alerts, function, and images used in the simulator model.

    Note:

    Do not modify the value of Messaging Interval.
  4. Scroll down to the Functions section and identify the yiLocations function.
  5. On the Definition text area of yiLocations, use the down-arrow key to move to its end. Before the closing square bracket, insert a comma, and enter your stop address within double quotation marks.

    Note:

    • You can delete the existing addresses and enter as many stop addresses you want, in any order.
    • Ensure that each address appears within double quotes and all the comma separated addresses are enclosed in square brackets. For example, ["address 1","address 2","address 3"].
    • Separate each field of an address by a comma, such as, "street,city,state,postal code,country". For example, ["4210 Network Cir, Santa Clara,95054,US","Winters Chapel Rd,Doraville,GA,30360, US","9 Murray Rose Avenue, Sydney Olympic Park, NSW, 2127, Australia"].
  6. Scroll up or down, locate the Save button, and click Save.

You can view the new stop address values after you've added a device to the Truck simulator. To create a device, see Task 4 of Typical Workflow to Monitor a Simulated Vehicle.

In the Truck simulator, for a device, click View View icon.

On the Controls section, click the Stop 1, Stop 2, or Stop 3 drop down, and view your new stop address in the list.

Start a Simulated Vehicle

Start the simulated device of the Truck simulator of the Oracle IoT Digital Twin Simulator application..

You should have created the Truck simulator and added a device to the Truck Simulator. See Task 2 and Task 4 in Typical Workflow to Monitor a Simulated Vehicle
  1. Access the Oracle IoT Digital Twin Simulator application by navigating to the URL: https://myiotcs.mydomain.oraclecloud.com/ds. Replace myiotcs with your IoT instance name and mydomain.oraclecloud.com by the domain name of your instance.
  2. Enter your Oracle Identity Cloud Service credentials and click Sign In.

    The Simulations dashboard of the Oracle IoT Digital Twin Simulator application appears.

  3. On the Simulations dashboard, click the Truck simulator model.

    The resulting page displays a device added to the Truck simulator.

  4. To edit the device details, click the device name.

    The Device Status page is displayed.

  5. In the Device Monitoring section, enable Status to ON.
  6. In the Controls section, click the Stop 1 drop-down, and select the starting stop of a trip.
  7. Click Stop 2 and select an intermediate stop. Similarly, select the destination of the trip in Stop 3. If there is no intermediate stop, then select the same value for Stop 2 and Stop 3.
  8. To start the simulated device, click Drive to Destination.
  9. Click Close Close icon.
  10. Ensure that the Running field of the device displays as Running.

Modify the Speed of a Simulated Vehicle

Customize the speed of a simulated device in the Truck simulator of the Oracle IoT Digital Twin Simulator application.

You should have created the Truck simulator, added a device to the Truck Simulator, and started the device. See Task 2 and Task 4 in Typical Workflow to Monitor a Simulated Vehicle.
  1. Access the Oracle IoT Digital Twin Simulator application by navigating to the URL: https://myiotcs.mydomain.oraclecloud.com/ds. Replace myiotcs with your IoT instance name and mydomain.oraclecloud.com by the domain name of your instance.
  2. Enter your Oracle Identity Cloud Service credentials and click Sign In.
    The Simulations dashboard of the Oracle IoT Digital Twin Simulator application appears.
  3. On the Simulations dashboard, click the Truck simulator model.
    The resulting page displays a device added to the Truck simulator.
  4. To edit the device details, click the device name.
    The Device Status page is displayed.
  5. Ensure that the device's status is ON.
  6. In the Controls section, to modify the speed of the simulated vehicle, use the Speed slide bar.
  7. Click Close Close icon.