开云体育

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

Re: Injecting a Hex Value

 

开云体育

Looks like your flows is expecting a line feed on input as Chris mentioned. Taking a look at the manual for the controller it appears you send a two byte word and get ?a two byte answer, so you might need to change the input to a fixed length of the two byte word.

?

Here’s a link on working with buffers. You can follow the examples to inject the ASCII A? and have it converted to a buffer before being sent to the controller. The response should be Ax where x is the actual antenna number.

https://stevesnoderedguide.com/understanding-buffers-node-red

73

Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Kyle K
Sent: Wednesday, December 21, 2022 5:09 PM
To: [email protected]
Subject: [nodered-hamradio] Injecting a Hex Value

?

I've been working on this WA4MCM controller and have a few issues.? Hopefully someone can help me.? After installing a new USB port on the back of the unit and the PI actually seeing the unit, now I'm to the point of trying to get data out of it.?

I've got the flow basically written, but I'm having issues injecting a hex value into the device as it's not responding.

Device says it's connected, and I'm using "by-id" full path per Dave's video tutorial.?







Here is the info on the Hex values.



I'm injecting the following with no luck.

A string (A?)




A buffered Hex




String of hex values?



Tried converting the sting to hex and injecting.? Still nothing.??

const bufferText = Buffer.from('A?', 'utf8')

const text = bufferText.toString('hex')

msg.payload = text

return msg;


Any ideas on what I might be doing wrong???

73
Kyle
AA0Z




Re: Injecting a Hex Value

 

I'm not sure, but here is a thought. Is the serial receive node waiting for the split char? It looks like '\n' is configured but the protocol doesn't send a newline.


On Wed, Dec 21, 2022, 4:08 PM Kyle K <kylekrieg@...> wrote:
I've been working on this WA4MCM controller and have a few issues.? Hopefully someone can help me.? After installing a new USB port on the back of the unit and the PI actually seeing the unit, now I'm to the point of trying to get data out of it.?

I've got the flow basically written, but I'm having issues injecting a hex value into the device as it's not responding.

Device says it's connected, and I'm using "by-id" full path per Dave's video tutorial.?







Here is the info on the Hex values.



I'm injecting the following with no luck.

A string (A?)

image.png


A buffered Hex

image.png


String of hex values?

image.png

Tried converting the sting to hex and injecting.? Still nothing.??

const bufferText = Buffer.from('A?', 'utf8')
const text = bufferText.toString('hex')
msg.payload = text
return msg;



Any ideas on what I might be doing wrong???

73
Kyle
AA0Z





Injecting a Hex Value

 

I've been working on this WA4MCM controller and have a few issues.? Hopefully someone can help me.? After installing a new USB port on the back of the unit and the PI actually seeing the unit, now I'm to the point of trying to get data out of it.?

I've got the flow basically written, but I'm having issues injecting a hex value into the device as it's not responding.

Device says it's connected, and I'm using "by-id" full path per Dave's video tutorial.?







Here is the info on the Hex values.



I'm injecting the following with no luck.

A string (A?)

image.png


A buffered Hex

image.png


String of hex values?

image.png

Tried converting the sting to hex and injecting.? Still nothing.??

const bufferText = Buffer.from('A?', 'utf8')
const text = bufferText.toString('hex')
msg.payload = text
return msg;



Any ideas on what I might be doing wrong???

73
Kyle
AA0Z





Re: Streamdeck halts after several pushes on the buttons

 

Thanks Alan?for the reply.?However the same happens with version 5 at Timon, PA1T. I upgraded to see if that would solve the problem. it did not.?

Donor youngsters this problem with the stream deck and Node Red?

73’ Thomas


Re: Streamdeck halts after several pushes on the buttons

 

Thomas

StreamDeck v6 has been reported to not work with some custom plug-ins.

I downgraded to v5.3, and all is good for me now.

Alan. WA9WUD


Streamdeck halts after several pushes on the buttons

 

开云体育

Hi,

?

We are having problems with the combination Stream Deck XL and Node Red on a Raspberry Pi 3b.

We like to use the Stream Deck? to select beverage receive antennas and a 9 circle array.

?

The Raspberry Pi has in our test situation 8 relays on GPIO ports and each relay a has a switch in Node red.

To have it working with the Stream Deck ?each of these 8 switches has an http-in node and a Change node to set the Payload to 1.

?

On the Stream Deck using the website plugin (GET request in background) which switches the relays fine. Works also fine when using the Rest Call 1.2 plugin. Pushing a button on the Stream Deck or the switch on my PC screen switches the relays fine.

For this to work I used example flows from Alan. There is no feedback to the Stream Deck.

?

The problem is that after switching (every second) between the buttons on the Stream Deck accessing the relays (through Node Red) it stops working after 12 times pushing a button when using the website plugin on the Stream Deck. Even quicker when using the Rest call plugin. Then it becomes slow after 5 or 6 buttons pushes and the Stream Deck halts.

?

The switches in Node Red on the screen still work fine and pushing them a 100 times does not give any problem. When the Stream Deck halts I do not see using a Debug node anything coming in anymore from the Stream Deck.

Making it all work again I change the Profile on the Stream Deck to another one and switch back and all is fine again for a few pushes.

?

Updated the Stream Deck to the latest firmware (1.01) and software(6.0.1.17732).

The utilization of the Stream Deck seldom goes higher the 10-15%.

?

Anyone any idea how to solve this. What to check.

?

Looks like a Stream Deck problem but no clue what I’m doing wrong or how to solve this.

?

Your help is very much appreciated.

?

73’ Thomas and Timon

PA1M & PA1T

?

?


Re: How to change default name for FTDI USB serial node to use cable ID

 

开云体育

Thanks Dave

Great video. I added it to my site so I can use it again.

73, VE7TIT

Shanta

On 2022-12-18 19:42, Dave wo2x wrote:

Hi All,

?

I did a quick YouTube video on how to change the default FTDI based USB serial node name from /dev/TTYUSB0 to the path by ID name which includes the FTDI cable/device serial number. This is unique for each FTDI interface.

?

The order you plug FTDI USB to serial cables in to a Raspberry Pi running Node Red will determine the default name, so if you have multiple USB to serial cables it is possible to have the wrong device connected to a flow. By using the By ID path for the serial node it will ensure the flow always uses the proper cable.

?

Here’s a link to the video. As of the writing of this post the video is still rendering to HD. The HD rendering should be completed soon.

?

73

Dave wo2x

?


Re: How to change default name for FTDI USB serial node to use cable ID

 

开云体育

You are welcome!

73
Dave wo2x


On Dec 19, 2022, at 9:34 PM, Jerome K8LF <da2sv@...> wrote:

?? I am new to NodeRed just a few days and have my HyGain Rotor EZ-Rotor working in a dashboard.?? Thanks to contributors.??? I was able to follow your video and resolved how I would identify my RS-232 to USB adapters. ?

? 73s? /Jerome /K8LF?


Re: How to change default name for FTDI USB serial node to use cable ID

 

? I am new to NodeRed just a few days and have my HyGain Rotor EZ-Rotor working in a dashboard.?? Thanks to contributors.??? I was able to follow your video and resolved how I would identify my RS-232 to USB adapters. ?

? 73s? /Jerome /K8LF?


Flex Radio Auto AGC Flow.

 

I have been working on a flow to adjust the AGC Threshold setting automatically.

I followed Tim's paper on the topic: ?



Here is a link to a You-Tub of the latest version of the ?flow in action:





We have a group of "testers" giving suggestions on how to fix bug reports. ?I will upload the flow in a few days.

Alan. WA9WUD


Re: How to change default name for FTDI USB serial node to use cable ID

 

Maybe this will help you.

Here is my ser2net.yaml config file in /etc/.? in the connector line, I just used nr8001 to say designate node red is sending to port 8001.? I think you can have any short description there.?

%YAML 1.1
---
# This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
?
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
?
admin:
? ? accepter: tcp,8000
?
connection: &nr8001
? ? accepter: tcp,8001
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM0,
? ? ? ? ? ? ? ?38400n81,local
?
connection: &nr8002
? ? accepter: tcp,8002
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM1,
? ? ? ? ? ? ? ?38400n81,local
?


Re: How to change default name for FTDI USB serial node to use cable ID

 

HI Dave

I am sitting here with some problem whit ser2net there will not recognize my usb port ?? a new version of net2ser need a YAML config file and that is out of my range to figure it out ;-) sadly this has worked before but I cant rember how I did it last time ;-)

but I have try your solution where I go in to the file browser in my ubuntu pc /dev/serial/by-id and copy the path of the usb

/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_85534313837351F0C180-if00

but it will not use the path to show the way to my usb ???

it is a arduino board , but when I use the Arduino node I can get in contact whit the board ...no problem.

73" Ben






Den man. 19. dec. 2022 kl. 15.06 skrev Dave wo2x <RocketNJ@...>:

The EA4TX boxes probably do not have genuine FTDI chipsets in them. Either a different chip that does not have unique serial numbers or Chinese clones of FTDI.?

This is an issue with some USB to serial converters you buy from eBay and Amazon. They close an FTDI chip and all the closes have no serial number or the same serial number. Prolific chipsets also do not have unique serial numbers.?

If you ever reboot the api and wind up controlling the wrong rotor, you’ll know why.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Dec 19, 2022, at 8:53 AM, Kyle K <kylekrieg@...> wrote:

?Thanks to Dave for putting out that video.? I'm going to use it on my RCS-4 replacement flow I'm starting.??

...but another question now has emerged on another project that I did some digging around in.

I got to looking at my pi in the amp rack that has a couple of EA4TX boxes (2x6 pack antenna & tail twister rotator) control.??

I'm using ser2net to send the serial data over the network to another pi running Node Red, so the Pi in the amp rack is basically a serial to network media converter. Works great.??

In the /dev/by-id folder, I only see 1 of my EA4TX boxes.

pi@elayerrack:/dev/serial/by-id $ ls -lah
total 0
drwxr-xr-x 2 root root 60 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 15:09 usb-EA4TX_USB_Serial_22465-if00 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-id $
?

but in the /dev/by-path folder, I see both of them.

pi@elayerrack:/dev/serial/by-path $ ls -lah
total 0
drwxr-xr-x 2 root root 80 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 14:17 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Dec 18 15:09 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-path $

Any ideas on why that is?

Kyle
AA0Z


Re: How to change default name for FTDI USB serial node to use cable ID

 

开云体育

The EA4TX boxes probably do not have genuine FTDI chipsets in them. Either a different chip that does not have unique serial numbers or Chinese clones of FTDI.?

This is an issue with some USB to serial converters you buy from eBay and Amazon. They close an FTDI chip and all the closes have no serial number or the same serial number. Prolific chipsets also do not have unique serial numbers.?

If you ever reboot the api and wind up controlling the wrong rotor, you’ll know why.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Dec 19, 2022, at 8:53 AM, Kyle K <kylekrieg@...> wrote:

?Thanks to Dave for putting out that video.? I'm going to use it on my RCS-4 replacement flow I'm starting.??

...but another question now has emerged on another project that I did some digging around in.

I got to looking at my pi in the amp rack that has a couple of EA4TX boxes (2x6 pack antenna & tail twister rotator) control.??

I'm using ser2net to send the serial data over the network to another pi running Node Red, so the Pi in the amp rack is basically a serial to network media converter. Works great.??

In the /dev/by-id folder, I only see 1 of my EA4TX boxes.

pi@elayerrack:/dev/serial/by-id $ ls -lah
total 0
drwxr-xr-x 2 root root 60 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 15:09 usb-EA4TX_USB_Serial_22465-if00 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-id $
?

but in the /dev/by-path folder, I see both of them.

pi@elayerrack:/dev/serial/by-path $ ls -lah
total 0
drwxr-xr-x 2 root root 80 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 14:17 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Dec 18 15:09 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-path $

Any ideas on why that is?

Kyle
AA0Z


Re: How to change default name for FTDI USB serial node to use cable ID

 

Thanks to Dave for putting out that video.? I'm going to use it on my RCS-4 replacement flow I'm starting.??

...but another question now has emerged on another project that I did some digging around in.

I got to looking at my pi in the amp rack that has a couple of EA4TX boxes (2x6 pack antenna & tail twister rotator) control.??

I'm using ser2net to send the serial data over the network to another pi running Node Red, so the Pi in the amp rack is basically a serial to network media converter. Works great.??

In the /dev/by-id folder, I only see 1 of my EA4TX boxes.

pi@elayerrack:/dev/serial/by-id $ ls -lah
total 0
drwxr-xr-x 2 root root 60 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 15:09 usb-EA4TX_USB_Serial_22465-if00 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-id $
?

but in the /dev/by-path folder, I see both of them.

pi@elayerrack:/dev/serial/by-path $ ls -lah
total 0
drwxr-xr-x 2 root root 80 Dec 18 15:09 .
drwxr-xr-x 4 root root 80 Dec 18 14:17 ..
lrwxrwxrwx 1 root root 13 Dec 18 14:17 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Dec 18 15:09 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0 -> ../../ttyACM1
pi@elayerrack:/dev/serial/by-path $

Any ideas on why that is?

Kyle
AA0Z


How to change default name for FTDI USB serial node to use cable ID

 

开云体育

Hi All,

?

I did a quick YouTube video on how to change the default FTDI based USB serial node name from /dev/TTYUSB0 to the path by ID name which includes the FTDI cable/device serial number. This is unique for each FTDI interface.

?

The order you plug FTDI USB to serial cables in to a Raspberry Pi running Node Red will determine the default name, so if you have multiple USB to serial cables it is possible to have the wrong device connected to a flow. By using the By ID path for the serial node it will ensure the flow always uses the proper cable.

?

Here’s a link to the video. As of the writing of this post the video is still rendering to HD. The HD rendering should be completed soon.

?

73

Dave wo2x

?


Re: RCS-4 Antenna Switch Replacement - WA4MCM Remote Switch

 

开云体育

I did a quick video I am posting to YouTube. See my other post in the group here for the link

?

73

Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Kyle K
Sent: Sunday, December 18, 2022 7:05 PM
To: [email protected]
Subject: Re: [nodered-hamradio] RCS-4 Antenna Switch Replacement - WA4MCM Remote Switch

?

Oh, had no idea.? Not that familiar with USB devices and linux and how they are addressed.? Thanks for the tip.? I'll do some googling.??

Kyle


Re: RCS-4 Antenna Switch Replacement - WA4MCM Remote Switch

 

开云体育

We can do a quick Zoom if you like. I’m heading in the hospital early Tuesday morning. Let me know if you have 15 minutes and when. It is straightforward but quicker to just show you on Zoom.

73
Dave wo2x


On Dec 18, 2022, at 8:57 PM, Kyle K <kylekrieg@...> wrote:

?Thanks Dave, I think all the subjects are in chapters for your videos.? I'll take a look to see if I can find it.

Kyle


Re: RCS-4 Antenna Switch Replacement - WA4MCM Remote Switch

 

Thanks Dave, I think all the subjects are in chapters for your videos.? I'll take a look to see if I can find it.

Kyle


Re: RCS-4 Antenna Switch Replacement - WA4MCM Remote Switch

 

开云体育

Windows will remember and reserve the com port number for FTDI chipset USB devices based on the serial number in the chipset in the FTDI USB interface.?

In Linux as a default the TTYUSB ports are enumerated in the order they are plugged in and leads to possible issues using the default name. I like to use the ID of the USB device in the serial node so it always uses the correct cable or interface, no matter the order they are enumerated.?

One of the videos on my YouTube channel shows how to get the ID and how to set up the serial node. I should do a new video and condense it down to just this topic. It would help people new to Node Red.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Dec 18, 2022, at 7:05 PM, Kyle K <kylekrieg@...> wrote:

?Oh, had no idea.? Not that familiar with USB devices and linux and how they are addressed.? Thanks for the tip.? I'll do some googling.??

Kyle


Re: Distributed Raspberry Pi running Node Red #basic-training-sessions

 

Dave,

I'm putting it together now, the tower goes up in the spring. ?I also want to control the radio, amp, and tuner in the shack. That looks easier than discreet relays for the antenna switch.?

Tim
KM4ESU