I think I CAN, I think I CAN... Topic is solved

arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

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

Post by arber333 »

Gregski wrote: Mon May 02, 2022 1:25 pm
arber333 wrote: Mon May 02, 2022 7:01 am Sorry for not being there for you, even i have to sleep sometime 😂.
Don't lie, heroes never sleep!
Those were the days...
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

arber333 wrote: Mon May 02, 2022 1:39 pm
Gregski wrote: Mon May 02, 2022 1:25 pm
arber333 wrote: Mon May 02, 2022 7:01 am Sorry for not being there for you, even i have to sleep sometime 😂.
Don't lie, heroes never sleep!
Those were the days...
I joke, I'll sleep when I'm dead, but I'm also pretty sure my wife will donate my body to science just to get more use out of me ;)
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

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

Post by EV_Builder »

arber333 wrote: Mon May 02, 2022 1:38 pm Right...🙄
:D its ok i'm on holiday so razor sharp :)
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

provided the following legend by Mr. Kramar I decided to geek out a little bit and create this cheat shit

Address 0x304 Data0 is an unknown at present, but seem to be 40 or 48 in the Volt.
Address 0x304 Data1 is the current commanded, convert to decimal and divide by 20.
Address 0x304 Data2 first 2 bits are MSB of the voltage command.
Address 0x304 Data3 byte is the LSB of the voltage command. Then MSB LSB is divided by 2.

Desired Amps Hex in Data1
1 14
2 28
3 3C
4 50
5 64
6 78
7 8C
8 A0
9 B4
10 C8
11 DC
12 F0
13 104
14 118
15 12C
16 140
17 154
18 168
19 17C
20 190
21 1A4
22 1B8
23 1CC
24 1E0
25 1F4
26 208
27 21C
28 230
29 244
30 258
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

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

Post by arber333 »

I think 10A DC out is what you can expect the most. But AC amps vary if you use 240Vac or 115Vac.
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

arber333 wrote: Mon May 02, 2022 5:11 pm I think 10A DC out is what you can expect the most. But AC amps vary if you use 240Vac or 115Vac.
thanks what should I expect if I plug it in to our house vacuum 120 volt 20 amp circuit ?
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

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

Post by arber333 »

Gregski wrote: Mon May 02, 2022 5:32 pm
arber333 wrote: Mon May 02, 2022 5:11 pm I think 10A DC out is what you can expect the most. But AC amps vary if you use 240Vac or 115Vac.
thanks what should I expect if I plug it in to our house vacuum 120 volt 20 amp circuit ?
Hm i suggest you reduce output to 6A. Maybe 8A..
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

Game On !

IMG_2407.JPG
IMG_2409.JPG
IMG_2411.JPG
IMG_2413.JPG
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

just when I thought I couldn't luv big corporations even more, comes this Amazon review submission rejection (my first one by the way)

CANalyst-II Review.jpg
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

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

Post by arber333 »

Gregski wrote: Fri May 06, 2022 12:59 pm just when I thought I couldn't luv big corporations even more, comes this Amazon review submission rejection (my first one by the way)


CANalyst-II Review.jpg
Did you use any profanity when describing how it did not work for you? 8-)
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

arber333 wrote: Fri May 06, 2022 1:18 pm
Gregski wrote: Fri May 06, 2022 12:59 pm just when I thought I couldn't luv big corporations even more, comes this Amazon review submission rejection (my first one by the way)


CANalyst-II Review.jpg
Did you use any profanity when describing how it did not work for you? 8-)
you can read the review I wrote in the screen shot verbatim, what I think offended them was a link to this forum, ha ha, can't have that, everyone knows the only website you will ever need is theirs
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

so I must say I am a little bit bumbed, I connected the EVTVDue board with an older style USB cable to my laptop, launched Saavy CAN which by they way is just an executable (pronounced: you don't have to install it you just double click a .exe file to open it up) quite brilliant really, as it means it's very portable, and nothing happened

So I launched Arduino IDE (the software program where you write code and run code) I made sure the right COM port was selected, I crossed my fingers and launched the serial monitor, then I typed "?" took a deep breath and hit enter, and as I suspected, nothing happened which confirms to me GVRET must not come pre installed on this card

that's the only way I know how to check what is on an Arduino board, if you have any suggestions I'm all ears

my opinion is that it would be a real value added feature if the board came with GVRET pre installed, now I don't know if that means they would need a couple flavors of the board like one for Linus, one for Apple, and one for Windows, but I think they could reach and satisfy an larger segment of the not so DIY EV conversion community, as I find Arduinoing a steady P.I.A.

let me know your thoughts

IMG_2462.JPG
IMG_2464.JPG
IMG_2458.JPG
IMG_2460.JPG
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

as I was saying Arduinoing is no fun there's errors every time, and here it is no different, so I am not trying to compile the GVRET code (pronounced: firmware) onto the EVTV Due board, and I am getting an error:

unknown CPU



Arduino: 1.8.16 (Windows 10), TD: 1.55, Board: "Arduino Due (Native USB Port)"

In file included from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Fat16.h:29:0,

from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\SquawkSD.h:4,

from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.h:24,

from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:19:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src/SdCard.h:76:2: error: #error unknown CPU

#error unknown CPU

^

In file included from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.h:26:0,

from C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:19:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\EasyTransfer2.h:42:20: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>

^

compilation terminated.

exit status 1

Error compiling for board Arduino Due (Native USB Port).



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
mjc506
Posts: 343
Joined: Wed Sep 09, 2020 9:36 pm
Location: Wales, United Kingdom
Has thanked: 30 times
Been thanked: 28 times

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

Post by mjc506 »

Huh. I would've assumed it would be pre-programmed.

Have you told the Arduino IDE that you're compiling for the Due? (Tools, boards,... I think from memory)
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

mjc506 wrote: Sat May 07, 2022 3:05 pm Huh. I would've assumed it would be pre-programmed.

Have you told the Arduino IDE that you're compiling for the Due? (Tools, boards,... I think from memory)
Yes sir, and I even tried both the Native and the Arduino ports
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

so after a bit of an investigation (starting with the basics) here's what my laptop aka Device Manager sees the genuine Arduino Due as, as compared to what it sees the clone EVTVDue as: Bossa ???

Arduino Due.jpg
Bossa Program Port.jpg
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

so I tried searching our Wiki for "bossa" next and that yielded "no results matching the query."

Wiki Bossa.jpg
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

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

Post by Pete9008 »

Bossa is this https://www.shumatech.com/web/products/bossa, it means that the board is totally blank and just contains the Atmel (chip manufacturers) bootloader. The Arduino IDE should still work with this though.

I'll set mine up and see if I can reproduce (although I'm on Linux so it may behave differently)

BTW - I agree completely, the Arduino environment is a pet hate of mine, capable enough to try to do complex stuff with it but with none of the debug tools to figure out why it doesn't work!
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

Pete9008 wrote: Sat May 07, 2022 4:13 pmI'll set mine up and see if I can reproduce (although I'm on Linux so it may behave differently)
thank you I appreciate that
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

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

Post by Pete9008 »

Bad news, mine works fine. Erased it to blank and reprogrammed over the native port no problem.

Guessing it might be a Windows driver issue. Long shot but it might be worth trying it on a different PC USB port (it sometimes re-installs the USB driver)??
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

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

Post by Pete9008 »

Can't believe it comes without the firmware on it :-( It might not suit everyone but for people who are buying buying it (and paying the premium) for a complete, ready to go unit, it makes no sense at all!
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

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

Post by Pete9008 »

Other option is to export the binary from Arduino studio (Sketch, export compiled binary) and then use the BOSSA programmer to program the board.

It looks like BOSSA is included with arduino, see here for more details on how to use it https://forum.arduino.cc/t/sam-ba-bossa ... n/176495/7
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

Pete9008 wrote: Sat May 07, 2022 4:27 pmCan't believe it comes without the firmware on it :-( It might not suit everyone but for people who are buying buying it (and paying the premium) for a complete, ready to go unit, it makes no sense at all!
I concur 100%, those [ahem] saavy enuff to know their stuff can simply over write what's on the board when they get it if it doesn't suite their needs, and us newbs would have less headaches
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

first of all thank you all for your feedback and offering to help, the troubleshooting continues, here's what Arduino sees on the COM ports for the Due vs the EVTVDue aka Bossa (ie nothing)

Arduino Due COM Port.jpg
Bossa lack of COM Port.jpg
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2194
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 305 times
Been thanked: 397 times
Contact:

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

Post by Gregski »

Pete9008 wrote: Sat May 07, 2022 4:22 pm Bad news, mine works fine. Erased it to blank and reprogrammed over the native port no problem.

Guessing it might be a Windows driver issue. Long shot but it might be worth trying it on a different PC USB port (it sometimes re-installs the USB driver)??
great suggestion, so here is the error it gives me on my PC (the other one was my laptop)

'CAN_COMMON' has not been declared

Googling brings us to this article from Collin: SavvyCAN update

man I just wanna do donuts in my new electric truck - ha ha
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
Post Reply