Skip to content

Reciving frames working sporadictly on macOS Tahoe #24

@tlbdk

Description

@tlbdk

Hi,

First off, thanks for the macOS support for PCAN.

I'm trying to use the library but ran into some issues with reading frames so isolate the issues i tried running the samples, pcbusb_recv and pcbusb_send.

The only changes i did was change the baud rate to 500kbit, get the both to use PCAN_USBBUS1 and add some extra printf.

I'm using two PCAN FD USB connected together, one shared with a Parallels VM running Windows with PCAN View and the other on macOS. I have set PCAN View to send a frame every second and I can see some frames once in a while when starting pcbusb_recv.

tlb@mac C++ % make && ./pcbusb_recv
make: Nothing to be done for `all'.
Initialize CAN: 0x0
Read
Read done: 0x20
Select
^CError: Interrupted system call
tlb@mac C++ % make && ./pcbusb_recv
make: Nothing to be done for `all'.
Initialize CAN: 0x0
Read
Read done: 0x20
Select
^CError: Interrupted system call
tlb@mac C++ % make && ./pcbusb_recv
make: Nothing to be done for `all'.
Initialize CAN: 0x0
Read
Read done: 0x20
Select
Read
Read done: 0x0
  - R ID: 200 LEN:6 DATA:11 22 cc dd ee ff 00 00
Read
Read done: 0x0
  - R ID: 200 LEN:6 DATA:11 22 cc dd ee ff 00 00
Read
Read done: 0x20
Select

pcbusb_send works without issue an I can see the frames in PCAN View in the Windows VM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzingInvestigation required to understand the problem

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions