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

Add support for SocketCAN for Linux platforms #13

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

garrettsummerfi3ld
Copy link
Member

SocketCAN support is dependent on merging unofficial-rev-port/CANBridge#5.

Should resolve Linux-related #12.

Forgot to add SocketCAN initialization. This is now resolved.
@qwertychouskie
Copy link

node: symbol lookup error: /home/runner/work/node-can-bridge/node-can-bridge/build/Release/addon.node: undefined symbol: HAL_CAN_OpenStreamSession

for the Ubuntu build

@garrettsummerfi3ld
Copy link
Member Author

node: symbol lookup error: /home/runner/work/node-can-bridge/node-can-bridge/build/Release/addon.node: undefined symbol: HAL_CAN_OpenStreamSession

for the Ubuntu build

The tests will fail regardless due to missing devices, however I wonder if this is related to there not being a device or a possible udev rule not being turned on for this. Regardless I don't think there is a specific thing we should be worried about with this symbol lookup error.

@garrettsummerfi3ld
Copy link
Member Author

garrettsummerfi3ld commented Aug 30, 2024

On a Linux VM with a device connected, the following error occurs during npm test

Error: Receiving message failed with status code 1
    at testReceiveMessage (/home/garrettsummerfi3ld/Git/node-can-bridge/test/test_binding.js:70:35)

The test will also hang.

@garrettsummerfi3ld garrettsummerfi3ld marked this pull request as draft August 31, 2024 06:13
@garrettsummerfi3ld
Copy link
Member Author

There has been an identified issue with CANBridge as a whole for test failures. This PR should not be merged until unofficial-rev-port/CANBridge#7 is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants