JuWorkshop / AntBms-to-Ve.Can-Victron-Venus

Ant Bms decoding / encoding and transfer to Venus Gx, Cerbo, bbb ect for Ve.Can input. (CAN protocol according to RecBms, BYD, LG ect)
10 stars 1 forks source link

Connection and commissioning #2

Closed moto600 closed 2 years ago

moto600 commented 3 years ago

great project. I can't quite get along with the information. how exactly is the connection between your control unit and the CerboGX? the hdr-f-2.45 has 3 connections but Ve.Can has 4 connections. what exactly do you do with the Src_Teensy3.2AntBmsToCan.ino?

thx

JuWorkshop commented 3 years ago

just connect GND, CAN HI, CAN LO on GX. Teensy.ino read rs232 bms serial port and write data on another serial port used as CAN. Teensy do protocol conversion from rs232 to CAN format.

moto600 commented 3 years ago

but ve.can has 4 pins. what of it is what

moto600 commented 3 years ago

33995BC0-B563-42C8-B944-48E2EC15DD63

found that ... what is can hi and what can lo

moto600 commented 3 years ago

and does this Teensy 3.2 need a power supply or does it work like that?

moto600 commented 3 years ago

in the plan is 1k ohm resistance and a capacitor of 0.1y ... in the description is what a 120 ohm resistance! what now? och please for feedback ... have all the components ... would like to try it out

JuWorkshop commented 3 years ago

33995BC0-B563-42C8-B944-48E2EC15DD63

Not a Ve.can port, this pict, = Ve.direct port rs232 (mppt?).

moto600 commented 3 years ago

3D113129-5449-4582-970C-D49EB9E5C9E9

okay my mistake. so this here. what about the resistance 1k ohn and that 0,1y capacitor?

JuWorkshop commented 3 years ago

I must correctly complete the schematic. Teensy is powered by vcc bms-port. ( Vin "teensy" connected to Vcc from Bms port). pin3 "sn65hd233" connected to 3.3volt teensy pin.

GX device has 2 can ports, (1 opto-isolated and 1 non isolat). -opto isolate require gnd, H, L and Vcc (from sn65hdv233). non isolate only require gnd, H, L.

120 ohm, is can bus terminal: image

accordind iso 11898: https://en.wikipedia.org/wiki/CAN_bus#CAN_lower-layer_standards

moto600 commented 3 years ago

is that so correct

D113D1C4-DD67-40CF-8FDC-D9368C6CA892

JuWorkshop commented 3 years ago

is that so correct

D113D1C4-DD67-40CF-8FDC-D9368C6CA892

Correct, I run like this. With gnd line : antBms port gnd // teensy gnd.

JuWorkshop commented 3 years ago

0_Teensy3,2_vecan_sch_rect

moto600 commented 3 years ago

Hello. have ordered the SN65HVD230. as can be seen in the photo, there are other connections here. does it work anyway? how do you have to set the 1K resistance and the capacitor?

In addition, it has completely different connections D and R are not available either ... the module SN65HDV233 is not available anywhere ...

is there any information about the pin assignment of the ant-bms?

4B0943F1-B33D-4A21-B4D2-00034CD7F6C3

moto600 commented 2 years ago

have now asked some dealers in china. they all say the module SN65HDV233 would not exist

JuWorkshop commented 2 years ago

SN65HVD233DRG4 .pdf

JuWorkshop commented 2 years ago

http://www.ti.com/general/docs/suppproductinfo.tsp?distId=26&gotoUrl=http%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Fsn65hvd233

moto600 commented 2 years ago

good and where can I buy it

JuWorkshop commented 2 years ago

https://fr.farnell.com/search?st=sn65hvd233

pahorpet commented 2 years ago

Hi

  1. do you have a layout for isolated input I am not able to run it. only nonisolated
  2. I don't see the battery in the cerbo and I have 25% errors on RX packets and TX all of them are dropped.
  3. I am using MCP2515 can it be the issue?
JuWorkshop commented 2 years ago

Hi, I' use Si8422 for isolated ve-can line. With Ant bms it's work same with opto isolated and non opto-isolated. Capture d’écran de 2021-11-20 08-07-09

pahorpet commented 2 years ago

And layout of Rj45? It is only 1,2,3(H,L,Gnd)? Any idea what can be wrong at second question? Have you been working on another version?

JuWorkshop commented 2 years ago

No forgetting 120 Ohm CAN bus terminator (H//L)? config cerbo can 500kbit? I use home made cape for beagleboneblack as cerbo: DSC_0514 DSC_0492 DSC_0465 DSC_0461

pahorpet commented 2 years ago

No forgetting 120 Ohm CAN bus terminator (H//L)? using original on at cerbo and can module already have it there config cerbo can 500kbit? sure

JuWorkshop commented 2 years ago

120 Ohm on bms canH//canL. Yes 500kbit or need change source code line 11: int canSpeed = 500; // kbit/s config cerbo ect: https://github.com/JuWorkshop/AntBms-to-Ve.Can-Victron-Venus/wiki