# ArxmlParser **Repository Path**: mtoooo/arxml-parser ## Basic Information - **Project Name**: ArxmlParser - **Description**: arxml解析类 - **Primary Language**: C# - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2023-01-28 - **Last Updated**: 2024-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: CAN, Lin, arxml, Ethernet, Net6 ## README # Autosar helper class Autosar helper class contains utility to support arxml Autosar path and reference primitive. Autosar helper class support extracting needed information from arxml and vice versa. Autosar helper class is complaint with Autosar V4.4 and AUTOSAR_00046.xsd. Autosar helper class is based on Autosar arxml serializer and deserializer https://github.com/DD-Silence/Autosar Class Summary: EcuExtract: Can, Lin and Ethernet. PDU: I-Signal-I-Pdu, Dcm-Pdu, Secured-Pdu Signal: I-Signal, System-Signal SWC: Port-Interface, BaseType, Application-DataType, Implementation-DataType, Compu-Method, Constraint Feel free to try the function and feedback by issues. ``` Autosar帮助器类包含支持arxml Autosar路径和引用原语的实用程序。 Autosar助手类支持从arxml中提取所需信息,反之亦然。 Autosar助手类与Autosar V4.4和Autosar_00046.xsd兼容。 Autosar助手类基于Autosar arxml序列化程序和反序列化程序https://github.com/DD-Silence/Autosar 课程摘要: EcuExtract:Can、Lin和以太网。 PDU:I-Signal-I-PDU、Dcm PDU、安全PDU 信号:I-Signal、System Signal SWC:端口接口、基本类型、应用程序数据类型、实现数据类型、计算方法、约束 ``` - 使用描述 - 系统环境:Windows10、.NET6.0 - Autosar类库使用方法 - 需要NuGet先安装XObjectsCore==3.2.0 - 新建控制台应用,引入项目Autosar demo.cs ```C# using System; using Autosar; //using AutosarClass; namespace xxxx { public class xxxxxx { static void Main(string[] args) { Console.WriteLine("hello world"); var aa = new AUTOSAR(); var bb = new IDENTIFIER(); //Console.WriteLine($"Asris {bb.TypedValue}"); var AAA = AUTOSAR.Load("D:\\GIT\\asp.net-web-api\\arxml_db_resources\\Database\\CANGateway.arxml"); Console.WriteLine(AAA.ToString()); for (int i = 0;i<10;i++) { Console.WriteLine(i); System.Threading.Thread.Sleep(1000); } } } } ``` - AutosarClass使用注意事项 - 类库中引用的AutoSar,需要NuGet先安装XObjectsCore==3.2.0 - 建议重新打包Autosar类库生成Autosar.dll文件(git地址:https://gitee.com/mtoooo/Autosar) demo.cs ```C# using System; using AutosarClass; namespace xxxx { public class xxxxxx { static void Main(string[] args) { Console.WriteLine("hello world"); var AAA = new Asr("D:\\GIT\\asp.net-web-api\\arxml_db_resources\\Database\\CANGateway.arxml"); Console.WriteLine(AAA.ToString()); //Console.WriteLine(cls.sum); } } } ```