开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: File /Flex3000Flow.rtf uploaded #file-notice

 

开云体育

Make sure you use both my VITA49 and FlexRadio v6 flows. They are in a single zip file. ?Read the comment nodes in both. You need to set the IP to the radio IP in the TCP FlexRadio flow and the ping node in the VITA49 flow. Start Node Red first, then connect the client.

Dave wo2x

On Feb 26, 2021, at 10:57 PM, Charlie Rubenstein <charlier@...> wrote:

?Well.....at least it worked LAST night.....tonight the ClientStatus is NULL....don't know why. I even went to the Flex Radio flow of yours and put a debug node on the output of?? and it was nothing coming out of it.

BUT, I found another way......I found that the json string that comes from FRStack sends a "0" for the S-Meter when the radio is disconnected.
So, I made a switch that only passes the S-meter number when the number is < 0 (port 1), and if the number is equal to "0" (port2) I had a change node set the payload to -120 (which zeros the meter).? It's working that way.

Charlie KB8CR


Re: File /Flex3000Flow.rtf uploaded #file-notice

 

Well.....at least it worked LAST night.....tonight the ClientStatus is NULL....don't know why. I even went to the Flex Radio flow of yours and put a debug node on the output of?? and it was nothing coming out of it.

BUT, I found another way......I found that the json string that comes from FRStack sends a "0" for the S-Meter when the radio is disconnected.
So, I made a switch that only passes the S-meter number when the number is < 0 (port 1), and if the number is equal to "0" (port2) I had a change node set the payload to -120 (which zeros the meter).? It's working that way.

Charlie KB8CR


Re: File /Flex3000Flow.rtf uploaded #file-notice

 

开云体育

There you go!
That works.

Fun, isn’t it?

73
Dave wo2x


On Feb 26, 2021, at 10:23 PM, Charlie Rubenstein <charlier@...> wrote:

?David:

Last night (on the 6400's flow) I had the S-meter zeroing when no one was connected to the 6400 just fine. I used this Function statement to set the meter to -120dBm if the "ClientStatus" was not 1. See what I used below:
<dummyfile.0.part>

It was working like a charm yesterday.

Tonight, when I disconnected from the rig, the S-meter pegged again.? So, I went to the Flex v6 flow to see what the output of this node was
<dummyfile.1.part>


(I think it should return a "0" if no client is connected) but there is NO payload returned. Any idea what could have changed?

Charlie KB8CR


Re: File /Flex3000Flow.rtf uploaded #file-notice

 

David:

Last night (on the 6400's flow) I had the S-meter zeroing when no one was connected to the 6400 just fine. I used this Function statement to set the meter to -120dBm if the "ClientStatus" was not 1. See what I used below:

It was working like a charm yesterday.

Tonight, when I disconnected from the rig, the S-meter pegged again.? So, I went to the Flex v6 flow to see what the output of this node was


(I think it should return a "0" if no client is connected) but there is NO payload returned. Any idea what could have changed?

Charlie KB8CR


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

I *did* get the 6400's dashboard pretty well done.?



Most of the problems Im having with the 3000 is that the serial connection over TCP only sends the responses every second or so, which causes problems using the returns for gating other things.

I'll keep at it. It is a good mental exercise. I am getting better, but still lots to learn.

73 de Charlie KB8CR


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

开云体育

Ok we’ll do it sometime this week. I am working on my Node Red presentation for the QSO Today virtual ham fest in a couple of weeks. Need to get it finished.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Feb 25, 2021, at 10:34 PM, Charlie Rubenstein <charlier@...> wrote:

?Dave:

I'd love to do that sometime this weekend if you have time. I've been playing with this all day.

Charlie


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

Dave:

I'd love to do that sometime this weekend if you have time. I've been playing with this all day.

Charlie


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

So the returned query told the story of an approx. 20? year old female that went to a store and?
used the phone. She left a 3 yr old child in the store?asking the owner's girlfriend to watch the child.?
and left and never came back.? ( Yes, my wife is Chinese)..

Smart radio, must be connected to the?internet
Love it..

On Thu, Feb 25, 2021 at 7:20 PM Charlie Rubenstein <charlier@...> wrote:
Alan:

That is what I was trying to say......that THIS:


? ? ?EQUALS THIS ==>? ?

to me.... ha ha ha.??

I'm trying to see what goes inside of the nodes when you double click on them.?

Charlie KB8CR?


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

开云体育

Charlie

Select and copy the JSON code I sent you.?

Next in your ?Node Red, select “Import” on the pull down, right top corner. ? In the pink space, paste the code. ?Deploy. ?

Now, the nodes will show up on your Node-Red editor page. ? Now you can see inside the nodes.?

Alan


On Feb 25, 2021, at 8:20 PM, Charlie Rubenstein <charlier@...> wrote:

?Alan:

That is what I was trying to say......that THIS:


? ? ?EQUALS THIS ==>? ?

to me.... ha ha ha.??

I'm trying to see what goes inside of the nodes when you double click on them.?

Charlie KB8CR?


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

开云体育

Depends on the node.

?

Some nodes do specific things and there is not much you can change. Other nodes like function nodes are like a blank slate that can be tailored to do many things.

?

Charlie, maybe another one on one session will help answer a lot of your questions. I am willing to open it up to a Zoom session covering the use of the gate node.

?

73

Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Charlie Rubenstein
Sent: Thursday, February 25, 2021 8:08 PM
To: [email protected]
Subject: Re: [nodered-hamradio] Trying to read things from Flex 3000 using CAT commands

?

Alan:

That is what I was trying to say......that THIS:


? ? ?EQUALS THIS ==>? ?

to me.... ha ha ha.??

I'm trying to see what goes inside of the nodes when you double click on them.?

Charlie KB8CR?


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

Alan:

That is what I was trying to say......that THIS:


? ? ?EQUALS THIS ==>? ?

to me.... ha ha ha.??

I'm trying to see what goes inside of the nodes when you double click on them.?

Charlie KB8CR?


Re: NodeRed on Windows 10

 

The Format node worked to make the command I wanted, but apparently the radio isn't taking the command thru the TCP port.
I wonder how HRD gets everything to work by serial port. ha ha


Re: NodeRed on Windows 10

 

Both the function nose and the change node are good methods. ?Just expanding the Change Node to include additional added text.

I revised the change node to include text in front and following the msg.payload. ?Also combined with gate components. ?JSON code follows:



===================

[{"id":"c5e41188.2b1d","type":"inject","z":"a45b533d.45c3b8","name":"TX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"TX","payloadType":"str","x":250,"y":180,"wires":[["205f5e26.87f082"]]},{"id":"314ffca0.fe1414","type":"inject","z":"a45b533d.45c3b8","name":"RX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"RX","payloadType":"str","x":250,"y":260,"wires":[["205f5e26.87f082"]]},{"id":"ed8eba93.895ed8","type":"gate","z":"a45b533d.45c3b8","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"x":890,"y":420,"wires":[["e9ea804.bae69"]]},{"id":"205f5e26.87f082","type":"switch","z":"a45b533d.45c3b8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"TX","vt":"str"},{"t":"eq","v":"RX","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":220,"wires":[["78589c51.e3700c"],["d80099de.31fdf8"]]},{"id":"d80099de.31fdf8","type":"change","z":"a45b533d.45c3b8","name":"Closed","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":260,"wires":[["ed8eba93.895ed8"]]},{"id":"78589c51.e3700c","type":"change","z":"a45b533d.45c3b8","name":"Open","rules":[{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":180,"wires":[["ed8eba93.895ed8"]]},{"id":"6b603fad.a821d8","type":"comment","z":"a45b533d.45c3b8","name":"Gate Control","info":"","x":480,"y":120,"wires":[]},{"id":"3ebf3d6b.1d2372","type":"inject","z":"a45b533d.45c3b8","name":"Simulated Frequncy","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"7.074","payloadType":"num","x":310,"y":420,"wires":[["ed8eba93.895ed8"]]},{"id":"74f2248e.1972d4","type":"comment","z":"a45b533d.45c3b8","name":"Gate Input","info":"","x":490,"y":360,"wires":[]},{"id":"e9ea804.bae69","type":"change","z":"a45b533d.45c3b8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"added text\" & msg.payload & \"added text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1100,"y":420,"wires":[["c65e9a7.5717768"]]},{"id":"c65e9a7.5717768","type":"debug","z":"a45b533d.45c3b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":600,"wires":[]}]


Re: NodeRed on Windows 10

 

开云体育

In his case it is text + msg.payload + text so function Node as I outlined is easiest

Dave

Sent from my waxed string and tin cans.?

On Feb 25, 2021, at 6:36 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?Charlie

Lots of methods to build a string, but, staying with the "Change Node" to build a string with text added to the msg.payload, use the Jasonata code method:

<Screen Shot 2021-02-25 at 6.33.31 PM.png>



Here is the JSON for above:

===========

[{"id":"e9ea804.bae69","type":"change","z":"a45b533d.45c3b8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload & \"added text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":760,"wires":[["c65e9a7.5717768"]]}]


Re: NodeRed on Windows 10

 

Charlie

Lots of methods to build a string, but, staying with the "Change Node" to build a string with text added to the msg.payload, use the Jasonata code method:




Here is the JSON for above:

===========

[{"id":"e9ea804.bae69","type":"change","z":"a45b533d.45c3b8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload & \"added text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":760,"wires":[["c65e9a7.5717768"]]}]


Re: NodeRed on Windows 10

 

开云体育

Use a function node

msg.payload = “ZZGT” + msg.payload + “;”;
return msg;

The above starting at msg.payload thru the “;”; is all on line 1 and return msg; is on line 2

If the number from prior node is 56 you will have output ZZGT56;;

Dave wo2x


Sent from my waxed string and tin cans.?

On Feb 25, 2021, at 6:26 PM, Charlie Rubenstein <charlier@...> wrote:

?Alan:

Yea....I was just playing with it, but it isn't worth all this.....runs fine on my Pi's. ha ha.

I do have a quick question, if that's ok..... I'm trying to insert the output of one node (which outputs a number) into the middle of another string.
I tried using a change node, and SET the msg.payload as xxxOUTPUTOFTHEPRIORNODExxx

I've tried putting {{msg.payload}}, {msg.payload}, (msg.payload) and some other attempts to insert it, but none work.....I just don't know what syntax to use.

<dummyfile.0.part>


The ZZGT is the command to change the AGC on the rig, and the trailing ; is the command end.? The prior node outputs a number. I'm trying to use the drop-down list to change AGC, and it outputs that number fine (using debug) but I don't know how to name it in the change node.

Charlie


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

Charlie

Here is an example of a flow, using the "gate" node, triggered on TX>closed, and RX>open. ?Also, I have circled where you can get help on any node you select on the editor. ?Also, below is the JSON code for the example gate flow.

Alan




================================

[{"id":"c5e41188.2b1d","type":"inject","z":"a45b533d.45c3b8","name":"TX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"TX","payloadType":"str","x":250,"y":180,"wires":[["205f5e26.87f082"]]},{"id":"314ffca0.fe1414","type":"inject","z":"a45b533d.45c3b8","name":"RX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"RX","payloadType":"str","x":250,"y":260,"wires":[["205f5e26.87f082"]]},{"id":"ed8eba93.895ed8","type":"gate","z":"a45b533d.45c3b8","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"x":890,"y":420,"wires":[["153eda49.526e76"]]},{"id":"205f5e26.87f082","type":"switch","z":"a45b533d.45c3b8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"TX","vt":"str"},{"t":"eq","v":"RX","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":220,"wires":[["78589c51.e3700c"],["d80099de.31fdf8"]]},{"id":"d80099de.31fdf8","type":"change","z":"a45b533d.45c3b8","name":"TX","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":260,"wires":[["ed8eba93.895ed8"]]},{"id":"78589c51.e3700c","type":"change","z":"a45b533d.45c3b8","name":"TX","rules":[{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":180,"wires":[["ed8eba93.895ed8"]]},{"id":"6b603fad.a821d8","type":"comment","z":"a45b533d.45c3b8","name":"Gate Control","info":"","x":480,"y":120,"wires":[]},{"id":"153eda49.526e76","type":"debug","z":"a45b533d.45c3b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1120,"y":320,"wires":[]},{"id":"3ebf3d6b.1d2372","type":"inject","z":"a45b533d.45c3b8","name":"Simulated Frequncy","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"7.074","payloadType":"num","x":310,"y":420,"wires":[["ed8eba93.895ed8"]]},{"id":"74f2248e.1972d4","type":"comment","z":"a45b533d.45c3b8","name":"Gate Input","info":"","x":490,"y":360,"wires":[]}]


Re: NodeRed on Windows 10

 

Alan:

Yea....I was just playing with it, but it isn't worth all this.....runs fine on my Pi's. ha ha.

I do have a quick question, if that's ok..... I'm trying to insert the output of one node (which outputs a number) into the middle of another string.
I tried using a change node, and SET the msg.payload as xxxOUTPUTOFTHEPRIORNODExxx

I've tried putting {{msg.payload}}, {msg.payload}, (msg.payload) and some other attempts to insert it, but none work.....I just don't know what syntax to use.



The ZZGT is the command to change the AGC on the rig, and the trailing ; is the command end.? The prior node outputs a number. I'm trying to use the drop-down list to change AGC, and it outputs that number fine (using debug) but I don't know how to name it in the change node.

Charlie


Re: NodeRed on Windows 10

 

And, configured each of the dashboard nodes, using the dashboard tool, unto a Dashboard Tab/group?

Alan

On Thu, Feb 25, 2021 at 6:00 PM Alan Blind, WA9WUD via <a.alan.blind=[email protected]> wrote:
Charlie

Sorry if you have done so, but with all, you have checked and I am out of ideas, I need to ask.? Have you loaded the Dashboard Pallett's?into your Window Node-Red install?

Alan

On Thu, Feb 25, 2021 at 5:30 PM Charlie Rubenstein <charlier@...> wrote:
Tried it on a different computer.....same result.

Charlie


Re: NodeRed on Windows 10

 

Charlie

Sorry if you have done so, but with all, you have checked and I am out of ideas, I need to ask.? Have you loaded the Dashboard Pallett's?into your Window Node-Red install?

Alan

On Thu, Feb 25, 2021 at 5:30 PM Charlie Rubenstein <charlier@...> wrote:
Tried it on a different computer.....same result.

Charlie