Just so there are no misunderstandings, I don’t use a Raspberry Pi, I have 3 MP2 5000s and one of them is an MP2 5000 GX!!
Yes noted. And for such product, MultiPlus-II GX or EasySolar-II GX, being able to add a canport by using a usb adapter is quite useful.
Do you think you’ll be able to address this issue again in the near future? I’m very dependent on this feature due to the limited USB ports on my GX device. Thank you very much for your support !!
Did you try a powered USB hub as a workaround? I had some issues on a MPII 5000 GX as well that were resolved by that.
No because my device will recognized correctly but the can ports are swapped.
Hi @jupzup Note that this is not just an issue with USB Can devices. It is also an issue on the RPI Dual CAN Hats. Sometimes they boot as can0 and can1 and other times they are swapped. Searching the web will show some possible tweets to udev, but they do not all work. It is low level kernel enumeration of the drivers and which happens first. Sometimes a reboot does not fix it, but a complete power cycle does.
The best I have found is to use udev, and create a completely newer interface name, so for example on my MCP based CAN hat I use MCP0 and MCP1 and that works. Youc ant rename something away from can0 and then something onto can0.
So maybe use udev and rename the interfaces to ucan0 and ucan1 or somethings similar.
Hi @nmbath
Could you please tell us step by step what needs to be done - how you’ve done it and it’s working on your system - for having a reference here?
It will help others with the same problem, as the developers of the Venus OS clearly stated that “we’re not now going to help with that”.
Thanks in advance.
You need to search the web, I do not have the specific answer as it will depend how the USB interface is enumerated and can be detected. As I stated I has this issue with MCP CAN drivers on various RPI HATS, the enumeration of USB interfaces will be slightly different.
This link explains why you can easily rename, based on MCP Can interfaces via SPI interfaces.
A general google search with these key words should get you started..
udev rules interface name can0 usb
An intro to udev, this could be a good read.
Alternative as Matthijs has suggested speak with the supplier of the USB CAN device you have.
Do you think you’ll be able to address this issue again in the near future? I’m very dependent on this feature due to the limited USB ports on my 3 Phase MP2-5000-GX device. Thank you very much for your support !
No answer anymore? That makes me sad…