Load the DBC into the corresponding folder created by the Data Logger.
The DBC name should be as follows
dbc_can0.dbc For CAN 0 Bus
dbc_can1.dbc For CAN 1 Bus
dbc_can2.dbc For CAN 2 Bus
dbc_can3.dbc For CAN 3 Bus
Click on 'Add trigger'.
Select the following
Source as S3.
Select the Bucket to which the logger uploads data.
Suffix add (.rxd).
Acknowledge the warning.
Continue to Configuring conversion settings.
Login to your AWS portal and go to Lambda Services.
Click on 'Create Function'.
Once in the 'Create Function' window:
Select 'Author from scratch.
In Basic information:
Define function name.
Select Runtime as '.NET 6 (C#/PowerShell) (from the drop-down options).
Select Architecture, x86_64 (from the given options).
In Permissions, Change the default execution role:
If you are uploading for the first time, make sure you have created an IAM role with the following permissions; refer to the link
If you have already created a role, you can continue by selecting the existing role.
Select 'Use an existing role'.
Select the Existing role as 'influx_lambda_role' from the drop-down options.
Select 'Create function'.
Once the function is created, click on 'Upload from'.
Click 'Upload'.
Select the function code's zip file, and click 'Open'.
Once the zip file is uploaded, click 'Save'.
Once on the function window, under the 'Code' tab, locate 'Runtime settings' and click 'Edit' if you wish to edit any credentials.
In Runtime settings:
Add Runtime as .NET 6 (C#/PowerShell).
Change handler as AWSLambdaFileConvert::AWSLambdaConvert.Function::ConvertFiles
Chose Architecture.
Click 'Save'.
To edit the general configuration, click' Configuration' and select' Edit'.
As desired, edit details such as memory, ephemeral (temporary) storage, and time out.
Continue to Adding S3 Trigger for Lambda
Before proceeding, make sure you have Visual Studio 2022 Installed, and the supporting components are installed as per the .vsconfig file in the link below
Clone or download the repository
https://github.com/InfluxTechnology/ReXlibrary/tree/master/Demo/AWS_Lambda
Open \Demo\AWS_Lambda\AWSLambdaFileConvert.csproj
Provide your credentials with permission to S3 and Lambda for your AWS SDK (Refer)
Right-click on the project name and select 'Publish to AWS Lambda…'
Select
'AWS Credential'
Choose 'Region' in which you have the S3 Bucket.
Enter the 'Description' for the function if required.
Leave everything else to default.
Choose an IAM role that provides the Lambda functions necessary permission to access all S3 Services and all Lambda services.
If uploading for the first time, ensure you have created an IAM role with the following permissions; refer to the link.
If you have already created a role, you can continue by selecting the existing role.
Click 'Upload' to Upload the function to AWS.
Continue to Adding S3 Trigger for Lambda
Influx provides a free, open-source conversion function to convert the native RXD format to formats that the user uses for their analysis automatically.
Note:
Before proceeding, please ensure that you create the function in the same region where you have the S3 Bucket and the Timestream Database.
When used with AWS, ReXgen will utilize the following Services:
Amazon S3 Bucket - Data is being stored from the device.
Amazon Lambda - Serverless Compute Service Run Code Without Provisioning or Managing Infrastructure.
Supports – BLF, MF4 and CSV formats.
Supports DBC Decoding.
Supports writing data to external Time Series Databases.
A function is available in , and customers can deploy the function quickly to enable auto conversion. Below are the guides to deploy the lambda function to AWS:
Continue to .