开云体育

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

Re: Which Pi?

 

If you buy a Pu 4 starter kit you may get an extra item you may replace but you will be sure you have a good snd card and the correct power supply. I did that for my first Pi 4 and replaced the case. Otherwise it was a wuick way to get up and running.

73, Marty Wd9gym?




On Sunday, February 28, 2021, 7:46 PM, David De Coons wo2x <RocketNJ@...> wrote:

Hi Rich

Welcome aboard!

I would go with a Pi 4 instead of a 3. Not much price difference. 4 GB should be plenty. That is what I run here on my development Pi which also hosts my dynamic DNS client.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 7:44 PM, Rich M5RIC via groups.io <r.bro84@...> wrote:

?Hi all

New here and keen to have some fun and see whats possible.

Searching Amazon for a Pi4 and lots come up, seems you can get starter kits which come with everyhing - case, power supply, memory card etc.

Also there is a 4GB or 8GB version, is 4 enough or better go have some head room and go for the 8?

If you were to start out, what would be on your shopping list of whats needed?

Thanks

Rich


Re: How to add leading zeros to a number

 

First off.....HAPPY BIRTHDAY, DAVE !!

I made a lot of progress on the 3000's flow (gave me something to do on a rainy day in Cincy). I now have buttons for TUNE, MUTE, and VAC, and sliders for AF Gain, AGC-T, and Drive Level.? I added dropdown boxes for Mode and ACG selections. I learned the hard way to make sure to have feedback from the current settings, as the AF Gain slider otherwise starts at 100 !! ....All working well, except that the dropdown boxes, even with feedback from PSDR of the current settings, does not load those in the dropdown window. All it does is SEND whatever selection you pick. Might delete those.
Also wish the sliders allowed you to set the color of the sliders, they are dark blue, and don't show well on a dark theme.

Here's what it looks like now.......


73 de Charlie KB8CR


Re: Which Pi?

 

开云体育

Hi Rich

Welcome aboard!

I would go with a Pi 4 instead of a 3. Not much price difference. 4 GB should be plenty. That is what I run here on my development Pi which also hosts my dynamic DNS client.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 7:44 PM, Rich M5RIC via groups.io <r.bro84@...> wrote:

?Hi all

New here and keen to have some fun and see whats possible.

Searching Amazon for a Pi4 and lots come up, seems you can get starter kits which come with everyhing - case, power supply, memory card etc.

Also there is a 4GB or 8GB version, is 4 enough or better go have some head room and go for the 8?

If you were to start out, what would be on your shopping list of whats needed?

Thanks

Rich


Which Pi?

 

Hi all

New here and keen to have some fun and see whats possible.

Searching Amazon for a Pi4 and lots come up, seems you can get starter kits which come with everyhing - case, power supply, memory card etc.

Also there is a 4GB or 8GB version, is 4 enough or better go have some head room and go for the 8?

If you were to start out, what would be on your shopping list of whats needed?

Thanks

Rich


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

 

Leslie:

I'll take your wife's word for it. I didn't realize that if I copy and paste that 'code' into "import", I can see what I'm looking for.

Thanks, Alan. If I am looking at it correctly, the TX and RX will open and close the gate, and when it is OPEN, it would pass (in your example) the frequency payload.

What is odd about how the 3000 (PowerSDR) sends Forward Power and SWR, is that it ONLY sends something when the rig is in transmit. Nothing at all is sent otherwise. So in order to "Zero" the meters, I have to create a payload of "0" to SEND to the meters when it's in Receive. I was trying to do that with a Change node, and a switch node. Just have to think through how to configure the switch. (ie: what to switch upon).

Charlie?


Re: How to add leading zeros to a number

 

Well, the Format node way, kept giving errors. But the edit string node worked. Now we have SLIDERS !!. I'll repost once I'm done adding sliders.

tnx,

73 de Charlie KB8CR?


Re: How to add leading zeros to a number

 

开云体育

Ok two ways to get it done :-)

Dave wo2x

Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 5:18 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?
Understand, I think....

The string node, pad method will keep the number of characters the same and adjust with the "fill character" to adjust the empty space.? Here are two examples, 50, and 14074.? In each case, the total number of characters out remains as specified, six in this example.

<Screen Shot 2021-02-28 at 5.15.39 PM.png>


Alan

On Sun, Feb 28, 2021 at 5:09 PM David De Coons wo2x <RocketNJ@...> wrote:
Alan

The issue is he may need 0, 1, or two leading zeroes thus the if else statement is probably best solution.?

73
Dave


Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 5:07 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?Charlie

Look at the "String" Node, "PadLeft" Method.? You can specify the number of characters and what to use to "fill" the empty space.? Here is an example with six digits, fill left with "0".

Alan

<Screen Shot 2021-02-28 at 5.04.43 PM.png>


Re: How to add leading zeros to a number

 

Understand, I think....

The string node, pad method will keep the number of characters the same and adjust with the "fill character" to adjust the empty space.? Here are two examples, 50, and 14074.? In each case, the total number of characters out remains as specified, six in this example.

Screen Shot 2021-02-28 at 5.15.39 PM.png

Alan

On Sun, Feb 28, 2021 at 5:09 PM David De Coons wo2x <RocketNJ@...> wrote:
Alan

The issue is he may need 0, 1, or two leading zeroes thus the if else statement is probably best solution.?

73
Dave


Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 5:07 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?Charlie

Look at the "String" Node, "PadLeft" Method.? You can specify the number of characters and what to use to "fill" the empty space.? Here is an example with six digits, fill left with "0".

Alan

<Screen Shot 2021-02-28 at 5.04.43 PM.png>


Re: How to add leading zeros to a number

 

开云体育

Alan

The issue is he may need 0, 1, or two leading zeroes thus the if else statement is probably best solution.?

73
Dave


Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 5:07 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?Charlie

Look at the "String" Node, "PadLeft" Method. ?You can specify the number of characters and what to use to "fill" the empty space. ?Here is an example with six digits, fill left with "0".

Alan

<Screen Shot 2021-02-28 at 5.04.43 PM.png>


Re: How to add leading zeros to a number

 

Charlie

Look at the "String" Node, "PadLeft" Method. ?You can specify the number of characters and what to use to "fill" the empty space. ?Here is an example with six digits, fill left with "0".

Alan


Re: How to add leading zeros to a number

 

开云体育

Try this

?

Only need <= and not <==

?

Heading out to dinner for my birthday.

?

73

Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Charlie Rubenstein
Sent: Sunday, February 28, 2021 4:44 PM
To: [email protected]
Subject: Re: [nodered-hamradio] How to add leading zeros to a number

?

It didn't like that......


Re: How to add leading zeros to a number

 

It didn't like that......


Re: How to add leading zeros to a number

 

开云体育

Function node

?

If (msg.payload <== 9) {

????????????? msg.payload = “00” + msg.payload;

} else if (msg.payload <== 99) {

????????????? Msg.payload = “0” + msg.payload;

}

Return msg;

?

If the number is between 0 and 9 it will add two zeroes to the front

If between 10 – 99 it adds one zero

If 100 + it passes msg.payload not changed.

?

Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Charlie Rubenstein
Sent: Sunday, February 28, 2021 4:09 PM
To: [email protected]
Subject: [nodered-hamradio] How to add leading zeros to a number

?

I have made some great progress today with the Flex3000 flow. I solved the problem of the built-in TCP server in PowerSDR not accepting multiple connections, with a program I found called Com by TCP. I run it on the host PC that runs PSDR, and add that COM port as a CAT port in PSDR. It's working well, and I can "connect" payloads from different command buttons and switches, and it responds perfectly.

I hit a roadblock with sliders. The slider node outputs a number, but the command requires a 3-digit number, including leading zeros. I tried making a function node with? "msg.payload = parseInt(msg.payload (0,3))"? but that didn't work.?

I know it's just my ignorance in syntax. So......how to you add leading zeros to a payload that doesn't have them?

thanks,

Charlie KB8CR


How to add leading zeros to a number

 

I have made some great progress today with the Flex3000 flow. I solved the problem of the built-in TCP server in PowerSDR not accepting multiple connections, with a program I found called Com by TCP. I run it on the host PC that runs PSDR, and add that COM port as a CAT port in PSDR. It's working well, and I can "connect" payloads from different command buttons and switches, and it responds perfectly.

I hit a roadblock with sliders. The slider node outputs a number, but the command requires a 3-digit number, including leading zeros. I tried making a function node with? "msg.payload = parseInt(msg.payload (0,3))"? but that didn't work.?

I know it's just my ignorance in syntax. So......how to you add leading zeros to a payload that doesn't have them?

thanks,

Charlie KB8CR


Re: Newbie Programming Question

Mike/W5JR
 

开云体育

Hey, Neighbor....


tnx
Mike / W5JR
Alpharetta GA


On Feb 27, 2021, at 19:35, Steve Nance <snance@...> wrote:

Thanks Alan.
--
Steve - K5FR


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

 

开云体育

Maybe an email to ke9ns and ask him?

73
Dave wo2x


On Feb 27, 2021, at 9:40 PM, Charlie Rubenstein <charlier@...> wrote:

?It's currently going thru a TCP port to a "TCP CAT Server" in PowerSDR. I don't know how I can adjust it's baud rate.

Charlie KB8CR


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

 

It's currently going thru a TCP port to a "TCP CAT Server" in PowerSDR. I don't know how I can adjust it's baud rate.

Charlie KB8CR


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

 

开云体育

You could use a USB crossover cable to go from the Pi to PC. Then use a serial request Node on the Pi and in PowerSDR you choose the com port the cable creates.?

Another thing to check, can you increase the baud rate you are using now?

73
Dave wo2x

Sent from my waxed string and tin cans.?

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

?I uploaded v.0.2 of the Flex 3000 flow. I finally (after a couple of ridiculously late nights) get most of the bugs out.?

What I can't do still is to send commands to the radio through the same TCP serial connection as the polling I'm doing now.
It seems to ignore the commands. I guess it's just too much to ask of the one connection.....That's why I thought about running NodeRed?ON the PC that runs PowerSDR. Then, I could use a virtual serial port, and PowerSDR allows for several COM port connections to it, that usually work FB. But alas I'm having problems getting NodeRed to run on the PC. It runs, but won't display the dashboard to a web browser.?

Here's what it looks like now:
<dummyfile.0.part>


Charlie KB8CR


Re: Newbie Programming Question

 

开云体育

Hi Steve

Welcome aboard!

The people on here have done a lot of great things with Node Red.

?It is an easy was to integrate software, hardware, and Internet services together! (That is from the Node Red description on node red.org)

73
Dave wo2x


On Feb 27, 2021, at 7:35 PM, Steve Nance <snance@...> wrote:

?Thanks Alan.
--
Steve - K5FR


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

 

I uploaded v.0.2 of the Flex 3000 flow. I finally (after a couple of ridiculously late nights) get most of the bugs out.?

What I can't do still is to send commands to the radio through the same TCP serial connection as the polling I'm doing now.
It seems to ignore the commands. I guess it's just too much to ask of the one connection.....That's why I thought about running NodeRed?ON the PC that runs PowerSDR. Then, I could use a virtual serial port, and PowerSDR allows for several COM port connections to it, that usually work FB. But alas I'm having problems getting NodeRed to run on the PC. It runs, but won't display the dashboard to a web browser.?

Here's what it looks like now:


Charlie KB8CR