ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
907 stars 400 forks source link

Support for SOME/IP #283

Closed danielhrisca closed 3 years ago

danielhrisca commented 5 years ago

Just wanted to thank you for releasing this version!

VincieD commented 5 years ago

Hello to everyone, do you plan on extending the canmatrix also for flexray and ethernet? If yes, how could i contribute to that?

BR, Vaclav

ebroecker commented 5 years ago

@VincieD For both cases example data would be needed...

VincieD commented 5 years ago

@ebroecker That should not be a problem. I could provide some arxmls examples. The difficult one will be for sure the ethernet, because there are not Frames available, but services and events. I can give a try to find some examples in next comming week.

altendky commented 5 years ago

@VincieD are you talking about EtherCAN? Or... just regular old ethernet that you would push TCP etc over?

VincieD commented 5 years ago

@altendky I'm talking about SOME/IP wich uses the TCP standard, it is just service oriented for automotive purposes http://some-ip.com/

altendky commented 5 years ago

@VincieD it'll be up to @ebroecker of course but after a really quick glance it seems nearly entirely unrelated. It's not another format for describing 11/29-bit identifiers and 0-8 byte payloads. Nor an extension of that (like I think flexray is, or CANFD). A library to support it might end up using canmatrix for the CAN aspects maybe? But again, that was a really quick glance so I might be way off...

friendlyranxiao commented 5 years ago

hey, how to convert dbc file into a xlsx file? and, how to convert the xlsx file into a dbc file? so is there a tutorial to explain how to achieve that?

friendlyranxiao commented 5 years ago

don't bother, I successfully convert the dbc into xlsx, and this is all most magic!

ebroecker commented 5 years ago

@VincieD SOME/IP could make sense in my mind. There will be gateways from CAN to SOME/IP in future cars. I also can imagine that creating ARXMLs for SOME/IP is quite similar to creating CAN ARXMLs. But I don't have much experience with SOME/IP...

For FLEXRAY its nearly the same. I just don't have to do much with FLEXRAY anyway. The only formats for defining a FLEXRAY network I know are fibex and ARXML.

If you have a use case and maybe examples we could discuss if SOME/IP or FLEXRAY make sense in canmatrix or not. While SOME/IP is more future and FLEXRAY is more history in my mind...

VincieD commented 5 years ago

@ebroecker SOME/IP is already in many cars. And i agree that Flexray will be not often used in future. But it is for instance for LiDAR, which means at least for next 2-3 years.

I could provide arxml with SOME/IP specification if you would want to. Just let me know. And thank you for your time and support 👍

ebroecker commented 4 years ago

I added some support in branch arxml_sameip

reymor commented 4 years ago

@ebroecker @VincieD Hello, I would like to help you to improve this tool. What do you have in mind about this new feature? I didn't see anything about someip on that branch.

ebroecker commented 4 years ago

Hi @r142431

there is some very limited support for ethernet in this branch:

https://github.com/ebroecker/canmatrix/blob/f7e75cacb1de97b15bfda053dd495cf4e04a77c2/src/canmatrix/formats/arxml.py#L1615

reymor commented 4 years ago

Hi @ebroecker, I was watching the code. My question is, what kind of features do you have in mind?. Would you like something like a some/ip database generator? or just want to take all of the attributes from the arxml

ebroecker commented 4 years ago

@r142431 I'm not sure what use cases are relevant. a some/ip database generator sounds nice, but does someone need it? How should it look like?

ebroecker commented 4 years ago

hi @r142431

I made some small improvements with some/ip. Now it's possible to convert arxml to xlsx: convert.py --arxmlEthernet some_arxml_file.arxml some_excel_file.xlsx