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

MAC M1 Pro Kvaser Leaf Light v2 Timeout error. #21

Open
dextertravispp opened this issue Jun 12, 2023 · 2 comments
Open

MAC M1 Pro Kvaser Leaf Light v2 Timeout error. #21

dextertravispp opened this issue Jun 12, 2023 · 2 comments
Labels
analyzing Investigation required documentation Improvements or additions to documentation

Comments

@dextertravispp
Copy link

I downloaded and built v0.3.1 and seem to be stuck with an interface timeout error. I get a similar error with the can_moni and can_test programs. Below is the result of kvl_test TEST INFO which i saw was the most informative from other posts/issues.

Any help appreciated.

dtravis@Dexter-MacBook-Pro KvaserCAN-Library % ./Trial/kvl_test TEST INFO
>>> CAN API V3 for Kvaser CAN Interfaces, Version 0.3.1 (0xaaa925f)
>>> myDriver.GetProperty(CANPROP_GET_SPEC): value = 3.0
>>> myDriver.GetProperty(CANPROP_GET_VERSION): value = 0.3
>>> myDriver.GetProperty(CANPROP_GET_PATCH_NO): value = 1
>>> myDriver.GetProperty(CANPROP_GET_BUILD_NO): value = aaa925f
>>> myDriver.GetProperty(CANPROP_GET_LIBRARY_ID): value = 600
>>> myDriver.GetProperty(CANPROP_GET_LIBRARY_DLLNAME): value = 'libUVCANKVL.dylib'
>>> myDriver.GetProperty(CANPROP_GET_LIBRARY_VENDOR): value = 'UV Software, Berlin'
    Loading the MacCAN driver...
    - One device added at location 02140000
      - Device #0: Kvaser Leaf Light v2
        - Properties: vendor = bfd, product = 120, release = 0001, speed = 2
    - Run loop started so notifications will be received
>>> CCanAPI::ProbeChannel(0): state = available
+++ Sorry, device #1 is not available
>>> CCanAPI::ProbeChannel(1): state = not available
+++ Sorry, device #2 is not available
>>> CCanAPI::ProbeChannel(2): state = not available
+++ Sorry, device #3 is not available
>>> CCanAPI::ProbeChannel(3): state = not available
+++ Sorry, device #4 is not available
>>> CCanAPI::ProbeChannel(4): state = not available
+++ Sorry, device #5 is not available
>>> CCanAPI::ProbeChannel(5): state = not available
+++ Sorry, device #6 is not available
>>> CCanAPI::ProbeChannel(6): state = not available
+++ Sorry, device #7 is not available
>>> CCanAPI::ProbeChannel(7): state = not available
      + Device #0: asynchronous event source added to run loop
        - Message pipe of size 512 bytes
        - Message queue for 65536 elements of size 88 bytes
        - Double buffer each of size 512 bytes for endpoint #1
    Initializing Kvaser Leaf Light v2 driver...
>>> Kvaser Leaf Light v2 (device #0): stop chip (go bus OFF)
>>> Kvaser Leaf Light v2 (device #0): set driver mode NORMAL
>>> Kvaser Leaf Light v2 (device #0): trigger chip state event
+++ Kvaser Leaf Light v2 (device #0): card information could not be read (-50)
+++ Sorry, device #0 is not opened or not available
+++ error: myDriver.InitializeChannel(0) returned -50
Cheers!
dtravis@Dexter-MacBook-Pro KvaserCAN-Library % ./Binaries/can_moni 'Kvaser CAN Channel 0' --baudrate=500 --mode=2.0 -v
CAN Monitor for Kvaser CAN Interfaces, Version 0.3.1 (0xaaa925f)
Copyright (c) 2007,2020-2022 by Uwe Vogt, UV Software, Berlin

This program comes with ABSOLUTELY NO WARRANTY!

This is free software, and you are welcome to redistribute it
under certain conditions; type `--version' for details.

Op.-mode=CAN2.0 (op_mode=00h)
[email protected]% (f_clock=8000000,nom_brp=1,nom_tseg1=13,nom_tseg2=2,nom_sjw=1,nom_sam=0)

Hardware=Kvaser CAN Channel 0...FAILED!
+++ error: CAN Controller could not be initialized (-50)
Copyright (c) 2007,2020-2022 by Uwe Vogt, UV Software, Berlin
@dextertravispp
Copy link
Author

Update. It appears this may be related to the particular Kvaser device. When i tried with a newer Kvaser of the same model it functions correctly with the both kvl_test and can_moni.

Is there possibly a minimum FW version we need from the Kvaser?

@mac-can
Copy link
Owner

mac-can commented Jun 3, 2024

Comment: Yes, it looks like an issue with incompatible firmware.

@mac-can mac-can added documentation Improvements or additions to documentation analyzing Investigation required labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzing Investigation required documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants