Issue when mapped from a DBC File: The bit number inversion setting is undefined for the mapping 'HS1_CAN.json', but it is database-backed - assuming inverted

98 views
Skip to first unread message

Carl Chen

unread,
Jan 21, 2015, 8:06:37 AM1/21/15
to ope...@googlegroups.com
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.

Christopher Peplin

unread,
Jan 21, 2015, 8:24:40 AM1/21/15
to openxc@googlegroups com

Hi Carl,

The bit numbering message is an informational notice but not an error - are you sure it failed? Was there any other output?

Chris

--
You received this message because you are subscribed to the Google Groups "OpenXC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxc+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/openxc.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxc/01c02579-0d9b-48c1-8230-d7223c4259bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carl Chen

unread,
Jan 21, 2015, 8:00:53 PM1/21/15
to ope...@googlegroups.com
Hi Chris,

You are right, I found this signal in signals.cpp, sorry for this mistake.

在 2015年1月21日星期三 UTC+8下午9:24:40,Chris写道:
Reply all
Reply to author
Forward
0 new messages