-
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
CANable fails to initialise on RPI reboot. Disconnect / reconnect seems to get it working again. #4
Comments
{SYSTEM WORKING AFTER DISCONNECT/RECONNECT USB for CANABLE} root@raspberrypi2:/usr/local/bin# lsusb {VENUS STARTS UP AGAIN, BUT REC-BMS NOT SHOWN IN THE DEVICE LIST} C:\Users\Andy>ssh [email protected] root@raspberrypi2:~# {USB REMOVED & REINSERTED, ALL WORKING AGAIN} C:\Users\Andy>ssh [email protected] root@raspberrypi2:~# |
I just tried my CANable Pro on my RPI 4 v1.2 board running Venus OS v2.90~12 and it is detected properly at boot and after replugging. I recall having issues plugging the CANable into a POWERED USB hub not being recognized after boot. This was due to the way the CANable Pro dealt with a USB reset. Without the hub, USB power is removed briefly during boot but with a powered hub it was not. It's been a while since I used the CANable Pro as I've moved to Cerbo, but I also recall a firmware update that may have fixed the issue with powered hub. dimes indicates I'm running 8c005eb which is a beta version. Check https://canable.io/updater/. |
Quick answer, thanks! :-) I tried and confirmed....
Same issue. It disappears from the Devices List on a restart, even though the blue lights are still flashing. And if unplugged and reinserted, it appears in the list and all works as expected. Shall I send other files? /u-boot/config.txt or can0something??? |
The failure is at a low level and you've looked at the dmesg log. There's also /data/log/messages but don't suspect you'd find anything there. You can play around with the udev rules and related shell scripts to see if you can get a reliable connection on boot. My knowledge there is very limited and I'm afraid I can't offer much help. If you find something that works, let me know and I'll roll it into my install script. |
Ok, thanks again for the reply. I obviously did the setup manually last time, so I will go through my notes and check what your Setup scripts have done and compare them with what worked before. I guess I can hand modify things and see if I can fix it, then let you know the 'before' and 'after.' Thanks! P.S. I will also post on Victron Community Mods forum to see if anyone else can point me in the right direction. :-) |
Well, I fixed it. By comparing all the results on my Pi with what I have done manually before. And rebooting between each time. Took a while!! But the thing that made it work was /etc/venus/canbus_ports had a whole bunch of entries, can0 several times, can1, and even a blank line - from all my attempts to install and remove using /data/VeCanSetup/setup, etc. When I manually edited /etc/venus/canbus_ports to contain exactly "can0" and a carriage return, it rebooted and all started as it should. I don't have a second CAN connection right now, but will have in a few weeks. So I I guess I will be coming back to this issue and trying out how to get 2x CANables to work! I notice this entry on Venus Mod Community on this topic, but don't quite understand it yet.... So, all going well, and if anyone else gets the same problem, try this simple edit. Loving my SetupHelper system !! ;-) |
I have just upgraded 2x Raspberry Pis, one 3B+ with 2.90-14 Pi2, and one 3B with 2.90-14 Pi2 Large.
I have a Canable Pro which has been working for a few years with previous release and the manual install
I have used SetupHelper and all working except this problem with VECanSetup.
I have REC-BMS enabled using Settings/Services/Can0 = Can.bus 250kbps
In SSH, I selected 'a' and chose '2' for slcand
Problem Symptoms:
1. It works for a while, but when I restart the Pi, the REC-BMS disappears.
2. A fix appears to be to disconnect the USB cable and reinsert it, and the REC-BMS appears in the device list and works.
3. I'm getting the same behaviour on both Pis, so that elimates hardware issues I hope.
So it seems to be some kind of initialisation problem on restart that is locking up the comms???
Thanks for your work, this will really help out a lot of people.
Andy Alford
The text was updated successfully, but these errors were encountered: