Skip to content

readSerial problem in RTU mode #6

@jonnius

Description

@jonnius

I am receiving "01 03 02 00 23 f9 9d" via serial COM port in RTU mode, but readSerial gets me "01 03 02 20 20 20 20". [I converted the recieved string character by character like this: buf = readserial(h); ch(i) = ascii(part(buf,i:i)). Might be ugly...]. I copied the readserial function and removed ascii conversion in last line. This solved the problem for me now. Maybe there should be a function like readserial in RTU mode.

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