# Serial Binding sends close bracket after update to 2.3

**URL:** <https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801>\
**Category:** Items & Sitemaps\
**Tags:** serialbinding\
**Created:** [August 3, 2018, 6:31am UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801 "2018-08-03T06:31:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seeers](https://community.openhab.org/user_avatar/community.openhab.org/seeers/32/19547_2.png) [@seeers](https://community.openhab.org/u/seeers)\
**Post date:** [August 3, 2018, 6:31am UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801/1 "2018-08-03T06:31:53Z")

</div>

Hi,  
yesterday I ran the OpenHAB update from 2.2 to 2.3.  
Unfortunately, I now have problems with the serial binding, which controls my light control in the house.  
Since the update, a ‘)’ is sent to the OFF command, for example:

```csv
Switch L_KG_Flur "Flur Keller" <light> (gIndoorLight)	{ serial="/dev/ttyIOBox1@115200,ON(!;36;1\n),OFF(!;36;2\n)" } 

```

If i run

```auto
 smarthome:send L_KG_Flur ON
 smarthome:send L_KG_Flur OFF

```

I get the following logfile entries (linefeed removed):

```auto
2018-08-03 08:23:07.529 [DEBUG] [binding.serial.internal.SerialDevice] - Writing '!;36;1' to serial port /dev/ttyIOBox1
2018-08-03 08:23:12.837 [DEBUG] [binding.serial.internal.SerialDevice] - Writing '!;36;2)' to serial port /dev/ttyIOBox1

```

if i remove the ‘)’ from the item it works as expected:

```csv
 { serial="/dev/ttyIOBox1@115200,ON(!;36;1\n),OFF(!;36;2\n" }

```

maybe someone has an idea why the ‘)’ since the update is sent?

Thanks

---

<div class="post-metadata">

**Author:** ![DATAMAX](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/b77776/32.png) [@DATAMAX](https://community.openhab.org/u/DATAMAX)\
**Post date:** [August 3, 2018, 12:51pm UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801/2 "2018-08-03T12:51:59Z")

</div>

Hi,  
I don´t have an answer, but I can confirm the behavior of the serial binding. Took me 2 hours to find out why my communication to the arduino doesn´t work as expceted.

My current solution: the Arduino filters the ‘)’ fromt the input string.

Thanks

---

<div class="post-metadata">

**Author:** ![Pascal\_Bamford](https://community.openhab.org/user_avatar/community.openhab.org/pascal_bamford/32/56770_2.png) [@Pascal\_Bamford](https://community.openhab.org/u/Pascal_Bamford)\
**Post date:** [September 1, 2018, 10:15pm UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801/3 "2018-09-01T22:15:18Z")

</div>

Hi,

Triple confirm on this one. Looking forward to a future fix. For the time being I also remove the final ‘)’ from the OFF command in the .items definition. Phew - that debug took a while… 🙂

Thanks,

---

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [September 1, 2018, 10:51pm UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801/4 "2018-09-01T22:51:07Z")

</div>

@TheNetStriker  
Any ideas on this one?

---

<div class="post-metadata">

**Author:** ![TheNetStriker](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@TheNetStriker](https://community.openhab.org/u/TheNetStriker)\
**Post date:** [September 3, 2018, 8:48am UTC](https://community.openhab.org/t/serial-binding-sends-close-bracket-after-update-to-2-3/48801/5 "2018-09-03T08:48:27Z")

</div>

16 days ago I’ve made some changes to the serial binding and also to the part where the config string is parsed: [[Serial] Added setting to select charset for string encoding by TheNetStriker · Pull Request #5633 · openhab/openhab1-addons · GitHub](https://github.com/openhab/openhab1-addons/pull/5633)

Maybe my changes will already fix the problem. Can you please test a snapshot of the serial binding and report if the problem still occurs?
