# Problem with sending of commends to Serial Connection

**URL:** https://discourse.nodered.org/t/problem-with-sending-of-commends-to-serial-connection/74858
**Category:** General
**Created:** [7 February 2023 18:43 UTC](https://discourse.nodered.org/t/problem-with-sending-of-commends-to-serial-connection/74858 "2023-02-07T18:43:06Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)
#### Post date: [8 February 2023 05:15 UTC](https://discourse.nodered.org/t/problem-with-sending-of-commends-to-serial-connection/74858/3 "2023-02-08T05:15:55Z")

</div>

Try to modify your code in **function 1** node to something like this

```auto
var buf = Buffer.from([0x52, 0x46, 0x38, 0x20, 0x53 , 0x0D, 0x0A]);
msg.payload = buf;
return msg;

```

And I am not sure if the **serial request node** can work together with the **serial out node** , so why not delete one of them and try.

By the way, a corresponding post has been discussed in this forum already.  
[How to send this HEX command to my device using Node-red - General - Node-RED Forum (nodered.org)](https://discourse.nodered.org/t/how-to-send-this-hex-command-to-my-device-using-node-red/74419/32)

---

_[View the full topic](https://discourse.nodered.org/t/problem-with-sending-of-commends-to-serial-connection/74858)._
