# BCC function node help

**URL:** <https://discourse.nodered.org/t/bcc-function-node-help/40399>\
**Category:** General\
**Created:** [4 February 2021 20:02 UTC](https://discourse.nodered.org/t/bcc-function-node-help/40399 "2021-02-04T20:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![New2Node](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@New2Node](https://discourse.nodered.org/u/New2Node)\
**Post date:** [4 February 2021 20:02 UTC](https://discourse.nodered.org/t/bcc-function-node-help/40399/1 "2021-02-04T20:02:29Z")

</div>

Hi, I’m looking for a function that will calculate a BCC character. I’ve seen some examples on the forum but nothing which gives me what I need.  
I’m talking to a serial device which outputs binary buffers.

The description of the BCC “The scope of the block check character BCC is as specified in ISO/IEC 1745:1975, and is from the character immediately following the first SOH or STX character detected up to and including the ETX character which terminates the message. The calculated BCC is placed immediately following the ETX”

Example:

Message received:

```auto

SOH>P0<STX>(C62FEE91AC2DF811)<ETX>c

```

BCC= c

Message sent:

```auto

<SOH>P2<STX>(4B6A48E8D544FF54)<ETX>b

```

BCC = b

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 April 2021 20:02 UTC](https://discourse.nodered.org/t/bcc-function-node-help/40399/2 "2021-04-05T20:02:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
