Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000169FirmwareInit & Configpublic2011-06-16 15:382011-06-28 10:45
Assigned ToFred 
PlatformOSOS Version
Product Version 
Target Version0.3.0Fixed in Version 
Summary0000169: Create DDL and implement it
DescriptionWe need to create a master file that contains both data, structure, versions and so on.

From this file we will generate any number of different formats containing the default data and the structures that hold it.

There are two main outputs:

1) C code - headers with structs and initialisation code using those headers and holding the default data
2) XML/JSON/etc - structure definitions, default data definitions, meta data, human descriptions, versions, etc. For use in tuning applications wishing to communicate with the firmware. This will either generate two files or one with optional data. A tuning package should be able to pick up this file and talk to the device showing some form of simplistic UI for the available tunable items.

Additionally, we should look into compressing the structure and meta data stuff and storing it in flash on the actual device to be returned in pieces upon request. This may or may not be possible, but if it is, would allow a self contained firmware which doesn't need any external files to function with external software - very clean. It could be that the size of such data would be prohibitive, though.

A somewhat messy thread on the subject exists here: [^]

And an older one about the same stuff here: [^]

This is a priority for 0.3.0 with some number of 0.2.X releases between 0.2.0 and then.
TagsNo tags attached.
Issue TypeNew Feature
Risk of Breakagelow
Attached Files

- Relationships

-  Notes
User avatar (0000204)
Fred (administrator)
2011-06-28 10:45
edited on: 2011-06-28 10:48

Some things that need investigating here:

YAML - [^] - Human friendly - parse into xml, json, c?
JSON - [^] - NO COMMENTS, no good :-(
ANTLR - for parsing and output - [^]
XSLT - if source is XML - [^]
XSD - if source is XML - [^]
XSD - more - [^]

D3L - oracle format to learn from - [^]

XSL codegen article - [^]
YA XSL article - [^]
XML article - [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker