tao_z
2022-05-16 7b93ce7d3c07dc8d60dacbd4ab76651882f4d92b
test.py
@@ -49,7 +49,7 @@
    is_remote_frame=0,
    channel=0,
    dlc=8,
    data=bytearray(0x02, 0x3e, 0, 0, 0, 0, 0, 0),
    data=bytearray([0x02, 0x3e, 0, 0, 0, 0, 0, 0])
)
@@ -110,7 +110,7 @@
def tx_task(bus: USBCAN):
    while True:
        bus.Transmit(device_type, device_index, can_channel, msg=msg, len=1)
        bus.send(msg=msg)
        time.sleep(0.1)
@@ -121,7 +121,8 @@
        if not num == 0:
            for i in range(num):
                if msg[i].arbitration_id == 0x77a:
                    print(msg[i].arbitration_id)
                    # print(formatedata(i, msg[i], True))
                    print(msg[i].data)
if __name__ == '__main__':