Problems changing config in Node-RED

Hello,
I’m trying to push a new config to my linear displacement sensor via node-red. Specifically I want to change the output value to be out 150 instead of 500, and I want it to report every ~4 seconds instead of every 10 minutes. But nothing I do seems to push the config to the sensor. Node Red is connected to the sensor, as it’s giving me a running under it’s node. But trying to put the sensor and wireless gateway node into config seems to do nothing, and I get this message in the debug:

12/18/2025, 9:12:29 AM
[node: Linear displacement sensor]
(http://192.168.0.1:1880/#)
msg : error
“TypeError: Cannot read properties of undefined (reading ‘on’)”

Here are screenshots of my flow and node settings

Additionally I’m trying to set up the absolute gauge pressure sensor and the user manual and data sheet links on the ncd website keep turning up 404 errors. I have it connected to the gateway and it shows the “run” and “fly” in the debug, but no sensor information?

Hello @parks It appears that in your Wireless Device node (Linear Displacement Sensor), the “Serial Device for config” is currently set to an invalid port for the Gateway (/dev/ttyUSB0). You should use /dev/ttymxc2 for both options:

image

Additionally, this sensor support Automatic OTF Configuration, it means you do not need to put the sensor and gateway into configuration mode. You can follow these steps:

Additionally, this sensor supports Automatic OTF (On-The-Fly) Configuration, which means you do not need to manually put the sensor and gateway into configuration mode. You can follow these steps:

  1. Double-click on the Wireless Device node. Set both the Serial Device and Serial Device for config to: /dev/ttymxc2

  2. Enable the Auto Config, OTF Config*, and Wait for network formation checkboxes.

  3. Enable the Node ID and Delay checkboxes and enter your desired values.

  4. Enable the Set Sensor Length checkbox and enter the desired value (e.g., 150).

  5. Click the Done button and then click the Deploy button.

  6. Press the RESET button on the sensor (simply press and release). This will force a “FLY” transmission to trigger the Automatic OTF configuration.

  7. You should see incoming sensor data in the debug window as the sensor completes the configuration process.

I have shared a guide for the configuration process below. Please focus on Section 10.2: Automatic Configuration OTF:

Could you please try this and share your results?
Thanks.

Regarding Pressure sensor, could you share a picture of the sensor, please.

So this did not work unfortunately, I got the error message above again in the debug rather than “config results”

Hi,

The error “TypeError: Cannot read properties of undefined (reading ‘on’)” indicates there’s a node improperly configured in your flow. I can’t say for sure which on it is, but I’m guessing its the Linear Displacement Node.

Click on the menu in the top right (three horizontal lines) > Configuration nodes. Now look for a section titled “ncd-gateway-config”. There should only be one item in this list. If there are multiple delete all of them but one /dev/ttymxc2. If you have multiple /dev/ttymxc2 nodes listed here then most likely a new /dev/ttymxc2 node was added instead of selecting the existing one from the dropdown.

Once those are deleted go ahead and deploy and reconfigure any nodes that may have used the now deleted config nodes and deploy. To clear any trace of these config nodes from memory I would recommend restarting Node-Red or the Gateway.

In essence these configs nodes are the comms handler to the wireless network and only one is required and should be used anywhere needed.

Hey jacob, yesterday I was able to fix the problem I was having. I configured the node to output values as fast as possible to ubidots. Right now even when I have line of sight, the sensor outputs information at 5 seconds, then 20 second alternating intervals. Ideally we could get info that is nearly live. Additionally I keep sending configs to our absolute and gauge pressure sensors that should also maximize their output frequency, but it doesn’t. It only sends out info when I manually reset it. Any advice on either? Thanks