Skip to content

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

@dextertravispp

Description

@dextertravispp

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)
Bit-rate=500kbps@87.5% (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzingInvestigation requireddocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions