libPCBUSB  Version 0.8, Build 689 of September 20, 2017
macOS Library for PCAN-USB Interfaces
 All Data Structures Files Functions Variables Typedefs Defines
macOS Library for PCAN-USB Interfaces (x86_64)

Copyright © 2012-2017 by UV Software, Berlin, Germany

The PCBUSB library realizes a 'PCAN-USB Driver for macOS' using Apple's IOUSBKit. It supports up to 8 PCAN-USB or PCAN-USB FD devices from PEAK-System Technik, Darmstadt. See the header-file PCBUSB.h for details.

PCAN is a registered trademark of PEAK-System Technik GmbH, Darmstadt, Germany.
Mac and macOS are trademarks of Apple Inc., registered in the U.S. and other countries.

The library is freeware without any warranty or support!

Limitations:

  • Only PCAN-USB devices and PCAN-USB FD devices are supported.
  • CAN_Write: Transmission of the given message on the CAN bus is not acknowledged by the USB interface.
  • CAN_FilterMessages: Message filtering is currently not supported.
  • CAN_GetValue/CAN_SetValue: Still unsupported parameter are: PCAN_5VOLTS_POWER, PCAN_MESSAGE_FILTER, PCAN_BUSOFF_AUTORESET, PCAN_LOG_*, PCAN_CONTROLLER_NUMBER, PCAN_CHANNEL_IDENTIFYING, PCAN_BITRATE_ADAPTING, PCAN_IP_ADDRESS, PCAN_LAN_SERVICE_STATUS, PCAN_ALLOW_STATUS_FRAMES PCAN_ALLOW_RTR_FRAMES, PCAN_ALLOW_ERROR_FRAMES, PCAN_INTERFRAME_DELAY, PCAN_ACCEPTANCE_FILTER_11BIT, PCAN_ACCEPTANCE_FILTER_29BIT.
  • Writing into a trace file: Only 100'000 frames can be recorded into one trace file. An existing trace file with the same file name will be overwritten

Known bugs and caveats

  • The LED of the PCAN-USB FD device is not switch on (green) when the device is plugged into the USB. This is due to the fact that there is no 'driver' for PCAN-USB devices. So the LED of the PCAN-USB FD device cannot signal the presence of a driver. When operating the LED signals the correct operation state of the PCAN-USB FD device (blinking green, or red on error).
  • The device number cannot be changed for PCAN-USB FD devices (function CAN_SetValue, parameter PCAN_DEVICE_NUMBER).
  • When a successfully initialized PCAN-USB device is physically removed from USB any subsequent call of API functions (e.g. CAN_Read) will not succeed even when the device is plugged in again. An error code will be returned in this case.
  • Due to the latency between the completions of the isochronous transaction on the USB bus and servicing of the callback function, on slowed down systems a mysterious repetition of already processed URBs may occur. In this case speed up your system and everything works fine.

Author Uwe Vogt, UV Software, Berlin

Download http://www.mac-can.com