-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waveshare USB-CAN-A Challenges #45
Comments
After the reboot I root@raspberrypi4:~# ip link I do not see Can 10 in GUI, I assume it should show up under Services. root@raspberrypi4:/etc/udev# cat rules.d/VeCanSetup.rules udev rules for gs USB devices replace ...PH (place holder) with actual values ACTION=="add", SUBSYSTEM=="net",
root@raspberrypi4:/etc/udev# cat /var/log/PackageManager/current |
There are two common interface protocols for CANbus USB interfaces. The preferred is GS USB and works well with Victron firmware. The other is slcan. Victron has reported issues with dropped packets with slcan interfaces and they are not recommended but work OK in situations where devices send regular updates making a dropped packet less problematic. It appears that the Waveshare USB-Can-A device uses neither of these protocols. That is most likely why it is not showing up in the services menu. |
Do you have a suggestion(s) on CAN to USB adapter that supports either of those?? |
I have only tested the CANable device. Other devices are listed on the Victron web site. Sorry, don't have a current link because things have moved around since I last looked. |
Thanks for your assistance! |
I picked up a CANable (https://www.amazon.ca/dp/B0CRB8KXWL) unit with candlelight and it shows up under ip link and as a service in VenusOS. No info is showing in the GUI yet. Though under network it only shows 3 packets for TX vs 29 for RX. State is Error-Passive. That has me wonder if the work mode needs to changed? |
That depends on what is connected to the device. I'd say of you are seeing it in the services menu then you are good to go. The error-Passive is the normal (non error state). |
It is a Xantrex XC 3000 Inverter/Charger. It was on, though the status in the GUI did not reflect that or when it was pulling a load. That has me thinking I am missing something still. |
I do not think Xantrex inverter/chargers will show in the Victron GX device. |
Are you aware of someone or a repo, that has done a driver for a device over RV-C ? I am looking for something I can have a look at and see if I can modify it for the Xantrex. I have found a doc from them for the DN names supported. |
Sorry, I don't know of any third party mods to support Xantrex inverter/chargers. |
It does not need to be for them, but for any device. I am a software dev, and was going to look at creating my own code to support it in VenusOS. Just was looking for a starting point. |
Hi,
First I would like to thank you for all your efforts for the community.
I have a Waveshare USB-Can-A that I have attached to a Xantrex XC Pro supporting RV-C. I have the latest version of VanCanSetup, as well as Helper, Gui. I have attempted to install via the command line. I do not see the Can10 in the Gui. Info from the inverter/charger does not show up in the GUI. Looking for any advice and suggestions. Below are the steps I did, plus some info asked for, that I saw in earlier posts.
Thanks Scott.
Available actions:
Install and activate (i)
Reinstall (r) based on options provided at last install
Uninstall (u) and restores all files to stock
Quit (q) without further action
Display log (l) outputs the last 100 lines of the log
Choose an action from the list above: i
CANbus interface definitions:
interface: ( can10 ) custom GS USB
Xantrex XC Pro (can10) 1a86:7523
Choose a device type for can10 from the list above (by number) (cr for no change): 3
creating custom device
usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
usb 1-1.1: Product: USB Serial
select this device for can10 (y/n)?: y
enter optional name for can10 (cr for none): Xantrex XC Pro
enter serial number manually (cr for none):
can10 configuration updated
CANbus interface definitions:
interface: ( can10 ) custom GS USB
Xantrex XC Pro (can10) 1a86:7523
Available actions:
Add a USB interface (a )
Delete existing interface (d )
blank line if done with changes
interface may optionally be added to the action, (e.g. a hat or d 11)
USB interface must be 10 or greater
Hat interface should be entered as 'h' or 'hat'
Choose action from list above:
installing CANbus ports
removing scripts from old version of VeCanSetup
adding udev rules for can10
updating VeCanSetup udev rules
installing spi1-1cs overlay
new interfaces will not become active until after a reboot
Reboot system now (y) or do it manually later (n): y
rebooting ...
The text was updated successfully, but these errors were encountered: