Skip to content

Commit 033a41d

Browse files
author
julietkilo
committed
Changes to KCD format 0.7 which treat MuxGroup.count as long and allows CAN definitions without specifying nodes. Skipping orphaned signals (from dbc format). Adding close application button. POM modified to generate classes from XSD schema withing CANBabel.
1 parent 8bac914 commit 033a41d

24 files changed

+616
-335
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@
4949
</archive>
5050
</configuration>
5151
</plugin>
52+
<plugin>
53+
<!-- Usage: mvn org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:generate -->
54+
<groupId>org.jvnet.jaxb2.maven2</groupId>
55+
<artifactId>maven-jaxb2-plugin</artifactId>
56+
<version>0.8.0</version>
57+
<configuration>
58+
<schemaDirectory>src/main/resources/com/github/canbabel/canio/kcd</schemaDirectory>
59+
<schemaIncludes>
60+
<include>Definition.xsd</include>
61+
</schemaIncludes>
62+
<bindingDirectory>src/main/resources/com/github/canbabel/canio/kcd/</bindingDirectory>
63+
<bindingIncludes>
64+
<include>*.xjb</include>
65+
</bindingIncludes>
66+
<generateDirectory>target/generated-sources/xjc</generateDirectory>
67+
<generatePackage>com.github.canbabel.canio.kcd</generatePackage>
68+
<writeCode>true</writeCode>
69+
<readOnly>false</readOnly>
70+
<removeOldOutput>false</removeOldOutput>
71+
<forceRegenerate>false</forceRegenerate>
72+
</configuration>
73+
</plugin>
5274
</plugins>
5375
</pluginManagement>
5476
</build>
@@ -75,6 +97,9 @@
7597

7698
<!-- More project info -->
7799
<name>CANBabel</name>
100+
<description>Translator for several Controller Area Network (CAN) description formats. Currently a converter
101+
from industry-widespread DBC-format to KCD-format. CANBabel aims to promote and develop the open-source KCD
102+
format and encourage the use of open-source tools for the CAN bus.</description>
78103
<url>https://github.com/julietkilo/CANBabel/</url>
79104
<inceptionYear>2011</inceptionYear>
80105
<licenses>

src.test.resources/can_definition_sample.kcd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
-->
1818
<NetworkDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1919
xsi:noNamespaceSchemaLocation="Definition.xsd"
20-
version="0.6">
20+
version="0.7">
2121
<Document name="The Homer" version="1.23" author="Herbert Powell" company="Powell Motors" date="1991-02-16">
2222
A car designed by Homer J. Simpson that the average american consumer would want to buy.
2323
The Homer has two bubble domes: one in the front and one for quarreling kids.
@@ -202,7 +202,7 @@
202202
<Message id="0x385" name="BCC" count="10" triggered="true" interval="200">
203203
<Producer>
204204
<NodeRef id="12"/>
205-
</Producer>
205+
</Producer>
206206
<Signal name="Milage1" offset="0" length="24">
207207
<Value slope="0.1" unit="km"/>
208208
</Signal>

0 commit comments

Comments
 (0)