Skip to content

Repository files navigation

Brief of AWS IoT Fleetwise Demo Guide

演示视频Video:https://www.bilibili.com/video/BV1Rv4y1p7tB/?spm_id_from=333.1387.search.video_card.click

AWS IoT FleetWise is a managed service that allows automakers or car rental companies to collect vehicle data, transform it, and then transfer it to the cloud to gain insights about fleet(s) of vehicles. Automakers can use the data transferred by AWS IoT FleetWise to analyze vehicle fleet health to quickly identify potential maintenance issues, make in-vehicle infotainment systems smarter, or use analytics and machine learning (ML) to improve models for autonomous driving and advanced driver assistance systems (ADAS).Car rental companies can use it to monitor the vehicle status to provide refined vehicle maintenance and customer assistant services.

AWS IoT FleetWise removes the complexities of collecting data from vehicle fleets at scale. Using virtual vehicle modeling, users can create a common data format across vehicle brands, models, and components, allowing for streamlined fleet-wide data analysis in the cloud.

AWS IoT FleetWise also helps users more intelligently collect vehicle data, which provides users access to more useful data in the cloud. Users can improve data relevance by creating time- and event-based data collection campaigns that send the exact data you need to the cloud.

This guide is intended to demonstrate the features of AWS IoT FleetWise by building AWS IoT FleetWise Edge Agent and running it on NXP-S32G-VNP-RDB2 as vehicle gateway,by using CARLA to simulate vehicle ECU data,by deploying a time-based campaign in AWS IoT FleetWise to collect data from the virtual vehicle,by data visiualization using Amazon Managed Grafana.

Prerequisites

It's assumed that you have got aws account and config aws cli with administrator rights.

Note: AWS IoT FleetWise is currently available in US East (N. Virginia) and Europe (Frankfurt).

Architecture

IoTFleetwise%20RDB2_02.png

Moduels/Services Used

  • CARLA

    CARLA is an open-source autonomous driving simulator. It was built from scratch to serve as a modular and flexible API to address a range of tasks involved in the problem of autonomous driving.This demo use CARLA to simulate ECUs in the vehicle and send encoded data to the signal collecter(NXP-S32G-VNP-RDB2)in format of CANBus.

  • NXP-S32G-VNP-RDB2

    The S32G-VNP-RDB2 is a compact, highly optimized and integrated board engineering for vehicle service-oriented gateway (SoG), domain control applications, high-performance processing, safety and security applications. This demo use S32G-VNP-RDB2 as vehicle gateway. It receives CAN data from CARLA by interface CAN0,on the other hand, IoT Fleetwise edge agent is deployed to inspect and upload following the campaign schema from FleetWise.

  • AWS IoT FleetWise

    IoT Fleetwise is used for virtual vehicle modeling,signal decoder creation and campaign deploy in the demo.

  • Amazon Timestream

    Amazon Timestream is a fast, scalable, and serverless time series database service for IoT and operational applications that makes it easy to store and analyze trillions of events per day up to 1,000 times faster and at as little as 1/10th the cost of relational databases. The payload will be decoded by IoT service and stored by memory store or magnetic store.

  • AWS IoT Core

    AWS IoT Core is a managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices. This demo use IoT Core to establish a secure connection to the device through a certificate, data exchange via MQTT with low latency and with low overhead, filter, transform, and route the data to Timestream for further processing and analytics.

  • Amazon S3

    Amazon S3 is object storage built to store and retrieve any amount of data from anywhere.This demo us it to store decoded vehicle data from Timestream for persistent storage.

  • Amazon Managed Grafana

    Amazon Managed Grafana is a fully managed service with rich, interactive data visualizations to help customers analyze, monitor, and alarm on metrics, logs, and traces across multiple data sources. This demo use AMG to visualize near-realtime data such as vehicle speed,gear and perform statistical analysis such as collision time and collision severity.

Environment and Dashboard

Environment Environment.png

Grafana Dashboard GrafanaDashboard

Deploy and Run

The procedures blow describes the process of data collection in time order.


1. Model vehicle and create campaign

A virtral vehicle model need to be created in IoT FleetWise to perform data signal creation and decode manifest by using .dbc file. A virtual vehicle linking with the vehicle model and decode manifest is also required. This virtual vehicle is attached in IoT Core which represents the RDB2. Campaigns will be deployed to the RDB2 once it is approved. Campaigns give the Edge Agent software instructions on how to select, collect, and transfer data to the cloud.


2. Campaign approval and release

The compaign will be deployed once user approved the campaign. If you want to pause collecting data from vehicles connected to the campaign, on the Campaign summary page, choose Suspend. To resume collecting data from vehicles connected to the campaign, choose Resume.

Detailed configuration for step 1 and 2 can be reached at Amazon IoT Fleetwise Deploy


3. Vehicle Authentication

The RDB2 is used as vehicle gateway to upload data, IoT FleetWise Edge Agent need to be deployed in RDB2 as application and a certification is also needed for authentication to perform legal communication with IoT Core.

Detailed configuration can be reached at RDB2 Deploy


4. Deploy data collection schema

Data Collection Schemes describes what and how to collect signal, it is generated at step 1, once it is approved at step2, the scheme will be deployed to IoT FleetWise Edge Agent automatically.


5. Data encode using canbus dbc file

The DBC file(CAN database files)is a simple text file that consists of information for decoding raw CAN bus data to physical values in human readable form or encoding physical values to CAN bus data. DBC file is used as shared schema for data exchange from the car and cloud in this demo. Python code is used to convert CARLA physical values(decimal) to ECU CAN bus values(hexadecimal)and ingest to RDB2.


6. Data ingestion

Since CARLA is install in a server, a usb to CAN converter is used to transfer the digital data into CAN bus logic level signal. CAN high/low are connected to FLEX_CAN0_H/L.

Detailed configuration for step 5 and 6 can be reached at CARLA Deploy


7. Inspect canbus data and package

The IoT FleetWise Edge Agent will specify what data to collect and which collection triggers to inspect data following rules of Data Collection Schemes.


8. Upload data payload

The data will be packed and send to IoT Core by IoT FleetWise Edge Agent.


9. Store vehicle data

The data will be stored at Amazon Timestream.

Detailed configuration for Timestream can be reached at Amazon IoT Fleetwise Deploy


10. Config visualization specification

Quickly setting up Amazon Managed Grafana dashboards to demonstrate analysis of data stored in Amazon Timestream by AWS IoT FleetWise service

Detailed configuration for Timestream can be reached at Amazon Managed Grafana Deploy


11. Query data and process

Grafana query data from Timestream.


12. Data visualization

There are 4 parts in the Grafana Dashboard

  • Gauge #1-Speed history,current speed and analysis statics
  • Gauge #2-Gear history heatmap,current gear and analysis statics
  • Gauge #3-Collision intensity history,current door&flinker status
  • Gauge #4-Gas pedal history,current padel position and analysis statics

13. Persistent storage

The vehicle data can be stored to Amazon s3 for persistent, low-cost storage.


A quick deploy and run method is to configure the modules/services in following order.

graph TD
A[Hardware and Software Preparation] --> B(CARLA Deploy)
B --> C(RDB2 Deploy)
C --> D(Amazon IoT Fleetwise Deploy)
C --> E(Amazon Managed Grafana Deploy)
E --> F(Demo Run)
D --> F(Demo Run)
Loading

Getting Help

It's welcome to contact if you have any technical questions about the demo. E-Mail:sunjimmy@amazon.com

Resources

The following documents are used for reference for the construction of this demo,appreciate the efforts of the authors.

About

AWS IoT FleetWise 端到端车辆数据采集演示:CARLA 仿真车辆信号经 DBC 编码送上 CAN 总线,由 NXP S32G-VNP-RDB2 车载网关上的 FleetWise Edge Agent 采集,通过 IoT Core 上云存入 Timestream,最终在 Amazon Managed Grafana 仪表板可视化。含 CDK 部署脚本、车辆建模与信号解码清单配置。

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages