Skip to content

crc16 modbus giving wrong result #7

@johnwick03

Description

@johnwick03

I tried getting crc for hex string 08000001 using crc16.ChecksumIBM. But instead of 84C3 it is giving me 3226. This is my code:
data := []byte("08000001")
checksum := crc16.ChecksumIBM(data)
fmt.Println("\n checksum:", checksum)

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