# Integrate Azur 540R v3 using Node Red and node-red-node-serialport pallette

**URL:** <https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325>\
**Category:** General\
**Created:** [18 January 2021 11:11 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325 "2021-01-18T11:11:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [18 January 2021 11:11 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325/1 "2021-01-18T11:11:30Z")

</div>

I'm trying to send commands to my Azur 540R v3 receiver using the node-red-node-serialport pallette.

As background info I use a Moxa Serial Server and I'm able to send commands to a video switch. As I use a different cable I also tested this by using Termite (a RS-232 terminal) and pressing a button on the receiver with as result that data is received.

I'm starting simple and are trying to send a command to the receiver.

I included the following in the injector:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42f92ecdcdecd8e5025fcb29be0b6f40ce45901a.png)

And the following in the Serial out Node:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5a40ca47423efe6676e81340fa17717e897f61b0.png)

This is not working.

Below is the protocol information:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/7128c512a8421789bb577e39356409e2efb99c8d.png)

And these are some example commands:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d43d5390367aeef3668e46bd9db11527ead8317d.png)

Any idea on the command that I need to send, for e.g. for the Volume Up.

* * *

John

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 January 2021 11:21 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325/2 "2021-01-18T11:21:29Z")

</div>

You can't just add \r in the payload or it will just send the characters \ and then r - the simplest way would be to add it by using the node option to add the \r  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/98849c8821ab18bcda8bf67dccf9c33f9171e3f7.png)  
(and you probably may also want \r for the input line split also.)

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [18 January 2021 11:27 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325/3 "2021-01-18T11:27:48Z")

</div>

Thanks a lot for the probably. Yesterday I tried the output option.

But also add it to the line spilt will solve the issue.

* * *

John

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 January 2021 12:10 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325/4 "2021-01-18T12:10:00Z")

</div>

The other way is either use a function to append the character - eg `msg.payload += "\r"; return msg;` Or to set the inject type to be JSON and quote the whole string in order to make it proper JSON. eg  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/7/2739c2648ed3b85baf172735b846fb815f9c39b9.png) "#1,01,1\r"

---

<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:** [19 March 2021 12:10 UTC](https://discourse.nodered.org/t/integrate-azur-540r-v3-using-node-red-and-node-red-node-serialport-pallette/39325/5 "2021-03-19T12:10:10Z")

</div>

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