question

ds1707 avatar image
ds1707 asked

Seplos BMS 48V CAN with Waveshare RS485 CAN HAT

Hello community,

I have a question concerning the CAN communication between my RPI Running Venus 2.85 with the Waveshare RS485/CAN HAT connected via CANbus to my Seplos BMS.

Via "/data/VeCanSetup/setup"

I installed the #9 Waveshare CAN

can0 Waveshare Hat 12 MHz crystal
can1 Waveshare Hat 12 MHz crystal

The i see the CAn Bus in the Venus software

1650801918001.png

1650801705686.png1650801728637.png

But i get the ERROR-Passive failure.
In the Seplos Software i choose "Victron under CAN Protiocol"
I have double checked the wiring and measured the wires but still the same isse.

Hope you can help me.

Thank you!

Best Regards,

Dominik



Venus OSRaspberry PiVE.Can
1650801705686.png (29.8 KiB)
1650801728637.png (25.4 KiB)
1650801918001.png (4.5 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

8 Answers
ds1707 avatar image
ds1707 answered ·

After playing with config there is still an error passive, but the SHEnergy and battery was added to Venus. So this can be closed.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bathnm avatar image
bathnm answered ·

Your "ERROR-Passive" might be down to the HAT not supplying data that is in the right format. I know there is a fix, and it might not be in VenusOS till 2.90.

If you can run the following command and share the output I can let you know if you are seeing the issues that is in the fix, or a new issue.

ip -json -details -statistics link show can0


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

micha854 avatar image
micha854 answered ·

same issue here with raspi 3B+ with venus OS and can bus from WAVESHARE

my output:

[{"ifindex":2,"ifname":"can0","flags":["NOARP","UP","LOWER_UP","ECHO"],"mtu":16,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":100,"link_type":"can","promiscuity":0,"min_mtu":0,"max_mtu":0,"linkinfo":{"info_kind":"can","info_data":{"state":"ERROR-ACTIVE","restart_ms":100,"bittiming":{"bitrate":500000,"sample_point":0.833,"tq":166,"prop_seg":4,"phase_seg1":5,"phase_seg2":2,"sjw":1},"bittiming_const":{"name":"mcp251x","tseg1":{"min":3,"max":16},"tseg2":{"min":2,"max":8},"sjw":{"min":1,"max":4},"brp":{"min":1,"max":64},"brp_inc":1},"clock":6000000},"info_xstats":{"restarts":0,"bus_error":0,"arbitration_lost":0,"error_warning":0,"error_passive":0,"bus_off":0}},"num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"stats64":{"rx":{"bytes":165635,"packets":23423,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":53534,"packets":6693,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}}]
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bathnm avatar image bathnm commented ·
@micha854 I can confirm that you hit a bug/issue in the GUI, which has now been fixed. It seems that some CAN controllers do not report berr_counters and that used a problem.


As @Vassilis Bourdakis has stated the fix is in the 2.90 beta releases.

0 Likes 0 ·
vassilis-bourdakis avatar image
vassilis-bourdakis answered ·

had the same with my WAVESHARE HAT, mvader explained when I asked that this is OK and means that error checking (or something like that) is active, so nothing to worry.

BTW, CANBUS was indeed working!

Upgraded to 2.90-3 and now get full report of packets et al, so if you can upgrade to latest 2.90 you'll be pleasantly surprised!

1652433795467.png

V.


1652433795467.png (38.4 KiB)
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bathnm avatar image bathnm commented ·

Subtle difference between the two screens. The left hand does not report BERR counters so the TEC and BEC are --. The right hand does and displays the value.

1652435202463.png

0 Likes 0 ·
1652435202463.png (366.7 KiB)
micha854 avatar image
micha854 answered ·

Where is the new version 2.90 available? I can only find the 2.85 which the gx also shows me as the newest

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bathnm avatar image
bathnm answered ·

It is not released yet, it is in Beta. You need to set your device to the "Latest release candidate" update feed to get beta software. Search the forums for releases notes.

While it fixes the network status display for CAN, it might break other things. So please read the releases notes related to beta software before using.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

micha854 avatar image
micha854 answered ·

ah ok thanks, i have updated to v2.90-6 and show me the data od RX and TX. fine!

but on top of TEC and REC shows every N/A, thats normal?

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bathnm avatar image bathnm commented ·

@micha854 if your can controller does not return any BER counters then yes.

0 Likes 0 ·
micha854 avatar image micha854 bathnm commented ·

i dont now. work for me! thanks

0 Likes 0 ·
ds1707 avatar image
ds1707 answered ·

Is it possible to get more data out of the CAN and share them on mqtt?

For example Cell voltage of each cell and each pack?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ds1707 avatar image ds1707 commented ·
Seplos told me all the data was shared via CAN, how can i add all the data to mqtt?
0 Likes 0 ·

Related Resources

Additional resources still need to be added for this topic

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Additional resources still need to be added for this topic

Raspberry Pi running Victron’s Venus firmware - Blog Post

Venus OS Large image: Signal K and Node-RED - Install

raspberrypi install venus image