User Tools

Site Tools


doc:dev_readotherformats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

doc:dev_readotherformats [2014/03/02 08:58] (current)
admin created
Line 1: Line 1:
 +====== Reading other Formats ======
 +To supply OOBD with some data to make the lua scripts out of it, we are working on find several translation methods to use other sources as potential inputs. These different ways are described in here.
  
 +
 +===== Using MDX files =====
 +MDX files, an OEM specific dialect of ODX, is working already fine. Please read the OpenDiagX documentation for details
 +
 +
 +===== Using Vector DBC files =====
 +DBC files describe real time data on the bus (at least that's the part we are try to cover). In the moment we are using the follwing approach:
 +
 +==== Step 1: Converting .dbc into Kayak definition files (.kcd) ====
 +[[https://​github.com/​dschanoeh/​Kayak/​|Kayak]] is a nice tool for Linux to read real time CAN data streams. Luckily there does a tool exist, which converts the Vector dbc file format into the xml based format of Kayak, [[https://​github.com/​julietkilo/​CANBabel|CANBabel]]. Unfortunately the CANBabel website only supports the source code, so you would have to build the executable by yourself. To make your start easier, you can find a inofficial {{:​doc:​canbabel1.0.zip|CANBabel Binary}} here.
 +
 +==== Step 2 Translating Kayak definition files (.kcd) via XSLT ====
 +
 +When the kcd file is there, it's easy to translate it further with XSLT because of its xml structure. On Windows is quite hard to find a program for this, because all the GUI based clickifancycolor programs are either complicated,​ overloaded, expensive or all of it (if you find a simple one, let us know..)
 +
 +On the command line instead it's just a finger snip if you run Linux or Cygwin. Its the [[http://​xmlstar.sourceforge.net/​doc/​UG/​xmlstarlet-ug.html#​d0e442|XMLStarlet]] package which makes it work. Just use the shell script and one of the prepared XSLT transformation files provided in the [[https://​code.google.com/​p/​oobd/​source/​browse/​trunk/​tools/​XSLTs|OBBD project folder]]. Please make sure to use the right xmlstarlet program, which is provided with the Cygwin package Manager. Here you can find [[dev_cygwininstall|how to install Cygwin packages]]. ​
doc/dev_readotherformats.txt ยท Last modified: 2014/03/02 08:58 by admin