Releases: mac-can/PCBUSB-Library
Releases · mac-can/PCBUSB-Library
Release of July 28, 2024
Major changes:
- synchronized PCBUSB header with PCANBasic header from PEAK's version 4.9.0
- realized acceptance filtering by setting parameter:
PCAN_ACCEPTANCE_FILTER_11BIT
(default =0x00000000000007FF
)PCAN_ACCEPTANCE_FILTER_29BIT
(default =0x000000001FFFFFFF
)PCAN_MESSAGE_FILTER
(default =PCAN_FILTER_OPEN
)PCAN_RECEIVE_STATUS
(default =PCAN_PARAMETER_ON
)
- realized suppression of status frames by setting parameter:
PCAN_ALLOW_STATUS_FRAMES
(default =PCAN_PARAMETER_ON
)
- realized suppression of remote frames by setting parameter:
PCAN_ALLOW_RTR_FRAMES
(default =PCAN_PARAMETER_ON
)
Artifacts:
- library as Universal macOS Binary (macOS_Library_for_PCANUSB_v0.13.tar.gz)
- library for Intel x86_64 architecture (OS_X_Library_for_PCANUSB_v0.13.tar.gz)
Service Release of November 1, 2023
Major changes:
- synchronized PCBUSB header with PCANBasic header from PEAK's version 4.8.0
- fixed a bug with pipe numbers for PCAN-USB FD devices (issue #11; hardware version 6.0)
- added missing linker option
-rpath /usr/local/lib
to the C++ examples (issue #17) - updated the README file (unsupported parameter
PCAN_HARD_RESET_STATUS
)
Artifacts:
- library as Universal macOS Binary: macOS_Library_for_PCANUSB_v0.12.2.tar.gz
- library for Intel x86_64 architecture: OS_X_Library_for_PCANUSB_v0.12.2.tar.gz
Service Release of July 9, 2023
Major changes:
- fixed a bug with endianess of 32-bit device id. (issue 384: PCAN-USB [Pro] FD)
- reworked return values of CAN_Read(), CAN_ReadFD(), CAN_Write(), CAN_WriteFD()
- reset USB pipe 4 after write timed out (CAN Write stalled; macOS 11 and higher)
Artifacts:
- library as Universal macOS Binary: macOS_Library_for_PCANUSB_v0.12.1.tar.gz
- library for Intel x86_64 architecture: OS_X_Library_for_PCANUSB_v0.12.1.tar.gz
Release of January 31, 2023
Major changes:
- Built library as Universal macOS Binary (macOS_Library_for_PCANUSB_v0.12.tar.gz)
- Built library for Intel x86_64 architecture (OS_X_Library_for_PCANUSB_v0.12.tar.gz)
- Realized setting of device id. for PCAN-USB FD devices
- Reworked status frame handling:
- fixed some bugs in the driver layer (all device types)
- suppressed initial CAN FD status frame in CAN 2.0 mode
- corrected mapping of bus error states to PCAN status
- fixed a bug with CAN id. of status messages
CAN_Read()
,CAN_ReadFD()
,CAN_Write()
,CAN_WriteFD()
: return bus error states
SetValue()
: Set default value if argument 'BufferLength
' is equal to 0:PCAN_LISTEN_ONLY
(default = OFF)PCAN_DEVICE_ID
(default = 0)PCAN_TRACE_LOCATION
(default = cwd)PCAN_TRACE_STATUS
(default = OFF)PCAN_TRACE_SIZE
(default 0 = 100k frames!)PCAN_TRACE_CONFIGURE
(default = SINGLE_FILE)
GetValue()
: Implemented missing parameters:PCAN_ALLOW_RTR_FRAMES
(read-only!)PCAN_ALLOW_STATUS_FRAMES
(read-only!)PCAN_ALLOW_ERROR_FRAMES
(read-only!)PCAN_CONTROLLER_NUMBER
(read-only)PCAN_DEVICE_PART_NUMBER
(read-only)
- Made
GetValue(PCAN_RECEIVE_EVENT)
more robust if argument is greater than size ofint
- Reading of additional bytes from firmware info packet to distinguish product variants
(issue #11: PCAN-USB FD (IPEH-004022) cannot be initialized) - Fixed a bug with stuck in
CAN_Write()
when errors on bus
(note: the solution only works on macOS 11.0 and newer) - Fixed a bug with status frames not triggering the pipe for blocking read
- Fixed a bug with getting the firmware version from USB device name
(note: since firmware 3.x the version is not encoded in the device name anymore) - Fixed a bug with string length for bit-rate strings
- Fixed a bug with
GetValue(BITRATE_INFO_FD)
w/o BRSE - Fixed a bug with size of parameter
PCAN_TRACE_SIZE
- Fixed some findings from static code analysis (Xcode and cppcheck)
Service Release of July 31, 2022
Major changes:
- Built library as Universal macOS Binary (macOS_Library_for_PCANUSB_v0.11.2.tar.gz)
- Built library for x86_64 architecture (OS_X_Library_for_PCANUSB_v0.11.2.tar.gz)
- Fixed the CAN FD URB issue #9 ('Messages lost on high CAN FD bit-rates')
- Added an installation instruction (after all these years)
Service Release of April 30, 2022
Major changes:
- Built library as Universal macOS Binary (macOS_Library_for_PCANUSB_v0.11.1.tar.gz).
- Built library for x86_64 architecture (OS_X_Library_for_PCANUSB_v0.11.1.tar.gz).
- Fixed the Monterey issue #6 ('Driver not loaded').
- Fixed some findings from static code analysis.
- Added
@rpath
to all build environments. - Improved the installation script.
- Updated the README file.
Release of January 31, 2022
Major changes:
- Built library as Universal macOS Binary (macOS_Library_for_PCANUSB_v0.11.tar.gz).
- Built library for x86_64 architecture (OS_X_Library_for_PCANUSB_v0.11.tar.gz).
- Synchronized PCBUSB header with PCANBasic header for v4.6.0.
- Fixed a bug with
PCAN_CHANNEL_CONDITION
when used by another process. - Fixed an omission with export declaration for
CAN_LookUpChannel
. - Implemented parameter
PCAN_FIRMWARE_VERSION
(read-only). - Added error text for
PCAN_ERROR_ILLMODE
(all languages). - Corrected some French error text (acc. to Peak´s changes).
- Return
PCAN_ERROR_HWINUSE
when interface is used by another process:1CAN_GetValue
:PCAN_LISTEN_ONLY, PCAN_RECEIVE_STATUS, PCAN_LISTEN_ONLY
- Return
PCAN_ERROR_ILLCLIENT
if an invalid channel handle is given:1CAN_GetValue
:PCAN_RECEIVE_EVENT, PCAN_CHANNEL_CONDITION, PCAN_TRACE_LOCATION, PCAN_TRACE_STATUS, PCAN_TRACE_SIZE, PCAN_TRACE_CONFIGURE, PCAN_BITRATE_INFO, PCAN_BITRATE_INFO_FD, PCAN_BUSSPEED_NOMINAL, PCAN_BUSSPEED_DATA, PCAN_FIRMWARE_VERSION
CAN_SetValue
:PCAN_DEVICE_ID, PCAN_TRACE_LOCATION, PCAN_TRACE_STATUS, PCAN_TRACE_SIZE, PCAN_TRACE_CONFIGURE
CAN_Reset
CAN_GetStatus
CAN_Read
CAN_ReadFD
CAN_Write
CAN_WriteFD
- Added
@rpath
to the build environment (it got lost for some releases). - Code signed the Universal macOS Binary (Apple Development certificate).
Service Release of December 6, 2021
Major changes:
- Built library as Universal macOS Binary (
macOS_Library_for_PCANUSB_v0.10.1.tar.gz
). - Built library for x86_64 architecture (
OS_X_Library_for_PCANUSB_v0.10.1.tar.gz
). - Parameter
PCAN_CHANNEL_VERSION
displays machine architecture fromutsname()
. - Fixed a bug with parameter
PCAN_EXT_HARDWARE_VERSION
for PCAN-USB Pro FD devices. - Solved an issue with file system relative paths that are not allowed in hardened programs in Python 2.7 under macOS.
- Updated the C++ examples: Blocking Read using system call
select()
.
Release of December 22, 2020
Major changes:
- Support of PCAN-USB Pro FD devices, but only the first channel (CAN1).
- Set linker options
-install_name
,-compatibility_version
, and-current_version
. - Synchronized the API with Peak´s PCANBasic version 4.5.0.440
- Updated the Python example: reworked the output format.
Release of June 25, 2020
Major changes:
- Data types from
<MacTypes.h>
as replacement for Peak´s usage of WindowsBYTE
,WORD
,DWORD
andUINT64
(field CAN ID is now 32-bit wide). - Synchronized the API with Peak´s PCANBasic version 4.4.0.288
- Parameter
PCAN_DEVICE_ID
can be read in pre-initialization state. - Fixed some bugs with status bit:
PCAN_ERROR_QXMTFULL
,PCAN_ERROR_XMTFULL
,PCAN_ERROR_QOVERRUN
,PCAN_ERROR_BUSLIGHT
. - Added a delay of 1µsec in
CAN_Write
to run on macOS 10.15 (Catalina).