Skip to content
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

Basic Windows support (trough PEAK-System PCAN-USB driver) #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Baterka
Copy link

@Baterka Baterka commented Aug 15, 2024

  • Added basic Windows support (trough PEAK-System PCAN-USB driver)
  • Fixed some typos
  • Switched to using promises on some places
  • Bumped ESLint to ECMAScript 8 as it is supported by Node 12+ and my changes benefit from it (async methods in classes)

I tested it on Windows 11 with installed PEAK-System USB driver, this CAN<>USB adapter, MCP2515 CAN module and Arduino Pro Mini (ATMega328PB) board with your mcp-can-boot bootloader.

Can you please test it on Linux, if the functionality is same as before? I am unable to test it right now.

 - Fixed some typos
 - Switched to using promises on some places
 - Bumped ESLint to ECMAScript 8 as it is supported by Node 12+ and my changes benefit from it (async methods in classes)
@crycode-de
Copy link
Owner

Thank you for this PR! I'll check and test this during the next week.

Can you please merge the changes (dependency updates) I've made yesterday?

Some thoughts for now:
I like the idea of the CanInterface classes.
Maybe this can be used in a more specific way like CanInterfaceSocketcan and CanInterfacePcanUsb combined with a commandline option to select the interface to be used. (Instead of strictly using it depending on the OS)
Doing so it would be easily possible to adopt other interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants