Skip to content

Cannot receive the data when data length exactly 64 or 128 bytes #391

Open
@converse2006

Description

@converse2006

I tried to write the data to Arduino MKR Zero but always read 0 (Serial1.println(SerialUSB.available());) when data size exactly same as 64 bytes or 128 bytes. send 256bytes are fine.

If I work around this by issue another transaction to send the last bytes of 64/128byte data.

#Host side
if len(msg)%64 == 0 and len(msg) != 256:
    self.comm.write(msg[0:len(msg)-1])
    self.comm.write(msg[len(msg)-1:])

Does anyone meet this issue?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions