Skip to content

Document that SDO Block Upload is not implemented #12

@follower

Description

@follower

While a function named canopen_sdo_upload_block() exists, it has no implementation:

int
canopen_sdo_upload_block(int sock, uint8_t node, uint16_t index, uint8_t subindex,
uint8_t *data, uint32_t data_len)
{
return -1;
}

A Python wrapper function does exist but uses the unimplemented C function:

def SDOUploadBlock(self, node, index, subindex, size):
"""
Block SDO upload.
"""
data = create_string_buffer(int(size))
ret = libcanopen.canopen_sdo_upload_block(self.sock, c_uint8(node), c_uint16(index), c_uint8(subindex), data, c_uint16(size));
if ret != 0:
raise Exception("CANopen Block SDO upload error")
return binascii.hexlify(data)

The Python wrapper function used to mention that the function was unimplemented but the note was removed here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions