-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use /dev/ttyCAN0 instead of /dev/ttyACM9 #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curiosity, have you build this debian and install it on a test machine?
No, not yet, how best to do that? Manually? on a linux boxen? README
looks like I could.
Will do that next.
p.s. this is a public repo, so let's remove references to hostnames for
Greenzie (even though that one is internal sans DNS).
…On Tue, May 23, 2023 at 5:46 PM Kristian Kabbabe ***@***.***> wrote:
***@***.**** commented on this pull request.
Curiosity, have you build this debian and install it on GZDEV9?
—
Reply to this email directly, view it on GitHub
<#8 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAABXCUB3G43JAHD7YA6EDXHUV2BANCNFSM6AAAAAAYMPER5E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, you can follow the README, it should still be accurate |
Tested, installs cleanly and overrides udev and service. |
CC: @mfsurvilo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks guys
Public repo so being intentionally vague here, but last steps to merge:
|
I am noticing we still have some print statements to fix as well: Line 567 in f5da6f5
|
Sorry y'all, one more commit to update the start script and stop scripts with what Innodesk recommends. I don't like it one bit, using modprobe and rmmod inside a service file (scary!) but it's not only what their start and stop scripts do, but also it works. Tested with @edavies64 and we can now start and stop emuccan.service with this and CAN traffic resumes cleanly. Before, we could never get it to stop and start. Now we can build a recovery behavior if canbus traffic fails, or if we get that dreaded:
We can now stop and restart the emuccan.service. |
That's not our code. @edavies64 also wants to upgrade this to latest we built this from, this is all their boilerplate. I would rewrite a LOT of it if that's the case. |
Talking with @seebq we're going to push on updating the driver to a later date. |
Because we were using /dev/ttyACM9 if you unplug and replug in enough tty devices, they eventually take that device name. It's reserved and the symlink apparently gets overridden or linux doesn't like you using that device name.
Just ask @AGummyBear how many times he had to manually unplug/replug devices (luckily he has per port power USB control and was able to do it via software).
Sadly, the software still requires one of these reserved names instead of a fancy unique udev name or by serial or some other more modern approach.
I tested this briefly by hardcoding the change in the udev rule on a machine and the emucd_64 binary worked:
This should minor version bump.
Would like to test installing this manual deb on a machine to make sure that it updates the udev rule appropriately.
I'm nervous the Debian installation won't allow overwriting this config file.