Those were the days...
I think I CAN, I think I CAN... Topic is solved
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
- 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...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
see http://www.wdrautomatisering.nl for bespoke BMS modules.
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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.
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
-
- Posts: 3273
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 80 times
- Been thanked: 239 times
- Contact:
Re: I think I CAN, I think I CAN...
I think 10A DC out is what you can expect the most. But AC amps vary if you use 240Vac or 115Vac.
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
-
- Posts: 3273
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 80 times
- Been thanked: 239 times
- Contact:
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
Game On !
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
just when I thought I couldn't luv big corporations even more, comes this Amazon review submission rejection (my first one by the way)
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
-
- Posts: 3273
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 80 times
- Been thanked: 239 times
- Contact:
Re: I think I CAN, I think I CAN...
Did you use any profanity when describing how it did not work for you?
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
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
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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.
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
- 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...
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)
Have you told the Arduino IDE that you're compiling for the Due? (Tools, boards,... I think from memory)
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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 ???
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
so I tried searching our Wiki for "bossa" next and that yielded "no results matching the query."
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 348 times
Re: I think I CAN, I think I CAN...
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!
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!
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 348 times
Re: I think I CAN, I think I CAN...
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)??
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)??
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 348 times
Re: I think I CAN, I think I CAN...
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!
-
- Posts: 1801
- Joined: Sun Apr 03, 2022 1:57 pm
- Has thanked: 102 times
- Been thanked: 348 times
Re: I think I CAN, I think I CAN...
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
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
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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)
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
- Gregski
- Posts: 2326
- Joined: Tue Sep 14, 2021 10:28 am
- Location: Sacramento, California
- Has thanked: 353 times
- Been thanked: 468 times
- Contact:
Re: I think I CAN, I think I CAN...
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