# Node serial port, how to perform crc check

**URL:** <https://discourse.nodered.org/t/node-serial-port-how-to-perform-crc-check/82425>\
**Category:** General\
**Tags:** function-node\
**Created:** [28 October 2023 14:17 UTC](https://discourse.nodered.org/t/node-serial-port-how-to-perform-crc-check/82425 "2023-10-28T14:17:43Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [28 October 2023 18:05 UTC](https://discourse.nodered.org/t/node-serial-port-how-to-perform-crc-check/82425/8 "2023-10-28T18:05:43Z")

</div>

I have just put this together - it uses `easy-crc`

> [@A Simple CRC Checksum Node (Subflow)](https://discourse.nodered.org/t/a-simple-crc-checksum-node-subflow/82429):
>
> This isn't a published node, but a subflow to easily validate checksums. The subflow requires the following inputs: crcLength : example : 8 crcChecksum : example : "362d" crcAlgorithm : example: "XMODEM" The check will be applied against the payload - so you will need to remove any checksum that maybe part of the value to be checked. The subflow will check the type of the payload and if its a: Buffer - will use as is String - will create a buffer from it Object - will stringify it befor…

---

_[View the full topic](https://discourse.nodered.org/t/node-serial-port-how-to-perform-crc-check/82425)._
