Comments (7)
Hi @maxceng
https://github.com/ebroecker/canmatrix/wiki/signal-Byteorder:
little endian == Intel == MOST-SIGNIFICANT-BYTE-LAST
big endian == Motorola == MOST-SIGNIFICANT-BYTE-FIRST
is_litte_endian = False means "big endian" means Motorola
which seems correct to me.
Could you provide an example?
from canmatrix.
from canmatrix.
Hi @maxceng
I still cannot reproduce the issue.
Look at following code:
import canmatrix
network = canmatrix.CanMatrix()
sig_name = "my_name"
sig_comment = "my_comment"
sig_name2 = "my_name2"
signal = canmatrix.Signal(name=sig_name, comments=sig_comment, is_little_endian=True)
signal2 = canmatrix.Signal(name=sig_name, comments=sig_comment, is_little_endian=False)
network.add_signal(signal)
network.add_signal(signal2)
canmatrix.formats.dumpp({"": network}, "output.dbc", "dbc")
which produces:
VERSION "created by canmatrix"
NS_ :
BS_:
BU_:
BO_ 3221225472 VECTOR__INDEPENDENT_SIG_MSG: 0 Vector__XXX
SG_ my_name0 : 0|0@1- (1,0) [0|0] "" Vector__XXX
SG_ my_name1 : 7|0@0- (1,0) [0|0] "" Vector__XXX
This seems ok for me: @1
vs. @0
.
Could you please provide more detail, what is going wrong at your side?
Thanks
from canmatrix.
from canmatrix.
from canmatrix.
Hi @maxceng
you need only to give the export-encoding:
canmatrix.formats.dumpp({"":network}, "output.dbc", "dbc", dbcExportEncoding="utf8")
from canmatrix.
from canmatrix.
Related Issues (20)
- Can examples be added on how to decode ethernet messages in arxml files? HOT 1
- Arxml recognizes canfd as can HOT 6
- Many errors are reported when parsing the dbc with Chinese characters and special characters HOT 4
- Release 0.9.5 have been renamed to 1.0 in github releases HOT 3
- Convert arxml file to dbc file wrong HOT 6
- Wrong min/max scaling when signal has slope or offset HOT 1
- Python3.12 compatibility / drop 'future' dependency HOT 5
- Loading arxml with Ethernet data Performance is extremely bad on development branch(2023-12-15) HOT 6
- Convert excel to DBC with Canmatrix HOT 1
- Convert DBC to arxml failed HOT 3
- Renaming Node / ECU via rename_ecu should clear out any existing transmitter and receiver HOT 1
- wrong with canmatrix.cli.compare.cli_compare
- when xsl2dbc,singal's offset 、mini is uncorrect
- convert ARXML to DBC have error:<class 'decimal.DivisionUndefined'> HOT 1
- convert ARXML to DBC have error:<class 'decimal.DivisionUndefined'> HOT 2
- Convert dbc <=> xlsx - units are deleted HOT 1
- Convert dbc <=> xlsx - DLC is always reset to it's maximum of 8 bytes HOT 1
- Exporting ARXML to XLSX (CanCluster vs. J1939Cluster) HOT 6
- canmatrix.py --> decimal.InvalidOperation: [<class 'decimal.DivisionUndefined'>] HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canmatrix.