Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
ERC Rotor Control Error in GetNumber node: TypeError: Cannot read properties of undefined (reading 'trim')
I'm trying to get ERC Rotor Control working with my Yaesu G-450A rotor controller and Node-Red.? The ERC works fine on Windows, but I'm getting an error when I connect it to Node-Red.
?
I've imported the ERC Rotor Control node and deployed it, and it appears to be listening for the controller, but I see this error repeatedly: "TypeError: Cannot read properties of undefined (reading 'trim')".?
?
How can I troubleshoot this error?? I don't know where I should be looking. |
Frank, there are several flows in the files section of the group for the ERC including one of mine. I'm not sure which one you're using and suggest you elaborate and possibly include some debug nodes to aid in? fault isolation and to identify the?node that is producing the type error. If you're running Node Red on a Raspberry Pi you'll need to update the serial port definition?for your environment. The same is likely true for Node Red on Windows should that be the case. Ron WB2WGH On Sat, Mar 29, 2025 at 2:25?PM Frank N6OI via <kibbish=[email protected]> wrote:
--
Ron |
Thanks, Ron.
?
Yes, I should have been more explicit with what I'm seeing.
?
As mentioned in the title, the error is in the GetNumber node.? It is barfing on the "trim" command.
?
I'm running the WB0SMX version of the ERC node (ERC_Control_wb0smx.json).
?
The only error showing up in debug, repeatedly ever 10 seconds, is the one in the title; "Error in GetNumber node: TypeError: Cannot read properties of undefined (reading 'trim')".
?
I have set the serial port for the Pi, and I think it's working properly but it's difficult to tell with Linux USB ports.? The serial port node shows it is in "waiting" status.
?
? |
After thinking about the error a bit more, I realized that the GetNumber node may be erroring because it's not seeing any data at all.? That might indicate that I in fact do not have the serial port configured correctly... but if that's the case then I'm not sure what more I can do because I've identified which port the ERC board is plugged into on the Pi, and configured the serial node with that port info.
?
Here's my port setting: ?/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI04NMP9-if00-port01
? |
Frank, Zoom work? If so I'll send a meeting link in 15-20 minutes. Have to drop off a package to a neighbor that got delivered to me by mistake. Send email direct to my listed address. Ron WB2WGH? On Sat, Mar 29, 2025, 3:46 PM Frank N6OI via <kibbish=[email protected]> wrote:
|
to navigate to use esc to dismiss