Replies: 2 comments 2 replies
-
The reason is merely one of legacy. You see, at first, and for several years, the GVRET interface was all there was. No socketcan or anything. The GVRET devices use EEPROM to store the speed so once it is set it stays that way. As such, I never had any real reason to store the speed as the hardware had it stored. Then I added socketcan and that you configure on the command line so there was still no reason to store the speed. Now more interfaces are supported and I can see that it might be useful for some of them. So, I don't have any objection against adding this functionality. |
Beta Was this translation helpful? Give feedback.
-
I guess the problem is also that with socketcan interfaces you can't reconfigure a CAN interface without possessing Did you ever think about splitting parts of the app into a dedicated daemon? This one could then run with the necessary privileges and (re)configure the interface(s) on behalf of the UI app. |
Beta Was this translation helpful? Give feedback.
-
Since I'm trying to get my own device working with savvycan I noticed the bus speed is not stored on exit. Is there a reason not to do this? In my case it would be welcome (and I already did it in a fork) since the slcan like protocol I use with multiple bus support and kind of needs to set the speed every time on start. I'm also working on a slcan driver since I dislike the socketcan/slcand method but I'm quite certain that will not be up to mergeable quality anytime soon.
I actually already have it working but the question is for knowing if I even want to attempt a pull request since there might be a good reason for it not to be done in the first place.
Beta Was this translation helpful? Give feedback.
All reactions