Keyboard Shortcuts
Likes
- Nodered-Hamradio
- Messages
Search
Re: Added Folder /Array Solutions Stack Match With REST Commands
#file-notice
My bad. ? ?Looked up a different "Scott" on QRZ.com Alan On Tue, Jan 26, 2021 at 11:04 AM Scott Dickson <w5wz@...> wrote: No Stream Deck here!? No big deal.? Curious as to what led to that conclusion? |
Re: Added Folder /Array Solutions Stack Match With REST Commands
#file-notice
No Stream Deck here!? No big deal.? Curious as to what led to that conclusion?
--Scott, W5WZ |
Re: Array Solutions Stack Match ?
Scott
I think the problem you describe has been fixed. ?Please take a look at my latest version, including REST commands. ? /g/nodered-hamradio/files/Array%20Solutions%20Stack%20Match%20With%20REST%20Commands Alan |
Re: Array Solutions Stack Match ?
Alan,
Wow!? That's going above and beyond!? I have only taken a quick look at it, and only see a minor issue.? It appears that once the AUX is turned on (Green) that there is no way to turn it off.? Granted, I'm only playing with it via the dashboard (and I'm operating my shack PC remotely, so there is no hardware, other the the RasPi connected). --Scott, W5WZ |
Re: Help with Modified MKCM SPE Amp.json
开云体育yes that's correct.? I did sudo reboot not shutdown (but will have tried that by the time you read this :D ) Scott On 1/25/2021 12:23 PM, David De Coons
wo2x wrote:
-- --- Sent with ProtonMail Secure Email --- |
Re: Help with Modified MKCM SPE Amp.json
开云体育OK, with USB cable plugged into the PC the Windows version works. ? Next, to confirm, you did move the USB to the Pi? Did you reboot the Pi after plugging in the USB? Not just restart FRStack. From the terminal prompt sudo shutdown -fr now ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Scott - W5NJK via groups.io
Sent: Monday, January 25, 2021 1:02 PM To: [email protected] Subject: Re: [nodered-hamradio] Help with Modified MKCM SPE Amp.json ? Yes I did do the restarting (even reboot, although I know it's overkill).
|
Re: Getting started with Node Red
开云体育That was for addition. ? In Alan’s example it would be msg.payload = xyz * abc; Return msg: ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Monday, January 25, 2021 1:00 PM To: [email protected] Group Moderators <[email protected]> Subject: Re: [nodered-hamradio] Getting started with Node Red ? Fred ? Read up on variable types.? There are very good tutorials on the Node-Red.org web site: ? ? In your case, you want to do the math on two variables.? The problem is getting both variables into the same node at the same time. ? -Messages "flow" through?the nodes.? They only exist in the node in one instant of time, then pass to the next node. ? - Context variables are stored in Node-Red memory and can be called into a function for doing the math.? As Dave points out, you must first get your variables stored in "context", then pull each into a function to do the math. ? There are lots of ways to get a message to a context variable.? A common way is to use the change node.? Say you want to put the payload into a context location called "" ? ? Then to add "xyz" to "abc" in a function node and output the result to "msg.payload" ? ? Alan ? On Mon, Jan 25, 2021 at 12:38 PM wa9mvz via <wa9mvz=[email protected]> wrote:
|
Re: Help with Modified MKCM SPE Amp.json
Yes I did do the restarting (even reboot, although I know it's overkill).
toggle quoted message
Show quoted text
I have the spe utility running on my windows machine, I'm not aware on a Linux version. Ill look again for a firmware update, and may try and see if using the remote serial interface works any different. Thanks for all your help! Sent from ProtonMail mobile -------- Original Message -------- On Jan 25, 2021, 11:46 AM, Alan Blind, WA9WUD < a.alan.blind@...> wrote:
|
Re: Getting started with Node Red
Fred Read up on variable types.? There are very good tutorials on the Node-Red.org web site: In your case, you want to do the math on two variables.? The problem is getting both variables into the same node at the same time. -Messages "flow" through?the nodes.? They only exist in the node in one instant of time, then pass to the next node. - Context variables are stored in Node-Red memory and can be called into a function for doing the math.? As Dave points out, you must first get your variables stored in "context", then pull each into a function to do the math. There are lots of ways to get a message to a context variable.? A common way is to use the change node.? Say you want to put the payload into a context location called "" Then to add "xyz" to "abc" in a function node and output the result to "msg.payload" Alan On Mon, Jan 25, 2021 at 12:38 PM wa9mvz via <wa9mvz=[email protected]> wrote: Sure. It's easy to start writing flows similar to BLINK and turn an LED on from an input. But once I get past that point it's like drinking from a fire hose. |
Re: Help with Modified MKCM SPE Amp.json
Scott - Another thought. Are you shutting down and restarting?FRStack after each change to the config file? Shutdown Command. ? ??sudo systemctl stop FRStackWebApi Start Command. ? ? ??sudo systemctl start FRStackWebApi And then, make sure FRStack is running: Status Command. ??systemctl status FRStackWebApi Word of caution.? FRstack will fail to start if there are any syntax errors in the appsettings.json config file.? Good to check FRStack is running. Alan? |
Re: Getting started with Node Red
开云体育Many ways to get there.?From the Inject, take that msg.payload and you can use a Change node to set the msg.payload to flow.x (or any other name). Feed the msg.payload to a function node. var y = flow.get(“x”); msg.payload = (msg.payload * y); return msg; You could probably condense into single function node.? 73 Dave wo2x Sent from my waxed string and tin cans.? On Jan 25, 2021, at 12:38 PM, wa9mvz via groups.io <wa9mvz@...> wrote:
|
Re: Getting started with Node Red
Sure. It's easy to start writing flows similar to BLINK and turn an LED on from an input. But once I get past that point it's like drinking from a fire hose.
I've been trying to figure out how to do a simple task like multiply two numbers together. I have a data stream coming in through a Serial port that is working and using a CALCULATOR node I can divide that by a constant. But I need to multiply it by a number from an INJECT node. I haven't found any tutorial that tells me how to do that that doesn't assume I'm an expert in NODE RED and JAVA. Can anyone point me in the right direction? It's obvious I'm missing something very fundamental here. This should be easy. Fred K9SO |
Re: Help with Modified MKCM SPE Amp.json
Scott
Since you have only one Com connection to the RPi, you can try to just use the default port path:
Next, Dave, WO2X, said to test the SPE amp USB port by downloading the SPE utility. ?Make sure the SPE amp and the Utility work OI, that way you know your USB connection is good. And last, another ham on this list had the same equipment and problems you are having, and in the end said he found a later version of firmware, that solved his connection issues.. ? ?I forget who it was, so maybe they will see this and jump in. Alan |
Re: Help with Modified MKCM SPE Amp.json
开云体育Both rebooted.... far as I can tell there's no config option for the baud rate in FRStack, and the amplifier is supposed to be auto-baud detecting...
On 1/25/2021 9:09 AM, David De Coons
wo2x wrote:
Baud rate issue? -- --- Sent with ProtonMail Secure Email --- |
Re: Help with Modified MKCM SPE Amp.json
toggle quoted message
Show quoted text
On Jan 25, 2021, at 10:06 AM, Scott - W5NJK via groups.io <w5njk@...> wrote:
|
Re: Help with Modified MKCM SPE Amp.json
toggle quoted message
Show quoted text
On Jan 25, 2021, at 10:06 AM, Scott - W5NJK via groups.io <w5njk@...> wrote:
|
Re: Help with Modified MKCM SPE Amp.json
The amplifier is the only device I have plugged into the Pi, and??I did follow the instructions at the bottom of the wiki for assigning the link to the USB serial port (assigning ttyUSB_AMP by VID, PID, and SN).? I also just tried your method and I'm still getting the empty payload issue. And I'm using the ?built-in USB port (which does enumerate to an FTDI serial port), and not the "Port" connector which has the "remoting USF" serial interface.
This is a version 1 amplifier, but it does have the latest firmware.? I've tried setting the "SPEProtocolV1" to both false and true, though I think true is the correct setting. Scott |
Re: Help with Modified MKCM SPE Amp.json
Scott Three items to check. - For the SPE amp, use a simple USB cable from the SPE USB connection to the Raspberry Pi.? If you only have one serial connection to the Pi, your port config should be good.? Otherwise, look in the "/dev/serial/" directory?for the name of your com connection - Make sure the SPE amp firmware is up to date. - In the FRStack Config file, select the correct protocol: Alan WA9WUD On Mon, Jan 25, 2021 at 8:25 AM Scott - W5NJK via <w5njk=[email protected]> wrote: After much machinations, I've got my node up and talking with my 6400 and FRStack, hand have configured the FRStack to the amp's USB serial port. (in my instance I have linked /dev/ttyUSB_AMP to /dev/ttyUSB0). |
Re: Help with Modified MKCM SPE Amp.json
After much machinations, I've got my node up and talking with my 6400 and FRStack, hand have configured the FRStack to the amp's USB serial port. (in my instance I have linked /dev/ttyUSB_AMP to /dev/ttyUSB0).
However, the payload coming out of the GetSPEINFO node is { empty }.? So it kind-of feels like I don't really have a serial connection to the amplifier.? Anyone have suggestions to try? |