Author Topic: CANbus development tools  (Read 9358 times)

0 Members and 3 Guests are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
CANbus development tools
« on: August 17, 2019, 03:06:20 pm »
Can anyone recomend CAN tools? I'd need a CAN to USB adapter and some software to generate messages. I am familiar with Peak CAN explorer but this is now 600 euros and lots of things that were part of it are now addons making in 600 euros to simply be able to send a message.

I am looking to develop CAN coms on the SANC series of ARM micro controllers.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 27054
  • Country: nl
    • NCT Developments
Re: CANbus development tools
« Reply #1 on: August 17, 2019, 03:14:26 pm »
I have good experience with CANUSB from Lawicel.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline TopLoser

  • Supporter
  • ****
  • Posts: 1925
  • Country: fr
Re: CANbus development tools
« Reply #2 on: August 17, 2019, 03:19:16 pm »
Yep I’ve used their CANUSB and CAN232 adaptors without any problems, software is free and the hardware is cheap.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #3 on: August 17, 2019, 03:20:18 pm »
Yea they don't seem to sell any software other than a moniter software. Basic monitor software comes with most CAN/USB adaptoers these days.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: CANbus development tools
« Reply #4 on: August 17, 2019, 03:39:55 pm »
The Linux support is ... "not good" ( I want to be polite ), and a couple of PCI-CAN bus boards are now deprecated and abandoned, and nobody seems interested in updating the kernel driver to modern kernel v4 or v5.

It's a shame because despite the poor Linux support these cards were cheap (< 50..100 euro).
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #5 on: August 17, 2019, 03:43:46 pm »
Not wanting to make this a linux debate and as much as i hate windows, Linux will never gain serious traction in the desktop environment and particularly in the engineering field until someone like Linus Torvaids gets behind a distro and it becomes the defacto like there is only ever one current version of windows. i can'n use an OS tha no one develops engineering software for.

 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: CANbus development tools
« Reply #6 on: August 17, 2019, 03:55:44 pm »
Not wanting to make this a linux debate

What I mean is: if the support sucks and the Peak support is expensive, at least you have a chance to fix OpenSource and Semi-Opensource stuff by yourself. It might be an option.

The problem I have is related to the lack of interest in help, and even the company who did those boards has recently replied to my emails telling me that the product is EOL, therefore there will be no support from them concerning the kernel driver for recent kernels. And tools in userspace are generally ... poor.

This means you need to put your effort here, developing stuff, updating stuff, porting stuff, etc, because with CAN bus nothing is ready out of the shelf, and this is probably the bad face of semi-OpenSource. You have a source, but there not much interest, and you are alone, but It's better than nothing when you are not willing to spend money on commercial products like Peak USBCAN.

-

The other option is Coldfire v2 since they had something implemented by Motorola and Freescale.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #7 on: August 17, 2019, 04:01:35 pm »
I don't mind spending money. i need to develop CAN on microcontrollers not try and learn to write PC prgrams too and i need to know that one side of the chain is working. i can use PeakCAN explorer 5 at work with one of their dongles but was looking for a solution of my own, now i will easily be buying 1000 euros worth of gear and i have not been impressed with peak can explorer 5 so I'm not sure if i wnat to drop 600 euros plus more for plugins that used to be basic functionality of the software if it's still as bad as what i have at work. My now famous retort at work henever I have to come and sort out CAN problems is "shit german software".
 

Offline errorprone

  • Contributor
  • Posts: 39
Re: CANbus development tools
« Reply #8 on: August 17, 2019, 04:31:09 pm »
I've used the Komodo Can analyzer by Total Phase at work that comes in both single and dual port.  Also not that cheap around $450.  The stock software is pretty good and it come with a C and python library.

https://www.totalphase.com/protocols/can/protocol-analyzers/

Sent from my LG-H810 using Tapatalk

 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 27054
  • Country: nl
    • NCT Developments
Re: CANbus development tools
« Reply #9 on: August 17, 2019, 04:35:10 pm »
Yea they don't seem to sell any software other than a moniter software. Basic monitor software comes with most CAN/USB adaptoers these days.
You can buy software https://www.antratek.nl/can-monitor-pro for less than 40 euro.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #10 on: August 17, 2019, 04:38:38 pm »
thanks, that looks much better.
 

Offline Fire Doger

  • Regular Contributor
  • *
  • Posts: 208
  • Country: 00
  • Stefanos
Re: CANbus development tools
« Reply #11 on: August 17, 2019, 05:09:02 pm »
I have used Peak CAN usb for CANOpen development, its 180€ non isolated.
In my case it was very usefull because it was supported by all the CANOpen related programs I used. I didn't use PCAN-View because Canopen is an addon but you can send raw message.
Their USB libraries must be very good for custom software.

Also a good logic analyzer can also help in message decoding during development.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: CANbus development tools
« Reply #12 on: August 17, 2019, 06:33:53 pm »
The best tool by far is CANalyser and their VN16xx interfaces by Vector.
However, at £8000 it is out of reach for most hobbiests.
We have PeakCan as well at my place of work. Very basic.
Also have Ixxat CAN interfaces - again very basic.
One of the suppliers visited recently and showed me kvaser interface, basic but worked much better than the PeakCAN.

CANalyser is the defacto standard in automotive industry.
It not only logs messages with time stamps.
It does real time message decoding if you supply the message format in a .dbc file.
Vector provide a .dbc edit as part of CANalyser.

I have written a number of CAN device simulations in the CANalyser language CAPL.
« Last Edit: August 17, 2019, 06:42:16 pm by MosherIV »
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #13 on: August 17, 2019, 07:20:46 pm »
I just need something that i know works to bat messages to my prototypes and display messages sent back.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3472
  • Country: it
Re: CANbus development tools
« Reply #15 on: August 17, 2019, 07:46:23 pm »
We use a Kvaser interface.
To generate traffic i use either their free software (can king) or busmaster (open source, suppports many interfaces). They also have paid software which is fantastic, they tell me.
if i wanted i could also load a c program in the interface itself so i don't even need the laptop anymore
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #16 on: August 17, 2019, 08:03:36 pm »
um, yea, Kvaser stuff is over 500 euro's for anything. So you actually pay for the software when you buy the hardware.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #17 on: August 17, 2019, 08:09:28 pm »
OK, just found a kvaser adapter for 275 euro's, can live with that.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: CANbus development tools
« Reply #18 on: August 17, 2019, 11:55:53 pm »
Hi

I know what you mean. Why cant someone do a really good CAN protocol analyser and not charge a fortune for it.

Forgot to mention, Busmaster is the basic protocol analyser that I have seen work for PeakCan and Ixxat.
The supplier was using some paid for protocol analyser from Emtas. Did not look any better than Busmaster.

Some of my colleagues have also been using CAN with National Instrument.
Again the NI CAN tool looked really basic, only shows raw CAN with no decoding.
Apparently, it does load .dbc files but not for message decoding.
 

Offline rounin

  • Regular Contributor
  • *
  • Posts: 117
  • Country: us
Re: CANbus development tools
« Reply #19 on: August 18, 2019, 04:52:58 am »
I have one I've released https://suburbanmarine.io/product/hadou-can-beta/, good bit cheaper than Vector et all. Disclaimer, it hasn't seen a lot of use outside my lab yet  :).

Protocol compatible with the Lawicel CAN232 (+ extensions for CAN FD, and a lot more config options), but supports CAN FD @ 12Mbps and is electrically isolated. No GUI at the moment.

Is .dbc file reading / graphical display a hard requirement? I'd like to do that but a GUI wasn't on my road map anytime soon.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #20 on: August 18, 2019, 07:41:28 am »
Well i bit the bullet and bought a kvaser adapter.

.dbc files are essential for sending and receiving and very much so for receiving or you can't see in real time what is going on and what is what.
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: CANbus development tools
« Reply #21 on: August 18, 2019, 09:09:05 am »
What is the link to that adapter? I've been messing around with the same issues - bought a few "cheapies" with the same results as others describe -
So far, the MICROCHIP APGDT002 CAN BUS ANALYZER TOOL has been the most useful .. just have to start writing my own interface I guess.
Hello <tap> <tap> .. is this thing on?
 


Offline jhpadjustable

  • Frequent Contributor
  • **
  • Posts: 295
  • Country: us
  • Salt 'n' pepper beard
Re: CANbus development tools
« Reply #23 on: August 18, 2019, 11:54:20 am »
For those of us who love a $7 CAN interface... I'm using the candleLight firmware right now on a barebones STM32F072 board containing a non-isolated CAN transceiver, a micro USB jack, and little else: https://github.com/normaldotcom/candleLight_fw The supplied image was loaded via SWD. When plugged into my Linux desktop, the device showed up as a CAN network device. I've done HLP development by sending and receiving raw packets using the command line cansend and candump tools, which was not entirely horrible. I've been running a simple NodeJS server, receiving and logging environmental data sent by an own-built remote device, and handling J1939-like network management. CAN FD support is unknown/untested.

Not tested: I just found a free .dbc interpreter plugin for Wireshark, including Windows DLL and source, assuming it hasn't been folded into upstream yet: https://canlogger.csselectronics.com/downloads.php?q=wireshark

Disclaimer: I do not pretend that this is a match for Vector or Kvaser tooling in any way. All trademarks and identifying names are the property of their originators and are used purely for insinuation purposes.
"There are more things in heaven and earth, Arduino, than are dreamt of in your philosophy."
 
The following users thanked this post: Gabri74, lollandster

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17838
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: CANbus development tools
« Reply #24 on: August 18, 2019, 12:07:08 pm »
The problem is that I have to develop my ECU, not spend time assembling my own tools. While my budget is not limitless I prefer to spend a little money up front to save having to debug the tool that is supposed to debug my prototypes.

I have chosen kvaser over peak because I have poor experience with peak and kvaser seems to be supported by many 3rd parties.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf