Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Load the DBC into the corresponding folder created by the Data Logger. The DBC name should be ‘ExportDBC.dbc’.
BinRXD - Used for decoding Influx Technology .rxd files and converting .xml configuration files to .rxc (ReXgen configuration) files. Supports converting RXD files to CSV, InfluxDB CSV, MDF, Matlab, BLF, ASCII, and TRC format.
DbcParser – Used for parsing DBC files.
InfluxShared – Various units used by the different packages.
Matlab File – Used for export to Matlab files.
MDF4xx – Used for export to MDF Files.
RXD/RXDDemo – Example that converts configuration xml file to rxc file used for the ReXgen device. It uses a ReXConfig.xsd file to validate the xml. It can also open rxc files.
Demo/AWS_Lambda – AWS Lambda example that takes an xml file after upload to S3 and converts it to rxc. It also converts rxd files to csv and can be changed to export to CSV InfluxDB format, Matlab, BLF, etc.
MinIO/MinIOFileConvert - MinIO example that converts configuration xml file to rxc file and converts rxd(ReXgen logger data file) to csv, mdf, blf.
This starter project consists of:
Function.cs - class file containing a class with a single function handler method
aws-lambda-tools-defaults.json - default argument settings for use with Visual Studio and command line deployment tools for AWS
You may also have a test project, depending on the options selected.
The generated function handler responds to events on an Amazon S3 bucket. The handler receives the bucket and object key details in an S3Event instance and returns the object's content type as the function output. Replace the body of this method and parameters to suit your needs.
After deploying your function, you must configure an Amazon S3 bucket as an event source to trigger your Lambda function.
To deploy your function to AWS Lambda, right-click the project in Solution Explorer and select Publish to AWS Lambda.
To view your deployed function, open its Function View window by double-clicking the function name shown beneath the AWS Lambda node in the AWS Explorer tree.
To perform testing against your deployed function, use the Test Invoke tab in the opened Function View window.
To configure event sources for your deployed function, for example, to have your function invoked when an object is created in an Amazon S3 bucket, use the Event Sources tab in the opened Function View window.
To update the runtime configuration of your deployed function, use the Configuration tab in the opened Function View window.
To view execution logs of invocations of your function, use the Logs tab in the opened Function View window.
Once you have edited your template and code, you can deploy your application using:
Install Amazon.Lambda.Tools Global Tools if not already installed.
If already installed, check if a new version is available.
Deploy function to AWS Lambda
!!! Add S3 Trigger for the Lambda function with .xml, .rxd extension. When converting XML to .rxc, the .xsd schema must be in the same folder as the XML file. When converting RXD to a .csv file, the DBC file must be in the same folder as the RXD file.
Upload the FileConvert.json file into the root folder of the Bucket.
Contents
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.
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.
Click ‘Upload’ to Upload the function to AWS.
Login to your AWS portal and go to Lambda Services.
Open your Lambda function previously uploaded.
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.
Adding S3 Trigger for Lambda
Configuring conversion settings
Adding the DBC file for conversion