Skip to content

Setting RawCAN data in pre-tx, python #132

@thebhef

Description

@thebhef

Using TSMaster x64, 2025.2.10.1308.

I'm trying to update the data of a message in the pre-tx event handler.

I've tried using the set_data, as documented in the TSMaster header

byte_index = 7
byte_value = 0x30
ACAN.set_data(byte_index, byte_value)

print(ACAN.data) # shows updated value in System Messages

I've also tried assigning the data, as documented in the TSMaster header

new_data = ACAN.data[:-1]
new_data.append(0x30)

ACAN.data = new_data

print(ACAN.data) # shows updated value in System Messages

The data is updated when I print the data field, but I don't see these changes reflected in the trace panel, or on the bus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions