online parser: crc presentation

Forum Home Forums Uncategorized Issues online parser: crc presentation

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #18078
    a.pythe
    Participant

    @Mikhail, shure.

    Testing example byte set, 6 (six) bytes length: 01 02 03 04 05 06

    Whatever the set is, it’s CRC-16/MODBUS value is DDBA(hex) 56762(dec)

    So, according to the Modbus specification the set with CRC bytes added is 01 02 03 04 05 06 BA DD

    When fed to the Rapid SCADA Modbus Parser this set is parsed as a good data package, but it’s CRC shown at the bottom of the page is presented in reverse byte order as BADD(hex) 47837(dec) integer.

    Make shure 47837 is not equal to 56762.

    Thank you for your attention to this matter! 🙂

    #18087
    Mikhail
    Moderator

    0xBADD is displayed by the parser in the same order as transferred.
    https://ibb.co/tpS0C1Zm
    https://ibb.co/v7fyV3S

    I’ll check the details and come back.
    Thank you for noticing.

    • This reply was modified 1 month ago by Mikhail.
    #18089
    a.pythe
    Participant

    0xBADD is displayed by the parser in the same order as transferred.


    @Mikhail
    , I know!

    We’ve told this three or four times in the above discussion – me and @manjey73 🙂

    And that’s what is wrong with it.

    Because according to Modbus specification the CRC is transferred in the reverse order, unlike all other 16-bit values in the package.

    I’d be obliged if your check will encompass Modbus Serial Line Protocol and Implementation Guide V1.02, namely part 2.5.1.2 CRC Checking.

    • This reply was modified 1 month ago by a.pythe.
    • This reply was modified 1 month ago by a.pythe.
    #18092
    Mikhail
    Moderator

    Now it is clear. It’s looks like CRC displaying should be fixed.
    Thanks.

    #18099
    Mikhail
    Moderator

    Fixed.

    #18100
    a.pythe
    Participant

    Yyyyess-s-s-s!!


    @Mikhail
    , thank you greatly!

    #18102
    a.pythe
    Participant

    @Mikhail, by the way, maybe sometime you’ll take a look at a much smaller bug mentioned in this discussion.

    Testing example byte set: 10 06 02 02 00 45 EB 01
    It has intentionally corrupted CRC value to verify the Parser’s response.
    Actual Parser’s response: “Data package CRC error. Actual CRC is EB 00. Expected CRC is EB 00″
    Correct message shoul be: “Data package CRC error. Actual CRC is EB 01. Expected CRC is EB 00″

    It seems the Parser always prints most significant byte zeroed in such a message.

    Thansk in advance.

    #18103
    Mikhail
    Moderator

    I’ll check it.
    Thanks.

    #18104
    Mikhail
    Moderator

    Done.

    #18106
    a.pythe
    Participant

    @Mikhail, zamechatelno! 🙂 Thank you.

Viewing 10 posts - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.