TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Cantools – an extensive set of CAN bus tools

220 pointsby eerimoqover 5 years ago

15 comments

jmiskovicover 5 years ago
Thank you for making cantools. I&#x27;m using it daily and enjoying how easy and powerful it is.<p>Two other projects also deserve to be mentioned. The opendbc is attempt to make sense of CAN traffic in different cars, they reverse-engineer messages and provide descriptions to each. It&#x27;s part of comma.ai open source autonomous driving effort. The other project is CANboat which does similar thing for NMEA2000 protocol used on boats.<p>The industry so far is very closed and rejects concept of interoperability. It&#x27;s nice that somebody is taking steps in right direction.
评论 #22046435 未加载
评论 #22045998 未加载
monocasaover 5 years ago
Throwing out there that Wireshark has CAN parsing ability. For any else of y&#x27;all that have been stuck with a legacy non standard CAN protocol running on industrial automation, writing a Lua protocol parser and a little script to convert whatever internal format you&#x27;ve been using to pcap-ng will be an afternoon or two very well spent.
评论 #22046543 未加载
fullstopover 5 years ago
If you work with J1939 there is a can-j1939 kernel module which was mainlined in the 5.4 Linux kernel. It handles address negotiation and other time-sensitive matters which would have had to be done in user space previously.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;linux-can&#x2F;can-utils&#x2F;blob&#x2F;master&#x2F;can-j1939-kickstart.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;linux-can&#x2F;can-utils&#x2F;blob&#x2F;master&#x2F;can-j1939...</a>
评论 #22047291 未加载
nocmanover 5 years ago
I would like to suggest that in your &quot;About&quot; suggestion you provide a short description what a &quot;CAN bus&quot; is (with links to <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;CAN_bus" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;CAN_bus</a> - or whatever you feel is appropriate ).<p>I&#x27;m a very technical person, and I honestly don&#x27;t think I&#x27;d ever heard of it. I spent a decent bit of time looking on the site trying to figure out what it was before resorting to Google.<p>It&#x27;s not a huge deal, but seems to me like it would be helpful, and worth the effort.
评论 #22045131 未加载
评论 #22046084 未加载
评论 #22048634 未加载
评论 #22046600 未加载
prostodataover 5 years ago
Here is another project for working with CAN:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;hardbyte&#x2F;python-can" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hardbyte&#x2F;python-can</a><p>I used it (as well as Cantools) for importing various CAN-specific data formats.
contingenciesover 5 years ago
Has anyone taken canbus and deployed it on a greenfield non-automotive system? If so, what was the thought process to justify use of this protocol vs. something like ethernet? The selling point seems to be &#x27;save copper&#x27; but the associated overheads (tooling, training, reduced throughput[0], larger connectors, multidrop bus debug drawbacks, etc.) seem like they would <i>far</i> outweigh any nominal savings in all but the highest volume production scenarios.<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ELM327#Protocols_supported_by_ELM327" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ELM327#Protocols_supported_by_...</a>
评论 #22047825 未加载
评论 #22049625 未加载
评论 #22052437 未加载
评论 #22047786 未加载
评论 #22048683 未加载
评论 #22050150 未加载
floathubover 5 years ago
This looks well designed and thought out. Does anyone know if it has been applied to NMEA-2000 (a marine electronics flavor of CANbus)?
评论 #22044661 未加载
评论 #22046155 未加载
评论 #22052449 未加载
zroover 5 years ago
Thanks for all your hard work! We used this constantly at $oldjob and it saved us a ton of time and effort.
jmt_over 5 years ago
I&#x27;m very interested in beginning to monitor some information on my vehicle. Is the usual workflow involve pulling a dbc file off the vehicle with a CAN bus reader and using software to look into it? Or is it more complicated? Anyone have recommendations as to the reader itself?
评论 #22045901 未加载
评论 #22048926 未加载
评论 #22045685 未加载
rationalthugover 5 years ago
For those interested in CAN bus for UAVs, there is <a href="https:&#x2F;&#x2F;github.com&#x2F;uavcan" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uavcan</a> as well.
dmdover 5 years ago
Ugh, where was this when I needed it in 2013? At $OLDJOB my boss and I wrote pretty much this entire thing, in an unholy mix of bash and Tcl, much more poorly.
评论 #22044795 未加载
评论 #22044574 未加载
thbr99over 5 years ago
We have been using proprietary CANoe for well over 6 years. Will evaluate this. But don&#x27;t know if corporate will like it or not.
评论 #22046110 未加载
serenover 5 years ago
This seems to work with a candump format input, does it works with canalyzer *.asc format ?
评论 #22044704 未加载
t34543over 5 years ago
Beautiful - I’ve been using Intrepid Vehicle Spy for awhile but the cost is hard to justify for a hobbyist.
m3kw9over 5 years ago
What’s missing is a can bus sim
评论 #22045569 未加载
评论 #22045325 未加载