You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Supporting Tx/Rx message direction for each interface #776
Pull request #773 adds is_rx attribute to can.Message. Currently this attribute is set to True by default. Functionality needs to be added to each interface type to set this attribute appropriately when building CAN messages:
I was looking to implement this for the PCAN bus. However I can't seem to find a variable in the PCANbasic library I could use to check if it's RX or TX. Someone has an idea?
TPCANMessageType only has these values:
# PCAN message typesPCAN_MESSAGE_STANDARD=TPCANMessageType(
0x00
) # The PCAN message is a CAN Standard Frame (11-bit identifier)PCAN_MESSAGE_RTR=TPCANMessageType(
0x01
) # The PCAN message is a CAN Remote-Transfer-Request FramePCAN_MESSAGE_EXTENDED=TPCANMessageType(
0x02
) # The PCAN message is a CAN Extended Frame (29-bit identifier)PCAN_MESSAGE_FD=TPCANMessageType(
0x04
) # The PCAN message represents a FD frame in terms of CiA SpecsPCAN_MESSAGE_BRS=TPCANMessageType(
0x08
) # The PCAN message represents a FD bit rate switch (CAN data at a higher bit rate)PCAN_MESSAGE_ESI=TPCANMessageType(
0x10
) # The PCAN message represents a FD error state indicator(CAN FD transmitter was error active)PCAN_MESSAGE_ERRFRAME=TPCANMessageType(
0x40
) # The PCAN message represents an error framePCAN_MESSAGE_STATUS=TPCANMessageType(
0x80
) # The PCAN message represents a PCAN status message
@hardbyte@pierreluctg
any indication when you release a version based on the develop branch? this feature is really interesting for us (vector devices for now)
Activity
bessman commentedon Feb 24, 2020
How should
receive_own_messagesbehave with this change? Should messages transmitted by other applications haveis_rx=False?I'm looking at Kvaser's canlib, and I can see no obvious way to accomplish that.
tamenol commentedon Feb 27, 2020
I was looking to implement this for the PCAN bus. However I can't seem to find a variable in the PCANbasic library I could use to check if it's RX or TX. Someone has an idea?
TPCANMessageTypeonly has these values:chrisoro commentedon Jun 22, 2020
@hardbyte @pierreluctg
any indication when you release a version based on the develop branch? this feature is really interesting for us (vector devices for now)