Page 8 of 9

Re: I think I CAN, I think I CAN...

Posted: Sun Jul 30, 2023 10:44 pm
by RetroZero
Well, three long days later, downloading SavvyCAN, STMCubeIDE and ArduinoIDE to convert STM to Arduino, and watching Damiens simple download video(vimeo), I hang up my gloves at 01 am. May there be a lightning bolt with divine intervention....

EDIT - after half a day more, I'll have to ask the stupid questions.
1: Can a STM32F33 Nucleo F334R8 be used to set up a CAN analyser?
If yes, HOW?
I have installed STMCubeIDE, ArduinoIDE, SavvyCAN, jonvolks GVRET files and I don't know what else.
I have attempted Damiens simple Command update via his vimeo video, but the device is not detected at the end (all the rest is as per his explanations)....
I tried to install the GVRET files into ArduinoIDE as per another website I fell onto in the early hours of the morning, but get message error at the end

Should I buy an Arduino Due and get on with it? There are examples of STM CAN programmes, but I assume they will not work without the magic GVRET files....

Re: I think I CAN, I think I CAN...

Posted: Mon Jul 31, 2023 12:13 pm
by Gregski
RetroZero wrote: Sun Jul 30, 2023 10:44 pm Well, three long days later, downloading SavvyCAN, STMCubeIDE and ArduinoIDE to convert STM to Arduino, and watching Damiens simple download video(vimeo), I hang up my gloves at 01 am. May there be a lightning bolt with divine intervention....

EDIT - after half a day more, I'll have to ask the stupid questions.
1: Can a STM32F33 Nucleo F334R8 be used to set up a CAN analyser?
If yes, HOW?
I have installed STMCubeIDE, ArduinoIDE, SavvyCAN, jonvolks GVRET files and I don't know what else.
I have attempted Damiens simple Command update via his vimeo video, but the device is not detected at the end (all the rest is as per his explanations)....
I tried to install the GVRET files into ArduinoIDE as per another website I fell onto in the early hours of the morning, but get message error at the end

Should I buy an Arduino Due and get on with it? There are examples of STM CAN programmes, but I assume they will not work without the magic GVRET files....
sorry you have to go through all of that, but greatly appreciate the feedback and I would like to share / say this, this is the reason for this thread, we as EV builders / converters will face steep learning curves, in my opinion the best thing to do is throw some money at it and get the best tools for the job, since the OEM Arduino Due board has TWO Controller Area Network (CAN) controllers built into it - but no transceivers, and you already have SavvyCAN the software I highly recommend one of the modded Due boards from EVTV which they added a Texas Instruments CAN transceiver on the board to enable the CAN controller in the SAM3X microcontroller chip allowing direct CAN communications.


EVTVDue Microcontroller for $100 bucks, think of it as thanking them for SavvyCAN
EVTV DUE.jpg

OR, get their dual channel board


1 CANKIT - CANbus kit with Microcontroller and Cable for $150 bucks
CANDue2.2small_medium.jpg


cause you will spend that much to roll your own as this is the only decent shield like CAN adapter for the Due board COPPERHILL TECHNOLOGIES Dual CAN Bus Interface For Arduino Due With Extended Power Range and runs $50 bucks alone
apioiyr6z__39720.jpg

Re: I think I CAN, I think I CAN...

Posted: Mon Jul 31, 2023 8:45 pm
by RetroZero
OK, looks like it will be that way then. I felt like I was so close. I got the Nucleo board to communicate with my pc and I learnt how to upload examples like making an LED blink (need to find a LED to confirm it worked) but the comms LED was flashing during the download, and a positive confirmation was received at the end. That's a giant step for me!
I'll play with ArduinIDE to see if I can do the same, even if only for practising, but my aim is to get CANning asap. Would like to implement an onboard OEM charger....amongst other things. There's a certain ID4 battery that requires data packs from a host, would have liked to help out ,but my setup and (lack of) knowledge has set me back.

Re: I think I CAN, I think I CAN...

Posted: Mon Jul 31, 2023 8:55 pm
by Gregski
RetroZero wrote: Mon Jul 31, 2023 8:45 pm OK, looks like it will be that way then. I felt like I was so close. I got the Nucleo board to communicate with my pc and I learnt how to upload examples like making an LED blink (need to find a LED to confirm it worked) but the comms LED was flashing during the download, and a positive confirmation was received at the end. That's a giant step for me!
I'll play with ArduinIDE to see if I can do the same, even if only for practising, but my aim is to get CANning asap. Would like to implement an onboard OEM charger....amongst other things. There's a certain ID4 battery that requires data packs from a host, would have liked to help out ,but my setup and (lack of) knowledge has set me back.
you fought a good fight, this is why there are CAN Bus Support Groups, we meet at a Pub near you every Friday and Saturday nights, it is completely anonymous, join us !

Re: I think I CAN, I think I CAN...

Posted: Tue Aug 01, 2023 5:16 am
by RetroZero
Cool, I'll look out for the guy on crutches then 😂

Re: I think I CAN, I think I CAN...

Posted: Tue Aug 08, 2023 4:58 pm
by Gregski
so I plan to use this COPPERHILL TECHNOLOGIES Dual CAN Bus Interface For Arduino Due With Extended Power Range doodad to control my first gen Chevy Volt onboard charger (yes the VCU can run the code to charge it but for Phase I, I prefer to have some isolation)

Initial thoughts, I know this is a dual CAN piece of machinery so I was wondering what the third smaller green connector was for and it appears as though it is for power, ie 7-36 volts DC and ground, well why didn't they just pull the power from the Arduino Due "mother board" why do I have to supply separate power to this animal?

uno.jpg

Looks like they Uno reverse carded us:

"In order to more efficiently serve automotive and industrial applications, the JCOM.CAN.DUE-X board supports an extended input power range of 7 to 36 VDC to power the entire system, i.e. including the Arduino Due itself."


IMG_6282.JPG
IMG_6284.JPG
IMG_6286.JPG
IMG_6290.JPG
IMG_6288.JPG
IMG_6298.JPG
IMG_6300.JPG

Re: I think I CAN, I think I CAN...

Posted: Fri Aug 11, 2023 1:05 pm
by uhi22
I had two surprises regarding CAN transceivers, and these are totally unexpected, so I will share here:
1. I ordered some SN65HVD234 CAN transceivers from Aliexpress, use them according to the data sheet with Enable pin connected to 3.3V. And what they are doing? They do not drive the CAN lines to a dominant level, they just mirror back on RXdata what the controller sends on TXdata. Means: Some kind of loopback mode. According to data sheet, this type should not have such a mode. The only explanation which I have, is, that they sell wrongly labeled parts. By pulling the EN pin to ground they work.
2. I ordered the cheap CAN transceiver boards from Aliexpress, they contain a SN65HVD230, and a 10k resistor between pin 5 pin 8 and ground. This looks good, it should enable the slope control. But what does the board? It routes the traffic from CAN to CANRX, the controller tries to send the ACK bit on CANTX, but the device does not send the dominant levels on CAN for the ACK. The device is in some kind of "listen only" mode. This is not according to the data sheet. I tried the "strong pull down" (grounded) on the pin5 pin8, and with this setup, the transceiver works as intended.

My conclusion: It is possible to spend a lot of time searching at the wrong place. Nothing works, and at the end it is just a wrong IC. Measuring the lines with an oscilloscope (two channels are sufficien) is from my PoV the only way to find such an issue.

Here I found the data sheets:
https://www.ti.com/lit/ds/symlink/sn65h ... 1742624106

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 4:08 am
by Gregski
So this wonderful CAN Logger 6000 Part 1 video was just recommended to me by the YOuTube Al Gore rhythm, I hope you find it informative:



Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 11:09 am
by arber333
uhi22 wrote: Fri Aug 11, 2023 1:05 pm I had two surprises regarding CAN transceivers, and these are totally unexpected, so I will share here:
....
Here I found the data sheets:
https://www.ti.com/lit/ds/symlink/sn65h ... 1742624106
That are some of the exact symptoms i have here with my boards. When i need to innitialize can bus i dont get any confirmation back and nothing moves. I will test now with enable pin to gnd and floating... will get back.

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 11:19 am
by mario
2. few years back, I had problems with those ali boards too. Ended up replacing SN65HVD230 chip with SN65HVD234 and it worked OK.

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 11:52 am
by arber333
mario wrote: Mon Aug 14, 2023 11:19 am 2. few years back, I had problems with those ali boards too. Ended up replacing SN65HVD230 chip with SN65HVD234 and it worked OK.
Yes i specificaly made design for 234 but i managed to use 230 with it all the time. I guess i met those versions which have inverted logic...

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 8:22 pm
by RetroZero
Gregski wrote: Mon Aug 14, 2023 4:08 am So this wonderful CAN Logger 6000 Part 1 video was just recommended to me by the YOuTube Al Gore rhythm, I hope you find it informative:

I saw this before going and getting into Mooc's on how to make a CAN logger etc. As I don't see it on Damiens webshop, and I am too stupid to get onto Discord, I assume it's not yet up to a plug-in and play status. I have made HUGE steps for mankind - I made the internal LED on my Nucleo board blink, and then coded and external LED to switch on. This is big stuff for me, so next will probably be reading CAN or something. And yes, I could just buy EVTV one, but that's too easy.

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 8:35 pm
by arber333
@uhi22: Did you test those faulty SN65HVD234 aliexpress chips on polarity of Enable pin? I am interested if they would work with Enable pin floating?

Re: I think I CAN, I think I CAN...

Posted: Mon Aug 14, 2023 9:47 pm
by uhi22
Just tested more deeply. With unconnected enable pin, the communication works. Then connected a multimeter between enable and ground. It shows zero voltage, and still the communication works. Third test, measure the resistence between enable and ground. It is 165kOhms, no matter whether the device is powered or not.
Conclusions: it has an internal pulldown resistor and works fine when leaving the pin open.

This is the strange device:
image.png
And this is the other from the transceiver boards:
image.png

Re: I think I CAN, I think I CAN...

Posted: Fri Oct 06, 2023 4:04 pm
by uhi22
I'm on the way of sorting out the possibilities to observe and to transmit CAN message from the notebook. Is there already a wiki page regarding this? Or other threads? So far I did not find a good starting point. Maybe we should create one.

This is what I found out so far, to reach a working setup for CAN communication on the notebook:
- SavvyCAN is an open-source application with a lot of features, like recording, replaying and graphing CAN traffic. The documentation is here: https://www.savvycan.com/docs/
- We need an interface hardware to connect the CAN to the notebook. There a many solutions, and for me the search criteria was: It needs to be cheap, in best case self-made, easy to modify. I found the ESP32RET project, which is an ESP32 using the internal CAN (and external, SPI connected additional CANs if wanted), and connects via Wifi to the notebook. This sounded great, I had an ESP32 flying around and attached a 3.3V CAN transceiver. But the results were "mixed", I was not able to create a stable setup. So I used to the ESP32RET software as a basis and created a simplified version, which runs on an ESP32s3. It is maximum simplified: only one CAN, no bluetooth, no LEDs, hard-coded to use one existing Wifi network.

The hardware is quite simple: An ESP32s3 dev board and a CAN transceiver, plus power supply. Well below 20 Euros.

The project is stored here: https://github.com/uhi22/wifican

Using the combination of SavvyCAN and wifican I was able to send and observe CAN traffic with the notebook.

The big surprise of SavvyCAN for me was, that it is able to use DBC files. These are defining names, scalings and units for the signals on CAN. And the best is, SavvyCAN does not only use DBCs for graphing, it also contains an editor to create your own DBC files. Quite impressive and helpful.

Re: I think I CAN, I think I CAN...

Posted: Sat Apr 12, 2025 4:35 pm
by abetanco
collin80 wrote: Wed May 11, 2022 12:03 am Sorry the EVTV board came un-programmed. They shouldn't have sent it like that. Over at savvycan.com there is a binary "updater" which actually just flashes precompiled firmware to the board -> https://www.savvycan.com/GVRETupdate.zip you can use that on basically any Arduino Due based board but as has already been mentioned, the compiled version does expect EEPROM which the Due did not have unless you got the EVTVDue that they sell which does have EEPROM on it.

And, I am aware that perhaps getting all the tools working and getting SavvyCAN connected might not all be the simplest thing ever. Compiling it all yourself is probably quite the adventure. It's tough for me to get a good baseline of where all the pinch points are because I can compile it all in my sleep at this point. ;) But, even I get frustrated sometimes when trying to get various devices hooked up and working. I obviously have a lot of EVTV boards but I also use PeakCAN and Kvaser tools, I have the Microchip black box thing too. I have lots of CAN adapters, the PeakCAN and Kvaser are the easiest to use but the most expensive too. Really, for me the coolest one is either an EVTV ESP32 or the related Macchina A0 - both of which can connect to SavvyCAN over wifi. The A0 is especially cool in a car where you can slap it onto an OBDII port and away you go.

And, SavvyCAN is probably quite the mountain to climb because it started out as a tool for me (and a way to learn QT programming) and just kind of evolved over the course of years into having everything including the kitchen sink. There's probably like 4 ways to send CAN traffic for instance. You can use the fuzzing window, the frame sending window, you can write scripts in the script window, you can replay captured traffic. Some of them overlap but everything exists because me or someone else wanted to do something it didn't do yet. I wish I had more time to work on all the CAN tools but recently I just haven't been able to. Still, there is some progress. Be sure to check the "continuous" build if you want all the newest toys. It's automatically compiled for all three operating systems supported. Technically people compile SavvyCAN for Raspberry Pi too. But, I don't have compiled binaries for that.
Hello all, I hope someone on this thread can help me. I am using a Mac version of SavvyCAN.

I followed the directions on the OpenInverter Wiki page for CAN bus with Arduino Due (https://openinverter.org/wiki/CAN_bus_with_Arduino_Due) and have reached the final step of closing the Arduino IDE and adding the connection in SavvyCAN. However, SavvyCAN cannot recognize my GVRET-loaded Arduino Due. Interestingly, I am able to connect to the LAWICEL version. First, here is the screenshot of my GVRET (showing not connected):
image.png
Then, here is a screenshot showing that the LAWICEL version does show as connected:
image.png
To get the LAWICEL to connect, though, I have to close and reopen SavvyCAN. This doesn't work with the GVRET serial connection. I should also note that SavvyCAN at least detects that the Arduino Due is connected to the USB port, as it shows up on both the Serial GVRET and Serial LAWICEL menus.

Any thoughts?

Thank you!

Re: I think I CAN, I think I CAN...

Posted: Sat Apr 12, 2025 5:13 pm
by abetanco
In response to my previous post above, I just got it working, but I had to find an older version of SavvyCAN. It works for me, and my mac, on version v199.1. However, it does not work on any of the follow-up versions I've seen on Collin's website (V208, V213, Pre-Release development build from November 2024, and QT6 Development Build from December 2024). Any thoughts as to why not? The website I accessed to retrieve the different versions of SavvyCAN is: https://github.com/collin80/SavvyCAN/releases

Not sure if Collin is still active on this forum, but if so, THANK YOU for developing and sharing this software!

Re: I think I CAN, I think I CAN...

Posted: Wed Jan 28, 2026 3:40 pm
by tdigsi
Hei, looks both options from EVTV is sold out, anything else I could buy as analog? Have 0 experience in can logging, but want to learn. Appreciate the help
Gregski wrote: Mon Jul 31, 2023 12:13 pm sorry you have to go through all of that, but greatly appreciate the feedback and I would like to share / say this, this is the reason for this thread, we as EV builders / converters will face steep learning curves, in my opinion the best thing to do is throw some money at it and get the best tools for the job, since the OEM Arduino Due board has TWO Controller Area Network (CAN) controllers built into it - but no transceivers, and you already have SavvyCAN the software I highly recommend one of the modded Due boards from EVTV which they added a Texas Instruments CAN transceiver on the board to enable the CAN controller in the SAM3X microcontroller chip allowing direct CAN communications.


EVTVDue Microcontroller for $100 bucks, think of it as thanking them for SavvyCAN

EVTV DUE.jpg




OR, get their dual channel board


1 CANKIT - CANbus kit with Microcontroller and Cable for $150 bucks

CANDue2.2small_medium.jpg



cause you will spend that much to roll your own as this is the only decent shield like CAN adapter for the Due board COPPERHILL TECHNOLOGIES Dual CAN Bus Interface For Arduino Due With Extended Power Range and runs $50 bucks alone

apioiyr6z__39720.jpg

Re: I think I CAN, I think I CAN...

Posted: Wed Jan 28, 2026 3:54 pm
by Gregski
tdigsi wrote: Wed Jan 28, 2026 3:40 pm Hei, looks both options from EVTV is sold out, anything else I could buy as analog? Have 0 experience in can logging, but want to learn. Appreciate the help
would this work ESP32 CAN Web Interface & datalogger - community edition

esp32-canlite-1000x700.jpg


Re: I think I CAN, I think I CAN...

Posted: Wed Jan 28, 2026 4:53 pm
by tdigsi
After quick check , looks to me it is to slow to use for reverse engineering?

Re: I think I CAN, I think I CAN...

Posted: Wed Jan 28, 2026 6:57 pm
by arber333
I see this one which has CAN as well as Modbus with a simple header for input/outputs
https://lilygo.cc/en-us/products/t-can4 ... OO0V8l64ri
https://www.aliexpress.com/item/1005003 ... 1802JQPCEt

Then the other one has two CAN interfaces and a header
https://lilygo.cc/en-us/products/t-2can ... dp3khHO_Vt
https://www.aliexpress.com/item/1005010 ... 1802JQPCEt

I got both and still have to test this for operation. I see them being a simple module for testing CAN and Man in the Middle function...
You can still use CKidders CAN library with ESP32. I am using it with Arduino and its very simple to setup.
But for MCP2515 i am not sure how library works. I work with MCP2517FD

Re: I think I CAN, I think I CAN...

Posted: Mon Feb 09, 2026 10:40 pm
by Gregski
tdigsi wrote: Wed Jan 28, 2026 4:53 pm After quick check , looks to me it is to slow to use for reverse engineering?
how about the CAN Logger 6000



Re: I think I CAN, I think I CAN...

Posted: Mon Feb 09, 2026 11:17 pm
by asavage
Ah, but where can you buy one? Not on Damien's webshop.

Re: I think I CAN, I think I CAN...

Posted: Mon Feb 09, 2026 11:19 pm
by Gregski
asavage wrote: Mon Feb 09, 2026 11:17 pm Ah, but where can you buy one? Not on Damien's webshop.
do you support him via Patreon? are you on his Discord server?

Re: I think I CAN, I think I CAN...

Posted: Mon Feb 09, 2026 11:56 pm
by asavage
Yes, I send Damien money every month. But he has no retail presence for the CAN logging solution you suggested. And if I have to build it from scratch . . . I'm too lazy these days to build tools that I can buy, I'll stick with the crudity I put together in two hours a few years ago, using the OI Wiki article:

https://openinverter.org/wiki/CAN_bus_with_Arduino_Due
It's not a comprehensive recipe but fills in a lot of gaps that would otherwise be a lot of research for me.
IMG_9211.jpg
The Due has CAN interfaces but no CAN transceivers. I use a pair of cheap generic CAN transceivers based on a VP230 (SN65HVD230) (or clone, who knows?) CAN<->GPIO (or something) module to an Arduino Due that is powered via USB from a laptop. The Due then supplies 3.3v to the transceivers, and I run somebody else's code -- GVRET, etc. -- on the Due and monitor/capture it on a laptop via USB. I do not attempt to capture to an local SD card etc. I capture on the laptop instead via the monitor instead. The details escape me, but the lash-up is sitting in my filing cabinet (I just re-discovered) from the last time I used it two years ago.

If I could just buy something like Damien's CAN capture device, I probably would/should. But the barriers I'd encountered (either hard to buy, expensive to buy, or reviews suggested poor results) led me to roll my own, which for the limited amount of CAN capture I have needed so far has served. Someday I'll buy something better, I assume.

[I find Discord a mess, nearly incomprehensible to use, coming from a BBS background. Forums I understand, Discord makes no sense to me. I do have an account, though.]