Skip to content

Unable to disable PCAN_LISTEN_ONLY after CAN_Initialize has been called #8

Description

@codeskin

If PCAN_LISTEN_ONLY is enabled before CAN_Initialize has been called, then trying to disable it subsequently, as follows, has no effect.

int option = PCAN_PARAMETER_OFF;
status = CAN_SetValue(PCAN_CHANNEL, PCAN_LISTEN_ONLY, &option, sizeof(option));

Even though the parameter will be reported as OFF when CAN_GetValue is called, the PCAN_LISTEN_ONLY appears to be still active.

This problem is observed with "libPCBUSB.0.11.dylib" on macOS Catalina (Intel).

Test setup:

  • PCAN-USB FD
  • one node on bus, periodically transmitting a message containing a byte that increments at each transmit

PCAN_LISTEN_ONLY mode being active can be observed, when messages are received, but the counter is no longer increasing, suggesting that the PCAN device is not acknowledging the message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions