Hi Dear Group,
I got an issue when I'm going to generator an signals.cpp from DBC file. I exchange this DBC fails to xml file. This xml is about 31M.
I run the generate firmware code command , and it returned a fail response. I don't know how to deal with it, can you please help me.
vagrant@vagrant-ubuntu-precise-64:~$ cd vi-firmware
vagrant@vagrant-ubuntu-precise-64:~/vi-firmware$ openxc-generate-firmware-code
--message-set config.json > signals.cpp
Adding mapping 'HS1_CAN.json'
Install the 'lxml' Python package to speed up CAN database parsing
The bit number inversion setting is undefined for the mapping 'HS1_CAN.json', bu
t it is database-backed - assuming inverted
Config.Json:
{ "buses": {
"hs": {
"controller": 1,
"speed": 500000
}
},
"mappings": [
{"mapping": "HS1_CAN.json",
"bus": "hs",
"database": "HS1_CAN.xml"}
]
}
HS1_CAN.json:
{
"messages": {
"0x41": {
"signals": {
"immoControlCmd_T1": {
"generic_name": "immoControlCmd_T1"
}
}
}
}
}
I can find this messsage ID in xml file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Network DB_ID="-4096">
<Name>HS1_CAN</Name>
<Attribute>
<Name>BusType</Name>
<Value>CAN</Value>
</Attribute>
<Attribute>
<Name>StarNetworkGwType</Name>
<Value>1=HS1</Value>
</Attribute>
<Attribute>
<Name>CMDB_Version</Name>
<Value>v14.07</Value>
</Attribute>
<Attribute>
<Name>NmType</Name>
<Value>Ford-OSEK</Value>
</Attribute>
<Attribute>
<Name>NetworkSpeed</Name>
<Value>500kBits/s</Value>
</Attribute>
......
......
.....
<ID>0x41</ID>
<Frametype>CAN Standard</Frametype>
<DLC>8</DLC>
......
......
Thanks.